diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c4eba4994..a33258047 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,7 +18,6 @@ jobs: VERSION: BINARY: DBENGINE: pebbledb - COSMWASM_VERSION: NAME_WITH_VERSION: steps: - name: Checking repository @@ -47,11 +46,6 @@ jobs: run: | echo Building elysd binary - COSMWASM_VERSION=$(go list -m github.com/CosmWasm/wasmvm/v2 | sed 's/.* //') - echo $COSMWASM_VERSION - - sudo wget https://github.com/CosmWasm/wasmvm/releases/download/${COSMWASM_VERSION}/libwasmvm_muslc.x86_64.a -O /usr/lib/libwasmvm.x86_64.a - sudo GOOS=linux GOARCH=amd64 go build -mod=readonly -trimpath -o elysd -ldflags "-X github.com/cosmos/cosmos-sdk/version.Name=${NAME} \ -X github.com/cosmos/cosmos-sdk/version.AppName=${NAME} \ -X github.com/cosmos/cosmos-sdk/version.ServerName=${BINARY} \ @@ -60,10 +54,10 @@ jobs: -X github.com/cosmos/cosmos-sdk/version.Commit=${COMMIT} \ -X github.com/cosmos/cosmos-sdk/types.DBBackend=${DBENGINE} \ -X github.com/elys-network/elys/app.NextVersion=${VERSION} \ - -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc,osusergo,${DBENGINE} \ + -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,osusergo,${DBENGINE} \ -w -s \ -linkmode=external \ - -extldflags '-Wl,-z,muldefs -static -lm'" -tags "ledger,${DBENGINE}" ./cmd/${BINARY} + " -tags "ledger,${DBENGINE}" ./cmd/${BINARY} echo "Version of elysd: $(./elysd version)" - name: Compressing elys binary run: | diff --git a/Makefile b/Makefile index 6925a34a8..a195cb6b6 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,6 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=$(NAME) \ -X github.com/cosmos/cosmos-sdk/types.DBBackend=$(DBENGINE) \ -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc,osusergo,$(DBENGINE) BUILD_FLAGS := -ldflags '$(ldflags)' -tags '$(GOTAGS)' -BUILD_FOLDER = ./build ## install: Install elysd binary in $GOBIN install: check-version go.sum @@ -58,19 +57,20 @@ install: check-version go.sum @GOFLAGS=$(GOFLAGS) go install $(BUILD_FLAGS) ./cmd/$(BINARY) @elysd version +$(BUILDDIR)/: + @-mkdir -p $(BUILDDIR) 2> /dev/null + ## build: Build the binary -build: check-version go.sum +build: check-version go.sum $(BUILDDIR)/ @echo Building Elysd binary... - @-mkdir -p $(BUILD_FOLDER) 2> /dev/null - @GOFLAGS=$(GOFLAGS) go build $(BUILD_FLAGS) -o $(BUILD_FOLDER) ./cmd/$(BINARY) + @GOFLAGS=$(GOFLAGS) go build $(BUILD_FLAGS) -o $(BUILDDIR) ./cmd/$(BINARY) ## build-all: Build binaries for all platforms -build-all: +build-all: $(BUILDDIR)/ @echo Building Elysd binaries for all platforms... - @-mkdir -p $(BUILD_FOLDER) 2> /dev/null - @GOFLAGS=$(GOFLAGS) GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o $(BUILD_FOLDER)/$(BINARY)-linux-amd64 ./cmd/$(BINARY) - @GOFLAGS=$(GOFLAGS) GOOS=linux GOARCH=arm64 go build $(BUILD_FLAGS) -o $(BUILD_FOLDER)/$(BINARY)-linux-arm64 ./cmd/$(BINARY) - @GOFLAGS=$(GOFLAGS) GOOS=darwin GOARCH=amd64 go build $(BUILD_FLAGS) -o $(BUILD_FOLDER)/$(BINARY)-darwin-amd64 ./cmd/$(BINARY) + @GOFLAGS=$(GOFLAGS) GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o $(BUILDDIR)/$(BINARY)-linux-amd64 ./cmd/$(BINARY) + @GOFLAGS=$(GOFLAGS) GOOS=linux GOARCH=arm64 go build $(BUILD_FLAGS) -o $(BUILDDIR)/$(BINARY)-linux-arm64 ./cmd/$(BINARY) + @GOFLAGS=$(GOFLAGS) GOOS=darwin GOARCH=amd64 go build $(BUILD_FLAGS) -o $(BUILDDIR)/$(BINARY)-darwin-amd64 ./cmd/$(BINARY) ## do-checksum: Generate checksums for all binaries do-checksum: @@ -79,7 +79,7 @@ do-checksum: ## build-with-checksum: Build binaries for all platforms and generate checksums build-with-checksum: build-all do-checksum -.PHONY: install build build-all do-checksum build-with-checksum +.PHONY: install build build-all do-checksum build-with-checksum $(BUILDDIR)/ ## mocks: Generate mocks mocks: @@ -103,7 +103,7 @@ ci-test-unit: ## clean: Clean build files. Runs `go clean` internally. clean: @echo Cleaning build cache... - @rm -rf $(BUILD_FOLDER) 2> /dev/null + @rm -rf $(BUILDDIR) 2> /dev/null @go clean ./... .PHONY: mocks test-unit ci-test-unit clean diff --git a/app/keepers/keys.go b/app/keepers/keys.go index 04adb39fe..eb00a8fd7 100644 --- a/app/keepers/keys.go +++ b/app/keepers/keys.go @@ -67,7 +67,6 @@ func (appKeepers *AppKeepers) GenerateKeys() { authz.ModuleName, group.StoreKey, consensusparamtypes.StoreKey, - "wasm", // TODO: to remove post-upgrade //ccvconsumertypes.StoreKey, diff --git a/app/setup_handlers.go b/app/setup_handlers.go index 8dccc025f..6076869a2 100644 --- a/app/setup_handlers.go +++ b/app/setup_handlers.go @@ -19,7 +19,7 @@ const ( ) // make sure to update these when you upgrade the version -var NextVersion = "v0.50.0" +var NextVersion = "v0.51.0" func (app *ElysApp) setUpgradeHandler() { app.UpgradeKeeper.SetUpgradeHandler( @@ -31,13 +31,7 @@ func (app *ElysApp) setUpgradeHandler() { if version.Version == NextVersion || version.Version == LocalNetVersion { // Add any logic here to run when the chain is upgraded to the new version - // Update consensus params in order to safely enable comet pruning - consensusParams, err := app.ConsensusParamsKeeper.ParamsStore.Get(ctx) - if err != nil { - return nil, err - } - consensusParams.Block.MaxBytes = NewMaxBytes - app.ConsensusParamsKeeper.ParamsStore.Set(ctx, consensusParams) + } return app.mm.RunMigrations(ctx, app.configurator, vm) @@ -60,7 +54,7 @@ func (app *ElysApp) setUpgradeStore() { if shouldLoadUpgradeStore(app, upgradeInfo) { storeUpgrades := storetypes.StoreUpgrades{ // Added: []string{}, - Deleted: []string{"clock", "wasm"}, + // Deleted: []string{}, } app.Logger().Info(fmt.Sprintf("Setting store loader with height %d and store upgrades: %+v\n", upgradeInfo.Height, storeUpgrades)) diff --git a/proto/elys/parameter/params.proto b/proto/elys/parameter/params.proto index 613770078..768a0a89d 100644 --- a/proto/elys/parameter/params.proto +++ b/proto/elys/parameter/params.proto @@ -24,18 +24,6 @@ message Params { string broker_address = 4; int64 total_blocks_per_year = 5; int64 rewards_data_lifetime = 6; // default 1 day = 86400 - string wasm_max_label_size = 7 [ - (gogoproto.customtype) = "cosmossdk.io/math.Int", - (gogoproto.nullable) = false - ]; - string wasm_max_size = 8 [ - (gogoproto.customtype) = "cosmossdk.io/math.Int", - (gogoproto.nullable) = false - ]; - string wasm_max_proposal_wasm_size = 9 [ - (gogoproto.customtype) = "cosmossdk.io/math.Int", - (gogoproto.nullable) = false - ]; } message LegacyParams { @@ -55,4 +43,17 @@ message LegacyParams { ]; string broker_address = 4; int64 total_blocks_per_year = 5; + int64 rewards_data_lifetime = 6; // default 1 day = 86400 + string wasm_max_label_size = 7 [ + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; + string wasm_max_size = 8 [ + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; + string wasm_max_proposal_wasm_size = 9 [ + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; } \ No newline at end of file diff --git a/proto/elys/parameter/tx.proto b/proto/elys/parameter/tx.proto index 76c558a57..e23df3d50 100644 --- a/proto/elys/parameter/tx.proto +++ b/proto/elys/parameter/tx.proto @@ -21,8 +21,6 @@ service Msg { returns (MsgUpdateBrokerAddressResponse); rpc UpdateTotalBlocksPerYear(MsgUpdateTotalBlocksPerYear) returns (MsgUpdateTotalBlocksPerYearResponse); - rpc UpdateWasmConfig(MsgUpdateWasmConfig) - returns (MsgUpdateWasmConfigResponse); rpc UpdateRewardsDataLifetime(MsgUpdateRewardsDataLifetime) returns (MsgUpdateRewardsDataLifetimeResponse); } @@ -71,17 +69,6 @@ message MsgUpdateTotalBlocksPerYear { message MsgUpdateTotalBlocksPerYearResponse {} -message MsgUpdateWasmConfig { - option (cosmos.msg.v1.signer) = "creator"; - option (amino.name) = "parameter/MsgUpdateWasmConfig"; - string creator = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; - string wasm_max_label_size = 2; - string wasm_max_size = 3; - string wasm_max_proposal_wasm_size = 4; -} - -message MsgUpdateWasmConfigResponse {} - message MsgUpdateRewardsDataLifetime { option (cosmos.msg.v1.signer) = "creator"; option (amino.name) = "parameter/MsgUpdateRewardsDataLifetime"; diff --git a/scripts/test_scripts/parameter/tx.sh b/scripts/test_scripts/parameter/tx.sh index 14f191cfd..b8af3a48f 100755 --- a/scripts/test_scripts/parameter/tx.sh +++ b/scripts/test_scripts/parameter/tx.sh @@ -51,13 +51,6 @@ sh ${current_dir}/scripts/test_tx_query/parameter/query.sh # sleep 10s -# echo "Tx: Create and vote on gov Proposal for MsgUpdateWasmConfig" -# $BINARY tx gov submit-proposal ${current_dir}/scripts/test_tx_query/parameter/update_wasm_config.json --from=$MY_VALIDATOR_ADDRESS --keyring-backend=test --chain-id=elys --gas=1000000 -# query_tx "create gov proposal" -# sh ${current_dir}/scripts/test_tx_query/vote.sh - -# sleep 10s - # echo "Tx: Create and vote on gov Proposal for MsgUpdateRewardsDataLifetime" # $BINARY tx gov submit-proposal ${current_dir}/scripts/test_tx_query/parameter/update_rewards_data_lifetime.json --from=$MY_VALIDATOR_ADDRESS --keyring-backend=test --chain-id=elys --gas=1000000 # query_tx "create gov proposal" diff --git a/scripts/test_scripts/parameter/update_wasm_config.json b/scripts/test_scripts/parameter/update_wasm_config.json deleted file mode 100644 index b1eec92d8..000000000 --- a/scripts/test_scripts/parameter/update_wasm_config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "messages": [ - { - "@type": "/elys.parameter.MsgUpdateWasmConfig", - "creator": "elys10d07y265gmmuvt4z0w9aw880jnsr700j6z2zm3", - "wasm_max_label_size": "256", - "wasm_max_size": "6291456", - "wasm_max_proposal_wasm_size": "1638400" - } - ], - "metadata": "ipfs://CID", - - "deposit": "10000000stake", - "title": "MsgUpdateWasmConfig", - "summary": "asdasd" -} \ No newline at end of file diff --git a/x/accountedpool/types/query.pb.go b/x/accountedpool/types/query.pb.go index 80e07df7e..8baceeffa 100644 --- a/x/accountedpool/types/query.pb.go +++ b/x/accountedpool/types/query.pb.go @@ -356,6 +356,7 @@ func _Query_AccountedPoolAll_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.accountedpool.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/accountedpool/types/tx.pb.go b/x/accountedpool/types/tx.pb.go index 154953843..41a8b321c 100644 --- a/x/accountedpool/types/tx.pb.go +++ b/x/accountedpool/types/tx.pb.go @@ -78,6 +78,7 @@ func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.accountedpool.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/amm/types/query.pb.go b/x/amm/types/query.pb.go index 45770b7a3..552485124 100644 --- a/x/amm/types/query.pb.go +++ b/x/amm/types/query.pb.go @@ -2104,6 +2104,7 @@ func _Query_SwapEstimationByDenom_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.amm.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/amm/types/tx.pb.go b/x/amm/types/tx.pb.go index eda3d6ecd..1e68ef3af 100644 --- a/x/amm/types/tx.pb.go +++ b/x/amm/types/tx.pb.go @@ -1590,6 +1590,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.amm.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/assetprofile/types/query.pb.go b/x/assetprofile/types/query.pb.go index 53139cbc3..436ed1def 100644 --- a/x/assetprofile/types/query.pb.go +++ b/x/assetprofile/types/query.pb.go @@ -604,6 +604,7 @@ func _Query_EntryAll_Handler(srv interface{}, ctx context.Context, dec func(inte return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.assetprofile.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/assetprofile/types/tx.pb.go b/x/assetprofile/types/tx.pb.go index 43afdc982..39985877f 100644 --- a/x/assetprofile/types/tx.pb.go +++ b/x/assetprofile/types/tx.pb.go @@ -764,6 +764,7 @@ func _Msg_AddEntry_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.assetprofile.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/burner/types/query.pb.go b/x/burner/types/query.pb.go index 3bd23c387..6cbaf0b42 100644 --- a/x/burner/types/query.pb.go +++ b/x/burner/types/query.pb.go @@ -487,6 +487,7 @@ func _Query_HistoryAll_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.burner.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/burner/types/tx.pb.go b/x/burner/types/tx.pb.go index e6510aada..616da1740 100644 --- a/x/burner/types/tx.pb.go +++ b/x/burner/types/tx.pb.go @@ -216,6 +216,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.burner.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/commitment/types/query.pb.go b/x/commitment/types/query.pb.go index 8d33b49d7..d16220858 100644 --- a/x/commitment/types/query.pb.go +++ b/x/commitment/types/query.pb.go @@ -817,6 +817,7 @@ func _Query_CommitmentVestingInfo_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.commitment.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/commitment/types/tx.pb.go b/x/commitment/types/tx.pb.go index 6fb09d353..f5609648d 100644 --- a/x/commitment/types/tx.pb.go +++ b/x/commitment/types/tx.pb.go @@ -1467,6 +1467,7 @@ func _Msg_Unstake_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.commitment.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/epochs/types/query.pb.go b/x/epochs/types/query.pb.go index 85ca8b0b0..45a4d5bbd 100644 --- a/x/epochs/types/query.pb.go +++ b/x/epochs/types/query.pb.go @@ -372,6 +372,7 @@ func _Query_CurrentEpoch_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.epochs.v1.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/estaking/types/query.pb.go b/x/estaking/types/query.pb.go index ebf6e6393..c837e931d 100644 --- a/x/estaking/types/query.pb.go +++ b/x/estaking/types/query.pb.go @@ -533,6 +533,7 @@ func _Query_Invariant_Handler(srv interface{}, ctx context.Context, dec func(int return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.estaking.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/estaking/types/tx.pb.go b/x/estaking/types/tx.pb.go index a9d5a880a..2187e633f 100644 --- a/x/estaking/types/tx.pb.go +++ b/x/estaking/types/tx.pb.go @@ -645,6 +645,7 @@ func _Msg_WithdrawAllRewards_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.estaking.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/leveragelp/spec/04_endpoints.md b/x/leveragelp/spec/04_endpoints.md index 25b98b0d7..82a9d669e 100644 --- a/x/leveragelp/spec/04_endpoints.md +++ b/x/leveragelp/spec/04_endpoints.md @@ -194,66 +194,4 @@ Queries position open estimation result. ### CloseEst -Queries position close estimation result. - -## Wasmbindings - -### Messages - -#### LeveragelpOpen - -Connect wasmbinding to `MsgOpen` - -#### LeveragelpClose - -Connect wasmbinding to `MsgClose` - -### Queries - -#### LeveragelpParams - -Connect wasmbinding to `Params` query. - -#### LeveragelpQueryPositions - -Connect wasmbinding to `QueryPositions` query. - -#### LeveragelpQueryPositionsByPool - -Connect wasmbinding to `QueryPositionsByPool` query. - -#### LeveragelpGetStatus - -Connect wasmbinding to `GetStatus` query. - -#### LeveragelpQueryPositionsForAddress - -Connect wasmbinding to `QueryPositionsForAddress` query. - -#### LeveragelpGetWhitelist - -Connect wasmbinding to `GetWhitelist` query. - -#### LeveragelpIsWhitelisted - -Connect wasmbinding to `IsWhitelisted` query. - -#### LeveragelpPool - -Connect wasmbinding to `Pool` query. - -#### LeveragelpPools - -Connect wasmbinding to `Pools` query. - -#### LeveragelpPosition - -Connect wasmbinding to `Position` query. - -#### LeveragelpOpenEst - -Connect wasmbinding to `OpenEst` query. - -#### LeveragelpCloseEst - -Connect wasmbinding to `CloseEst` query. +Queries position close estimation result. \ No newline at end of file diff --git a/x/leveragelp/types/query.pb.go b/x/leveragelp/types/query.pb.go index d0459ec30..f4327647a 100644 --- a/x/leveragelp/types/query.pb.go +++ b/x/leveragelp/types/query.pb.go @@ -2155,6 +2155,7 @@ func _Query_CommittedTokensLocked_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.leveragelp.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/leveragelp/types/tx.pb.go b/x/leveragelp/types/tx.pb.go index 589a1145f..f88920aab 100644 --- a/x/leveragelp/types/tx.pb.go +++ b/x/leveragelp/types/tx.pb.go @@ -1436,6 +1436,7 @@ func _Msg_ClosePositions_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.leveragelp.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/masterchef/spec/04_endpoints.md b/x/masterchef/spec/04_endpoints.md index 044b4dfb2..2742bcdcb 100644 --- a/x/masterchef/spec/04_endpoints.md +++ b/x/masterchef/spec/04_endpoints.md @@ -162,45 +162,3 @@ Query stablestake APR by reward denom. ### PoolAprs Query pool APRs from specified pool ids. If nothing's put in pool ids, full list of pool APRs returned. - -## Wasmbindings - -### Messages - -#### MastercheClaimRewards - -Connect wasmbinding to `MsgClaimRewards` - -### Queries - -#### MasterchefParams - -Connect wasmbinding to `Params` query. - -#### MasterchefExternalIncentive - -Connect wasmbinding to `ExternalIncentive` query. - -#### MasterchefPoolInfo - -Connect wasmbinding to `PoolInfo` query. - -#### MasterchefPoolRewardInfo - -Connect wasmbinding to `PoolRewardInfo` query. - -#### MasterchefUserRewardInfo - -Connect wasmbinding to `UserRewardInfo` query. - -#### MasterchefUserPendingReward - -Connect wasmbinding to `UserPendingReward` query. - -#### MasterchefStableStakeApr - -Connect wasmbinding to `StableStakeApr` query. - -#### MasterchefPoolAprs - -Connect wasmbinding to `PoolAprs` query. diff --git a/x/masterchef/types/query.pb.go b/x/masterchef/types/query.pb.go index 5aa2991d3..2316b5ec2 100644 --- a/x/masterchef/types/query.pb.go +++ b/x/masterchef/types/query.pb.go @@ -1954,6 +1954,7 @@ func _Query_PoolRewards_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.masterchef.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/masterchef/types/tx.pb.go b/x/masterchef/types/tx.pb.go index ff4e1b20a..0aeefc073 100644 --- a/x/masterchef/types/tx.pb.go +++ b/x/masterchef/types/tx.pb.go @@ -951,6 +951,7 @@ func _Msg_TogglePoolEdenRewards_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.masterchef.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/oracle/types/query.pb.go b/x/oracle/types/query.pb.go index 38e20e060..8b2c2f4fd 100644 --- a/x/oracle/types/query.pb.go +++ b/x/oracle/types/query.pb.go @@ -1280,6 +1280,7 @@ func _Query_PriceFeederAll_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.oracle.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/oracle/types/tx.pb.go b/x/oracle/types/tx.pb.go index cadd3c47b..9a2e2ac05 100644 --- a/x/oracle/types/tx.pb.go +++ b/x/oracle/types/tx.pb.go @@ -1276,6 +1276,7 @@ func _Msg_CreateAssetInfo_Handler(srv interface{}, ctx context.Context, dec func return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.oracle.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/parameter/keeper/msg_server_update_wasm_config.go b/x/parameter/keeper/msg_server_update_wasm_config.go deleted file mode 100644 index 979caa49d..000000000 --- a/x/parameter/keeper/msg_server_update_wasm_config.go +++ /dev/null @@ -1,50 +0,0 @@ -package keeper - -import ( - "context" - - "cosmossdk.io/math" - - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/elys-network/elys/x/parameter/types" -) - -// UPDATE wasm config -func (k msgServer) UpdateWasmConfig(goCtx context.Context, msg *types.MsgUpdateWasmConfig) (*types.MsgUpdateWasmConfigResponse, error) { - if err := msg.ValidateBasic(); err != nil { - return nil, err - } - ctx := sdk.UnwrapSDKContext(goCtx) - - if k.authority != msg.Creator { - return nil, errorsmod.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", k.authority, msg.Creator) - } - - wasmMaxLabelSize, ok := math.NewIntFromString(msg.WasmMaxLabelSize) - - if !ok { - return nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "wasm max label size must be a positive integer") - } - - wasmMaxProposalWasmSize, ok := math.NewIntFromString(msg.WasmMaxProposalWasmSize) - - if !ok { - return nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "wasm max proposal wasm size must be a positive integer") - } - - wasmMaxSize, ok := math.NewIntFromString(msg.WasmMaxSize) - - if !ok { - return nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "wasm max size must be a positive integer") - } - - params := k.GetParams(ctx) - params.WasmMaxLabelSize = wasmMaxLabelSize - params.WasmMaxProposalWasmSize = wasmMaxProposalWasmSize - params.WasmMaxSize = wasmMaxSize - k.SetParams(ctx, params) - return &types.MsgUpdateWasmConfigResponse{}, nil -} diff --git a/x/parameter/migrations/v4_migration.go b/x/parameter/migrations/v4_migration.go index 7abb78a22..b11978020 100644 --- a/x/parameter/migrations/v4_migration.go +++ b/x/parameter/migrations/v4_migration.go @@ -1,7 +1,6 @@ package migrations import ( - "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/elys-network/elys/x/parameter/types" ) @@ -16,9 +15,6 @@ func (m Migrator) V4Migration(ctx sdk.Context) error { legacy.BrokerAddress, // broker address legacy.TotalBlocksPerYear, // total blocks per year 86400, // 24 hrs - math.NewInt(256), - math.NewInt(1638400), - math.NewInt(6291456), ) m.keeper.SetParams(ctx, params) diff --git a/x/parameter/module.go b/x/parameter/module.go index 438f520f9..7f20a0120 100644 --- a/x/parameter/module.go +++ b/x/parameter/module.go @@ -2,10 +2,11 @@ package parameter import ( "context" - "cosmossdk.io/core/appmodule" "encoding/json" "fmt" + "cosmossdk.io/core/appmodule" + // this line is used by starport scaffolding # 1 "github.com/grpc-ecosystem/grpc-gateway/runtime" @@ -140,8 +141,6 @@ func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.Ra cdc.MustUnmarshalJSON(gs, &genState) InitGenesis(ctx, am.keeper, genState) - - return } // ExportGenesis returns the module's exported genesis state as raw JSON bytes. @@ -151,7 +150,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented on each consensus-breaking change introduced by the module. To avoid wrong/empty versions, the initial version should be set to 1 -func (AppModule) ConsensusVersion() uint64 { return 3 } +func (AppModule) ConsensusVersion() uint64 { return 4 } // BeginBlock contains the logic that is automatically triggered at the beginning of each block func (am AppModule) BeginBlock(_ context.Context) error { diff --git a/x/parameter/module_simulation.go b/x/parameter/module_simulation.go index c3473c9d2..7d8494f6a 100644 --- a/x/parameter/module_simulation.go +++ b/x/parameter/module_simulation.go @@ -19,10 +19,6 @@ var ( ) const ( - opWeightMsgUpdateWasmConfig = "op_weight_msg_update_wasm_config" - // TODO: Determine the simulation weight value - defaultWeightMsgUpdateWasmConfig int = 100 - opWeightMsgUpdateRewardsDataLifetime = "op_weight_msg_update_rewards_data_lifetime" // TODO: Determine the simulation weight value defaultWeightMsgUpdateRewardsDataLifetime int = 100 @@ -55,17 +51,6 @@ func (am AppModule) RegisterStoreDecoder(sdr simtypes.StoreDecoderRegistry) {} func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { operations := make([]simtypes.WeightedOperation, 0) - /*var weightMsgUpdateWasmConfig int - simState.AppParams.GetOrGenerate(opWeightMsgUpdateWasmConfig, &weightMsgUpdateWasmConfig, nil, - func(_ *rand.Rand) { - weightMsgUpdateWasmConfig = defaultWeightMsgUpdateWasmConfig - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgUpdateWasmConfig, - parametersimulation.SimulateMsgUpdateWasmConfig(am.accountKeeper, am.bankKeeper, am.keeper), - ))*/ - // this line is used by starport scaffolding # simapp/module/operation return operations diff --git a/x/parameter/simulation/update_wasm_config.go b/x/parameter/simulation/update_wasm_config.go deleted file mode 100644 index 04eb5d627..000000000 --- a/x/parameter/simulation/update_wasm_config.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/elys-network/elys/x/parameter/keeper" - "github.com/elys-network/elys/x/parameter/types" -) - -func SimulateMsgUpdateWasmConfig( - ak types.AccountKeeper, - bk types.BankKeeper, - k keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - //simAccount, _ := simtypes.RandomAcc(r, accs) - //msg := &types.MsgUpdateWasmConfig{ - // Creator: simAccount.Address.String(), - //} - - // TODO: Handling the UpdateWasmConfig simulation - - return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(&types.MsgUpdateWasmConfig{}), "UpdateWasmConfig simulation not implemented"), nil, nil - } -} diff --git a/x/parameter/spec/01_concepts.md b/x/parameter/spec/01_concepts.md index 128908be4..9a126a223 100644 --- a/x/parameter/spec/01_concepts.md +++ b/x/parameter/spec/01_concepts.md @@ -4,7 +4,7 @@ order: 1 # Concepts -The `parameter` module in the Elys Network manages key configuration parameters for the network, enabling dynamic updates and retrievals. It facilitates the modification of various parameters related to commissions, voting power, self-delegation, broker address, total blocks per year, and WASM configuration. +The `parameter` module in the Elys Network manages key configuration parameters for the network, enabling dynamic updates and retrievals. It facilitates the modification of various parameters related to commissions, voting power, self-delegation, broker address and total blocks per year. ## Module Components @@ -37,40 +37,6 @@ func (k msgServer) UpdateMinCommission(goCtx context.Context, msg *types.MsgUpda - Returns an error if the caller lacks authority or if the commission rate is invalid. -### 2. `UpdateWasmConfig` - -The `UpdateWasmConfig` function updates the configuration parameters for WASM. It includes the maximum label size, maximum size, and maximum proposal size. - -**Function Signature**: - -```go -func (k msgServer) UpdateWasmConfig(goCtx context.Context, msg *types.MsgUpdateWasmConfig) (*types.MsgUpdateWasmConfigResponse, error) -``` - -**Parameters**: - -- `goCtx`: The context of the current transaction. -- `msg`: The message containing the new WASM configuration values. - -**Return**: - -- Returns an error if the caller lacks authority or if the parameters are invalid. - -## Hooks - -The `parameter` module does not include hooks as it primarily deals with static configuration parameters rather than dynamic state changes. - -## Error Handling - -The `parameter` module includes error handling to manage invalid parameters or unauthorized access. Notable errors include: - -- `types.ErrInvalidMinCommissionRate` -- `types.ErrInvalidMaxVotingPower` -- `types.ErrInvalidMinSelfDelegation` -- `types.ErrInvalidBrokerAddress` - -These errors ensure that the module can gracefully handle invalid updates and provide meaningful feedback for debugging and resolution. - ## Integration The `parameter` module integrates with other modules by providing a centralized mechanism for updating and retrieving configuration parameters. It ensures consistent and controlled parameter management across the network. diff --git a/x/parameter/spec/04_protobuf_definitions.md b/x/parameter/spec/04_protobuf_definitions.md index a2227cfb4..02c02f9ad 100644 --- a/x/parameter/spec/04_protobuf_definitions.md +++ b/x/parameter/spec/04_protobuf_definitions.md @@ -8,7 +8,7 @@ order: 4 ### Params -The `Params` message defines the structure of the configuration parameters, including commission rates, voting power, self-delegation, broker address, and WASM configuration. +The `Params` message defines the structure of the configuration parameters, including commission rates, voting power, self-delegation and broker address. ```proto message Params { @@ -27,18 +27,6 @@ message Params { string broker_address = 4; int64 total_blocks_per_year = 5; int64 rewards_data_lifetime = 6; - string wasm_max_label_size = 7 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; - string wasm_max_size = 8 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; - string wasm_max_proposal_wasm_size = 9 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false - ]; } ``` @@ -66,20 +54,6 @@ message MsgUpdateMinCommission { message MsgUpdateMinCommissionResponse {} ``` -### MsgUpdateWasmConfig - -This message updates the WASM configuration parameters. - -```proto -message MsgUpdateWasmConfig { - string creator = 1; - string wasm_max_label_size = 2; - string wasm_max_size = 3; - string wasm_max_proposal_wasm_size = 4; -} -message MsgUpdateWasmConfigResponse {} -``` - ## Queries ### Query Service diff --git a/x/parameter/spec/05_functions.md b/x/parameter/spec/05_functions.md index f8ce212da..5d5032413 100644 --- a/x/parameter/spec/05_functions.md +++ b/x/parameter/spec/05_functions.md @@ -26,42 +26,4 @@ func (k msgServer) UpdateMinCommission(goCtx context.Context, msg *types.MsgUpda k.SetParams(ctx, params) return &types.MsgUpdateMinCommissionResponse{}, nil } -``` - -## UpdateWasmConfig - -The `UpdateWasmConfig` function updates the WASM configuration parameters. - -```go -func (k msgServer) UpdateWasmConfig(goCtx context.Context, msg *types.MsgUpdateWasmConfig) (*types.MsgUpdateWasmConfigResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - if k.authority != msg.Creator { - return nil, errorsmod.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", k.authority, msg.Creator) - } - - wasmMaxLabelSize, ok := math.NewIntFromString(msg.WasmMaxLabelSize) - if !ok { - return nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "wasm max label size must be a positive integer") - } - - wasmMaxProposalWasmSize, ok := math.NewIntFromString(msg.WasmMaxProposalWasmSize) - if !ok { - return nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "wasm max proposal wasm size must be a positive integer") - } - - wasmMaxSize, ok := math.NewIntFromString(msg.WasmMaxSize) - - - if !ok { - return nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "wasm max size must be a positive integer") - } - - params := k.GetParams(ctx) - params.WasmMaxLabelSize = wasmMaxLabelSize - params.WasmMaxProposalWasmSize = wasmMaxProposalWasmSize - params.WasmMaxSize = wasmMaxSize - k.SetParams(ctx, params) - return &types.MsgUpdateWasmConfigResponse{}, nil -} -``` +``` \ No newline at end of file diff --git a/x/parameter/types/codec.go b/x/parameter/types/codec.go index bdac9ab73..c3ca97843 100644 --- a/x/parameter/types/codec.go +++ b/x/parameter/types/codec.go @@ -10,7 +10,6 @@ import ( ) func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { - legacy.RegisterAminoMsg(cdc, &MsgUpdateWasmConfig{}, "parameter/MsgUpdateWasmConfig") cdc.RegisterConcrete(&MsgUpdateRewardsDataLifetime{}, "parameter/UpdateRewardsDataLifetime", nil) // this line is used by starport scaffolding # 2 legacy.RegisterAminoMsg(cdc, &MsgUpdateMinCommission{}, "parameter/MsgUpdateMinCommission") @@ -28,7 +27,6 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgUpdateMinSelfDelegation{}, &MsgUpdateBrokerAddress{}, &MsgUpdateTotalBlocksPerYear{}, - &MsgUpdateWasmConfig{}, &MsgUpdateRewardsDataLifetime{}, ) // this line is used by starport scaffolding # 3 diff --git a/x/parameter/types/message_update_wasm_config.go b/x/parameter/types/message_update_wasm_config.go deleted file mode 100644 index edfce5e04..000000000 --- a/x/parameter/types/message_update_wasm_config.go +++ /dev/null @@ -1,44 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -var _ sdk.Msg = &MsgUpdateWasmConfig{} - -func NewMsgUpdateWasmConfig(creator string, wasmMaxLabelSize string, wasmMaxSize string, wasmMaxProposalWasmSize string) *MsgUpdateWasmConfig { - return &MsgUpdateWasmConfig{ - Creator: creator, - WasmMaxLabelSize: wasmMaxLabelSize, - WasmMaxSize: wasmMaxSize, - WasmMaxProposalWasmSize: wasmMaxProposalWasmSize, - } -} - -func (msg *MsgUpdateWasmConfig) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - res, ok := math.NewIntFromString(msg.WasmMaxLabelSize) - - if !ok || !res.IsPositive() { - return errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "wasm max label size must be a positive integer") - } - - res, ok = math.NewIntFromString(msg.WasmMaxProposalWasmSize) - - if !ok || !res.IsPositive() { - return errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "wasm max proposal wasm size must be a positive integer") - } - - res, ok = math.NewIntFromString(msg.WasmMaxSize) - - if !ok || !res.IsPositive() { - return errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "wasm max size must be a positive integer") - } - return nil -} diff --git a/x/parameter/types/message_update_wasm_config_test.go b/x/parameter/types/message_update_wasm_config_test.go deleted file mode 100644 index c3288eae9..000000000 --- a/x/parameter/types/message_update_wasm_config_test.go +++ /dev/null @@ -1,76 +0,0 @@ -package types - -import ( - "testing" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/elys-network/elys/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgUpdateWasmConfig_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUpdateWasmConfig - err error - }{ - { - name: "invalid address", - msg: MsgUpdateWasmConfig{ - Creator: "invalid_address", - WasmMaxLabelSize: "1", - WasmMaxSize: "1", - WasmMaxProposalWasmSize: "1", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgUpdateWasmConfig{ - Creator: sample.AccAddress(), - WasmMaxLabelSize: "1", - WasmMaxSize: "1", - WasmMaxProposalWasmSize: "1", - }, - }, - { - name: "invalid WasmMaxLabelSize", - msg: MsgUpdateWasmConfig{ - Creator: sample.AccAddress(), - WasmMaxLabelSize: "-1", - WasmMaxSize: "1", - WasmMaxProposalWasmSize: "1", - }, - err: sdkerrors.ErrInvalidRequest, - }, - { - name: "invalid WasmMaxSize", - msg: MsgUpdateWasmConfig{ - Creator: sample.AccAddress(), - WasmMaxLabelSize: "1", - WasmMaxSize: "-1", - WasmMaxProposalWasmSize: "1", - }, - err: sdkerrors.ErrInvalidRequest, - }, - { - name: "invalid WasmMaxProposalWasmSize", - msg: MsgUpdateWasmConfig{ - Creator: sample.AccAddress(), - WasmMaxLabelSize: "1", - WasmMaxSize: "1", - WasmMaxProposalWasmSize: "-1", - }, - err: sdkerrors.ErrInvalidRequest, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/parameter/types/params.go b/x/parameter/types/params.go index ec10c4a76..9f0e836b8 100644 --- a/x/parameter/types/params.go +++ b/x/parameter/types/params.go @@ -14,20 +14,14 @@ func NewParams( brokerAddress string, totalBlocksPerYear int64, rewardsDataLifeTime int64, - wasmMaxLabelSize sdkmath.Int, - wasmMaxSize sdkmath.Int, - wasmMaxProposalWasmSize sdkmath.Int, ) Params { return Params{ - MinCommissionRate: minCommissionRate, - MaxVotingPower: maxVotingPower, - MinSelfDelegation: minSelfDelegation, - BrokerAddress: brokerAddress, - TotalBlocksPerYear: totalBlocksPerYear, - RewardsDataLifetime: rewardsDataLifeTime, - WasmMaxLabelSize: wasmMaxLabelSize, - WasmMaxSize: wasmMaxSize, - WasmMaxProposalWasmSize: wasmMaxProposalWasmSize, + MinCommissionRate: minCommissionRate, + MaxVotingPower: maxVotingPower, + MinSelfDelegation: minSelfDelegation, + BrokerAddress: brokerAddress, + TotalBlocksPerYear: totalBlocksPerYear, + RewardsDataLifetime: rewardsDataLifeTime, } } @@ -39,10 +33,7 @@ func DefaultParams() Params { sdkmath.OneInt(), authtypes.NewModuleAddress("zero").String(), 6307200, - 86400, // 1 day - sdkmath.NewInt(256), //128*2 - sdkmath.NewInt(1638400), //819200 * 2 - sdkmath.NewInt(6291456), //3145728 * 2 + 86400, // 1 day ) } diff --git a/x/parameter/types/params.pb.go b/x/parameter/types/params.pb.go index 1abc5af45..bd6a9f477 100644 --- a/x/parameter/types/params.pb.go +++ b/x/parameter/types/params.pb.go @@ -26,15 +26,12 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Params defines the parameters for the module. type Params struct { - MinCommissionRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=min_commission_rate,json=minCommissionRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"min_commission_rate"` - MaxVotingPower cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=max_voting_power,json=maxVotingPower,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_voting_power"` - 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"` - BrokerAddress string `protobuf:"bytes,4,opt,name=broker_address,json=brokerAddress,proto3" json:"broker_address,omitempty"` - TotalBlocksPerYear int64 `protobuf:"varint,5,opt,name=total_blocks_per_year,json=totalBlocksPerYear,proto3" json:"total_blocks_per_year,omitempty"` - RewardsDataLifetime int64 `protobuf:"varint,6,opt,name=rewards_data_lifetime,json=rewardsDataLifetime,proto3" json:"rewards_data_lifetime,omitempty"` - WasmMaxLabelSize cosmossdk_io_math.Int `protobuf:"bytes,7,opt,name=wasm_max_label_size,json=wasmMaxLabelSize,proto3,customtype=cosmossdk.io/math.Int" json:"wasm_max_label_size"` - WasmMaxSize cosmossdk_io_math.Int `protobuf:"bytes,8,opt,name=wasm_max_size,json=wasmMaxSize,proto3,customtype=cosmossdk.io/math.Int" json:"wasm_max_size"` - WasmMaxProposalWasmSize cosmossdk_io_math.Int `protobuf:"bytes,9,opt,name=wasm_max_proposal_wasm_size,json=wasmMaxProposalWasmSize,proto3,customtype=cosmossdk.io/math.Int" json:"wasm_max_proposal_wasm_size"` + MinCommissionRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=min_commission_rate,json=minCommissionRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"min_commission_rate"` + MaxVotingPower cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=max_voting_power,json=maxVotingPower,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_voting_power"` + 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"` + BrokerAddress string `protobuf:"bytes,4,opt,name=broker_address,json=brokerAddress,proto3" json:"broker_address,omitempty"` + TotalBlocksPerYear int64 `protobuf:"varint,5,opt,name=total_blocks_per_year,json=totalBlocksPerYear,proto3" json:"total_blocks_per_year,omitempty"` + RewardsDataLifetime int64 `protobuf:"varint,6,opt,name=rewards_data_lifetime,json=rewardsDataLifetime,proto3" json:"rewards_data_lifetime,omitempty"` } func (m *Params) Reset() { *m = Params{} } @@ -91,11 +88,15 @@ func (m *Params) GetRewardsDataLifetime() int64 { } type LegacyParams struct { - MinCommissionRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=min_commission_rate,json=minCommissionRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"min_commission_rate"` - MaxVotingPower cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=max_voting_power,json=maxVotingPower,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_voting_power"` - 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"` - BrokerAddress string `protobuf:"bytes,4,opt,name=broker_address,json=brokerAddress,proto3" json:"broker_address,omitempty"` - TotalBlocksPerYear int64 `protobuf:"varint,5,opt,name=total_blocks_per_year,json=totalBlocksPerYear,proto3" json:"total_blocks_per_year,omitempty"` + MinCommissionRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=min_commission_rate,json=minCommissionRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"min_commission_rate"` + MaxVotingPower cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=max_voting_power,json=maxVotingPower,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_voting_power"` + 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"` + BrokerAddress string `protobuf:"bytes,4,opt,name=broker_address,json=brokerAddress,proto3" json:"broker_address,omitempty"` + TotalBlocksPerYear int64 `protobuf:"varint,5,opt,name=total_blocks_per_year,json=totalBlocksPerYear,proto3" json:"total_blocks_per_year,omitempty"` + RewardsDataLifetime int64 `protobuf:"varint,6,opt,name=rewards_data_lifetime,json=rewardsDataLifetime,proto3" json:"rewards_data_lifetime,omitempty"` + WasmMaxLabelSize cosmossdk_io_math.Int `protobuf:"bytes,7,opt,name=wasm_max_label_size,json=wasmMaxLabelSize,proto3,customtype=cosmossdk.io/math.Int" json:"wasm_max_label_size"` + WasmMaxSize cosmossdk_io_math.Int `protobuf:"bytes,8,opt,name=wasm_max_size,json=wasmMaxSize,proto3,customtype=cosmossdk.io/math.Int" json:"wasm_max_size"` + WasmMaxProposalWasmSize cosmossdk_io_math.Int `protobuf:"bytes,9,opt,name=wasm_max_proposal_wasm_size,json=wasmMaxProposalWasmSize,proto3,customtype=cosmossdk.io/math.Int" json:"wasm_max_proposal_wasm_size"` } func (m *LegacyParams) Reset() { *m = LegacyParams{} } @@ -144,6 +145,13 @@ func (m *LegacyParams) GetTotalBlocksPerYear() int64 { return 0 } +func (m *LegacyParams) GetRewardsDataLifetime() int64 { + if m != nil { + return m.RewardsDataLifetime + } + return 0 +} + func init() { proto.RegisterType((*Params)(nil), "elys.parameter.Params") proto.RegisterType((*LegacyParams)(nil), "elys.parameter.LegacyParams") @@ -152,38 +160,38 @@ func init() { func init() { proto.RegisterFile("elys/parameter/params.proto", fileDescriptor_b61780a5be327c2b) } var fileDescriptor_b61780a5be327c2b = []byte{ - // 485 bytes of a gzipped FileDescriptorProto + // 486 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x94, 0x41, 0x8b, 0xd3, 0x40, - 0x14, 0xc7, 0x9b, 0xdd, 0x5a, 0xdd, 0xd1, 0x2d, 0xeb, 0xd4, 0x62, 0xb0, 0x98, 0x2e, 0x2b, 0xc2, + 0x14, 0xc7, 0x1b, 0xbb, 0x5b, 0xdd, 0xd1, 0x2d, 0xeb, 0xd4, 0x62, 0xb0, 0x98, 0x2e, 0x2b, 0xc2, 0x5e, 0x4c, 0x51, 0x6f, 0xde, 0xb6, 0xf6, 0xa0, 0xd0, 0x42, 0x69, 0x41, 0x51, 0x0f, 0xc3, 0x6b, - 0xf2, 0x9a, 0x1d, 0x3a, 0x93, 0x09, 0x33, 0xa3, 0x6d, 0xf7, 0x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xb2, 0xbc, 0x61, + 0x02, 0x66, 0x28, 0x98, 0xe1, 0x17, 0xe8, 0xdf, 0xdc, 0xe5, 0xe3, 0x8e, 0x72, 0x72, 0x04, 0xab, + 0x61, 0xce, 0x4d, 0xf9, 0x05, 0xd2, 0x33, 0x72, 0x58, 0xd9, 0x9c, 0xe7, 0xd6, 0x2e, 0x9e, 0xdb, + 0xa5, 0xc7, 0x29, 0x3e, 0x90, 0x4e, 0xa5, 0xc8, 0xb4, 0xca, 0x94, 0x01, 0xc1, 0x5c, 0xc5, 0x09, + 0x0f, 0x76, 0x11, 0xde, 0x2f, 0x85, 0xe3, 0x92, 0x7f, 0x0b, 0x46, 0xe6, 0xf2, 0xe2, 0x2f, 0xec, + 0xbf, 0xba, 0xdc, 0x04, 0xde, 0xd5, 0x26, 0xf0, 0x7e, 0x6d, 0x02, 0xef, 0xeb, 0x36, 0xa8, 0x5d, + 0x6d, 0x83, 0xda, 0x8f, 0x6d, 0x50, 0x7b, 0x1f, 0x26, 0xdc, 0x9e, 0x7f, 0x9c, 0x85, 0x91, 0x92, + 0xbd, 0x7c, 0xc5, 0x3c, 0x49, 0xd1, 0x2e, 0x95, 0x5e, 0xb8, 0x87, 0xde, 0xea, 0x8f, 0x75, 0x64, + 0xd7, 0x19, 0x9a, 0x59, 0xc3, 0x2d, 0x9a, 0xe7, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x3d, + 0xdc, 0xd1, 0xad, 0x04, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -206,36 +214,6 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size := m.WasmMaxProposalWasmSize.Size() - i -= size - if _, err := m.WasmMaxProposalWasmSize.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - { - size := m.WasmMaxSize.Size() - i -= size - if _, err := m.WasmMaxSize.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - { - size := m.WasmMaxLabelSize.Size() - i -= size - if _, err := m.WasmMaxLabelSize.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a if m.RewardsDataLifetime != 0 { i = encodeVarintParams(dAtA, i, uint64(m.RewardsDataLifetime)) i-- @@ -306,6 +284,41 @@ func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + { + size := m.WasmMaxProposalWasmSize.Size() + i -= size + if _, err := m.WasmMaxProposalWasmSize.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + { + size := m.WasmMaxSize.Size() + i -= size + if _, err := m.WasmMaxSize.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + { + size := m.WasmMaxLabelSize.Size() + i -= size + if _, err := m.WasmMaxLabelSize.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + if m.RewardsDataLifetime != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.RewardsDataLifetime)) + i-- + dAtA[i] = 0x30 + } if m.TotalBlocksPerYear != 0 { i = encodeVarintParams(dAtA, i, uint64(m.TotalBlocksPerYear)) i-- @@ -384,12 +397,6 @@ func (m *Params) Size() (n int) { if m.RewardsDataLifetime != 0 { n += 1 + sovParams(uint64(m.RewardsDataLifetime)) } - l = m.WasmMaxLabelSize.Size() - n += 1 + l + sovParams(uint64(l)) - l = m.WasmMaxSize.Size() - n += 1 + l + sovParams(uint64(l)) - l = m.WasmMaxProposalWasmSize.Size() - n += 1 + l + sovParams(uint64(l)) return n } @@ -412,6 +419,15 @@ func (m *LegacyParams) Size() (n int) { if m.TotalBlocksPerYear != 0 { n += 1 + sovParams(uint64(m.TotalBlocksPerYear)) } + if m.RewardsDataLifetime != 0 { + n += 1 + sovParams(uint64(m.RewardsDataLifetime)) + } + l = m.WasmMaxLabelSize.Size() + n += 1 + l + sovParams(uint64(l)) + l = m.WasmMaxSize.Size() + n += 1 + l + sovParams(uint64(l)) + l = m.WasmMaxProposalWasmSize.Size() + n += 1 + l + sovParams(uint64(l)) return n } @@ -622,9 +638,59 @@ func (m *Params) Unmarshal(dAtA []byte) error { break } } - case 7: + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LegacyParams) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LegacyParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LegacyParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WasmMaxLabelSize", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MinCommissionRate", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -652,13 +718,13 @@ func (m *Params) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.WasmMaxLabelSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.MinCommissionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 8: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WasmMaxSize", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MaxVotingPower", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -686,13 +752,13 @@ func (m *Params) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.WasmMaxSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.MaxVotingPower.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 9: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WasmMaxProposalWasmSize", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MinSelfDelegation", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -720,63 +786,13 @@ func (m *Params) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.WasmMaxProposalWasmSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.MinSelfDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LegacyParams) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LegacyParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LegacyParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinCommissionRate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BrokerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -804,13 +820,49 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.MinCommissionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.BrokerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalBlocksPerYear", wireType) + } + m.TotalBlocksPerYear = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalBlocksPerYear |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RewardsDataLifetime", wireType) + } + m.RewardsDataLifetime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RewardsDataLifetime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxVotingPower", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WasmMaxLabelSize", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -838,13 +890,13 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.MaxVotingPower.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.WasmMaxLabelSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinSelfDelegation", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WasmMaxSize", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -872,13 +924,13 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.MinSelfDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.WasmMaxSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BrokerAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WasmMaxProposalWasmSize", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -906,27 +958,10 @@ func (m *LegacyParams) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BrokerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalBlocksPerYear", wireType) - } - m.TotalBlocksPerYear = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TotalBlocksPerYear |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.WasmMaxProposalWasmSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipParams(dAtA[iNdEx:]) diff --git a/x/parameter/types/query.pb.go b/x/parameter/types/query.pb.go index 1cfe0187a..5e460ad8c 100644 --- a/x/parameter/types/query.pb.go +++ b/x/parameter/types/query.pb.go @@ -209,6 +209,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.parameter.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/parameter/types/tx.pb.go b/x/parameter/types/tx.pb.go index 1ccb308c6..a0e8231ef 100644 --- a/x/parameter/types/tx.pb.go +++ b/x/parameter/types/tx.pb.go @@ -470,110 +470,6 @@ func (m *MsgUpdateTotalBlocksPerYearResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateTotalBlocksPerYearResponse proto.InternalMessageInfo -type MsgUpdateWasmConfig struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - WasmMaxLabelSize string `protobuf:"bytes,2,opt,name=wasm_max_label_size,json=wasmMaxLabelSize,proto3" json:"wasm_max_label_size,omitempty"` - WasmMaxSize string `protobuf:"bytes,3,opt,name=wasm_max_size,json=wasmMaxSize,proto3" json:"wasm_max_size,omitempty"` - WasmMaxProposalWasmSize string `protobuf:"bytes,4,opt,name=wasm_max_proposal_wasm_size,json=wasmMaxProposalWasmSize,proto3" json:"wasm_max_proposal_wasm_size,omitempty"` -} - -func (m *MsgUpdateWasmConfig) Reset() { *m = MsgUpdateWasmConfig{} } -func (m *MsgUpdateWasmConfig) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateWasmConfig) ProtoMessage() {} -func (*MsgUpdateWasmConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_9d997b2afb1f3cab, []int{10} -} -func (m *MsgUpdateWasmConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateWasmConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateWasmConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateWasmConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateWasmConfig.Merge(m, src) -} -func (m *MsgUpdateWasmConfig) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateWasmConfig) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateWasmConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateWasmConfig proto.InternalMessageInfo - -func (m *MsgUpdateWasmConfig) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgUpdateWasmConfig) GetWasmMaxLabelSize() string { - if m != nil { - return m.WasmMaxLabelSize - } - return "" -} - -func (m *MsgUpdateWasmConfig) GetWasmMaxSize() string { - if m != nil { - return m.WasmMaxSize - } - return "" -} - -func (m *MsgUpdateWasmConfig) GetWasmMaxProposalWasmSize() string { - if m != nil { - return m.WasmMaxProposalWasmSize - } - return "" -} - -type MsgUpdateWasmConfigResponse struct { -} - -func (m *MsgUpdateWasmConfigResponse) Reset() { *m = MsgUpdateWasmConfigResponse{} } -func (m *MsgUpdateWasmConfigResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateWasmConfigResponse) ProtoMessage() {} -func (*MsgUpdateWasmConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9d997b2afb1f3cab, []int{11} -} -func (m *MsgUpdateWasmConfigResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateWasmConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateWasmConfigResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateWasmConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateWasmConfigResponse.Merge(m, src) -} -func (m *MsgUpdateWasmConfigResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateWasmConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateWasmConfigResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateWasmConfigResponse proto.InternalMessageInfo - type MsgUpdateRewardsDataLifetime struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` RewardsDataLifetime string `protobuf:"bytes,2,opt,name=rewards_data_lifetime,json=rewardsDataLifetime,proto3" json:"rewards_data_lifetime,omitempty"` @@ -583,7 +479,7 @@ func (m *MsgUpdateRewardsDataLifetime) Reset() { *m = MsgUpdateRewardsDa func (m *MsgUpdateRewardsDataLifetime) String() string { return proto.CompactTextString(m) } func (*MsgUpdateRewardsDataLifetime) ProtoMessage() {} func (*MsgUpdateRewardsDataLifetime) Descriptor() ([]byte, []int) { - return fileDescriptor_9d997b2afb1f3cab, []int{12} + return fileDescriptor_9d997b2afb1f3cab, []int{10} } func (m *MsgUpdateRewardsDataLifetime) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -633,7 +529,7 @@ func (m *MsgUpdateRewardsDataLifetimeResponse) Reset() { *m = MsgUpdateR func (m *MsgUpdateRewardsDataLifetimeResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateRewardsDataLifetimeResponse) ProtoMessage() {} func (*MsgUpdateRewardsDataLifetimeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9d997b2afb1f3cab, []int{13} + return fileDescriptor_9d997b2afb1f3cab, []int{11} } func (m *MsgUpdateRewardsDataLifetimeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -673,8 +569,6 @@ func init() { proto.RegisterType((*MsgUpdateBrokerAddressResponse)(nil), "elys.parameter.MsgUpdateBrokerAddressResponse") proto.RegisterType((*MsgUpdateTotalBlocksPerYear)(nil), "elys.parameter.MsgUpdateTotalBlocksPerYear") proto.RegisterType((*MsgUpdateTotalBlocksPerYearResponse)(nil), "elys.parameter.MsgUpdateTotalBlocksPerYearResponse") - proto.RegisterType((*MsgUpdateWasmConfig)(nil), "elys.parameter.MsgUpdateWasmConfig") - proto.RegisterType((*MsgUpdateWasmConfigResponse)(nil), "elys.parameter.MsgUpdateWasmConfigResponse") proto.RegisterType((*MsgUpdateRewardsDataLifetime)(nil), "elys.parameter.MsgUpdateRewardsDataLifetime") proto.RegisterType((*MsgUpdateRewardsDataLifetimeResponse)(nil), "elys.parameter.MsgUpdateRewardsDataLifetimeResponse") } @@ -682,58 +576,50 @@ func init() { func init() { proto.RegisterFile("elys/parameter/tx.proto", fileDescriptor_9d997b2afb1f3cab) } var fileDescriptor_9d997b2afb1f3cab = []byte{ - // 803 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x96, 0xbf, 0x4f, 0xdb, 0x40, - 0x14, 0xc7, 0x31, 0xb4, 0x54, 0xbd, 0x0a, 0x04, 0x0e, 0x34, 0xc1, 0x94, 0x14, 0xcc, 0x8f, 0xa2, - 0x50, 0x6c, 0x11, 0xfa, 0x43, 0x8a, 0xba, 0x34, 0x30, 0x74, 0x20, 0x12, 0x0a, 0xfd, 0xa1, 0x76, - 0xb1, 0x2e, 0xc9, 0xc5, 0xb5, 0xf0, 0xf9, 0xac, 0xbb, 0x2b, 0x49, 0x50, 0xa5, 0x56, 0x1d, 0x99, - 0xfa, 0x57, 0x74, 0xe9, 0xc2, 0x50, 0xa9, 0x0b, 0x52, 0xd7, 0x8e, 0xa8, 0x53, 0xc7, 0x0a, 0x06, - 0xfe, 0x8d, 0xca, 0x8e, 0x73, 0x89, 0x13, 0x3b, 0x0a, 0x59, 0x12, 0xd9, 0xef, 0xf3, 0xbe, 0xef, - 0xbe, 0xef, 0xce, 0xcf, 0x06, 0x49, 0x64, 0x37, 0x98, 0xee, 0x42, 0x0a, 0x31, 0xe2, 0x88, 0xea, - 0xbc, 0xae, 0xb9, 0x94, 0x70, 0x22, 0x4f, 0x7a, 0x01, 0x4d, 0x04, 0x94, 0x64, 0x99, 0x30, 0x4c, - 0x98, 0x8e, 0x99, 0xa9, 0x1f, 0x6d, 0x79, 0x7f, 0x4d, 0x50, 0x99, 0x86, 0xd8, 0x72, 0x88, 0xee, - 0xff, 0x06, 0xb7, 0xe6, 0x9a, 0xac, 0xe1, 0x5f, 0xe9, 0xcd, 0x8b, 0x66, 0x48, 0xfd, 0x26, 0x81, - 0xbb, 0x05, 0x66, 0xbe, 0x72, 0x2b, 0x90, 0xa3, 0x82, 0xe5, 0xec, 0x10, 0x8c, 0x2d, 0xc6, 0x2c, - 0xe2, 0xc8, 0x59, 0x70, 0xab, 0x4c, 0x11, 0xe4, 0x84, 0xa6, 0xa4, 0x45, 0x69, 0xfd, 0x76, 0x3e, - 0xf5, 0xe7, 0xc7, 0xe6, 0x4c, 0x90, 0xfd, 0xbc, 0x52, 0xa1, 0x88, 0xb1, 0x03, 0x4e, 0x2d, 0xc7, - 0x2c, 0xb6, 0x40, 0x79, 0x15, 0x4c, 0x62, 0xcb, 0x31, 0xca, 0x42, 0x25, 0x35, 0xea, 0xa5, 0x16, - 0x27, 0x70, 0xa7, 0x74, 0x6e, 0xeb, 0xcb, 0xd5, 0x69, 0xa6, 0x95, 0x74, 0x72, 0x75, 0x9a, 0x59, - 0x6c, 0x3b, 0x8e, 0x5e, 0x8d, 0xba, 0x08, 0xd2, 0xd1, 0x91, 0x22, 0x62, 0x2e, 0x71, 0x18, 0x52, - 0xbf, 0x4b, 0x20, 0xd9, 0x46, 0x60, 0xfd, 0x35, 0xe1, 0x96, 0x63, 0xee, 0x93, 0x1a, 0xa2, 0x43, - 0x79, 0x59, 0x07, 0x53, 0x18, 0xd6, 0x8d, 0x23, 0x5f, 0xc6, 0x70, 0x3d, 0x9d, 0xc0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, 0xe1, 0x3d, 0x62, 0x36, 0x2c, 0x21, 0xdb, 0x60, 0xd6, 0x31, 0x0a, - 0xb6, 0x6c, 0xca, 0x0b, 0x15, 0x60, 0x7d, 0xcf, 0x0b, 0x1c, 0x58, 0xc7, 0x48, 0x56, 0xc1, 0x84, - 0xc0, 0x7d, 0x70, 0xcc, 0x07, 0xef, 0x04, 0xa0, 0xcf, 0x3c, 0x03, 0xf3, 0x82, 0x71, 0x29, 0x71, - 0x09, 0x83, 0xb6, 0xe1, 0xdf, 0xf1, 0x33, 0x6e, 0xf8, 0x19, 0xc9, 0x20, 0x63, 0x3f, 0x00, 0x3c, - 0x1b, 0x5e, 0x76, 0x4e, 0xeb, 0xee, 0xdd, 0x42, 0x44, 0xef, 0xda, 0xa6, 0xd5, 0x85, 0x8e, 0x1d, - 0x6f, 0xdf, 0x16, 0xbd, 0xfa, 0x25, 0x81, 0x7b, 0x22, 0x5e, 0x44, 0x35, 0x48, 0x2b, 0x6c, 0x17, - 0x72, 0xb8, 0x67, 0x55, 0x11, 0xb7, 0x30, 0x1a, 0xaa, 0x69, 0x59, 0x30, 0x4b, 0x9b, 0x52, 0x46, - 0x05, 0x72, 0x68, 0xd8, 0x81, 0x58, 0xd0, 0xb6, 0x04, 0xed, 0xad, 0x93, 0x7b, 0xda, 0xed, 0x6b, - 0x2d, 0xc2, 0x57, 0xc4, 0x02, 0xd5, 0x35, 0xb0, 0xd2, 0x2f, 0xde, 0x72, 0x9a, 0x3d, 0x1b, 0x07, - 0x63, 0x05, 0x66, 0xca, 0x18, 0x24, 0xa2, 0x5e, 0x23, 0x6b, 0x5a, 0xf8, 0xcd, 0xa5, 0x45, 0x8f, - 0x71, 0x45, 0x1b, 0x8c, 0x6b, 0x95, 0x95, 0x5d, 0x30, 0x13, 0x39, 0xea, 0x1f, 0xc4, 0xeb, 0x84, - 0x40, 0x45, 0x1f, 0x10, 0x14, 0x15, 0x1b, 0x20, 0x19, 0x37, 0x8b, 0x33, 0xfd, 0x16, 0x1f, 0x66, - 0x95, 0xec, 0xe0, 0xac, 0x28, 0x2d, 0x7a, 0x1b, 0x1e, 0x93, 0xf1, 0xbd, 0x0d, 0x71, 0x7d, 0x7a, - 0x1b, 0x39, 0xce, 0xe4, 0x8f, 0x20, 0x15, 0x3b, 0xca, 0x36, 0x62, 0xb5, 0x7a, 0x61, 0x65, 0xfb, - 0x1a, 0xb0, 0xa8, 0x5e, 0x01, 0x53, 0x3d, 0x23, 0x66, 0x39, 0x56, 0xa8, 0x0d, 0x29, 0x1b, 0x03, - 0x40, 0xa2, 0xca, 0x27, 0x30, 0x17, 0xff, 0x70, 0x3e, 0x8c, 0x55, 0x8a, 0xa0, 0x95, 0x47, 0xd7, - 0xa1, 0x5b, 0x0b, 0x50, 0x6e, 0x7e, 0xbe, 0x3a, 0xcd, 0x48, 0xf9, 0x17, 0xbf, 0x2f, 0xd2, 0xd2, - 0xf9, 0x45, 0x5a, 0xfa, 0x77, 0x91, 0x96, 0xbe, 0x5e, 0xa6, 0x47, 0xce, 0x2f, 0xd3, 0x23, 0x7f, - 0x2f, 0xd3, 0x23, 0xef, 0x34, 0xd3, 0xe2, 0xef, 0x3f, 0x94, 0xb4, 0x32, 0xc1, 0xba, 0x57, 0x60, - 0xd3, 0x41, 0xbc, 0x46, 0xe8, 0xa1, 0x7f, 0xa1, 0xd7, 0x3b, 0xbf, 0x12, 0x1b, 0x2e, 0x62, 0xa5, - 0x71, 0xff, 0x93, 0x6e, 0xfb, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x35, 0x19, 0x0a, 0xde, 0x44, - 0x0a, 0x00, 0x00, + // 683 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x6b, 0x13, 0x4f, + 0x18, 0xee, 0xfe, 0x4a, 0x7f, 0xe2, 0x80, 0xc5, 0x6e, 0x5b, 0x93, 0xae, 0xb2, 0xb6, 0x6b, 0x5b, + 0x4b, 0xb4, 0xbb, 0x34, 0xf5, 0x0f, 0xe4, 0x66, 0xec, 0xc1, 0x83, 0x85, 0x92, 0xaa, 0xa0, 0x97, + 0x65, 0x92, 0x4c, 0xd7, 0xa5, 0x3b, 0x3b, 0xcb, 0xcc, 0xd8, 0x26, 0x20, 0x28, 0x1e, 0x3d, 0xf9, + 0x29, 0xbc, 0x78, 0xe9, 0x41, 0xf0, 0x22, 0x78, 0xf5, 0x58, 0x3c, 0x88, 0x47, 0x69, 0x0f, 0xfd, + 0x1a, 0xb2, 0xff, 0xa6, 0x99, 0x64, 0x36, 0xa4, 0xb9, 0x24, 0xcc, 0x3e, 0xcf, 0xfb, 0xbc, 0xef, + 0x33, 0xf3, 0xce, 0xcb, 0x80, 0x12, 0x0a, 0xba, 0xcc, 0x89, 0x20, 0x85, 0x18, 0x71, 0x44, 0x1d, + 0xde, 0xb1, 0x23, 0x4a, 0x38, 0xd1, 0xa7, 0x63, 0xc0, 0x16, 0x80, 0x51, 0x6a, 0x11, 0x86, 0x09, + 0x73, 0x30, 0xf3, 0x9c, 0x83, 0x8d, 0xf8, 0x2f, 0x25, 0x1a, 0x33, 0x10, 0xfb, 0x21, 0x71, 0x92, + 0xdf, 0xec, 0xd3, 0x42, 0xca, 0x75, 0x93, 0x95, 0x93, 0x2e, 0x52, 0xc8, 0xfa, 0xac, 0x81, 0x6b, + 0xdb, 0xcc, 0x7b, 0x1e, 0xb5, 0x21, 0x47, 0xdb, 0x7e, 0xf8, 0x98, 0x60, 0xec, 0x33, 0xe6, 0x93, + 0x50, 0xaf, 0x82, 0x4b, 0x2d, 0x8a, 0x20, 0x27, 0xb4, 0xac, 0x2d, 0x6a, 0x6b, 0x97, 0xeb, 0xe5, + 0x5f, 0x5f, 0xd7, 0xe7, 0xb2, 0xe8, 0x47, 0xed, 0x36, 0x45, 0x8c, 0xed, 0x72, 0xea, 0x87, 0x5e, + 0x23, 0x27, 0xea, 0x2b, 0x60, 0x1a,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, 0x85, 0x5a, 0x83, 0x64, 0x63, 0xf3, 0x02, 0x64, 0x91, 0xfd, 0x1d, 0x58, 0x28, + 0xbe, 0x36, 0x77, 0x0b, 0x15, 0x15, 0x6c, 0xe3, 0xde, 0x45, 0xd8, 0x79, 0x01, 0xc6, 0xd4, 0xfb, + 0xb3, 0xa3, 0x8a, 0x56, 0x7f, 0xf2, 0xf3, 0xc4, 0xd4, 0x8e, 0x4f, 0x4c, 0xed, 0xef, 0x89, 0xa9, + 0x7d, 0x3a, 0x35, 0x27, 0x8e, 0x4f, 0xcd, 0x89, 0x3f, 0xa7, 0xe6, 0xc4, 0x2b, 0xdb, 0xf3, 0xf9, + 0xeb, 0x37, 0x4d, 0xbb, 0x45, 0xb0, 0x13, 0x27, 0x58, 0x0f, 0x11, 0x3f, 0x24, 0x74, 0x3f, 0x59, + 0x38, 0x9d, 0xde, 0x37, 0x49, 0x37, 0x42, 0xac, 0xf9, 0x7f, 0xf2, 0x80, 0xd8, 0xfc, 0x17, 0x00, + 0x00, 0xff, 0xff, 0xa2, 0xe4, 0x35, 0x22, 0xb2, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -753,7 +639,6 @@ type MsgClient interface { UpdateMinSelfDelegation(ctx context.Context, in *MsgUpdateMinSelfDelegation, opts ...grpc.CallOption) (*MsgUpdateMinSelfDelegationResponse, error) UpdateBrokerAddress(ctx context.Context, in *MsgUpdateBrokerAddress, opts ...grpc.CallOption) (*MsgUpdateBrokerAddressResponse, error) UpdateTotalBlocksPerYear(ctx context.Context, in *MsgUpdateTotalBlocksPerYear, opts ...grpc.CallOption) (*MsgUpdateTotalBlocksPerYearResponse, error) - UpdateWasmConfig(ctx context.Context, in *MsgUpdateWasmConfig, opts ...grpc.CallOption) (*MsgUpdateWasmConfigResponse, error) UpdateRewardsDataLifetime(ctx context.Context, in *MsgUpdateRewardsDataLifetime, opts ...grpc.CallOption) (*MsgUpdateRewardsDataLifetimeResponse, error) } @@ -810,15 +695,6 @@ func (c *msgClient) UpdateTotalBlocksPerYear(ctx context.Context, in *MsgUpdateT return out, nil } -func (c *msgClient) UpdateWasmConfig(ctx context.Context, in *MsgUpdateWasmConfig, opts ...grpc.CallOption) (*MsgUpdateWasmConfigResponse, error) { - out := new(MsgUpdateWasmConfigResponse) - err := c.cc.Invoke(ctx, "/elys.parameter.Msg/UpdateWasmConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *msgClient) UpdateRewardsDataLifetime(ctx context.Context, in *MsgUpdateRewardsDataLifetime, opts ...grpc.CallOption) (*MsgUpdateRewardsDataLifetimeResponse, error) { out := new(MsgUpdateRewardsDataLifetimeResponse) err := c.cc.Invoke(ctx, "/elys.parameter.Msg/UpdateRewardsDataLifetime", in, out, opts...) @@ -835,7 +711,6 @@ type MsgServer interface { UpdateMinSelfDelegation(context.Context, *MsgUpdateMinSelfDelegation) (*MsgUpdateMinSelfDelegationResponse, error) UpdateBrokerAddress(context.Context, *MsgUpdateBrokerAddress) (*MsgUpdateBrokerAddressResponse, error) UpdateTotalBlocksPerYear(context.Context, *MsgUpdateTotalBlocksPerYear) (*MsgUpdateTotalBlocksPerYearResponse, error) - UpdateWasmConfig(context.Context, *MsgUpdateWasmConfig) (*MsgUpdateWasmConfigResponse, error) UpdateRewardsDataLifetime(context.Context, *MsgUpdateRewardsDataLifetime) (*MsgUpdateRewardsDataLifetimeResponse, error) } @@ -858,9 +733,6 @@ func (*UnimplementedMsgServer) UpdateBrokerAddress(ctx context.Context, req *Msg func (*UnimplementedMsgServer) UpdateTotalBlocksPerYear(ctx context.Context, req *MsgUpdateTotalBlocksPerYear) (*MsgUpdateTotalBlocksPerYearResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateTotalBlocksPerYear not implemented") } -func (*UnimplementedMsgServer) UpdateWasmConfig(ctx context.Context, req *MsgUpdateWasmConfig) (*MsgUpdateWasmConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateWasmConfig not implemented") -} func (*UnimplementedMsgServer) UpdateRewardsDataLifetime(ctx context.Context, req *MsgUpdateRewardsDataLifetime) (*MsgUpdateRewardsDataLifetimeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateRewardsDataLifetime not implemented") } @@ -959,24 +831,6 @@ func _Msg_UpdateTotalBlocksPerYear_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _Msg_UpdateWasmConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateWasmConfig) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateWasmConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/elys.parameter.Msg/UpdateWasmConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateWasmConfig(ctx, req.(*MsgUpdateWasmConfig)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_UpdateRewardsDataLifetime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgUpdateRewardsDataLifetime) if err := dec(in); err != nil { @@ -995,6 +849,7 @@ func _Msg_UpdateRewardsDataLifetime_Handler(srv interface{}, ctx context.Context return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.parameter.Msg", HandlerType: (*MsgServer)(nil), @@ -1019,10 +874,6 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "UpdateTotalBlocksPerYear", Handler: _Msg_UpdateTotalBlocksPerYear_Handler, }, - { - MethodName: "UpdateWasmConfig", - Handler: _Msg_UpdateWasmConfig_Handler, - }, { MethodName: "UpdateRewardsDataLifetime", Handler: _Msg_UpdateRewardsDataLifetime_Handler, @@ -1330,80 +1181,6 @@ func (m *MsgUpdateTotalBlocksPerYearResponse) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *MsgUpdateWasmConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateWasmConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateWasmConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.WasmMaxProposalWasmSize) > 0 { - i -= len(m.WasmMaxProposalWasmSize) - copy(dAtA[i:], m.WasmMaxProposalWasmSize) - i = encodeVarintTx(dAtA, i, uint64(len(m.WasmMaxProposalWasmSize))) - i-- - dAtA[i] = 0x22 - } - if len(m.WasmMaxSize) > 0 { - i -= len(m.WasmMaxSize) - copy(dAtA[i:], m.WasmMaxSize) - i = encodeVarintTx(dAtA, i, uint64(len(m.WasmMaxSize))) - i-- - dAtA[i] = 0x1a - } - if len(m.WasmMaxLabelSize) > 0 { - i -= len(m.WasmMaxLabelSize) - copy(dAtA[i:], m.WasmMaxLabelSize) - i = encodeVarintTx(dAtA, i, uint64(len(m.WasmMaxLabelSize))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgUpdateWasmConfigResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateWasmConfigResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateWasmConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - func (m *MsgUpdateRewardsDataLifetime) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1604,40 +1381,6 @@ func (m *MsgUpdateTotalBlocksPerYearResponse) Size() (n int) { return n } -func (m *MsgUpdateWasmConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.WasmMaxLabelSize) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.WasmMaxSize) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.WasmMaxProposalWasmSize) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgUpdateWasmConfigResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - func (m *MsgUpdateRewardsDataLifetime) Size() (n int) { if m == nil { return 0 @@ -2477,234 +2220,6 @@ func (m *MsgUpdateTotalBlocksPerYearResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUpdateWasmConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateWasmConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateWasmConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WasmMaxLabelSize", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WasmMaxLabelSize = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WasmMaxSize", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WasmMaxSize = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WasmMaxProposalWasmSize", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WasmMaxProposalWasmSize = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateWasmConfigResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateWasmConfigResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateWasmConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *MsgUpdateRewardsDataLifetime) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/perpetual/types/query.pb.go b/x/perpetual/types/query.pb.go index f2fab00a9..7d4d5475e 100644 --- a/x/perpetual/types/query.pb.go +++ b/x/perpetual/types/query.pb.go @@ -2253,6 +2253,7 @@ func _Query_CloseEstimation_Handler(srv interface{}, ctx context.Context, dec fu return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.perpetual.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/perpetual/types/tx.pb.go b/x/perpetual/types/tx.pb.go index 79f00d4ac..bb8b9a89f 100644 --- a/x/perpetual/types/tx.pb.go +++ b/x/perpetual/types/tx.pb.go @@ -1404,6 +1404,7 @@ func _Msg_UpdateTakeProfitPrice_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.perpetual.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/stablestake/types/query.pb.go b/x/stablestake/types/query.pb.go index 36617f22e..9130177ec 100644 --- a/x/stablestake/types/query.pb.go +++ b/x/stablestake/types/query.pb.go @@ -337,6 +337,7 @@ func _Query_BorrowRatio_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.stablestake.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/stablestake/types/tx.pb.go b/x/stablestake/types/tx.pb.go index 3ec2d38fb..b9af122a7 100644 --- a/x/stablestake/types/tx.pb.go +++ b/x/stablestake/types/tx.pb.go @@ -462,6 +462,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.stablestake.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/tier/types/query.pb.go b/x/tier/types/query.pb.go index 062da1ff6..2f6ff2352 100644 --- a/x/tier/types/query.pb.go +++ b/x/tier/types/query.pb.go @@ -1755,6 +1755,7 @@ func _Query_GetUsersPoolData_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.tier.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/tier/types/tx.pb.go b/x/tier/types/tx.pb.go index 36df4574e..3f8f67e92 100644 --- a/x/tier/types/tx.pb.go +++ b/x/tier/types/tx.pb.go @@ -216,6 +216,7 @@ func _Msg_SetPortfolio_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.tier.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/tokenomics/types/query.pb.go b/x/tokenomics/types/query.pb.go index 0c048722d..90d2fe161 100644 --- a/x/tokenomics/types/query.pb.go +++ b/x/tokenomics/types/query.pb.go @@ -874,6 +874,7 @@ func _Query_TimeBasedInflationAll_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.tokenomics.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/tokenomics/types/tx.pb.go b/x/tokenomics/types/tx.pb.go index 0667a4462..441b60fa1 100644 --- a/x/tokenomics/types/tx.pb.go +++ b/x/tokenomics/types/tx.pb.go @@ -1198,6 +1198,7 @@ func _Msg_DeleteTimeBasedInflation_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.tokenomics.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/tradeshield/types/query.pb.go b/x/tradeshield/types/query.pb.go index 3483d627f..9ee0bd345 100644 --- a/x/tradeshield/types/query.pb.go +++ b/x/tradeshield/types/query.pb.go @@ -1029,6 +1029,7 @@ func _Query_PendingSpotOrderForAddress_Handler(srv interface{}, ctx context.Cont return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.tradeshield.Query", HandlerType: (*QueryServer)(nil), diff --git a/x/tradeshield/types/tx.pb.go b/x/tradeshield/types/tx.pb.go index 7f87edf72..6923b7c76 100644 --- a/x/tradeshield/types/tx.pb.go +++ b/x/tradeshield/types/tx.pb.go @@ -1632,6 +1632,7 @@ func _Msg_ExecuteOrders_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } +var Msg_serviceDesc = _Msg_serviceDesc var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.tradeshield.Msg", HandlerType: (*MsgServer)(nil), diff --git a/x/transferhook/types/query.pb.go b/x/transferhook/types/query.pb.go index 38afb9ad9..f15e496a5 100644 --- a/x/transferhook/types/query.pb.go +++ b/x/transferhook/types/query.pb.go @@ -210,6 +210,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } +var Query_serviceDesc = _Query_serviceDesc var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "elys.transferhook.Query", HandlerType: (*QueryServer)(nil),