diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index a602a98e888..97c97fcf085 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -676,11 +676,6 @@ func (appKeepers *AppKeepers) SetupHooks() { // e.g. *app.StakingKeeper doesn't appear // Recall that SetHooks is a mutative call. - appKeepers.BankKeeper.SetHooks( - banktypes.NewMultiBankHooks( - appKeepers.TokenFactoryKeeper.Hooks(), - ), - ) appKeepers.StakingKeeper.SetHooks( stakingtypes.NewMultiStakingHooks( diff --git a/proto/osmosis/tokenfactory/v1beta1/query.proto b/proto/osmosis/tokenfactory/v1beta1/query.proto index a7ccd584985..afc9f7f3c1c 100644 --- a/proto/osmosis/tokenfactory/v1beta1/query.proto +++ b/proto/osmosis/tokenfactory/v1beta1/query.proto @@ -32,14 +32,6 @@ service Query { option (google.api.http).get = "/osmosis/tokenfactory/v1beta1/denoms_from_creator/{creator}"; } - - // BeforeSendHookAddress defines a gRPC query method for - // getting the address registered for the before send hook. - rpc BeforeSendHookAddress(QueryBeforeSendHookAddressRequest) - returns (QueryBeforeSendHookAddressResponse) { - option (google.api.http).get = - "/osmosis/tokenfactory/v1beta1/denoms/{denom}/before_send_hook"; - } } // QueryParamsRequest is the request type for the Query/Params RPC method. @@ -77,14 +69,3 @@ message QueryDenomsFromCreatorRequest { message QueryDenomsFromCreatorResponse { repeated string denoms = 1 [ (gogoproto.moretags) = "yaml:\"denoms\"" ]; } - -message QueryBeforeSendHookAddressRequest { - string denom = 1 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; -} - -// QueryBeforeSendHookAddressResponse defines the response structure for the -// DenomBeforeSendHook gRPC query. -message QueryBeforeSendHookAddressResponse { - string cosmwasm_address = 1 - [ (gogoproto.moretags) = "yaml:\"cosmwasm_address\"" ]; -} \ No newline at end of file diff --git a/proto/osmosis/tokenfactory/v1beta1/tx.proto b/proto/osmosis/tokenfactory/v1beta1/tx.proto index 99199660b92..5fabed3e301 100644 --- a/proto/osmosis/tokenfactory/v1beta1/tx.proto +++ b/proto/osmosis/tokenfactory/v1beta1/tx.proto @@ -16,8 +16,6 @@ service Msg { rpc ChangeAdmin(MsgChangeAdmin) returns (MsgChangeAdminResponse); rpc SetDenomMetadata(MsgSetDenomMetadata) returns (MsgSetDenomMetadataResponse); - rpc SetBeforeSendHook(MsgSetBeforeSendHook) - returns (MsgSetBeforeSendHookResponse); rpc ForceTransfer(MsgForceTransfer) returns (MsgForceTransferResponse); } @@ -91,18 +89,19 @@ message MsgChangeAdmin { // MsgChangeAdmin message. message MsgChangeAdminResponse {} -// MsgSetBeforeSendHook is the sdk.Msg type for allowing an admin account to -// assign a CosmWasm contract to call with a BeforeSend hook -message MsgSetBeforeSendHook { - string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; - string denom = 2 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; - string cosmwasm_address = 3 - [ (gogoproto.moretags) = "yaml:\"cosmwasm_address\"" ]; -} - -// MsgSetBeforeSendHookResponse defines the response structure for an executed -// MsgSetBeforeSendHook message. -message MsgSetBeforeSendHookResponse {} +// // MsgSetBeforeSendHook is the sdk.Msg type for allowing an admin account to +// // assign a CosmWasm contract to call with a BeforeSend hook +// message MsgSetBeforeSendHook { +// string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; +// string denom = 2 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; +// string cosmwasm_address = 3 +// [ (gogoproto.moretags) = "yaml:\"cosmwasm_address\"" ]; +// } + +// // MsgSetBeforeSendHookResponse defines the response structure for an +// executed +// // MsgSetBeforeSendHook message. +// message MsgSetBeforeSendHookResponse {} // MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set // the denom's bank metadata diff --git a/x/tokenfactory/client/cli/query.go b/x/tokenfactory/client/cli/query.go index 8a4fa71c049..95700a16713 100644 --- a/x/tokenfactory/client/cli/query.go +++ b/x/tokenfactory/client/cli/query.go @@ -4,8 +4,6 @@ import ( // "strings" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" // "github.com/cosmos/cosmos-sdk/client/flags" @@ -47,32 +45,3 @@ func GetCmdDenomsFromCreator() (*osmocli.QueryDescriptor, *types.QueryDenomsFrom {{.CommandPrefix}}
`, }, &types.QueryDenomsFromCreatorRequest{} } - -// GetCmdDenomAuthorityMetadata returns the authority metadata for a queried denom -func GetCmdDenomBeforeSendHook() *cobra.Command { - cmd := &cobra.Command{ - Use: "denom-before-send-hook [denom] [flags]", - Short: "Get the BeforeSend hook for a specific denom", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - queryClient := types.NewQueryClient(clientCtx) - - res, err := queryClient.BeforeSendHookAddress(cmd.Context(), &types.QueryBeforeSendHookAddressRequest{ - Denom: args[0], - }) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/tokenfactory/client/cli/tx.go b/x/tokenfactory/client/cli/tx.go index e962ee22123..994af760e8d 100644 --- a/x/tokenfactory/client/cli/tx.go +++ b/x/tokenfactory/client/cli/tx.go @@ -1,9 +1,6 @@ package cli import ( - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" "github.com/spf13/cobra" // "github.com/cosmos/cosmos-sdk/client/flags" @@ -20,7 +17,7 @@ func GetTxCmd() *cobra.Command { NewBurnCmd(), // NewForceTransferCmd(), NewChangeAdminCmd(), - NewSetBeforeSendHookCmd(), + // NewSetBeforeSendHookCmd(), ) return cmd @@ -53,31 +50,3 @@ func NewChangeAdminCmd() *cobra.Command { Short: "Changes the admin address for a factory-created denom. Must have admin authority to do so.", }) } - -// NewChangeAdminCmd broadcast MsgChangeAdmin -func NewSetBeforeSendHookCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: "set-beforesend-hook [denom] [cosmwasm-address] [flags]", - Short: "Set a cosmwasm contract to be the beforesend hook for a factory-created denom. Must have admin authority to do so.", - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - txf := tx.NewFactoryCLI(clientCtx, cmd.Flags()).WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever) - - msg := types.NewMsgSetBeforeSendHook( - clientCtx.GetFromAddress().String(), - args[0], - args[1], - ) - - return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf, msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - return cmd -} diff --git a/x/tokenfactory/keeper/before_send.go b/x/tokenfactory/keeper/before_send.go deleted file mode 100644 index 4423e09626e..00000000000 --- a/x/tokenfactory/keeper/before_send.go +++ /dev/null @@ -1,133 +0,0 @@ -package keeper - -import ( - "encoding/json" - - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/osmosis-labs/osmosis/v16/x/tokenfactory/types" - - errorsmod "cosmossdk.io/errors" - wasmvmtypes "github.com/CosmWasm/wasmvm/types" -) - -func (k Keeper) setBeforeSendHook(ctx sdk.Context, denom string, cosmwasmAddress string) error { - // verify that denom is an x/tokenfactory denom - _, _, err := types.DeconstructDenom(denom) - if err != nil { - return err - } - - store := k.GetDenomPrefixStore(ctx, denom) - - // delete the store for denom prefix store when cosmwasm address is nil - if cosmwasmAddress == "" { - store.Delete([]byte(types.BeforeSendHookAddressPrefixKey)) - return nil - } - - _, err = sdk.AccAddressFromBech32(cosmwasmAddress) - if err != nil { - return err - } - - store.Set([]byte(types.BeforeSendHookAddressPrefixKey), []byte(cosmwasmAddress)) - - return nil -} - -func (k Keeper) GetBeforeSendHook(ctx sdk.Context, denom string) string { - store := k.GetDenomPrefixStore(ctx, denom) - - bz := store.Get([]byte(types.BeforeSendHookAddressPrefixKey)) - if bz == nil { - return "" - } - - return string(bz) -} - -func CWCoinsFromSDKCoins(in sdk.Coins) wasmvmtypes.Coins { - var cwCoins wasmvmtypes.Coins - for _, coin := range in { - cwCoins = append(cwCoins, CWCoinFromSDKCoin(coin)) - } - return cwCoins -} - -func CWCoinFromSDKCoin(in sdk.Coin) wasmvmtypes.Coin { - return wasmvmtypes.Coin{ - Denom: in.GetDenom(), - Amount: in.Amount.String(), - } -} - -// Hooks wrapper struct for bank keeper -type Hooks struct { - k Keeper -} - -var _ types.BankHooks = Hooks{} - -// Return the wrapper struct -func (k Keeper) Hooks() Hooks { - return Hooks{k} -} - -// TrackBeforeSend calls the before send listener contract surpresses any errors -func (h Hooks) TrackBeforeSend(ctx sdk.Context, from, to sdk.AccAddress, amount sdk.Coins) { - _ = h.k.callBeforeSendListener(ctx, from, to, amount, false) -} - -// TrackBeforeSend calls the before send listener contract returns any errors -func (h Hooks) BlockBeforeSend(ctx sdk.Context, from, to sdk.AccAddress, amount sdk.Coins) error { - return h.k.callBeforeSendListener(ctx, from, to, amount, true) -} - -// callBeforeSendListener iterates over each coin and sends corresponding sudo msg to the contract address stored in state. -// If blockBeforeSend is true, sudoMsg wraps BlockBeforeSendMsg, otherwise sudoMsg wraps TrackBeforeSendMsg. -func (k Keeper) callBeforeSendListener(ctx sdk.Context, from, to sdk.AccAddress, amount sdk.Coins, blockBeforeSend bool) error { - for _, coin := range amount { - cosmwasmAddress := k.GetBeforeSendHook(ctx, coin.Denom) - if cosmwasmAddress != "" { - cwAddr, err := sdk.AccAddressFromBech32(cosmwasmAddress) - if err != nil { - return err - } - - var msgBz []byte - - // get msgBz, either BlockBeforeSend or TrackBeforeSend - if blockBeforeSend { - msg := types.BlockBeforeSendSudoMsg{ - BlockBeforeSend: types.BlockBeforeSendMsg{ - From: from.String(), - To: to.String(), - Amount: CWCoinFromSDKCoin(coin), - }, - } - msgBz, err = json.Marshal(msg) - } else { - msg := types.TrackBeforeSendSudoMsg{ - TrackBeforeSend: types.TrackBeforeSendMsg{ - From: from.String(), - To: to.String(), - Amount: CWCoinFromSDKCoin(coin), - }, - } - msgBz, err = json.Marshal(msg) - } - if err != nil { - return err - } - - em := sdk.NewEventManager() - - _, err = k.contractKeeper.Sudo(ctx.WithEventManager(em), cwAddr, msgBz) - if err != nil { - return errorsmod.Wrapf(err, "failed to call before send hook for denom %s", coin.Denom) - } - } - } - return nil -} diff --git a/x/tokenfactory/keeper/before_send_test.go b/x/tokenfactory/keeper/before_send_test.go deleted file mode 100644 index 96dc740e93e..00000000000 --- a/x/tokenfactory/keeper/before_send_test.go +++ /dev/null @@ -1,126 +0,0 @@ -package keeper_test - -import ( - "fmt" - "os" - - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/osmosis-labs/osmosis/v16/x/tokenfactory/types" - - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" -) - -type SendMsgTestCase struct { - desc string - msg func(denom string) *banktypes.MsgSend - expectPass bool -} - -func (s *KeeperTestSuite) TestBeforeSendHook() { - s.SkipIfWSL() - for _, tc := range []struct { - desc string - wasmFile string - sendMsgs []SendMsgTestCase - }{ - { - desc: "should not allow sending 100 amount of *any* denom", - wasmFile: "./testdata/no100.wasm", - sendMsgs: []SendMsgTestCase{ - { - desc: "sending 1 of factorydenom should not error", - msg: func(factorydenom string) *banktypes.MsgSend { - return banktypes.NewMsgSend( - s.TestAccs[0], - s.TestAccs[1], - sdk.NewCoins(sdk.NewInt64Coin(factorydenom, 1)), - ) - }, - expectPass: true, - }, - { - desc: "sending 100 of non-factorydenom should not error", - msg: func(factorydenom string) *banktypes.MsgSend { - return banktypes.NewMsgSend( - s.TestAccs[0], - s.TestAccs[1], - sdk.NewCoins(sdk.NewInt64Coin(factorydenom, 1)), - ) - }, - expectPass: true, - }, - { - desc: "sending 100 of factorydenom should not work", - msg: func(factorydenom string) *banktypes.MsgSend { - return banktypes.NewMsgSend( - s.TestAccs[0], - s.TestAccs[1], - sdk.NewCoins(sdk.NewInt64Coin(factorydenom, 100)), - ) - }, - expectPass: false, - }, - { - desc: "sending 100 of factorydenom should not work", - msg: func(factorydenom string) *banktypes.MsgSend { - return banktypes.NewMsgSend( - s.TestAccs[0], - s.TestAccs[1], - sdk.NewCoins(sdk.NewInt64Coin("foo", 100)), - ) - }, - expectPass: false, - }, - { - desc: "having 100 coin within coins should not work", - msg: func(factorydenom string) *banktypes.MsgSend { - return banktypes.NewMsgSend( - s.TestAccs[0], - s.TestAccs[1], - sdk.NewCoins(sdk.NewInt64Coin(factorydenom, 100), sdk.NewInt64Coin("foo", 1)), - ) - }, - expectPass: false, - }, - }, - }, - } { - s.Run(fmt.Sprintf("Case %s", tc.desc), func() { - // setup test - s.SetupTest() - - // upload and instantiate wasm code - wasmCode, err := os.ReadFile(tc.wasmFile) - s.Require().NoError(err, "test: %v", tc.desc) - codeID, _, err := s.contractKeeper.Create(s.Ctx, s.TestAccs[0], wasmCode, nil) - s.Require().NoError(err, "test: %v", tc.desc) - cosmwasmAddress, _, err := s.contractKeeper.Instantiate(s.Ctx, codeID, s.TestAccs[0], s.TestAccs[0], []byte("{}"), "", sdk.NewCoins()) - s.Require().NoError(err, "test: %v", tc.desc) - - // create new denom - res, err := s.msgServer.CreateDenom(sdk.WrapSDKContext(s.Ctx), types.NewMsgCreateDenom(s.TestAccs[0].String(), "bitcoin")) - s.Require().NoError(err, "test: %v", tc.desc) - denom := res.GetNewTokenDenom() - - // mint enough coins to the creator - _, err = s.msgServer.Mint(sdk.WrapSDKContext(s.Ctx), types.NewMsgMint(s.TestAccs[0].String(), sdk.NewInt64Coin(denom, 1000000000))) - s.Require().NoError(err) - // mint some non token factory denom coins for testing - s.FundAcc(sdk.AccAddress(s.TestAccs[0].String()), sdk.Coins{sdk.NewInt64Coin("foo", 100000000000)}) - - // set beforesend hook to the new denom - _, err = s.msgServer.SetBeforeSendHook(sdk.WrapSDKContext(s.Ctx), types.NewMsgSetBeforeSendHook(s.TestAccs[0].String(), denom, cosmwasmAddress.String())) - s.Require().NoError(err, "test: %v", tc.desc) - - for _, sendTc := range tc.sendMsgs { - _, err := s.bankMsgServer.Send(sdk.WrapSDKContext(s.Ctx), sendTc.msg(denom)) - if sendTc.expectPass { - s.Require().NoError(err, "test: %v", sendTc.desc) - } else { - s.Require().Error(err, "test: %v", sendTc.desc) - } - } - }) - } -} diff --git a/x/tokenfactory/keeper/grpc_query.go b/x/tokenfactory/keeper/grpc_query.go index afe2170702d..01bd5b39e37 100644 --- a/x/tokenfactory/keeper/grpc_query.go +++ b/x/tokenfactory/keeper/grpc_query.go @@ -33,11 +33,3 @@ func (k Keeper) DenomsFromCreator(ctx context.Context, req *types.QueryDenomsFro denoms := k.getDenomsFromCreator(sdkCtx, req.GetCreator()) return &types.QueryDenomsFromCreatorResponse{Denoms: denoms}, nil } - -func (k Keeper) BeforeSendHookAddress(ctx context.Context, req *types.QueryBeforeSendHookAddressRequest) (*types.QueryBeforeSendHookAddressResponse, error) { - sdkCtx := sdk.UnwrapSDKContext(ctx) - - cosmwasmAddress := k.GetBeforeSendHook(sdkCtx, req.GetDenom()) - - return &types.QueryBeforeSendHookAddressResponse{CosmwasmAddress: cosmwasmAddress}, nil -} diff --git a/x/tokenfactory/keeper/msg_server.go b/x/tokenfactory/keeper/msg_server.go index 9965c216da2..f97395ce945 100644 --- a/x/tokenfactory/keeper/msg_server.go +++ b/x/tokenfactory/keeper/msg_server.go @@ -204,31 +204,3 @@ func (server msgServer) SetDenomMetadata(goCtx context.Context, msg *types.MsgSe return &types.MsgSetDenomMetadataResponse{}, nil } - -func (server msgServer) SetBeforeSendHook(goCtx context.Context, msg *types.MsgSetBeforeSendHook) (*types.MsgSetBeforeSendHookResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - authorityMetadata, err := server.Keeper.GetAuthorityMetadata(ctx, msg.Denom) - if err != nil { - return nil, err - } - - if msg.Sender != authorityMetadata.GetAdmin() { - return nil, types.ErrUnauthorized - } - - err = server.Keeper.setBeforeSendHook(ctx, msg.Denom, msg.CosmwasmAddress) - if err != nil { - return nil, err - } - - ctx.EventManager().EmitEvents(sdk.Events{ - sdk.NewEvent( - types.TypeMsgSetBeforeSendHook, - sdk.NewAttribute(types.AttributeDenom, msg.GetDenom()), - sdk.NewAttribute(types.AttributeBeforeSendHookAddress, msg.GetCosmwasmAddress()), - ), - }) - - return &types.MsgSetBeforeSendHookResponse{}, nil -} diff --git a/x/tokenfactory/types/codec.go b/x/tokenfactory/types/codec.go index 4945c0f1c83..a81bd58a5f6 100644 --- a/x/tokenfactory/types/codec.go +++ b/x/tokenfactory/types/codec.go @@ -16,7 +16,6 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgBurn{}, "osmosis/tokenfactory/burn", nil) cdc.RegisterConcrete(&MsgForceTransfer{}, "osmosis/tokenfactory/force-transfer", nil) cdc.RegisterConcrete(&MsgChangeAdmin{}, "osmosis/tokenfactory/change-admin", nil) - cdc.RegisterConcrete(&MsgSetBeforeSendHook{}, "osmosis/tokenfactory/set-beforesend-hook", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { @@ -27,7 +26,6 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgBurn{}, // &MsgForceTransfer{}, &MsgChangeAdmin{}, - &MsgSetBeforeSendHook{}, ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/tokenfactory/types/msgs.go b/x/tokenfactory/types/msgs.go index 9ee67c9a5eb..dfd7b614015 100644 --- a/x/tokenfactory/types/msgs.go +++ b/x/tokenfactory/types/msgs.go @@ -263,46 +263,3 @@ func (m MsgSetDenomMetadata) GetSigners() []sdk.AccAddress { sender, _ := sdk.AccAddressFromBech32(m.Sender) return []sdk.AccAddress{sender} } - -var _ sdk.Msg = &MsgSetBeforeSendHook{} - -// NewMsgSetBeforeSendHook creates a message to set a new before send hook -func NewMsgSetBeforeSendHook(sender string, denom string, cosmwasmAddress string) *MsgSetBeforeSendHook { - return &MsgSetBeforeSendHook{ - Sender: sender, - Denom: denom, - CosmwasmAddress: cosmwasmAddress, - } -} - -func (m MsgSetBeforeSendHook) Route() string { return RouterKey } -func (m MsgSetBeforeSendHook) Type() string { return TypeMsgSetBeforeSendHook } -func (m MsgSetBeforeSendHook) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(m.Sender) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid sender address (%s)", err) - } - - if m.CosmwasmAddress != "" { - _, err = sdk.AccAddressFromBech32(m.CosmwasmAddress) - if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "Invalid cosmwasm contract address (%s)", err) - } - } - - _, _, err = DeconstructDenom(m.Denom) - if err != nil { - return ErrInvalidDenom - } - - return nil -} - -func (m MsgSetBeforeSendHook) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m)) -} - -func (m MsgSetBeforeSendHook) GetSigners() []sdk.AccAddress { - sender, _ := sdk.AccAddressFromBech32(m.Sender) - return []sdk.AccAddress{sender} -} diff --git a/x/tokenfactory/types/query.pb.go b/x/tokenfactory/types/query.pb.go index d5265a1dbac..e86e6f4c5ab 100644 --- a/x/tokenfactory/types/query.pb.go +++ b/x/tokenfactory/types/query.pb.go @@ -297,96 +297,6 @@ func (m *QueryDenomsFromCreatorResponse) GetDenoms() []string { return nil } -type QueryBeforeSendHookAddressRequest struct { - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` -} - -func (m *QueryBeforeSendHookAddressRequest) Reset() { *m = QueryBeforeSendHookAddressRequest{} } -func (m *QueryBeforeSendHookAddressRequest) String() string { return proto.CompactTextString(m) } -func (*QueryBeforeSendHookAddressRequest) ProtoMessage() {} -func (*QueryBeforeSendHookAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6f22013ad0f72e3f, []int{6} -} -func (m *QueryBeforeSendHookAddressRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryBeforeSendHookAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryBeforeSendHookAddressRequest.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 *QueryBeforeSendHookAddressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryBeforeSendHookAddressRequest.Merge(m, src) -} -func (m *QueryBeforeSendHookAddressRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryBeforeSendHookAddressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryBeforeSendHookAddressRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryBeforeSendHookAddressRequest proto.InternalMessageInfo - -func (m *QueryBeforeSendHookAddressRequest) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -// QueryBeforeSendHookAddressResponse defines the response structure for the -// DenomBeforeSendHook gRPC query. -type QueryBeforeSendHookAddressResponse struct { - CosmwasmAddress string `protobuf:"bytes,1,opt,name=cosmwasm_address,json=cosmwasmAddress,proto3" json:"cosmwasm_address,omitempty" yaml:"cosmwasm_address"` -} - -func (m *QueryBeforeSendHookAddressResponse) Reset() { *m = QueryBeforeSendHookAddressResponse{} } -func (m *QueryBeforeSendHookAddressResponse) String() string { return proto.CompactTextString(m) } -func (*QueryBeforeSendHookAddressResponse) ProtoMessage() {} -func (*QueryBeforeSendHookAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6f22013ad0f72e3f, []int{7} -} -func (m *QueryBeforeSendHookAddressResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryBeforeSendHookAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryBeforeSendHookAddressResponse.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 *QueryBeforeSendHookAddressResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryBeforeSendHookAddressResponse.Merge(m, src) -} -func (m *QueryBeforeSendHookAddressResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryBeforeSendHookAddressResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryBeforeSendHookAddressResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryBeforeSendHookAddressResponse proto.InternalMessageInfo - -func (m *QueryBeforeSendHookAddressResponse) GetCosmwasmAddress() string { - if m != nil { - return m.CosmwasmAddress - } - return "" -} - func init() { proto.RegisterType((*QueryParamsRequest)(nil), "osmosis.tokenfactory.v1beta1.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryParamsResponse") @@ -394,8 +304,6 @@ func init() { proto.RegisterType((*QueryDenomAuthorityMetadataResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse") proto.RegisterType((*QueryDenomsFromCreatorRequest)(nil), "osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorRequest") proto.RegisterType((*QueryDenomsFromCreatorResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse") - proto.RegisterType((*QueryBeforeSendHookAddressRequest)(nil), "osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest") - proto.RegisterType((*QueryBeforeSendHookAddressResponse)(nil), "osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse") } func init() { @@ -403,50 +311,43 @@ func init() { } var fileDescriptor_6f22013ad0f72e3f = []byte{ - // 674 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcf, 0x4e, 0x13, 0x5f, - 0x14, 0xee, 0xfc, 0x7e, 0x52, 0xc3, 0xf5, 0x1f, 0x5c, 0xf1, 0x5f, 0xc5, 0xa9, 0x5c, 0x09, 0x01, - 0x83, 0x1d, 0x8b, 0xc4, 0x18, 0x91, 0x40, 0x07, 0x45, 0x13, 0x24, 0xd1, 0x71, 0xa5, 0x9b, 0xe6, - 0xb6, 0xbd, 0x94, 0x86, 0xce, 0x9c, 0x32, 0xf7, 0x16, 0x6d, 0x08, 0x1b, 0x17, 0xae, 0x4d, 0x5c, - 0xfa, 0x0e, 0x3e, 0x07, 0x4b, 0x12, 0x36, 0xae, 0x1a, 0x05, 0xe3, 0x03, 0xf4, 0x09, 0x4c, 0xef, - 0x3d, 0x45, 0xa0, 0x65, 0xd2, 0xe2, 0xaa, 0x93, 0x73, 0xbe, 0xf3, 0x9d, 0xef, 0xbb, 0xe7, 0x9c, - 0x94, 0x8c, 0x83, 0xf4, 0x41, 0x96, 0xa4, 0xa3, 0x60, 0x4d, 0x04, 0x2b, 0x3c, 0xaf, 0x20, 0xac, - 0x39, 0x1b, 0xe9, 0x9c, 0x50, 0x3c, 0xed, 0xac, 0x57, 0x45, 0x58, 0x4b, 0x55, 0x42, 0x50, 0x40, - 0x87, 0x11, 0x99, 0x3a, 0x8c, 0x4c, 0x21, 0x32, 0x31, 0x54, 0x84, 0x22, 0x68, 0xa0, 0xd3, 0xfc, - 0x32, 0x35, 0x89, 0xe1, 0x22, 0x40, 0xb1, 0x2c, 0x1c, 0x5e, 0x29, 0x39, 0x3c, 0x08, 0x40, 0x71, - 0x55, 0x82, 0x40, 0x62, 0xf6, 0x6e, 0x5e, 0x53, 0x3a, 0x39, 0x2e, 0x85, 0x69, 0x75, 0xd0, 0xb8, - 0xc2, 0x8b, 0xa5, 0x40, 0x83, 0x11, 0x3b, 0x1d, 0xa9, 0x93, 0x57, 0xd5, 0x2a, 0x84, 0x25, 0x55, - 0x5b, 0x16, 0x8a, 0x17, 0xb8, 0xe2, 0x58, 0x35, 0x11, 0x59, 0x55, 0xe1, 0x21, 0xf7, 0x51, 0x0c, - 0x1b, 0x22, 0xf4, 0x75, 0x53, 0xc2, 0x2b, 0x1d, 0xf4, 0xc4, 0x7a, 0x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, 0x38, 0x47, 0x67, 0x7b, 0x9a, 0x5d, - 0x4e, 0x73, 0x66, 0xa5, 0x08, 0x0a, 0xd9, 0x55, 0x80, 0x35, 0xd7, 0xdb, 0xde, 0xb3, 0xad, 0x9d, - 0x3d, 0xdb, 0xfa, 0xb1, 0x67, 0x5b, 0x9f, 0xf7, 0xed, 0xd8, 0xce, 0xbe, 0x1d, 0xfb, 0xbe, 0x6f, - 0xc7, 0xde, 0x3d, 0x2a, 0x96, 0xd4, 0x6a, 0x35, 0x97, 0xca, 0x83, 0xdf, 0x6a, 0x71, 0xaf, 0xcc, - 0x73, 0xf2, 0xa0, 0xdf, 0x46, 0xfa, 0xa1, 0xf3, 0xe1, 0x68, 0x57, 0x55, 0xab, 0x08, 0x99, 0x8b, - 0xeb, 0x3f, 0x9b, 0x07, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x30, 0xc1, 0xbe, 0x16, 0x77, 0x07, - 0x00, 0x00, + // 572 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x4f, 0x6b, 0x13, 0x41, + 0x14, 0xcf, 0x68, 0x1b, 0xe9, 0xf8, 0x07, 0x33, 0x16, 0xd1, 0x50, 0x37, 0x3a, 0x96, 0x92, 0x4a, + 0xdd, 0x31, 0xb5, 0x88, 0x58, 0x45, 0xb3, 0x15, 0x3d, 0x68, 0x41, 0xf7, 0xa6, 0x97, 0x30, 0x49, + 0xa7, 0xdb, 0xc5, 0xec, 0xce, 0x76, 0x67, 0x52, 0x0c, 0xa5, 0x17, 0x0f, 0x9e, 0x05, 0x8f, 0x7e, + 0x07, 0x3f, 0x47, 0x8f, 0x85, 0x5e, 0x3c, 0x2d, 0x92, 0x14, 0x3f, 0x40, 0x3e, 0x81, 0xec, 0xcc, + 0x24, 0xb6, 0x6e, 0x5c, 0xa2, 0x9e, 0xb2, 0xcc, 0xfb, 0xbd, 0xdf, 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, 0xf4, 0xd4, 0xc9, 0xae, 0xfa, 0xdd, 0x23, 0xd9, 0x03, + 0x42, 0x87, 0x00, 0x96, 0x32, 0x9b, 0x45, 0xab, 0x93, 0x3a, 0x1c, 0x73, 0x5e, 0xe5, 0x87, 0xff, + 0xd6, 0x6c, 0x92, 0xad, 0xa9, 0x64, 0x8f, 0xd0, 0xea, 0x24, 0xc9, 0x1a, 0x9b, 0x31, 0x0f, 0x1a, + 0xe6, 0x52, 0xc9, 0xae, 0xf9, 0xd8, 0x73, 0xdc, 0xfd, 0x9e, 0x05, 0x0e, 0x7a, 0x16, 0xf8, 0xde, + 0xb3, 0xc0, 0xa7, 0xbe, 0x55, 0x38, 0xe8, 0x5b, 0x85, 0x6f, 0x7d, 0xab, 0xf0, 0xf6, 0xbe, 0xe7, + 0xcb, 0xad, 0x4e, 0xd3, 0x6e, 0xf1, 0x60, 0x28, 0x70, 0xbb, 0x4d, 0x9b, 0x62, 0xa4, 0xb6, 0x53, + 0xbb, 0x47, 0xde, 0x9f, 0xd4, 0x94, 0xdd, 0x88, 0x89, 0x66, 0x51, 0xfd, 0x9b, 0xdd, 0xfd, 0x19, + 0x00, 0x00, 0xff, 0xff, 0x2b, 0xb6, 0xd7, 0x5e, 0xd8, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -470,9 +371,6 @@ type QueryClient interface { // DenomsFromCreator defines a gRPC query method for fetching all // denominations created by a specific admin/creator. DenomsFromCreator(ctx context.Context, in *QueryDenomsFromCreatorRequest, opts ...grpc.CallOption) (*QueryDenomsFromCreatorResponse, error) - // BeforeSendHookAddress defines a gRPC query method for - // getting the address registered for the before send hook. - BeforeSendHookAddress(ctx context.Context, in *QueryBeforeSendHookAddressRequest, opts ...grpc.CallOption) (*QueryBeforeSendHookAddressResponse, error) } type queryClient struct { @@ -510,15 +408,6 @@ func (c *queryClient) DenomsFromCreator(ctx context.Context, in *QueryDenomsFrom return out, nil } -func (c *queryClient) BeforeSendHookAddress(ctx context.Context, in *QueryBeforeSendHookAddressRequest, opts ...grpc.CallOption) (*QueryBeforeSendHookAddressResponse, error) { - out := new(QueryBeforeSendHookAddressResponse) - err := c.cc.Invoke(ctx, "/osmosis.tokenfactory.v1beta1.Query/BeforeSendHookAddress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // QueryServer is the server API for Query service. type QueryServer interface { // Params defines a gRPC query method that returns the tokenfactory module's @@ -530,9 +419,6 @@ type QueryServer interface { // DenomsFromCreator defines a gRPC query method for fetching all // denominations created by a specific admin/creator. DenomsFromCreator(context.Context, *QueryDenomsFromCreatorRequest) (*QueryDenomsFromCreatorResponse, error) - // BeforeSendHookAddress defines a gRPC query method for - // getting the address registered for the before send hook. - BeforeSendHookAddress(context.Context, *QueryBeforeSendHookAddressRequest) (*QueryBeforeSendHookAddressResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -548,9 +434,6 @@ func (*UnimplementedQueryServer) DenomAuthorityMetadata(ctx context.Context, req func (*UnimplementedQueryServer) DenomsFromCreator(ctx context.Context, req *QueryDenomsFromCreatorRequest) (*QueryDenomsFromCreatorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DenomsFromCreator not implemented") } -func (*UnimplementedQueryServer) BeforeSendHookAddress(ctx context.Context, req *QueryBeforeSendHookAddressRequest) (*QueryBeforeSendHookAddressResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BeforeSendHookAddress not implemented") -} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -610,24 +493,6 @@ func _Query_DenomsFromCreator_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _Query_BeforeSendHookAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryBeforeSendHookAddressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).BeforeSendHookAddress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/osmosis.tokenfactory.v1beta1.Query/BeforeSendHookAddress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).BeforeSendHookAddress(ctx, req.(*QueryBeforeSendHookAddressRequest)) - } - return interceptor(ctx, in, info, handler) -} - var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "osmosis.tokenfactory.v1beta1.Query", HandlerType: (*QueryServer)(nil), @@ -644,10 +509,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "DenomsFromCreator", Handler: _Query_DenomsFromCreator_Handler, }, - { - MethodName: "BeforeSendHookAddress", - Handler: _Query_BeforeSendHookAddress_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "osmosis/tokenfactory/v1beta1/query.proto", @@ -834,66 +695,6 @@ func (m *QueryDenomsFromCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryBeforeSendHookAddressRequest) 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 *QueryBeforeSendHookAddressRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryBeforeSendHookAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryBeforeSendHookAddressResponse) 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 *QueryBeforeSendHookAddressResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryBeforeSendHookAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CosmwasmAddress) > 0 { - i -= len(m.CosmwasmAddress) - copy(dAtA[i:], m.CosmwasmAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.CosmwasmAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -977,32 +778,6 @@ func (m *QueryDenomsFromCreatorResponse) Size() (n int) { return n } -func (m *QueryBeforeSendHookAddressRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryBeforeSendHookAddressResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CosmwasmAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -1471,170 +1246,6 @@ func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryBeforeSendHookAddressRequest) 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 ErrIntOverflowQuery - } - 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: QueryBeforeSendHookAddressRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryBeforeSendHookAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryBeforeSendHookAddressResponse) 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 ErrIntOverflowQuery - } - 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: QueryBeforeSendHookAddressResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryBeforeSendHookAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CosmwasmAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CosmwasmAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/tokenfactory/types/query.pb.gw.go b/x/tokenfactory/types/query.pb.gw.go index 5d75e90baf7..0b895e7062b 100644 --- a/x/tokenfactory/types/query.pb.gw.go +++ b/x/tokenfactory/types/query.pb.gw.go @@ -159,60 +159,6 @@ func local_request_Query_DenomsFromCreator_0(ctx context.Context, marshaler runt } -func request_Query_BeforeSendHookAddress_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryBeforeSendHookAddressRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["denom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") - } - - protoReq.Denom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) - } - - msg, err := client.BeforeSendHookAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_BeforeSendHookAddress_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryBeforeSendHookAddressRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["denom"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") - } - - protoReq.Denom, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) - } - - msg, err := server.BeforeSendHookAddress(ctx, &protoReq) - return msg, metadata, err - -} - // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -288,29 +234,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_BeforeSendHookAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_BeforeSendHookAddress_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_BeforeSendHookAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -412,26 +335,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_BeforeSendHookAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_BeforeSendHookAddress_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_BeforeSendHookAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -441,8 +344,6 @@ var ( pattern_Query_DenomAuthorityMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "denom", "authority_metadata"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_DenomsFromCreator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms_from_creator", "creator"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_BeforeSendHookAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"osmosis", "tokenfactory", "v1beta1", "denoms", "denom", "before_send_hook"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -451,6 +352,4 @@ var ( forward_Query_DenomAuthorityMetadata_0 = runtime.ForwardResponseMessage forward_Query_DenomsFromCreator_0 = runtime.ForwardResponseMessage - - forward_Query_BeforeSendHookAddress_0 = runtime.ForwardResponseMessage ) diff --git a/x/tokenfactory/types/tx.pb.go b/x/tokenfactory/types/tx.pb.go index 15aa52c066d..4eda152540d 100644 --- a/x/tokenfactory/types/tx.pb.go +++ b/x/tokenfactory/types/tx.pb.go @@ -435,106 +435,6 @@ func (m *MsgChangeAdminResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgChangeAdminResponse proto.InternalMessageInfo -// MsgSetBeforeSendHook is the sdk.Msg type for allowing an admin account to -// assign a CosmWasm contract to call with a BeforeSend hook -type MsgSetBeforeSendHook struct { - Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` - Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` - CosmwasmAddress string `protobuf:"bytes,3,opt,name=cosmwasm_address,json=cosmwasmAddress,proto3" json:"cosmwasm_address,omitempty" yaml:"cosmwasm_address"` -} - -func (m *MsgSetBeforeSendHook) Reset() { *m = MsgSetBeforeSendHook{} } -func (m *MsgSetBeforeSendHook) String() string { return proto.CompactTextString(m) } -func (*MsgSetBeforeSendHook) ProtoMessage() {} -func (*MsgSetBeforeSendHook) Descriptor() ([]byte, []int) { - return fileDescriptor_283b6c9a90a846b4, []int{8} -} -func (m *MsgSetBeforeSendHook) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgSetBeforeSendHook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgSetBeforeSendHook.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 *MsgSetBeforeSendHook) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSetBeforeSendHook.Merge(m, src) -} -func (m *MsgSetBeforeSendHook) XXX_Size() int { - return m.Size() -} -func (m *MsgSetBeforeSendHook) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSetBeforeSendHook.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgSetBeforeSendHook proto.InternalMessageInfo - -func (m *MsgSetBeforeSendHook) GetSender() string { - if m != nil { - return m.Sender - } - return "" -} - -func (m *MsgSetBeforeSendHook) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -func (m *MsgSetBeforeSendHook) GetCosmwasmAddress() string { - if m != nil { - return m.CosmwasmAddress - } - return "" -} - -// MsgSetBeforeSendHookResponse defines the response structure for an executed -// MsgSetBeforeSendHook message. -type MsgSetBeforeSendHookResponse struct { -} - -func (m *MsgSetBeforeSendHookResponse) Reset() { *m = MsgSetBeforeSendHookResponse{} } -func (m *MsgSetBeforeSendHookResponse) String() string { return proto.CompactTextString(m) } -func (*MsgSetBeforeSendHookResponse) ProtoMessage() {} -func (*MsgSetBeforeSendHookResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_283b6c9a90a846b4, []int{9} -} -func (m *MsgSetBeforeSendHookResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgSetBeforeSendHookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgSetBeforeSendHookResponse.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 *MsgSetBeforeSendHookResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSetBeforeSendHookResponse.Merge(m, src) -} -func (m *MsgSetBeforeSendHookResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgSetBeforeSendHookResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSetBeforeSendHookResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgSetBeforeSendHookResponse proto.InternalMessageInfo - // MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set // the denom's bank metadata type MsgSetDenomMetadata struct { @@ -546,7 +446,7 @@ func (m *MsgSetDenomMetadata) Reset() { *m = MsgSetDenomMetadata{} } func (m *MsgSetDenomMetadata) String() string { return proto.CompactTextString(m) } func (*MsgSetDenomMetadata) ProtoMessage() {} func (*MsgSetDenomMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_283b6c9a90a846b4, []int{10} + return fileDescriptor_283b6c9a90a846b4, []int{8} } func (m *MsgSetDenomMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -598,7 +498,7 @@ func (m *MsgSetDenomMetadataResponse) Reset() { *m = MsgSetDenomMetadata func (m *MsgSetDenomMetadataResponse) String() string { return proto.CompactTextString(m) } func (*MsgSetDenomMetadataResponse) ProtoMessage() {} func (*MsgSetDenomMetadataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_283b6c9a90a846b4, []int{11} + return fileDescriptor_283b6c9a90a846b4, []int{9} } func (m *MsgSetDenomMetadataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -638,7 +538,7 @@ func (m *MsgForceTransfer) Reset() { *m = MsgForceTransfer{} } func (m *MsgForceTransfer) String() string { return proto.CompactTextString(m) } func (*MsgForceTransfer) ProtoMessage() {} func (*MsgForceTransfer) Descriptor() ([]byte, []int) { - return fileDescriptor_283b6c9a90a846b4, []int{12} + return fileDescriptor_283b6c9a90a846b4, []int{10} } func (m *MsgForceTransfer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -702,7 +602,7 @@ func (m *MsgForceTransferResponse) Reset() { *m = MsgForceTransferRespon func (m *MsgForceTransferResponse) String() string { return proto.CompactTextString(m) } func (*MsgForceTransferResponse) ProtoMessage() {} func (*MsgForceTransferResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_283b6c9a90a846b4, []int{13} + return fileDescriptor_283b6c9a90a846b4, []int{11} } func (m *MsgForceTransferResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -740,8 +640,6 @@ func init() { proto.RegisterType((*MsgBurnResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgBurnResponse") proto.RegisterType((*MsgChangeAdmin)(nil), "osmosis.tokenfactory.v1beta1.MsgChangeAdmin") proto.RegisterType((*MsgChangeAdminResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse") - proto.RegisterType((*MsgSetBeforeSendHook)(nil), "osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook") - proto.RegisterType((*MsgSetBeforeSendHookResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse") proto.RegisterType((*MsgSetDenomMetadata)(nil), "osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata") proto.RegisterType((*MsgSetDenomMetadataResponse)(nil), "osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse") proto.RegisterType((*MsgForceTransfer)(nil), "osmosis.tokenfactory.v1beta1.MsgForceTransfer") @@ -753,61 +651,57 @@ func init() { } var fileDescriptor_283b6c9a90a846b4 = []byte{ - // 863 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xbf, 0x6f, 0xdb, 0x46, - 0x14, 0x36, 0x93, 0xd4, 0x75, 0x2e, 0x75, 0x25, 0xd1, 0x6e, 0xa2, 0x30, 0x0a, 0x99, 0x1e, 0x90, - 0xa0, 0x2d, 0x2a, 0x12, 0x72, 0x8b, 0xa0, 0xd5, 0xd4, 0x28, 0x85, 0x90, 0xa1, 0x5a, 0x18, 0x4f, - 0x45, 0x00, 0xe1, 0x24, 0x9d, 0x18, 0x42, 0xe1, 0x9d, 0xcb, 0x3b, 0x45, 0xf1, 0x56, 0xa0, 0x5b, - 0xa7, 0x0e, 0xf9, 0x27, 0xb2, 0xb5, 0xff, 0x40, 0xe7, 0x8c, 0x19, 0x3b, 0x11, 0x81, 0x0d, 0xb4, - 0x3b, 0xff, 0x82, 0xe2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 0xcf, 0xb9, 0xbd, 0xf3, 0xf3, 0x77, 0x41, - 0xc8, 0x9f, 0x4f, 0x07, 0xee, 0x90, 0x46, 0x9e, 0xd6, 0x6e, 0xbe, 0x40, 0x03, 0x96, 0x7d, 0x78, - 0x2f, 0x5b, 0x0f, 0xbd, 0x57, 0xc5, 0x27, 0x87, 0x9f, 0x9e, 0x60, 0x36, 0xd8, 0x95, 0x3f, 0x0d, - 0xbf, 0xf9, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xaa, 0x99, 0x47, 0x9a, 0xca, 0x0a, 0x00, 0x00, + // 790 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xcf, 0x4f, 0xdb, 0x48, + 0x14, 0x8e, 0xf9, 0xb5, 0x30, 0x6c, 0x36, 0x89, 0x61, 0xd9, 0xe0, 0x05, 0x9b, 0xb5, 0x04, 0xda, + 0x5d, 0x6d, 0x6c, 0x85, 0x5d, 0xa1, 0x2d, 0xa7, 0x12, 0x2a, 0xd4, 0x43, 0x73, 0x71, 0x39, 0x55, + 0x48, 0x91, 0x93, 0x0c, 0xc6, 0x02, 0xcf, 0x50, 0xcf, 0x84, 0xc0, 0xad, 0xe7, 0x9e, 0x7a, 0xe0, + 0x3f, 0xe8, 0xa9, 0xb7, 0xfe, 0x05, 0x3d, 0x73, 0xe4, 0xd8, 0x93, 0x85, 0x40, 0x6a, 0xef, 0xfe, + 0x0b, 0xaa, 0xf9, 0x61, 0xe7, 0xa7, 0x48, 0x72, 0xe2, 0x82, 0xf0, 0xbc, 0xef, 0xfb, 0xe6, 0x7d, + 0x6f, 0xde, 0x7b, 0x00, 0x36, 0x31, 0x09, 0x30, 0xf1, 0x89, 0x4d, 0xf1, 0x29, 0x44, 0xc7, 0x6e, + 0x83, 0xe2, 0xf0, 0xca, 0xbe, 0x28, 0xd7, 0x21, 0x75, 0xcb, 0x36, 0xbd, 0xb4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, 0x30, 0x46, 0xb9, 0x3a, 0xe8, 0x71, 0xca, 0x35, 0x38, 0xa7, 0xea, 0x3b, 0x05, 0xe4, 0x07, + 0x86, 0xb4, 0x3c, 0x52, 0xaa, 0x9f, 0xa2, 0x3d, 0x9b, 0x98, 0x92, 0xa6, 0xd0, 0x06, 0xd9, 0xde, + 0x81, 0xb3, 0x46, 0x6a, 0xf5, 0xe0, 0xb5, 0x9d, 0xc9, 0xf0, 0xc9, 0xc5, 0x15, 0xe7, 0xe6, 0x5e, + 0x57, 0x6e, 0xef, 0x75, 0xe5, 0xee, 0x5e, 0x57, 0x3e, 0x3c, 0xe8, 0x99, 0xdb, 0x07, 0x3d, 0xf3, + 0xf5, 0x41, 0xcf, 0xbc, 0xf9, 0xdf, 0xf3, 0xe9, 0x49, 0xab, 0x6e, 0x35, 0x70, 0x60, 0x4b, 0xed, + 0xd2, 0x99, 0x5b, 0x27, 0xc9, 0x87, 0x7d, 0x51, 0xde, 0xb1, 0x2f, 0x7b, 0x17, 0x23, 0xbd, 0x3a, + 0x87, 0xa4, 0x3e, 0xc7, 0xff, 0x81, 0xf9, 0xf7, 0x47, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x3e, + 0x9e, 0xa1, 0x70, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -827,7 +721,6 @@ type MsgClient interface { Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error) ChangeAdmin(ctx context.Context, in *MsgChangeAdmin, opts ...grpc.CallOption) (*MsgChangeAdminResponse, error) SetDenomMetadata(ctx context.Context, in *MsgSetDenomMetadata, opts ...grpc.CallOption) (*MsgSetDenomMetadataResponse, error) - SetBeforeSendHook(ctx context.Context, in *MsgSetBeforeSendHook, opts ...grpc.CallOption) (*MsgSetBeforeSendHookResponse, error) ForceTransfer(ctx context.Context, in *MsgForceTransfer, opts ...grpc.CallOption) (*MsgForceTransferResponse, error) } @@ -884,15 +777,6 @@ func (c *msgClient) SetDenomMetadata(ctx context.Context, in *MsgSetDenomMetadat return out, nil } -func (c *msgClient) SetBeforeSendHook(ctx context.Context, in *MsgSetBeforeSendHook, opts ...grpc.CallOption) (*MsgSetBeforeSendHookResponse, error) { - out := new(MsgSetBeforeSendHookResponse) - err := c.cc.Invoke(ctx, "/osmosis.tokenfactory.v1beta1.Msg/SetBeforeSendHook", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *msgClient) ForceTransfer(ctx context.Context, in *MsgForceTransfer, opts ...grpc.CallOption) (*MsgForceTransferResponse, error) { out := new(MsgForceTransferResponse) err := c.cc.Invoke(ctx, "/osmosis.tokenfactory.v1beta1.Msg/ForceTransfer", in, out, opts...) @@ -909,7 +793,6 @@ type MsgServer interface { Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error) ChangeAdmin(context.Context, *MsgChangeAdmin) (*MsgChangeAdminResponse, error) SetDenomMetadata(context.Context, *MsgSetDenomMetadata) (*MsgSetDenomMetadataResponse, error) - SetBeforeSendHook(context.Context, *MsgSetBeforeSendHook) (*MsgSetBeforeSendHookResponse, error) ForceTransfer(context.Context, *MsgForceTransfer) (*MsgForceTransferResponse, error) } @@ -932,9 +815,6 @@ func (*UnimplementedMsgServer) ChangeAdmin(ctx context.Context, req *MsgChangeAd func (*UnimplementedMsgServer) SetDenomMetadata(ctx context.Context, req *MsgSetDenomMetadata) (*MsgSetDenomMetadataResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetDenomMetadata not implemented") } -func (*UnimplementedMsgServer) SetBeforeSendHook(ctx context.Context, req *MsgSetBeforeSendHook) (*MsgSetBeforeSendHookResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetBeforeSendHook not implemented") -} func (*UnimplementedMsgServer) ForceTransfer(ctx context.Context, req *MsgForceTransfer) (*MsgForceTransferResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ForceTransfer not implemented") } @@ -1033,24 +913,6 @@ func _Msg_SetDenomMetadata_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } -func _Msg_SetBeforeSendHook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetBeforeSendHook) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetBeforeSendHook(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/osmosis.tokenfactory.v1beta1.Msg/SetBeforeSendHook", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetBeforeSendHook(ctx, req.(*MsgSetBeforeSendHook)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_ForceTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgForceTransfer) if err := dec(in); err != nil { @@ -1093,10 +955,6 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "SetDenomMetadata", Handler: _Msg_SetDenomMetadata_Handler, }, - { - MethodName: "SetBeforeSendHook", - Handler: _Msg_SetBeforeSendHook_Handler, - }, { MethodName: "ForceTransfer", Handler: _Msg_ForceTransfer_Handler, @@ -1380,73 +1238,6 @@ func (m *MsgChangeAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *MsgSetBeforeSendHook) 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 *MsgSetBeforeSendHook) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSetBeforeSendHook) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CosmwasmAddress) > 0 { - i -= len(m.CosmwasmAddress) - copy(dAtA[i:], m.CosmwasmAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.CosmwasmAddress))) - i-- - dAtA[i] = 0x1a - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintTx(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x12 - } - if len(m.Sender) > 0 { - i -= len(m.Sender) - copy(dAtA[i:], m.Sender) - i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgSetBeforeSendHookResponse) 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 *MsgSetBeforeSendHookResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSetBeforeSendHookResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - func (m *MsgSetDenomMetadata) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1714,36 +1505,6 @@ func (m *MsgChangeAdminResponse) Size() (n int) { return n } -func (m *MsgSetBeforeSendHook) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Sender) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.CosmwasmAddress) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgSetBeforeSendHookResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - func (m *MsgSetDenomMetadata) Size() (n int) { if m == nil { return 0 @@ -2592,202 +2353,6 @@ func (m *MsgChangeAdminResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgSetBeforeSendHook) 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: MsgSetBeforeSendHook: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSetBeforeSendHook: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sender", 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.Sender = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", 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.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CosmwasmAddress", 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.CosmwasmAddress = 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 *MsgSetBeforeSendHookResponse) 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: MsgSetBeforeSendHookResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSetBeforeSendHookResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *MsgSetDenomMetadata) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0