diff --git a/proto/buf.gen.doc.yml b/proto/buf.gen.doc.yml index 43c1f10f2a..79edcabdb5 100644 --- a/proto/buf.gen.doc.yml +++ b/proto/buf.gen.doc.yml @@ -1,5 +1,5 @@ version: v1 plugins: - name: doc - out: ../docs/proto - opt: ../docs/proto/protodoc-markdown.tmpl,proto-docs.md \ No newline at end of file + out: ../client/docs/proto + opt: ../client/docs/proto/protodoc-markdown.tmpl,proto-docs.md \ No newline at end of file diff --git a/proto/cosmwasm/wasm/v1/tx.proto b/proto/cosmwasm/wasm/v1/tx.proto index c4e1606d70..0ab093933d 100644 --- a/proto/cosmwasm/wasm/v1/tx.proto +++ b/proto/cosmwasm/wasm/v1/tx.proto @@ -86,6 +86,9 @@ service Msg { // SetGaslessContract set contracts are gasless rpc SetGaslessContracts(MsgSetGaslessContracts) returns (MsgSetGaslessContractsResponse); + // UnsetGaslessContract unset the gasless contract + rpc UnsetGaslessContracts(MsgUnsetGaslessContracts) + returns (MsgUnsetGaslessContractsResponse); } // MsgStoreCode submit Wasm code to the system @@ -539,3 +542,18 @@ message MsgSetGaslessContracts { // MsgSetGaslessContractsResponse returns empty data message MsgSetGaslessContractsResponse {} + +message MsgUnsetGaslessContracts { + option (amino.name) = "wasm/MsgUnsetGaslessContracts"; + option (cosmos.msg.v1.signer) = "authority"; + + // Authority is the address of the governance account. + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + // Contracts are the addresses of the smart contracts + repeated string contracts = 2 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.moretags) = "yaml:\"contracts\"" + ]; +} + +message MsgUnsetGaslessContractsResponse {} diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index 8a630868ca..e785bea901 100755 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -20,8 +20,8 @@ done protoc_install_proto_gen_doc -echo "Generating proto docs" -buf generate --template buf.gen.doc.yml +#echo "Generating proto docs" +#buf generate --template buf.gen.doc.yml cd .. diff --git a/x/wasm/client/cli/gov_tx.go b/x/wasm/client/cli/gov_tx.go index 4c8864a176..e07f4fd0a9 100644 --- a/x/wasm/client/cli/gov_tx.go +++ b/x/wasm/client/cli/gov_tx.go @@ -53,6 +53,8 @@ func SubmitProposalCmd() *cobra.Command { ProposalAddCodeUploadParamsAddresses(), ProposalRemoveCodeUploadParamsAddresses(), ProposalStoreAndMigrateContractCmd(), + ProposalSetGaslessContractsCmd(), + ProposalUnsetGaslessContractsCmd(), ) return cmd } @@ -719,10 +721,17 @@ func ProposalSetGaslessContractsCmd() *cobra.Command { return err } - msg := types.SetGasLessContractsProposal{ - Title: proposalTitle, - Description: summary, - ContractAddresses: args, + authority, err := cmd.Flags().GetString(flagAuthority) + if err != nil { + return fmt.Errorf("authority: %s", err) + } + + if len(authority) == 0 { + return errors.New("authority address is required") + } + + msg := types.MsgSetGaslessContracts{ + Contracts: args, } if err = msg.ValidateBasic(); err != nil { return err @@ -753,10 +762,17 @@ func ProposalUnsetGaslessContractsCmd() *cobra.Command { return err } - msg := types.UnsetGasLessContractsProposal{ - Title: proposalTitle, - Description: summary, - ContractAddresses: args, + authority, err := cmd.Flags().GetString(flagAuthority) + if err != nil { + return fmt.Errorf("authority: %s", err) + } + + if len(authority) == 0 { + return errors.New("authority address is required") + } + + msg := types.MsgUnsetGaslessContracts{ + Contracts: args, } if err = msg.ValidateBasic(); err != nil { return err diff --git a/x/wasm/keeper/msg_server.go b/x/wasm/keeper/msg_server.go index dcd38717d2..2692b5950c 100644 --- a/x/wasm/keeper/msg_server.go +++ b/x/wasm/keeper/msg_server.go @@ -508,3 +508,28 @@ func (m msgServer) SetGaslessContracts(ctx context.Context, msg *types.MsgSetGas return &types.MsgSetGaslessContractsResponse{}, nil } + +func (m msgServer) UnsetGaslessContracts(goCtx context.Context, req *types.MsgUnsetGaslessContracts) (*types.MsgUnsetGaslessContractsResponse, error) { + if err := req.ValidateBasic(); err != nil { + return nil, err + } + + authority := m.keeper.GetAuthority() + if authority != req.Authority { + return nil, errorsmod.Wrapf(types.ErrInvalid, "invalid authority; expected %s, got %s", authority, req.Authority) + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + for _, v := range req.Contracts { + contractAddr, err := sdk.AccAddressFromBech32(v) + if err != nil { + return nil, errorsmod.Wrap(err, "contract") + } + if err := m.keeper.unsetGasless(ctx, contractAddr); err != nil { + return nil, errorsmod.Wrapf(err, "contract address: %s", v) + } + } + + return &types.MsgUnsetGaslessContractsResponse{}, nil +} diff --git a/x/wasm/keeper/msg_server_test.go b/x/wasm/keeper/msg_server_test.go index ff34162ccf..5cfbef2aa0 100644 --- a/x/wasm/keeper/msg_server_test.go +++ b/x/wasm/keeper/msg_server_test.go @@ -1,17 +1,21 @@ package keeper import ( + "encoding/json" + "os" "testing" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" "cosmossdk.io/log" "cosmossdk.io/store" storemetrics "cosmossdk.io/store/metrics" sdk "github.com/cosmos/cosmos-sdk/types" + sdktx "github.com/cosmos/cosmos-sdk/types/tx" "github.com/CosmWasm/wasmd/x/wasm/types" ) @@ -57,3 +61,88 @@ func TestSelectAuthorizationPolicy(t *testing.T) { }) } } + +func TestSetGaslessAndUnsetGasLessProposal(t *testing.T) { + ctx, keepers := CreateTestInput(t, false, AvailableCapabilities) + wasmKeeper := keepers.WasmKeeper + govKeeper := keepers.GovKeeper + + myAddress := DeterministicAccountAddress(t, 1) + + wasmKeeper.SetParams(ctx, types.Params{ + CodeUploadAccess: types.AllowEverybody, + InstantiateDefaultPermission: types.AccessTypeEverybody, + }) + + wasmCode, err := os.ReadFile("./testdata/hackatom.wasm") + require.NoError(t, err) + + codeInfo := types.CodeInfoFixture(types.WithSHA256CodeHash(wasmCode), func(codeInfo *types.CodeInfo) { + codeInfo.Creator = sdk.AccAddress(myAddress).String() + }) + err = wasmKeeper.importCode(ctx, 1, codeInfo, wasmCode) + require.NoError(t, err) + + // instantiate contract + _, bob := keyPubAddr() + initMsg := HackatomExampleInitMsg{ + Verifier: myAddress, + Beneficiary: bob, + } + initMsgBz, err := json.Marshal(initMsg) + require.NoError(t, err) + contractAddress, _, err := wasmKeeper.instantiate(ctx, 1, myAddress, myAddress, initMsgBz, "labels", nil, wasmKeeper.ClassicAddressGenerator(), DefaultAuthorizationPolicy{}) + require.NoError(t, err) + + // Test unauthorized case + unauthorizedMsgSetGasLessProposal := &types.MsgSetGaslessContracts{ + Authority: myAddress.String(), + Contracts: []string{contractAddress.String()}, + } + _, err = govKeeper.SubmitProposal(ctx, []sdk.Msg{unauthorizedMsgSetGasLessProposal}, "metadata", "title", "sumary", myAddress, true) + require.Error(t, err) + + // Test SetGasLess + // store proposal + em := sdk.NewEventManager() + msgSetGasLessProposal := &types.MsgSetGaslessContracts{ + Authority: wasmKeeper.GetAuthority(), + Contracts: []string{contractAddress.String()}, + } + storedProposal, err := govKeeper.SubmitProposal(ctx, []sdk.Msg{msgSetGasLessProposal}, "metadata", "title", "sumary", myAddress, true) + require.NoError(t, err) + + // execute proposal + msgs, err := sdktx.GetMsgs(storedProposal.Messages, "sdk.MsgProposal") + require.NoError(t, err) + + handler := govKeeper.Router().Handler(msgs[0]) + result, err := handler(ctx.WithEventManager(em), msgs[0]) + require.NoError(t, err) + require.NotEmpty(t, result) + + // check store + isGasLess := wasmKeeper.IsGasless(ctx, contractAddress) + require.True(t, isGasLess) + + // Test UnsetGasLess + msgUnsetGasLessProposal := &types.MsgUnsetGaslessContracts{ + Authority: wasmKeeper.GetAuthority(), + Contracts: []string{contractAddress.String()}, + } + storedProposal, err = govKeeper.SubmitProposal(ctx, []sdk.Msg{msgUnsetGasLessProposal}, "metadata", "title", "sumary", myAddress, true) + require.NoError(t, err) + + // execute proposal + msgs, err = sdktx.GetMsgs(storedProposal.Messages, "sdk.MsgProposal") + require.NoError(t, err) + + handler = govKeeper.Router().Handler(msgs[0]) + result, err = handler(ctx.WithEventManager(em), msgs[0]) + require.NoError(t, err) + require.NotEmpty(t, result) + + // check store + isGasLess = wasmKeeper.IsGasless(ctx, contractAddress) + require.False(t, isGasLess) +} diff --git a/x/wasm/types/codec.go b/x/wasm/types/codec.go index e2d2ab45cb..1cec869391 100644 --- a/x/wasm/types/codec.go +++ b/x/wasm/types/codec.go @@ -86,6 +86,7 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { &MsgStoreAndMigrateContract{}, &MsgUpdateContractLabel{}, &MsgSetGaslessContracts{}, + &MsgUnsetGaslessContracts{}, ) registry.RegisterInterface("cosmwasm.wasm.v1.ContractInfoExtension", (*ContractInfoExtension)(nil)) diff --git a/x/wasm/types/tx.go b/x/wasm/types/tx.go index eaef170071..914557ef82 100644 --- a/x/wasm/types/tx.go +++ b/x/wasm/types/tx.go @@ -576,3 +576,26 @@ func (msg MsgSetGaslessContracts) ValidateBasic() error { } return nil } + +func (msg MsgUnsetGaslessContracts) Route() string { + return RouterKey +} + +func (msg MsgUnsetGaslessContracts) Type() string { + return "unset-gasless-contracts" +} + +func (msg MsgUnsetGaslessContracts) ValidateBasic() error { + if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { + return errorsmod.Wrap(err, "authority") + } + for i, c := range msg.Contracts { + if _, err := sdk.AccAddressFromBech32(c); err != nil { + return errorsmod.Wrapf(err, "invalid contract address at %d", i) + } + } + if hasDuplicates(msg.Contracts) { + return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "duplicate contract addresses") + } + return nil +} diff --git a/x/wasm/types/tx.pb.go b/x/wasm/types/tx.pb.go index e56f22bca1..f473790851 100644 --- a/x/wasm/types/tx.pb.go +++ b/x/wasm/types/tx.pb.go @@ -1580,6 +1580,82 @@ func (m *MsgSetGaslessContractsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSetGaslessContractsResponse proto.InternalMessageInfo +type MsgUnsetGaslessContracts struct { + // Authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Contracts are the addresses of the smart contracts + Contracts []string `protobuf:"bytes,2,rep,name=contracts,proto3" json:"contracts,omitempty" yaml:"contracts"` +} + +func (m *MsgUnsetGaslessContracts) Reset() { *m = MsgUnsetGaslessContracts{} } +func (m *MsgUnsetGaslessContracts) String() string { return proto.CompactTextString(m) } +func (*MsgUnsetGaslessContracts) ProtoMessage() {} +func (*MsgUnsetGaslessContracts) Descriptor() ([]byte, []int) { + return fileDescriptor_4f74d82755520264, []int{36} +} +func (m *MsgUnsetGaslessContracts) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUnsetGaslessContracts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUnsetGaslessContracts.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 *MsgUnsetGaslessContracts) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUnsetGaslessContracts.Merge(m, src) +} +func (m *MsgUnsetGaslessContracts) XXX_Size() int { + return m.Size() +} +func (m *MsgUnsetGaslessContracts) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUnsetGaslessContracts.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUnsetGaslessContracts proto.InternalMessageInfo + +type MsgUnsetGaslessContractsResponse struct { +} + +func (m *MsgUnsetGaslessContractsResponse) Reset() { *m = MsgUnsetGaslessContractsResponse{} } +func (m *MsgUnsetGaslessContractsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUnsetGaslessContractsResponse) ProtoMessage() {} +func (*MsgUnsetGaslessContractsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4f74d82755520264, []int{37} +} +func (m *MsgUnsetGaslessContractsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUnsetGaslessContractsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUnsetGaslessContractsResponse.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 *MsgUnsetGaslessContractsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUnsetGaslessContractsResponse.Merge(m, src) +} +func (m *MsgUnsetGaslessContractsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUnsetGaslessContractsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUnsetGaslessContractsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUnsetGaslessContractsResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgStoreCode)(nil), "cosmwasm.wasm.v1.MsgStoreCode") proto.RegisterType((*MsgStoreCodeResponse)(nil), "cosmwasm.wasm.v1.MsgStoreCodeResponse") @@ -1617,125 +1693,130 @@ func init() { proto.RegisterType((*MsgUpdateContractLabelResponse)(nil), "cosmwasm.wasm.v1.MsgUpdateContractLabelResponse") proto.RegisterType((*MsgSetGaslessContracts)(nil), "cosmwasm.wasm.v1.MsgSetGaslessContracts") proto.RegisterType((*MsgSetGaslessContractsResponse)(nil), "cosmwasm.wasm.v1.MsgSetGaslessContractsResponse") + proto.RegisterType((*MsgUnsetGaslessContracts)(nil), "cosmwasm.wasm.v1.MsgUnsetGaslessContracts") + proto.RegisterType((*MsgUnsetGaslessContractsResponse)(nil), "cosmwasm.wasm.v1.MsgUnsetGaslessContractsResponse") } func init() { proto.RegisterFile("cosmwasm/wasm/v1/tx.proto", fileDescriptor_4f74d82755520264) } var fileDescriptor_4f74d82755520264 = []byte{ - // 1803 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x19, 0x4b, 0x6f, 0xdb, 0x46, - 0xda, 0xb4, 0xde, 0x63, 0x6d, 0xec, 0x30, 0x4e, 0x2c, 0xd3, 0x89, 0xe4, 0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0xa8, 0x48, 0x95, 0x83, 0xb2, 0x59, 0x38, 0xe8, 0x93, 0xd3, 0xc3, 0x05, 0xae, 0x44, 0xe4, 0xe5, - 0xff, 0xe8, 0x0a, 0xf9, 0x8c, 0x1d, 0x72, 0x86, 0xf3, 0xc5, 0x1d, 0x90, 0x64, 0x43, 0x68, 0xe8, - 0x73, 0x20, 0x22, 0x11, 0xa7, 0x76, 0x8d, 0x8f, 0x8d, 0xc8, 0xf3, 0x20, 0x28, 0x4b, 0x86, 0x64, - 0x65, 0x01, 0x7e, 0x16, 0xbf, 0x0c, 0x80, 0x29, 0xb6, 0xa8, 0xdc, 0xef, 0x29, 0x70, 0xb6, 0x29, - 0x60, 0xfa, 0x1f, 0x49, 0x55, 0x23, 0x11, 0x21, 0xfe, 0x37, 0x9f, 0xf9, 0x29, 0x10, 0xd9, 0x56, - 0xf7, 0xcb, 0xa6, 0x29, 0xd1, 0x59, 0x2e, 0x1d, 0x2d, 0x85, 0xb7, 0xd5, 0xfd, 0x22, 0x52, 0xf2, - 0x8b, 0xae, 0x7c, 0xb9, 0xec, 0x93, 0x2f, 0x39, 0x51, 0x05, 0x29, 0x0f, 0xd0, 0x99, 0x67, 0xcc, - 0xf3, 0x51, 0xc0, 0x17, 0x91, 0xf2, 0xf7, 0x7d, 0x58, 0x69, 0x0e, 0xd5, 0x2f, 0x6e, 0x83, 0x68, - 0xc5, 0xa2, 0xee, 0x9a, 0x2f, 0x14, 0xd3, 0x8e, 0x7b, 0x60, 0x88, 0xb8, 0x87, 0x5e, 0x71, 0xe9, - 0xcf, 0xbb, 0x42, 0x39, 0x65, 0x87, 0xd2, 0xe5, 0x43, 0x71, 0x09, 0x08, 0x9d, 0xa7, 0x34, 0x80, - 0x76, 0x30, 0x38, 0x47, 0x30, 0xde, 0x26, 0xc1, 0x28, 0xaa, 0x4a, 0x43, 0x7a, 0x0d, 0xc1, 0xe8, - 0xa9, 0x7e, 0xad, 0x88, 0x05, 0xfb, 0x8e, 0x98, 0xb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 0x49, 0x63, - 0xb9, 0x44, 0xa7, 0xb1, 0x44, 0x42, 0x21, 0x66, 0xf6, 0x4a, 0xd2, 0xee, 0x2c, 0x12, 0x52, 0xb6, - 0x2d, 0x66, 0xa6, 0x89, 0x93, 0xed, 0x26, 0x12, 0x5a, 0x71, 0x1a, 0xcf, 0x1e, 0xce, 0x23, 0x6a, - 0xcc, 0x09, 0x31, 0x66, 0xa3, 0x29, 0xeb, 0xb4, 0xab, 0x0d, 0x6a, 0xcc, 0x2b, 0xfe, 0xd0, 0xf8, - 0xda, 0xef, 0x34, 0x48, 0xbc, 0x85, 0xed, 0x77, 0x1e, 0xf9, 0xf6, 0xac, 0x8f, 0x39, 0x30, 0x56, - 0x44, 0xca, 0xba, 0xaa, 0x99, 0xe9, 0x3a, 0x78, 0x70, 0xef, 0x99, 0xfe, 0xc0, 0x25, 0x60, 0x86, - 0x37, 0x90, 0x0e, 0x16, 0x92, 0x27, 0xc7, 0xa9, 0x08, 0xa9, 0x01, 0xf4, 0xf2, 0x38, 0x35, 0x7e, - 0x20, 0xd5, 0xaa, 0x79, 0xd1, 0x46, 0x12, 0x4b, 0x11, 0x52, 0x17, 0x88, 0x34, 0xa1, 0x76, 0xd3, - 0x26, 0x6c, 0xd3, 0x6c, 0xbd, 0xc4, 0x8b, 0xe0, 0x82, 0xe3, 0x95, 0x86, 0xf4, 0x53, 0xd2, 0x81, - 0x36, 0xb5, 0xfa, 0x6b, 0x34, 0xe0, 0x46, 0xa7, 0x01, 0xb4, 0x1f, 0xb5, 0x34, 0xb3, 0xfa, 0x51, - 0xeb, 0x80, 0x1a, 0xf1, 0x4e, 0x08, 0x8f, 0xe6, 0x78, 0x17, 0x5b, 0xd1, 0x64, 0xd6, 0xe6, 0x34, - 0xa8, 0x55, 0x9d, 0x3b, 0x6a, 0x60, 0xc8, 0x1d, 0x35, 0x38, 0xc4, 0x8e, 0xca, 0x5f, 0x01, 0xa0, - 0x69, 0xda, 0x4f, 0x54, 0x09, 0xe1, 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0x8e, 0xb9, 0x97, - 0x8c, 0xb3, 0xeb, 0x73, 0xc3, 0xde, 0xc5, 0x05, 0x86, 0xe9, 0x73, 0x82, 0x63, 0x3a, 0x20, 0x37, - 0x0c, 0x1d, 0x33, 0x40, 0xff, 0x97, 0x0c, 0xf9, 0x5c, 0x67, 0x94, 0x52, 0xee, 0xb2, 0x76, 0x6f, - 0x31, 0x07, 0x38, 0xd7, 0x3c, 0xa0, 0x67, 0x76, 0xe9, 0x47, 0x6b, 0x3b, 0xe0, 0xa8, 0xed, 0xaf, - 0x39, 0xc7, 0xe2, 0x60, 0x8b, 0xfc, 0x37, 0x6e, 0xd1, 0xfd, 0x8f, 0xd8, 0x33, 0x64, 0x2d, 0x22, - 0xed, 0x7e, 0x94, 0xb8, 0x54, 0x83, 0x7b, 0x84, 0xdd, 0x60, 0x3b, 0x84, 0xe7, 0xed, 0x19, 0x43, - 0x63, 0x71, 0x16, 0x7f, 0xa2, 0x19, 0x10, 0x67, 0x59, 0x9b, 0xe6, 0x6e, 0x40, 0xe3, 0x9f, 0x12, - 0xaa, 0x92, 0x14, 0xc1, 0x68, 0x83, 0x97, 0xf2, 0x03, 0xb3, 0xc9, 0x5b, 0x4c, 0xac, 0x52, 0x5e, - 0x6c, 0x95, 0x32, 0x05, 0x89, 0xde, 0xbc, 0x28, 0x4e, 0x3e, 0xd3, 0x99, 0x3c, 0xd4, 0x60, 0x86, - 0xce, 0x96, 0xc1, 0x0c, 0x88, 0x6d, 0x70, 0xee, 0x68, 0x1c, 0x04, 0x8a, 0x48, 0xe1, 0x37, 0x40, - 0xac, 0x75, 0x8d, 0xce, 0x28, 0x18, 0xe7, 0x35, 0xb3, 0x30, 0xe7, 0x0f, 0xa7, 0x19, 0xf9, 0x06, - 0xb8, 0xc0, 0x9a, 0x83, 0xd2, 0x4c, 0x72, 0x06, 0xa6, 0xb0, 0xd4, 0x2b, 0x26, 0x15, 0x69, 0x80, - 0x49, 0xe6, 0x95, 0xe5, 0xcd, 0x5e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0xdd, 0xcd, 0x8f, 0x44, - 0xb8, 0xd7, 0x37, 0x89, 0xb3, 0x2e, 0xbd, 0xa6, 0xc4, 0x45, 0x5f, 0xdf, 0xbb, 0x3b, 0xd8, 0xed, - 0x7e, 0xb0, 0x9d, 0x1f, 0x20, 0xd6, 0xe4, 0xe2, 0xd7, 0xaf, 0xda, 0x30, 0x3d, 0x3e, 0x40, 0x3e, - 0x13, 0x84, 0x29, 0x92, 0x35, 0x3d, 0xb0, 0x45, 0x32, 0x30, 0x3d, 0x44, 0xfa, 0x7c, 0xc3, 0x85, - 0xd0, 0x5b, 0xe6, 0x1a, 0x5a, 0xb8, 0x7f, 0xf4, 0x63, 0x72, 0xe4, 0xe8, 0x24, 0xc9, 0x3d, 0x3b, - 0x49, 0x72, 0x3f, 0x9c, 0x24, 0xb9, 0x0f, 0x5e, 0x24, 0x47, 0x9e, 0xbd, 0x48, 0x8e, 0x3c, 0x7f, - 0x91, 0x1c, 0xf9, 0xdf, 0x9c, 0x63, 0xc9, 0x5d, 0xd5, 0x51, 0xed, 0xa1, 0xfd, 0x13, 0xbc, 0x9c, - 0xdd, 0x27, 0x3f, 0xc5, 0xe3, 0x45, 0x77, 0x2b, 0x8c, 0x7f, 0x5a, 0xff, 0xd3, 0xaf, 0x01, 0x00, - 0x00, 0xff, 0xff, 0xa4, 0x88, 0x8b, 0xf7, 0x24, 0x20, 0x00, 0x00, + // 1849 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0xc6, 0xdf, 0x13, 0xd3, 0xa6, 0xdb, 0xa4, 0x71, 0x36, 0xad, 0xed, 0x6e, 0xdb, 0xc4, + 0x0d, 0xa9, 0x9d, 0x98, 0x52, 0x5a, 0xc3, 0x25, 0x4e, 0xf9, 0x48, 0x85, 0xa5, 0xc8, 0x51, 0xa8, + 0x40, 0x95, 0xac, 0x8d, 0x77, 0xb2, 0x59, 0x6a, 0xef, 0x1a, 0xcf, 0x3a, 0x4e, 0x0e, 0x48, 0xa8, + 0x42, 0x48, 0x20, 0x0e, 0x5c, 0x7a, 0x81, 0x33, 0x12, 0x70, 0x21, 0x07, 0xfe, 0x01, 0x24, 0x84, + 0x2a, 0xc4, 0xa1, 0x42, 0x1c, 0x7a, 0x0a, 0x90, 0x1e, 0x72, 0xe2, 0xd2, 0x23, 0x07, 0x84, 0x76, + 0x66, 0x77, 0xbd, 0x5e, 0xcf, 0xae, 0xbf, 0xa2, 0xb6, 0x07, 0x2e, 0x8e, 0x77, 0xe6, 0xbd, 0x37, + 0xef, 0xf7, 0xbe, 0xf6, 0xbd, 0x89, 0xc1, 0x74, 0x59, 0x45, 0xd5, 0xa6, 0x80, 0xaa, 0x19, 0xfc, + 0xb1, 0xb3, 0x94, 0xd1, 0x76, 0xd3, 0xb5, 0xba, 0xaa, 0xa9, 0xec, 0xb8, 0xb9, 0x95, 0xc6, 0x1f, + 0x3b, 0x4b, 0x5c, 0x5c, 0x5f, 0x51, 0x51, 0x66, 0x53, 0x40, 0x30, 0xb3, 0xb3, 0xb4, 0x09, 0x35, + 0x61, 0x29, 0x53, 0x56, 0x65, 0x85, 0x70, 0x70, 0x53, 0xc6, 0x7e, 0x15, 0x49, 0xba, 0xa4, 0x2a, + 0x92, 0x8c, 0x8d, 0x09, 0x49, 0x95, 0x54, 0xfc, 0x35, 0xa3, 0x7f, 0x33, 0x56, 0xcf, 0x76, 0x9e, + 0xbd, 0x57, 0x83, 0xc8, 0xd8, 0x9d, 0x26, 0xc2, 0x4a, 0x84, 0x8d, 0x3c, 0x18, 0x5b, 0xa7, 0x84, + 0xaa, 0xac, 0xa8, 0x19, 0xfc, 0x49, 0x96, 0xf8, 0x7f, 0x19, 0x10, 0x2d, 0x20, 0x69, 0x5d, 0x53, + 0xeb, 0x70, 0x45, 0x15, 0x21, 0xbb, 0x08, 0x82, 0x08, 0x2a,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+ 0xb7, 0x61, 0xf9, 0x2e, 0x6a, 0x54, 0x09, 0xe8, 0xa2, 0xf5, 0xcc, 0xdf, 0xf7, 0x81, 0x33, 0x05, + 0x24, 0xad, 0xb6, 0x94, 0x5c, 0x51, 0x15, 0xad, 0x2e, 0x94, 0xb5, 0x01, 0x6c, 0x9c, 0x06, 0x01, + 0x41, 0xac, 0xca, 0x0a, 0x3e, 0xc5, 0x8b, 0x81, 0x90, 0xd9, 0xb5, 0xf7, 0xb9, 0x6a, 0x3f, 0x01, + 0x02, 0x15, 0x61, 0x13, 0x56, 0x62, 0x7e, 0x5d, 0x68, 0x91, 0x3c, 0xb0, 0xd7, 0x81, 0xaf, 0x8a, + 0x24, 0xec, 0x83, 0x68, 0x7e, 0xf6, 0x9f, 0x83, 0x04, 0x5b, 0x14, 0x9a, 0xa6, 0xea, 0x05, 0x88, + 0x90, 0x20, 0xc1, 0x2f, 0x8f, 0xf6, 0xe7, 0xc7, 0x64, 0xa5, 0x22, 0x2b, 0xb0, 0xf4, 0x3e, 0x52, + 0x95, 0xa2, 0xce, 0xc2, 0x36, 0x41, 0x60, 0xab, 0xa1, 0x88, 0x28, 0x16, 0x4c, 0xfa, 0x52, 0x63, + 0xd9, 0xe9, 0xb4, 0xa1, 0xa1, 0x1e, 0xf6, 0x69, 0x23, 0xec, 0xd3, 0x2b, 0xaa, 0xac, 0xe4, 0xdf, + 0x78, 0x70, 0x90, 0x18, 0xf9, 0xee, 0x8f, 0x44, 0x4a, 0x92, 0xb5, 0xed, 0xc6, 0x66, 0xba, 0xac, + 0x56, 0x8d, 0x48, 0x35, 0xfe, 0x5c, 0x41, 0xe2, 0x5d, 0x23, 0xaa, 0x75, 0x06, 0xa4, 0x1f, 0x18, + 0xad, 0x40, 0x49, 0x28, 0xef, 0x95, 0xf4, 0xc4, 0x41, 0xdf, 0x1c, 0xed, 0xcf, 0x33, 0x45, 0x72, + 0x5e, 0xee, 0x45, 0x87, 0xcb, 0x67, 0x4c, 0x97, 0x53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eb, 0x73, 0x06, 0x9c, 0xf5, 0x9c, 0x3f, 0xe8, 0xd5, 0xcd, 0x8b, 0x85, 0xbb, 0xd1, 0x37, 0x8b, + 0x3d, 0x2f, 0xdd, 0x9a, 0xe3, 0x05, 0x4f, 0xdb, 0x3b, 0x2b, 0xd8, 0xd5, 0x7e, 0xa8, 0xed, 0x2f, + 0x20, 0x5a, 0xc3, 0xe6, 0x55, 0xaf, 0xda, 0x28, 0x5d, 0x5e, 0x40, 0x1e, 0x8d, 0x93, 0x7e, 0x24, + 0xad, 0x69, 0xa2, 0x1f, 0x49, 0xa1, 0x74, 0x39, 0xd2, 0xa3, 0x75, 0x61, 0x9b, 0x60, 0x92, 0xde, + 0xb6, 0xcc, 0xbb, 0x64, 0x16, 0x85, 0x96, 0xcb, 0xf6, 0x4e, 0x6b, 0x1e, 0xcc, 0x05, 0x3e, 0xd2, + 0xc7, 0xfe, 0xfc, 0xcd, 0x07, 0x7f, 0xc5, 0x47, 0x1e, 0x1c, 0xc6, 0x99, 0x87, 0x87, 0x71, 0xe6, + 0xcf, 0xc3, 0x38, 0xf3, 0xc5, 0xe3, 0xf8, 0xc8, 0xc3, 0xc7, 0xf1, 0x91, 0x47, 0x8f, 0xe3, 0x23, + 0xef, 0xcd, 0xda, 0x2e, 0x15, 0x56, 0x54, 0x54, 0xbd, 0x6d, 0xfe, 0xe4, 0x41, 0xcc, 0xec, 0x92, + 0x9f, 0x3e, 0xe0, 0x8b, 0x85, 0xcd, 0x20, 0xfe, 0x29, 0xc3, 0x4b, 0xff, 0x05, 0x00, 0x00, 0xff, + 0xff, 0x42, 0x0e, 0x0c, 0x78, 0x94, 0x21, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1812,6 +1893,8 @@ type MsgClient interface { UpdateContractLabel(ctx context.Context, in *MsgUpdateContractLabel, opts ...grpc.CallOption) (*MsgUpdateContractLabelResponse, error) // SetGaslessContract set contracts are gasless SetGaslessContracts(ctx context.Context, in *MsgSetGaslessContracts, opts ...grpc.CallOption) (*MsgSetGaslessContractsResponse, error) + // UnsetGaslessContract unset the gasless contract + UnsetGaslessContracts(ctx context.Context, in *MsgUnsetGaslessContracts, opts ...grpc.CallOption) (*MsgUnsetGaslessContractsResponse, error) } type msgClient struct { @@ -1984,6 +2067,15 @@ func (c *msgClient) SetGaslessContracts(ctx context.Context, in *MsgSetGaslessCo return out, nil } +func (c *msgClient) UnsetGaslessContracts(ctx context.Context, in *MsgUnsetGaslessContracts, opts ...grpc.CallOption) (*MsgUnsetGaslessContractsResponse, error) { + out := new(MsgUnsetGaslessContractsResponse) + err := c.cc.Invoke(ctx, "/cosmwasm.wasm.v1.Msg/UnsetGaslessContracts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { // StoreCode to submit Wasm code to the system @@ -2048,6 +2140,8 @@ type MsgServer interface { UpdateContractLabel(context.Context, *MsgUpdateContractLabel) (*MsgUpdateContractLabelResponse, error) // SetGaslessContract set contracts are gasless SetGaslessContracts(context.Context, *MsgSetGaslessContracts) (*MsgSetGaslessContractsResponse, error) + // UnsetGaslessContract unset the gasless contract + UnsetGaslessContracts(context.Context, *MsgUnsetGaslessContracts) (*MsgUnsetGaslessContractsResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -2108,6 +2202,9 @@ func (*UnimplementedMsgServer) UpdateContractLabel(ctx context.Context, req *Msg func (*UnimplementedMsgServer) SetGaslessContracts(ctx context.Context, req *MsgSetGaslessContracts) (*MsgSetGaslessContractsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetGaslessContracts not implemented") } +func (*UnimplementedMsgServer) UnsetGaslessContracts(ctx context.Context, req *MsgUnsetGaslessContracts) (*MsgUnsetGaslessContractsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnsetGaslessContracts not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -2437,6 +2534,24 @@ func _Msg_SetGaslessContracts_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Msg_UnsetGaslessContracts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUnsetGaslessContracts) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UnsetGaslessContracts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cosmwasm.wasm.v1.Msg/UnsetGaslessContracts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UnsetGaslessContracts(ctx, req.(*MsgUnsetGaslessContracts)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "cosmwasm.wasm.v1.Msg", HandlerType: (*MsgServer)(nil), @@ -2513,6 +2628,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "SetGaslessContracts", Handler: _Msg_SetGaslessContracts_Handler, }, + { + MethodName: "UnsetGaslessContracts", + Handler: _Msg_UnsetGaslessContracts_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmwasm/wasm/v1/tx.proto", @@ -3986,6 +4105,68 @@ func (m *MsgSetGaslessContractsResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } +func (m *MsgUnsetGaslessContracts) 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 *MsgUnsetGaslessContracts) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUnsetGaslessContracts) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Contracts) > 0 { + for iNdEx := len(m.Contracts) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Contracts[iNdEx]) + copy(dAtA[i:], m.Contracts[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Contracts[iNdEx]))) + 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 *MsgUnsetGaslessContractsResponse) 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 *MsgUnsetGaslessContractsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUnsetGaslessContractsResponse) 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 @@ -4655,6 +4836,34 @@ func (m *MsgSetGaslessContractsResponse) Size() (n int) { return n } +func (m *MsgUnsetGaslessContracts) 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)) + } + if len(m.Contracts) > 0 { + for _, s := range m.Contracts { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgUnsetGaslessContractsResponse) 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 } @@ -9106,6 +9315,170 @@ func (m *MsgSetGaslessContractsResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgUnsetGaslessContracts) 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: MsgUnsetGaslessContracts: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUnsetGaslessContracts: 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 Contracts", 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.Contracts = append(m.Contracts, 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 *MsgUnsetGaslessContractsResponse) 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: MsgUnsetGaslessContractsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUnsetGaslessContractsResponse: 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