Skip to content

Commit

Permalink
- adding metadata 1620 specVersion with the correct blockhash where t…
Browse files Browse the repository at this point in the history
…he change occurred

- update filename when calling tools fetch metadata
  • Loading branch information
Eduard-Voiculescu committed Oct 18, 2024
1 parent 9263d1e commit 2938e41
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions cmd/firevara/tools-data/specVersions.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1620 0x2e3a78fded2c49051451bce3f45f95fc9145c9089875ce3565b69b2f110ae64a
1501 0x334e93a1d94527bf3931f4195a23ac4d4ef2fb7a15de2be4b7a2fc5bc3188ef2
1500 0x84bd3f00c613347a95be1946542093a97a9a756e2402a5e496710d90ee2c1a87
1421 0x52b22fadce75ca6833b1107d4babbd7a7c8214f978d4a147f4e1572f2d261e1d
Expand Down
2 changes: 1 addition & 1 deletion cmd/firevara/tools_fetch_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func toolsFetchMetadataRunE(logger *zap.Logger, _ logging.Tracer) firecore.Comma
return fmt.Errorf("failed to marshal metadata: %w", err)
}

filename := fmt.Sprintf("%s.json", sv.SpecVersion)
filename := fmt.Sprintf("metadata%s.json", sv.SpecVersion)
dst, err := os.Create(filepath.Join(outputDir, filename))
if err != nil {
return fmt.Errorf("failed to create metadata file: %w", err)
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ go 1.22.0
toolchain go1.22.3

replace github.com/jhump/protoreflect => github.com/streamingfast/protoreflect v0.0.0-20231205191344-4b629d20ce8d

replace github.com/centrifuge/go-substrate-rpc-client/v4 => github.com/streamingfast/go-substrate-rpc-client/v4 v4.0.0-20240802141237-cb3f49e2ebd1

replace github.com/streamingfast/substreams-gear => ../substreams-gear

require (
github.com/centrifuge/go-substrate-rpc-client/v4 v4.2.1
github.com/gobeam/stringy v0.0.7
github.com/mostynb/go-grpc-compression v1.1.17
github.com/planetscale/vtprotobuf v0.6.0
github.com/planetscale/vtprotobuf v0.6.0
github.com/spf13/cobra v1.7.0
github.com/streamingfast/bstream v0.0.2-0.20240619142813-9d23840859bf
github.com/streamingfast/cli v0.0.4-0.20240412191021-5f81842cb71d
github.com/streamingfast/dstore v0.1.1-0.20240325191553-bcce8892a9bb
github.com/streamingfast/pbgo v0.0.6-0.20240430190514-722fe9d82e5d
github.com/streamingfast/substreams-gear v0.1.1-0.20240802140944-5acc1cee4cf8
go.uber.org/zap v1.26.0
google.golang.org/grpc v1.64.0
)
Expand Down Expand Up @@ -137,7 +138,6 @@ require (
github.com/streamingfast/dhammer v0.0.0-20230125192823-c34bbd561bd4 // indirect
github.com/streamingfast/dmetering v0.0.0-20240422183130-658027cbb7a1 // indirect
github.com/streamingfast/dmetrics v0.0.0-20230919161904-206fa8ebd545 // indirect
github.com/streamingfast/dstore v0.1.1-0.20240325191553-bcce8892a9bb // indirect
github.com/streamingfast/dtracing v0.0.0-20220305214756-b5c0e8699839 // indirect
github.com/streamingfast/opaque v0.0.0-20210811180740-0c01d37ea308 // indirect
github.com/streamingfast/sf-tracing v0.0.0-20240430173521-888827872b90 // indirect
Expand Down
4 changes: 0 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,6 @@ github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
github.com/go-ole/go-ole v1.2.5 h1:t4MGB5xEDZvXI+0rMjjsfBsD7yAgp/s9ZDkL1JndXwY=
github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
github.com/gobeam/stringy v0.0.7 h1:TD8SfhedUoiANhW88JlJqfrMsihskIRpU/VTsHGnAps=
github.com/gobeam/stringy v0.0.7/go.mod h1:W3620X9dJHf2FSZF5fRnWekHcHQjwmCz8ZQ2d1qloqE=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk=
github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
Expand Down Expand Up @@ -590,8 +588,6 @@ github.com/streamingfast/shutter v1.5.0 h1:NpzDYzj0HVpSiDJVO/FFSL6QIK/YKOxY0gJAt
github.com/streamingfast/shutter v1.5.0/go.mod h1:B/T6efqdeMGbGwjzPS1ToXzYZI4kDzI5/u4I+7qbjY8=
github.com/streamingfast/substreams v1.9.1 h1:nINVI9vA4APGzuHPz6xdQ81H8/RtiuikPjhuDJPAjQw=
github.com/streamingfast/substreams v1.9.1/go.mod h1:XtL4RgQawes9/a9iM9d6bAABacfIuekY+jceszF7u2c=
github.com/streamingfast/substreams-gear v0.1.1-0.20240802140944-5acc1cee4cf8 h1:4v8ifXAtMq73444AshvYLmMnJLJC3AhKAz5kUrR+Yu4=
github.com/streamingfast/substreams-gear v0.1.1-0.20240802140944-5acc1cee4cf8/go.mod h1:cknCkAI1ymKO0bIt6YNoOOTZzuMQY1+z+p3nfSyOoIU=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=
Expand Down

0 comments on commit 2938e41

Please sign in to comment.