From 3bbbb7c532bd268a52ac37d149c18e6be55b07c0 Mon Sep 17 00:00:00 2001 From: kompotkot Date: Sat, 17 Feb 2024 10:29:29 +0000 Subject: [PATCH 1/2] Add BlockNumber to parsed event --- starknet/generators.go | 2 ++ version/version.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/starknet/generators.go b/starknet/generators.go index a44ac62..6aaa310 100644 --- a/starknet/generators.go +++ b/starknet/generators.go @@ -590,6 +590,7 @@ var {{.EventHashVar}} string = "{{.EventHash}}" // {{.GoName}} is the Go struct corresponding to the {{.OriginalName}} event. type {{.GoName}} struct { + BlockNumber uint64 {{range .Definition.Members}} {{(CamelCase .Name)}} {{(GenerateGoNameForType .Type)}} {{- end}} @@ -660,6 +661,7 @@ func (p *EventParser) Parse(event RawEvent) (ParsedEvent, error) { if parseErr != nil { return defaultResult, parseErr } + parsedEvent.BlockNumber = event.BlockNumber return ParsedEvent{Name: {{.EventNameVar}}, Event: parsedEvent}, nil } {{- end}} diff --git a/version/version.go b/version/version.go index 286e0a1..bbdd9fb 100644 --- a/version/version.go +++ b/version/version.go @@ -1,3 +1,3 @@ package version -var SeerVersion string = "0.1.0" +var SeerVersion string = "0.1.1" From f614cae54c188d1deec46b87a5904e159927fc7d Mon Sep 17 00:00:00 2001 From: kompotkot Date: Mon, 19 Feb 2024 06:49:52 +0000 Subject: [PATCH 2/2] Bumped version --- version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/version.go b/version/version.go index bbdd9fb..bbe96c6 100644 --- a/version/version.go +++ b/version/version.go @@ -1,3 +1,3 @@ package version -var SeerVersion string = "0.1.1" +var SeerVersion string = "0.1.2"