diff --git a/cmd/api/docs/swagger.json b/cmd/api/docs/swagger.json index f5b0491a..d505cc64 100644 --- a/cmd/api/docs/swagger.json +++ b/cmd/api/docs/swagger.json @@ -566,7 +566,9 @@ "MsgRecvPacket", "MsgTimeout", "MsgTimeoutOnClose", - "MsgAcknowledgement" + "MsgAcknowledgement", + "MsgSignalVersion", + "MsgTryUpgrade" ], "type": "string", "description": "Comma-separated message types list", @@ -876,7 +878,9 @@ "MsgRecvPacket", "MsgTimeout", "MsgTimeoutOnClose", - "MsgAcknowledgement" + "MsgAcknowledgement", + "MsgSignalVersion", + "MsgTryUpgrade" ], "type": "string", "description": "Comma-separated message types list", @@ -1679,7 +1683,9 @@ "MsgRecvPacket", "MsgTimeout", "MsgTimeoutOnClose", - "MsgAcknowledgement" + "MsgAcknowledgement", + "MsgSignalVersion", + "MsgTryUpgrade" ], "type": "string", "description": "Comma-separated message types list", @@ -1761,7 +1767,9 @@ "MsgRecvPacket", "MsgTimeout", "MsgTimeoutOnClose", - "MsgAcknowledgement" + "MsgAcknowledgement", + "MsgSignalVersion", + "MsgTryUpgrade" ], "type": "string", "description": "Comma-separated message types which should be excluded from list", @@ -4177,7 +4185,9 @@ "MsgRecvPacket", "MsgTimeout", "MsgTimeoutOnClose", - "MsgAcknowledgement" + "MsgAcknowledgement", + "MsgSignalVersion", + "MsgTryUpgrade" ], "type": "string", "description": "Comma-separated message types list", @@ -4259,7 +4269,9 @@ "MsgRecvPacket", "MsgTimeout", "MsgTimeoutOnClose", - "MsgAcknowledgement" + "MsgAcknowledgement", + "MsgSignalVersion", + "MsgTryUpgrade" ], "type": "string", "description": "Comma-separated message types list which should be excluded", @@ -7432,7 +7444,9 @@ "MsgRecvPacket", "MsgTimeout", "MsgTimeoutOnClose", - "MsgAcknowledgement" + "MsgAcknowledgement", + "MsgSignalVersion", + "MsgTryUpgrade" ], "x-enum-varnames": [ "MsgUnknown", @@ -7508,7 +7522,9 @@ "MsgRecvPacket", "MsgTimeout", "MsgTimeoutOnClose", - "MsgAcknowledgement" + "MsgAcknowledgement", + "MsgSignalVersion", + "MsgTryUpgrade" ] } }, diff --git a/cmd/api/handler/block.go b/cmd/api/handler/block.go index a20a0b41..ebae178a 100644 --- a/cmd/api/handler/block.go +++ b/cmd/api/handler/block.go @@ -9,8 +9,8 @@ import ( "github.com/celenium-io/celestia-indexer/pkg/node" "github.com/celenium-io/celestia-indexer/pkg/types" - "github.com/celestiaorg/celestia-app/pkg/appconsts" - "github.com/celestiaorg/celestia-app/pkg/da" + "github.com/celestiaorg/celestia-app/v3/pkg/appconsts" + "github.com/celestiaorg/celestia-app/v3/pkg/da" "github.com/celestiaorg/go-square/shares" "github.com/celestiaorg/go-square/square" diff --git a/cmd/api/handler/constant_test.go b/cmd/api/handler/constant_test.go index 62454172..a2094cf8 100644 --- a/cmd/api/handler/constant_test.go +++ b/cmd/api/handler/constant_test.go @@ -61,7 +61,7 @@ func (s *ConstantTestSuite) TestEnums() { err := json.NewDecoder(rec.Body).Decode(&enums) s.Require().NoError(err) s.Require().Len(enums.EventType, 59) - s.Require().Len(enums.MessageType, 74) + s.Require().Len(enums.MessageType, 76) s.Require().Len(enums.Status, 2) s.Require().Len(enums.Categories, 4) } diff --git a/cmd/api/handler/gas.go b/cmd/api/handler/gas.go index 03fb2024..4f23152e 100644 --- a/cmd/api/handler/gas.go +++ b/cmd/api/handler/gas.go @@ -11,7 +11,7 @@ import ( "github.com/celenium-io/celestia-indexer/cmd/api/handler/responses" "github.com/celenium-io/celestia-indexer/internal/storage" "github.com/celenium-io/celestia-indexer/internal/storage/types" - blobtypes "github.com/celestiaorg/celestia-app/x/blob/types" + blobtypes "github.com/celestiaorg/celestia-app/v3/x/blob/types" "github.com/labstack/echo/v4" ) diff --git a/go.mod b/go.mod index 008295fa..36782c24 100644 --- a/go.mod +++ b/go.mod @@ -12,12 +12,13 @@ require ( github.com/aws/aws-sdk-go-v2/credentials v1.17.11 github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1 github.com/aws/smithy-go v1.20.2 - github.com/celestiaorg/celestia-app v1.14.0 - github.com/celestiaorg/go-square v1.1.0 - github.com/celestiaorg/rsmt2d v0.13.1 + github.com/celestiaorg/celestia-app/v3 v3.0.0-rc0 + github.com/celestiaorg/go-square v1.1.1 + github.com/celestiaorg/go-square/v2 v2.0.0 + github.com/celestiaorg/rsmt2d v0.14.0 github.com/cosmos/cosmos-sdk v0.46.16 github.com/cosmos/ibc-go/v6 v6.2.2 - github.com/dgraph-io/badger/v4 v4.2.0 + github.com/dgraph-io/badger/v4 v4.3.0 github.com/dipdup-io/workerpool v0.0.4 github.com/dipdup-net/go-lib v0.4.0 github.com/dipdup-net/indexer-sdk v0.0.5 @@ -27,7 +28,7 @@ require ( github.com/getsentry/sentry-go/otel v0.27.0 github.com/go-playground/validator/v10 v10.18.0 github.com/go-testfixtures/testfixtures/v3 v3.9.0 - github.com/goccy/go-json v0.10.2 + github.com/goccy/go-json v0.10.3 github.com/gorilla/websocket v1.5.3 github.com/gosimple/slug v1.13.1 github.com/grafana/pyroscope-go v1.1.2 @@ -55,7 +56,7 @@ require ( require ( cloud.google.com/go v0.112.1 // indirect - cloud.google.com/go/compute/metadata v0.3.0 // indirect + cloud.google.com/go/compute/metadata v0.5.0 // indirect cloud.google.com/go/iam v1.1.6 // indirect cloud.google.com/go/storage v1.38.0 // indirect dario.cat/mergo v1.0.0 // indirect @@ -88,9 +89,9 @@ require ( github.com/bgentry/speakeasy v0.1.0 // indirect github.com/bits-and-blooms/bitset v1.13.0 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect + github.com/celestiaorg/blobstream-contracts/v3 v3.1.0 // indirect github.com/celestiaorg/merkletree v0.0.0-20210714075610-a84dc3ddbbe4 // indirect - github.com/celestiaorg/nmt v0.22.1 // indirect - github.com/celestiaorg/quantum-gravity-bridge/v2 v2.1.2 // indirect + github.com/celestiaorg/nmt v0.22.2 // indirect github.com/cenkalti/backoff/v4 v4.2.1 // indirect github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect @@ -105,9 +106,10 @@ require ( github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect - github.com/cosmos/gogoproto v1.5.0 // indirect + github.com/cosmos/gogoproto v1.7.0 // indirect github.com/cosmos/gorocksdb v1.2.0 // indirect github.com/cosmos/iavl v0.19.6 // indirect + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6 v6.1.2 // indirect github.com/cosmos/ledger-cosmos-go v0.13.2 // indirect github.com/cpuguy83/dockercfg v0.3.1 // indirect github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c // indirect @@ -117,7 +119,7 @@ require ( github.com/deckarep/golang-set/v2 v2.6.0 // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect github.com/dgraph-io/badger/v2 v2.2007.4 // indirect - github.com/dgraph-io/ristretto v0.1.1 // indirect + github.com/dgraph-io/ristretto v0.1.2-0.20240116140435-c67e07994f91 // indirect github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect github.com/distribution/reference v0.6.0 // indirect github.com/docker/docker v27.1.1+incompatible // indirect @@ -144,11 +146,10 @@ require ( github.com/gogo/gateway v1.1.0 // indirect github.com/gogo/protobuf v1.3.3 // indirect github.com/golang-jwt/jwt v3.2.2+incompatible // indirect - github.com/golang/glog v1.2.1 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect - github.com/google/btree v1.1.2 // indirect + github.com/google/btree v1.1.3 // indirect github.com/google/flatbuffers v1.12.1 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/s2a-go v0.1.7 // indirect @@ -173,12 +174,13 @@ require ( github.com/hashicorp/hcl v1.0.0 // indirect github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect github.com/holiman/uint256 v1.3.1 // indirect + github.com/iancoleman/orderedmap v0.2.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jinzhu/inflection v1.0.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect github.com/klauspost/compress v1.17.9 // indirect - github.com/klauspost/cpuid/v2 v2.2.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.8 // indirect github.com/klauspost/reedsolomon v1.12.1 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.4.0 // indirect @@ -204,7 +206,6 @@ require ( github.com/morikuni/aec v1.0.0 // indirect github.com/mtibben/percent v0.2.1 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/onsi/ginkgo v1.16.5 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0 // indirect github.com/paulmach/orb v0.10.0 // indirect @@ -249,7 +250,7 @@ require ( github.com/yusufpapurcu/wmi v1.2.3 // indirect github.com/zondax/hid v0.9.2 // indirect github.com/zondax/ledger-go v0.14.3 // indirect - go.etcd.io/bbolt v1.3.7 // indirect + go.etcd.io/bbolt v1.3.11 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect @@ -257,18 +258,18 @@ require ( go.opentelemetry.io/otel/metric v1.30.0 // indirect go.opentelemetry.io/proto/otlp v1.1.0 // indirect golang.org/x/crypto v0.27.0 // indirect - golang.org/x/net v0.28.0 // indirect - golang.org/x/oauth2 v0.21.0 // indirect + golang.org/x/net v0.29.0 // indirect + golang.org/x/oauth2 v0.22.0 // indirect golang.org/x/sync v0.8.0 // indirect golang.org/x/sys v0.25.0 // indirect golang.org/x/term v0.24.0 // indirect golang.org/x/text v0.18.0 // indirect google.golang.org/api v0.169.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect - google.golang.org/grpc v1.66.0 // indirect - google.golang.org/protobuf v1.34.2 // indirect + google.golang.org/grpc v1.67.1 // indirect + google.golang.org/protobuf v1.35.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect @@ -281,5 +282,5 @@ replace ( github.com/cosmos/cosmos-sdk => github.com/celestiaorg/cosmos-sdk v1.25.0-sdk-v0.46.16 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 - github.com/tendermint/tendermint => github.com/celestiaorg/celestia-core v1.42.0-tm-v0.34.35 + github.com/tendermint/tendermint => github.com/celestiaorg/celestia-core v1.43.0-tm-v0.34.35 ) diff --git a/go.sum b/go.sum index 2f55c735..1599701e 100644 --- a/go.sum +++ b/go.sum @@ -68,8 +68,8 @@ cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= -cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc= -cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= +cloud.google.com/go/compute/metadata v0.5.0 h1:Zr0eK8JbFv6+Wi4ilXAR8FJ3wyNdpxHKJNPos6LTZOY= +cloud.google.com/go/compute/metadata v0.5.0/go.mod h1:aHnloV2TPI38yx4s9+wAZhHykWvVCfu7hQbF+9CWoiY= cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0= @@ -208,8 +208,8 @@ github.com/ClickHouse/ch-go v0.58.0/go.mod h1:P0YtetDdxICIC7IuRM9Qv/TMi83W0mRgBV github.com/ClickHouse/clickhouse-go/v2 v2.13.0 h1:oP1OlTQIbQKKLnqLzyDhiyNFvN3pbOtM+e/3qdexG9k= github.com/ClickHouse/clickhouse-go/v2 v2.13.0/go.mod h1:xyL0De2K54/n+HGsdtPuyYJq76wefafaHfGUXTDEq/0= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ= -github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= +github.com/DataDog/zstd v1.5.0 h1:+K/VEwIAaPcHiMtQvpLD4lqW7f0Gk3xdYZmI1hD+CXo= +github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/MarceloPetrucio/go-scalar-api-reference v0.0.0-20240521013641-ce5d2efe0e06 h1:W4Yar1SUsPmmA51qoIRb174uDO/Xt3C48MB1YX9Y3vM= github.com/MarceloPetrucio/go-scalar-api-reference v0.0.0-20240521013641-ce5d2efe0e06/go.mod h1:/wotfjM8I3m8NuIHPz3S8k+CCYH80EqDT8ZeNLqMQm0= github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= @@ -289,22 +289,24 @@ github.com/btcsuite/btcd/btcutil v1.1.3 h1:xfbtw8lwpp0G6NwSHb+UE67ryTFHJAiNuipus github.com/btcsuite/btcd/btcutil v1.1.3/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= -github.com/celestiaorg/celestia-app v1.14.0 h1:Av1Q8de41WRABQ+mnwHwj4a6Rd5sqEUZqrTwuA1LbBM= -github.com/celestiaorg/celestia-app v1.14.0/go.mod h1:OPkbzIvBUGwTvfunQ/uh7qEekjkix59kB0CsK8+i6uM= -github.com/celestiaorg/celestia-core v1.42.0-tm-v0.34.35 h1:bWy5XOgeuuSLe0Lc/htL9/QLEURBjA1JTvEko6bEBhg= -github.com/celestiaorg/celestia-core v1.42.0-tm-v0.34.35/go.mod h1:/fK0n3ps09t5uErBQe1QZbrE81L81MNUzWpFyWQLDT0= +github.com/celestiaorg/blobstream-contracts/v3 v3.1.0 h1:h1Y4V3EMQ2mFmNtWt2sIhZIuyASInj1a9ExI8xOsTOw= +github.com/celestiaorg/blobstream-contracts/v3 v3.1.0/go.mod h1:x4DKyfKOSv1ZJM9NwV+Pw01kH2CD7N5zTFclXIVJ6GQ= +github.com/celestiaorg/celestia-app/v3 v3.0.0-rc0 h1:cfZVxldi5u/vGZPdFvW95quUmcg307v44PndjYwEOR4= +github.com/celestiaorg/celestia-app/v3 v3.0.0-rc0/go.mod h1:K8U6TRHgofz0y5UcvlOL+CuNLbx4jeZrZF7HZdf+Rgs= +github.com/celestiaorg/celestia-core v1.43.0-tm-v0.34.35 h1:L4GTm+JUXhB0a/nGPMq6jEqqe6THuYSQ8m2kUCtZYqw= +github.com/celestiaorg/celestia-core v1.43.0-tm-v0.34.35/go.mod h1:bFr0lAGwaJ0mOHSBmib5/ca5pbBf1yKWGPs93Td0HPw= github.com/celestiaorg/cosmos-sdk v1.25.0-sdk-v0.46.16 h1:f+fTe7GGk0/qgdzyqB8kk8EcDf9d6MC22khBTQiDXsU= github.com/celestiaorg/cosmos-sdk v1.25.0-sdk-v0.46.16/go.mod h1:07Z8HJqS8Rw4XlZ+ok3D3NM/X/in8mvcGLvl0Zb5wrA= -github.com/celestiaorg/go-square v1.1.0 h1:K4tBL5PCJwDtpBfyDxxZ3N962aC9VYb5/bw3LjagEtY= -github.com/celestiaorg/go-square v1.1.0/go.mod h1:1EXMErhDrWJM8B8V9hN7dqJ2kUTClfwdqMOmF9yQUa0= +github.com/celestiaorg/go-square v1.1.1 h1:Cy3p8WVspVcyOqHM8BWFuuYPwMitO1pYGe+ImILFZRA= +github.com/celestiaorg/go-square v1.1.1/go.mod h1:1EXMErhDrWJM8B8V9hN7dqJ2kUTClfwdqMOmF9yQUa0= +github.com/celestiaorg/go-square/v2 v2.0.0 h1:U5QV8/de5lc7glosfgyHhcxbFwNuwU4+6aYZ2RgjM04= +github.com/celestiaorg/go-square/v2 v2.0.0/go.mod h1:y0BolG0tRM7UN1sAQyDDUkT+aMJPwFIjviVvnCB62C0= github.com/celestiaorg/merkletree v0.0.0-20210714075610-a84dc3ddbbe4 h1:CJdIpo8n5MFP2MwK0gSRcOVlDlFdQJO1p+FqdxYzmvc= github.com/celestiaorg/merkletree v0.0.0-20210714075610-a84dc3ddbbe4/go.mod h1:fzuHnhzj1pUygGz+1ZkB3uQbEUL4htqCGJ4Qs2LwMZA= -github.com/celestiaorg/nmt v0.22.1 h1:t7fqoP5MJ8mBns5DB2XjfcPxQpS3CKMkY+v+BEkDxYc= -github.com/celestiaorg/nmt v0.22.1/go.mod h1:ia/EpCk0enD5yO5frcxoNoFToz2Ghtk2i+blmCRjIY8= -github.com/celestiaorg/quantum-gravity-bridge/v2 v2.1.2 h1:Q8nr5SAtDW5gocrBwqwDJcSS/JedqU58WwQA2SP+nXw= -github.com/celestiaorg/quantum-gravity-bridge/v2 v2.1.2/go.mod h1:s/LzLUw0WeYPJ6qdk4q46jKLOq7rc9Z5Mdrxtfpcigw= -github.com/celestiaorg/rsmt2d v0.13.1 h1:eRhp79DKTkDojwInKVs1lRK6f6zJc1BVlmZfUfI19yQ= -github.com/celestiaorg/rsmt2d v0.13.1/go.mod h1:P7t92OATXbBmc/P5uR+GCOBv+PV8wLb0vU32ucrb148= +github.com/celestiaorg/nmt v0.22.2 h1:JmOMtZL9zWAed1hiwb9DDs+ELcKp/ZQZ3rPverge/V8= +github.com/celestiaorg/nmt v0.22.2/go.mod h1:/7huDiSRL/d2EGhoiKctgSzmLOJoWG8yEfbFtY1+Mow= +github.com/celestiaorg/rsmt2d v0.14.0 h1:L7XJ3tRJDY8sQcvCjzHq0L7JmsmaSD+VItymIYFLqYc= +github.com/celestiaorg/rsmt2d v0.14.0/go.mod h1:4kxqiTdFev49sGiKXTDjohbWYOG5GlcIfftTgaBJnpc= github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM= github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -353,8 +355,8 @@ github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAK github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/coinbase/rosetta-sdk-go v0.7.9 h1:lqllBjMnazTjIqYrOGv8h8jxjg9+hJazIGZr9ZvoCcA= github.com/coinbase/rosetta-sdk-go v0.7.9/go.mod h1:0/knutI7XGVqXmmH4OQD8OckFrbQ8yMsUZTG7FXCR2M= -github.com/cometbft/cometbft-db v0.7.0 h1:uBjbrBx4QzU0zOEnU8KxoDl18dMNgDh+zZRUE0ucsbo= -github.com/cometbft/cometbft-db v0.7.0/go.mod h1:yiKJIm2WKrt6x8Cyxtq9YTEcIMPcEe4XPxhgX59Fzf0= +github.com/cometbft/cometbft-db v1.0.1 h1:SylKuLseMLQKw3+i8y8KozZyJcQSL98qEe2CGMCGTYE= +github.com/cometbft/cometbft-db v1.0.1/go.mod h1:EBrFs1GDRiTqrWXYi4v90Awf/gcdD5ExzdPbg4X8+mk= github.com/confio/ics23/go v0.9.1 h1:3MV46eeWwO3xCauKyAtuAdJYMyPnnchW4iLr2bTw6/U= github.com/confio/ics23/go v0.9.1/go.mod h1:4LPZ2NYqnYIVRklaozjNR1FScgDJ2s5Xrp+e/mYVRak= github.com/consensys/bavard v0.1.13 h1:oLhMLOFGTLdlda/kma4VOJazblc7IM5y5QPd2A/YjhQ= @@ -378,12 +380,14 @@ github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRAp github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= -github.com/cosmos/gogoproto v1.5.0 h1:SDVwzEqZDDBoslaeZg+dGE55hdzHfgUA40pEanMh52o= -github.com/cosmos/gogoproto v1.5.0/go.mod h1:iUM31aofn3ymidYG6bUR5ZFrk+Om8p5s754eMUcyp8I= +github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fro= +github.com/cosmos/gogoproto v1.7.0/go.mod h1:yWChEv5IUEYURQasfyBW5ffkMHR/90hiHgbNgrtp4j0= github.com/cosmos/gorocksdb v1.2.0 h1:d0l3jJG8M4hBouIZq0mDUHZ+zjOx044J3nGRskwTb4Y= github.com/cosmos/gorocksdb v1.2.0/go.mod h1:aaKvKItm514hKfNJpUJXnnOWeBnk2GL4+Qw9NHizILw= github.com/cosmos/iavl v0.19.6 h1:XY78yEeNPrEYyNCKlqr9chrwoeSDJ0bV2VjocTk//OU= github.com/cosmos/iavl v0.19.6/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6 v6.1.2 h1:Hz4nkpStoXIHrC77CIEyu2mRiN2qysGEZPFRf0fpv7w= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6 v6.1.2/go.mod h1:Jo934o/sW7fNxuOa/TjCalSalz+1Fd649eLyANaJx8g= github.com/cosmos/ibc-go/v6 v6.2.2 h1:xVnlfV+IFPMkAEuWdZpRbky1jfGcob9i+T+xQ2LRf48= github.com/cosmos/ibc-go/v6 v6.2.2/go.mod h1:XLsARy4Y7+GtAqzMcxNdlQf6lx+ti1e8KcMGv5NIK7A= github.com/cosmos/ledger-cosmos-go v0.13.2 h1:aY0KZSmUwNKbBm9OvbIjvf7Ozz2YzzpAbgvN2C8x2T0= @@ -420,11 +424,11 @@ github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= -github.com/dgraph-io/badger/v4 v4.2.0 h1:kJrlajbXXL9DFTNuhhu9yCx7JJa4qpYWxtE8BzuWsEs= -github.com/dgraph-io/badger/v4 v4.2.0/go.mod h1:qfCqhPoWDFJRx1gp5QwwyGo8xk1lbHUxvK9nK0OGAak= +github.com/dgraph-io/badger/v4 v4.3.0 h1:lcsCE1/1qrRhqP+zYx6xDZb8n7U+QlwNicpc676Ub40= +github.com/dgraph-io/badger/v4 v4.3.0/go.mod h1:Sc0T595g8zqAQRDf44n+z3wG4BOqLwceaFntt8KPxUM= github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= -github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= -github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= +github.com/dgraph-io/ristretto v0.1.2-0.20240116140435-c67e07994f91 h1:Pux6+xANi0I7RRo5E1gflI4EZ2yx3BGZ75JkAIvGEOA= +github.com/dgraph-io/ristretto v0.1.2-0.20240116140435-c67e07994f91/go.mod h1:swkazRqnUf1N62d0Nutz7KIj2UKqsm/H8tD0nBJAXqM= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= @@ -529,11 +533,10 @@ github.com/go-playground/validator/v10 v10.18.0/go.mod h1:dbuPbCMFw/DrkbEynArYaC github.com/go-sql-driver/mysql v1.7.1 h1:lUIinVbN1DY0xBg0eMOzmmtGoHwWBbvnWubQUrtU8EI= github.com/go-sql-driver/mysql v1.7.1/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/go-testfixtures/testfixtures/v3 v3.9.0 h1:938g5V+GWLVejm3Hc+nWCuEXRlcglZDDlN/t1gWzcSY= github.com/go-testfixtures/testfixtures/v3 v3.9.0/go.mod h1:cdsKD2ApFBjdog9jRsz6EJqF+LClq/hrwE9K/1Dzo4s= -github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= -github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +github.com/goccy/go-json v0.10.3 h1:KZ5WoDbxAIgm2HNbYckL0se1fHD6rz5j4ywS6ebzDqA= +github.com/goccy/go-json v0.10.3/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= @@ -550,8 +553,6 @@ github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2V github.com/golang-sql/sqlexp v0.1.0 h1:ZCD6MBpcuOVfGVqsEmY5/4FtYiKz6tSyUv9LPEDei6A= github.com/golang-sql/sqlexp v0.1.0/go.mod h1:J4ad9Vo8ZCWQ2GMrC4UCQy1JpCbwU9m3EOqtpKwwwHI= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.1 h1:OptwRhECazUx5ix5TTWC3EZhsZEHWcYWY4FQHTIubm4= -github.com/golang/glog v1.2.1/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -594,8 +595,8 @@ github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb h1:PBC98N2aIaM3XXi github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= -github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= +github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= +github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= github.com/google/flatbuffers v1.12.1 h1:MVlul7pQNoDzWRLTw5imwYsl+usrS1TXG2H4jg6ImGw= github.com/google/flatbuffers v1.12.1/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= @@ -710,9 +711,8 @@ github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjh github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo= github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoDHxNAB65b+Rj1I= +github.com/hashicorp/go-uuid v1.0.0 h1:RS8zrF7PhGwyNPOtxSClXXj9HA8feRnJzgnI1RJCSnM= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= -github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= @@ -732,6 +732,8 @@ github.com/holiman/uint256 v1.3.1/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXei github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc= github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= +github.com/iancoleman/orderedmap v0.2.0 h1:sq1N/TFpYH++aViPcaKjys3bDClUEU7s5B+z6jq8pNA= +github.com/iancoleman/orderedmap v0.2.0/go.mod h1:N0Wam8K1arqPXNWjMo21EXnBPOPp36vB07FNRdD2geA= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= @@ -785,8 +787,8 @@ github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47e github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= -github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= -github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.8 h1:+StwCXwm9PdpiEkPyzBXIy+M9KUb4ODm0Zarf1kS5BM= +github.com/klauspost/cpuid/v2 v2.2.8/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/klauspost/reedsolomon v1.12.1 h1:NhWgum1efX1x58daOBGCFWcxtEhOhXKKl1HAPQUp03Q= github.com/klauspost/reedsolomon v1.12.1/go.mod h1:nEi5Kjb6QqtbofI6s+cbG/j1da11c96IBYBSnVGtuBs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -814,6 +816,8 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= +github.com/linxGnu/grocksdb v1.9.3 h1:s1cbPcOd0cU2SKXRG1nEqCOWYAELQjdqg3RVI2MH9ik= +github.com/linxGnu/grocksdb v1.9.3/go.mod h1:QYiYypR2d4v63Wj1adOOfzglnoII0gLj3PNh4fZkcFA= github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4= github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= @@ -1031,8 +1035,6 @@ github.com/supranational/blst v0.3.13 h1:AYeSxdOMacwu7FBmpfloBz5pbFXDmJL33RuwnKt github.com/supranational/blst v0.3.13/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= -github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c h1:g+WoO5jjkqGAzHWCjJB1zZfXPIAaDpzXIEJ0eS6B5Ok= -github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c/go.mod h1:ahpPrc7HpcfEWDQRZEmnXMzHY03mLDYMCxeDzy46i+8= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= github.com/tendermint/tm-db v0.6.7 h1:fE00Cbl0jayAoqlExN6oyQJ7fR/ZtoVOmvPJ//+shu8= @@ -1043,8 +1045,8 @@ github.com/testcontainers/testcontainers-go/modules/postgres v0.32.0 h1:ZE4dTdsw github.com/testcontainers/testcontainers-go/modules/postgres v0.32.0/go.mod h1:njrNuyuoF2fjhVk6TG/R3Oeu82YwfYkbf5WVTyBXhV4= github.com/tidwall/btree v1.5.0 h1:iV0yVY/frd7r6qGBXfEYs7DH0gTDgrKTrDjS7xt/IyQ= github.com/tidwall/btree v1.5.0/go.mod h1:LGm8L/DZjPLmeWGjv5kFrY8dL4uVhMmzmmLYmsObdKE= -github.com/tidwall/gjson v1.17.1 h1:wlYEnwqAHgzmhNUFfw7Xalt2JzQvsMx2Se4PcoFCT/U= -github.com/tidwall/gjson v1.17.1/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY= +github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= @@ -1104,8 +1106,8 @@ gitlab.com/NebulousLabs/errors v0.0.0-20200929122200-06c536cf6975 h1:L/ENs/Ar1bF gitlab.com/NebulousLabs/errors v0.0.0-20200929122200-06c536cf6975/go.mod h1:ZkMZ0dpQyWwlENaeZVBiQRjhMEZvk6VTXquzl3FOFP8= gitlab.com/NebulousLabs/fastrand v0.0.0-20181126182046-603482d69e40 h1:dizWJqTWjwyD8KGcMOwgrkqu1JIkofYgKkmDeNE7oAs= gitlab.com/NebulousLabs/fastrand v0.0.0-20181126182046-603482d69e40/go.mod h1:rOnSnoRyxMI3fe/7KIbVcsHRGxe30OONv8dEgo+vCfA= -go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ= -go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= +go.etcd.io/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0= +go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I= go.mongodb.org/mongo-driver v1.11.4/go.mod h1:PTSz5yu21bkT/wXpkS7WR5f0ddqw5quethTUn9WM+2g= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= @@ -1248,8 +1250,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= -golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= +golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= +golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1275,8 +1277,8 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= -golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= -golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/oauth2 v0.22.0 h1:BzDx2FehcG7jJwgWLELCdmLuxk2i+x9UDpSiss2u0ZA= +golang.org/x/oauth2 v0.22.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1338,7 +1340,6 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1375,7 +1376,6 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1452,7 +1452,6 @@ golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82u golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= @@ -1635,8 +1634,8 @@ google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUEr4jDysRDLrm4PHePlge4v4TGAlxY= google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= -google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117 h1:+rdxYoE3E5htTEWIe15GlN6IfvbURM//Jt0mmkmm6ZU= -google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117/go.mod h1:OimBR/bc1wPO9iV4NC2bpyjy3VnAwZh5EBPQdtaE5oo= +google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 h1:wKguEg1hsxI2/L3hUYrpo1RVi48K+uTyzKqprwLXsb8= +google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142/go.mod h1:d6be+8HhtEtucleCbxpPW9PA9XwISACu8nvpPqF0BVo= google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 h1:pPJltXNxVzT4pK9yD8vR9X75DaWYYmLGMsEvBfFQZzQ= google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= @@ -1675,8 +1674,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.66.0 h1:DibZuoBznOxbDQxRINckZcUvnCEvrW9pcWIE2yF9r1c= -google.golang.org/grpc v1.66.0/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= +google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= +google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -1693,8 +1692,8 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -1737,8 +1736,8 @@ honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9 honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= mellium.im/sasl v0.3.1 h1:wE0LW6g7U83vhvxjC1IY8DnXM+EU095yeo8XClvCdfo= mellium.im/sasl v0.3.1/go.mod h1:xm59PUYpZHhgQ9ZqoJ5QaCqzWMi8IeS49dhp6plPCzw= -nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= -nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= +nhooyr.io/websocket v1.8.17 h1:KEVeLJkUywCKVsnLIDlD/5gtayKp8VoCkksHCGGfT9Y= +nhooyr.io/websocket v1.8.17/go.mod h1:rN9OFWIUwuxg4fR5tELlYC04bXYowCP9GX47ivo2l+c= pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= diff --git a/internal/storage/block.go b/internal/storage/block.go index 69e5b3a8..3828b8a4 100644 --- a/internal/storage/block.go +++ b/internal/storage/block.go @@ -38,7 +38,7 @@ type Block struct { VersionBlock uint64 `bun:"version_block" comment:"Block version"` VersionApp uint64 `bun:"version_app" comment:"App version"` - MessageTypes types.MsgTypeBits `bun:"message_types,type:bit(74)" comment:"Bit mask with containing messages"` + MessageTypes types.MsgTypeBits `bun:"message_types,type:bit(76)" comment:"Bit mask with containing messages"` Hash pkgTypes.Hex `bun:"hash" comment:"Block hash"` ParentHash pkgTypes.Hex `bun:"parent_hash" comment:"Hash of parent block"` diff --git a/internal/storage/postgres/migrations/20241025_signal_msg_types.go b/internal/storage/postgres/migrations/20241025_signal_msg_types.go new file mode 100644 index 00000000..755195f0 --- /dev/null +++ b/internal/storage/postgres/migrations/20241025_signal_msg_types.go @@ -0,0 +1,70 @@ +// SPDX-FileCopyrightText: 2024 PK Lab AG +// SPDX-License-Identifier: MIT + +package migrations + +import ( + "context" + + "github.com/uptrace/bun" +) + +func init() { + Migrations.MustRegister(upSignalMsgTypes, downSignalMsgTypes) +} + +func upSignalMsgTypes(ctx context.Context, db *bun.DB) error { + var maxLen int + if err := db.NewSelect(). + TableExpr("information_schema.columns"). + Column("character_maximum_length"). + Where("table_name = 'tx'"). + Where("column_name = 'message_types'"). + Scan(ctx, &maxLen); err != nil { + return err + } + + if maxLen == 76 { + return nil + } + + if _, err := db.ExecContext(ctx, `ALTER TYPE msg_type ADD VALUE IF NOT EXISTS 'MsgSignalVersion' AFTER 'MsgAcknowledgement'`); err != nil { + return err + } + if _, err := db.ExecContext(ctx, `ALTER TYPE msg_type ADD VALUE IF NOT EXISTS 'MsgTryUpgrade' AFTER 'MsgSignalVersion'`); err != nil { + return err + } + + if _, err := db.ExecContext(ctx, `ALTER TABLE block ADD COLUMN IF NOT EXISTS message_types_1 bit(76)`); err != nil { + return err + } + if _, err := db.ExecContext(ctx, `ALTER TABLE tx ADD COLUMN IF NOT EXISTS message_types_1 bit(76)`); err != nil { + return err + } + + if _, err := db.ExecContext(ctx, `UPDATE block SET message_types_1 = ('00' || message_types::text)::bit(76)`); err != nil { + return err + } + if _, err := db.ExecContext(ctx, `UPDATE tx SET message_types_1 = ('00' || message_types::text)::bit(76)`); err != nil { + return err + } + + if _, err := db.ExecContext(ctx, `ALTER TABLE block DROP COLUMN IF EXISTS message_types CASCADE`); err != nil { + return err + } + if _, err := db.ExecContext(ctx, `ALTER TABLE tx DROP COLUMN IF EXISTS message_types CASCADE`); err != nil { + return err + } + + if _, err := db.ExecContext(ctx, `ALTER TABLE block RENAME COLUMN message_types_1 TO message_types`); err != nil { + return err + } + if _, err := db.ExecContext(ctx, `ALTER TABLE tx RENAME COLUMN message_types_1 TO message_types`); err != nil { + return err + } + return nil +} + +func downSignalMsgTypes(_ context.Context, _ *bun.DB) error { + return nil +} diff --git a/internal/storage/postgres/scopes.go b/internal/storage/postgres/scopes.go index 0ace9c7f..d79b612b 100644 --- a/internal/storage/postgres/scopes.go +++ b/internal/storage/postgres/scopes.go @@ -38,11 +38,11 @@ func txFilter(query *bun.SelectQuery, fltrs storage.TxFilter) *bun.SelectQuery { query = sortScope(query, "id", fltrs.Sort) if !fltrs.MessageTypes.Empty() { - query = query.Where("bit_count(message_types & ?::bit(74)) > 0", fltrs.MessageTypes) + query = query.Where("bit_count(message_types & ?::bit(76)) > 0", fltrs.MessageTypes) } if !fltrs.ExcludedMessageTypes.Empty() { - query = query.Where("bit_count(message_types & ~(?::bit(74))) > 0", fltrs.ExcludedMessageTypes) + query = query.Where("bit_count(message_types & ~(?::bit(76))) > 0", fltrs.ExcludedMessageTypes) } if len(fltrs.Status) > 0 { diff --git a/internal/storage/tx.go b/internal/storage/tx.go index 6058112c..5523faea 100644 --- a/internal/storage/tx.go +++ b/internal/storage/tx.go @@ -74,7 +74,7 @@ type Tx struct { Codespace string `bun:"codespace,type:text" comment:"Codespace" stats:"filterable"` Hash []byte `bun:"hash" comment:"Transaction hash"` Memo string `bun:"memo,type:text" comment:"Note or comment to send with the transaction"` - MessageTypes types.MsgTypeBits `bun:"message_types,type:bit(74)" comment:"Bit mask with containing messages" stats:"filterable"` + MessageTypes types.MsgTypeBits `bun:"message_types,type:bit(76)" comment:"Bit mask with containing messages" stats:"filterable"` Messages []Message `bun:"rel:has-many,join:id=tx_id"` Events []Event `bun:"rel:has-many"` diff --git a/internal/storage/types/msg_type.go b/internal/storage/types/msg_type.go index cfe4f8e6..59623e6f 100644 --- a/internal/storage/types/msg_type.go +++ b/internal/storage/types/msg_type.go @@ -102,6 +102,9 @@ package types MsgTimeout, MsgTimeoutOnClose, MsgAcknowledgement, + + MsgSignalVersion, + MsgTryUpgrade ) */ //go:generate go-enum --marshal --sql --values --noprefix --names diff --git a/internal/storage/types/msg_type_bitmask.go b/internal/storage/types/msg_type_bitmask.go index cfa3757b..6453d36f 100644 --- a/internal/storage/types/msg_type_bitmask.go +++ b/internal/storage/types/msg_type_bitmask.go @@ -116,6 +116,9 @@ const ( MsgTypeBitsTimeout MsgTypeBitsTimeoutOnClose MsgTypeBitsAcknowledgement + + MsgTypeBitsSignalVersion + MsgTypeBitsTryUpgrade ) func NewMsgTypeBitMask(values ...MsgType) MsgTypeBits { @@ -289,6 +292,11 @@ func (mask *MsgTypeBits) SetByMsgType(value MsgType) { mask.SetBit(MsgTypeBitsTimeoutOnClose) case MsgAcknowledgement: mask.SetBit(MsgTypeBitsAcknowledgement) + + case MsgSignalVersion: + mask.SetBit(MsgTypeBitsSignalVersion) + case MsgTryUpgrade: + mask.SetBit(MsgTypeBitsTryUpgrade) } } @@ -569,6 +577,15 @@ func (mask MsgTypeBits) Names() []MsgType { i++ } + if mask.HasBit(MsgTypeBitsSignalVersion) { + names[i] = MsgSignalVersion + i++ + } + if mask.HasBit(MsgTypeBitsTryUpgrade) { + names[i] = MsgTryUpgrade + i++ + } + if mask.HasBit(MsgTypeBitsChannelOpenInit) { names[i] = MsgChannelOpenInit i++ @@ -638,7 +655,7 @@ var _ driver.Valuer = (*MsgTypeBits)(nil) func (mask MsgTypeBits) Value() (driver.Value, error) { if mask.value == nil { - return fmt.Sprintf("%074b", 0), nil + return fmt.Sprintf("%076b", 0), nil } - return fmt.Sprintf("%074b", mask.value), nil + return fmt.Sprintf("%076b", mask.value), nil } diff --git a/internal/storage/types/msg_type_bitmask_test.go b/internal/storage/types/msg_type_bitmask_test.go index 8a37677c..16eebe41 100644 --- a/internal/storage/types/msg_type_bitmask_test.go +++ b/internal/storage/types/msg_type_bitmask_test.go @@ -312,6 +312,14 @@ func TestMsgTypeBits_Names(t *testing.T) { name: "MsgMultiSend x2 and MsgSetWithdrawalAccess", msgType: []int{MsgTypeBitsMultiSend, MsgTypeBitsMultiSend, MsgTypeBitsSetWithdrawAddress}, want: []MsgType{MsgSetWithdrawAddress, MsgMultiSend}, + }, { + name: string(MsgTryUpgrade), + msgType: []int{MsgTypeBitsTryUpgrade}, + want: []MsgType{MsgTryUpgrade}, + }, { + name: string(MsgSignalVersion), + msgType: []int{MsgTypeBitsSignalVersion}, + want: []MsgType{MsgSignalVersion}, }, } for _, tt := range tests { @@ -635,6 +643,14 @@ func TestNewMsgTypeBitMask(t *testing.T) { name: "test 74", values: []MsgType{MsgAcknowledgement}, want: MsgTypeBits{NewBitsWithPosition(MsgTypeBitsAcknowledgement)}, + }, { + name: "test 75", + values: []MsgType{MsgTryUpgrade}, + want: MsgTypeBits{NewBitsWithPosition(MsgTypeBitsTryUpgrade)}, + }, { + name: "test 76", + values: []MsgType{MsgSignalVersion}, + want: MsgTypeBits{NewBitsWithPosition(MsgTypeBitsSignalVersion)}, }, { diff --git a/internal/storage/types/msg_type_enum.go b/internal/storage/types/msg_type_enum.go index 2f3947ca..762a2ada 100644 --- a/internal/storage/types/msg_type_enum.go +++ b/internal/storage/types/msg_type_enum.go @@ -165,6 +165,10 @@ const ( MsgTimeoutOnClose MsgType = "MsgTimeoutOnClose" // MsgAcknowledgement is a MsgType of type MsgAcknowledgement. MsgAcknowledgement MsgType = "MsgAcknowledgement" + // MsgSignalVersion is a MsgType of type MsgSignalVersion. + MsgSignalVersion MsgType = "MsgSignalVersion" + // MsgTryUpgrade is a MsgType of type MsgTryUpgrade. + MsgTryUpgrade MsgType = "MsgTryUpgrade" ) var ErrInvalidMsgType = fmt.Errorf("not a valid MsgType, try [%s]", strings.Join(_MsgTypeNames, ", ")) @@ -244,6 +248,8 @@ var _MsgTypeNames = []string{ string(MsgTimeout), string(MsgTimeoutOnClose), string(MsgAcknowledgement), + string(MsgSignalVersion), + string(MsgTryUpgrade), } // MsgTypeNames returns a list of possible string values of MsgType. @@ -330,6 +336,8 @@ func MsgTypeValues() []MsgType { MsgTimeout, MsgTimeoutOnClose, MsgAcknowledgement, + MsgSignalVersion, + MsgTryUpgrade, } } @@ -420,6 +428,8 @@ var _MsgTypeValue = map[string]MsgType{ "MsgTimeout": MsgTimeout, "MsgTimeoutOnClose": MsgTimeoutOnClose, "MsgAcknowledgement": MsgAcknowledgement, + "MsgSignalVersion": MsgSignalVersion, + "MsgTryUpgrade": MsgTryUpgrade, } // ParseMsgType attempts to convert a string to a MsgType. diff --git a/pkg/indexer/decode/handle/blob.go b/pkg/indexer/decode/handle/blob.go index e43b07e9..5da022b1 100644 --- a/pkg/indexer/decode/handle/blob.go +++ b/pkg/indexer/decode/handle/blob.go @@ -9,8 +9,8 @@ import ( "github.com/celenium-io/celestia-indexer/internal/storage" storageTypes "github.com/celenium-io/celestia-indexer/internal/storage/types" "github.com/celenium-io/celestia-indexer/pkg/indexer/decode/context" - "github.com/celestiaorg/celestia-app/pkg/namespace" - appBlobTypes "github.com/celestiaorg/celestia-app/x/blob/types" + appBlobTypes "github.com/celestiaorg/celestia-app/v3/x/blob/types" + nsPackage "github.com/celestiaorg/go-square/v2/share" "github.com/pkg/errors" ) @@ -30,13 +30,16 @@ func MsgPayForBlobs(ctx *context.Context, status storageTypes.Status, m *appBlob "share commitment sizes length=%d is less then namespaces index=%d", len(m.ShareCommitments), nsI) } - appNS := namespace.Namespace{Version: ns[0], ID: ns[1:]} + appNS, err := nsPackage.NewNamespaceFromBytes(ns) + if err != nil { + return storageTypes.MsgUnknown, nil, nil, nil, 0, errors.Wrap(err, "NewNamespaceFromBytes") + } size := int64(m.BlobSizes[nsI]) blobsSize += size namespace := storage.Namespace{ FirstHeight: ctx.Block.Height, - Version: appNS.Version, - NamespaceID: appNS.ID, + Version: appNS.Version(), + NamespaceID: appNS.ID(), PfbCount: 1, Reserved: appNS.IsReserved(), LastHeight: ctx.Block.Height, diff --git a/pkg/indexer/decode/handle/qgb.go b/pkg/indexer/decode/handle/qgb.go index 6aa7f686..d8cbbbe8 100644 --- a/pkg/indexer/decode/handle/qgb.go +++ b/pkg/indexer/decode/handle/qgb.go @@ -7,7 +7,7 @@ import ( "github.com/celenium-io/celestia-indexer/internal/storage" storageTypes "github.com/celenium-io/celestia-indexer/internal/storage/types" "github.com/celenium-io/celestia-indexer/pkg/indexer/decode/context" - qgbTypes "github.com/celestiaorg/celestia-app/x/qgb/types" + qgbTypes "github.com/celestiaorg/celestia-app/v3/x/blobstream/types" ) // MsgRegisterEVMAddress registers an evm address to a validator. diff --git a/pkg/indexer/decode/handle/signal.go b/pkg/indexer/decode/handle/signal.go new file mode 100644 index 00000000..d48b0fb0 --- /dev/null +++ b/pkg/indexer/decode/handle/signal.go @@ -0,0 +1,28 @@ +// SPDX-FileCopyrightText: 2024 PK Lab AG +// SPDX-License-Identifier: MIT + +package handle + +import ( + "github.com/celenium-io/celestia-indexer/internal/storage" + storageTypes "github.com/celenium-io/celestia-indexer/internal/storage/types" + "github.com/celenium-io/celestia-indexer/pkg/indexer/decode/context" +) + +// MsgSignalVersion - +func MsgSignalVersion(ctx *context.Context, validatorAddress string) (storageTypes.MsgType, []storage.AddressWithType, error) { + msgType := storageTypes.MsgSignalVersion + addresses, err := createAddresses(ctx, addressesData{ + {t: storageTypes.MsgAddressTypeValidator, address: validatorAddress}, + }, ctx.Block.Height) + return msgType, addresses, err +} + +// MsgTryUpgrade - +func MsgTryUpgrade(ctx *context.Context, signer string) (storageTypes.MsgType, []storage.AddressWithType, error) { + msgType := storageTypes.MsgTryUpgrade + addresses, err := createAddresses(ctx, addressesData{ + {t: storageTypes.MsgAddressTypeSigner, address: signer}, + }, ctx.Block.Height) + return msgType, addresses, err +} diff --git a/pkg/indexer/decode/handle/test/blob_test.go b/pkg/indexer/decode/handle/test/blob_test.go index 5a932672..da81a10e 100644 --- a/pkg/indexer/decode/handle/test/blob_test.go +++ b/pkg/indexer/decode/handle/test/blob_test.go @@ -11,7 +11,7 @@ import ( testsuite "github.com/celenium-io/celestia-indexer/internal/test_suite" "github.com/celenium-io/celestia-indexer/pkg/indexer/decode" "github.com/celenium-io/celestia-indexer/pkg/indexer/decode/context" - appBlobTypes "github.com/celestiaorg/celestia-app/x/blob/types" + appBlobTypes "github.com/celestiaorg/celestia-app/v3/x/blob/types" "github.com/cosmos/cosmos-sdk/types" "github.com/fatih/structs" "github.com/stretchr/testify/assert" @@ -22,7 +22,7 @@ import ( func createMsgPayForBlob() types.Msg { msgPayForBlob := appBlobTypes.MsgPayForBlobs{ Signer: "celestia1zefjxuq43xmjq9x4hhw23wkvvz6st5uhv40tys", - Namespaces: [][]byte{{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}}, + Namespaces: [][]byte{{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}}, BlobSizes: []uint32{1}, ShareCommitments: [][]byte{{176, 28, 134, 119, 32, 117, 87, 107, 231, 67, 121, 255, 209, 106, 52, 99, 88, 183, 85, 36, 67, 137, 98, 199, 144, 159, 13, 178, 111, 190, 121, 36}}, ShareVersions: []uint32{0}, @@ -65,13 +65,13 @@ func TestDecodeMsg_SuccessOnPayForBlob(t *testing.T) { Type: storageTypes.MsgPayForBlobs, TxId: 0, Data: structs.Map(msgPayForBlob), - Size: 119, + Size: 120, Namespace: []storage.Namespace{ { Id: 0, FirstHeight: blob.Height, Version: 0, - NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, + NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, Size: 1, PfbCount: 1, Reserved: false, @@ -91,7 +91,7 @@ func TestDecodeMsg_SuccessOnPayForBlob(t *testing.T) { Id: 0, FirstHeight: blob.Height, Version: 0, - NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, + NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, Size: 1, PfbCount: 1, Reserved: false, @@ -116,9 +116,9 @@ func createMultipleMsgPayForBlob() types.Msg { msgPayForBlob := appBlobTypes.MsgPayForBlobs{ Signer: "celestia1zefjxuq43xmjq9x4hhw23wkvvz6st5uhv40tys", Namespaces: [][]byte{ - {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, - {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, - {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, + {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, + {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, + {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, }, BlobSizes: []uint32{1, 2, 3}, ShareCommitments: [][]byte{ @@ -166,13 +166,13 @@ func TestDecodeMsg_ManyUpdatesInOnePayForBlob(t *testing.T) { Type: storageTypes.MsgPayForBlobs, TxId: 0, Data: structs.Map(msgPayForBlob), - Size: 251, + Size: 254, Namespace: []storage.Namespace{ { Id: 0, FirstHeight: blob.Height, Version: 0, - NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, + NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, Size: 6, PfbCount: 1, Reserved: false, @@ -192,7 +192,7 @@ func TestDecodeMsg_ManyUpdatesInOnePayForBlob(t *testing.T) { Id: 0, FirstHeight: blob.Height, Version: 0, - NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, + NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, Size: 1, PfbCount: 1, Reserved: false, @@ -212,7 +212,7 @@ func TestDecodeMsg_ManyUpdatesInOnePayForBlob(t *testing.T) { Id: 0, FirstHeight: blob.Height, Version: 0, - NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, + NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, Size: 2, PfbCount: 1, Reserved: false, @@ -232,7 +232,7 @@ func TestDecodeMsg_ManyUpdatesInOnePayForBlob(t *testing.T) { Id: 0, FirstHeight: blob.Height, Version: 0, - NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, + NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, Size: 3, PfbCount: 1, Reserved: false, @@ -288,13 +288,13 @@ func TestDecodeMsg_FailedOnPayForBlob(t *testing.T) { Type: storageTypes.MsgPayForBlobs, TxId: 0, Data: structs.Map(msgPayForBlob), - Size: 119, + Size: 120, Namespace: []storage.Namespace{ { Id: 0, FirstHeight: blob.Height, Version: 0, - NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, + NamespaceID: []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 44, 204, 197, 144, 206, 197, 121, 37, 22}, Size: 0, PfbCount: 1, Reserved: false, diff --git a/pkg/indexer/decode/handle/test/qgb_test.go b/pkg/indexer/decode/handle/test/qgb_test.go index 76a0afb9..7960fa51 100644 --- a/pkg/indexer/decode/handle/test/qgb_test.go +++ b/pkg/indexer/decode/handle/test/qgb_test.go @@ -11,7 +11,7 @@ import ( testsuite "github.com/celenium-io/celestia-indexer/internal/test_suite" "github.com/celenium-io/celestia-indexer/pkg/indexer/decode" "github.com/celenium-io/celestia-indexer/pkg/indexer/decode/context" - qgbTypes "github.com/celestiaorg/celestia-app/x/qgb/types" + qgbTypes "github.com/celestiaorg/celestia-app/v3/x/blobstream/types" "github.com/cosmos/cosmos-sdk/types" "github.com/fatih/structs" "github.com/stretchr/testify/assert" diff --git a/pkg/indexer/decode/handle/test/signal_test.go b/pkg/indexer/decode/handle/test/signal_test.go new file mode 100644 index 00000000..525f5b56 --- /dev/null +++ b/pkg/indexer/decode/handle/test/signal_test.go @@ -0,0 +1,82 @@ +// SPDX-FileCopyrightText: 2024 PK Lab AG +// SPDX-License-Identifier: MIT + +package handle_test + +import ( + "testing" + + "github.com/celenium-io/celestia-indexer/internal/storage" + storageTypes "github.com/celenium-io/celestia-indexer/internal/storage/types" + testsuite "github.com/celenium-io/celestia-indexer/internal/test_suite" + "github.com/celenium-io/celestia-indexer/pkg/indexer/decode" + "github.com/celenium-io/celestia-indexer/pkg/indexer/decode/context" + signal "github.com/celestiaorg/celestia-app/v3/x/signal/types" + "github.com/cosmos/cosmos-sdk/types" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestDecodeMsg_SuccessOnMsgSignalVersion(t *testing.T) { + valAddress, err := types.ValAddressFromBech32("celestiavaloper12zs7e3n8pjd8y8ex0cyv67ethv30mekg9rcrz9") + require.NoError(t, err) + m := signal.NewMsgSignalVersion( + valAddress, 10, + ) + blob, now := testsuite.EmptyBlock() + position := 7 + + decodeCtx := context.NewContext() + decodeCtx.Block = &storage.Block{ + Height: blob.Height, + Time: blob.Block.Time, + } + + dm, err := decode.Message(decodeCtx, m, position, storageTypes.StatusSuccess) + + addressesExpected, msgExpected := createExpectations( + blob, now, m, position, + storageTypes.MsgAddressTypeValidator, + "celestiavaloper12zs7e3n8pjd8y8ex0cyv67ethv30mekg9rcrz9", + []byte{0x50, 0xa1, 0xec, 0xc6, 0x67, 0x0c, 0x9a, 0x72, 0x1f, 0x26, 0x7e, 0x08, 0xcd, 0x7b, 0x2b, 0xbb, 0x22, 0xfd, 0xe6, 0xc8}, + storageTypes.MsgSignalVersion, + 58, + ) + + assert.NoError(t, err) + assert.Equal(t, int64(0), dm.BlobsSize) + assert.Equal(t, msgExpected, dm.Msg) + assert.Equal(t, addressesExpected, dm.Addresses) +} + +func TestDecodeMsg_SuccessOnMsgTryUpgrade(t *testing.T) { + valAddress, err := types.AccAddressFromBech32("celestia12zs7e3n8pjd8y8ex0cyv67ethv30mekgqu665r") + require.NoError(t, err) + m := signal.NewMsgTryUpgrade( + valAddress, + ) + blob, now := testsuite.EmptyBlock() + position := 7 + + decodeCtx := context.NewContext() + decodeCtx.Block = &storage.Block{ + Height: blob.Height, + Time: blob.Block.Time, + } + + dm, err := decode.Message(decodeCtx, m, position, storageTypes.StatusSuccess) + + addressesExpected, msgExpected := createExpectations( + blob, now, m, position, + storageTypes.MsgAddressTypeSigner, + "celestia12zs7e3n8pjd8y8ex0cyv67ethv30mekgqu665r", + []byte{0x50, 0xa1, 0xec, 0xc6, 0x67, 0x0c, 0x9a, 0x72, 0x1f, 0x26, 0x7e, 0x08, 0xcd, 0x7b, 0x2b, 0xbb, 0x22, 0xfd, 0xe6, 0xc8}, + storageTypes.MsgTryUpgrade, + 49, + ) + + assert.NoError(t, err) + assert.Equal(t, int64(0), dm.BlobsSize) + assert.Equal(t, msgExpected, dm.Msg) + assert.Equal(t, addressesExpected, dm.Addresses) +} diff --git a/pkg/indexer/decode/message.go b/pkg/indexer/decode/message.go index 0124cf79..71977303 100644 --- a/pkg/indexer/decode/message.go +++ b/pkg/indexer/decode/message.go @@ -24,8 +24,9 @@ import ( "github.com/celenium-io/celestia-indexer/internal/storage" storageTypes "github.com/celenium-io/celestia-indexer/internal/storage/types" - appBlobTypes "github.com/celestiaorg/celestia-app/x/blob/types" - qgbTypes "github.com/celestiaorg/celestia-app/x/qgb/types" + appBlobTypes "github.com/celestiaorg/celestia-app/v3/x/blob/types" + qgbTypes "github.com/celestiaorg/celestia-app/v3/x/blobstream/types" + appSignalTypes "github.com/celestiaorg/celestia-app/v3/x/signal/types" cosmosTypes "github.com/cosmos/cosmos-sdk/types" cosmosVestingTypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" cosmosBankTypes "github.com/cosmos/cosmos-sdk/x/bank/types" @@ -288,6 +289,12 @@ func Message( case *coreChannel.MsgAcknowledgement: d.Msg.Type, d.Msg.Addresses, err = handle.MsgAcknowledgement(ctx, typedMsg) + // signal module + case *appSignalTypes.MsgSignalVersion: + d.Msg.Type, d.Msg.Addresses, err = handle.MsgSignalVersion(ctx, typedMsg.GetValidatorAddress()) + case *appSignalTypes.MsgTryUpgrade: + d.Msg.Type, d.Msg.Addresses, err = handle.MsgTryUpgrade(ctx, typedMsg.GetSigner()) + default: log.Err(errors.New("unknown message type")).Msgf("got type %T", msg) d.Msg.Type = storageTypes.MsgUnknown diff --git a/pkg/indexer/decode/tx.go b/pkg/indexer/decode/tx.go index 81845ac7..5e597a9d 100644 --- a/pkg/indexer/decode/tx.go +++ b/pkg/indexer/decode/tx.go @@ -6,8 +6,8 @@ package decode import ( "github.com/celenium-io/celestia-indexer/internal/currency" "github.com/celenium-io/celestia-indexer/pkg/types" - "github.com/celestiaorg/celestia-app/app" - "github.com/celestiaorg/celestia-app/app/encoding" + "github.com/celestiaorg/celestia-app/v3/app" + "github.com/celestiaorg/celestia-app/v3/app/encoding" cosmosTypes "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/tx" "github.com/pkg/errors" diff --git a/pkg/indexer/parser/blob.go b/pkg/indexer/parser/blob.go index 641d815f..6cb26c27 100644 --- a/pkg/indexer/parser/blob.go +++ b/pkg/indexer/parser/blob.go @@ -8,12 +8,12 @@ import ( "github.com/celenium-io/celestia-indexer/internal/storage" "github.com/celenium-io/celestia-indexer/pkg/indexer/decode" - "github.com/celestiaorg/celestia-app/pkg/appconsts" - appshares "github.com/celestiaorg/celestia-app/pkg/shares" + "github.com/celestiaorg/celestia-app/v3/pkg/appconsts" + appshares "github.com/celestiaorg/go-square/v2/share" "github.com/shopspring/decimal" ) -var gasPerBlobByte = decimal.NewFromInt(appconsts.DefaultGasPerBlobByte) +var gasPerBlobByte = decimal.NewFromInt(int64(appconsts.DefaultGasPerBlobByte)) func processBlob(blobs []*storage.BlobLog, d decode.DecodedTx, t *storage.Tx) { if len(blobs) == 0 || len(d.Blobs) != len(blobs) { diff --git a/test/data/block.yml b/test/data/block.yml index f31e4af6..d3c409a7 100644 --- a/test/data/block.yml +++ b/test/data/block.yml @@ -14,7 +14,7 @@ last_results_hash: 0xE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855 evidence_hash: 0xE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855 proposer_id: 1 - message_types: "00000000000000000000000000000000000000000000000000000000000000000101000100" + message_types: "0000000000000000000000000000000000000000000000000000000000000000000101000100" - id: 1 height: 999 hash: 0x5F7A8DDFE6136FE76B65B9066D4F816D707F28C05B3362D66084664C5B39BA98 @@ -31,4 +31,4 @@ last_results_hash: 0xE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855 evidence_hash: 0xE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855 proposer_id: 1 - message_types: "00000000000000000000000000000000000000000000000000000000000000000000000000" + message_types: "0000000000000000000000000000000000000000000000000000000000000000000000000000" diff --git a/test/data/rollback/block.yml b/test/data/rollback/block.yml index 8e396aba..5b4456fe 100644 --- a/test/data/rollback/block.yml +++ b/test/data/rollback/block.yml @@ -14,7 +14,7 @@ last_results_hash: 0x3330C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B333 evidence_hash: 0x3330C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B333 proposer_id: 1 - message_types: "00000000000000000000000000000000000000000000000000000000000000000001000100" + message_types: "0000000000000000000000000000000000000000000000000000000000000000000001000100" - id: 2 height: 1000 @@ -32,7 +32,7 @@ last_results_hash: 0xE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855 evidence_hash: 0xE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855 proposer_id: 1 - message_types: "00000000000000000000000000000000000000000000000000000000000000000101000100" + message_types: "0000000000000000000000000000000000000000000000000000000000000000000101000100" - id: 1 height: 999 @@ -50,4 +50,4 @@ last_results_hash: 0x1110C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B111 evidence_hash: 0x1110C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B111 proposer_id: 1 - message_types: "00000000000000000000000000000000000000000000000000000000000000000000000000" + message_types: "0000000000000000000000000000000000000000000000000000000000000000000000000000" diff --git a/test/data/rollback/tx.yml b/test/data/rollback/tx.yml index 0212745e..e1e6cb66 100644 --- a/test/data/rollback/tx.yml +++ b/test/data/rollback/tx.yml @@ -12,7 +12,7 @@ status: success codespace: sdk memo: memo - message_types: "00000000000000000000000000000000000000000000000000000000000000000001000100" + message_types: "0000000000000000000000000000000000000000000000000000000000000000000001000100" - id: 2 hash: 0x652452A670011D629CC116E510BA88C1CABE061336661B1F3D206D248BD55811 height: 1000 @@ -27,7 +27,7 @@ status: success codespace: memo: memo2 - message_types: "00000000000000000000000000000000000000000000000000000000000000000100000000" + message_types: "0000000000000000000000000000000000000000000000000000000000000000000100000000" - id: 3 hash: 0xBA37478C3E9A804697271ACC474D484E9160899C86E551D737EEA819FCC75003 height: 999 @@ -42,4 +42,4 @@ status: success codespace: memo: - message_types: "00000000000000000000000000000000000000000000000000000000000000000000100000" \ No newline at end of file + message_types: "0000000000000000000000000000000000000000000000000000000000000000000000100000" \ No newline at end of file diff --git a/test/data/tx.yml b/test/data/tx.yml index 0a1e4eb2..759d4f33 100644 --- a/test/data/tx.yml +++ b/test/data/tx.yml @@ -12,7 +12,7 @@ status: success codespace: sdk memo: memo - message_types: "00000000000000000000000000000000000000000000000000000000000000000001000100" + message_types: "0000000000000000000000000000000000000000000000000000000000000000000001000100" - id: 2 hash: 0x652452A670011D629CC116E510BA88C1CABE061336661B1F3D206D248BD55811 @@ -28,7 +28,7 @@ status: success codespace: memo: memo2 - message_types: "00000000000000000000000000000000000000000000000000000000000000100000000000" + message_types: "0000000000000000000000000000000000000000000000000000000000000000100000000000" - id: 3 hash: 0xBA37478C3E9A804697271ACC474D484E9160899C86E551D737EEA819FCC75003 @@ -44,7 +44,7 @@ status: success codespace: memo: - message_types: "00000000000000000000000000000000000000000000000000000000000000000000100000" + message_types: "0000000000000000000000000000000000000000000000000000000000000000000000100000" - id: 4 hash: @@ -60,4 +60,4 @@ status: success codespace: memo: 34499b1ac473fbb03894c883178ecc83f0d6eaf6@64.227.18.169:26656 - message_types: "00000000000000000000000000000000000000000000000000000000000000000000100000" \ No newline at end of file + message_types: "0000000000000000000000000000000000000000000000000000000000000000000000100000" \ No newline at end of file