From e374829811f3926bd9bc125ee2cf895999a25f59 Mon Sep 17 00:00:00 2001 From: Roshan Date: Wed, 1 Feb 2023 15:50:06 +0800 Subject: [PATCH] add gas calculator for some new msg types --- go.sum | 6 - proto/cosmos/gashub/v1alpha1/gashub.proto | 6 + simapp/app.go | 2 +- x/auth/ante/msg_gas.go | 16 +- x/gashub/keeper/genesis.go | 8 +- x/gashub/keeper/grpc_query.go | 4 +- x/gashub/keeper/keeper.go | 8 +- x/gashub/keeper/params.go | 8 +- x/gashub/simulation/genesis.go | 2 +- x/gashub/types/gas_calculator.go | 27 ++ x/gashub/types/gashub.pb.go | 376 ++++++++++++++++++---- x/gashub/types/key.go | 3 - x/gashub/types/params.go | 81 ++++- 13 files changed, 447 insertions(+), 100 deletions(-) diff --git a/go.sum b/go.sum index bb7f6796a8..39fb7c2896 100644 --- a/go.sum +++ b/go.sum @@ -377,7 +377,6 @@ github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/ferranbt/fastssz v0.0.0-20210120143747-11b9eff30ea9/go.mod h1:DyEu2iuLBnb/T51BlsiO3yLYdJC6UbGMrIkqK1KmQxM= github.com/ferranbt/fastssz v0.0.0-20210905181407-59cf6761a7d5 h1:6dVcS0LktRSyEEgldFY4N9J17WjUoiJStttH+RZj0Wo= github.com/ferranbt/fastssz v0.0.0-20210905181407-59cf6761a7d5/go.mod h1:S8yiDeAXy8f88W4Ul+0dBMPx49S05byYbmZD6Uv94K4= -github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 h1:FtmdgXiUlNeRsoNMFlKLDt+S+6hbjVMEW6RGQ7aUf7c= github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/flynn/noise v1.0.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag= @@ -473,9 +472,7 @@ github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRx github.com/gogo/gateway v1.1.0 h1:u0SuhL9+Il+UbjM9VIE3ntfRujKbvVpFvNB4HbjeVQ0= github.com/gogo/gateway v1.1.0/go.mod h1:S7rR8FRQyG3QFESeSv4l2WnsyzlCLG0CzBbUUo/mbic= github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= -github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= -github.com/golang-jwt/jwt/v4 v4.3.0 h1:kHL1vqdqWNfATmA0FNMdmZNMyZI1U6O31X4rlIPoBog= github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= github.com/golang/gddo v0.0.0-20200528160355-8d077c1d8f4c/go.mod h1:sam69Hju0uq+5uvLJUMDlsKlQ21Vrs1Kd/1YFPNYdOU= @@ -626,7 +623,6 @@ github.com/gxed/hashland/murmur3 v0.0.1/go.mod h1:KjXop02n4/ckmZSnY2+HKcLud/tcmv github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-bexpr v0.1.10 h1:9kuI5PFotCboP3dkDYFr/wi0gg0QVbSNz5oFRpxn4uE= github.com/hashicorp/go-bexpr v0.1.10/go.mod h1:oxlubA2vC/gFVfX1A6JGp7ls7uCDlfJn732ehYYg+g0= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= @@ -1023,7 +1019,6 @@ github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RR github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/pointerstructure v1.2.0 h1:O+i9nHnXS3l/9Wu7r4NrEdwA2VFTicjUEN1uBnDo34A= github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= github.com/moby/sys/mountinfo v0.5.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -2087,7 +2082,6 @@ gopkg.in/src-d/go-cli.v0 v0.0.0-20181105080154-d492247bbc0d/go.mod h1:z+K8VcOYVY gopkg.in/src-d/go-log.v1 v1.0.1/go.mod h1:GN34hKP0g305ysm2/hctJ0Y8nWP3zxXXJ8GFabTyABE= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/urfave/cli.v1 v1.20.0 h1:NdAVW6RYxDif9DhDHaAortIu956m2c0v+09AZBPTbE0= gopkg.in/urfave/cli.v1 v1.20.0/go.mod h1:vuBzUtMdQeixQj8LVd+/98pzhxNGQoyuPBlsXHOQNO0= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= diff --git a/proto/cosmos/gashub/v1alpha1/gashub.proto b/proto/cosmos/gashub/v1alpha1/gashub.proto index f99e8a714a..f4cc09c34e 100644 --- a/proto/cosmos/gashub/v1alpha1/gashub.proto +++ b/proto/cosmos/gashub/v1alpha1/gashub.proto @@ -37,4 +37,10 @@ message Params { uint64 msg_undelegate_gas = 25 [(gogoproto.customname) = "MsgUndelegateGas"]; uint64 msg_begin_redelegate_gas = 26 [(gogoproto.customname) = "MsgBeginRedelegateGas"]; uint64 msg_cancel_unbonding_delegation_gas = 27 [(gogoproto.customname) = "MsgCancelUnbondingDelegationGas"]; + uint64 msg_create_validator_gas = 28 [(gogoproto.customname) = "MsgCreateValidatorGas"]; + uint64 msg_claim_gas = 29 [(gogoproto.customname) = "MsgClaimGas"]; + uint64 msg_transfer_out_gas = 30 [(gogoproto.customname) = "MsgTransferOutGas"]; + uint64 msg_create_storage_provider_gas = 31 [(gogoproto.customname) = "MsgCreateStorageProviderGas"]; + uint64 msg_edit_storage_provider_gas = 32 [(gogoproto.customname) = "MsgEditStorageProviderGas"]; + uint64 msg_sp_deposit_gas = 33 [(gogoproto.customname) = "MsgSpDepositGas"]; } diff --git a/simapp/app.go b/simapp/app.go index 0750b03618..3e951b6b52 100644 --- a/simapp/app.go +++ b/simapp/app.go @@ -346,7 +346,7 @@ func NewSimApp( // If evidence needs to be handled for the app, set routes in router here and seal app.EvidenceKeeper = *evidenceKeeper - app.GashubKeeper = gashubkeeper.NewGashubKeeper(appCodec, keys[gashubtypes.StoreKey], app.GetSubspace(gashubtypes.ModuleName)) + app.GashubKeeper = gashubkeeper.NewKeeper(appCodec, keys[gashubtypes.StoreKey], app.GetSubspace(gashubtypes.ModuleName)) // Register the upgrade keeper upgradeHandler := map[string]upgradetypes.UpgradeHandler{ diff --git a/x/auth/ante/msg_gas.go b/x/auth/ante/msg_gas.go index 20dfc30845..cd914b29e9 100644 --- a/x/auth/ante/msg_gas.go +++ b/x/auth/ante/msg_gas.go @@ -20,13 +20,13 @@ import ( // in or empty. type ValidateTxSizeDecorator struct { ak AccountKeeper - fhk GashubKeeper + ghk GashubKeeper } -func NewValidateTxSizeDecorator(ak AccountKeeper, fhk GashubKeeper) ValidateTxSizeDecorator { +func NewValidateTxSizeDecorator(ak AccountKeeper, ghk GashubKeeper) ValidateTxSizeDecorator { return ValidateTxSizeDecorator{ ak: ak, - fhk: fhk, + ghk: ghk, } } @@ -77,7 +77,7 @@ func (vtsd ValidateTxSizeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simul newCtx = ctx.WithTxSize(txSize) } - params := vtsd.fhk.GetParams(ctx) + params := vtsd.ghk.GetParams(ctx) if txSize > params.GetMaxTxSize() { return ctx, errors.Wrapf(sdkerrors.ErrTxTooLarge, "tx length: %d, limit: %d", txSize, params.GetMaxTxSize()) } @@ -89,13 +89,13 @@ func (vtsd ValidateTxSizeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simul // the size of tx and msg type before calling next AnteHandler. type ConsumeMsgGasDecorator struct { ak AccountKeeper - fhk GashubKeeper + ghk GashubKeeper } -func NewConsumeMsgGasDecorator(ak AccountKeeper, fhk GashubKeeper) ConsumeMsgGasDecorator { +func NewConsumeMsgGasDecorator(ak AccountKeeper, ghk GashubKeeper) ConsumeMsgGasDecorator { return ConsumeMsgGasDecorator{ ak: ak, - fhk: fhk, + ghk: ghk, } } @@ -105,7 +105,7 @@ func (cmfg ConsumeMsgGasDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simula return ctx, errors.Wrap(sdkerrors.ErrTxDecode, "invalid tx type") } - params := cmfg.fhk.GetParams(ctx) + params := cmfg.ghk.GetParams(ctx) gasByTxSize := cmfg.getTxSizeGas(params, ctx) gasByMsgType, err := cmfg.getMsgGas(params, sigTx) if err != nil { diff --git a/x/gashub/keeper/genesis.go b/x/gashub/keeper/genesis.go index 2ab7dc9146..2a6a805b61 100644 --- a/x/gashub/keeper/genesis.go +++ b/x/gashub/keeper/genesis.go @@ -9,13 +9,13 @@ import ( // // CONTRACT: old coins from the FeeCollectionKeeper need to be transferred through // a genesis port script to the new fee collector account -func (fhk Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState) { - fhk.SetParams(ctx, data.Params) +func (ghk Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState) { + ghk.SetParams(ctx, data.Params) } // ExportGenesis returns a GenesisState for a given context and keeper -func (fhk Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState { - params := fhk.GetParams(ctx) +func (ghk Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState { + params := ghk.GetParams(ctx) return types.NewGenesisState(params) } diff --git a/x/gashub/keeper/grpc_query.go b/x/gashub/keeper/grpc_query.go index e7957998e9..12282214db 100644 --- a/x/gashub/keeper/grpc_query.go +++ b/x/gashub/keeper/grpc_query.go @@ -13,12 +13,12 @@ import ( var _ types.QueryServer = Keeper{} // Params returns parameters of auth module -func (fhk Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { +func (ghk Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "empty request") } ctx := sdk.UnwrapSDKContext(c) - params := fhk.GetParams(ctx) + params := ghk.GetParams(ctx) return &types.QueryParamsResponse{Params: params}, nil } diff --git a/x/gashub/keeper/keeper.go b/x/gashub/keeper/keeper.go index dd6feeb574..8e227390e1 100644 --- a/x/gashub/keeper/keeper.go +++ b/x/gashub/keeper/keeper.go @@ -18,8 +18,8 @@ type Keeper struct { paramSubspace paramtypes.Subspace } -// NewGashubKeeper returns a new gashub keeper -func NewGashubKeeper( +// NewKeeper returns a new gashub keeper +func NewKeeper( cdc codec.BinaryCodec, key storetypes.StoreKey, paramstore paramtypes.Subspace, ) Keeper { // set KeyTable if it has not already been set @@ -35,9 +35,9 @@ func NewGashubKeeper( } // Logger returns a module-specific logger. -func (fhk Keeper) Logger(ctx sdk.Context) log.Logger { +func (ghk Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", "x/"+types.ModuleName) } // GetCodec return codec.Codec object used by the keeper -func (fhk Keeper) GetCodec() codec.BinaryCodec { return fhk.cdc } +func (ghk Keeper) GetCodec() codec.BinaryCodec { return ghk.cdc } diff --git a/x/gashub/keeper/params.go b/x/gashub/keeper/params.go index 9cd3bb10e8..8e1066a990 100644 --- a/x/gashub/keeper/params.go +++ b/x/gashub/keeper/params.go @@ -6,12 +6,12 @@ import ( ) // SetParams sets the auth module's parameters. -func (fhk Keeper) SetParams(ctx sdk.Context, params types.Params) { - fhk.paramSubspace.SetParamSet(ctx, ¶ms) +func (ghk Keeper) SetParams(ctx sdk.Context, params types.Params) { + ghk.paramSubspace.SetParamSet(ctx, ¶ms) } // GetParams gets the auth module's parameters. -func (fhk Keeper) GetParams(ctx sdk.Context) (params types.Params) { - fhk.paramSubspace.GetParamSet(ctx, ¶ms) +func (ghk Keeper) GetParams(ctx sdk.Context) (params types.Params) { + ghk.paramSubspace.GetParamSet(ctx, ¶ms) return } diff --git a/x/gashub/simulation/genesis.go b/x/gashub/simulation/genesis.go index f66a363957..f6c1d2351f 100644 --- a/x/gashub/simulation/genesis.go +++ b/x/gashub/simulation/genesis.go @@ -54,7 +54,7 @@ func RandomizedGenState(simState *module.SimulationState) { params := types.NewParams(maxTxSize, minGasPerByte, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, - msgGas, msgGas, msgGas) + msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas, msgGas) gashubGenesis := types.NewGenesisState(params) diff --git a/x/gashub/types/gas_calculator.go b/x/gashub/types/gas_calculator.go index 19ec416173..30f4102dba 100644 --- a/x/gashub/types/gas_calculator.go +++ b/x/gashub/types/gas_calculator.go @@ -11,6 +11,7 @@ import ( distribution "github.com/cosmos/cosmos-sdk/x/distribution/types" "github.com/cosmos/cosmos-sdk/x/feegrant" gov "github.com/cosmos/cosmos-sdk/x/gov/types/v1" + oracletypes "github.com/cosmos/cosmos-sdk/x/oracle/types" slashing "github.com/cosmos/cosmos-sdk/x/slashing/types" staking "github.com/cosmos/cosmos-sdk/x/staking/types" ) @@ -201,4 +202,30 @@ func init() { fixedGas := params.GetMsgCancelUnbondingDelegationGas() return FixedGasCalculator(fixedGas) }) + RegisterCalculatorGen(types.MsgTypeURL(&staking.MsgCreateValidator{}), func(params Params) GasCalculator { + fixedGas := params.GetMsgCreateValidatorGas() + return FixedGasCalculator(fixedGas) + }) + RegisterCalculatorGen(types.MsgTypeURL(&oracletypes.MsgClaim{}), func(params Params) GasCalculator { + fixedGas := params.GetMsgClaimGas() + return FixedGasCalculator(fixedGas) + }) + + // these msgs are from greenfield, so the msg types need to be hard coded. + RegisterCalculatorGen("/bnbchain.greenfield.bridge.MsgTransferOut", func(params Params) GasCalculator { + fixedGas := params.GetMsgTransferOutGas() + return FixedGasCalculator(fixedGas) + }) + RegisterCalculatorGen("/bnbchain.greenfield.sp.MsgCreateStorageProvider", func(params Params) GasCalculator { + fixedGas := params.GetMsgCreateStorageProviderGas() + return FixedGasCalculator(fixedGas) + }) + RegisterCalculatorGen("/bnbchain.greenfield.sp.MsgEditStorageProvider", func(params Params) GasCalculator { + fixedGas := params.GetMsgEditStorageProviderGas() + return FixedGasCalculator(fixedGas) + }) + RegisterCalculatorGen("/bnbchain.greenfield.sp.MsgDeposit", func(params Params) GasCalculator { + fixedGas := params.GetMsgSpDepositGas() + return FixedGasCalculator(fixedGas) + }) } diff --git a/x/gashub/types/gashub.pb.go b/x/gashub/types/gashub.pb.go index a03991d6e6..c174fcac4a 100644 --- a/x/gashub/types/gashub.pb.go +++ b/x/gashub/types/gashub.pb.go @@ -52,6 +52,12 @@ type Params struct { MsgUndelegateGas uint64 `protobuf:"varint,25,opt,name=msg_undelegate_gas,json=msgUndelegateGas,proto3" json:"msg_undelegate_gas,omitempty"` MsgBeginRedelegateGas uint64 `protobuf:"varint,26,opt,name=msg_begin_redelegate_gas,json=msgBeginRedelegateGas,proto3" json:"msg_begin_redelegate_gas,omitempty"` MsgCancelUnbondingDelegationGas uint64 `protobuf:"varint,27,opt,name=msg_cancel_unbonding_delegation_gas,json=msgCancelUnbondingDelegationGas,proto3" json:"msg_cancel_unbonding_delegation_gas,omitempty"` + MsgCreateValidatorGas uint64 `protobuf:"varint,28,opt,name=msg_create_validator_gas,json=msgCreateValidatorGas,proto3" json:"msg_create_validator_gas,omitempty"` + MsgClaimGas uint64 `protobuf:"varint,29,opt,name=msg_claim_gas,json=msgClaimGas,proto3" json:"msg_claim_gas,omitempty"` + MsgTransferOutGas uint64 `protobuf:"varint,30,opt,name=msg_transfer_out_gas,json=msgTransferOutGas,proto3" json:"msg_transfer_out_gas,omitempty"` + MsgCreateStorageProviderGas uint64 `protobuf:"varint,31,opt,name=msg_create_storage_provider_gas,json=msgCreateStorageProviderGas,proto3" json:"msg_create_storage_provider_gas,omitempty"` + MsgEditStorageProviderGas uint64 `protobuf:"varint,32,opt,name=msg_edit_storage_provider_gas,json=msgEditStorageProviderGas,proto3" json:"msg_edit_storage_provider_gas,omitempty"` + MsgSpDepositGas uint64 `protobuf:"varint,33,opt,name=msg_sp_deposit_gas,json=msgSpDepositGas,proto3" json:"msg_sp_deposit_gas,omitempty"` } func (m *Params) Reset() { *m = Params{} } @@ -275,6 +281,48 @@ func (m *Params) GetMsgCancelUnbondingDelegationGas() uint64 { return 0 } +func (m *Params) GetMsgCreateValidatorGas() uint64 { + if m != nil { + return m.MsgCreateValidatorGas + } + return 0 +} + +func (m *Params) GetMsgClaimGas() uint64 { + if m != nil { + return m.MsgClaimGas + } + return 0 +} + +func (m *Params) GetMsgTransferOutGas() uint64 { + if m != nil { + return m.MsgTransferOutGas + } + return 0 +} + +func (m *Params) GetMsgCreateStorageProviderGas() uint64 { + if m != nil { + return m.MsgCreateStorageProviderGas + } + return 0 +} + +func (m *Params) GetMsgEditStorageProviderGas() uint64 { + if m != nil { + return m.MsgEditStorageProviderGas + } + return 0 +} + +func (m *Params) GetMsgSpDepositGas() uint64 { + if m != nil { + return m.MsgSpDepositGas + } + return 0 +} + func init() { proto.RegisterType((*Params)(nil), "cosmos.gashub.v1alpha1.Params") } @@ -284,69 +332,79 @@ func init() { } var fileDescriptor_f79bf23b48853a4a = []byte{ - // 986 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x56, 0x4f, 0x6f, 0xdb, 0x36, - 0x14, 0x8f, 0xb7, 0x2e, 0x6b, 0xd8, 0xd8, 0x75, 0x19, 0xc7, 0x76, 0xe2, 0xc6, 0x6c, 0x16, 0x14, - 0x18, 0x30, 0xb4, 0x5e, 0x31, 0x60, 0xc0, 0x8a, 0x5d, 0xea, 0xa4, 0x0d, 0x32, 0x4c, 0x98, 0xe1, - 0x2c, 0x0d, 0x36, 0x0c, 0x10, 0x68, 0x8b, 0x91, 0xb9, 0x98, 0xa2, 0x27, 0xd2, 0xb1, 0xd3, 0x4f, - 0xb1, 0xe3, 0x8e, 0x3d, 0xec, 0xc3, 0xec, 0xd8, 0xe3, 0x4e, 0xc2, 0xc0, 0x5c, 0xf6, 0x31, 0x06, - 0x92, 0xa2, 0x2c, 0x25, 0x4e, 0x76, 0xb2, 0xf8, 0xde, 0xef, 0x8f, 0x49, 0xbe, 0xf7, 0x24, 0xb0, - 0x37, 0xe4, 0x82, 0x71, 0xd1, 0x09, 0xb1, 0x18, 0x4d, 0x07, 0x9d, 0x8b, 0x17, 0x78, 0x3c, 0x19, - 0xe1, 0x17, 0xe9, 0xfa, 0xf9, 0x24, 0xe6, 0x92, 0xc3, 0xba, 0x05, 0x3d, 0x4f, 0x83, 0x0e, 0xb4, - 0x5d, 0x0b, 0x79, 0xc8, 0x0d, 0xa4, 0xa3, 0x9f, 0x2c, 0xfa, 0xb3, 0x3f, 0xab, 0x60, 0xb5, 0x87, - 0x63, 0xcc, 0x04, 0x7c, 0x06, 0x1e, 0x30, 0x3c, 0xf7, 0xe5, 0xdc, 0x17, 0xf4, 0x1d, 0x69, 0x96, - 0x9e, 0x94, 0x3e, 0xbf, 0xd7, 0x2d, 0xab, 0x04, 0xad, 0x79, 0x78, 0xfe, 0x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x88, 0xdd, 0x0d, 0x78, 0x79, 0xff, 0x8f, 0xf7, 0x68, 0xe5, - 0xdf, 0xf7, 0xa8, 0xd4, 0x7d, 0xfd, 0x97, 0x6a, 0x97, 0x3e, 0xa8, 0x76, 0xe9, 0x1f, 0xd5, 0x2e, - 0xfd, 0x7e, 0xd5, 0x5e, 0xf9, 0x70, 0xd5, 0x5e, 0xf9, 0xfb, 0xaa, 0xbd, 0xf2, 0xf3, 0x17, 0x21, - 0x95, 0xfa, 0x3b, 0x63, 0xc8, 0x59, 0x27, 0xfd, 0x3c, 0xb1, 0x3f, 0xcf, 0x44, 0x70, 0xde, 0x99, - 0xbb, 0x6f, 0x15, 0x79, 0x39, 0x21, 0x62, 0xb0, 0x6a, 0x3e, 0x3a, 0xbe, 0xfa, 0x2f, 0x00, 0x00, - 0xff, 0xff, 0x58, 0x22, 0xf1, 0x68, 0xc9, 0x08, 0x00, 0x00, + // 1139 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x56, 0x51, 0x4f, 0x1b, 0x47, + 0x10, 0xc6, 0x6d, 0x9a, 0x26, 0x4b, 0x0c, 0x66, 0x01, 0x63, 0x42, 0xf0, 0x42, 0x51, 0xa4, 0x4a, + 0x55, 0x42, 0xa3, 0x48, 0x95, 0x1a, 0xf5, 0xa1, 0x01, 0x02, 0xa2, 0xaa, 0x15, 0xcb, 0x84, 0xa0, + 0x56, 0x95, 0x4e, 0x6b, 0xdf, 0x72, 0x6c, 0xf1, 0xde, 0xba, 0xb7, 0x6b, 0x6c, 0xf2, 0x2b, 0xfa, + 0xd8, 0xc7, 0xfc, 0x9c, 0x3e, 0xe6, 0xb1, 0x4f, 0xa7, 0x6a, 0x79, 0xe9, 0xbf, 0x68, 0xb5, 0xb3, + 0xb7, 0xe7, 0x3b, 0x30, 0xe9, 0x93, 0x6f, 0x66, 0xbe, 0xf9, 0xbe, 0x9b, 0xdd, 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, 0xeb, 0xc9, 0x15, 0x70, 0xe4, + 0x80, 0xed, 0x0c, 0xe7, 0xd7, 0xd3, 0x6d, 0x41, 0xbf, 0x67, 0xa1, 0x9d, 0xa7, 0x8a, 0x6c, 0x94, + 0xf6, 0xac, 0x6d, 0xe0, 0x29, 0x12, 0xab, 0xe2, 0xb6, 0x10, 0xfe, 0xde, 0xf5, 0xa8, 0x1a, 0x94, + 0x06, 0x7c, 0x13, 0x58, 0x17, 0x4d, 0x4a, 0xe6, 0xed, 0x9a, 0x1a, 0x14, 0x46, 0xdc, 0x4e, 0x66, + 0xd1, 0xf1, 0xe2, 0xde, 0x1f, 0xef, 0xc9, 0xcc, 0x3f, 0xef, 0x49, 0x65, 0xe7, 0xd5, 0x9f, 0xa6, + 0x59, 0xf9, 0x60, 0x9a, 0x95, 0xbf, 0x4d, 0xb3, 0xf2, 0xfb, 0x55, 0x73, 0xe6, 0xc3, 0x55, 0x73, + 0xe6, 0xaf, 0xab, 0xe6, 0xcc, 0xcf, 0x5f, 0x45, 0x5c, 0xdb, 0x4f, 0xc8, 0x9e, 0x14, 0xdb, 0xd9, + 0x97, 0xa7, 0xfb, 0x79, 0xa2, 0xc2, 0xf3, 0xed, 0xb1, 0xff, 0x0c, 0xd5, 0x97, 0x03, 0xa6, 0xba, + 0x77, 0xe1, 0x7b, 0xf2, 0xf9, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x99, 0x62, 0x0a, 0x29, 0xa4, + 0x0a, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -449,6 +507,24 @@ func (this *Params) Equal(that interface{}) bool { if this.MsgCancelUnbondingDelegationGas != that1.MsgCancelUnbondingDelegationGas { return false } + if this.MsgCreateValidatorGas != that1.MsgCreateValidatorGas { + return false + } + if this.MsgClaimGas != that1.MsgClaimGas { + return false + } + if this.MsgTransferOutGas != that1.MsgTransferOutGas { + return false + } + if this.MsgCreateStorageProviderGas != that1.MsgCreateStorageProviderGas { + return false + } + if this.MsgEditStorageProviderGas != that1.MsgEditStorageProviderGas { + return false + } + if this.MsgSpDepositGas != that1.MsgSpDepositGas { + return false + } return true } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -471,6 +547,48 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.MsgSpDepositGas != 0 { + i = encodeVarintGashub(dAtA, i, uint64(m.MsgSpDepositGas)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x88 + } + if m.MsgEditStorageProviderGas != 0 { + i = encodeVarintGashub(dAtA, i, uint64(m.MsgEditStorageProviderGas)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x80 + } + if m.MsgCreateStorageProviderGas != 0 { + i = encodeVarintGashub(dAtA, i, uint64(m.MsgCreateStorageProviderGas)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf8 + } + if m.MsgTransferOutGas != 0 { + i = encodeVarintGashub(dAtA, i, uint64(m.MsgTransferOutGas)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf0 + } + if m.MsgClaimGas != 0 { + i = encodeVarintGashub(dAtA, i, uint64(m.MsgClaimGas)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe8 + } + if m.MsgCreateValidatorGas != 0 { + i = encodeVarintGashub(dAtA, i, uint64(m.MsgCreateValidatorGas)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe0 + } if m.MsgCancelUnbondingDelegationGas != 0 { i = encodeVarintGashub(dAtA, i, uint64(m.MsgCancelUnbondingDelegationGas)) i-- @@ -731,6 +849,24 @@ func (m *Params) Size() (n int) { if m.MsgCancelUnbondingDelegationGas != 0 { n += 2 + sovGashub(uint64(m.MsgCancelUnbondingDelegationGas)) } + if m.MsgCreateValidatorGas != 0 { + n += 2 + sovGashub(uint64(m.MsgCreateValidatorGas)) + } + if m.MsgClaimGas != 0 { + n += 2 + sovGashub(uint64(m.MsgClaimGas)) + } + if m.MsgTransferOutGas != 0 { + n += 2 + sovGashub(uint64(m.MsgTransferOutGas)) + } + if m.MsgCreateStorageProviderGas != 0 { + n += 2 + sovGashub(uint64(m.MsgCreateStorageProviderGas)) + } + if m.MsgEditStorageProviderGas != 0 { + n += 2 + sovGashub(uint64(m.MsgEditStorageProviderGas)) + } + if m.MsgSpDepositGas != 0 { + n += 2 + sovGashub(uint64(m.MsgSpDepositGas)) + } return n } @@ -1282,6 +1418,120 @@ func (m *Params) Unmarshal(dAtA []byte) error { break } } + case 28: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgCreateValidatorGas", wireType) + } + m.MsgCreateValidatorGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGashub + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MsgCreateValidatorGas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 29: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgClaimGas", wireType) + } + m.MsgClaimGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGashub + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MsgClaimGas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 30: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgTransferOutGas", wireType) + } + m.MsgTransferOutGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGashub + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MsgTransferOutGas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 31: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgCreateStorageProviderGas", wireType) + } + m.MsgCreateStorageProviderGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGashub + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MsgCreateStorageProviderGas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 32: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgEditStorageProviderGas", wireType) + } + m.MsgEditStorageProviderGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGashub + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MsgEditStorageProviderGas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 33: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSpDepositGas", wireType) + } + m.MsgSpDepositGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGashub + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MsgSpDepositGas |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipGashub(dAtA[iNdEx:]) diff --git a/x/gashub/types/key.go b/x/gashub/types/key.go index a1d4bde210..904d7b068a 100644 --- a/x/gashub/types/key.go +++ b/x/gashub/types/key.go @@ -7,9 +7,6 @@ const ( // StoreKey defines the primary module store key StoreKey = ModuleName - // RouterKey defines the module's message routing key - RouterKey = ModuleName - // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName ) diff --git a/x/gashub/types/params.go b/x/gashub/types/params.go index 06e0046756..e109915958 100644 --- a/x/gashub/types/params.go +++ b/x/gashub/types/params.go @@ -37,6 +37,12 @@ const ( DefaultMsgUndelegateGas uint64 = 1e5 DefaultMsgBeginRedelegateGas uint64 = 1e5 DefaultMsgCancelUnbondingDelegationGas uint64 = 1e5 + DefaultMsgCreateValidatorGas uint64 = 1e5 + DefaultMsgClaimGas uint64 = 1e5 + DefaultMsgTransferOutGas uint64 = 1e5 + DefaultMsgCreateStorageProviderGas uint64 = 1e5 + DefaultMsgEditStorageProviderGas uint64 = 1e5 + DefaultMsgSpDepositGas uint64 = 1e5 ) // Parameter keys @@ -68,6 +74,12 @@ var ( KeyMsgUndelegateGas = []byte("MsgUndelegateGas") KeyMsgBeginRedelegateGas = []byte("MsgBeginRedelegateGas") KeyMsgCancelUnbondingDelegationGas = []byte("MsgCancelUnbondingDelegationGas") + KeyMsgCreateValidatorGas = []byte("MsgCreateValidatorGas") + KeyMsgClaimGas = []byte("MsgClaimGas") + KeyMsgTransferOutGas = []byte("MsgTransferOutGas") + KeyMsgCreateStorageProviderGas = []byte("MsgCreateStorageProviderGas") + KeyMsgEditStorageProviderGas = []byte("MsgEditStorageProviderGas") + KeyMsgSpDepositGas = []byte("MsgSpDepositGas") ) var _ paramtypes.ParamSet = &Params{} @@ -78,7 +90,8 @@ func NewParams( msgMultiSendPerItemGas, msgWithdrawDelegatorRewardGas, msgWithdrawValidatorCommissionGas, msgSetWithdrawAddressGas, msgFundCommunityPoolGas, msgGrantAllowanceFixedGas, msgGrantAllowancePerItemGas, msgRevokeAllowanceGas, msgSubmitProposalGas, msgVoteGas, msgVoteWeightedGas, msgDepositGas, msgUnjailGas, msgImpeachGas, msgEditValidatorGas, msgDelegateGas, - msgUndelegateGas, msgBeginRedelegateGas, msgCancelUnbondingDelegationGas uint64, + msgUndelegateGas, msgBeginRedelegateGas, msgCancelUnbondingDelegationGas, msgCreateValidatorGas, msgClaimGas, + msgTransferOutGas, msgCreateStorageProviderGas, msgEditStorageProviderGas, msgSpDepositGas uint64, ) Params { return Params{ MaxTxSize: maxTxSize, @@ -108,6 +121,12 @@ func NewParams( MsgUndelegateGas: msgUndelegateGas, MsgBeginRedelegateGas: msgBeginRedelegateGas, MsgCancelUnbondingDelegationGas: msgCancelUnbondingDelegationGas, + MsgCreateValidatorGas: msgCreateValidatorGas, + MsgClaimGas: msgClaimGas, + MsgTransferOutGas: msgTransferOutGas, + MsgCreateStorageProviderGas: msgCreateStorageProviderGas, + MsgEditStorageProviderGas: msgEditStorageProviderGas, + MsgSpDepositGas: msgSpDepositGas, } } @@ -147,6 +166,12 @@ func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { paramtypes.NewParamSetPair(KeyMsgUndelegateGas, &p.MsgUndelegateGas, validateMsgGas), paramtypes.NewParamSetPair(KeyMsgBeginRedelegateGas, &p.MsgBeginRedelegateGas, validateMsgGas), paramtypes.NewParamSetPair(KeyMsgCancelUnbondingDelegationGas, &p.MsgCancelUnbondingDelegationGas, validateMsgGas), + paramtypes.NewParamSetPair(KeyMsgCreateValidatorGas, &p.MsgCreateValidatorGas, validateMsgGas), + paramtypes.NewParamSetPair(KeyMsgClaimGas, &p.MsgClaimGas, validateMsgGas), + paramtypes.NewParamSetPair(KeyMsgTransferOutGas, &p.MsgTransferOutGas, validateMsgGas), + paramtypes.NewParamSetPair(KeyMsgCreateStorageProviderGas, &p.MsgCreateStorageProviderGas, validateMsgGas), + paramtypes.NewParamSetPair(KeyMsgEditStorageProviderGas, &p.MsgEditStorageProviderGas, validateMsgGas), + paramtypes.NewParamSetPair(KeyMsgSpDepositGas, &p.MsgSpDepositGas, validateMsgGas), } } @@ -180,6 +205,12 @@ func DefaultParams() Params { MsgUndelegateGas: DefaultMsgUndelegateGas, MsgBeginRedelegateGas: DefaultMsgBeginRedelegateGas, MsgCancelUnbondingDelegationGas: DefaultMsgCancelUnbondingDelegationGas, + MsgCreateValidatorGas: DefaultMsgCreateValidatorGas, + MsgClaimGas: DefaultMsgClaimGas, + MsgTransferOutGas: DefaultMsgTransferOutGas, + MsgCreateStorageProviderGas: DefaultMsgCreateStorageProviderGas, + MsgEditStorageProviderGas: DefaultMsgEditStorageProviderGas, + MsgSpDepositGas: DefaultMsgSpDepositGas, } } @@ -278,13 +309,55 @@ func (p Params) Validate() error { if err := validateMsgGas(p.MsgRevokeAllowanceGas); err != nil { return err } - if err := validateMsgGas(p.MsgGrantPerItemGas); err != nil { + if err := validateMsgGas(p.MsgSubmitProposalGas); err != nil { return err } - if err := validateMsgGas(p.MsgMultiSendPerItemGas); err != nil { + if err := validateMsgGas(p.MsgVoteGas); err != nil { return err } - if err := validateMsgGas(p.MsgGrantAllowancePerItemGas); err != nil { + if err := validateMsgGas(p.MsgVoteWeightedGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgDepositGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgUnjailGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgImpeachGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgEditValidatorGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgDelegateGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgUndelegateGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgBeginRedelegateGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgCancelUnbondingDelegationGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgCreateValidatorGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgClaimGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgTransferOutGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgCreateStorageProviderGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgEditStorageProviderGas); err != nil { + return err + } + if err := validateMsgGas(p.MsgSpDepositGas); err != nil { return err }