diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 501e388e..2bfcce80 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -32,3 +32,24 @@ jobs: with: version: latest args: --timeout 10m --tests=false --skip-dirs="e2e" + + protobuf: + runs-on: ubuntu-latest + env: + GOPRIVATE: github.com/sedaprotocol/vrf-go + GITHUB_TOKEN: ${{ secrets.PAT }} + steps: + - uses: actions/checkout@v4 + - name: Install Buf + uses: bufbuild/buf-setup-action@v1.26.1 + - name: Lint Proto + run: make proto-lint + - name: clang-format Check + uses: jidicula/clang-format-action@v4.11.0 + with: + clang-format-version: 17 + check: true + diff: true + extensions: .proto + path: proto + style: file diff --git a/DEVELOPING.md b/DEVELOPING.md index c2b0f1ce..efe8d56a 100644 --- a/DEVELOPING.md +++ b/DEVELOPING.md @@ -86,7 +86,7 @@ We also need some dependencies to make protobuf work for cosmos. The `buf` tool. - Linux: - - `curl -sSL https://github.com/bufbuild/buf/releases/download/v1.0.0-rc1/buf-Linux-x86_64 -o buf && chmod +x buf && sudo mv buf /usr/local/bin` + - `curl -sSL https://github.com/bufbuild/buf/releases/download/v1.28.1/buf-Linux-x86_64 -o buf && chmod +x buf && sudo mv buf /usr/local/bin` - Macos: - Using [brew](https://brew.sh/): `brew install bufbuild/buf/buf` - Using [macports](https://www.macports.org/): `sudo port install buf` diff --git a/Makefile b/Makefile index 73252a91..8d14bbbe 100644 --- a/Makefile +++ b/Makefile @@ -148,7 +148,7 @@ lint: ### Protobuf ### ############################################################################### -proto-all: proto-gen proto-format proto-lint +proto-all: proto-gen proto-fmt proto-lint proto-dep-install: @go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@latest @@ -171,7 +171,7 @@ proto-update-deps: @echo "Updating Protobuf dependencies" @buf mod update ./proto -.PHONY: proto-gen proto-lint proto-update-deps +.PHONY: proto-gen proto-fmt proto-lint proto-update-deps ############################################################################### ## Tests ## diff --git a/go.mod b/go.mod index 2acf720b..3b1374fa 100644 --- a/go.mod +++ b/go.mod @@ -225,6 +225,7 @@ require ( gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect gotest.tools/v3 v3.5.1 // indirect + mvdan.cc/gofumpt v0.5.0 // indirect nhooyr.io/websocket v1.8.6 // indirect pgregory.net/rapid v1.1.0 // indirect sigs.k8s.io/yaml v1.4.0 // indirect diff --git a/go.sum b/go.sum index de1c4921..09bc552f 100644 --- a/go.sum +++ b/go.sum @@ -1787,6 +1787,8 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +mvdan.cc/gofumpt v0.5.0 h1:0EQ+Z56k8tXjj/6TQD25BFNKQXpCvT0rnansIc7Ug5E= +mvdan.cc/gofumpt v0.5.0/go.mod h1:HBeVDtMKRZpXyxFciAirzdKklDlGu8aAy1wEbH5Y9js= nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= diff --git a/go.work.sum b/go.work.sum index 246efc71..f426a727 100644 --- a/go.work.sum +++ b/go.work.sum @@ -286,7 +286,6 @@ github.com/Shopify/goreferrer v0.0.0-20220729165902-8cddb4f5de06/go.mod h1:7erjK github.com/VictoriaMetrics/fastcache v1.12.1/go.mod h1:tX04vaqcNoQeGLD+ra5pU5sWkuxnzWhEzLwhP9w653o= github.com/aclements/go-gg v0.0.0-20170118225347-6dbb4e4fefb0/go.mod h1:55qNq4vcpkIuHowELi5C8e+1yUHtoLoOUR9QU5j7Tes= github.com/aclements/go-moremath v0.0.0-20210112150236-f10218a38794/go.mod h1:7e+I0LQFUI9AXWxOfsQROs9xPhoJtbsyWcjJqDd4KPY= -github.com/acomagu/bufpipe v1.0.4/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY= github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= github.com/ajstarks/svgo v0.0.0-20210923152817-c3b6e2f0c527/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= @@ -297,10 +296,8 @@ github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqr github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= -github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= github.com/ashanbrown/forbidigo v1.5.1/go.mod h1:Y8j9jy9ZYAEHXdu723cUlraTqbzjKF1MUyfOKL+AjcU= github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= github.com/aws/aws-sdk-go-v2 v1.21.2/go.mod h1:ErQhvNuEMhJjweavOYhxVkn2RUx7kQXVATHrjKtxIpM= @@ -352,8 +349,6 @@ github.com/chromedp/sysutil v1.0.0/go.mod h1:kgWmDdq8fTzXYcKIBqIYvRRTnYb9aNS9moA github.com/chzyer/logex v1.2.0/go.mod h1:9+9sk7u7pGNWYMkh0hdiL++6OeibzJccyQU4p4MedaY= github.com/chzyer/readline v1.5.0/go.mod h1:x22KAscuvRqlLoK9CsoYsmxoXZMMFVyOl86cAH8qUic= github.com/chzyer/test v0.0.0-20210722231415-061457976a23/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I= -github.com/cloudflare/circl v1.3.1/go.mod h1:+CauBF6R70Jqcyl8N2hC8pAXYbWkGIezuSbuGLtRhnw= github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= github.com/cloudflare/cloudflare-go v0.79.0/go.mod h1:gkHQf9xEubaQPEuerBuoinR9P8bf8a05Lq0X6WKy1Oc= github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= @@ -444,7 +439,6 @@ github.com/getsentry/sentry-go v0.23.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w github.com/ghemawat/stream v0.0.0-20171120220530-696b145b53b9/go.mod h1:106OIgooyS7OzLDOpUGgm9fA3bQENb/cFSyyBmMoJDs= github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-gonic/gin v1.4.0/go.mod h1:OW2EZn3DO8Ln9oIKOvM++LBO+5UPHJJDH72/q/3rZdM= -github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4= github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs= github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= @@ -473,6 +467,7 @@ github.com/go-pdf/fpdf v0.5.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhO github.com/go-playground/validator/v10 v10.10.0/go.mod h1:74x4gJWsvQexRdW8Pn3dXSGrTK4nAUsbPlLADvpJkos= github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/go-stack/stack v1.8.1 h1:ntEHSVwIt7PNXNpgPmVfMrNhLtgjlmnZha2kOpuRiDw= github.com/go-stack/stack v1.8.1/go.mod h1:dcoOX6HbPZSZptuspn9bctJ+N/CnF5gGygcUP3XYfe4= github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= github.com/go-toolsmith/astcast v1.1.0/go.mod h1:qdcuFWeGGS2xX5bLM/c3U9lewg7+Zu4mr+xPwZIB4ZU= @@ -684,7 +679,6 @@ github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXx github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= github.com/mmcloughlin/addchain v0.4.0/go.mod h1:A86O+tHqZLMNO4w6ZZ4FlVQEadcoqkyU72HC5wJ4RlU= -github.com/mmcloughlin/avo v0.5.0/go.mod h1:ChHFdoV7ql95Wi7vuq2YT1bwCJqiWdZrQ1im3VujLYM= github.com/mmcloughlin/profile v0.1.1/go.mod h1:IhHD7q1ooxgwTgjxQYkACGA77oFTDdFVejUS1/tS/qU= github.com/moricho/tparallel v0.3.0/go.mod h1:leENX2cUv7Sv2qDgdi0D0fCftN8fRC67Bcn8pqzeYNI= github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ= @@ -753,7 +747,6 @@ github.com/quasilyte/go-ruleguard v0.4.0/go.mod h1:Eu76Z/R8IXtViWUIHkE3p8gdH3/PK github.com/quasilyte/gogrep v0.5.0/go.mod h1:Cm9lpz9NZjEoL1tgZ2OgeUKPIxL1meE7eo60Z6Sk+Ng= github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= -github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= @@ -917,6 +910,7 @@ golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190327091125-710a502c58a2/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= @@ -970,6 +964,7 @@ golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1016,7 +1011,7 @@ golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= golang.org/x/tools v0.4.0/go.mod h1:UE5sM2OK9E/d67R0ANs2xJizIymRP5gJU295PvKXxjQ= golang.org/x/tools v0.5.0/go.mod h1:N+Kgy78s5I24c24dU8OfWNEotWjutIs8SnJvn5IDq+k= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= +golang.org/x/tools v0.8.0/go.mod h1:JxBZ99ISMI5ViVkT1tr6tdNmXeTrcpVSD3vZ1RsRdN4= golang.org/x/tools v0.9.3/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= golang.org/x/tools v0.15.0/go.mod h1:hpksKq4dtpQWS1uQ61JkdqWM3LscIS6Slf+VVkm+wQk= diff --git a/interchaintest/chain_core_test.go b/interchaintest/chain_core_test.go index 2ca83ee4..73b27068 100644 --- a/interchaintest/chain_core_test.go +++ b/interchaintest/chain_core_test.go @@ -4,7 +4,6 @@ import ( "context" "fmt" "math" - "testing" "time" @@ -91,6 +90,7 @@ func TestCoreSDKCommands(t *testing.T) { } func testAuth(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain) { + t.Helper() govAddr, err := chain.AuthQueryModuleAddress(ctx, "gov") require.NoError(t, err) require.NotEmpty(t, govAddr) @@ -125,6 +125,7 @@ func testAuth(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain) { } func testUpgrade(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain) { + t.Helper() v, err := chain.UpgradeQueryAllModuleVersions(ctx) require.NoError(t, err) require.NotEmpty(t, v) @@ -142,6 +143,7 @@ func testUpgrade(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain) { } func testAuthz(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain, users []ibc.Wallet) { + t.Helper() granter := users[0].FormattedAddress() grantee := users[1].FormattedAddress() @@ -200,6 +202,7 @@ func testAuthz(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain, use } func testBank(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain, users []ibc.Wallet) { + t.Helper() user0 := users[0].FormattedAddress() user1 := users[1].FormattedAddress() user2 := users[2].FormattedAddress() @@ -250,6 +253,7 @@ func testBank(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain, user } func testDistribution(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain, users []ibc.Wallet) { + t.Helper() var err error node := chain.GetNode() acc := authtypes.NewModuleAddress("distribution") @@ -359,6 +363,7 @@ func testDistribution(ctx context.Context, t *testing.T, chain *cosmos.CosmosCha } func testFeeGrant(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain, users []ibc.Wallet) { + t.Helper() var err error node := chain.GetNode() @@ -418,6 +423,7 @@ func testFeeGrant(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain, } func testSlashing(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain) { + t.Helper() p, err := chain.SlashingQueryParams(ctx) require.NoError(t, err) require.NotNil(t, p) @@ -432,6 +438,7 @@ func testSlashing(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain) } func testStaking(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain, users []ibc.Wallet) { + t.Helper() vals, err := chain.StakingQueryValidators(ctx, stakingtypes.Bonded.String()) require.NoError(t, err) require.NotEmpty(t, vals) @@ -467,7 +474,6 @@ func testStaking(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain, u require.NoError(t, err) require.NotEmpty(t, delVals) require.True(t, delVals[0].OperatorAddress == val) - }) t.Run("misc", func(t *testing.T) { diff --git a/interchaintest/chain_start_test.go b/interchaintest/chain_start_test.go index a41021cf..9834f5e7 100644 --- a/interchaintest/chain_start_test.go +++ b/interchaintest/chain_start_test.go @@ -29,7 +29,7 @@ func TestChainStart(t *testing.T) { users := interchaintest.GetAndFundTestUsers(t, ctx, t.Name(), userFunds, chain) chainUser := users[0] - conformance.ConformanceCosmWasm(t, ctx, chain, chainUser) + conformance.CosmWasm(t, ctx, chain, chainUser) require.NotNil(t, ic) require.NotNil(t, ctx) diff --git a/interchaintest/chain_upgrade_test.go b/interchaintest/chain_upgrade_test.go index 394f0920..d31528d6 100644 --- a/interchaintest/chain_upgrade_test.go +++ b/interchaintest/chain_upgrade_test.go @@ -43,6 +43,7 @@ func TestChainUpgrade(t *testing.T) { } func BasicUpgradeTest(t *testing.T, upgradeVersion, upgradeRepo, upgradeName string) { + t.Helper() if testing.Short() { t.Skip("skipping in short mode") } @@ -80,10 +81,12 @@ func BasicUpgradeTest(t *testing.T, upgradeVersion, upgradeRepo, upgradeName str UpgradeNodes(t, ctx, chain, client, haltHeight, upgradeRepo, upgradeVersion) // test conformance after upgrade - conformance.ConformanceCosmWasm(t, ctx, chain, chainUser) + conformance.CosmWasm(t, ctx, chain, chainUser) } +//revive:disable-next-line:context-as-argument func UpgradeNodes(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, client *client.Client, haltHeight uint64, upgradeRepo, upgradeVersion string) { + t.Helper() stopNodes(t, ctx, chain) upgradeNodes(t, ctx, chain, client, upgradeRepo, upgradeVersion) startNodes(t, ctx, chain) @@ -91,6 +94,7 @@ func UpgradeNodes(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, checkHeight(t, ctx, chain, haltHeight) } +//revive:disable-next-line:context-as-argument func fundChainUser(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain) ibc.Wallet { t.Helper() userFunds := math.NewInt(10_000_000_000) @@ -115,7 +119,9 @@ func getTestGenesis() []cosmos.GenesisKV { } } +//revive:disable-next-line:context-as-argument func stopNodes(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain) { + t.Helper() t.Log("stopping node(s)") err := chain.StopAllNodes(ctx) if err != nil { @@ -123,12 +129,16 @@ func stopNodes(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain) { } } +//revive:disable-next-line:context-as-argument func upgradeNodes(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, client *client.Client, upgradeRepo, upgradeVersion string) { + t.Helper() t.Log("upgrading node(s)") chain.UpgradeVersion(ctx, client, upgradeRepo, upgradeVersion) } +//revive:disable-next-line:context-as-argument func startNodes(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain) { + t.Helper() t.Log("starting node(s)") err := chain.StartAllNodes(ctx) if err != nil { @@ -136,7 +146,9 @@ func startNodes(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain) { } } +//revive:disable-next-line:context-as-argument func waitForBlocks(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain) { + t.Helper() timeoutCtx, timeoutCtxCancel := context.WithTimeout(ctx, time.Second*60) defer timeoutCtxCancel() @@ -146,7 +158,9 @@ func waitForBlocks(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain) } } +//revive:disable-next-line:context-as-argument func checkHeight(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, haltHeight uint64) { + t.Helper() height, err := chain.Height(ctx) if err != nil { t.Fatalf("error fetching height after upgrade: %v", err) @@ -157,7 +171,14 @@ func checkHeight(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, h } } -func ValidatorVoting(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, proposalID string, currentHeight uint64, haltHeight uint64) { +// see https://github.com/golangci/golangci-lint/issues/741 +// Ignore SA4009 throughout the file due to specific use case. +// +//nolint:staticcheck // SA4009 disable staticcheck since there is a bug where you can't ignore a single lint check: +//revive:disable-next-line:context-as-argument +func ValidatorVoting(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, proposalID string, currentHeight, haltHeight uint64) { + t.Helper() + err := chain.VoteOnProposalAllValidators(ctx, proposalID, cosmos.ProposalVoteYes) require.NoError(t, err, "failed to submit votes") @@ -185,7 +206,9 @@ func ValidatorVoting(t *testing.T, ctx context.Context, chain *cosmos.CosmosChai require.Equal(t, haltHeight, currentHeight, "height is not equal to halt height") } +//revive:disable-next-line:context-as-argument func SubmitUpgradeProposal(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, upgradeName string) (uint64, string) { + t.Helper() currentHeight, err := chain.Height(ctx) require.NoError(t, err, "error fetching height before submit upgrade proposal") diff --git a/interchaintest/conformance/cosmwasm.go b/interchaintest/conformance/cosmwasm.go index 1043881d..de2067c9 100644 --- a/interchaintest/conformance/cosmwasm.go +++ b/interchaintest/conformance/cosmwasm.go @@ -12,12 +12,15 @@ import ( "github.com/sedaprotocol/seda-chain/interchaintest/types" ) -// ConformanceCosmWasm validates that store, instantiate, execute, and query work on a CosmWasm contract. -func ConformanceCosmWasm(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet) { +// CosmWasm validates that store, instantiate, execute, and query work on a CosmWasm contract. +// +//revive:disable-next-line:context-as-argument +func CosmWasm(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet) { t.Helper() basic(t, ctx, chain, user) } +//revive:disable-next-line:context-as-argument func basic(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet) { t.Helper() _, contractAddr := helpers.SetupAndInstantiateContract(t, ctx, chain, user.KeyName(), "contracts/cw_template.wasm", `{"count":0}`) diff --git a/interchaintest/helpers/cosmwasm.go b/interchaintest/helpers/cosmwasm.go index a20ff8e2..a1036013 100644 --- a/interchaintest/helpers/cosmwasm.go +++ b/interchaintest/helpers/cosmwasm.go @@ -14,6 +14,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) +//revive:disable-next-line:context-as-argument func SmartQueryString(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, contractAddr, queryMsg string, res interface{}) error { t.Helper() var jsonMap map[string]interface{} @@ -24,9 +25,10 @@ func SmartQueryString(t *testing.T, ctx context.Context, chain *cosmos.CosmosCha return err } -func SetupAndInstantiateContract(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, keyname, fileLoc, message string, extraFlags ...string) (codeId, contract string) { +//revive:disable-next-line:context-as-argument +func SetupAndInstantiateContract(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, keyname, fileLoc, message string, extraFlags ...string) (codeID, contract string) { t.Helper() - codeId, err := chain.StoreContract(ctx, keyname, fileLoc) + codeID, err := chain.StoreContract(ctx, keyname, fileLoc) if err != nil { t.Fatal(err) } @@ -38,24 +40,25 @@ func SetupAndInstantiateContract(t *testing.T, ctx context.Context, chain *cosmo } } - contractAddr, err := chain.InstantiateContract(ctx, keyname, codeId, message, needsNoAdminFlag, extraFlags...) + contractAddr, err := chain.InstantiateContract(ctx, keyname, codeID, message, needsNoAdminFlag, extraFlags...) if err != nil { t.Fatal(err) } - return codeId, contractAddr + return codeID, contractAddr } -func MigrateContract(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, keyname, contractAddr, fileLoc, message string) (codeId, contract string) { +//revive:disable-next-line:context-as-argument +func MigrateContract(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, keyname, contractAddr, fileLoc, message string) (codeID, contract string) { t.Helper() - codeId, err := chain.StoreContract(ctx, keyname, fileLoc) + codeID, err := chain.StoreContract(ctx, keyname, fileLoc) if err != nil { t.Fatal(err) } // Execute migrate tx cmd := []string{ - "seda-chaind", "tx", "wasm", "migrate", contractAddr, codeId, message, + "seda-chaind", "tx", "wasm", "migrate", contractAddr, codeID, message, "--node", chain.GetRPCAddress(), "--home", chain.HomeDir(), "--chain-id", chain.Config().ChainID, @@ -75,9 +78,10 @@ func MigrateContract(t *testing.T, ctx context.Context, chain *cosmos.CosmosChai t.Fatal(err) } - return codeId, contractAddr + return codeID, contractAddr } +//revive:disable-next-line:context-as-argument func ExecuteMsgWithAmount(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, contractAddr, amount, message string) { t.Helper() cmd := buildCmd(chain, user, contractAddr, amount, "", message) @@ -91,6 +95,7 @@ func ExecuteMsgWithAmount(t *testing.T, ctx context.Context, chain *cosmos.Cosmo } } +//revive:disable-next-line:context-as-argument func ExecuteMsgWithFee(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, contractAddr, amount, feeCoin, message string) { t.Helper() cmd := buildCmd(chain, user, contractAddr, amount, feeCoin, message) @@ -104,6 +109,7 @@ func ExecuteMsgWithFee(t *testing.T, ctx context.Context, chain *cosmos.CosmosCh } } +//revive:disable-next-line:context-as-argument func ExecuteMsgWithFeeReturn(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user ibc.Wallet, contractAddr, amount, feeCoin, message string) (*sdk.TxResponse, error) { t.Helper() // amount is #utoken diff --git a/interchaintest/ibc_transfer_test.go b/interchaintest/ibc_transfer_test.go index 8ec5b377..bc5fe800 100644 --- a/interchaintest/ibc_transfer_test.go +++ b/interchaintest/ibc_transfer_test.go @@ -42,6 +42,7 @@ func TestIBCTransfer(t *testing.T) { } func runIBCTransferTest(t *testing.T, counterpartyChainSpec *interchaintest.ChainSpec, numVals, numFullNodes int) { + t.Helper() /* =================================================== */ /* CHAIN FACTORY */ /* =================================================== */ @@ -142,7 +143,7 @@ func runIBCTransferTest(t *testing.T, counterpartyChainSpec *interchaintest.Chai /* =================================================== */ /* INTERCHAIN TEST */ /* =================================================== */ - var transferAmount = math.NewInt(1_000) + transferAmount := math.NewInt(1_000) // Compose an IBC transfer and send from Seda -> Gaia transfer := ibc.WalletAmount{ diff --git a/interchaintest/pfm_test.go b/interchaintest/pfm_test.go index 04edf359..f332fcc9 100644 --- a/interchaintest/pfm_test.go +++ b/interchaintest/pfm_test.go @@ -43,27 +43,27 @@ func TestPacketForwardMiddleware(t *testing.T) { } var ( - ctx = context.Background() - client, network = interchaintest.DockerSetup(t) - rep = testreporter.NewNopReporter() - eRep = rep.RelayerExecReporter(t) - chainID_A, chainID_B, chainID_C, chainID_D = "chain-a", "chain-b", "chain-c", "chain-d" - chainA, chainB, chainC, chainD *cosmos.CosmosChain + ctx = context.Background() + client, network = interchaintest.DockerSetup(t) + rep = testreporter.NewNopReporter() + eRep = rep.RelayerExecReporter(t) + chainIDA, chainIDB, chainIDC, chainIDD = "chain-a", "chain-b", "chain-c", "chain-d" + chainA, chainB, chainC, chainD *cosmos.CosmosChain ) baseCfg := SedaCfg baseCfg.ModifyGenesis = cosmos.ModifyGenesis(getTestGenesis()) - baseCfg.ChainID = chainID_A + baseCfg.ChainID = chainIDA configA := baseCfg - baseCfg.ChainID = chainID_B + baseCfg.ChainID = chainIDB configB := baseCfg - baseCfg.ChainID = chainID_C + baseCfg.ChainID = chainIDC configC := baseCfg - baseCfg.ChainID = chainID_D + baseCfg.ChainID = chainIDD configD := baseCfg cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{ @@ -150,17 +150,17 @@ func TestPacketForwardMiddleware(t *testing.T) { userFunds := math.NewInt(10_000_000_000) users := interchaintest.GetAndFundTestUsers(t, ctx, t.Name(), userFunds, chainA, chainB, chainC, chainD) - abChan, err := ibc.GetTransferChannel(ctx, r, eRep, chainID_A, chainID_B) + abChan, err := ibc.GetTransferChannel(ctx, r, eRep, chainIDA, chainIDB) require.NoError(t, err) baChan := abChan.Counterparty - cbChan, err := ibc.GetTransferChannel(ctx, r, eRep, chainID_C, chainID_B) + cbChan, err := ibc.GetTransferChannel(ctx, r, eRep, chainIDC, chainIDB) require.NoError(t, err) bcChan := cbChan.Counterparty - dcChan, err := ibc.GetTransferChannel(ctx, r, eRep, chainID_D, chainID_C) + dcChan, err := ibc.GetTransferChannel(ctx, r, eRep, chainIDD, chainIDC) require.NoError(t, err) cdChan := dcChan.Counterparty @@ -181,7 +181,7 @@ func TestPacketForwardMiddleware(t *testing.T) { // Get original account balances userA, userB, userC, userD := users[0], users[1], users[2], users[3] - var transferAmount math.Int = math.NewInt(100_000) + transferAmount := math.NewInt(100_000) // Compose the prefixed denoms and ibc denom for asserting balances firstHopDenom := transfertypes.GetPrefixedDenom(baChan.PortID, baChan.ChannelID, chainA.Config().Denom) diff --git a/interchaintest/sdk_boundaries_test.go b/interchaintest/sdk_boundaries_test.go index 8a9b259f..2a4befe1 100644 --- a/interchaintest/sdk_boundaries_test.go +++ b/interchaintest/sdk_boundaries_test.go @@ -28,14 +28,14 @@ func TestSDKBoundaries(t *testing.T) { t.Parallel() - var tests = []boundarySpecs{ + tests := []boundarySpecs{ { name: "sdk 47 <-> 50", chainSpecs: []*interchaintest.ChainSpec{ { Name: "ibc-go-simd", ChainName: "simd-47", - Version: "v7.2.0", //sdk 0.47.3 + Version: "v7.2.0", // sdk 0.47.3 }, { Name: SedaChainName, @@ -106,8 +106,6 @@ func TestSDKBoundaries(t *testing.T) { // test IBC conformance conformance.TestChainPair(t, ctx, client, network, chain, counterpartyChain, rf, rep, r, path) - }) } - } diff --git a/interchaintest/setup.go b/interchaintest/setup.go index d12c1edc..96f51116 100644 --- a/interchaintest/setup.go +++ b/interchaintest/setup.go @@ -93,12 +93,14 @@ func sedaEncoding() *testutil.TestEncodingConfig { // CreateChains generates this branch's chain (ex: from the commit) func CreateChains(t *testing.T, numVals, numFullNodes int) []ibc.Chain { + t.Helper() cfg := SedaCfg cfg.Images = []ibc.DockerImage{dockerImage} return CreateChainsWithCustomConfig(t, numVals, numFullNodes, cfg) } func CreateChainsWithCustomConfig(t *testing.T, numVals, numFullNodes int, config ibc.ChainConfig) []ibc.Chain { + t.Helper() cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{ { Name: SedaCfg.Name, @@ -119,6 +121,7 @@ func CreateChainsWithCustomConfig(t *testing.T, numVals, numFullNodes int, confi } func BuildAllChains(t *testing.T, chains []ibc.Chain) (*interchaintest.Interchain, context.Context, *client.Client, string) { + t.Helper() ic := interchaintest.NewInterchain() for _, chain := range chains { diff --git a/proto/buf.lock b/proto/buf.lock index f802501e..570a75f9 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -19,5 +19,5 @@ deps: - remote: buf.build owner: googleapis repository: googleapis - commit: 28151c0d0a1641bf938a7672c500e01d - digest: shake256:49215edf8ef57f7863004539deff8834cfb2195113f0b890dd1f67815d9353e28e668019165b9d872395871eeafcbab3ccfdb2b5f11734d3cca95be9e8d139de + commit: a86849a25cc04f4dbe9b15ddddfbc488 + digest: shake256:e19143328f8cbfe13fc226aeee5e63773ca494693a72740a7560664270039a380d94a1344234b88c7691311460df9a9b1c2982190d0a2612eae80368718e1943 diff --git a/proto/sedachain/randomness/v1/genesis.proto b/proto/sedachain/randomness/v1/genesis.proto index a1637d67..8d350fa2 100644 --- a/proto/sedachain/randomness/v1/genesis.proto +++ b/proto/sedachain/randomness/v1/genesis.proto @@ -1,8 +1,7 @@ syntax = "proto3"; package sedachain.randomness.v1; -import "gogoproto/gogo.proto"; - option go_package = "github.com/sedaprotocol/seda-chain/x/randomness/types"; +// GenesisState defines the randomness module's genesis state with a seed. message GenesisState { string seed = 1; } diff --git a/proto/sedachain/randomness/v1/query.proto b/proto/sedachain/randomness/v1/query.proto index 5c2216fa..aa04912e 100644 --- a/proto/sedachain/randomness/v1/query.proto +++ b/proto/sedachain/randomness/v1/query.proto @@ -1,19 +1,22 @@ syntax = "proto3"; package sedachain.randomness.v1; -import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; option go_package = "github.com/sedaprotocol/seda-chain/x/randomness/types"; +// Query Service is the definition for the random modules gRPC query methods. service Query { + // For getting the random modules seed. rpc Seed(QuerySeedRequest) returns (QuerySeedResponse) { option (google.api.http).get = "/seda-chain/randomness/seed"; } } +// The message for getting the random modules seed. message QuerySeedRequest {} +// The message for returning the random modules seed. message QuerySeedResponse { string seed = 1; int64 block_height = 2; diff --git a/proto/sedachain/randomness/v1/randomness.proto b/proto/sedachain/randomness/v1/randomness.proto index 8cb1c80a..59362940 100644 --- a/proto/sedachain/randomness/v1/randomness.proto +++ b/proto/sedachain/randomness/v1/randomness.proto @@ -2,11 +2,11 @@ syntax = "proto3"; package sedachain.randomness.v1; import "google/protobuf/any.proto"; -import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; option go_package = "github.com/sedaprotocol/seda-chain/x/randomness/types"; +// ValidatorVRF is the randomness validator's VRF key information message ValidatorVRF { // operator_address defines the address of the validator's operator; bech // encoded in JSON. diff --git a/proto/sedachain/randomness/v1/tx.proto b/proto/sedachain/randomness/v1/tx.proto index 2dba84cf..ddc43f4b 100644 --- a/proto/sedachain/randomness/v1/tx.proto +++ b/proto/sedachain/randomness/v1/tx.proto @@ -5,8 +5,13 @@ import "cosmos/msg/v1/msg.proto"; option go_package = "github.com/sedaprotocol/seda-chain/x/randomness/types"; -service Msg { rpc NewSeed(MsgNewSeed) returns (MsgNewSeedResponse); } +// Msg service defines the gRPC tx methods. +service Msg { + // NewSeed defines a method for submitting a new seed to the chain. + rpc NewSeed(MsgNewSeed) returns (MsgNewSeedResponse); +} +// The message for submitting a new seed to the chain. message MsgNewSeed { option (cosmos.msg.v1.signer) = "prover"; @@ -15,4 +20,5 @@ message MsgNewSeed { string beta = 3; // VRF hash } -message MsgNewSeedResponse {} \ No newline at end of file +// The response message for submitting a new seed to the chain. +message MsgNewSeedResponse {} diff --git a/proto/sedachain/staking/v1/tx.proto b/proto/sedachain/staking/v1/tx.proto index f64055bc..ec361f46 100644 --- a/proto/sedachain/staking/v1/tx.proto +++ b/proto/sedachain/staking/v1/tx.proto @@ -2,13 +2,11 @@ syntax = "proto3"; package sedachain.staking.v1; import "google/protobuf/any.proto"; -import "google/protobuf/timestamp.proto"; import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/staking/v1beta1/staking.proto"; -import "cosmos/staking/v1beta1/tx.proto"; import "cosmos/msg/v1/msg.proto"; import "amino/amino.proto"; diff --git a/proto/sedachain/wasm_storage/v1/events.proto b/proto/sedachain/wasm_storage/v1/events.proto index 6c1411e8..502ebf0d 100644 --- a/proto/sedachain/wasm_storage/v1/events.proto +++ b/proto/sedachain/wasm_storage/v1/events.proto @@ -1,19 +1,18 @@ syntax = "proto3"; package sedachain.wasm_storage.v1; -import "gogoproto/gogo.proto"; -import "google/protobuf/timestamp.proto"; - import "sedachain/wasm_storage/v1/wasm_storage.proto"; option go_package = "github.com/sedaprotocol/seda-chain/x/wasm-storage/types"; +// The msg for storing a data request wasm. message EventStoreDataRequestWasm { string hash = 1; WasmType wasm_type = 2; bytes bytecode = 3; } +// The msg for storing a overlay wasm(i.e. relayer or executor) message EventStoreOverlayWasm { string hash = 1; WasmType wasm_type = 2; diff --git a/proto/sedachain/wasm_storage/v1/genesis.proto b/proto/sedachain/wasm_storage/v1/genesis.proto index 3b131b7c..02c01243 100644 --- a/proto/sedachain/wasm_storage/v1/genesis.proto +++ b/proto/sedachain/wasm_storage/v1/genesis.proto @@ -6,6 +6,8 @@ import "sedachain/wasm_storage/v1/wasm_storage.proto"; option go_package = "github.com/sedaprotocol/seda-chain/x/wasm-storage/types"; +// GenesisState defines the wasm module's genesis state(i.e wasms stored at +// genesis.) message GenesisState { repeated Wasm wasms = 1 [ (gogoproto.nullable) = false ]; string proxy_contract_registry = 2; diff --git a/proto/sedachain/wasm_storage/v1/query.proto b/proto/sedachain/wasm_storage/v1/query.proto index 7a8b70d4..db130a0c 100644 --- a/proto/sedachain/wasm_storage/v1/query.proto +++ b/proto/sedachain/wasm_storage/v1/query.proto @@ -1,7 +1,6 @@ syntax = "proto3"; package sedachain.wasm_storage.v1; -import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "sedachain/wasm_storage/v1/wasm_storage.proto"; @@ -16,6 +15,7 @@ service Query { "/seda-chain/wasm-storage/data_request_wasm/{hash}"; } + // DataRequestWasms returns all Data Request Wasms. rpc DataRequestWasms(QueryDataRequestWasmsRequest) returns (QueryDataRequestWasmsResponse) { option (google.api.http).get = @@ -28,11 +28,13 @@ service Query { "/seda-chain/wasm-storage/overlay_wasm/{hash}"; } + // OverlayWasms returns all Overlay Wasms. rpc OverlayWasms(QueryOverlayWasmsRequest) returns (QueryOverlayWasmsResponse) { option (google.api.http).get = "/seda-chain/wasm-storage/overlay_wasms"; } + // ProxyContractRegistry returns the Proxy Contract Registry address. rpc ProxyContractRegistry(QueryProxyContractRegistryRequest) returns (QueryProxyContractRegistryResponse) { option (google.api.http).get = @@ -40,22 +42,32 @@ service Query { } } +// The request message for QueryDataRequestWasm RPC. message QueryDataRequestWasmRequest { string hash = 1; } +// The response message for QueryDataRequestWasm RPC. message QueryDataRequestWasmResponse { Wasm wasm = 1; } +// The request message for QueryDataRequestWasms RPC. message QueryDataRequestWasmsRequest {} +// The response message for QueryDataRequestWasms RPC. message QueryDataRequestWasmsResponse { repeated string hash_type_pairs = 1; } +// The request message for QueryOverlayWasm RPC. message QueryOverlayWasmRequest { string hash = 1; } +// The response message for QueryOverlayWasm RPC. message QueryOverlayWasmResponse { Wasm wasm = 1; } +// The request message for QueryOverlayWasms RPC. message QueryOverlayWasmsRequest {} +// The response message for QueryOverlayWasms RPC. message QueryOverlayWasmsResponse { repeated string hash_type_pairs = 1; } +// The request message for QueryProxyContractRegistry RPC. message QueryProxyContractRegistryRequest {} +// The response message for QueryProxyContractRegistry RPC. message QueryProxyContractRegistryResponse { string address = 1; } diff --git a/proto/sedachain/wasm_storage/v1/tx.proto b/proto/sedachain/wasm_storage/v1/tx.proto index 8d799013..3dbf5916 100644 --- a/proto/sedachain/wasm_storage/v1/tx.proto +++ b/proto/sedachain/wasm_storage/v1/tx.proto @@ -9,37 +9,50 @@ import "sedachain/wasm_storage/v1/wasm_storage.proto"; option go_package = "github.com/sedaprotocol/seda-chain/x/wasm-storage/types"; +// Msg service defines the wasm-storage tx gRPC methods. service Msg { + // The StoreDataRequestWasm method stores a dr wasm in the wasm-storage + // module. rpc StoreDataRequestWasm(MsgStoreDataRequestWasm) returns (MsgStoreDataRequestWasmResponse); + // The StoreOverlayWasm method stores an overlay wasm in the wasm-storage + // module. rpc StoreOverlayWasm(MsgStoreOverlayWasm) returns (MsgStoreOverlayWasmResponse); + // The InstantiateAndRegisterProxyContract method instantiates the proxy + // contract and registers it's address. rpc InstantiateAndRegisterProxyContract( MsgInstantiateAndRegisterProxyContract) returns (MsgInstantiateAndRegisterProxyContractResponse); + // The UpdateParams method updates the module's parameters. rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); } +// The request message for the StoreDataRequestWasm method. message MsgStoreDataRequestWasm { option (cosmos.msg.v1.signer) = "sender"; string sender = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; bytes wasm = 2; - WasmType wasmType = 3; + WasmType wasm_type = 3; } +// The response message for the StoreDataRequestWasm method. message MsgStoreDataRequestWasmResponse { string hash = 1; } +// The request message for the StoreOverlayWasm method. message MsgStoreOverlayWasm { option (cosmos.msg.v1.signer) = "sender"; string sender = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; bytes wasm = 2; - WasmType wasmType = 3; + WasmType wasm_type = 3; } +// The response message for the StoreOverlayWasm method. message MsgStoreOverlayWasmResponse { string hash = 1; } +// The request message for the InstantiateAndRegisterProxyContract method. message MsgInstantiateAndRegisterProxyContract { option (cosmos.msg.v1.signer) = "sender"; @@ -58,11 +71,13 @@ message MsgInstantiateAndRegisterProxyContract { bool fix_msg = 8; } +// The response message for the InstantiateAndRegisterProxyContract method. message MsgInstantiateAndRegisterProxyContractResponse { string contract_address = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; } +// The request message for the UpdateParams method. message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; diff --git a/proto/sedachain/wasm_storage/v1/wasm_storage.proto b/proto/sedachain/wasm_storage/v1/wasm_storage.proto index 5527871a..696c0f36 100644 --- a/proto/sedachain/wasm_storage/v1/wasm_storage.proto +++ b/proto/sedachain/wasm_storage/v1/wasm_storage.proto @@ -6,30 +6,38 @@ import "google/protobuf/timestamp.proto"; option go_package = "github.com/sedaprotocol/seda-chain/x/wasm-storage/types"; +// A Wasm msg. message Wasm { bytes hash = 1; bytes bytecode = 2; - WasmType wasmType = 3; + WasmType wasm_type = 3; google.protobuf.Timestamp added_at = 4 [ (gogoproto.stdtime) = true, (gogoproto.nullable) = false ]; } +// WasmType is an enum for the type of wasm. enum WasmType { option (gogoproto.goproto_enum_prefix) = false; + // An unspecified kind of wasm. WASM_TYPE_UNSPECIFIED = 0 [ (gogoproto.enumvalue_customname) = "WasmTypeNil" ]; + // A wasm that is a data request. WASM_TYPE_DATA_REQUEST = 1 [ (gogoproto.enumvalue_customname) = "WasmTypeDataRequest" ]; + // A wasm that is a DR tally. WASM_TYPE_TALLY = 2 [ (gogoproto.enumvalue_customname) = "WasmTypeTally" ]; + // A wasm that is an overlay executor. WASM_TYPE_DATA_REQUEST_EXECUTOR = 3 [ (gogoproto.enumvalue_customname) = "WasmTypeDataRequestExecutor" ]; + // A wasm that is an overlay relayer. WASM_TYPE_RELAYER = 4 [ (gogoproto.enumvalue_customname) = "WasmTypeRelayer" ]; } +// Params to define the max wasm size allowed. message Params { option (gogoproto.equal) = true; uint64 max_wasm_size = 1; -} \ No newline at end of file +} diff --git a/x/randomness/types/genesis.pb.go b/x/randomness/types/genesis.pb.go index 88a0cb70..771b1634 100644 --- a/x/randomness/types/genesis.pb.go +++ b/x/randomness/types/genesis.pb.go @@ -5,7 +5,6 @@ package types import ( fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" io "io" math "math" @@ -23,6 +22,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// GenesisState defines the randomness module's genesis state with a seed. type GenesisState struct { Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"` } @@ -76,19 +76,18 @@ func init() { } var fileDescriptor_7099e3dee686bc86 = []byte{ - // 181 bytes of a gzipped FileDescriptorProto + // 168 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2d, 0x4e, 0x4d, 0x49, 0x4c, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x2f, 0x4a, 0xcc, 0x4b, 0xc9, 0xcf, 0xcd, 0x4b, 0x2d, 0x2e, 0xd6, 0x2f, 0x33, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, - 0xc9, 0x17, 0x12, 0x87, 0x2b, 0xd3, 0x43, 0x28, 0xd3, 0x2b, 0x33, 0x94, 0x12, 0x49, 0xcf, 0x4f, - 0xcf, 0x07, 0xab, 0xd1, 0x07, 0xb1, 0x20, 0xca, 0x95, 0x94, 0xb8, 0x78, 0xdc, 0x21, 0xfa, 0x83, - 0x4b, 0x12, 0x4b, 0x52, 0x85, 0x84, 0xb8, 0x58, 0x8a, 0x53, 0x53, 0x53, 0x24, 0x18, 0x15, 0x18, - 0x35, 0x38, 0x83, 0xc0, 0x6c, 0x27, 0xff, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, - 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, - 0x88, 0x32, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x07, 0xd9, 0x0b, - 0x36, 0x33, 0x39, 0x3f, 0x07, 0xcc, 0xd1, 0x85, 0x38, 0xb6, 0x02, 0xd9, 0xb9, 0x25, 0x95, 0x05, - 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0x75, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9d, 0x48, 0xd8, - 0x0b, 0xd3, 0x00, 0x00, 0x00, + 0xc9, 0x17, 0x12, 0x87, 0x2b, 0xd3, 0x43, 0x28, 0xd3, 0x2b, 0x33, 0x54, 0x52, 0xe2, 0xe2, 0x71, + 0x87, 0xa8, 0x0c, 0x2e, 0x49, 0x2c, 0x49, 0x15, 0x12, 0xe2, 0x62, 0x29, 0x4e, 0x4d, 0x4d, 0x91, + 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x02, 0xb3, 0x9d, 0xfc, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, + 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, + 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x34, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, + 0x1f, 0x64, 0x03, 0xd8, 0xb2, 0xe4, 0xfc, 0x1c, 0x30, 0x47, 0x17, 0xe2, 0xac, 0x0a, 0x64, 0x87, + 0x95, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0xd5, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, + 0x76, 0x81, 0x24, 0x28, 0xbd, 0x00, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/randomness/types/query.pb.go b/x/randomness/types/query.pb.go index 6247d933..fa84417e 100644 --- a/x/randomness/types/query.pb.go +++ b/x/randomness/types/query.pb.go @@ -6,7 +6,6 @@ package types import ( context "context" fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -29,6 +28,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// The message for getting the random modules seed. type QuerySeedRequest struct { } @@ -65,6 +65,7 @@ func (m *QuerySeedRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QuerySeedRequest proto.InternalMessageInfo +// The message for returning the random modules seed. type QuerySeedResponse struct { Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"` BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` @@ -127,26 +128,25 @@ func init() { } var fileDescriptor_aefaf0cd21517ead = []byte{ - // 297 bytes of a gzipped FileDescriptorProto + // 284 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2e, 0x4e, 0x4d, 0x49, 0x4c, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x2f, 0x4a, 0xcc, 0x4b, 0xc9, 0xcf, 0xcd, 0x4b, 0x2d, 0x2e, 0xd6, 0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x12, 0x87, 0x2b, 0xd2, 0x43, 0x28, 0xd2, 0x2b, 0x33, 0x94, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, - 0xab, 0xd1, 0x07, 0xb1, 0x20, 0xca, 0xa5, 0x64, 0xd2, 0xf3, 0xf3, 0xd3, 0x73, 0x52, 0xf5, 0x13, - 0x0b, 0x32, 0xf5, 0x13, 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 0x6c, 0x5a, 0x05, 0xb2, - 0x79, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0x75, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x72, 0x85, 0x04, 0x00, 0xba, 0x01, 0x00, 0x00, + 0x12, 0x87, 0x2b, 0xd2, 0x43, 0x28, 0xd2, 0x2b, 0x33, 0x94, 0x92, 0x49, 0xcf, 0xcf, 0x4f, 0xcf, + 0x49, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, + 0x2b, 0x86, 0x68, 0x53, 0x12, 0xe2, 0x12, 0x08, 0x04, 0x99, 0x12, 0x9c, 0x9a, 0x9a, 0x12, 0x94, + 0x5a, 0x58, 0x9a, 0x5a, 0x5c, 0xa2, 0xe4, 0xc5, 0x25, 0x88, 0x24, 0x56, 0x5c, 0x90, 0x9f, 0x57, + 0x9c, 0x2a, 0x24, 0xc4, 0xc5, 0x52, 0x9c, 0x9a, 0x9a, 0x22, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, + 0x04, 0x66, 0x0b, 0x29, 0x72, 0xf1, 0x24, 0xe5, 0xe4, 0x27, 0x67, 0xc7, 0x67, 0xa4, 0x66, 0xa6, + 0x67, 0x94, 0x48, 0x30, 0x29, 0x30, 0x6a, 0x30, 0x07, 0x71, 0x83, 0xc5, 0x3c, 0xc0, 0x42, 0x46, + 0x3d, 0x8c, 0x5c, 0xac, 0x60, 0xc3, 0x84, 0x9a, 0x18, 0xb9, 0x58, 0x40, 0x26, 0x0a, 0x69, 0xea, + 0xe1, 0x70, 0xaa, 0x1e, 0xba, 0x4b, 0xa4, 0xb4, 0x88, 0x51, 0x0a, 0x71, 0xa0, 0x92, 0x72, 0xd3, + 0xe5, 0x27, 0x93, 0x99, 0x64, 0x85, 0xa4, 0xf5, 0x41, 0x7a, 0x74, 0x31, 0xc2, 0x0b, 0xe4, 0x62, + 0x27, 0xff, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, + 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x32, 0x4d, 0xcf, 0x2c, + 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0x05, 0x1b, 0x00, 0x0e, 0x9e, 0xe4, 0xfc, 0x1c, 0x64, + 0xd3, 0x2a, 0x90, 0xcd, 0x2b, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0xab, 0x33, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0x55, 0x8c, 0x94, 0x61, 0xa4, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -161,6 +161,7 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { + // For getting the random modules seed. Seed(ctx context.Context, in *QuerySeedRequest, opts ...grpc.CallOption) (*QuerySeedResponse, error) } @@ -183,6 +184,7 @@ func (c *queryClient) Seed(ctx context.Context, in *QuerySeedRequest, opts ...gr // QueryServer is the server API for Query service. type QueryServer interface { + // For getting the random modules seed. Seed(context.Context, *QuerySeedRequest) (*QuerySeedResponse, error) } diff --git a/x/randomness/types/randomness.pb.go b/x/randomness/types/randomness.pb.go index 6f0124f4..e040a599 100644 --- a/x/randomness/types/randomness.pb.go +++ b/x/randomness/types/randomness.pb.go @@ -7,7 +7,6 @@ import ( fmt "fmt" _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/codec/types" - _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" io "io" math "math" @@ -25,8 +24,10 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// ValidatorVRF is the randomness validator's VRF key information type ValidatorVRF struct { - // operator_address defines the address of the validator's operator; bech encoded in JSON. + // operator_address defines the address of the validator's operator; bech + // encoded in JSON. OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"` // vrf_pubkey is the public key of the validator's VRF key pair VrfPubkey *types.Any `protobuf:"bytes,2,opt,name=vrf_pubkey,json=vrfPubkey,proto3" json:"vrf_pubkey,omitempty"` @@ -88,26 +89,26 @@ func init() { } var fileDescriptor_5bb7c7510d674163 = []byte{ - // 301 bytes of a gzipped FileDescriptorProto + // 291 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x28, 0x4e, 0x4d, 0x49, 0x4c, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x2f, 0x4a, 0xcc, 0x4b, 0xc9, 0xcf, 0xcd, 0x4b, 0x2d, 0x2e, 0xd6, 0x2f, 0x33, 0x44, 0xe2, 0xe9, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x89, 0xc3, 0x55, 0xea, 0x21, 0xc9, 0x95, 0x19, 0x4a, 0x49, 0xa6, 0xe7, 0xe7, 0xa7, 0xe7, 0xa4, 0xea, 0x83, 0x95, 0x25, - 0x95, 0xa6, 0xe9, 0x27, 0xe6, 0x55, 0x42, 0xf4, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x99, - 0xfa, 0x20, 0x16, 0x54, 0x54, 0x32, 0x39, 0xbf, 0x38, 0x37, 0xbf, 0x38, 0x1e, 0x22, 0x01, 0xe1, - 0x40, 0xa4, 0x94, 0x16, 0x31, 0x72, 0xf1, 0x84, 0x25, 0xe6, 0x64, 0xa6, 0x24, 0x96, 0xe4, 0x17, - 0x85, 0x05, 0xb9, 0x09, 0x39, 0x73, 0x09, 0xe4, 0x17, 0xa4, 0x16, 0x81, 0xb8, 0xf1, 0x89, 0x29, - 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, 0x12, 0x97, 0xb6, 0xe8, - 0x8a, 0x40, 0x35, 0x3b, 0x42, 0x64, 0x82, 0x4b, 0x8a, 0x32, 0xf3, 0xd2, 0x83, 0xf8, 0x61, 0x3a, - 0xa0, 0xc2, 0x42, 0xbe, 0x5c, 0x5c, 0x65, 0x45, 0x69, 0xf1, 0x05, 0xa5, 0x49, 0xd9, 0xa9, 0x95, - 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0x22, 0x7a, 0x10, 0x67, 0xeb, 0xc1, 0x9c, 0xad, 0xe7, - 0x98, 0x57, 0xe9, 0x24, 0x71, 0x0a, 0x61, 0x68, 0x72, 0x51, 0x65, 0x41, 0x49, 0xbe, 0x5e, 0x40, - 0x69, 0x92, 0x77, 0x6a, 0x65, 0x10, 0x67, 0x59, 0x51, 0x5a, 0x00, 0xd8, 0x00, 0x27, 0xff, 0x13, - 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, - 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x32, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, - 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x07, 0x05, 0x17, 0xd8, 0xec, 0xe4, 0xfc, 0x1c, 0x30, 0x47, 0x17, - 0x12, 0xcc, 0x15, 0xc8, 0x01, 0x5d, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x56, 0x67, 0x0c, - 0x08, 0x00, 0x00, 0xff, 0xff, 0x84, 0x1f, 0x79, 0x1b, 0x8d, 0x01, 0x00, 0x00, + 0x95, 0xa6, 0xe9, 0x27, 0xe6, 0x55, 0x42, 0xf4, 0x48, 0x49, 0x26, 0xe7, 0x17, 0xe7, 0xe6, 0x17, + 0xc7, 0x83, 0x79, 0xfa, 0x10, 0x0e, 0x44, 0x4a, 0x69, 0x11, 0x23, 0x17, 0x4f, 0x58, 0x62, 0x4e, + 0x66, 0x4a, 0x62, 0x49, 0x7e, 0x51, 0x58, 0x90, 0x9b, 0x90, 0x33, 0x97, 0x40, 0x7e, 0x41, 0x6a, + 0x11, 0x88, 0x1b, 0x9f, 0x98, 0x92, 0x52, 0x94, 0x5a, 0x5c, 0x2c, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, + 0xe9, 0x24, 0x71, 0x69, 0x8b, 0xae, 0x08, 0x54, 0xb3, 0x23, 0x44, 0x26, 0xb8, 0xa4, 0x28, 0x33, + 0x2f, 0x3d, 0x88, 0x1f, 0xa6, 0x03, 0x2a, 0x2c, 0xe4, 0xcb, 0xc5, 0x55, 0x56, 0x94, 0x16, 0x5f, + 0x50, 0x9a, 0x94, 0x9d, 0x5a, 0x29, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xa2, 0x07, 0x71, + 0xa0, 0x1e, 0xcc, 0x81, 0x7a, 0x8e, 0x79, 0x95, 0x4e, 0x12, 0xa7, 0x10, 0x86, 0x26, 0x17, 0x55, + 0x16, 0x94, 0xe4, 0xeb, 0x05, 0x94, 0x26, 0x79, 0xa7, 0x56, 0x06, 0x71, 0x96, 0x15, 0xa5, 0x05, + 0x80, 0x0d, 0x70, 0xf2, 0x3f, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, + 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xd3, + 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x50, 0xc0, 0x80, 0xcd, 0x4e, + 0xce, 0xcf, 0x01, 0x73, 0x74, 0x21, 0x01, 0x5a, 0x81, 0x1c, 0xa4, 0x25, 0x95, 0x05, 0xa9, 0xc5, + 0x49, 0x6c, 0x60, 0x75, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x57, 0x43, 0x56, 0x56, 0x77, + 0x01, 0x00, 0x00, } func (m *ValidatorVRF) Marshal() (dAtA []byte, err error) { diff --git a/x/randomness/types/tx.pb.go b/x/randomness/types/tx.pb.go index 9435f7b5..d711ef9d 100644 --- a/x/randomness/types/tx.pb.go +++ b/x/randomness/types/tx.pb.go @@ -28,6 +28,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// The message for submitting a new seed to the chain. type MsgNewSeed struct { Prover string `protobuf:"bytes,1,opt,name=prover,proto3" json:"prover,omitempty"` Pi string `protobuf:"bytes,2,opt,name=pi,proto3" json:"pi,omitempty"` @@ -88,6 +89,7 @@ func (m *MsgNewSeed) GetBeta() string { return "" } +// The response message for submitting a new seed to the chain. type MsgNewSeedResponse struct { } @@ -164,6 +166,7 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { + // NewSeed defines a method for submitting a new seed to the chain. NewSeed(ctx context.Context, in *MsgNewSeed, opts ...grpc.CallOption) (*MsgNewSeedResponse, error) } @@ -186,6 +189,7 @@ func (c *msgClient) NewSeed(ctx context.Context, in *MsgNewSeed, opts ...grpc.Ca // MsgServer is the server API for Msg service. type MsgServer interface { + // NewSeed defines a method for submitting a new seed to the chain. NewSeed(context.Context, *MsgNewSeed) (*MsgNewSeedResponse, error) } diff --git a/x/staking/types/tx.pb.go b/x/staking/types/tx.pb.go index d7f2a966..c8d263c6 100644 --- a/x/staking/types/tx.pb.go +++ b/x/staking/types/tx.pb.go @@ -19,7 +19,6 @@ import ( grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - _ "google.golang.org/protobuf/types/known/timestamppb" io "io" math "math" math_bits "math/bits" @@ -42,8 +41,8 @@ type MsgCreateValidatorWithVRF struct { Commission types.CommissionRates `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"` MinSelfDelegation cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=cosmossdk.io/math.Int" json:"min_self_delegation"` // Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated. - // The validator address bytes and delegator address bytes refer to the same account while creating validator (defer - // only in bech32 notation). + // The validator address bytes and delegator address bytes refer to the same + // account while creating validator (defer only in bech32 notation). DelegatorAddress string `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // Deprecated: Do not use. ValidatorAddress string `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Pubkey *types1.Any `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"` @@ -129,47 +128,46 @@ func init() { func init() { proto.RegisterFile("sedachain/staking/v1/tx.proto", fileDescriptor_670d278351a2d088) } var fileDescriptor_670d278351a2d088 = []byte{ - // 636 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x3f, 0x4f, 0xdb, 0x4e, - 0x18, 0xc7, 0xe3, 0x1f, 0x3f, 0x68, 0x39, 0x16, 0xe2, 0xa6, 0x6d, 0x12, 0x09, 0x87, 0x3f, 0x95, - 0x8a, 0x90, 0x72, 0xd7, 0xd0, 0xa1, 0x12, 0x1b, 0x01, 0x51, 0xa1, 0x96, 0x0a, 0x19, 0x89, 0x4a, - 0x5d, 0xd2, 0xb3, 0x7d, 0x71, 0x4e, 0xd8, 0x77, 0x96, 0xef, 0x62, 0xe1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45, - 0x33, 0xbb, 0xcb, 0x0e, 0x8b, 0x3f, 0xba, 0x4c, 0x23, 0x22, 0x9c, 0x29, 0x65, 0x7a, 0xfe, 0x2b, - 0x00, 0x00, 0xff, 0xff, 0x23, 0x9a, 0xd5, 0x76, 0xef, 0x04, 0x00, 0x00, + // 618 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcf, 0x4f, 0x13, 0x41, + 0x14, 0xc7, 0xbb, 0x22, 0x28, 0xc3, 0x85, 0xae, 0x55, 0xdb, 0x26, 0x6c, 0xf9, 0x61, 0x22, 0x21, + 0xe9, 0x8c, 0xc5, 0x83, 0x09, 0x37, 0x0a, 0xc1, 0x10, 0xc5, 0x90, 0x25, 0xc1, 0xc4, 0x4b, 0x9d, + 0xdd, 0x9d, 0x6e, 0x27, 0xec, 0xce, 0x34, 0x3b, 0xd3, 0x0d, 0xbd, 0x72, 0x32, 0x9e, 0xfc, 0x13, + 0x38, 0x7a, 0x93, 0x03, 0x7f, 0x04, 0xf1, 0x44, 0x38, 0x19, 0x0f, 0xc4, 0xc0, 0x01, 0xff, 0x0c, + 0xd3, 0x99, 0xd9, 0x6d, 0x51, 0x7b, 0xd0, 0xcb, 0x66, 0x66, 0xbe, 0xef, 0x7d, 0xe6, 0x9b, 0xf7, + 0xde, 0x2c, 0x98, 0x13, 0x24, 0xc0, 0x7e, 0x07, 0x53, 0x86, 0x84, 0xc4, 0x07, 0x94, 0x85, 0x28, + 0x6d, 0x20, 0x79, 0x08, 0xbb, 0x09, 0x97, 0xdc, 0x2e, 0xe5, 0x32, 0x34, 0x32, 0x4c, 0x1b, 0xd5, + 0x4a, 0xc8, 0x79, 0x18, 0x11, 0xa4, 0x62, 0xbc, 0x5e, 0x1b, 0x61, 0xd6, 0xd7, 0x09, 0xd5, 0x52, + 0xc8, 0x43, 0xae, 0x96, 0x68, 0xb0, 0x32, 0xa7, 0x15, 0x9f, 0x8b, 0x98, 0x8b, 0x96, 0x16, 0xf4, + 0xc6, 0x48, 0x8e, 0xde, 0x21, 0x0f, 0x0b, 0x82, 0xd2, 0x86, 0x47, 0x24, 0x6e, 0x20, 0x9f, 0x53, + 0x66, 0xf4, 0x27, 0x46, 0x1f, 0xba, 0xd3, 0x21, 0x99, 0x1d, 0x1d, 0xf5, 0xd8, 0x44, 0xc5, 0x42, + 0xf9, 0x8f, 0x45, 0x26, 0x14, 0x71, 0x4c, 0x19, 0x47, 0xea, 0xab, 0x8f, 0x16, 0xbf, 0x4c, 0x82, + 0xca, 0x8e, 0x08, 0x37, 0x12, 0x82, 0x25, 0xd9, 0xc7, 0x11, 0x0d, 0xb0, 0xe4, 0xc9, 0x5b, 0x2a, + 0x3b, 0xfb, 0xee, 0x96, 0xbd, 0x0b, 0x66, 0x02, 0x22, 0xfc, 0x84, 0x76, 0x25, 0xe5, 0xac, 0x6c, + 0xcd, 0x5b, 0xcb, 0x33, 0xab, 0x4b, 0xd0, 0x78, 0x1e, 0x16, 0x41, 0xb9, 0x80, 0x9b, 0xc3, 0xd0, + 0xe6, 0xf4, 0xd9, 0x65, 0xad, 0xf0, 0xf9, 0xe6, 0x64, 0xc5, 0x72, 0x47, 0x11, 0xb6, 0x0b, 0x80, + 0xcf, 0xe3, 0x98, 0x0a, 0x31, 0x00, 0xde, 0x51, 0xc0, 0xa7, 0xe3, 0x80, 0x1b, 0x79, 0xa4, 0x8b, + 0x25, 0x11, 0xa3, 0xd0, 0x11, 0x8a, 0xfd, 0x1e, 0x3c, 0x88, 0x29, 0x6b, 0x09, 0x12, 0xb5, 0x5b, + 0x01, 0x89, 0x48, 0x88, 0x95, 0xdb, 0x89, 0x79, 0x6b, 0x79, 0xba, 0xf9, 0x6c, 0x90, 0xf3, 0xfd, + 0xb2, 0xf6, 0x50, 0xdf, 0x21, 0x82, 0x03, 0x48, 0x39, 0x8a, 0xb1, 0xec, 0xc0, 0x6d, 0x26, 0x2f, + 0x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2e, 0x67, 0x82, 0xac, 0x7e, 0xb4, 0xc0, 0xc4, 0x8e, 0x08, + 0xed, 0x23, 0x0b, 0x3c, 0x1a, 0x33, 0xdb, 0x08, 0xfe, 0xed, 0x39, 0xc3, 0xb1, 0xec, 0xea, 0x8b, + 0x7f, 0x4c, 0xc8, 0xcc, 0x34, 0x5f, 0x9f, 0x5d, 0x39, 0xd6, 0xf9, 0x95, 0x63, 0xfd, 0xb8, 0x72, + 0xac, 0x4f, 0xd7, 0x4e, 0xe1, 0xfc, 0xda, 0x29, 0x7c, 0xbb, 0x76, 0x0a, 0xef, 0x56, 0x43, 0x2a, + 0x3b, 0x3d, 0x0f, 0xfa, 0x3c, 0x46, 0x03, 0xb8, 0xaa, 0x96, 0xcf, 0x23, 0xb5, 0xa9, 0xeb, 0x3f, + 0xd1, 0x61, 0xfe, 0xda, 0x65, 0xbf, 0x4b, 0x84, 0x37, 0xa5, 0x82, 0x9e, 0xff, 0x0a, 0x00, 0x00, + 0xff, 0xff, 0xd0, 0xfe, 0xfa, 0x43, 0xad, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/wasm-storage/types/events.pb.go b/x/wasm-storage/types/events.pb.go index 5fd9f8f7..928c6f2b 100644 --- a/x/wasm-storage/types/events.pb.go +++ b/x/wasm-storage/types/events.pb.go @@ -5,9 +5,7 @@ package types import ( fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" - _ "google.golang.org/protobuf/types/known/timestamppb" io "io" math "math" math_bits "math/bits" @@ -24,6 +22,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// The msg for storing a data request wasm. type EventStoreDataRequestWasm struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` WasmType WasmType `protobuf:"varint,2,opt,name=wasm_type,json=wasmType,proto3,enum=sedachain.wasm_storage.v1.WasmType" json:"wasm_type,omitempty"` @@ -84,6 +83,7 @@ func (m *EventStoreDataRequestWasm) GetBytecode() []byte { return nil } +// The msg for storing a overlay wasm(i.e. relayer or executor) type EventStoreOverlayWasm struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` WasmType WasmType `protobuf:"varint,2,opt,name=wasm_type,json=wasmType,proto3,enum=sedachain.wasm_storage.v1.WasmType" json:"wasm_type,omitempty"` @@ -154,26 +154,24 @@ func init() { } var fileDescriptor_90b0422555944a3a = []byte{ - // 304 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x90, 0xb1, 0x4b, 0xfb, 0x40, - 0x1c, 0xc5, 0x73, 0xbf, 0x9f, 0x48, 0x7b, 0x88, 0x43, 0x50, 0x48, 0x33, 0x9c, 0xa1, 0x82, 0x64, - 0xb0, 0x77, 0x54, 0x07, 0x57, 0x11, 0x9d, 0xc5, 0x28, 0x08, 0x2e, 0x72, 0x49, 0xbf, 0x5e, 0x02, - 0x49, 0x2f, 0xe6, 0x2e, 0xa9, 0xf9, 0x13, 0x1c, 0x04, 0xff, 0x2c, 0xc7, 0x8e, 0x8e, 0x92, 0xfc, - 0x23, 0x92, 0x6b, 0xad, 0x3a, 0x74, 0x76, 0x7b, 0x0f, 0x3e, 0xf7, 0x7d, 0xef, 0x1e, 0x3e, 0x50, - 0x30, 0xe1, 0x51, 0xcc, 0x93, 0x29, 0x9b, 0x71, 0x95, 0xdd, 0x2b, 0x2d, 0x0b, 0x2e, 0x80, 0x55, - 0x63, 0x06, 0x15, 0x4c, 0xb5, 0xa2, 0x79, 0x21, 0xb5, 0xb4, 0x07, 0x2b, 0x8e, 0xfe, 0xe4, 0x68, - 0x35, 0x76, 0x77, 0x84, 0x14, 0xd2, 0x50, 0xac, 0x53, 0x8b, 0x07, 0xee, 0x9e, 0x90, 0x52, 0xa4, - 0xc0, 0x8c, 0x0b, 0xcb, 0x07, 0xa6, 0x93, 0x0c, 0x94, 0xe6, 0x59, 0xbe, 0x04, 0x0e, 0xd7, 0x27, - 0xff, 0x4a, 0x30, 0xf4, 0xf0, 0x05, 0xe1, 0xc1, 0x45, 0x57, 0xe8, 0x5a, 0xcb, 0x02, 0xce, 0xb9, - 0xe6, 0x01, 0x3c, 0x96, 0xa0, 0xf4, 0x2d, 0x57, 0x99, 0x6d, 0xe3, 0x8d, 0x98, 0xab, 0xd8, 0x41, - 0x1e, 0xf2, 0xfb, 0x81, 0xd1, 0xf6, 0x29, 0xee, 0x9b, 0x3b, 0xba, 0xce, 0xc1, 0xf9, 0xe7, 0x21, - 0x7f, 0xfb, 0x68, 0x9f, 0xae, 0xfd, 0x05, 0xed, 0xee, 0xdc, 0xd4, 0x39, 0x04, 0xbd, 0xd9, 0x52, - 0xd9, 0x2e, 0xee, 0x85, 0xb5, 0x86, 0x48, 0x4e, 0xc0, 0xf9, 0xef, 0x21, 0x7f, 0x2b, 0x58, 0xf9, - 0xe1, 0x33, 0xc2, 0xbb, 0xdf, 0x7d, 0x2e, 0x2b, 0x28, 0x52, 0x5e, 0xff, 0x4d, 0x97, 0xb3, 0xab, - 0xb7, 0x86, 0xa0, 0x79, 0x43, 0xd0, 0x47, 0x43, 0xd0, 0x6b, 0x4b, 0xac, 0x79, 0x4b, 0xac, 0xf7, - 0x96, 0x58, 0x77, 0x27, 0x22, 0xd1, 0x71, 0x19, 0xd2, 0x48, 0x66, 0xac, 0x8b, 0x33, 0x5b, 0x46, - 0x32, 0x35, 0x66, 0xb4, 0x18, 0xff, 0xc9, 0xcc, 0x3d, 0xfa, 0x9a, 0xbf, 0xab, 0xa8, 0xc2, 0x4d, - 0x43, 0x1e, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0xce, 0x3f, 0x0f, 0x9b, 0x1f, 0x02, 0x00, 0x00, + // 267 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2b, 0x4e, 0x4d, 0x49, + 0x4c, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x2f, 0x4f, 0x2c, 0xce, 0x8d, 0x2f, 0x2e, 0xc9, 0x2f, 0x4a, + 0x4c, 0x4f, 0xd5, 0x2f, 0x33, 0xd4, 0x4f, 0x2d, 0x4b, 0xcd, 0x2b, 0x29, 0xd6, 0x2b, 0x28, 0xca, + 0x2f, 0xc9, 0x17, 0x92, 0x84, 0xab, 0xd3, 0x43, 0x56, 0xa7, 0x57, 0x66, 0x28, 0xa5, 0x83, 0xdb, + 0x08, 0x14, 0xa5, 0x60, 0x83, 0x94, 0x7a, 0x19, 0xb9, 0x24, 0x5d, 0x41, 0x26, 0x07, 0x97, 0xe4, + 0x17, 0xa5, 0xba, 0x24, 0x96, 0x24, 0x06, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x84, 0x27, 0x16, + 0xe7, 0x0a, 0x09, 0x71, 0xb1, 0x64, 0x24, 0x16, 0x67, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, + 0x81, 0xd9, 0x42, 0x0e, 0x5c, 0x9c, 0x60, 0x73, 0x4a, 0x2a, 0x0b, 0x52, 0x25, 0x98, 0x14, 0x18, + 0x35, 0xf8, 0x8c, 0x94, 0xf5, 0x70, 0x3a, 0x47, 0x0f, 0x64, 0x4e, 0x48, 0x65, 0x41, 0x6a, 0x10, + 0x47, 0x39, 0x94, 0x25, 0x24, 0xc5, 0xc5, 0x91, 0x54, 0x59, 0x92, 0x9a, 0x9c, 0x9f, 0x92, 0x2a, + 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x13, 0x04, 0xe7, 0x2b, 0x75, 0x32, 0x72, 0x89, 0x22, 0xdc, 0xe3, + 0x5f, 0x96, 0x5a, 0x94, 0x93, 0x58, 0x39, 0x30, 0x6e, 0x71, 0x0a, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, + 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, + 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xf3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, + 0x5c, 0x7d, 0x90, 0x75, 0xe0, 0xb0, 0x4c, 0xce, 0xcf, 0x01, 0x73, 0x74, 0x21, 0x81, 0x5f, 0x01, + 0x0e, 0x6e, 0x5d, 0x58, 0xf0, 0x83, 0x9c, 0x58, 0x9c, 0xc4, 0x06, 0x56, 0x69, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0xc5, 0xe7, 0x1b, 0x54, 0xe8, 0x01, 0x00, 0x00, } func (m *EventStoreDataRequestWasm) Marshal() (dAtA []byte, err error) { diff --git a/x/wasm-storage/types/genesis.pb.go b/x/wasm-storage/types/genesis.pb.go index f9cd51f5..4fca28dc 100644 --- a/x/wasm-storage/types/genesis.pb.go +++ b/x/wasm-storage/types/genesis.pb.go @@ -23,6 +23,8 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// GenesisState defines the wasm module's genesis state(i.e wasms stored at +// genesis.) type GenesisState struct { Wasms []Wasm `protobuf:"bytes,1,rep,name=wasms,proto3" json:"wasms"` ProxyContractRegistry string `protobuf:"bytes,2,opt,name=proxy_contract_registry,json=proxyContractRegistry,proto3" json:"proxy_contract_registry,omitempty"` diff --git a/x/wasm-storage/types/params.go b/x/wasm-storage/types/params.go index 2abd7923..d1601faf 100644 --- a/x/wasm-storage/types/params.go +++ b/x/wasm-storage/types/params.go @@ -16,10 +16,8 @@ func DefaultParams() Params { // ValidateBasic performs basic validation on wasm-storage // module parameters. func (p Params) ValidateBasic() error { - if err := validateMaxWasmSize(p.MaxWasmSize); err != nil { - return err - } - return nil + err := validateMaxWasmSize(p.MaxWasmSize) + return err } func validateMaxWasmSize(i interface{}) error { diff --git a/x/wasm-storage/types/query.pb.go b/x/wasm-storage/types/query.pb.go index db82b7e8..01a1ba6c 100644 --- a/x/wasm-storage/types/query.pb.go +++ b/x/wasm-storage/types/query.pb.go @@ -6,7 +6,6 @@ package types import ( context "context" fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -29,6 +28,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// The request message for QueryDataRequestWasm RPC. type QueryDataRequestWasmRequest struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } @@ -73,6 +73,7 @@ func (m *QueryDataRequestWasmRequest) GetHash() string { return "" } +// The response message for QueryDataRequestWasm RPC. type QueryDataRequestWasmResponse struct { Wasm *Wasm `protobuf:"bytes,1,opt,name=wasm,proto3" json:"wasm,omitempty"` } @@ -117,6 +118,7 @@ func (m *QueryDataRequestWasmResponse) GetWasm() *Wasm { return nil } +// The request message for QueryDataRequestWasms RPC. type QueryDataRequestWasmsRequest struct { } @@ -153,6 +155,7 @@ func (m *QueryDataRequestWasmsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryDataRequestWasmsRequest proto.InternalMessageInfo +// The response message for QueryDataRequestWasms RPC. type QueryDataRequestWasmsResponse struct { HashTypePairs []string `protobuf:"bytes,1,rep,name=hash_type_pairs,json=hashTypePairs,proto3" json:"hash_type_pairs,omitempty"` } @@ -197,6 +200,7 @@ func (m *QueryDataRequestWasmsResponse) GetHashTypePairs() []string { return nil } +// The request message for QueryOverlayWasm RPC. type QueryOverlayWasmRequest struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } @@ -241,6 +245,7 @@ func (m *QueryOverlayWasmRequest) GetHash() string { return "" } +// The response message for QueryOverlayWasm RPC. type QueryOverlayWasmResponse struct { Wasm *Wasm `protobuf:"bytes,1,opt,name=wasm,proto3" json:"wasm,omitempty"` } @@ -285,6 +290,7 @@ func (m *QueryOverlayWasmResponse) GetWasm() *Wasm { return nil } +// The request message for QueryOverlayWasms RPC. type QueryOverlayWasmsRequest struct { } @@ -321,6 +327,7 @@ func (m *QueryOverlayWasmsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryOverlayWasmsRequest proto.InternalMessageInfo +// The response message for QueryOverlayWasms RPC. type QueryOverlayWasmsResponse struct { HashTypePairs []string `protobuf:"bytes,1,rep,name=hash_type_pairs,json=hashTypePairs,proto3" json:"hash_type_pairs,omitempty"` } @@ -365,6 +372,7 @@ func (m *QueryOverlayWasmsResponse) GetHashTypePairs() []string { return nil } +// The request message for QueryProxyContractRegistry RPC. type QueryProxyContractRegistryRequest struct { } @@ -401,6 +409,7 @@ func (m *QueryProxyContractRegistryRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryProxyContractRegistryRequest proto.InternalMessageInfo +// The response message for QueryProxyContractRegistry RPC. type QueryProxyContractRegistryResponse struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } @@ -463,43 +472,43 @@ func init() { } var fileDescriptor_0e3a991a3b0319b3 = []byte{ - // 573 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcf, 0x6b, 0x13, 0x4f, - 0x14, 0xcf, 0x7c, 0xbf, 0xd5, 0xd2, 0x57, 0xa5, 0x32, 0x28, 0xa6, 0x6b, 0x5d, 0xeb, 0x8a, 0x25, - 0x60, 0xb3, 0x6b, 0x92, 0x62, 0x2b, 0xa8, 0x07, 0x2b, 0x78, 0x6c, 0x1b, 0x05, 0xc1, 0xcb, 0x32, - 0x4d, 0x86, 0xcd, 0x42, 0xb2, 0xb3, 0x9d, 0x99, 0xc4, 0x2e, 0xe2, 0xc5, 0xbf, 0x40, 0xf0, 0xaf, - 0x10, 0x3c, 0x78, 0x16, 0xbc, 0x7b, 0x92, 0x82, 0x17, 0x8f, 0x92, 0xf8, 0x87, 0xc8, 0x4c, 0x26, - 0x31, 0x69, 0xb2, 0x49, 0x57, 0x6f, 0x93, 0x7d, 0xef, 0xf3, 0xeb, 0xed, 0x9b, 0x2c, 0xdc, 0x16, - 0xb4, 0x4e, 0x6a, 0x0d, 0x12, 0x46, 0xde, 0x2b, 0x22, 0x5a, 0xbe, 0x90, 0x8c, 0x93, 0x80, 0x7a, - 0x9d, 0x92, 0x77, 0xd4, 0xa6, 0x3c, 0x71, 0x63, 0xce, 0x24, 0xc3, 0xab, 0xc3, 0x36, 0x77, 0xb4, - 0xcd, 0xed, 0x94, 0xac, 0xcb, 0x01, 0x0b, 0x98, 0xee, 0xf2, 0xd4, 0xa9, 0x0f, 0xb0, 0xd6, 0x02, - 0xc6, 0x82, 0x26, 0xf5, 0x48, 0x1c, 0x7a, 0x24, 0x8a, 0x98, 0x24, 0x32, 0x64, 0x91, 0x30, 0xd5, - 0xcd, 0x74, 0xd5, 0x31, 0x7a, 0xdd, 0xed, 0x94, 0xe0, 0xda, 0x81, 0xf2, 0xf2, 0x84, 0x48, 0x52, - 0xa5, 0x47, 0x6d, 0x2a, 0xe4, 0x0b, 0x22, 0x5a, 0xe6, 0x88, 0x31, 0x2c, 0x34, 0x88, 0x68, 0xe4, - 0xd1, 0x3a, 0x2a, 0x2c, 0x55, 0xf5, 0xd9, 0x79, 0x06, 0x6b, 0xd3, 0x21, 0x22, 0x66, 0x91, 0xa0, - 0xb8, 0x02, 0x0b, 0x4a, 0x48, 0x63, 0x96, 0xcb, 0x37, 0xdc, 0xd4, 0x78, 0xae, 0x86, 0xe9, 0x66, - 0xc7, 0x9e, 0x4e, 0x2a, 0xcc, 0xd9, 0x79, 0x0a, 0xd7, 0x53, 0xea, 0x46, 0x75, 0x03, 0x56, 0x94, - 0x3b, 0x5f, 0x26, 0x31, 0xf5, 0x63, 0x12, 0x72, 0x91, 0x47, 0xeb, 0xff, 0x17, 0x96, 0xaa, 0x17, - 0xd5, 0xe3, 0xe7, 0x49, 0x4c, 0xf7, 0xd5, 0x43, 0xa7, 0x08, 0x57, 0x35, 0xd1, 0x5e, 0x87, 0xf2, - 0x26, 0x49, 0xe6, 0x85, 0xdd, 0x83, 0xfc, 0x64, 0xfb, 0xbf, 0x04, 0xb5, 0x26, 0x09, 0x87, 0x21, - 0x77, 0x61, 0x75, 0x4a, 0x2d, 0x63, 0xc0, 0x5b, 0x70, 0x53, 0x93, 0xec, 0x73, 0x76, 0x9c, 0xec, - 0xb2, 0x48, 0x72, 0x52, 0x93, 0x55, 0x1a, 0x84, 0x42, 0xf2, 0x64, 0xa0, 0xf4, 0x08, 0x9c, 0x59, - 0x4d, 0x46, 0x32, 0x0f, 0x8b, 0xa4, 0x5e, 0xe7, 0x54, 0x08, 0x33, 0x93, 0xc1, 0xcf, 0xf2, 0xa7, - 0x45, 0x38, 0xa7, 0x09, 0xf0, 0x17, 0x04, 0x2b, 0xa7, 0x5e, 0x0a, 0xbe, 0x37, 0x63, 0x14, 0x33, - 0xb6, 0xcd, 0xda, 0xce, 0x8c, 0xeb, 0x1b, 0x75, 0xee, 0xbf, 0xfd, 0xfe, 0xeb, 0xfd, 0x7f, 0x15, - 0x5c, 0xf2, 0x14, 0x41, 0xf1, 0xcf, 0xf6, 0x17, 0x07, 0xdb, 0x5f, 0x27, 0x92, 0xf8, 0xbc, 0x0f, - 0xf5, 0x55, 0xc5, 0x7b, 0xad, 0xc6, 0xf6, 0x06, 0x7f, 0x46, 0x70, 0xe9, 0xf4, 0x52, 0xe1, 0xac, - 0x46, 0x06, 0x6f, 0xd0, 0xda, 0xc9, 0x0e, 0x34, 0x11, 0x2a, 0x3a, 0x42, 0x11, 0xdf, 0x39, 0x7b, - 0x04, 0x81, 0x3f, 0x22, 0x58, 0x1e, 0x59, 0x16, 0x5c, 0x9e, 0x27, 0x3f, 0xb9, 0xf5, 0x56, 0x25, - 0x13, 0xc6, 0xb8, 0xdd, 0xd2, 0x6e, 0x5d, 0xbc, 0x99, 0xea, 0x96, 0xf5, 0x51, 0x63, 0xb3, 0xfe, - 0x80, 0xe0, 0xc2, 0xe8, 0x6e, 0xe3, 0x2c, 0xda, 0xc3, 0x19, 0x6f, 0x65, 0x03, 0x19, 0xc7, 0xae, - 0x76, 0x5c, 0xc0, 0x1b, 0x67, 0x72, 0x2c, 0xf0, 0x37, 0x04, 0x57, 0xa6, 0xde, 0x0e, 0xfc, 0x60, - 0x9e, 0xfe, 0xac, 0x9b, 0x67, 0x3d, 0xfc, 0x4b, 0xb4, 0x89, 0xb1, 0xa3, 0x63, 0x94, 0xf1, 0xdd, - 0xd4, 0x18, 0xb1, 0xc2, 0xfb, 0x35, 0x43, 0xe0, 0x73, 0xc3, 0xf0, 0xf8, 0xe0, 0x6b, 0xd7, 0x46, - 0x27, 0x5d, 0x1b, 0xfd, 0xec, 0xda, 0xe8, 0x5d, 0xcf, 0xce, 0x9d, 0xf4, 0xec, 0xdc, 0x8f, 0x9e, - 0x9d, 0x7b, 0xb9, 0x1d, 0x84, 0xb2, 0xd1, 0x3e, 0x74, 0x6b, 0xac, 0xa5, 0x59, 0xf5, 0x97, 0xa1, - 0xc6, 0x9a, 0xa3, 0x12, 0xc7, 0xe3, 0x22, 0xea, 0x4f, 0x48, 0x1c, 0x9e, 0xd7, 0x9d, 0x95, 0xdf, - 0x01, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x87, 0x4c, 0xbc, 0xe9, 0x06, 0x00, 0x00, + // 561 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x4f, 0x6b, 0x13, 0x41, + 0x14, 0xcf, 0x68, 0xb5, 0xf4, 0x55, 0xa9, 0x0c, 0x88, 0xe9, 0x5a, 0xd7, 0xba, 0x62, 0x09, 0xd8, + 0xec, 0x9a, 0xa4, 0xd8, 0x0a, 0xea, 0xc1, 0x0a, 0x1e, 0xdb, 0x46, 0x41, 0xf0, 0xb2, 0x4c, 0x93, + 0x61, 0xb3, 0x90, 0xec, 0x6c, 0x67, 0x26, 0xb1, 0x8b, 0x78, 0xf1, 0x13, 0x08, 0x7e, 0x0a, 0xc1, + 0x83, 0x67, 0xc1, 0xbb, 0x27, 0x29, 0x78, 0xf1, 0x28, 0x89, 0x1f, 0x44, 0x66, 0x32, 0x89, 0x49, + 0x93, 0x4d, 0xba, 0x7a, 0x9b, 0xcc, 0xbc, 0xdf, 0xbf, 0x37, 0x6f, 0xb2, 0x70, 0x47, 0xd0, 0x3a, + 0xa9, 0x35, 0x48, 0x18, 0x79, 0xaf, 0x89, 0x68, 0xf9, 0x42, 0x32, 0x4e, 0x02, 0xea, 0x75, 0x4a, + 0xde, 0x51, 0x9b, 0xf2, 0xc4, 0x8d, 0x39, 0x93, 0x0c, 0xaf, 0x0e, 0xcb, 0xdc, 0xd1, 0x32, 0xb7, + 0x53, 0xb2, 0xd6, 0x02, 0xc6, 0x82, 0x26, 0xf5, 0x48, 0x1c, 0x7a, 0x24, 0x8a, 0x98, 0x24, 0x32, + 0x64, 0x91, 0xe8, 0x03, 0xad, 0xcd, 0x74, 0xfe, 0x31, 0x22, 0x5d, 0xed, 0x94, 0xe0, 0xfa, 0x81, + 0x52, 0x7d, 0x4a, 0x24, 0xa9, 0xd2, 0xa3, 0x36, 0x15, 0xf2, 0x25, 0x11, 0x2d, 0xb3, 0xc4, 0x18, + 0x16, 0x1a, 0x44, 0x34, 0xf2, 0x68, 0x1d, 0x15, 0x96, 0xaa, 0x7a, 0xed, 0x3c, 0x87, 0xb5, 0xe9, + 0x10, 0x11, 0xb3, 0x48, 0x50, 0x5c, 0x81, 0x05, 0x25, 0xa4, 0x31, 0xcb, 0xe5, 0x9b, 0x6e, 0x6a, + 0x10, 0x57, 0xc3, 0x74, 0xb1, 0x63, 0x4f, 0x27, 0x15, 0x66, 0xed, 0x3c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, 0xb3, 0x47, 0x10, 0xf8, 0x13, 0x82, 0xe5, 0x91, 0x61, 0xc1, 0xe5, 0x79, 0xf2, + 0x93, 0x53, 0x6f, 0x55, 0x32, 0x61, 0x8c, 0xdb, 0x2d, 0xed, 0xd6, 0xc5, 0x9b, 0xa9, 0x6e, 0x59, + 0x1f, 0x35, 0xd6, 0xeb, 0x8f, 0x08, 0x2e, 0x8d, 0xce, 0x36, 0xce, 0xa2, 0x3d, 0xec, 0xf1, 0x56, + 0x36, 0x90, 0x71, 0xec, 0x6a, 0xc7, 0x05, 0xbc, 0x71, 0x26, 0xc7, 0x02, 0x7f, 0x47, 0x70, 0x75, + 0xea, 0xeb, 0xc0, 0x0f, 0xe7, 0xe9, 0xcf, 0x7a, 0x79, 0xd6, 0xa3, 0x7f, 0x44, 0x9b, 0x18, 0x3b, + 0x3a, 0x46, 0x19, 0xdf, 0x4b, 0x8d, 0x11, 0x2b, 0xbc, 0x5f, 0x33, 0x04, 0x3e, 0x37, 0x0c, 0x4f, + 0x0e, 0xbe, 0x75, 0x6d, 0x74, 0xd2, 0xb5, 0xd1, 0xaf, 0xae, 0x8d, 0xde, 0xf7, 0xec, 0xdc, 0x49, + 0xcf, 0xce, 0xfd, 0xec, 0xd9, 0xb9, 0x57, 0xdb, 0x41, 0x28, 0x1b, 0xed, 0x43, 0xb7, 0xc6, 0x5a, + 0x9a, 0x55, 0x7f, 0x19, 0x6a, 0xac, 0x39, 0x2a, 0x71, 0x3c, 0x2e, 0xa2, 0xfe, 0x84, 0xc4, 0xe1, + 0x45, 0x5d, 0x59, 0xf9, 0x13, 0x00, 0x00, 0xff, 0xff, 0x4d, 0x03, 0x35, 0xcc, 0xd3, 0x06, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -516,10 +525,13 @@ const _ = grpc.SupportPackageIsVersion4 type QueryClient interface { // DataRequestWasm returns Data Request Wasm given its hash. DataRequestWasm(ctx context.Context, in *QueryDataRequestWasmRequest, opts ...grpc.CallOption) (*QueryDataRequestWasmResponse, error) + // DataRequestWasms returns all Data Request Wasms. DataRequestWasms(ctx context.Context, in *QueryDataRequestWasmsRequest, opts ...grpc.CallOption) (*QueryDataRequestWasmsResponse, error) // OverlayWasm returns Overlay Wasm given its hash. OverlayWasm(ctx context.Context, in *QueryOverlayWasmRequest, opts ...grpc.CallOption) (*QueryOverlayWasmResponse, error) + // OverlayWasms returns all Overlay Wasms. OverlayWasms(ctx context.Context, in *QueryOverlayWasmsRequest, opts ...grpc.CallOption) (*QueryOverlayWasmsResponse, error) + // ProxyContractRegistry returns the Proxy Contract Registry address. ProxyContractRegistry(ctx context.Context, in *QueryProxyContractRegistryRequest, opts ...grpc.CallOption) (*QueryProxyContractRegistryResponse, error) } @@ -580,10 +592,13 @@ func (c *queryClient) ProxyContractRegistry(ctx context.Context, in *QueryProxyC type QueryServer interface { // DataRequestWasm returns Data Request Wasm given its hash. DataRequestWasm(context.Context, *QueryDataRequestWasmRequest) (*QueryDataRequestWasmResponse, error) + // DataRequestWasms returns all Data Request Wasms. DataRequestWasms(context.Context, *QueryDataRequestWasmsRequest) (*QueryDataRequestWasmsResponse, error) // OverlayWasm returns Overlay Wasm given its hash. OverlayWasm(context.Context, *QueryOverlayWasmRequest) (*QueryOverlayWasmResponse, error) + // OverlayWasms returns all Overlay Wasms. OverlayWasms(context.Context, *QueryOverlayWasmsRequest) (*QueryOverlayWasmsResponse, error) + // ProxyContractRegistry returns the Proxy Contract Registry address. ProxyContractRegistry(context.Context, *QueryProxyContractRegistryRequest) (*QueryProxyContractRegistryResponse, error) } diff --git a/x/wasm-storage/types/tx.pb.go b/x/wasm-storage/types/tx.pb.go index 5cdad941..57547454 100644 --- a/x/wasm-storage/types/tx.pb.go +++ b/x/wasm-storage/types/tx.pb.go @@ -33,10 +33,11 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// The request message for the StoreDataRequestWasm method. type MsgStoreDataRequestWasm struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Wasm []byte `protobuf:"bytes,2,opt,name=wasm,proto3" json:"wasm,omitempty"` - WasmType WasmType `protobuf:"varint,3,opt,name=wasmType,proto3,enum=sedachain.wasm_storage.v1.WasmType" json:"wasmType,omitempty"` + WasmType WasmType `protobuf:"varint,3,opt,name=wasm_type,json=wasmType,proto3,enum=sedachain.wasm_storage.v1.WasmType" json:"wasm_type,omitempty"` } func (m *MsgStoreDataRequestWasm) Reset() { *m = MsgStoreDataRequestWasm{} } @@ -93,6 +94,7 @@ func (m *MsgStoreDataRequestWasm) GetWasmType() WasmType { return WasmTypeNil } +// The response message for the StoreDataRequestWasm method. type MsgStoreDataRequestWasmResponse struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } @@ -137,10 +139,11 @@ func (m *MsgStoreDataRequestWasmResponse) GetHash() string { return "" } +// The request message for the StoreOverlayWasm method. type MsgStoreOverlayWasm struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Wasm []byte `protobuf:"bytes,2,opt,name=wasm,proto3" json:"wasm,omitempty"` - WasmType WasmType `protobuf:"varint,3,opt,name=wasmType,proto3,enum=sedachain.wasm_storage.v1.WasmType" json:"wasmType,omitempty"` + WasmType WasmType `protobuf:"varint,3,opt,name=wasm_type,json=wasmType,proto3,enum=sedachain.wasm_storage.v1.WasmType" json:"wasm_type,omitempty"` } func (m *MsgStoreOverlayWasm) Reset() { *m = MsgStoreOverlayWasm{} } @@ -197,6 +200,7 @@ func (m *MsgStoreOverlayWasm) GetWasmType() WasmType { return WasmTypeNil } +// The response message for the StoreOverlayWasm method. type MsgStoreOverlayWasmResponse struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } @@ -241,6 +245,7 @@ func (m *MsgStoreOverlayWasmResponse) GetHash() string { return "" } +// The request message for the InstantiateAndRegisterProxyContract method. type MsgInstantiateAndRegisterProxyContract struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` @@ -343,6 +348,7 @@ func (m *MsgInstantiateAndRegisterProxyContract) GetFixMsg() bool { return false } +// The response message for the InstantiateAndRegisterProxyContract method. type MsgInstantiateAndRegisterProxyContractResponse struct { ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` } @@ -391,6 +397,7 @@ func (m *MsgInstantiateAndRegisterProxyContractResponse) GetContractAddress() st return "" } +// The request message for the UpdateParams method. type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless // overwritten). @@ -498,56 +505,56 @@ func init() { } var fileDescriptor_10a76e8135c0d000 = []byte{ - // 778 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0x3d, 0x4f, 0x1b, 0x49, - 0x18, 0xf6, 0x9e, 0x3f, 0x80, 0x01, 0x01, 0xda, 0xb3, 0xc4, 0xda, 0x27, 0xd9, 0x3e, 0x23, 0x9d, - 0x2c, 0x74, 0xde, 0xc5, 0x3e, 0x1d, 0xa7, 0x43, 0x3a, 0x21, 0x6c, 0x1a, 0x17, 0x16, 0xdc, 0x72, - 0x27, 0xa4, 0x34, 0xd6, 0x78, 0x77, 0x58, 0xaf, 0xe2, 0xdd, 0x71, 0xf6, 0x1d, 0x83, 0x9d, 0x32, - 0x45, 0xea, 0xd4, 0xf9, 0x07, 0x89, 0x14, 0x09, 0x89, 0xfc, 0x08, 0x4a, 0x94, 0x2a, 0x15, 0x89, - 0x4c, 0x91, 0xff, 0x90, 0x2a, 0x9a, 0xd9, 0xb1, 0x31, 0x0a, 0x36, 0x26, 0x69, 0x52, 0xcd, 0xd7, - 0xf3, 0x3e, 0xef, 0xf7, 0x3b, 0x28, 0x0f, 0xc4, 0xc6, 0x56, 0x0b, 0xbb, 0xbe, 0x71, 0x8a, 0xc1, - 0x6b, 0x00, 0xa3, 0x01, 0x76, 0x88, 0x71, 0x52, 0x32, 0x58, 0x4f, 0xef, 0x04, 0x94, 0x51, 0x35, - 0x35, 0xc2, 0xe8, 0xe3, 0x18, 0xfd, 0xa4, 0x94, 0xce, 0x58, 0x14, 0x3c, 0x0a, 0x46, 0x13, 0x03, - 0x97, 0x69, 0x12, 0x86, 0x4b, 0x86, 0x45, 0x5d, 0x3f, 0x14, 0x4d, 0xaf, 0xc9, 0x77, 0x0f, 0x1c, - 0x4e, 0xe9, 0x81, 0x23, 0x1f, 0x92, 0x0e, 0x75, 0xa8, 0xd8, 0x1a, 0x7c, 0x27, 0x6f, 0x53, 0x21, - 0xbc, 0x11, 0x3e, 0x84, 0x07, 0xf9, 0xf4, 0xfb, 0x64, 0x43, 0x6f, 0x19, 0x25, 0xd0, 0xf9, 0x37, - 0x0a, 0x5a, 0xab, 0x83, 0x73, 0xc8, 0x68, 0x40, 0xf6, 0x30, 0xc3, 0x26, 0x79, 0xd2, 0x25, 0xc0, - 0x8e, 0x30, 0x78, 0xea, 0x26, 0x4a, 0x00, 0xf1, 0x6d, 0x12, 0x68, 0x4a, 0x4e, 0x29, 0x2c, 0x54, - 0xb4, 0x77, 0x6f, 0x8b, 0x49, 0xa9, 0x6b, 0xd7, 0xb6, 0x03, 0x02, 0x70, 0xc8, 0x02, 0xd7, 0x77, - 0x4c, 0x89, 0x53, 0x55, 0x14, 0xe3, 0x3a, 0xb4, 0x9f, 0x72, 0x4a, 0x61, 0xc9, 0x14, 0x7b, 0x75, - 0x07, 0xcd, 0xf3, 0xf5, 0xbf, 0x7e, 0x87, 0x68, 0xd1, 0x9c, 0x52, 0x58, 0x2e, 0xaf, 0xeb, 0x13, - 0xe3, 0xa4, 0x1f, 0x49, 0xa8, 0x39, 0x12, 0xda, 0x5e, 0x7c, 0xf6, 0xe9, 0x6c, 0x43, 0x6a, 0xc8, - 0xff, 0x89, 0xb2, 0x13, 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91, 0xde, - 0x7e, 0xb8, 0xcc, 0x28, 0x1b, 0x4f, 0xd1, 0xea, 0x57, 0x03, 0x45, 0x9f, 0x81, 0x6f, 0x0c, 0x9f, - 0xde, 0x7a, 0x18, 0x7e, 0xa4, 0xfb, 0x5c, 0x41, 0xeb, 0xb3, 0xb4, 0xfb, 0xee, 0x74, 0xfe, 0x19, - 0x28, 0xd2, 0xb5, 0xef, 0xa6, 0x18, 0x59, 0xed, 0xa3, 0xa5, 0x5b, 0x65, 0xb7, 0x31, 0x9d, 0x7a, - 0x1c, 0x9b, 0x2e, 0xcf, 0x8e, 0x1d, 0xea, 0xab, 0xfc, 0x7b, 0x31, 0xc8, 0x28, 0x97, 0x83, 0x8c, - 0xf2, 0x71, 0x90, 0x51, 0x5e, 0x5c, 0x67, 0x22, 0x97, 0xd7, 0x99, 0xc8, 0xfb, 0xeb, 0x4c, 0xe4, - 0xd1, 0x5f, 0x63, 0x6d, 0xce, 0x79, 0xc5, 0x6f, 0x68, 0xd1, 0xb6, 0x38, 0x14, 0xc3, 0xef, 0x33, - 0x9c, 0x30, 0xc5, 0xe1, 0x07, 0x2a, 0x7a, 0xbf, 0x99, 0x10, 0xc8, 0x3f, 0xbe, 0x04, 0x00, 0x00, - 0xff, 0xff, 0x13, 0x9d, 0x74, 0xeb, 0x10, 0x08, 0x00, 0x00, + // 783 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0x4f, 0x4f, 0xdb, 0x48, + 0x14, 0x8f, 0x37, 0x7f, 0x80, 0x01, 0x01, 0xf2, 0x46, 0xc2, 0xc9, 0x4a, 0x49, 0x36, 0x48, 0xab, + 0x08, 0x6d, 0x6c, 0x92, 0xd5, 0xb2, 0x5a, 0xa4, 0xd5, 0x96, 0x84, 0x4b, 0x0e, 0x11, 0xd4, 0xb4, + 0xaa, 0xd4, 0x4b, 0x34, 0xb1, 0x07, 0xc7, 0x6a, 0xec, 0x49, 0xfd, 0x26, 0x90, 0xf4, 0xd8, 0x43, + 0xcf, 0x3d, 0xf7, 0x23, 0x70, 0xa8, 0x90, 0xe8, 0x87, 0xe0, 0x88, 0x7a, 0xea, 0x89, 0x56, 0xe1, + 0xd0, 0xef, 0xd0, 0x53, 0x35, 0xe3, 0x49, 0x08, 0x2a, 0x09, 0xa1, 0xbd, 0xf4, 0xe4, 0xe7, 0x99, + 0xdf, 0xfb, 0xfd, 0xde, 0x9f, 0x79, 0x33, 0x28, 0x0f, 0xc4, 0xc6, 0x56, 0x0b, 0xbb, 0xbe, 0x71, + 0x8c, 0xc1, 0x6b, 0x00, 0xa3, 0x01, 0x76, 0x88, 0x71, 0x54, 0x32, 0x58, 0x4f, 0xef, 0x04, 0x94, + 0x51, 0x35, 0x35, 0xc2, 0xe8, 0xe3, 0x18, 0xfd, 0xa8, 0x94, 0xce, 0x58, 0x14, 0x3c, 0x0a, 0x46, + 0x13, 0x03, 0xf7, 0x69, 0x12, 0x86, 0x4b, 0x86, 0x45, 0x5d, 0x3f, 0x74, 0x4d, 0xaf, 0xc9, 0x7d, + 0x0f, 0x1c, 0x4e, 0xe9, 0x81, 0x23, 0x37, 0x92, 0x0e, 0x75, 0xa8, 0x30, 0x0d, 0x6e, 0xc9, 0xd5, + 0x54, 0x08, 0x6f, 0x84, 0x1b, 0xe1, 0x8f, 0xdc, 0xfa, 0x73, 0x72, 0xa0, 0x37, 0x82, 0x12, 0xe8, + 0xfc, 0x5b, 0x05, 0xad, 0xd5, 0xc1, 0x39, 0x60, 0x34, 0x20, 0xbb, 0x98, 0x61, 0x93, 0x3c, 0xef, + 0x12, 0x60, 0x4f, 0x30, 0x78, 0xea, 0x26, 0x4a, 0x00, 0xf1, 0x6d, 0x12, 0x68, 0x4a, 0x4e, 0x29, + 0x2c, 0x54, 0xb4, 0xf7, 0xef, 0x8a, 0x49, 0xa9, 0xb5, 0x63, 0xdb, 0x01, 0x01, 0x38, 0x60, 0x81, + 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0d, 0x55, 0xff, 0x47, 0x89, 0x8e, + 0x60, 0x10, 0x87, 0x63, 0xb1, 0xfc, 0xfb, 0x94, 0x73, 0x1f, 0x4a, 0x55, 0x62, 0xbc, 0xd0, 0xa6, + 0x74, 0xdb, 0x5e, 0xe6, 0x05, 0xb9, 0x26, 0xcc, 0xa7, 0xc4, 0x85, 0x34, 0x1e, 0xdb, 0x30, 0xf9, + 0xf2, 0x69, 0x0c, 0x45, 0xeb, 0xe0, 0xa8, 0xaf, 0x14, 0x94, 0xbc, 0xf5, 0xc6, 0x2a, 0x4f, 0x11, + 0x9f, 0x70, 0x6b, 0xa4, 0xb7, 0xef, 0xef, 0x33, 0xea, 0xc6, 0x0b, 0xb4, 0xfa, 0xcd, 0x8d, 0xa2, + 0xcf, 0xc0, 0x37, 0x86, 0x4f, 0x6f, 0xdd, 0x0f, 0x3f, 0xd2, 0x3e, 0x53, 0xd0, 0xfa, 0x2c, 0xe3, + 0xbe, 0x33, 0x9d, 0x7f, 0x06, 0x8a, 0x74, 0xed, 0x87, 0x29, 0x46, 0x51, 0xfb, 0x68, 0xe9, 0xc6, + 0xb1, 0xdb, 0x98, 0x4e, 0x3d, 0x8e, 0x4d, 0x97, 0x67, 0xc7, 0x0e, 0xf5, 0x2a, 0x0f, 0xcf, 0x07, + 0x19, 0xe5, 0x62, 0x90, 0x51, 0x3e, 0x0d, 0x32, 0xca, 0xeb, 0xab, 0x4c, 0xe4, 0xe2, 0x2a, 0x13, + 0xf9, 0x70, 0x95, 0x89, 0x3c, 0xfd, 0x67, 0x6c, 0xcc, 0x39, 0xaf, 0x78, 0x0f, 0x2d, 0xda, 0x16, + 0x3f, 0xc5, 0xf0, 0x01, 0x0d, 0x6f, 0x98, 0xe2, 0xf0, 0x09, 0x15, 0xb3, 0xdf, 0x4c, 0x08, 0xe4, + 0x5f, 0x5f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x61, 0x15, 0x08, 0x55, 0x12, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -562,9 +569,16 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { + // The StoreDataRequestWasm method stores a dr wasm in the wasm-storage + // module. StoreDataRequestWasm(ctx context.Context, in *MsgStoreDataRequestWasm, opts ...grpc.CallOption) (*MsgStoreDataRequestWasmResponse, error) + // The StoreOverlayWasm method stores an overlay wasm in the wasm-storage + // module. StoreOverlayWasm(ctx context.Context, in *MsgStoreOverlayWasm, opts ...grpc.CallOption) (*MsgStoreOverlayWasmResponse, error) + // The InstantiateAndRegisterProxyContract method instantiates the proxy + // contract and registers it's address. InstantiateAndRegisterProxyContract(ctx context.Context, in *MsgInstantiateAndRegisterProxyContract, opts ...grpc.CallOption) (*MsgInstantiateAndRegisterProxyContractResponse, error) + // The UpdateParams method updates the module's parameters. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) } @@ -614,9 +628,16 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts // MsgServer is the server API for Msg service. type MsgServer interface { + // The StoreDataRequestWasm method stores a dr wasm in the wasm-storage + // module. StoreDataRequestWasm(context.Context, *MsgStoreDataRequestWasm) (*MsgStoreDataRequestWasmResponse, error) + // The StoreOverlayWasm method stores an overlay wasm in the wasm-storage + // module. StoreOverlayWasm(context.Context, *MsgStoreOverlayWasm) (*MsgStoreOverlayWasmResponse, error) + // The InstantiateAndRegisterProxyContract method instantiates the proxy + // contract and registers it's address. InstantiateAndRegisterProxyContract(context.Context, *MsgInstantiateAndRegisterProxyContract) (*MsgInstantiateAndRegisterProxyContractResponse, error) + // The UpdateParams method updates the module's parameters. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) } diff --git a/x/wasm-storage/types/wasm_storage.pb.go b/x/wasm-storage/types/wasm_storage.pb.go index b7f471d3..5134057d 100644 --- a/x/wasm-storage/types/wasm_storage.pb.go +++ b/x/wasm-storage/types/wasm_storage.pb.go @@ -27,14 +27,20 @@ var _ = time.Kitchen // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// WasmType is an enum for the type of wasm. type WasmType int32 const ( - WasmTypeNil WasmType = 0 - WasmTypeDataRequest WasmType = 1 - WasmTypeTally WasmType = 2 + // An unspecified kind of wasm. + WasmTypeNil WasmType = 0 + // A wasm that is a data request. + WasmTypeDataRequest WasmType = 1 + // A wasm that is a DR tally. + WasmTypeTally WasmType = 2 + // A wasm that is an overlay executor. WasmTypeDataRequestExecutor WasmType = 3 - WasmTypeRelayer WasmType = 4 + // A wasm that is an overlay relayer. + WasmTypeRelayer WasmType = 4 ) var WasmType_name = map[int32]string{ @@ -61,10 +67,11 @@ func (WasmType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_9a4bda463450c942, []int{0} } +// A Wasm msg. type Wasm struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Bytecode []byte `protobuf:"bytes,2,opt,name=bytecode,proto3" json:"bytecode,omitempty"` - WasmType WasmType `protobuf:"varint,3,opt,name=wasmType,proto3,enum=sedachain.wasm_storage.v1.WasmType" json:"wasmType,omitempty"` + WasmType WasmType `protobuf:"varint,3,opt,name=wasm_type,json=wasmType,proto3,enum=sedachain.wasm_storage.v1.WasmType" json:"wasm_type,omitempty"` AddedAt time.Time `protobuf:"bytes,4,opt,name=added_at,json=addedAt,proto3,stdtime" json:"added_at"` } @@ -129,6 +136,7 @@ func (m *Wasm) GetAddedAt() time.Time { return time.Time{} } +// Params to define the max wasm size allowed. type Params struct { MaxWasmSize uint64 `protobuf:"varint,1,opt,name=max_wasm_size,json=maxWasmSize,proto3" json:"max_wasm_size,omitempty"` } @@ -184,39 +192,40 @@ func init() { } var fileDescriptor_9a4bda463450c942 = []byte{ - // 510 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x6e, 0xda, 0x4c, - 0x14, 0xc5, 0x3d, 0xc4, 0xca, 0x87, 0x86, 0x2f, 0x85, 0x4c, 0xfa, 0x87, 0x4e, 0x25, 0xdb, 0xa2, - 0x52, 0x85, 0x50, 0x63, 0x2b, 0x64, 0x51, 0xa9, 0x9b, 0xca, 0x09, 0x53, 0x29, 0x12, 0x4d, 0x89, - 0x31, 0xa2, 0x74, 0x63, 0x0d, 0x30, 0x35, 0x96, 0xec, 0x0e, 0xc5, 0x43, 0x0a, 0x79, 0x82, 0x8a, - 0x6e, 0xf2, 0x02, 0x48, 0x95, 0xfa, 0x12, 0x7d, 0x84, 0x2c, 0xb3, 0xec, 0xaa, 0xad, 0x60, 0xd3, - 0xc7, 0xa8, 0x18, 0xd7, 0xa0, 0x48, 0xe9, 0xee, 0x1e, 0xfb, 0x77, 0xee, 0x3d, 0xf6, 0xbd, 0xf0, - 0x69, 0xcc, 0xfa, 0xb4, 0x37, 0xa0, 0xc1, 0x7b, 0xeb, 0x23, 0x8d, 0x23, 0x2f, 0x16, 0x7c, 0x44, - 0x7d, 0x66, 0x9d, 0x1f, 0xdc, 0xd0, 0xe6, 0x70, 0xc4, 0x05, 0x47, 0x0f, 0xd7, 0xb4, 0x79, 0xe3, - 0xed, 0xf9, 0x01, 0xbe, 0xeb, 0x73, 0x9f, 0x4b, 0xca, 0x5a, 0x55, 0x89, 0x01, 0xeb, 0x3e, 0xe7, - 0x7e, 0xc8, 0x2c, 0xa9, 0xba, 0xe3, 0x77, 0x96, 0x08, 0x22, 0x16, 0x0b, 0x1a, 0x0d, 0x13, 0xa0, - 0xf4, 0x0d, 0x40, 0xb5, 0x4d, 0xe3, 0x08, 0x21, 0xa8, 0x0e, 0x68, 0x3c, 0x28, 0x02, 0x03, 0x94, - 0xff, 0x77, 0x64, 0x8d, 0x30, 0xcc, 0x76, 0xa7, 0x82, 0xf5, 0x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, 0xbd, - 0x53, 0xc8, 0xe0, 0xdd, 0xd9, 0xdc, 0xd8, 0x49, 0x69, 0x97, 0x86, 0xe1, 0x14, 0xd5, 0xa0, 0x7e, - 0x7b, 0x73, 0x8f, 0xbc, 0x21, 0xc7, 0x2d, 0xf7, 0xb5, 0x53, 0xd8, 0xc2, 0xfa, 0x6c, 0x6e, 0x3c, - 0xba, 0x65, 0x0a, 0x99, 0xb0, 0xde, 0x58, 0xf0, 0x11, 0xaa, 0xc0, 0xdd, 0x4d, 0x17, 0x87, 0xd4, - 0xed, 0x0e, 0x71, 0x0a, 0x2a, 0xde, 0x9b, 0xcd, 0x8d, 0xfc, 0xfa, 0xff, 0xb3, 0x90, 0x4e, 0xd9, - 0x08, 0xab, 0x9f, 0xbe, 0x6a, 0xca, 0xd1, 0xd9, 0xd5, 0x42, 0x03, 0xd7, 0x0b, 0x0d, 0xfc, 0x5a, - 0x68, 0xe0, 0x72, 0xa9, 0x29, 0xd7, 0x4b, 0x4d, 0xf9, 0xbe, 0xd4, 0x94, 0xb7, 0xcf, 0xfc, 0x40, - 0x0c, 0xc6, 0x5d, 0xb3, 0xc7, 0x23, 0x6b, 0xb5, 0x55, 0xb9, 0x91, 0x1e, 0x0f, 0xa5, 0xd8, 0x4f, - 0xee, 0x75, 0x22, 0x2f, 0x74, 0x3f, 0xbd, 0x58, 0x31, 0x1d, 0xb2, 0xb8, 0xbb, 0x2d, 0xc9, 0xc3, - 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x35, 0x93, 0x43, 0x29, 0xd8, 0x02, 0x00, 0x00, + // 513 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x4f, 0x6e, 0xd3, 0x40, + 0x18, 0xc5, 0x3d, 0xad, 0x55, 0xc2, 0x84, 0x92, 0x74, 0xca, 0x9f, 0x30, 0x48, 0xb6, 0x15, 0x24, + 0x14, 0x45, 0x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0xeb, 0x93, 0xa9, 0xf1, 0xf8, 0x06, 0x17, 0x32, 0x62, 0x9d, 0xa1, 0xe0, 0x03, 0x54, 0x86, 0x5b, + 0xab, 0x53, 0x1c, 0x52, 0xb3, 0x5b, 0xc4, 0xc9, 0xab, 0x78, 0x7b, 0x32, 0x35, 0x72, 0xcb, 0xff, + 0xcf, 0x42, 0x3a, 0x66, 0x03, 0xac, 0x7e, 0xfe, 0xa6, 0x29, 0xfb, 0xc7, 0x97, 0x33, 0x0d, 0x5c, + 0xcd, 0x34, 0xf0, 0x7b, 0xa6, 0x81, 0x8b, 0xb9, 0xa6, 0x5c, 0xcd, 0x35, 0xe5, 0xc7, 0x5c, 0x53, + 0xde, 0x3f, 0xf7, 0x03, 0xd1, 0x1b, 0xb6, 0xcd, 0x0e, 0x8f, 0xac, 0xc5, 0xad, 0xca, 0x1b, 0xe9, + 0xf0, 0x50, 0x8a, 0x9d, 0xa4, 0xb0, 0x23, 0x59, 0xd1, 0x9d, 0xb4, 0xb2, 0x8b, 0x26, 0xc4, 0xed, + 0x0d, 0x49, 0xee, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x99, 0xad, 0x8f, 0x9a, 0xd9, 0x02, 0x00, + 0x00, } func (this *Params) Equal(that interface{}) bool {