diff --git a/app/app.go b/app/app.go index d0426689..5abe9610 100644 --- a/app/app.go +++ b/app/app.go @@ -7,6 +7,7 @@ import ( "math/big" "os" "path/filepath" + "strconv" "github.com/spf13/cast" @@ -589,6 +590,12 @@ func NewApp( panic(err) } + if maxSize := os.Getenv("MAX_WASM_SIZE"); maxSize != "" { + // https://github.com/CosmWasm/wasmd#compile-time-parameters + val, _ := strconv.ParseInt(maxSize, 10, 32) + wasmtypes.MaxWasmSize = int(val) // default 819200 (800 * 1024) + } + /* =================================================== */ /* TRANSFER STACK */ /* =================================================== */ diff --git a/proto/sedachain/randomness/v1/genesis.proto b/proto/sedachain/randomness/v1/genesis.proto index 06393829..a1637d67 100644 --- a/proto/sedachain/randomness/v1/genesis.proto +++ b/proto/sedachain/randomness/v1/genesis.proto @@ -5,6 +5,4 @@ import "gogoproto/gogo.proto"; option go_package = "github.com/sedaprotocol/seda-chain/x/randomness/types"; -message GenesisState { - string seed = 1; -} +message GenesisState { string seed = 1; } diff --git a/proto/sedachain/randomness/v1/randomness.proto b/proto/sedachain/randomness/v1/randomness.proto index 49387f90..8cb1c80a 100644 --- a/proto/sedachain/randomness/v1/randomness.proto +++ b/proto/sedachain/randomness/v1/randomness.proto @@ -8,8 +8,11 @@ import "cosmos_proto/cosmos.proto"; option go_package = "github.com/sedaprotocol/seda-chain/x/randomness/types"; message ValidatorVRF { - // operator_address defines the address of the validator's operator; bech encoded in JSON. - string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // vrf_pubkey is the public key of the validator's VRF key pair - google.protobuf.Any vrf_pubkey = 2 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; + // operator_address defines the address of the validator's operator; bech + // encoded in JSON. + string operator_address = 1 + [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + // vrf_pubkey is the public key of the validator's VRF key pair + google.protobuf.Any vrf_pubkey = 2 + [ (cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey" ]; } diff --git a/proto/sedachain/randomness/v1/tx.proto b/proto/sedachain/randomness/v1/tx.proto index 7a317ca0..2dba84cf 100644 --- a/proto/sedachain/randomness/v1/tx.proto +++ b/proto/sedachain/randomness/v1/tx.proto @@ -5,17 +5,14 @@ import "cosmos/msg/v1/msg.proto"; option go_package = "github.com/sedaprotocol/seda-chain/x/randomness/types"; -service Msg { - rpc NewSeed(MsgNewSeed) - returns (MsgNewSeedResponse); -} +service Msg { rpc NewSeed(MsgNewSeed) returns (MsgNewSeedResponse); } message MsgNewSeed { option (cosmos.msg.v1.signer) = "prover"; - + string prover = 1; // address of VRF key used to produce proof - string pi = 2; // VRF proof - string beta = 3; // VRF hash + string pi = 2; // VRF proof + string beta = 3; // VRF hash } -message MsgNewSeedResponse {} +message MsgNewSeedResponse {} \ No newline at end of file diff --git a/proto/sedachain/staking/v1/tx.proto b/proto/sedachain/staking/v1/tx.proto index 403699ad..f64055bc 100644 --- a/proto/sedachain/staking/v1/tx.proto +++ b/proto/sedachain/staking/v1/tx.proto @@ -19,7 +19,8 @@ service Msg { // option (cosmos.msg.v1.service) = true; // CreateValidatorWithVRF defines a method for creating a new validator. - rpc CreateValidatorWithVRF(MsgCreateValidatorWithVRF) returns (MsgCreateValidatorWithVRFResponse); + rpc CreateValidatorWithVRF(MsgCreateValidatorWithVRF) + returns (MsgCreateValidatorWithVRFResponse); } // MsgCreateValidator defines a SDK message for creating a new validator. @@ -27,26 +28,32 @@ message MsgCreateValidatorWithVRF { option (cosmos.msg.v1.signer) = "validator_address"; // option (amino.name) = "cosmos-sdk/MsgCreateValidator"; - option (gogoproto.equal) = false; + option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; - cosmos.staking.v1beta1.Description description = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - cosmos.staking.v1beta1.CommissionRates commission = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - string min_self_delegation = 3 [ - (cosmos_proto.scalar) = "cosmos.Int", + cosmos.staking.v1beta1.Description description = 1 + [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; + cosmos.staking.v1beta1.CommissionRates commission = 2 + [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; + string min_self_delegation = 3 [ + (cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "cosmossdk.io/math.Int", - (gogoproto.nullable) = false, + (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; // Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated. - // The validator address bytes and delegator address bytes refer to the same account while creating validator (defer - // only in bech32 notation). - string delegator_address = 4 [(cosmos_proto.scalar) = "cosmos.AddressString", deprecated = true]; - string validator_address = 5 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; - google.protobuf.Any pubkey = 6 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - cosmos.base.v1beta1.Coin value = 7 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - google.protobuf.Any vrf_pubkey = 8 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - + // The validator address bytes and delegator address bytes refer to the same + // account while creating validator (defer only in bech32 notation). + string delegator_address = 4 + [ (cosmos_proto.scalar) = "cosmos.AddressString", deprecated = true ]; + string validator_address = 5 + [ (cosmos_proto.scalar) = "cosmos.ValidatorAddressString" ]; + google.protobuf.Any pubkey = 6 + [ (cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey" ]; + cosmos.base.v1beta1.Coin value = 7 + [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; + google.protobuf.Any vrf_pubkey = 8 + [ (cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey" ]; } // MsgCreateValidatorResponse defines the Msg/CreateValidator response type. diff --git a/proto/sedachain/wasm_storage/v1/tx.proto b/proto/sedachain/wasm_storage/v1/tx.proto index d869e51d..8d799013 100644 --- a/proto/sedachain/wasm_storage/v1/tx.proto +++ b/proto/sedachain/wasm_storage/v1/tx.proto @@ -17,6 +17,7 @@ service Msg { rpc InstantiateAndRegisterProxyContract( MsgInstantiateAndRegisterProxyContract) returns (MsgInstantiateAndRegisterProxyContractResponse); + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); } message MsgStoreDataRequestWasm { @@ -61,3 +62,16 @@ message MsgInstantiateAndRegisterProxyContractResponse { string contract_address = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; } + +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + + // authority is the address that controls the module (defaults to x/gov unless + // overwritten). + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + Params params = 2 [ (gogoproto.nullable) = false ]; +} + +// no data needs to be returned +message MsgUpdateParamsResponse {} \ No newline at end of file diff --git a/proto/sedachain/wasm_storage/v1/wasm_storage.proto b/proto/sedachain/wasm_storage/v1/wasm_storage.proto index cf0786fe..5527871a 100644 --- a/proto/sedachain/wasm_storage/v1/wasm_storage.proto +++ b/proto/sedachain/wasm_storage/v1/wasm_storage.proto @@ -28,4 +28,8 @@ enum WasmType { [ (gogoproto.enumvalue_customname) = "WasmTypeRelayer" ]; } -message Params { uint64 max_wasm_size = 1; } +message Params { + option (gogoproto.equal) = true; + + uint64 max_wasm_size = 1; +} \ No newline at end of file diff --git a/x/randomness/types/genesis.pb.go b/x/randomness/types/genesis.pb.go index 125d72fa..88a0cb70 100644 --- a/x/randomness/types/genesis.pb.go +++ b/x/randomness/types/genesis.pb.go @@ -5,12 +5,11 @@ package types import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" - - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/randomness/types/query.pb.go b/x/randomness/types/query.pb.go index 2a78ffc9..6247d933 100644 --- a/x/randomness/types/query.pb.go +++ b/x/randomness/types/query.pb.go @@ -6,18 +6,16 @@ package types import ( context "context" fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/randomness/types/randomness.pb.go b/x/randomness/types/randomness.pb.go index f3d19a59..6f0124f4 100644 --- a/x/randomness/types/randomness.pb.go +++ b/x/randomness/types/randomness.pb.go @@ -5,14 +5,13 @@ package types import ( fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - _ "github.com/cosmos/cosmos-proto" types "github.com/cosmos/cosmos-sdk/codec/types" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/randomness/types/tx.pb.go b/x/randomness/types/tx.pb.go index ecea44fb..9435f7b5 100644 --- a/x/randomness/types/tx.pb.go +++ b/x/randomness/types/tx.pb.go @@ -6,17 +6,15 @@ package types import ( context "context" fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - _ "github.com/cosmos/cosmos-sdk/types/msgservice" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/staking/types/tx.pb.go b/x/staking/types/tx.pb.go index 1cd8660d..d7f2a966 100644 --- a/x/staking/types/tx.pb.go +++ b/x/staking/types/tx.pb.go @@ -5,17 +5,8 @@ package types import ( context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - cosmossdk_io_math "cosmossdk.io/math" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - _ "google.golang.org/protobuf/types/known/timestamppb" - + fmt "fmt" _ "github.com/cosmos/cosmos-proto" types1 "github.com/cosmos/cosmos-sdk/codec/types" types2 "github.com/cosmos/cosmos-sdk/types" @@ -25,6 +16,13 @@ import ( _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + _ "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/wasm-storage/keeper/keeper.go b/x/wasm-storage/keeper/keeper.go index 7d98f46f..3c58df3d 100644 --- a/x/wasm-storage/keeper/keeper.go +++ b/x/wasm-storage/keeper/keeper.go @@ -10,7 +10,6 @@ import ( wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/sedaprotocol/seda-chain/x/wasm-storage/types" ) @@ -30,6 +29,11 @@ func NewKeeper(cdc codec.BinaryCodec, storeKey storetypes.StoreKey, authority st } } +// GetAuthority returns the module's authority. +func (k Keeper) GetAuthority() string { + return k.authority +} + // SetDataRequestWasm stores Data Request Wasm using its hash as the key. func (k Keeper) SetDataRequestWasm(ctx sdk.Context, wasm *types.Wasm) { store := ctx.KVStore(k.storeKey) @@ -145,3 +149,25 @@ func (k Keeper) GetAllWasms(ctx sdk.Context) []types.Wasm { func (k Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) } + +// GetParams returns all the parameters for the module. +func (k Keeper) GetParams(ctx sdk.Context) types.Params { + store := ctx.KVStore(k.storeKey) + bz := store.Get([]byte(types.KeyParams)) + + var params types.Params + k.cdc.MustUnmarshal(bz, ¶ms) + return params +} + +// SetParams sets the parameters in the store. +func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { + store := ctx.KVStore(k.storeKey) + bz, err := k.cdc.Marshal(¶ms) + if err != nil { + return err + } + store.Set([]byte(types.KeyParams), bz) + + return nil +} diff --git a/x/wasm-storage/keeper/msg_server.go b/x/wasm-storage/keeper/msg_server.go index 77a3d00e..7e7b814d 100644 --- a/x/wasm-storage/keeper/msg_server.go +++ b/x/wasm-storage/keeper/msg_server.go @@ -173,3 +173,26 @@ func unzipWasm(wasm []byte) ([]byte, error) { } return unzipped, nil } + +func (m msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { + // validate authority + if _, err := sdk.AccAddressFromBech32(req.Authority); err != nil { + return nil, fmt.Errorf("invalid authority address: %s", err) + } + + if m.GetAuthority() != req.Authority { + return nil, fmt.Errorf("invalid authority; expected %s, got %s", m.GetAuthority(), req.Authority) + } + + // validate params + if err := req.Params.ValidateBasic(); err != nil { + return nil, err + } + + ctx := sdk.UnwrapSDKContext(goCtx) + if err := m.SetParams(ctx, req.Params); err != nil { + return nil, err + } + + return &types.MsgUpdateParamsResponse{}, nil +} diff --git a/x/wasm-storage/keeper/msg_server_test.go b/x/wasm-storage/keeper/msg_server_test.go index f5a885f5..cc441b8e 100644 --- a/x/wasm-storage/keeper/msg_server_test.go +++ b/x/wasm-storage/keeper/msg_server_test.go @@ -265,3 +265,69 @@ func (s *KeeperTestSuite) TestMarshalJSON() { }) } } + +func (s *KeeperTestSuite) TestUpdateParams() { + authority := s.wasmStorageKeeper.GetAuthority() + cases := []struct { + name string + preRun func() + input types.MsgUpdateParams + expErr bool + expErrMsg string + }{ + { + name: "happy path", + input: types.MsgUpdateParams{ + Authority: s.authority, + Params: types.Params{ + MaxWasmSize: 1000000, // 1 MB + }, + }, + preRun: func() {}, + expErr: false, + expErrMsg: "", + }, + { + name: "invalid authority", + input: types.MsgUpdateParams{ + Authority: "cosmos16wfryel63g7axeamw68630wglalcnk3l0zuadc", + Params: types.Params{ + MaxWasmSize: 1, // 1 MB + }, + }, + preRun: func() {}, + expErr: true, + expErrMsg: "invalid authority; expected " + authority + ", got cosmos16wfryel63g7axeamw68630wglalcnk3l0zuadc", + }, + { + name: "invalid max wasm size", + input: types.MsgUpdateParams{ + Authority: authority, + Params: types.Params{ + MaxWasmSize: 0, // 0 MB + }, + }, + preRun: func() {}, + expErr: true, + expErrMsg: "invalid max Wasm size: 0", + }, + } + + for _, tc := range cases { + s.Run(tc.name, func() { + s.SetupTest() + tc.preRun() + _, err := s.msgSrvr.UpdateParams(s.ctx, &tc.input) + if tc.expErr { + s.Require().Error(err) + s.Require().Equal(tc.expErrMsg, err.Error()) + } else { + s.Require().NoError(err) + + // Check that the Params were correctly set + params := s.wasmStorageKeeper.GetParams(s.ctx) + s.Require().Equal(tc.input.Params, params) + } + }) + } +} diff --git a/x/wasm-storage/types/codec.go b/x/wasm-storage/types/codec.go index 4f0a3e3b..265b4d06 100644 --- a/x/wasm-storage/types/codec.go +++ b/x/wasm-storage/types/codec.go @@ -3,6 +3,7 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" ) @@ -10,6 +11,9 @@ func RegisterCodec(_ *codec.LegacyAmino) { } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgUpdateParams{}, + ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/wasm-storage/types/events.pb.go b/x/wasm-storage/types/events.pb.go index ca6511bb..5fd9f8f7 100644 --- a/x/wasm-storage/types/events.pb.go +++ b/x/wasm-storage/types/events.pb.go @@ -5,14 +5,12 @@ package types import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + _ "google.golang.org/protobuf/types/known/timestamppb" io "io" math "math" math_bits "math/bits" - - _ "google.golang.org/protobuf/types/known/timestamppb" - - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/wasm-storage/types/genesis.pb.go b/x/wasm-storage/types/genesis.pb.go index 1b8e2592..f9cd51f5 100644 --- a/x/wasm-storage/types/genesis.pb.go +++ b/x/wasm-storage/types/genesis.pb.go @@ -5,12 +5,11 @@ package types import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" - - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/wasm-storage/types/keys.go b/x/wasm-storage/types/keys.go index d7eded11..727a7828 100644 --- a/x/wasm-storage/types/keys.go +++ b/x/wasm-storage/types/keys.go @@ -15,6 +15,9 @@ const ( // RouterKey defines the module's message routing key RouterKey = ModuleName + + // KeyParams is the store key for the parameters. + KeyParams = "params" ) var ( diff --git a/x/wasm-storage/types/query.pb.go b/x/wasm-storage/types/query.pb.go index 0613779f..db82b7e8 100644 --- a/x/wasm-storage/types/query.pb.go +++ b/x/wasm-storage/types/query.pb.go @@ -6,18 +6,16 @@ package types import ( context "context" fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/wasm-storage/types/tx.pb.go b/x/wasm-storage/types/tx.pb.go index 1d5bc7a8..5cdad941 100644 --- a/x/wasm-storage/types/tx.pb.go +++ b/x/wasm-storage/types/tx.pb.go @@ -6,14 +6,6 @@ package types import ( context "context" fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - github_com_CosmWasm_wasmd_x_wasm_types "github.com/CosmWasm/wasmd/x/wasm/types" _ "github.com/cosmos/cosmos-proto" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" @@ -22,6 +14,12 @@ import ( _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -393,6 +391,97 @@ func (m *MsgInstantiateAndRegisterProxyContractResponse) GetContractAddress() st return "" } +type MsgUpdateParams struct { + // authority is the address that controls the module (defaults to x/gov unless + // overwritten). + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` +} + +func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } +func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParams) ProtoMessage() {} +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { + return fileDescriptor_10a76e8135c0d000, []int{6} +} +func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParams.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 *MsgUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParams.Merge(m, src) +} +func (m *MsgUpdateParams) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo + +func (m *MsgUpdateParams) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *MsgUpdateParams) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +// no data needs to be returned +type MsgUpdateParamsResponse struct { +} + +func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } +func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParamsResponse) ProtoMessage() {} +func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_10a76e8135c0d000, []int{7} +} +func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParamsResponse.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 *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) +} +func (m *MsgUpdateParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgStoreDataRequestWasm)(nil), "sedachain.wasm_storage.v1.MsgStoreDataRequestWasm") proto.RegisterType((*MsgStoreDataRequestWasmResponse)(nil), "sedachain.wasm_storage.v1.MsgStoreDataRequestWasmResponse") @@ -400,6 +489,8 @@ func init() { proto.RegisterType((*MsgStoreOverlayWasmResponse)(nil), "sedachain.wasm_storage.v1.MsgStoreOverlayWasmResponse") proto.RegisterType((*MsgInstantiateAndRegisterProxyContract)(nil), "sedachain.wasm_storage.v1.MsgInstantiateAndRegisterProxyContract") proto.RegisterType((*MsgInstantiateAndRegisterProxyContractResponse)(nil), "sedachain.wasm_storage.v1.MsgInstantiateAndRegisterProxyContractResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "sedachain.wasm_storage.v1.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "sedachain.wasm_storage.v1.MsgUpdateParamsResponse") } func init() { @@ -407,51 +498,56 @@ func init() { } var fileDescriptor_10a76e8135c0d000 = []byte{ - // 691 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0xcf, 0x6b, 0x13, 0x4f, - 0x14, 0xcf, 0x7e, 0xd3, 0xa4, 0xfd, 0x4e, 0x45, 0xcb, 0x1a, 0xe8, 0x36, 0xc2, 0x26, 0xa4, 0x20, - 0x41, 0xcc, 0x6e, 0x13, 0x51, 0xb1, 0x20, 0xd2, 0xa4, 0x97, 0x1c, 0x42, 0x75, 0x2b, 0x14, 0xbc, - 0x84, 0xc9, 0xee, 0x74, 0xb2, 0x98, 0xdd, 0x89, 0xfb, 0x26, 0x6d, 0xe2, 0xd1, 0x83, 0x67, 0xff, - 0x0d, 0x05, 0x41, 0xa8, 0x7f, 0x80, 0xc7, 0x1e, 0x8b, 0x27, 0x4f, 0x55, 0xd2, 0x83, 0xff, 0x83, - 0x27, 0x99, 0x9d, 0x49, 0x48, 0xb1, 0x89, 0xa9, 0x5e, 0x3c, 0xc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, 0xce, 0xcc, - 0xc4, 0xc9, 0x99, 0x99, 0xf8, 0x72, 0x66, 0x26, 0x9e, 0xdd, 0x9f, 0x58, 0x5f, 0x11, 0x2e, 0xfe, - 0xca, 0xbb, 0xac, 0x13, 0x5f, 0x4a, 0xf2, 0xb7, 0x20, 0x99, 0x53, 0x1a, 0xfd, 0x18, 0xe2, 0x9d, - 0x6e, 0xa5, 0x63, 0xe4, 0x9d, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x60, 0x19, 0xfd, 0xa3, 0xe8, - 0x06, 0x00, 0x00, + // 778 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0x3d, 0x4f, 0x1b, 0x49, + 0x18, 0xf6, 0x9e, 0x3f, 0x80, 0x01, 0x01, 0xda, 0xb3, 0xc4, 0xda, 0x27, 0xd9, 0x3e, 0x23, 0x9d, + 0x2c, 0x74, 0xde, 0xc5, 0x3e, 0x1d, 0xa7, 0x43, 0x3a, 0x21, 0x6c, 0x1a, 0x17, 0x16, 0xdc, 0x72, + 0x27, 0xa4, 0x34, 0xd6, 0x78, 0x77, 0x58, 0xaf, 0xe2, 0xdd, 0x71, 0xf6, 0x1d, 0x83, 0x9d, 0x32, + 0x45, 0xea, 0xd4, 0xf9, 0x07, 0x89, 0x14, 0x09, 0x89, 0xfc, 0x08, 0x4a, 0x94, 0x2a, 0x15, 0x89, + 0x4c, 0x91, 0xff, 0x90, 0x2a, 0x9a, 0xd9, 0xb1, 0x31, 0x0a, 0x36, 0x26, 0x69, 0x52, 0xcd, 0xd7, + 0xf3, 0x3e, 0xef, 0xf7, 0x3b, 0x28, 0x0f, 0xc4, 0xc6, 0x56, 0x0b, 0xbb, 0xbe, 0x71, 0x8a, 0xc1, + 0x6b, 0x00, 0xa3, 0x01, 0x76, 0x88, 0x71, 0x52, 0x32, 0x58, 0x4f, 0xef, 0x04, 0x94, 0x51, 0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 0x7a, 0x18, 0x7e, 0xa4, 0xfb, 0x5c, 0x41, 0xeb, 0xb3, 0xb4, 0xfb, 0xee, 0x74, 0xfe, 0x19, + 0x28, 0xd2, 0xb5, 0xef, 0xa6, 0x18, 0x59, 0xed, 0xa3, 0xa5, 0x5b, 0x65, 0xb7, 0x31, 0x9d, 0x7a, + 0x1c, 0x9b, 0x2e, 0xcf, 0x8e, 0x1d, 0xea, 0xab, 0xfc, 0x7b, 0x31, 0xc8, 0x28, 0x97, 0x83, 0x8c, + 0xf2, 0x71, 0x90, 0x51, 0x5e, 0x5c, 0x67, 0x22, 0x97, 0xd7, 0x99, 0xc8, 0xfb, 0xeb, 0x4c, 0xe4, + 0xd1, 0x5f, 0x63, 0x6d, 0xce, 0x79, 0xc5, 0x6f, 0x68, 0xd1, 0xb6, 0x38, 0x14, 0xc3, 0xef, 0x33, + 0x9c, 0x30, 0xc5, 0xe1, 0x07, 0x2a, 0x7a, 0xbf, 0x99, 0x10, 0xc8, 0x3f, 0xbe, 0x04, 0x00, 0x00, + 0xff, 0xff, 0x13, 0x9d, 0x74, 0xeb, 0x10, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -469,6 +565,7 @@ type MsgClient interface { StoreDataRequestWasm(ctx context.Context, in *MsgStoreDataRequestWasm, opts ...grpc.CallOption) (*MsgStoreDataRequestWasmResponse, error) StoreOverlayWasm(ctx context.Context, in *MsgStoreOverlayWasm, opts ...grpc.CallOption) (*MsgStoreOverlayWasmResponse, error) InstantiateAndRegisterProxyContract(ctx context.Context, in *MsgInstantiateAndRegisterProxyContract, opts ...grpc.CallOption) (*MsgInstantiateAndRegisterProxyContractResponse, error) + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) } type msgClient struct { @@ -506,11 +603,21 @@ func (c *msgClient) InstantiateAndRegisterProxyContract(ctx context.Context, in return out, nil } +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/sedachain.wasm_storage.v1.Msg/UpdateParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { StoreDataRequestWasm(context.Context, *MsgStoreDataRequestWasm) (*MsgStoreDataRequestWasmResponse, error) StoreOverlayWasm(context.Context, *MsgStoreOverlayWasm) (*MsgStoreOverlayWasmResponse, error) InstantiateAndRegisterProxyContract(context.Context, *MsgInstantiateAndRegisterProxyContract) (*MsgInstantiateAndRegisterProxyContractResponse, error) + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -526,6 +633,9 @@ func (*UnimplementedMsgServer) StoreOverlayWasm(ctx context.Context, req *MsgSto func (*UnimplementedMsgServer) InstantiateAndRegisterProxyContract(ctx context.Context, req *MsgInstantiateAndRegisterProxyContract) (*MsgInstantiateAndRegisterProxyContractResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method InstantiateAndRegisterProxyContract not implemented") } +func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -585,6 +695,24 @@ func _Msg_InstantiateAndRegisterProxyContract_Handler(srv interface{}, ctx conte return interceptor(ctx, in, info, handler) } +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sedachain.wasm_storage.v1.Msg/UpdateParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "sedachain.wasm_storage.v1.Msg", HandlerType: (*MsgServer)(nil), @@ -601,6 +729,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "InstantiateAndRegisterProxyContract", Handler: _Msg_InstantiateAndRegisterProxyContract_Handler, }, + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "sedachain/wasm_storage/v1/tx.proto", @@ -867,6 +999,69 @@ func (m *MsgInstantiateAndRegisterProxyContractResponse) MarshalToSizedBuffer(dA return len(dAtA) - i, nil } +func (m *MsgUpdateParams) 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 *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateParamsResponse) 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 *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func encodeVarintTx(dAtA []byte, offset int, v uint64) int { offset -= sovTx(v) base := offset @@ -998,6 +1193,30 @@ func (m *MsgInstantiateAndRegisterProxyContractResponse) Size() (n int) { return n } +func (m *MsgUpdateParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Params.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -1807,6 +2026,171 @@ func (m *MsgInstantiateAndRegisterProxyContractResponse) Unmarshal(dAtA []byte) } return nil } +func (m *MsgUpdateParams) 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: MsgUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", 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.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + 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 *MsgUpdateParamsResponse) 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: MsgUpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParamsResponse: 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 skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/wasm-storage/types/wasm_storage.pb.go b/x/wasm-storage/types/wasm_storage.pb.go index d19c8086..b7f471d3 100644 --- a/x/wasm-storage/types/wasm_storage.pb.go +++ b/x/wasm-storage/types/wasm_storage.pb.go @@ -5,16 +5,14 @@ package types import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + _ "google.golang.org/protobuf/types/known/timestamppb" io "io" math "math" math_bits "math/bits" time "time" - - _ "google.golang.org/protobuf/types/known/timestamppb" - - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" ) // Reference imports to suppress errors if they are not otherwise used. @@ -186,41 +184,65 @@ func init() { } var fileDescriptor_9a4bda463450c942 = []byte{ - // 501 bytes of a gzipped FileDescriptorProto + // 510 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x6e, 0xda, 0x4c, - 0x14, 0xc5, 0x3d, 0xc4, 0xca, 0x87, 0x86, 0x2f, 0x85, 0x4c, 0xfa, 0x87, 0x4e, 0x25, 0x63, 0x51, - 0xa9, 0x42, 0x28, 0xb1, 0x95, 0x64, 0xd1, 0x65, 0xe5, 0x84,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0xfc, 0x40, + 0x0c, 0xc6, 0x5d, 0xb3, 0xc7, 0x23, 0x6b, 0xb5, 0x55, 0xb9, 0x91, 0x1e, 0x0f, 0xa5, 0xd8, 0x4f, + 0xee, 0x75, 0x22, 0x2f, 0x74, 0x3f, 0xbd, 0x58, 0x31, 0x1d, 0xb2, 0xb8, 0xbb, 0x2d, 0xc9, 0xc3, + 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x35, 0x93, 0x43, 0x29, 0xd8, 0x02, 0x00, 0x00, +} + +func (this *Params) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + that1, ok := that.(*Params) + if !ok { + that2, ok := that.(Params) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.MaxWasmSize != that1.MaxWasmSize { + return false + } + return true +} func (m *Wasm) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size)