Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func DeconstructDenom(denom string) (creator string, subdenom string, err error)
- func GetCreatorPrefix(creator string) []byte
- func GetCreatorsPrefix() []byte
- func GetDenomPrefixStore(denom string) []byte
- func GetTokenDenom(creator, subdenom string) (string, error)
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankHooks
- type BankKeeper
- type BlockBeforeSendMsg
- type BlockBeforeSendSudoMsg
- type CommunityPoolKeeper
- type ContractKeeper
- type DenomAuthorityMetadata
- func (*DenomAuthorityMetadata) Descriptor() ([]byte, []int)
- func (this *DenomAuthorityMetadata) Equal(that interface{}) bool
- func (m *DenomAuthorityMetadata) GetAdmin() string
- func (m *DenomAuthorityMetadata) Marshal() (dAtA []byte, err error)
- func (m *DenomAuthorityMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *DenomAuthorityMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DenomAuthorityMetadata) ProtoMessage()
- func (m *DenomAuthorityMetadata) Reset()
- func (m *DenomAuthorityMetadata) Size() (n int)
- func (m *DenomAuthorityMetadata) String() string
- func (m *DenomAuthorityMetadata) Unmarshal(dAtA []byte) error
- func (metadata DenomAuthorityMetadata) Validate() error
- func (m *DenomAuthorityMetadata) XXX_DiscardUnknown()
- func (m *DenomAuthorityMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DenomAuthorityMetadata) XXX_Merge(src proto.Message)
- func (m *DenomAuthorityMetadata) XXX_Size() int
- func (m *DenomAuthorityMetadata) XXX_Unmarshal(b []byte) error
- type GenesisDenom
- func (*GenesisDenom) Descriptor() ([]byte, []int)
- func (this *GenesisDenom) Equal(that interface{}) bool
- func (m *GenesisDenom) GetAuthorityMetadata() DenomAuthorityMetadata
- func (m *GenesisDenom) GetDenom() string
- func (m *GenesisDenom) Marshal() (dAtA []byte, err error)
- func (m *GenesisDenom) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisDenom) ProtoMessage()
- func (m *GenesisDenom) Reset()
- func (m *GenesisDenom) Size() (n int)
- func (m *GenesisDenom) String() string
- func (m *GenesisDenom) Unmarshal(dAtA []byte) error
- func (m *GenesisDenom) XXX_DiscardUnknown()
- func (m *GenesisDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisDenom) XXX_Merge(src proto.Message)
- func (m *GenesisDenom) XXX_Size() int
- func (m *GenesisDenom) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetFactoryDenoms() []GenesisDenom
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgBurn
- func (*MsgBurn) Descriptor() ([]byte, []int)
- func (m *MsgBurn) GetAmount() types.Coin
- func (m *MsgBurn) GetBurnFromAddress() string
- func (m *MsgBurn) GetSender() string
- func (m MsgBurn) GetSignBytes() []byte
- func (m MsgBurn) GetSigners() []sdk.AccAddress
- func (m *MsgBurn) Marshal() (dAtA []byte, err error)
- func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurn) ProtoMessage()
- func (m *MsgBurn) Reset()
- func (m MsgBurn) Route() string
- func (m *MsgBurn) Size() (n int)
- func (m *MsgBurn) String() string
- func (m MsgBurn) Type() string
- func (m *MsgBurn) Unmarshal(dAtA []byte) error
- func (m MsgBurn) ValidateBasic() error
- func (m *MsgBurn) XXX_DiscardUnknown()
- func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurn) XXX_Merge(src proto.Message)
- func (m *MsgBurn) XXX_Size() int
- func (m *MsgBurn) XXX_Unmarshal(b []byte) error
- type MsgBurnResponse
- func (*MsgBurnResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnResponse) ProtoMessage()
- func (m *MsgBurnResponse) Reset()
- func (m *MsgBurnResponse) Size() (n int)
- func (m *MsgBurnResponse) String() string
- func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnResponse) XXX_DiscardUnknown()
- func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnResponse) XXX_Size() int
- func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
- type MsgChangeAdmin
- func (*MsgChangeAdmin) Descriptor() ([]byte, []int)
- func (m *MsgChangeAdmin) GetDenom() string
- func (m *MsgChangeAdmin) GetNewAdmin() string
- func (m *MsgChangeAdmin) GetSender() string
- func (m MsgChangeAdmin) GetSignBytes() []byte
- func (m MsgChangeAdmin) GetSigners() []sdk.AccAddress
- func (m *MsgChangeAdmin) Marshal() (dAtA []byte, err error)
- func (m *MsgChangeAdmin) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgChangeAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgChangeAdmin) ProtoMessage()
- func (m *MsgChangeAdmin) Reset()
- func (m MsgChangeAdmin) Route() string
- func (m *MsgChangeAdmin) Size() (n int)
- func (m *MsgChangeAdmin) String() string
- func (m MsgChangeAdmin) Type() string
- func (m *MsgChangeAdmin) Unmarshal(dAtA []byte) error
- func (m MsgChangeAdmin) ValidateBasic() error
- func (m *MsgChangeAdmin) XXX_DiscardUnknown()
- func (m *MsgChangeAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgChangeAdmin) XXX_Merge(src proto.Message)
- func (m *MsgChangeAdmin) XXX_Size() int
- func (m *MsgChangeAdmin) XXX_Unmarshal(b []byte) error
- type MsgChangeAdminResponse
- func (*MsgChangeAdminResponse) Descriptor() ([]byte, []int)
- func (m *MsgChangeAdminResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgChangeAdminResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgChangeAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgChangeAdminResponse) ProtoMessage()
- func (m *MsgChangeAdminResponse) Reset()
- func (m *MsgChangeAdminResponse) Size() (n int)
- func (m *MsgChangeAdminResponse) String() string
- func (m *MsgChangeAdminResponse) Unmarshal(dAtA []byte) error
- func (m *MsgChangeAdminResponse) XXX_DiscardUnknown()
- func (m *MsgChangeAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgChangeAdminResponse) XXX_Merge(src proto.Message)
- func (m *MsgChangeAdminResponse) XXX_Size() int
- func (m *MsgChangeAdminResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateDenom
- func (*MsgCreateDenom) Descriptor() ([]byte, []int)
- func (m *MsgCreateDenom) GetSender() string
- func (m MsgCreateDenom) GetSignBytes() []byte
- func (m MsgCreateDenom) GetSigners() []sdk.AccAddress
- func (m *MsgCreateDenom) GetSubdenom() string
- func (m *MsgCreateDenom) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDenom) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateDenom) ProtoMessage()
- func (m *MsgCreateDenom) Reset()
- func (m MsgCreateDenom) Route() string
- func (m *MsgCreateDenom) Size() (n int)
- func (m *MsgCreateDenom) String() string
- func (m MsgCreateDenom) Type() string
- func (m *MsgCreateDenom) Unmarshal(dAtA []byte) error
- func (m MsgCreateDenom) ValidateBasic() error
- func (m *MsgCreateDenom) XXX_DiscardUnknown()
- func (m *MsgCreateDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDenom) XXX_Merge(src proto.Message)
- func (m *MsgCreateDenom) XXX_Size() int
- func (m *MsgCreateDenom) XXX_Unmarshal(b []byte) error
- type MsgCreateDenomResponse
- func (*MsgCreateDenomResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateDenomResponse) GetNewTokenDenom() string
- func (m *MsgCreateDenomResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDenomResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateDenomResponse) ProtoMessage()
- func (m *MsgCreateDenomResponse) Reset()
- func (m *MsgCreateDenomResponse) Size() (n int)
- func (m *MsgCreateDenomResponse) String() string
- func (m *MsgCreateDenomResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateDenomResponse) XXX_DiscardUnknown()
- func (m *MsgCreateDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDenomResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateDenomResponse) XXX_Size() int
- func (m *MsgCreateDenomResponse) XXX_Unmarshal(b []byte) error
- type MsgForceTransfer
- func (*MsgForceTransfer) Descriptor() ([]byte, []int)
- func (m *MsgForceTransfer) GetAmount() types.Coin
- func (m *MsgForceTransfer) GetSender() string
- func (m MsgForceTransfer) GetSignBytes() []byte
- func (m MsgForceTransfer) GetSigners() []sdk.AccAddress
- func (m *MsgForceTransfer) GetTransferFromAddress() string
- func (m *MsgForceTransfer) GetTransferToAddress() string
- func (m *MsgForceTransfer) Marshal() (dAtA []byte, err error)
- func (m *MsgForceTransfer) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgForceTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgForceTransfer) ProtoMessage()
- func (m *MsgForceTransfer) Reset()
- func (m MsgForceTransfer) Route() string
- func (m *MsgForceTransfer) Size() (n int)
- func (m *MsgForceTransfer) String() string
- func (m MsgForceTransfer) Type() string
- func (m *MsgForceTransfer) Unmarshal(dAtA []byte) error
- func (m MsgForceTransfer) ValidateBasic() error
- func (m *MsgForceTransfer) XXX_DiscardUnknown()
- func (m *MsgForceTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgForceTransfer) XXX_Merge(src proto.Message)
- func (m *MsgForceTransfer) XXX_Size() int
- func (m *MsgForceTransfer) XXX_Unmarshal(b []byte) error
- type MsgForceTransferResponse
- func (*MsgForceTransferResponse) Descriptor() ([]byte, []int)
- func (m *MsgForceTransferResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgForceTransferResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgForceTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgForceTransferResponse) ProtoMessage()
- func (m *MsgForceTransferResponse) Reset()
- func (m *MsgForceTransferResponse) Size() (n int)
- func (m *MsgForceTransferResponse) String() string
- func (m *MsgForceTransferResponse) Unmarshal(dAtA []byte) error
- func (m *MsgForceTransferResponse) XXX_DiscardUnknown()
- func (m *MsgForceTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgForceTransferResponse) XXX_Merge(src proto.Message)
- func (m *MsgForceTransferResponse) XXX_Size() int
- func (m *MsgForceTransferResponse) XXX_Unmarshal(b []byte) error
- type MsgMint
- func (*MsgMint) Descriptor() ([]byte, []int)
- func (m *MsgMint) GetAmount() types.Coin
- func (m *MsgMint) GetMintToAddress() string
- func (m *MsgMint) GetSender() string
- func (m MsgMint) GetSignBytes() []byte
- func (m MsgMint) GetSigners() []sdk.AccAddress
- func (m *MsgMint) Marshal() (dAtA []byte, err error)
- func (m *MsgMint) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMint) ProtoMessage()
- func (m *MsgMint) Reset()
- func (m MsgMint) Route() string
- func (m *MsgMint) Size() (n int)
- func (m *MsgMint) String() string
- func (m MsgMint) Type() string
- func (m *MsgMint) Unmarshal(dAtA []byte) error
- func (m MsgMint) ValidateBasic() error
- func (m *MsgMint) XXX_DiscardUnknown()
- func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMint) XXX_Merge(src proto.Message)
- func (m *MsgMint) XXX_Size() int
- func (m *MsgMint) XXX_Unmarshal(b []byte) error
- type MsgMintResponse
- func (*MsgMintResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintResponse) ProtoMessage()
- func (m *MsgMintResponse) Reset()
- func (m *MsgMintResponse) Size() (n int)
- func (m *MsgMintResponse) String() string
- func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintResponse) XXX_DiscardUnknown()
- func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintResponse) XXX_Size() int
- func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetBeforeSendHook
- func (*MsgSetBeforeSendHook) Descriptor() ([]byte, []int)
- func (m *MsgSetBeforeSendHook) GetCosmwasmAddress() string
- func (m *MsgSetBeforeSendHook) GetDenom() string
- func (m *MsgSetBeforeSendHook) GetSender() string
- func (m MsgSetBeforeSendHook) GetSignBytes() []byte
- func (m MsgSetBeforeSendHook) GetSigners() []sdk.AccAddress
- func (m *MsgSetBeforeSendHook) Marshal() (dAtA []byte, err error)
- func (m *MsgSetBeforeSendHook) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetBeforeSendHook) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetBeforeSendHook) ProtoMessage()
- func (m *MsgSetBeforeSendHook) Reset()
- func (m MsgSetBeforeSendHook) Route() string
- func (m *MsgSetBeforeSendHook) Size() (n int)
- func (m *MsgSetBeforeSendHook) String() string
- func (m MsgSetBeforeSendHook) Type() string
- func (m *MsgSetBeforeSendHook) Unmarshal(dAtA []byte) error
- func (m MsgSetBeforeSendHook) ValidateBasic() error
- func (m *MsgSetBeforeSendHook) XXX_DiscardUnknown()
- func (m *MsgSetBeforeSendHook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetBeforeSendHook) XXX_Merge(src proto.Message)
- func (m *MsgSetBeforeSendHook) XXX_Size() int
- func (m *MsgSetBeforeSendHook) XXX_Unmarshal(b []byte) error
- type MsgSetBeforeSendHookResponse
- func (*MsgSetBeforeSendHookResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetBeforeSendHookResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetBeforeSendHookResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetBeforeSendHookResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetBeforeSendHookResponse) ProtoMessage()
- func (m *MsgSetBeforeSendHookResponse) Reset()
- func (m *MsgSetBeforeSendHookResponse) Size() (n int)
- func (m *MsgSetBeforeSendHookResponse) String() string
- func (m *MsgSetBeforeSendHookResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetBeforeSendHookResponse) XXX_DiscardUnknown()
- func (m *MsgSetBeforeSendHookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetBeforeSendHookResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetBeforeSendHookResponse) XXX_Size() int
- func (m *MsgSetBeforeSendHookResponse) XXX_Unmarshal(b []byte) error
- type MsgSetDenomMetadata
- func (*MsgSetDenomMetadata) Descriptor() ([]byte, []int)
- func (m *MsgSetDenomMetadata) GetMetadata() types1.Metadata
- func (m *MsgSetDenomMetadata) GetSender() string
- func (m MsgSetDenomMetadata) GetSignBytes() []byte
- func (m MsgSetDenomMetadata) GetSigners() []sdk.AccAddress
- func (m *MsgSetDenomMetadata) Marshal() (dAtA []byte, err error)
- func (m *MsgSetDenomMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetDenomMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetDenomMetadata) ProtoMessage()
- func (m *MsgSetDenomMetadata) Reset()
- func (m MsgSetDenomMetadata) Route() string
- func (m *MsgSetDenomMetadata) Size() (n int)
- func (m *MsgSetDenomMetadata) String() string
- func (m MsgSetDenomMetadata) Type() string
- func (m *MsgSetDenomMetadata) Unmarshal(dAtA []byte) error
- func (m MsgSetDenomMetadata) ValidateBasic() error
- func (m *MsgSetDenomMetadata) XXX_DiscardUnknown()
- func (m *MsgSetDenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetDenomMetadata) XXX_Merge(src proto.Message)
- func (m *MsgSetDenomMetadata) XXX_Size() int
- func (m *MsgSetDenomMetadata) XXX_Unmarshal(b []byte) error
- type MsgSetDenomMetadataResponse
- func (*MsgSetDenomMetadataResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetDenomMetadataResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetDenomMetadataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetDenomMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetDenomMetadataResponse) ProtoMessage()
- func (m *MsgSetDenomMetadataResponse) Reset()
- func (m *MsgSetDenomMetadataResponse) Size() (n int)
- func (m *MsgSetDenomMetadataResponse) String() string
- func (m *MsgSetDenomMetadataResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetDenomMetadataResponse) XXX_DiscardUnknown()
- func (m *MsgSetDenomMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetDenomMetadataResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetDenomMetadataResponse) XXX_Size() int
- func (m *MsgSetDenomMetadataResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDenomCreationFee() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Params) GetDenomCreationGasConsume() uint64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllBeforeSendHooksAddressesRequest
- func (*QueryAllBeforeSendHooksAddressesRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllBeforeSendHooksAddressesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBeforeSendHooksAddressesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBeforeSendHooksAddressesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBeforeSendHooksAddressesRequest) ProtoMessage()
- func (m *QueryAllBeforeSendHooksAddressesRequest) Reset()
- func (m *QueryAllBeforeSendHooksAddressesRequest) Size() (n int)
- func (m *QueryAllBeforeSendHooksAddressesRequest) String() string
- func (m *QueryAllBeforeSendHooksAddressesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllBeforeSendHooksAddressesRequest) XXX_DiscardUnknown()
- func (m *QueryAllBeforeSendHooksAddressesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBeforeSendHooksAddressesRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllBeforeSendHooksAddressesRequest) XXX_Size() int
- func (m *QueryAllBeforeSendHooksAddressesRequest) XXX_Unmarshal(b []byte) error
- type QueryAllBeforeSendHooksAddressesResponse
- func (*QueryAllBeforeSendHooksAddressesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllBeforeSendHooksAddressesResponse) GetBeforeSendHookAddresses() []string
- func (m *QueryAllBeforeSendHooksAddressesResponse) GetDenoms() []string
- func (m *QueryAllBeforeSendHooksAddressesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBeforeSendHooksAddressesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBeforeSendHooksAddressesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBeforeSendHooksAddressesResponse) ProtoMessage()
- func (m *QueryAllBeforeSendHooksAddressesResponse) Reset()
- func (m *QueryAllBeforeSendHooksAddressesResponse) Size() (n int)
- func (m *QueryAllBeforeSendHooksAddressesResponse) String() string
- func (m *QueryAllBeforeSendHooksAddressesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllBeforeSendHooksAddressesResponse) XXX_DiscardUnknown()
- func (m *QueryAllBeforeSendHooksAddressesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBeforeSendHooksAddressesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllBeforeSendHooksAddressesResponse) XXX_Size() int
- func (m *QueryAllBeforeSendHooksAddressesResponse) XXX_Unmarshal(b []byte) error
- type QueryBeforeSendHookAddressRequest
- func (*QueryBeforeSendHookAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryBeforeSendHookAddressRequest) GetDenom() string
- func (m *QueryBeforeSendHookAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBeforeSendHookAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBeforeSendHookAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBeforeSendHookAddressRequest) ProtoMessage()
- func (m *QueryBeforeSendHookAddressRequest) Reset()
- func (m *QueryBeforeSendHookAddressRequest) Size() (n int)
- func (m *QueryBeforeSendHookAddressRequest) String() string
- func (m *QueryBeforeSendHookAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBeforeSendHookAddressRequest) XXX_DiscardUnknown()
- func (m *QueryBeforeSendHookAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBeforeSendHookAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryBeforeSendHookAddressRequest) XXX_Size() int
- func (m *QueryBeforeSendHookAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryBeforeSendHookAddressResponse
- func (*QueryBeforeSendHookAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryBeforeSendHookAddressResponse) GetCosmwasmAddress() string
- func (m *QueryBeforeSendHookAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBeforeSendHookAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBeforeSendHookAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBeforeSendHookAddressResponse) ProtoMessage()
- func (m *QueryBeforeSendHookAddressResponse) Reset()
- func (m *QueryBeforeSendHookAddressResponse) Size() (n int)
- func (m *QueryBeforeSendHookAddressResponse) String() string
- func (m *QueryBeforeSendHookAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBeforeSendHookAddressResponse) XXX_DiscardUnknown()
- func (m *QueryBeforeSendHookAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBeforeSendHookAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryBeforeSendHookAddressResponse) XXX_Size() int
- func (m *QueryBeforeSendHookAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryDenomAuthorityMetadataRequest
- func (*QueryDenomAuthorityMetadataRequest) Descriptor() ([]byte, []int)
- func (m *QueryDenomAuthorityMetadataRequest) GetDenom() string
- func (m *QueryDenomAuthorityMetadataRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDenomAuthorityMetadataRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDenomAuthorityMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDenomAuthorityMetadataRequest) ProtoMessage()
- func (m *QueryDenomAuthorityMetadataRequest) Reset()
- func (m *QueryDenomAuthorityMetadataRequest) Size() (n int)
- func (m *QueryDenomAuthorityMetadataRequest) String() string
- func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDenomAuthorityMetadataRequest) XXX_DiscardUnknown()
- func (m *QueryDenomAuthorityMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDenomAuthorityMetadataRequest) XXX_Merge(src proto.Message)
- func (m *QueryDenomAuthorityMetadataRequest) XXX_Size() int
- func (m *QueryDenomAuthorityMetadataRequest) XXX_Unmarshal(b []byte) error
- type QueryDenomAuthorityMetadataResponse
- func (*QueryDenomAuthorityMetadataResponse) Descriptor() ([]byte, []int)
- func (m *QueryDenomAuthorityMetadataResponse) GetAuthorityMetadata() DenomAuthorityMetadata
- func (m *QueryDenomAuthorityMetadataResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDenomAuthorityMetadataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDenomAuthorityMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDenomAuthorityMetadataResponse) ProtoMessage()
- func (m *QueryDenomAuthorityMetadataResponse) Reset()
- func (m *QueryDenomAuthorityMetadataResponse) Size() (n int)
- func (m *QueryDenomAuthorityMetadataResponse) String() string
- func (m *QueryDenomAuthorityMetadataResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDenomAuthorityMetadataResponse) XXX_DiscardUnknown()
- func (m *QueryDenomAuthorityMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDenomAuthorityMetadataResponse) XXX_Merge(src proto.Message)
- func (m *QueryDenomAuthorityMetadataResponse) XXX_Size() int
- func (m *QueryDenomAuthorityMetadataResponse) XXX_Unmarshal(b []byte) error
- type QueryDenomsFromCreatorRequest
- func (*QueryDenomsFromCreatorRequest) Descriptor() ([]byte, []int)
- func (m *QueryDenomsFromCreatorRequest) GetCreator() string
- func (m *QueryDenomsFromCreatorRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDenomsFromCreatorRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDenomsFromCreatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDenomsFromCreatorRequest) ProtoMessage()
- func (m *QueryDenomsFromCreatorRequest) Reset()
- func (m *QueryDenomsFromCreatorRequest) Size() (n int)
- func (m *QueryDenomsFromCreatorRequest) String() string
- func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDenomsFromCreatorRequest) XXX_DiscardUnknown()
- func (m *QueryDenomsFromCreatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDenomsFromCreatorRequest) XXX_Merge(src proto.Message)
- func (m *QueryDenomsFromCreatorRequest) XXX_Size() int
- func (m *QueryDenomsFromCreatorRequest) XXX_Unmarshal(b []byte) error
- type QueryDenomsFromCreatorResponse
- func (*QueryDenomsFromCreatorResponse) Descriptor() ([]byte, []int)
- func (m *QueryDenomsFromCreatorResponse) GetDenoms() []string
- func (m *QueryDenomsFromCreatorResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDenomsFromCreatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDenomsFromCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDenomsFromCreatorResponse) ProtoMessage()
- func (m *QueryDenomsFromCreatorResponse) Reset()
- func (m *QueryDenomsFromCreatorResponse) Size() (n int)
- func (m *QueryDenomsFromCreatorResponse) String() string
- func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDenomsFromCreatorResponse) XXX_DiscardUnknown()
- func (m *QueryDenomsFromCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDenomsFromCreatorResponse) XXX_Merge(src proto.Message)
- func (m *QueryDenomsFromCreatorResponse) XXX_Size() int
- func (m *QueryDenomsFromCreatorResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type TrackBeforeSendMsg
- type TrackBeforeSendSudoMsg
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
- func (*UnimplementedMsgServer) ChangeAdmin(ctx context.Context, req *MsgChangeAdmin) (*MsgChangeAdminResponse, error)
- func (*UnimplementedMsgServer) CreateDenom(ctx context.Context, req *MsgCreateDenom) (*MsgCreateDenomResponse, error)
- func (*UnimplementedMsgServer) ForceTransfer(ctx context.Context, req *MsgForceTransfer) (*MsgForceTransferResponse, error)
- func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
- func (*UnimplementedMsgServer) SetBeforeSendHook(ctx context.Context, req *MsgSetBeforeSendHook) (*MsgSetBeforeSendHookResponse, error)
- func (*UnimplementedMsgServer) SetDenomMetadata(ctx context.Context, req *MsgSetDenomMetadata) (*MsgSetDenomMetadataResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllBeforeSendHooksAddresses(ctx context.Context, req *QueryAllBeforeSendHooksAddressesRequest) (*QueryAllBeforeSendHooksAddressesResponse, error)
- func (*UnimplementedQueryServer) BeforeSendHookAddress(ctx context.Context, req *QueryBeforeSendHookAddressRequest) (*QueryBeforeSendHookAddressResponse, error)
- func (*UnimplementedQueryServer) DenomAuthorityMetadata(ctx context.Context, req *QueryDenomAuthorityMetadataRequest) (*QueryDenomAuthorityMetadataResponse, error)
- func (*UnimplementedQueryServer) DenomsFromCreator(ctx context.Context, req *QueryDenomsFromCreatorRequest) (*QueryDenomsFromCreatorResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( ModuleDenomPrefix = "factory" // See the TokenFactory readme for a derivation of these. // TL;DR, MaxSubdenomLength + MaxHrpLength = 60 comes from SDK max denom length = 128 // and the structure of tokenfactory denoms. MaxSubdenomLength = 44 MaxHrpLength = 16 // MaxCreatorLength = 59 + MaxHrpLength MaxCreatorLength = 59 + MaxHrpLength )
const ( AttributeAmount = "amount" AttributeCreator = "creator" AttributeSubdenom = "subdenom" AttributeNewTokenDenom = "new_token_denom" AttributeMintToAddress = "mint_to_address" AttributeBurnFromAddress = "burn_from_address" AttributeTransferFromAddress = "transfer_from_address" AttributeTransferToAddress = "transfer_to_address" AttributeDenom = "denom" AttributeNewAdmin = "new_admin" AttributeDenomMetadata = "denom_metadata" AttributeBeforeSendHookAddress = "before_send_hook_address" )
event types
const ( // ModuleName defines the module name ModuleName = "tokenfactory" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_tokenfactory" )
const ( TypeMsgCreateDenom = "create_denom" TypeMsgMint = "tf_mint" TypeMsgBurn = "tf_burn" TypeMsgForceTransfer = "force_transfer" TypeMsgChangeAdmin = "change_admin" TypeMsgSetDenomMetadata = "set_denom_metadata" TypeMsgSetBeforeSendHook = "set_before_send_hook" )
constants
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const KeySeparator = "|"
KeySeparator is used to combine parts of the keys in the store
Variables ¶
var ( ErrInvalidLengthAuthorityMetadata = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuthorityMetadata = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAuthorityMetadata = fmt.Errorf("proto: unexpected end of group") )
var ( ErrDenomExists = errorsmod.Register(ModuleName, 2, "attempting to create a denom that already exists (has bank metadata)") ErrInvalidDenom = errorsmod.Register(ModuleName, 4, "invalid denom") ErrInvalidCreator = errorsmod.Register(ModuleName, 5, "invalid creator") ErrInvalidAuthorityMetadata = errorsmod.Register(ModuleName, 6, "invalid authority metadata") ErrInvalidGenesis = errorsmod.Register(ModuleName, 7, "invalid genesis") ErrSubdenomTooLong = errorsmod.Register(ModuleName, 8, fmt.Sprintf("subdenom too long, max length is %d bytes", MaxSubdenomLength)) ErrCreatorTooLong = errorsmod.Register(ModuleName, 9, fmt.Sprintf("creator too long, max length is %d bytes", MaxCreatorLength)) ErrDenomDoesNotExist = errorsmod.Register(ModuleName, 10, "denom does not exist") ErrBurnFromModuleAccount = errorsmod.Register(ModuleName, 11, "burning from Module Account is not allowed") ErrBeforeSendHookOutOfGas = errorsmod.Register(ModuleName, 12, "gas meter hit maximum limit") )
x/tokenfactory module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( DenomAuthorityMetadataKey = "authoritymetadata" DenomsPrefixKey = "denoms" CreatorPrefixKey = "creator" AdminPrefixKey = "admin" BeforeSendHookAddressPrefixKey = "beforesendhook" )
var ( KeyDenomCreationFee = []byte("DenomCreationFee") KeyDenomCreationGasConsume = []byte("DenomCreationGasConsume") // chosen as an arbitrary large number, less than the max_gas_wanted_per_tx in config. DefaultCreationGasFee = 1_000_000 )
Parameter store keys.
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
BeforeSendHookGasLimit = uint64(500_000)
)
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func DeconstructDenom ¶
DeconstructDenom takes a token denom string and verifies that it is a valid denom of the tokenfactory module, and is of the form `factory/{creator}/{subdenom}` If valid, it returns the creator address and subdenom
func GetCreatorPrefix ¶
GetCreatorsPrefix returns the store prefix where the list of the denoms created by a specific creator are stored
func GetCreatorsPrefix ¶
func GetCreatorsPrefix() []byte
GetCreatorsPrefix returns the store prefix where a list of all creator addresses are stored
func GetDenomPrefixStore ¶
GetDenomPrefixStore returns the store prefix where all the data associated with a specific denom is stored
func GetTokenDenom ¶
GetTokenDenom constructs a denom string for tokens created by tokenfactory based on an input creator address and a subdenom The denom constructed is factory/{creator}/{subdenom}
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
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. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type BankHooks ¶
type BankHooks interface { TrackBeforeSend(ctx sdk.Context, from, to sdk.AccAddress, amount sdk.Coins) // Must be before any send is executed BlockBeforeSend(ctx sdk.Context, from, to sdk.AccAddress, amount sdk.Coins) error // Must be before any send is executed }
BankHooks event hooks
type BankKeeper ¶
type BankKeeper interface { // Methods imported from bank should be defined here GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool) SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata) HasSupply(ctx sdk.Context, denom string) bool SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool }
type BlockBeforeSendMsg ¶
type BlockBeforeSendMsg struct { From string `json:"from"` To string `json:"to"` Amount wasmvmtypes.Coin `json:"amount"` }
type BlockBeforeSendSudoMsg ¶
type BlockBeforeSendSudoMsg struct {
BlockBeforeSend BlockBeforeSendMsg `json:"block_before_send,omitempty"`
}
type CommunityPoolKeeper ¶
type CommunityPoolKeeper interface {
FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}
CommunityPoolKeeper defines the contract needed to be fulfilled for community pool interactions.
type ContractKeeper ¶
type DenomAuthorityMetadata ¶
type DenomAuthorityMetadata struct { // Can be empty for no admin, or a valid osmosis address Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty" yaml:"admin"` }
DenomAuthorityMetadata specifies metadata for addresses that have specific capabilities over a token factory denom. Right now there is only one Admin permission, but is planned to be extended to the future.
func (*DenomAuthorityMetadata) Descriptor ¶
func (*DenomAuthorityMetadata) Descriptor() ([]byte, []int)
func (*DenomAuthorityMetadata) Equal ¶
func (this *DenomAuthorityMetadata) Equal(that interface{}) bool
func (*DenomAuthorityMetadata) GetAdmin ¶
func (m *DenomAuthorityMetadata) GetAdmin() string
func (*DenomAuthorityMetadata) Marshal ¶
func (m *DenomAuthorityMetadata) Marshal() (dAtA []byte, err error)
func (*DenomAuthorityMetadata) MarshalTo ¶
func (m *DenomAuthorityMetadata) MarshalTo(dAtA []byte) (int, error)
func (*DenomAuthorityMetadata) MarshalToSizedBuffer ¶
func (m *DenomAuthorityMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DenomAuthorityMetadata) ProtoMessage ¶
func (*DenomAuthorityMetadata) ProtoMessage()
func (*DenomAuthorityMetadata) Reset ¶
func (m *DenomAuthorityMetadata) Reset()
func (*DenomAuthorityMetadata) Size ¶
func (m *DenomAuthorityMetadata) Size() (n int)
func (*DenomAuthorityMetadata) String ¶
func (m *DenomAuthorityMetadata) String() string
func (*DenomAuthorityMetadata) Unmarshal ¶
func (m *DenomAuthorityMetadata) Unmarshal(dAtA []byte) error
func (DenomAuthorityMetadata) Validate ¶
func (metadata DenomAuthorityMetadata) Validate() error
func (*DenomAuthorityMetadata) XXX_DiscardUnknown ¶
func (m *DenomAuthorityMetadata) XXX_DiscardUnknown()
func (*DenomAuthorityMetadata) XXX_Marshal ¶
func (m *DenomAuthorityMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DenomAuthorityMetadata) XXX_Merge ¶
func (m *DenomAuthorityMetadata) XXX_Merge(src proto.Message)
func (*DenomAuthorityMetadata) XXX_Size ¶
func (m *DenomAuthorityMetadata) XXX_Size() int
func (*DenomAuthorityMetadata) XXX_Unmarshal ¶
func (m *DenomAuthorityMetadata) XXX_Unmarshal(b []byte) error
type GenesisDenom ¶
type GenesisDenom struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` AuthorityMetadata DenomAuthorityMetadata `` /* 128-byte string literal not displayed */ }
GenesisDenom defines a tokenfactory denom that is defined within genesis state. The structure contains DenomAuthorityMetadata which defines the denom's admin.
func (*GenesisDenom) Descriptor ¶
func (*GenesisDenom) Descriptor() ([]byte, []int)
func (*GenesisDenom) Equal ¶
func (this *GenesisDenom) Equal(that interface{}) bool
func (*GenesisDenom) GetAuthorityMetadata ¶
func (m *GenesisDenom) GetAuthorityMetadata() DenomAuthorityMetadata
func (*GenesisDenom) GetDenom ¶
func (m *GenesisDenom) GetDenom() string
func (*GenesisDenom) Marshal ¶
func (m *GenesisDenom) Marshal() (dAtA []byte, err error)
func (*GenesisDenom) MarshalToSizedBuffer ¶
func (m *GenesisDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisDenom) ProtoMessage ¶
func (*GenesisDenom) ProtoMessage()
func (*GenesisDenom) Reset ¶
func (m *GenesisDenom) Reset()
func (*GenesisDenom) Size ¶
func (m *GenesisDenom) Size() (n int)
func (*GenesisDenom) String ¶
func (m *GenesisDenom) String() string
func (*GenesisDenom) Unmarshal ¶
func (m *GenesisDenom) Unmarshal(dAtA []byte) error
func (*GenesisDenom) XXX_DiscardUnknown ¶
func (m *GenesisDenom) XXX_DiscardUnknown()
func (*GenesisDenom) XXX_Marshal ¶
func (m *GenesisDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisDenom) XXX_Merge ¶
func (m *GenesisDenom) XXX_Merge(src proto.Message)
func (*GenesisDenom) XXX_Size ¶
func (m *GenesisDenom) XXX_Size() int
func (*GenesisDenom) XXX_Unmarshal ¶
func (m *GenesisDenom) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // params defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` FactoryDenoms []GenesisDenom `protobuf:"bytes,2,rep,name=factory_denoms,json=factoryDenoms,proto3" json:"factory_denoms" yaml:"factory_denoms"` }
GenesisState defines the tokenfactory module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetFactoryDenoms ¶
func (m *GenesisState) GetFactoryDenoms() []GenesisDenom
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgBurn ¶
type MsgBurn struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount" yaml:"amount"` BurnFromAddress string `protobuf:"bytes,3,opt,name=burnFromAddress,proto3" json:"burnFromAddress,omitempty" yaml:"burn_from_address"` }
MsgBurn is the sdk.Msg type for allowing an admin account to burn a token. Only the admin of the token factory denom has permission to burn unless the denom does not have any admin.
func NewMsgBurn ¶
NewMsgBurn creates a message to burn tokens
func NewMsgBurnFrom ¶
NewMsgBurn creates a message to burn tokens
func (*MsgBurn) Descriptor ¶
func (*MsgBurn) GetBurnFromAddress ¶
func (MsgBurn) GetSignBytes ¶
func (MsgBurn) GetSigners ¶
func (m MsgBurn) GetSigners() []sdk.AccAddress
func (*MsgBurn) MarshalToSizedBuffer ¶
func (*MsgBurn) ProtoMessage ¶
func (*MsgBurn) ProtoMessage()
func (MsgBurn) ValidateBasic ¶
func (*MsgBurn) XXX_DiscardUnknown ¶
func (m *MsgBurn) XXX_DiscardUnknown()
func (*MsgBurn) XXX_Marshal ¶
func (*MsgBurn) XXX_Unmarshal ¶
type MsgBurnResponse ¶
type MsgBurnResponse struct { }
func (*MsgBurnResponse) Descriptor ¶
func (*MsgBurnResponse) Descriptor() ([]byte, []int)
func (*MsgBurnResponse) Marshal ¶
func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnResponse) MarshalToSizedBuffer ¶
func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnResponse) ProtoMessage ¶
func (*MsgBurnResponse) ProtoMessage()
func (*MsgBurnResponse) Reset ¶
func (m *MsgBurnResponse) Reset()
func (*MsgBurnResponse) Size ¶
func (m *MsgBurnResponse) Size() (n int)
func (*MsgBurnResponse) String ¶
func (m *MsgBurnResponse) String() string
func (*MsgBurnResponse) Unmarshal ¶
func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnResponse) XXX_DiscardUnknown ¶
func (m *MsgBurnResponse) XXX_DiscardUnknown()
func (*MsgBurnResponse) XXX_Marshal ¶
func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnResponse) XXX_Merge ¶
func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
func (*MsgBurnResponse) XXX_Size ¶
func (m *MsgBurnResponse) XXX_Size() int
func (*MsgBurnResponse) XXX_Unmarshal ¶
func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
type MsgChangeAdmin ¶
type MsgChangeAdmin 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"` NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty" yaml:"new_admin"` }
MsgChangeAdmin is the sdk.Msg type for allowing an admin account to reassign adminship of a denom to a new account
func NewMsgChangeAdmin ¶
func NewMsgChangeAdmin(sender, denom, newAdmin string) *MsgChangeAdmin
NewMsgChangeAdmin creates a message to burn tokens
func (*MsgChangeAdmin) Descriptor ¶
func (*MsgChangeAdmin) Descriptor() ([]byte, []int)
func (*MsgChangeAdmin) GetDenom ¶
func (m *MsgChangeAdmin) GetDenom() string
func (*MsgChangeAdmin) GetNewAdmin ¶
func (m *MsgChangeAdmin) GetNewAdmin() string
func (*MsgChangeAdmin) GetSender ¶
func (m *MsgChangeAdmin) GetSender() string
func (MsgChangeAdmin) GetSignBytes ¶
func (m MsgChangeAdmin) GetSignBytes() []byte
func (MsgChangeAdmin) GetSigners ¶
func (m MsgChangeAdmin) GetSigners() []sdk.AccAddress
func (*MsgChangeAdmin) Marshal ¶
func (m *MsgChangeAdmin) Marshal() (dAtA []byte, err error)
func (*MsgChangeAdmin) MarshalToSizedBuffer ¶
func (m *MsgChangeAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgChangeAdmin) ProtoMessage ¶
func (*MsgChangeAdmin) ProtoMessage()
func (*MsgChangeAdmin) Reset ¶
func (m *MsgChangeAdmin) Reset()
func (MsgChangeAdmin) Route ¶
func (m MsgChangeAdmin) Route() string
func (*MsgChangeAdmin) Size ¶
func (m *MsgChangeAdmin) Size() (n int)
func (*MsgChangeAdmin) String ¶
func (m *MsgChangeAdmin) String() string
func (MsgChangeAdmin) Type ¶
func (m MsgChangeAdmin) Type() string
func (*MsgChangeAdmin) Unmarshal ¶
func (m *MsgChangeAdmin) Unmarshal(dAtA []byte) error
func (MsgChangeAdmin) ValidateBasic ¶
func (m MsgChangeAdmin) ValidateBasic() error
func (*MsgChangeAdmin) XXX_DiscardUnknown ¶
func (m *MsgChangeAdmin) XXX_DiscardUnknown()
func (*MsgChangeAdmin) XXX_Marshal ¶
func (m *MsgChangeAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgChangeAdmin) XXX_Merge ¶
func (m *MsgChangeAdmin) XXX_Merge(src proto.Message)
func (*MsgChangeAdmin) XXX_Size ¶
func (m *MsgChangeAdmin) XXX_Size() int
func (*MsgChangeAdmin) XXX_Unmarshal ¶
func (m *MsgChangeAdmin) XXX_Unmarshal(b []byte) error
type MsgChangeAdminResponse ¶
type MsgChangeAdminResponse struct { }
MsgChangeAdminResponse defines the response structure for an executed MsgChangeAdmin message.
func (*MsgChangeAdminResponse) Descriptor ¶
func (*MsgChangeAdminResponse) Descriptor() ([]byte, []int)
func (*MsgChangeAdminResponse) Marshal ¶
func (m *MsgChangeAdminResponse) Marshal() (dAtA []byte, err error)
func (*MsgChangeAdminResponse) MarshalTo ¶
func (m *MsgChangeAdminResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgChangeAdminResponse) MarshalToSizedBuffer ¶
func (m *MsgChangeAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgChangeAdminResponse) ProtoMessage ¶
func (*MsgChangeAdminResponse) ProtoMessage()
func (*MsgChangeAdminResponse) Reset ¶
func (m *MsgChangeAdminResponse) Reset()
func (*MsgChangeAdminResponse) Size ¶
func (m *MsgChangeAdminResponse) Size() (n int)
func (*MsgChangeAdminResponse) String ¶
func (m *MsgChangeAdminResponse) String() string
func (*MsgChangeAdminResponse) Unmarshal ¶
func (m *MsgChangeAdminResponse) Unmarshal(dAtA []byte) error
func (*MsgChangeAdminResponse) XXX_DiscardUnknown ¶
func (m *MsgChangeAdminResponse) XXX_DiscardUnknown()
func (*MsgChangeAdminResponse) XXX_Marshal ¶
func (m *MsgChangeAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgChangeAdminResponse) XXX_Merge ¶
func (m *MsgChangeAdminResponse) XXX_Merge(src proto.Message)
func (*MsgChangeAdminResponse) XXX_Size ¶
func (m *MsgChangeAdminResponse) XXX_Size() int
func (*MsgChangeAdminResponse) XXX_Unmarshal ¶
func (m *MsgChangeAdminResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { CreateDenom(ctx context.Context, in *MsgCreateDenom, opts ...grpc.CallOption) (*MsgCreateDenomResponse, error) Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error) 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) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateDenom ¶
type MsgCreateDenom struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` // subdenom can be up to 44 "alphanumeric" characters long. Subdenom string `protobuf:"bytes,2,opt,name=subdenom,proto3" json:"subdenom,omitempty" yaml:"subdenom"` }
MsgCreateDenom defines the message structure for the CreateDenom gRPC service method. It allows an account to create a new denom. It requires a sender address and a sub denomination. The (sender_address, sub_denomination) tuple must be unique and cannot be re-used.
The resulting denom created is defined as <factory/{creatorAddress}/{subdenom}>. The resulting denom's admin is originally set to be the creator, but this can be changed later. The token denom does not indicate the current admin.
func NewMsgCreateDenom ¶
func NewMsgCreateDenom(sender, subdenom string) *MsgCreateDenom
NewMsgCreateDenom creates a msg to create a new denom
func (*MsgCreateDenom) Descriptor ¶
func (*MsgCreateDenom) Descriptor() ([]byte, []int)
func (*MsgCreateDenom) GetSender ¶
func (m *MsgCreateDenom) GetSender() string
func (MsgCreateDenom) GetSignBytes ¶
func (m MsgCreateDenom) GetSignBytes() []byte
func (MsgCreateDenom) GetSigners ¶
func (m MsgCreateDenom) GetSigners() []sdk.AccAddress
func (*MsgCreateDenom) GetSubdenom ¶
func (m *MsgCreateDenom) GetSubdenom() string
func (*MsgCreateDenom) Marshal ¶
func (m *MsgCreateDenom) Marshal() (dAtA []byte, err error)
func (*MsgCreateDenom) MarshalToSizedBuffer ¶
func (m *MsgCreateDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateDenom) ProtoMessage ¶
func (*MsgCreateDenom) ProtoMessage()
func (*MsgCreateDenom) Reset ¶
func (m *MsgCreateDenom) Reset()
func (MsgCreateDenom) Route ¶
func (m MsgCreateDenom) Route() string
func (*MsgCreateDenom) Size ¶
func (m *MsgCreateDenom) Size() (n int)
func (*MsgCreateDenom) String ¶
func (m *MsgCreateDenom) String() string
func (MsgCreateDenom) Type ¶
func (m MsgCreateDenom) Type() string
func (*MsgCreateDenom) Unmarshal ¶
func (m *MsgCreateDenom) Unmarshal(dAtA []byte) error
func (MsgCreateDenom) ValidateBasic ¶
func (m MsgCreateDenom) ValidateBasic() error
func (*MsgCreateDenom) XXX_DiscardUnknown ¶
func (m *MsgCreateDenom) XXX_DiscardUnknown()
func (*MsgCreateDenom) XXX_Marshal ¶
func (m *MsgCreateDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateDenom) XXX_Merge ¶
func (m *MsgCreateDenom) XXX_Merge(src proto.Message)
func (*MsgCreateDenom) XXX_Size ¶
func (m *MsgCreateDenom) XXX_Size() int
func (*MsgCreateDenom) XXX_Unmarshal ¶
func (m *MsgCreateDenom) XXX_Unmarshal(b []byte) error
type MsgCreateDenomResponse ¶
type MsgCreateDenomResponse struct {
NewTokenDenom string `protobuf:"bytes,1,opt,name=new_token_denom,json=newTokenDenom,proto3" json:"new_token_denom,omitempty" yaml:"new_token_denom"`
}
MsgCreateDenomResponse is the return value of MsgCreateDenom It returns the full string of the newly created denom
func (*MsgCreateDenomResponse) Descriptor ¶
func (*MsgCreateDenomResponse) Descriptor() ([]byte, []int)
func (*MsgCreateDenomResponse) GetNewTokenDenom ¶
func (m *MsgCreateDenomResponse) GetNewTokenDenom() string
func (*MsgCreateDenomResponse) Marshal ¶
func (m *MsgCreateDenomResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateDenomResponse) MarshalTo ¶
func (m *MsgCreateDenomResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateDenomResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateDenomResponse) ProtoMessage ¶
func (*MsgCreateDenomResponse) ProtoMessage()
func (*MsgCreateDenomResponse) Reset ¶
func (m *MsgCreateDenomResponse) Reset()
func (*MsgCreateDenomResponse) Size ¶
func (m *MsgCreateDenomResponse) Size() (n int)
func (*MsgCreateDenomResponse) String ¶
func (m *MsgCreateDenomResponse) String() string
func (*MsgCreateDenomResponse) Unmarshal ¶
func (m *MsgCreateDenomResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateDenomResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateDenomResponse) XXX_DiscardUnknown()
func (*MsgCreateDenomResponse) XXX_Marshal ¶
func (m *MsgCreateDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateDenomResponse) XXX_Merge ¶
func (m *MsgCreateDenomResponse) XXX_Merge(src proto.Message)
func (*MsgCreateDenomResponse) XXX_Size ¶
func (m *MsgCreateDenomResponse) XXX_Size() int
func (*MsgCreateDenomResponse) XXX_Unmarshal ¶
func (m *MsgCreateDenomResponse) XXX_Unmarshal(b []byte) error
type MsgForceTransfer ¶
type MsgForceTransfer struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount" yaml:"amount"` TransferFromAddress string `protobuf:"bytes,3,opt,name=transferFromAddress,proto3" json:"transferFromAddress,omitempty" yaml:"transfer_from_address"` TransferToAddress string `protobuf:"bytes,4,opt,name=transferToAddress,proto3" json:"transferToAddress,omitempty" yaml:"transfer_to_address"` }
func NewMsgForceTransfer ¶
func NewMsgForceTransfer(sender string, amount sdk.Coin, fromAddr, toAddr string) *MsgForceTransfer
NewMsgForceTransfer creates a transfer funds from one account to another
func (*MsgForceTransfer) Descriptor ¶
func (*MsgForceTransfer) Descriptor() ([]byte, []int)
func (*MsgForceTransfer) GetAmount ¶
func (m *MsgForceTransfer) GetAmount() types.Coin
func (*MsgForceTransfer) GetSender ¶
func (m *MsgForceTransfer) GetSender() string
func (MsgForceTransfer) GetSignBytes ¶
func (m MsgForceTransfer) GetSignBytes() []byte
func (MsgForceTransfer) GetSigners ¶
func (m MsgForceTransfer) GetSigners() []sdk.AccAddress
func (*MsgForceTransfer) GetTransferFromAddress ¶
func (m *MsgForceTransfer) GetTransferFromAddress() string
func (*MsgForceTransfer) GetTransferToAddress ¶
func (m *MsgForceTransfer) GetTransferToAddress() string
func (*MsgForceTransfer) Marshal ¶
func (m *MsgForceTransfer) Marshal() (dAtA []byte, err error)
func (*MsgForceTransfer) MarshalToSizedBuffer ¶
func (m *MsgForceTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgForceTransfer) ProtoMessage ¶
func (*MsgForceTransfer) ProtoMessage()
func (*MsgForceTransfer) Reset ¶
func (m *MsgForceTransfer) Reset()
func (MsgForceTransfer) Route ¶
func (m MsgForceTransfer) Route() string
func (*MsgForceTransfer) Size ¶
func (m *MsgForceTransfer) Size() (n int)
func (*MsgForceTransfer) String ¶
func (m *MsgForceTransfer) String() string
func (MsgForceTransfer) Type ¶
func (m MsgForceTransfer) Type() string
func (*MsgForceTransfer) Unmarshal ¶
func (m *MsgForceTransfer) Unmarshal(dAtA []byte) error
func (MsgForceTransfer) ValidateBasic ¶
func (m MsgForceTransfer) ValidateBasic() error
func (*MsgForceTransfer) XXX_DiscardUnknown ¶
func (m *MsgForceTransfer) XXX_DiscardUnknown()
func (*MsgForceTransfer) XXX_Marshal ¶
func (m *MsgForceTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgForceTransfer) XXX_Merge ¶
func (m *MsgForceTransfer) XXX_Merge(src proto.Message)
func (*MsgForceTransfer) XXX_Size ¶
func (m *MsgForceTransfer) XXX_Size() int
func (*MsgForceTransfer) XXX_Unmarshal ¶
func (m *MsgForceTransfer) XXX_Unmarshal(b []byte) error
type MsgForceTransferResponse ¶
type MsgForceTransferResponse struct { }
func (*MsgForceTransferResponse) Descriptor ¶
func (*MsgForceTransferResponse) Descriptor() ([]byte, []int)
func (*MsgForceTransferResponse) Marshal ¶
func (m *MsgForceTransferResponse) Marshal() (dAtA []byte, err error)
func (*MsgForceTransferResponse) MarshalTo ¶
func (m *MsgForceTransferResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgForceTransferResponse) MarshalToSizedBuffer ¶
func (m *MsgForceTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgForceTransferResponse) ProtoMessage ¶
func (*MsgForceTransferResponse) ProtoMessage()
func (*MsgForceTransferResponse) Reset ¶
func (m *MsgForceTransferResponse) Reset()
func (*MsgForceTransferResponse) Size ¶
func (m *MsgForceTransferResponse) Size() (n int)
func (*MsgForceTransferResponse) String ¶
func (m *MsgForceTransferResponse) String() string
func (*MsgForceTransferResponse) Unmarshal ¶
func (m *MsgForceTransferResponse) Unmarshal(dAtA []byte) error
func (*MsgForceTransferResponse) XXX_DiscardUnknown ¶
func (m *MsgForceTransferResponse) XXX_DiscardUnknown()
func (*MsgForceTransferResponse) XXX_Marshal ¶
func (m *MsgForceTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgForceTransferResponse) XXX_Merge ¶
func (m *MsgForceTransferResponse) XXX_Merge(src proto.Message)
func (*MsgForceTransferResponse) XXX_Size ¶
func (m *MsgForceTransferResponse) XXX_Size() int
func (*MsgForceTransferResponse) XXX_Unmarshal ¶
func (m *MsgForceTransferResponse) XXX_Unmarshal(b []byte) error
type MsgMint ¶
type MsgMint struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount" yaml:"amount"` MintToAddress string `protobuf:"bytes,3,opt,name=mintToAddress,proto3" json:"mintToAddress,omitempty" yaml:"mint_to_address"` }
MsgMint is the sdk.Msg type for allowing an admin account to mint more of a token. Only the admin of the token factory denom has permission to mint unless the denom does not have any admin.
func NewMsgMint ¶
NewMsgMint creates a message to mint tokens
func NewMsgMintTo ¶
func (*MsgMint) Descriptor ¶
func (*MsgMint) GetMintToAddress ¶
func (MsgMint) GetSignBytes ¶
func (MsgMint) GetSigners ¶
func (m MsgMint) GetSigners() []sdk.AccAddress
func (*MsgMint) MarshalToSizedBuffer ¶
func (*MsgMint) ProtoMessage ¶
func (*MsgMint) ProtoMessage()
func (MsgMint) ValidateBasic ¶
func (*MsgMint) XXX_DiscardUnknown ¶
func (m *MsgMint) XXX_DiscardUnknown()
func (*MsgMint) XXX_Marshal ¶
func (*MsgMint) XXX_Unmarshal ¶
type MsgMintResponse ¶
type MsgMintResponse struct { }
func (*MsgMintResponse) Descriptor ¶
func (*MsgMintResponse) Descriptor() ([]byte, []int)
func (*MsgMintResponse) Marshal ¶
func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintResponse) MarshalToSizedBuffer ¶
func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintResponse) ProtoMessage ¶
func (*MsgMintResponse) ProtoMessage()
func (*MsgMintResponse) Reset ¶
func (m *MsgMintResponse) Reset()
func (*MsgMintResponse) Size ¶
func (m *MsgMintResponse) Size() (n int)
func (*MsgMintResponse) String ¶
func (m *MsgMintResponse) String() string
func (*MsgMintResponse) Unmarshal ¶
func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
func (*MsgMintResponse) XXX_DiscardUnknown ¶
func (m *MsgMintResponse) XXX_DiscardUnknown()
func (*MsgMintResponse) XXX_Marshal ¶
func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintResponse) XXX_Merge ¶
func (m *MsgMintResponse) XXX_Merge(src proto.Message)
func (*MsgMintResponse) XXX_Size ¶
func (m *MsgMintResponse) XXX_Size() int
func (*MsgMintResponse) XXX_Unmarshal ¶
func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreateDenom(context.Context, *MsgCreateDenom) (*MsgCreateDenomResponse, error) Mint(context.Context, *MsgMint) (*MsgMintResponse, error) 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) }
MsgServer is the server API for Msg service.
type MsgSetBeforeSendHook ¶
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 `` /* 130-byte string literal not displayed */ }
MsgSetBeforeSendHook is the sdk.Msg type for allowing an admin account to assign a CosmWasm contract to call with a BeforeSend hook
func NewMsgSetBeforeSendHook ¶
func NewMsgSetBeforeSendHook(sender string, denom string, cosmwasmAddress string) *MsgSetBeforeSendHook
NewMsgSetBeforeSendHook creates a message to set a new before send hook
func (*MsgSetBeforeSendHook) Descriptor ¶
func (*MsgSetBeforeSendHook) Descriptor() ([]byte, []int)
func (*MsgSetBeforeSendHook) GetCosmwasmAddress ¶
func (m *MsgSetBeforeSendHook) GetCosmwasmAddress() string
func (*MsgSetBeforeSendHook) GetDenom ¶
func (m *MsgSetBeforeSendHook) GetDenom() string
func (*MsgSetBeforeSendHook) GetSender ¶
func (m *MsgSetBeforeSendHook) GetSender() string
func (MsgSetBeforeSendHook) GetSignBytes ¶
func (m MsgSetBeforeSendHook) GetSignBytes() []byte
func (MsgSetBeforeSendHook) GetSigners ¶
func (m MsgSetBeforeSendHook) GetSigners() []sdk.AccAddress
func (*MsgSetBeforeSendHook) Marshal ¶
func (m *MsgSetBeforeSendHook) Marshal() (dAtA []byte, err error)
func (*MsgSetBeforeSendHook) MarshalTo ¶
func (m *MsgSetBeforeSendHook) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetBeforeSendHook) MarshalToSizedBuffer ¶
func (m *MsgSetBeforeSendHook) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetBeforeSendHook) ProtoMessage ¶
func (*MsgSetBeforeSendHook) ProtoMessage()
func (*MsgSetBeforeSendHook) Reset ¶
func (m *MsgSetBeforeSendHook) Reset()
func (MsgSetBeforeSendHook) Route ¶
func (m MsgSetBeforeSendHook) Route() string
func (*MsgSetBeforeSendHook) Size ¶
func (m *MsgSetBeforeSendHook) Size() (n int)
func (*MsgSetBeforeSendHook) String ¶
func (m *MsgSetBeforeSendHook) String() string
func (MsgSetBeforeSendHook) Type ¶
func (m MsgSetBeforeSendHook) Type() string
func (*MsgSetBeforeSendHook) Unmarshal ¶
func (m *MsgSetBeforeSendHook) Unmarshal(dAtA []byte) error
func (MsgSetBeforeSendHook) ValidateBasic ¶
func (m MsgSetBeforeSendHook) ValidateBasic() error
func (*MsgSetBeforeSendHook) XXX_DiscardUnknown ¶
func (m *MsgSetBeforeSendHook) XXX_DiscardUnknown()
func (*MsgSetBeforeSendHook) XXX_Marshal ¶
func (m *MsgSetBeforeSendHook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetBeforeSendHook) XXX_Merge ¶
func (m *MsgSetBeforeSendHook) XXX_Merge(src proto.Message)
func (*MsgSetBeforeSendHook) XXX_Size ¶
func (m *MsgSetBeforeSendHook) XXX_Size() int
func (*MsgSetBeforeSendHook) XXX_Unmarshal ¶
func (m *MsgSetBeforeSendHook) XXX_Unmarshal(b []byte) error
type MsgSetBeforeSendHookResponse ¶
type MsgSetBeforeSendHookResponse struct { }
MsgSetBeforeSendHookResponse defines the response structure for an executed MsgSetBeforeSendHook message.
func (*MsgSetBeforeSendHookResponse) Descriptor ¶
func (*MsgSetBeforeSendHookResponse) Descriptor() ([]byte, []int)
func (*MsgSetBeforeSendHookResponse) Marshal ¶
func (m *MsgSetBeforeSendHookResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetBeforeSendHookResponse) MarshalTo ¶
func (m *MsgSetBeforeSendHookResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetBeforeSendHookResponse) MarshalToSizedBuffer ¶
func (m *MsgSetBeforeSendHookResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetBeforeSendHookResponse) ProtoMessage ¶
func (*MsgSetBeforeSendHookResponse) ProtoMessage()
func (*MsgSetBeforeSendHookResponse) Reset ¶
func (m *MsgSetBeforeSendHookResponse) Reset()
func (*MsgSetBeforeSendHookResponse) Size ¶
func (m *MsgSetBeforeSendHookResponse) Size() (n int)
func (*MsgSetBeforeSendHookResponse) String ¶
func (m *MsgSetBeforeSendHookResponse) String() string
func (*MsgSetBeforeSendHookResponse) Unmarshal ¶
func (m *MsgSetBeforeSendHookResponse) Unmarshal(dAtA []byte) error
func (*MsgSetBeforeSendHookResponse) XXX_DiscardUnknown ¶
func (m *MsgSetBeforeSendHookResponse) XXX_DiscardUnknown()
func (*MsgSetBeforeSendHookResponse) XXX_Marshal ¶
func (m *MsgSetBeforeSendHookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetBeforeSendHookResponse) XXX_Merge ¶
func (m *MsgSetBeforeSendHookResponse) XXX_Merge(src proto.Message)
func (*MsgSetBeforeSendHookResponse) XXX_Size ¶
func (m *MsgSetBeforeSendHookResponse) XXX_Size() int
func (*MsgSetBeforeSendHookResponse) XXX_Unmarshal ¶
func (m *MsgSetBeforeSendHookResponse) XXX_Unmarshal(b []byte) error
type MsgSetDenomMetadata ¶
type MsgSetDenomMetadata struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` Metadata types1.Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata" yaml:"metadata"` }
MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set the denom's bank metadata
func NewMsgSetDenomMetadata ¶
func NewMsgSetDenomMetadata(sender string, metadata banktypes.Metadata) *MsgSetDenomMetadata
NewMsgChangeAdmin creates a message to burn tokens
func (*MsgSetDenomMetadata) Descriptor ¶
func (*MsgSetDenomMetadata) Descriptor() ([]byte, []int)
func (*MsgSetDenomMetadata) GetMetadata ¶
func (m *MsgSetDenomMetadata) GetMetadata() types1.Metadata
func (*MsgSetDenomMetadata) GetSender ¶
func (m *MsgSetDenomMetadata) GetSender() string
func (MsgSetDenomMetadata) GetSignBytes ¶
func (m MsgSetDenomMetadata) GetSignBytes() []byte
func (MsgSetDenomMetadata) GetSigners ¶
func (m MsgSetDenomMetadata) GetSigners() []sdk.AccAddress
func (*MsgSetDenomMetadata) Marshal ¶
func (m *MsgSetDenomMetadata) Marshal() (dAtA []byte, err error)
func (*MsgSetDenomMetadata) MarshalTo ¶
func (m *MsgSetDenomMetadata) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetDenomMetadata) MarshalToSizedBuffer ¶
func (m *MsgSetDenomMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetDenomMetadata) ProtoMessage ¶
func (*MsgSetDenomMetadata) ProtoMessage()
func (*MsgSetDenomMetadata) Reset ¶
func (m *MsgSetDenomMetadata) Reset()
func (MsgSetDenomMetadata) Route ¶
func (m MsgSetDenomMetadata) Route() string
func (*MsgSetDenomMetadata) Size ¶
func (m *MsgSetDenomMetadata) Size() (n int)
func (*MsgSetDenomMetadata) String ¶
func (m *MsgSetDenomMetadata) String() string
func (MsgSetDenomMetadata) Type ¶
func (m MsgSetDenomMetadata) Type() string
func (*MsgSetDenomMetadata) Unmarshal ¶
func (m *MsgSetDenomMetadata) Unmarshal(dAtA []byte) error
func (MsgSetDenomMetadata) ValidateBasic ¶
func (m MsgSetDenomMetadata) ValidateBasic() error
func (*MsgSetDenomMetadata) XXX_DiscardUnknown ¶
func (m *MsgSetDenomMetadata) XXX_DiscardUnknown()
func (*MsgSetDenomMetadata) XXX_Marshal ¶
func (m *MsgSetDenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetDenomMetadata) XXX_Merge ¶
func (m *MsgSetDenomMetadata) XXX_Merge(src proto.Message)
func (*MsgSetDenomMetadata) XXX_Size ¶
func (m *MsgSetDenomMetadata) XXX_Size() int
func (*MsgSetDenomMetadata) XXX_Unmarshal ¶
func (m *MsgSetDenomMetadata) XXX_Unmarshal(b []byte) error
type MsgSetDenomMetadataResponse ¶
type MsgSetDenomMetadataResponse struct { }
MsgSetDenomMetadataResponse defines the response structure for an executed MsgSetDenomMetadata message.
func (*MsgSetDenomMetadataResponse) Descriptor ¶
func (*MsgSetDenomMetadataResponse) Descriptor() ([]byte, []int)
func (*MsgSetDenomMetadataResponse) Marshal ¶
func (m *MsgSetDenomMetadataResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetDenomMetadataResponse) MarshalTo ¶
func (m *MsgSetDenomMetadataResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetDenomMetadataResponse) MarshalToSizedBuffer ¶
func (m *MsgSetDenomMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetDenomMetadataResponse) ProtoMessage ¶
func (*MsgSetDenomMetadataResponse) ProtoMessage()
func (*MsgSetDenomMetadataResponse) Reset ¶
func (m *MsgSetDenomMetadataResponse) Reset()
func (*MsgSetDenomMetadataResponse) Size ¶
func (m *MsgSetDenomMetadataResponse) Size() (n int)
func (*MsgSetDenomMetadataResponse) String ¶
func (m *MsgSetDenomMetadataResponse) String() string
func (*MsgSetDenomMetadataResponse) Unmarshal ¶
func (m *MsgSetDenomMetadataResponse) Unmarshal(dAtA []byte) error
func (*MsgSetDenomMetadataResponse) XXX_DiscardUnknown ¶
func (m *MsgSetDenomMetadataResponse) XXX_DiscardUnknown()
func (*MsgSetDenomMetadataResponse) XXX_Marshal ¶
func (m *MsgSetDenomMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetDenomMetadataResponse) XXX_Merge ¶
func (m *MsgSetDenomMetadataResponse) XXX_Merge(src proto.Message)
func (*MsgSetDenomMetadataResponse) XXX_Size ¶
func (m *MsgSetDenomMetadataResponse) XXX_Size() int
func (*MsgSetDenomMetadataResponse) XXX_Unmarshal ¶
func (m *MsgSetDenomMetadataResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // DenomCreationFee defines the fee to be charged on the creation of a new // denom. The fee is drawn from the MsgCreateDenom's sender account, and // transferred to the community pool. DenomCreationFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 181-byte string literal not displayed */ // DenomCreationGasConsume defines the gas cost for creating a new denom. // This is intended as a spam deterrence mechanism. // // See: https://github.com/CosmWasm/token-factory/issues/11 DenomCreationGasConsume uint64 `` /* 169-byte string literal not displayed */ }
Params defines the parameters for the tokenfactory module.
func (*Params) Descriptor ¶
func (*Params) GetDenomCreationFee ¶
func (m *Params) GetDenomCreationFee() github_com_cosmos_cosmos_sdk_types.Coins
func (*Params) GetDenomCreationGasConsume ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
Implements params.ParamSet.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllBeforeSendHooksAddressesRequest ¶
type QueryAllBeforeSendHooksAddressesRequest struct { }
func (*QueryAllBeforeSendHooksAddressesRequest) Descriptor ¶
func (*QueryAllBeforeSendHooksAddressesRequest) Descriptor() ([]byte, []int)
func (*QueryAllBeforeSendHooksAddressesRequest) Marshal ¶
func (m *QueryAllBeforeSendHooksAddressesRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllBeforeSendHooksAddressesRequest) MarshalTo ¶
func (m *QueryAllBeforeSendHooksAddressesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllBeforeSendHooksAddressesRequest) MarshalToSizedBuffer ¶
func (m *QueryAllBeforeSendHooksAddressesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllBeforeSendHooksAddressesRequest) ProtoMessage ¶
func (*QueryAllBeforeSendHooksAddressesRequest) ProtoMessage()
func (*QueryAllBeforeSendHooksAddressesRequest) Reset ¶
func (m *QueryAllBeforeSendHooksAddressesRequest) Reset()
func (*QueryAllBeforeSendHooksAddressesRequest) Size ¶
func (m *QueryAllBeforeSendHooksAddressesRequest) Size() (n int)
func (*QueryAllBeforeSendHooksAddressesRequest) String ¶
func (m *QueryAllBeforeSendHooksAddressesRequest) String() string
func (*QueryAllBeforeSendHooksAddressesRequest) Unmarshal ¶
func (m *QueryAllBeforeSendHooksAddressesRequest) Unmarshal(dAtA []byte) error
func (*QueryAllBeforeSendHooksAddressesRequest) XXX_DiscardUnknown ¶
func (m *QueryAllBeforeSendHooksAddressesRequest) XXX_DiscardUnknown()
func (*QueryAllBeforeSendHooksAddressesRequest) XXX_Marshal ¶
func (m *QueryAllBeforeSendHooksAddressesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllBeforeSendHooksAddressesRequest) XXX_Merge ¶
func (m *QueryAllBeforeSendHooksAddressesRequest) XXX_Merge(src proto.Message)
func (*QueryAllBeforeSendHooksAddressesRequest) XXX_Size ¶
func (m *QueryAllBeforeSendHooksAddressesRequest) XXX_Size() int
func (*QueryAllBeforeSendHooksAddressesRequest) XXX_Unmarshal ¶
func (m *QueryAllBeforeSendHooksAddressesRequest) XXX_Unmarshal(b []byte) error
type QueryAllBeforeSendHooksAddressesResponse ¶
type QueryAllBeforeSendHooksAddressesResponse struct { Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty" yaml:"denoms"` BeforeSendHookAddresses []string `` /* 163-byte string literal not displayed */ }
QueryAllBeforeSendHooksAddressesResponse defines the response structure for the AllBeforeSendHooksAddresses gRPC query.
func (*QueryAllBeforeSendHooksAddressesResponse) Descriptor ¶
func (*QueryAllBeforeSendHooksAddressesResponse) Descriptor() ([]byte, []int)
func (*QueryAllBeforeSendHooksAddressesResponse) GetBeforeSendHookAddresses ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) GetBeforeSendHookAddresses() []string
func (*QueryAllBeforeSendHooksAddressesResponse) GetDenoms ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) GetDenoms() []string
func (*QueryAllBeforeSendHooksAddressesResponse) Marshal ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllBeforeSendHooksAddressesResponse) MarshalTo ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllBeforeSendHooksAddressesResponse) MarshalToSizedBuffer ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllBeforeSendHooksAddressesResponse) ProtoMessage ¶
func (*QueryAllBeforeSendHooksAddressesResponse) ProtoMessage()
func (*QueryAllBeforeSendHooksAddressesResponse) Reset ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) Reset()
func (*QueryAllBeforeSendHooksAddressesResponse) Size ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) Size() (n int)
func (*QueryAllBeforeSendHooksAddressesResponse) String ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) String() string
func (*QueryAllBeforeSendHooksAddressesResponse) Unmarshal ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) Unmarshal(dAtA []byte) error
func (*QueryAllBeforeSendHooksAddressesResponse) XXX_DiscardUnknown ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) XXX_DiscardUnknown()
func (*QueryAllBeforeSendHooksAddressesResponse) XXX_Marshal ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllBeforeSendHooksAddressesResponse) XXX_Merge ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) XXX_Merge(src proto.Message)
func (*QueryAllBeforeSendHooksAddressesResponse) XXX_Size ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) XXX_Size() int
func (*QueryAllBeforeSendHooksAddressesResponse) XXX_Unmarshal ¶
func (m *QueryAllBeforeSendHooksAddressesResponse) XXX_Unmarshal(b []byte) error
type QueryBeforeSendHookAddressRequest ¶
type QueryBeforeSendHookAddressRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
}
func (*QueryBeforeSendHookAddressRequest) Descriptor ¶
func (*QueryBeforeSendHookAddressRequest) Descriptor() ([]byte, []int)
func (*QueryBeforeSendHookAddressRequest) GetDenom ¶
func (m *QueryBeforeSendHookAddressRequest) GetDenom() string
func (*QueryBeforeSendHookAddressRequest) Marshal ¶
func (m *QueryBeforeSendHookAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryBeforeSendHookAddressRequest) MarshalTo ¶
func (m *QueryBeforeSendHookAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBeforeSendHookAddressRequest) MarshalToSizedBuffer ¶
func (m *QueryBeforeSendHookAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBeforeSendHookAddressRequest) ProtoMessage ¶
func (*QueryBeforeSendHookAddressRequest) ProtoMessage()
func (*QueryBeforeSendHookAddressRequest) Reset ¶
func (m *QueryBeforeSendHookAddressRequest) Reset()
func (*QueryBeforeSendHookAddressRequest) Size ¶
func (m *QueryBeforeSendHookAddressRequest) Size() (n int)
func (*QueryBeforeSendHookAddressRequest) String ¶
func (m *QueryBeforeSendHookAddressRequest) String() string
func (*QueryBeforeSendHookAddressRequest) Unmarshal ¶
func (m *QueryBeforeSendHookAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryBeforeSendHookAddressRequest) XXX_DiscardUnknown ¶
func (m *QueryBeforeSendHookAddressRequest) XXX_DiscardUnknown()
func (*QueryBeforeSendHookAddressRequest) XXX_Marshal ¶
func (m *QueryBeforeSendHookAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBeforeSendHookAddressRequest) XXX_Merge ¶
func (m *QueryBeforeSendHookAddressRequest) XXX_Merge(src proto.Message)
func (*QueryBeforeSendHookAddressRequest) XXX_Size ¶
func (m *QueryBeforeSendHookAddressRequest) XXX_Size() int
func (*QueryBeforeSendHookAddressRequest) XXX_Unmarshal ¶
func (m *QueryBeforeSendHookAddressRequest) XXX_Unmarshal(b []byte) error
type QueryBeforeSendHookAddressResponse ¶
type QueryBeforeSendHookAddressResponse struct {
CosmwasmAddress string `` /* 130-byte string literal not displayed */
}
QueryBeforeSendHookAddressResponse defines the response structure for the DenomBeforeSendHook gRPC query.
func (*QueryBeforeSendHookAddressResponse) Descriptor ¶
func (*QueryBeforeSendHookAddressResponse) Descriptor() ([]byte, []int)
func (*QueryBeforeSendHookAddressResponse) GetCosmwasmAddress ¶
func (m *QueryBeforeSendHookAddressResponse) GetCosmwasmAddress() string
func (*QueryBeforeSendHookAddressResponse) Marshal ¶
func (m *QueryBeforeSendHookAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryBeforeSendHookAddressResponse) MarshalTo ¶
func (m *QueryBeforeSendHookAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBeforeSendHookAddressResponse) MarshalToSizedBuffer ¶
func (m *QueryBeforeSendHookAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBeforeSendHookAddressResponse) ProtoMessage ¶
func (*QueryBeforeSendHookAddressResponse) ProtoMessage()
func (*QueryBeforeSendHookAddressResponse) Reset ¶
func (m *QueryBeforeSendHookAddressResponse) Reset()
func (*QueryBeforeSendHookAddressResponse) Size ¶
func (m *QueryBeforeSendHookAddressResponse) Size() (n int)
func (*QueryBeforeSendHookAddressResponse) String ¶
func (m *QueryBeforeSendHookAddressResponse) String() string
func (*QueryBeforeSendHookAddressResponse) Unmarshal ¶
func (m *QueryBeforeSendHookAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryBeforeSendHookAddressResponse) XXX_DiscardUnknown ¶
func (m *QueryBeforeSendHookAddressResponse) XXX_DiscardUnknown()
func (*QueryBeforeSendHookAddressResponse) XXX_Marshal ¶
func (m *QueryBeforeSendHookAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBeforeSendHookAddressResponse) XXX_Merge ¶
func (m *QueryBeforeSendHookAddressResponse) XXX_Merge(src proto.Message)
func (*QueryBeforeSendHookAddressResponse) XXX_Size ¶
func (m *QueryBeforeSendHookAddressResponse) XXX_Size() int
func (*QueryBeforeSendHookAddressResponse) XXX_Unmarshal ¶
func (m *QueryBeforeSendHookAddressResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params defines a gRPC query method that returns the tokenfactory module's // parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // DenomAuthorityMetadata defines a gRPC query method for fetching // DenomAuthorityMetadata for a particular denom. DenomAuthorityMetadata(ctx context.Context, in *QueryDenomAuthorityMetadataRequest, opts ...grpc.CallOption) (*QueryDenomAuthorityMetadataResponse, error) // 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) // AllBeforeSendHooksAddresses defines a gRPC query method for // getting all addresses with before send hook registered. // The response returns two arrays, an array with a list of denom and an array // of before send hook addresses. The idx of denom corresponds to before send // hook addresse's idx. AllBeforeSendHooksAddresses(ctx context.Context, in *QueryAllBeforeSendHooksAddressesRequest, opts ...grpc.CallOption) (*QueryAllBeforeSendHooksAddressesResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryDenomAuthorityMetadataRequest ¶
type QueryDenomAuthorityMetadataRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
}
QueryDenomAuthorityMetadataRequest defines the request structure for the DenomAuthorityMetadata gRPC query.
func (*QueryDenomAuthorityMetadataRequest) Descriptor ¶
func (*QueryDenomAuthorityMetadataRequest) Descriptor() ([]byte, []int)
func (*QueryDenomAuthorityMetadataRequest) GetDenom ¶
func (m *QueryDenomAuthorityMetadataRequest) GetDenom() string
func (*QueryDenomAuthorityMetadataRequest) Marshal ¶
func (m *QueryDenomAuthorityMetadataRequest) Marshal() (dAtA []byte, err error)
func (*QueryDenomAuthorityMetadataRequest) MarshalTo ¶
func (m *QueryDenomAuthorityMetadataRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDenomAuthorityMetadataRequest) MarshalToSizedBuffer ¶
func (m *QueryDenomAuthorityMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDenomAuthorityMetadataRequest) ProtoMessage ¶
func (*QueryDenomAuthorityMetadataRequest) ProtoMessage()
func (*QueryDenomAuthorityMetadataRequest) Reset ¶
func (m *QueryDenomAuthorityMetadataRequest) Reset()
func (*QueryDenomAuthorityMetadataRequest) Size ¶
func (m *QueryDenomAuthorityMetadataRequest) Size() (n int)
func (*QueryDenomAuthorityMetadataRequest) String ¶
func (m *QueryDenomAuthorityMetadataRequest) String() string
func (*QueryDenomAuthorityMetadataRequest) Unmarshal ¶
func (m *QueryDenomAuthorityMetadataRequest) Unmarshal(dAtA []byte) error
func (*QueryDenomAuthorityMetadataRequest) XXX_DiscardUnknown ¶
func (m *QueryDenomAuthorityMetadataRequest) XXX_DiscardUnknown()
func (*QueryDenomAuthorityMetadataRequest) XXX_Marshal ¶
func (m *QueryDenomAuthorityMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDenomAuthorityMetadataRequest) XXX_Merge ¶
func (m *QueryDenomAuthorityMetadataRequest) XXX_Merge(src proto.Message)
func (*QueryDenomAuthorityMetadataRequest) XXX_Size ¶
func (m *QueryDenomAuthorityMetadataRequest) XXX_Size() int
func (*QueryDenomAuthorityMetadataRequest) XXX_Unmarshal ¶
func (m *QueryDenomAuthorityMetadataRequest) XXX_Unmarshal(b []byte) error
type QueryDenomAuthorityMetadataResponse ¶
type QueryDenomAuthorityMetadataResponse struct {
AuthorityMetadata DenomAuthorityMetadata `` /* 128-byte string literal not displayed */
}
QueryDenomAuthorityMetadataResponse defines the response structure for the DenomAuthorityMetadata gRPC query.
func (*QueryDenomAuthorityMetadataResponse) Descriptor ¶
func (*QueryDenomAuthorityMetadataResponse) Descriptor() ([]byte, []int)
func (*QueryDenomAuthorityMetadataResponse) GetAuthorityMetadata ¶
func (m *QueryDenomAuthorityMetadataResponse) GetAuthorityMetadata() DenomAuthorityMetadata
func (*QueryDenomAuthorityMetadataResponse) Marshal ¶
func (m *QueryDenomAuthorityMetadataResponse) Marshal() (dAtA []byte, err error)
func (*QueryDenomAuthorityMetadataResponse) MarshalTo ¶
func (m *QueryDenomAuthorityMetadataResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDenomAuthorityMetadataResponse) MarshalToSizedBuffer ¶
func (m *QueryDenomAuthorityMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDenomAuthorityMetadataResponse) ProtoMessage ¶
func (*QueryDenomAuthorityMetadataResponse) ProtoMessage()
func (*QueryDenomAuthorityMetadataResponse) Reset ¶
func (m *QueryDenomAuthorityMetadataResponse) Reset()
func (*QueryDenomAuthorityMetadataResponse) Size ¶
func (m *QueryDenomAuthorityMetadataResponse) Size() (n int)
func (*QueryDenomAuthorityMetadataResponse) String ¶
func (m *QueryDenomAuthorityMetadataResponse) String() string
func (*QueryDenomAuthorityMetadataResponse) Unmarshal ¶
func (m *QueryDenomAuthorityMetadataResponse) Unmarshal(dAtA []byte) error
func (*QueryDenomAuthorityMetadataResponse) XXX_DiscardUnknown ¶
func (m *QueryDenomAuthorityMetadataResponse) XXX_DiscardUnknown()
func (*QueryDenomAuthorityMetadataResponse) XXX_Marshal ¶
func (m *QueryDenomAuthorityMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDenomAuthorityMetadataResponse) XXX_Merge ¶
func (m *QueryDenomAuthorityMetadataResponse) XXX_Merge(src proto.Message)
func (*QueryDenomAuthorityMetadataResponse) XXX_Size ¶
func (m *QueryDenomAuthorityMetadataResponse) XXX_Size() int
func (*QueryDenomAuthorityMetadataResponse) XXX_Unmarshal ¶
func (m *QueryDenomAuthorityMetadataResponse) XXX_Unmarshal(b []byte) error
type QueryDenomsFromCreatorRequest ¶
type QueryDenomsFromCreatorRequest struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
}
QueryDenomsFromCreatorRequest defines the request structure for the DenomsFromCreator gRPC query.
func (*QueryDenomsFromCreatorRequest) Descriptor ¶
func (*QueryDenomsFromCreatorRequest) Descriptor() ([]byte, []int)
func (*QueryDenomsFromCreatorRequest) GetCreator ¶
func (m *QueryDenomsFromCreatorRequest) GetCreator() string
func (*QueryDenomsFromCreatorRequest) Marshal ¶
func (m *QueryDenomsFromCreatorRequest) Marshal() (dAtA []byte, err error)
func (*QueryDenomsFromCreatorRequest) MarshalTo ¶
func (m *QueryDenomsFromCreatorRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDenomsFromCreatorRequest) MarshalToSizedBuffer ¶
func (m *QueryDenomsFromCreatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDenomsFromCreatorRequest) ProtoMessage ¶
func (*QueryDenomsFromCreatorRequest) ProtoMessage()
func (*QueryDenomsFromCreatorRequest) Reset ¶
func (m *QueryDenomsFromCreatorRequest) Reset()
func (*QueryDenomsFromCreatorRequest) Size ¶
func (m *QueryDenomsFromCreatorRequest) Size() (n int)
func (*QueryDenomsFromCreatorRequest) String ¶
func (m *QueryDenomsFromCreatorRequest) String() string
func (*QueryDenomsFromCreatorRequest) Unmarshal ¶
func (m *QueryDenomsFromCreatorRequest) Unmarshal(dAtA []byte) error
func (*QueryDenomsFromCreatorRequest) XXX_DiscardUnknown ¶
func (m *QueryDenomsFromCreatorRequest) XXX_DiscardUnknown()
func (*QueryDenomsFromCreatorRequest) XXX_Marshal ¶
func (m *QueryDenomsFromCreatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDenomsFromCreatorRequest) XXX_Merge ¶
func (m *QueryDenomsFromCreatorRequest) XXX_Merge(src proto.Message)
func (*QueryDenomsFromCreatorRequest) XXX_Size ¶
func (m *QueryDenomsFromCreatorRequest) XXX_Size() int
func (*QueryDenomsFromCreatorRequest) XXX_Unmarshal ¶
func (m *QueryDenomsFromCreatorRequest) XXX_Unmarshal(b []byte) error
type QueryDenomsFromCreatorResponse ¶
type QueryDenomsFromCreatorResponse struct {
Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty" yaml:"denoms"`
}
QueryDenomsFromCreatorRequest defines the response structure for the DenomsFromCreator gRPC query.
func (*QueryDenomsFromCreatorResponse) Descriptor ¶
func (*QueryDenomsFromCreatorResponse) Descriptor() ([]byte, []int)
func (*QueryDenomsFromCreatorResponse) GetDenoms ¶
func (m *QueryDenomsFromCreatorResponse) GetDenoms() []string
func (*QueryDenomsFromCreatorResponse) Marshal ¶
func (m *QueryDenomsFromCreatorResponse) Marshal() (dAtA []byte, err error)
func (*QueryDenomsFromCreatorResponse) MarshalTo ¶
func (m *QueryDenomsFromCreatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDenomsFromCreatorResponse) MarshalToSizedBuffer ¶
func (m *QueryDenomsFromCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDenomsFromCreatorResponse) ProtoMessage ¶
func (*QueryDenomsFromCreatorResponse) ProtoMessage()
func (*QueryDenomsFromCreatorResponse) Reset ¶
func (m *QueryDenomsFromCreatorResponse) Reset()
func (*QueryDenomsFromCreatorResponse) Size ¶
func (m *QueryDenomsFromCreatorResponse) Size() (n int)
func (*QueryDenomsFromCreatorResponse) String ¶
func (m *QueryDenomsFromCreatorResponse) String() string
func (*QueryDenomsFromCreatorResponse) Unmarshal ¶
func (m *QueryDenomsFromCreatorResponse) Unmarshal(dAtA []byte) error
func (*QueryDenomsFromCreatorResponse) XXX_DiscardUnknown ¶
func (m *QueryDenomsFromCreatorResponse) XXX_DiscardUnknown()
func (*QueryDenomsFromCreatorResponse) XXX_Marshal ¶
func (m *QueryDenomsFromCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDenomsFromCreatorResponse) XXX_Merge ¶
func (m *QueryDenomsFromCreatorResponse) XXX_Merge(src proto.Message)
func (*QueryDenomsFromCreatorResponse) XXX_Size ¶
func (m *QueryDenomsFromCreatorResponse) XXX_Size() int
func (*QueryDenomsFromCreatorResponse) XXX_Unmarshal ¶
func (m *QueryDenomsFromCreatorResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params defines a gRPC query method that returns the tokenfactory module's // parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // DenomAuthorityMetadata defines a gRPC query method for fetching // DenomAuthorityMetadata for a particular denom. DenomAuthorityMetadata(context.Context, *QueryDenomAuthorityMetadataRequest) (*QueryDenomAuthorityMetadataResponse, error) // 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) // AllBeforeSendHooksAddresses defines a gRPC query method for // getting all addresses with before send hook registered. // The response returns two arrays, an array with a list of denom and an array // of before send hook addresses. The idx of denom corresponds to before send // hook addresse's idx. AllBeforeSendHooksAddresses(context.Context, *QueryAllBeforeSendHooksAddressesRequest) (*QueryAllBeforeSendHooksAddressesResponse, error) }
QueryServer is the server API for Query service.
type TrackBeforeSendMsg ¶
type TrackBeforeSendMsg struct { From string `json:"from"` To string `json:"to"` Amount wasmvmtypes.Coin `json:"amount"` }
type TrackBeforeSendSudoMsg ¶
type TrackBeforeSendSudoMsg struct {
TrackBeforeSend TrackBeforeSendMsg `json:"track_before_send"`
}
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Burn ¶
func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
func (*UnimplementedMsgServer) ChangeAdmin ¶
func (*UnimplementedMsgServer) ChangeAdmin(ctx context.Context, req *MsgChangeAdmin) (*MsgChangeAdminResponse, error)
func (*UnimplementedMsgServer) CreateDenom ¶
func (*UnimplementedMsgServer) CreateDenom(ctx context.Context, req *MsgCreateDenom) (*MsgCreateDenomResponse, error)
func (*UnimplementedMsgServer) ForceTransfer ¶
func (*UnimplementedMsgServer) ForceTransfer(ctx context.Context, req *MsgForceTransfer) (*MsgForceTransferResponse, error)
func (*UnimplementedMsgServer) Mint ¶
func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
func (*UnimplementedMsgServer) SetBeforeSendHook ¶
func (*UnimplementedMsgServer) SetBeforeSendHook(ctx context.Context, req *MsgSetBeforeSendHook) (*MsgSetBeforeSendHookResponse, error)
func (*UnimplementedMsgServer) SetDenomMetadata ¶
func (*UnimplementedMsgServer) SetDenomMetadata(ctx context.Context, req *MsgSetDenomMetadata) (*MsgSetDenomMetadataResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllBeforeSendHooksAddresses ¶
func (*UnimplementedQueryServer) AllBeforeSendHooksAddresses(ctx context.Context, req *QueryAllBeforeSendHooksAddressesRequest) (*QueryAllBeforeSendHooksAddressesResponse, error)
func (*UnimplementedQueryServer) BeforeSendHookAddress ¶
func (*UnimplementedQueryServer) BeforeSendHookAddress(ctx context.Context, req *QueryBeforeSendHookAddressRequest) (*QueryBeforeSendHookAddressResponse, error)
func (*UnimplementedQueryServer) DenomAuthorityMetadata ¶
func (*UnimplementedQueryServer) DenomAuthorityMetadata(ctx context.Context, req *QueryDenomAuthorityMetadataRequest) (*QueryDenomAuthorityMetadataResponse, error)
func (*UnimplementedQueryServer) DenomsFromCreator ¶
func (*UnimplementedQueryServer) DenomsFromCreator(ctx context.Context, req *QueryDenomsFromCreatorRequest) (*QueryDenomsFromCreatorResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)