Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() types.KeyTable
- func RegisterInterfaces(registry types.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)
- func SetNativeToken(symbol string, name string, minUnit string, decimal uint32, ...)
- func ValidateERC20(params string) error
- func ValidateGenesis(data GenesisState) error
- type EventDeployERC20
- func (*EventDeployERC20) Descriptor() ([]byte, []int)
- func (m *EventDeployERC20) Marshal() (dAtA []byte, err error)
- func (m *EventDeployERC20) MarshalTo(dAtA []byte) (int, error)
- func (m *EventDeployERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventDeployERC20) ProtoMessage()
- func (m *EventDeployERC20) Reset()
- func (m *EventDeployERC20) Size() (n int)
- func (m *EventDeployERC20) String() string
- func (m *EventDeployERC20) Unmarshal(dAtA []byte) error
- func (m *EventDeployERC20) XXX_DiscardUnknown()
- func (m *EventDeployERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventDeployERC20) XXX_Merge(src proto.Message)
- func (m *EventDeployERC20) XXX_Size() int
- func (m *EventDeployERC20) XXX_Unmarshal(b []byte) error
- type EventSwapFromERC20
- func (*EventSwapFromERC20) Descriptor() ([]byte, []int)
- func (m *EventSwapFromERC20) Marshal() (dAtA []byte, err error)
- func (m *EventSwapFromERC20) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSwapFromERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSwapFromERC20) ProtoMessage()
- func (m *EventSwapFromERC20) Reset()
- func (m *EventSwapFromERC20) Size() (n int)
- func (m *EventSwapFromERC20) String() string
- func (m *EventSwapFromERC20) Unmarshal(dAtA []byte) error
- func (m *EventSwapFromERC20) XXX_DiscardUnknown()
- func (m *EventSwapFromERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSwapFromERC20) XXX_Merge(src proto.Message)
- func (m *EventSwapFromERC20) XXX_Size() int
- func (m *EventSwapFromERC20) XXX_Unmarshal(b []byte) error
- type EventSwapToERC20
- func (*EventSwapToERC20) Descriptor() ([]byte, []int)
- func (m *EventSwapToERC20) Marshal() (dAtA []byte, err error)
- func (m *EventSwapToERC20) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSwapToERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSwapToERC20) ProtoMessage()
- func (m *EventSwapToERC20) Reset()
- func (m *EventSwapToERC20) Size() (n int)
- func (m *EventSwapToERC20) String() string
- func (m *EventSwapToERC20) Unmarshal(dAtA []byte) error
- func (m *EventSwapToERC20) XXX_DiscardUnknown()
- func (m *EventSwapToERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSwapToERC20) XXX_Merge(src proto.Message)
- func (m *EventSwapToERC20) XXX_Size() int
- func (m *EventSwapToERC20) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBurnedCoins() []types.Coin
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetTokens() []Token
- 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 (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 MsgBurnToken
- func (*MsgBurnToken) Descriptor() ([]byte, []int)
- func (msg MsgBurnToken) GetSignBytes() []byte
- func (msg MsgBurnToken) GetSigners() []sdk.AccAddress
- func (m *MsgBurnToken) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnToken) ProtoMessage()
- func (m *MsgBurnToken) Reset()
- func (msg MsgBurnToken) Route() string
- func (m *MsgBurnToken) Size() (n int)
- func (m *MsgBurnToken) String() string
- func (msg MsgBurnToken) Type() string
- func (m *MsgBurnToken) Unmarshal(dAtA []byte) error
- func (msg MsgBurnToken) ValidateBasic() error
- func (m *MsgBurnToken) XXX_DiscardUnknown()
- func (m *MsgBurnToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnToken) XXX_Merge(src proto.Message)
- func (m *MsgBurnToken) XXX_Size() int
- func (m *MsgBurnToken) XXX_Unmarshal(b []byte) error
- type MsgBurnTokenResponse
- func (*MsgBurnTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnTokenResponse) ProtoMessage()
- func (m *MsgBurnTokenResponse) Reset()
- func (m *MsgBurnTokenResponse) Size() (n int)
- func (m *MsgBurnTokenResponse) String() string
- func (m *MsgBurnTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnTokenResponse) XXX_DiscardUnknown()
- func (m *MsgBurnTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnTokenResponse) XXX_Size() int
- func (m *MsgBurnTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDeployERC20
- func (*MsgDeployERC20) Descriptor() ([]byte, []int)
- func (m *MsgDeployERC20) GetSigners() []sdk.AccAddress
- func (m *MsgDeployERC20) Marshal() (dAtA []byte, err error)
- func (m *MsgDeployERC20) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeployERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeployERC20) ProtoMessage()
- func (m *MsgDeployERC20) Reset()
- func (m *MsgDeployERC20) Size() (n int)
- func (m *MsgDeployERC20) String() string
- func (m *MsgDeployERC20) Unmarshal(dAtA []byte) error
- func (m *MsgDeployERC20) ValidateBasic() error
- func (m *MsgDeployERC20) XXX_DiscardUnknown()
- func (m *MsgDeployERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeployERC20) XXX_Merge(src proto.Message)
- func (m *MsgDeployERC20) XXX_Size() int
- func (m *MsgDeployERC20) XXX_Unmarshal(b []byte) error
- type MsgDeployERC20Response
- func (*MsgDeployERC20Response) Descriptor() ([]byte, []int)
- func (m *MsgDeployERC20Response) Marshal() (dAtA []byte, err error)
- func (m *MsgDeployERC20Response) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeployERC20Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeployERC20Response) ProtoMessage()
- func (m *MsgDeployERC20Response) Reset()
- func (m *MsgDeployERC20Response) Size() (n int)
- func (m *MsgDeployERC20Response) String() string
- func (m *MsgDeployERC20Response) Unmarshal(dAtA []byte) error
- func (m *MsgDeployERC20Response) XXX_DiscardUnknown()
- func (m *MsgDeployERC20Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeployERC20Response) XXX_Merge(src proto.Message)
- func (m *MsgDeployERC20Response) XXX_Size() int
- func (m *MsgDeployERC20Response) XXX_Unmarshal(b []byte) error
- type MsgEditToken
- func (*MsgEditToken) Descriptor() ([]byte, []int)
- func (msg MsgEditToken) GetSignBytes() []byte
- func (msg MsgEditToken) GetSigners() []sdk.AccAddress
- func (m *MsgEditToken) Marshal() (dAtA []byte, err error)
- func (m *MsgEditToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditToken) ProtoMessage()
- func (m *MsgEditToken) Reset()
- func (msg MsgEditToken) Route() string
- func (m *MsgEditToken) Size() (n int)
- func (m *MsgEditToken) String() string
- func (msg MsgEditToken) Type() string
- func (m *MsgEditToken) Unmarshal(dAtA []byte) error
- func (msg MsgEditToken) ValidateBasic() error
- func (m *MsgEditToken) XXX_DiscardUnknown()
- func (m *MsgEditToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditToken) XXX_Merge(src proto.Message)
- func (m *MsgEditToken) XXX_Size() int
- func (m *MsgEditToken) XXX_Unmarshal(b []byte) error
- type MsgEditTokenResponse
- func (*MsgEditTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgEditTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgEditTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditTokenResponse) ProtoMessage()
- func (m *MsgEditTokenResponse) Reset()
- func (m *MsgEditTokenResponse) Size() (n int)
- func (m *MsgEditTokenResponse) String() string
- func (m *MsgEditTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgEditTokenResponse) XXX_DiscardUnknown()
- func (m *MsgEditTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgEditTokenResponse) XXX_Size() int
- func (m *MsgEditTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgIssueToken
- func (*MsgIssueToken) Descriptor() ([]byte, []int)
- func (msg MsgIssueToken) GetSignBytes() []byte
- func (msg MsgIssueToken) GetSigners() []sdk.AccAddress
- func (m *MsgIssueToken) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueToken) ProtoMessage()
- func (m *MsgIssueToken) Reset()
- func (msg MsgIssueToken) Route() string
- func (m *MsgIssueToken) Size() (n int)
- func (m *MsgIssueToken) String() string
- func (msg MsgIssueToken) Type() string
- func (m *MsgIssueToken) Unmarshal(dAtA []byte) error
- func (msg MsgIssueToken) ValidateBasic() error
- func (m *MsgIssueToken) XXX_DiscardUnknown()
- func (m *MsgIssueToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueToken) XXX_Merge(src proto.Message)
- func (m *MsgIssueToken) XXX_Size() int
- func (m *MsgIssueToken) XXX_Unmarshal(b []byte) error
- type MsgIssueTokenResponse
- func (*MsgIssueTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgIssueTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueTokenResponse) ProtoMessage()
- func (m *MsgIssueTokenResponse) Reset()
- func (m *MsgIssueTokenResponse) Size() (n int)
- func (m *MsgIssueTokenResponse) String() string
- func (m *MsgIssueTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIssueTokenResponse) XXX_DiscardUnknown()
- func (m *MsgIssueTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgIssueTokenResponse) XXX_Size() int
- func (m *MsgIssueTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgMintToken
- func (*MsgMintToken) Descriptor() ([]byte, []int)
- func (msg MsgMintToken) GetSignBytes() []byte
- func (msg MsgMintToken) GetSigners() []sdk.AccAddress
- func (m *MsgMintToken) Marshal() (dAtA []byte, err error)
- func (m *MsgMintToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintToken) ProtoMessage()
- func (m *MsgMintToken) Reset()
- func (msg MsgMintToken) Route() string
- func (m *MsgMintToken) Size() (n int)
- func (m *MsgMintToken) String() string
- func (msg MsgMintToken) Type() string
- func (m *MsgMintToken) Unmarshal(dAtA []byte) error
- func (msg MsgMintToken) ValidateBasic() error
- func (m *MsgMintToken) XXX_DiscardUnknown()
- func (m *MsgMintToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintToken) XXX_Merge(src proto.Message)
- func (m *MsgMintToken) XXX_Size() int
- func (m *MsgMintToken) XXX_Unmarshal(b []byte) error
- type MsgMintTokenResponse
- func (*MsgMintTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintTokenResponse) ProtoMessage()
- func (m *MsgMintTokenResponse) Reset()
- func (m *MsgMintTokenResponse) Size() (n int)
- func (m *MsgMintTokenResponse) String() string
- func (m *MsgMintTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintTokenResponse) XXX_DiscardUnknown()
- func (m *MsgMintTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintTokenResponse) XXX_Size() int
- func (m *MsgMintTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSwapFeeToken
- func (*MsgSwapFeeToken) Descriptor() ([]byte, []int)
- func (msg MsgSwapFeeToken) GetSignBytes() []byte
- func (msg MsgSwapFeeToken) GetSigners() []sdk.AccAddress
- func (m *MsgSwapFeeToken) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapFeeToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapFeeToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapFeeToken) ProtoMessage()
- func (m *MsgSwapFeeToken) Reset()
- func (m *MsgSwapFeeToken) Size() (n int)
- func (m *MsgSwapFeeToken) String() string
- func (m *MsgSwapFeeToken) Unmarshal(dAtA []byte) error
- func (msg MsgSwapFeeToken) ValidateBasic() error
- func (m *MsgSwapFeeToken) XXX_DiscardUnknown()
- func (m *MsgSwapFeeToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapFeeToken) XXX_Merge(src proto.Message)
- func (m *MsgSwapFeeToken) XXX_Size() int
- func (m *MsgSwapFeeToken) XXX_Unmarshal(b []byte) error
- type MsgSwapFeeTokenResponse
- func (*MsgSwapFeeTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgSwapFeeTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapFeeTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapFeeTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapFeeTokenResponse) ProtoMessage()
- func (m *MsgSwapFeeTokenResponse) Reset()
- func (m *MsgSwapFeeTokenResponse) Size() (n int)
- func (m *MsgSwapFeeTokenResponse) String() string
- func (m *MsgSwapFeeTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSwapFeeTokenResponse) XXX_DiscardUnknown()
- func (m *MsgSwapFeeTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapFeeTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgSwapFeeTokenResponse) XXX_Size() int
- func (m *MsgSwapFeeTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgSwapFromERC20
- func (*MsgSwapFromERC20) Descriptor() ([]byte, []int)
- func (m *MsgSwapFromERC20) GetSigners() []sdk.AccAddress
- func (m *MsgSwapFromERC20) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapFromERC20) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapFromERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapFromERC20) ProtoMessage()
- func (m *MsgSwapFromERC20) Reset()
- func (m *MsgSwapFromERC20) Size() (n int)
- func (m *MsgSwapFromERC20) String() string
- func (m *MsgSwapFromERC20) Unmarshal(dAtA []byte) error
- func (m *MsgSwapFromERC20) ValidateBasic() error
- func (m *MsgSwapFromERC20) XXX_DiscardUnknown()
- func (m *MsgSwapFromERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapFromERC20) XXX_Merge(src proto.Message)
- func (m *MsgSwapFromERC20) XXX_Size() int
- func (m *MsgSwapFromERC20) XXX_Unmarshal(b []byte) error
- type MsgSwapFromERC20Response
- func (*MsgSwapFromERC20Response) Descriptor() ([]byte, []int)
- func (m *MsgSwapFromERC20Response) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapFromERC20Response) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapFromERC20Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapFromERC20Response) ProtoMessage()
- func (m *MsgSwapFromERC20Response) Reset()
- func (m *MsgSwapFromERC20Response) Size() (n int)
- func (m *MsgSwapFromERC20Response) String() string
- func (m *MsgSwapFromERC20Response) Unmarshal(dAtA []byte) error
- func (m *MsgSwapFromERC20Response) XXX_DiscardUnknown()
- func (m *MsgSwapFromERC20Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapFromERC20Response) XXX_Merge(src proto.Message)
- func (m *MsgSwapFromERC20Response) XXX_Size() int
- func (m *MsgSwapFromERC20Response) XXX_Unmarshal(b []byte) error
- type MsgSwapToERC20
- func (*MsgSwapToERC20) Descriptor() ([]byte, []int)
- func (m *MsgSwapToERC20) GetSigners() []sdk.AccAddress
- func (m *MsgSwapToERC20) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapToERC20) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapToERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapToERC20) ProtoMessage()
- func (m *MsgSwapToERC20) Reset()
- func (m *MsgSwapToERC20) Size() (n int)
- func (m *MsgSwapToERC20) String() string
- func (m *MsgSwapToERC20) Unmarshal(dAtA []byte) error
- func (m *MsgSwapToERC20) ValidateBasic() error
- func (m *MsgSwapToERC20) XXX_DiscardUnknown()
- func (m *MsgSwapToERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapToERC20) XXX_Merge(src proto.Message)
- func (m *MsgSwapToERC20) XXX_Size() int
- func (m *MsgSwapToERC20) XXX_Unmarshal(b []byte) error
- type MsgSwapToERC20Response
- func (*MsgSwapToERC20Response) Descriptor() ([]byte, []int)
- func (m *MsgSwapToERC20Response) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapToERC20Response) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapToERC20Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapToERC20Response) ProtoMessage()
- func (m *MsgSwapToERC20Response) Reset()
- func (m *MsgSwapToERC20Response) Size() (n int)
- func (m *MsgSwapToERC20Response) String() string
- func (m *MsgSwapToERC20Response) Unmarshal(dAtA []byte) error
- func (m *MsgSwapToERC20Response) XXX_DiscardUnknown()
- func (m *MsgSwapToERC20Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapToERC20Response) XXX_Merge(src proto.Message)
- func (m *MsgSwapToERC20Response) XXX_Size() int
- func (m *MsgSwapToERC20Response) XXX_Unmarshal(b []byte) error
- type MsgTransferTokenOwner
- func (*MsgTransferTokenOwner) Descriptor() ([]byte, []int)
- func (msg MsgTransferTokenOwner) GetSignBytes() []byte
- func (msg MsgTransferTokenOwner) GetSigners() []sdk.AccAddress
- func (m *MsgTransferTokenOwner) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferTokenOwner) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferTokenOwner) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferTokenOwner) ProtoMessage()
- func (m *MsgTransferTokenOwner) Reset()
- func (msg MsgTransferTokenOwner) Route() string
- func (m *MsgTransferTokenOwner) Size() (n int)
- func (m *MsgTransferTokenOwner) String() string
- func (msg MsgTransferTokenOwner) Type() string
- func (m *MsgTransferTokenOwner) Unmarshal(dAtA []byte) error
- func (msg MsgTransferTokenOwner) ValidateBasic() error
- func (m *MsgTransferTokenOwner) XXX_DiscardUnknown()
- func (m *MsgTransferTokenOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferTokenOwner) XXX_Merge(src proto.Message)
- func (m *MsgTransferTokenOwner) XXX_Size() int
- func (m *MsgTransferTokenOwner) XXX_Unmarshal(b []byte) error
- type MsgTransferTokenOwnerResponse
- func (*MsgTransferTokenOwnerResponse) Descriptor() ([]byte, []int)
- func (m *MsgTransferTokenOwnerResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferTokenOwnerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferTokenOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferTokenOwnerResponse) ProtoMessage()
- func (m *MsgTransferTokenOwnerResponse) Reset()
- func (m *MsgTransferTokenOwnerResponse) Size() (n int)
- func (m *MsgTransferTokenOwnerResponse) String() string
- func (m *MsgTransferTokenOwnerResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTransferTokenOwnerResponse) XXX_DiscardUnknown()
- func (m *MsgTransferTokenOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferTokenOwnerResponse) XXX_Merge(src proto.Message)
- func (m *MsgTransferTokenOwnerResponse) XXX_Size() int
- func (m *MsgTransferTokenOwnerResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetSignBytes() []byte
- func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgUpgradeERC20
- func (*MsgUpgradeERC20) Descriptor() ([]byte, []int)
- func (m *MsgUpgradeERC20) GetSigners() []sdk.AccAddress
- func (m *MsgUpgradeERC20) Marshal() (dAtA []byte, err error)
- func (m *MsgUpgradeERC20) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpgradeERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpgradeERC20) ProtoMessage()
- func (m *MsgUpgradeERC20) Reset()
- func (m *MsgUpgradeERC20) Size() (n int)
- func (m *MsgUpgradeERC20) String() string
- func (m *MsgUpgradeERC20) Unmarshal(dAtA []byte) error
- func (m *MsgUpgradeERC20) ValidateBasic() error
- func (m *MsgUpgradeERC20) XXX_DiscardUnknown()
- func (m *MsgUpgradeERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpgradeERC20) XXX_Merge(src proto.Message)
- func (m *MsgUpgradeERC20) XXX_Size() int
- func (m *MsgUpgradeERC20) XXX_Unmarshal(b []byte) error
- type MsgUpgradeERC20Response
- func (*MsgUpgradeERC20Response) Descriptor() ([]byte, []int)
- func (m *MsgUpgradeERC20Response) Marshal() (dAtA []byte, err error)
- func (m *MsgUpgradeERC20Response) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpgradeERC20Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpgradeERC20Response) ProtoMessage()
- func (m *MsgUpgradeERC20Response) Reset()
- func (m *MsgUpgradeERC20Response) Size() (n int)
- func (m *MsgUpgradeERC20Response) String() string
- func (m *MsgUpgradeERC20Response) Unmarshal(dAtA []byte) error
- func (m *MsgUpgradeERC20Response) XXX_DiscardUnknown()
- func (m *MsgUpgradeERC20Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpgradeERC20Response) XXX_Merge(src proto.Message)
- func (m *MsgUpgradeERC20Response) XXX_Size() int
- func (m *MsgUpgradeERC20Response) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- 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() types.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 QueryBalancesRequest
- func (*QueryBalancesRequest) Descriptor() ([]byte, []int)
- func (m *QueryBalancesRequest) GetAddress() string
- func (m *QueryBalancesRequest) GetDenom() string
- func (m *QueryBalancesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBalancesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalancesRequest) ProtoMessage()
- func (m *QueryBalancesRequest) Reset()
- func (m *QueryBalancesRequest) Size() (n int)
- func (m *QueryBalancesRequest) String() string
- func (m *QueryBalancesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBalancesRequest) XXX_DiscardUnknown()
- func (m *QueryBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalancesRequest) XXX_Merge(src proto.Message)
- func (m *QueryBalancesRequest) XXX_Size() int
- func (m *QueryBalancesRequest) XXX_Unmarshal(b []byte) error
- type QueryBalancesResponse
- func (*QueryBalancesResponse) Descriptor() ([]byte, []int)
- func (m *QueryBalancesResponse) GetBalances() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryBalancesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBalancesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalancesResponse) ProtoMessage()
- func (m *QueryBalancesResponse) Reset()
- func (m *QueryBalancesResponse) Size() (n int)
- func (m *QueryBalancesResponse) String() string
- func (m *QueryBalancesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBalancesResponse) XXX_DiscardUnknown()
- func (m *QueryBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalancesResponse) XXX_Merge(src proto.Message)
- func (m *QueryBalancesResponse) XXX_Size() int
- func (m *QueryBalancesResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryFeesRequest
- func (*QueryFeesRequest) Descriptor() ([]byte, []int)
- func (m *QueryFeesRequest) GetSymbol() string
- func (m *QueryFeesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFeesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFeesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFeesRequest) ProtoMessage()
- func (m *QueryFeesRequest) Reset()
- func (m *QueryFeesRequest) Size() (n int)
- func (m *QueryFeesRequest) String() string
- func (m *QueryFeesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFeesRequest) XXX_DiscardUnknown()
- func (m *QueryFeesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFeesRequest) XXX_Merge(src proto.Message)
- func (m *QueryFeesRequest) XXX_Size() int
- func (m *QueryFeesRequest) XXX_Unmarshal(b []byte) error
- type QueryFeesResponse
- func (*QueryFeesResponse) Descriptor() ([]byte, []int)
- func (m *QueryFeesResponse) GetExist() bool
- func (m *QueryFeesResponse) GetIssueFee() github_com_cosmos_cosmos_sdk_types.Coin
- func (m *QueryFeesResponse) GetMintFee() github_com_cosmos_cosmos_sdk_types.Coin
- func (m *QueryFeesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFeesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFeesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFeesResponse) ProtoMessage()
- func (m *QueryFeesResponse) Reset()
- func (m *QueryFeesResponse) Size() (n int)
- func (m *QueryFeesResponse) String() string
- func (m *QueryFeesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFeesResponse) XXX_DiscardUnknown()
- func (m *QueryFeesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFeesResponse) XXX_Merge(src proto.Message)
- func (m *QueryFeesResponse) XXX_Size() int
- func (m *QueryFeesResponse) 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) GetRes() *query.PageResponse
- 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 QueryTokenRequest
- func (*QueryTokenRequest) Descriptor() ([]byte, []int)
- func (m *QueryTokenRequest) GetDenom() string
- func (m *QueryTokenRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTokenRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokenRequest) ProtoMessage()
- func (m *QueryTokenRequest) Reset()
- func (m *QueryTokenRequest) Size() (n int)
- func (m *QueryTokenRequest) String() string
- func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTokenRequest) XXX_DiscardUnknown()
- func (m *QueryTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokenRequest) XXX_Merge(src proto.Message)
- func (m *QueryTokenRequest) XXX_Size() int
- func (m *QueryTokenRequest) XXX_Unmarshal(b []byte) error
- type QueryTokenResponse
- func (*QueryTokenResponse) Descriptor() ([]byte, []int)
- func (m *QueryTokenResponse) GetToken() *types.Any
- func (m *QueryTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokenResponse) ProtoMessage()
- func (m *QueryTokenResponse) Reset()
- func (m *QueryTokenResponse) Size() (n int)
- func (m *QueryTokenResponse) String() string
- func (m *QueryTokenResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTokenResponse) XXX_DiscardUnknown()
- func (m *QueryTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokenResponse) XXX_Merge(src proto.Message)
- func (m *QueryTokenResponse) XXX_Size() int
- func (m *QueryTokenResponse) XXX_Unmarshal(b []byte) error
- type QueryTokensRequest
- func (*QueryTokensRequest) Descriptor() ([]byte, []int)
- func (m *QueryTokensRequest) GetOwner() string
- func (m *QueryTokensRequest) GetPagination() *query.PageRequest
- func (m *QueryTokensRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTokensRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokensRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokensRequest) ProtoMessage()
- func (m *QueryTokensRequest) Reset()
- func (m *QueryTokensRequest) Size() (n int)
- func (m *QueryTokensRequest) String() string
- func (m *QueryTokensRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTokensRequest) XXX_DiscardUnknown()
- func (m *QueryTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokensRequest) XXX_Merge(src proto.Message)
- func (m *QueryTokensRequest) XXX_Size() int
- func (m *QueryTokensRequest) XXX_Unmarshal(b []byte) error
- type QueryTokensResponse
- func (*QueryTokensResponse) Descriptor() ([]byte, []int)
- func (m *QueryTokensResponse) GetPagination() *query.PageResponse
- func (m *QueryTokensResponse) GetTokens() []*types.Any
- func (m *QueryTokensResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTokensResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokensResponse) ProtoMessage()
- func (m *QueryTokensResponse) Reset()
- func (m *QueryTokensResponse) Size() (n int)
- func (m *QueryTokensResponse) String() string
- func (m *QueryTokensResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTokensResponse) XXX_DiscardUnknown()
- func (m *QueryTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokensResponse) XXX_Merge(src proto.Message)
- func (m *QueryTokensResponse) XXX_Size() int
- func (m *QueryTokensResponse) XXX_Unmarshal(b []byte) error
- type QueryTotalBurnRequest
- func (*QueryTotalBurnRequest) Descriptor() ([]byte, []int)
- func (m *QueryTotalBurnRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalBurnRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalBurnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalBurnRequest) ProtoMessage()
- func (m *QueryTotalBurnRequest) Reset()
- func (m *QueryTotalBurnRequest) Size() (n int)
- func (m *QueryTotalBurnRequest) String() string
- func (m *QueryTotalBurnRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTotalBurnRequest) XXX_DiscardUnknown()
- func (m *QueryTotalBurnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalBurnRequest) XXX_Merge(src proto.Message)
- func (m *QueryTotalBurnRequest) XXX_Size() int
- func (m *QueryTotalBurnRequest) XXX_Unmarshal(b []byte) error
- type QueryTotalBurnResponse
- func (*QueryTotalBurnResponse) Descriptor() ([]byte, []int)
- func (m *QueryTotalBurnResponse) GetBurnedCoins() []types1.Coin
- func (m *QueryTotalBurnResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalBurnResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalBurnResponse) ProtoMessage()
- func (m *QueryTotalBurnResponse) Reset()
- func (m *QueryTotalBurnResponse) Size() (n int)
- func (m *QueryTotalBurnResponse) String() string
- func (m *QueryTotalBurnResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTotalBurnResponse) XXX_DiscardUnknown()
- func (m *QueryTotalBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalBurnResponse) XXX_Merge(src proto.Message)
- func (m *QueryTotalBurnResponse) XXX_Size() int
- func (m *QueryTotalBurnResponse) XXX_Unmarshal(b []byte) error
- type SwapParams
- type SwapRegistry
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (t Token) GetContract() string
- func (t Token) GetInitialSupply() uint64
- func (t Token) GetMaxSupply() uint64
- func (t Token) GetMinUnit() string
- func (t Token) GetMintable() bool
- func (t Token) GetName() string
- func (t Token) GetOwner() sdk.AccAddress
- func (t Token) GetScale() uint32
- func (t Token) GetSymbol() string
- func (m *Token) Marshal() (dAtA []byte, err error)
- func (m *Token) MarshalTo(dAtA []byte) (int, error)
- func (m *Token) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) Size() (n int)
- func (m *Token) String() string
- func (t Token) ToMainCoin(coin sdk.Coin) (sdk.DecCoin, error)
- func (t Token) ToMinCoin(coin sdk.DecCoin) (newCoin sdk.Coin, err error)
- func (m *Token) Unmarshal(dAtA []byte) error
- func (t Token) Validate() error
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
- type TokenI
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) BurnToken(ctx context.Context, req *MsgBurnToken) (*MsgBurnTokenResponse, error)
- func (*UnimplementedMsgServer) DeployERC20(ctx context.Context, req *MsgDeployERC20) (*MsgDeployERC20Response, error)
- func (*UnimplementedMsgServer) EditToken(ctx context.Context, req *MsgEditToken) (*MsgEditTokenResponse, error)
- func (*UnimplementedMsgServer) IssueToken(ctx context.Context, req *MsgIssueToken) (*MsgIssueTokenResponse, error)
- func (*UnimplementedMsgServer) MintToken(ctx context.Context, req *MsgMintToken) (*MsgMintTokenResponse, error)
- func (*UnimplementedMsgServer) SwapFeeToken(ctx context.Context, req *MsgSwapFeeToken) (*MsgSwapFeeTokenResponse, error)
- func (*UnimplementedMsgServer) SwapFromERC20(ctx context.Context, req *MsgSwapFromERC20) (*MsgSwapFromERC20Response, error)
- func (*UnimplementedMsgServer) SwapToERC20(ctx context.Context, req *MsgSwapToERC20) (*MsgSwapToERC20Response, error)
- func (*UnimplementedMsgServer) TransferTokenOwner(ctx context.Context, req *MsgTransferTokenOwner) (*MsgTransferTokenOwnerResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (*UnimplementedMsgServer) UpgradeERC20(ctx context.Context, req *MsgUpgradeERC20) (*MsgUpgradeERC20Response, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Balances(ctx context.Context, req *QueryBalancesRequest) (*QueryBalancesResponse, error)
- func (*UnimplementedQueryServer) Fees(ctx context.Context, req *QueryFeesRequest) (*QueryFeesResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Token(ctx context.Context, req *QueryTokenRequest) (*QueryTokenResponse, error)
- func (*UnimplementedQueryServer) Tokens(ctx context.Context, req *QueryTokensRequest) (*QueryTokensResponse, error)
- func (*UnimplementedQueryServer) TotalBurn(ctx context.Context, req *QueryTotalBurnRequest) (*QueryTotalBurnResponse, error)
Constants ¶
const ( // MsgRoute identifies transaction types MsgRoute = "token" TypeMsgIssueToken = "issue_token" TypeMsgEditToken = "edit_token" TypeMsgMintToken = "mint_token" TypeMsgBurnToken = "burn_token" TypeMsgTransferTokenOwner = "transfer_token_owner" // DoNotModify used to indicate that some field should not be updated DoNotModify = "[do-not-modify]" )
Variables ¶
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") )
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 ( KeyTokenTaxRate = []byte("TokenTaxRate") KeyIssueTokenBaseFee = []byte("IssueTokenBaseFee") KeyMintTokenFeeRatio = []byte("MintTokenFeeRatio") )
parameter keys
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 ( ErrInvalidLengthToken = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowToken = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupToken = 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 (
Initialized bool
)
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func ParamKeyTable ¶
ParamKeyTable returns the TypeTable for the token module
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
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)
func SetNativeToken ¶
func SetNativeToken( symbol string, name string, minUnit string, decimal uint32, initialSupply, maxSupply uint64, mintable bool, owner sdk.AccAddress, )
SetNativeToken resets the system's default native token
func ValidateERC20 ¶
ValidateERC20 validates ERC20 symbol or name
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates the provided token genesis state to ensure the expected invariants holds.
Types ¶
type EventDeployERC20 ¶
type EventDeployERC20 struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Scale uint32 `protobuf:"varint,3,opt,name=scale,proto3" json:"scale,omitempty"` MinUnit string `protobuf:"bytes,4,opt,name=min_unit,json=minUnit,proto3" json:"min_unit,omitempty"` Contract string `protobuf:"bytes,5,opt,name=contract,proto3" json:"contract,omitempty"` }
EventDeployERC20 is an event emitted when deploying ERC20.
func (*EventDeployERC20) Descriptor ¶
func (*EventDeployERC20) Descriptor() ([]byte, []int)
func (*EventDeployERC20) Marshal ¶
func (m *EventDeployERC20) Marshal() (dAtA []byte, err error)
func (*EventDeployERC20) MarshalTo ¶
func (m *EventDeployERC20) MarshalTo(dAtA []byte) (int, error)
func (*EventDeployERC20) MarshalToSizedBuffer ¶
func (m *EventDeployERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventDeployERC20) ProtoMessage ¶
func (*EventDeployERC20) ProtoMessage()
func (*EventDeployERC20) Reset ¶
func (m *EventDeployERC20) Reset()
func (*EventDeployERC20) Size ¶
func (m *EventDeployERC20) Size() (n int)
func (*EventDeployERC20) String ¶
func (m *EventDeployERC20) String() string
func (*EventDeployERC20) Unmarshal ¶
func (m *EventDeployERC20) Unmarshal(dAtA []byte) error
func (*EventDeployERC20) XXX_DiscardUnknown ¶
func (m *EventDeployERC20) XXX_DiscardUnknown()
func (*EventDeployERC20) XXX_Marshal ¶
func (m *EventDeployERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventDeployERC20) XXX_Merge ¶
func (m *EventDeployERC20) XXX_Merge(src proto.Message)
func (*EventDeployERC20) XXX_Size ¶
func (m *EventDeployERC20) XXX_Size() int
func (*EventDeployERC20) XXX_Unmarshal ¶
func (m *EventDeployERC20) XXX_Unmarshal(b []byte) error
type EventSwapFromERC20 ¶
type EventSwapFromERC20 struct { WantedAmount *types.Coin `protobuf:"bytes,1,opt,name=wanted_amount,json=wantedAmount,proto3" json:"wanted_amount,omitempty"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` FromContract string `protobuf:"bytes,4,opt,name=from_contract,json=fromContract,proto3" json:"from_contract,omitempty"` }
EventSwapFromERC20 is an event emitted when swapping token from ERC20 to native token.
func (*EventSwapFromERC20) Descriptor ¶
func (*EventSwapFromERC20) Descriptor() ([]byte, []int)
func (*EventSwapFromERC20) Marshal ¶
func (m *EventSwapFromERC20) Marshal() (dAtA []byte, err error)
func (*EventSwapFromERC20) MarshalTo ¶
func (m *EventSwapFromERC20) MarshalTo(dAtA []byte) (int, error)
func (*EventSwapFromERC20) MarshalToSizedBuffer ¶
func (m *EventSwapFromERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSwapFromERC20) ProtoMessage ¶
func (*EventSwapFromERC20) ProtoMessage()
func (*EventSwapFromERC20) Reset ¶
func (m *EventSwapFromERC20) Reset()
func (*EventSwapFromERC20) Size ¶
func (m *EventSwapFromERC20) Size() (n int)
func (*EventSwapFromERC20) String ¶
func (m *EventSwapFromERC20) String() string
func (*EventSwapFromERC20) Unmarshal ¶
func (m *EventSwapFromERC20) Unmarshal(dAtA []byte) error
func (*EventSwapFromERC20) XXX_DiscardUnknown ¶
func (m *EventSwapFromERC20) XXX_DiscardUnknown()
func (*EventSwapFromERC20) XXX_Marshal ¶
func (m *EventSwapFromERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSwapFromERC20) XXX_Merge ¶
func (m *EventSwapFromERC20) XXX_Merge(src proto.Message)
func (*EventSwapFromERC20) XXX_Size ¶
func (m *EventSwapFromERC20) XXX_Size() int
func (*EventSwapFromERC20) XXX_Unmarshal ¶
func (m *EventSwapFromERC20) XXX_Unmarshal(b []byte) error
type EventSwapToERC20 ¶
type EventSwapToERC20 struct { Amount types.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` ToContract string `protobuf:"bytes,4,opt,name=to_contract,json=toContract,proto3" json:"to_contract,omitempty"` }
EventSwapToERC20 is an event emitted when swapping token from native token to ERC20.
func (*EventSwapToERC20) Descriptor ¶
func (*EventSwapToERC20) Descriptor() ([]byte, []int)
func (*EventSwapToERC20) Marshal ¶
func (m *EventSwapToERC20) Marshal() (dAtA []byte, err error)
func (*EventSwapToERC20) MarshalTo ¶
func (m *EventSwapToERC20) MarshalTo(dAtA []byte) (int, error)
func (*EventSwapToERC20) MarshalToSizedBuffer ¶
func (m *EventSwapToERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSwapToERC20) ProtoMessage ¶
func (*EventSwapToERC20) ProtoMessage()
func (*EventSwapToERC20) Reset ¶
func (m *EventSwapToERC20) Reset()
func (*EventSwapToERC20) Size ¶
func (m *EventSwapToERC20) Size() (n int)
func (*EventSwapToERC20) String ¶
func (m *EventSwapToERC20) String() string
func (*EventSwapToERC20) Unmarshal ¶
func (m *EventSwapToERC20) Unmarshal(dAtA []byte) error
func (*EventSwapToERC20) XXX_DiscardUnknown ¶
func (m *EventSwapToERC20) XXX_DiscardUnknown()
func (*EventSwapToERC20) XXX_Marshal ¶
func (m *EventSwapToERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSwapToERC20) XXX_Merge ¶
func (m *EventSwapToERC20) XXX_Merge(src proto.Message)
func (*EventSwapToERC20) XXX_Size ¶
func (m *EventSwapToERC20) XXX_Size() int
func (*EventSwapToERC20) XXX_Unmarshal ¶
func (m *EventSwapToERC20) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Tokens []Token `protobuf:"bytes,2,rep,name=tokens,proto3" json:"tokens"` BurnedCoins []types.Coin `protobuf:"bytes,3,rep,name=burned_coins,json=burnedCoins,proto3" json:"burned_coins"` }
GenesisState defines the token module's genesis state
func NewGenesisState ¶
func NewGenesisState(params Params, tokens []Token) GenesisState
NewGenesisState creates a new genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetBurnedCoins ¶
func (m *GenesisState) GetBurnedCoins() []types.Coin
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetTokens ¶
func (m *GenesisState) GetTokens() []Token
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶
func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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) 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 MsgBurnToken ¶
type MsgBurnToken struct { Coin types.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` }
MsgBurnToken defines an SDK message for burning some tokens
func (*MsgBurnToken) Descriptor ¶
func (*MsgBurnToken) Descriptor() ([]byte, []int)
func (MsgBurnToken) GetSignBytes ¶
func (msg MsgBurnToken) GetSignBytes() []byte
GetSignBytes implements Msg
func (MsgBurnToken) GetSigners ¶
func (msg MsgBurnToken) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgBurnToken) Marshal ¶
func (m *MsgBurnToken) Marshal() (dAtA []byte, err error)
func (*MsgBurnToken) MarshalTo ¶
func (m *MsgBurnToken) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnToken) MarshalToSizedBuffer ¶
func (m *MsgBurnToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnToken) ProtoMessage ¶
func (*MsgBurnToken) ProtoMessage()
func (*MsgBurnToken) Reset ¶
func (m *MsgBurnToken) Reset()
func (*MsgBurnToken) Size ¶
func (m *MsgBurnToken) Size() (n int)
func (*MsgBurnToken) String ¶
func (m *MsgBurnToken) String() string
func (*MsgBurnToken) Unmarshal ¶
func (m *MsgBurnToken) Unmarshal(dAtA []byte) error
func (MsgBurnToken) ValidateBasic ¶
func (msg MsgBurnToken) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgBurnToken) XXX_DiscardUnknown ¶
func (m *MsgBurnToken) XXX_DiscardUnknown()
func (*MsgBurnToken) XXX_Marshal ¶
func (m *MsgBurnToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnToken) XXX_Merge ¶
func (m *MsgBurnToken) XXX_Merge(src proto.Message)
func (*MsgBurnToken) XXX_Size ¶
func (m *MsgBurnToken) XXX_Size() int
func (*MsgBurnToken) XXX_Unmarshal ¶
func (m *MsgBurnToken) XXX_Unmarshal(b []byte) error
type MsgBurnTokenResponse ¶
type MsgBurnTokenResponse struct { }
MsgBurnTokenResponse defines the Msg/BurnToken response type
func (*MsgBurnTokenResponse) Descriptor ¶
func (*MsgBurnTokenResponse) Descriptor() ([]byte, []int)
func (*MsgBurnTokenResponse) Marshal ¶
func (m *MsgBurnTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnTokenResponse) MarshalTo ¶
func (m *MsgBurnTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnTokenResponse) MarshalToSizedBuffer ¶
func (m *MsgBurnTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnTokenResponse) ProtoMessage ¶
func (*MsgBurnTokenResponse) ProtoMessage()
func (*MsgBurnTokenResponse) Reset ¶
func (m *MsgBurnTokenResponse) Reset()
func (*MsgBurnTokenResponse) Size ¶
func (m *MsgBurnTokenResponse) Size() (n int)
func (*MsgBurnTokenResponse) String ¶
func (m *MsgBurnTokenResponse) String() string
func (*MsgBurnTokenResponse) Unmarshal ¶
func (m *MsgBurnTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnTokenResponse) XXX_DiscardUnknown ¶
func (m *MsgBurnTokenResponse) XXX_DiscardUnknown()
func (*MsgBurnTokenResponse) XXX_Marshal ¶
func (m *MsgBurnTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnTokenResponse) XXX_Merge ¶
func (m *MsgBurnTokenResponse) XXX_Merge(src proto.Message)
func (*MsgBurnTokenResponse) XXX_Size ¶
func (m *MsgBurnTokenResponse) XXX_Size() int
func (*MsgBurnTokenResponse) XXX_Unmarshal ¶
func (m *MsgBurnTokenResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // IssueToken defines a method for issuing a new token IssueToken(ctx context.Context, in *MsgIssueToken, opts ...grpc.CallOption) (*MsgIssueTokenResponse, error) // EditToken defines a method for editing a token EditToken(ctx context.Context, in *MsgEditToken, opts ...grpc.CallOption) (*MsgEditTokenResponse, error) // MintToken defines a method for minting some tokens MintToken(ctx context.Context, in *MsgMintToken, opts ...grpc.CallOption) (*MsgMintTokenResponse, error) // BurnToken defines a method for burning some tokens BurnToken(ctx context.Context, in *MsgBurnToken, opts ...grpc.CallOption) (*MsgBurnTokenResponse, error) // TransferTokenOwner defines a method for transfering token owner TransferTokenOwner(ctx context.Context, in *MsgTransferTokenOwner, opts ...grpc.CallOption) (*MsgTransferTokenOwnerResponse, error) // SwapFeeToken defines a method for swapping between IRIS and ERIS SwapFeeToken(ctx context.Context, in *MsgSwapFeeToken, opts ...grpc.CallOption) (*MsgSwapFeeTokenResponse, error) // SwapToERC20 defines a method for swapping some native token to its ERC20 // counterpart SwapToERC20(ctx context.Context, in *MsgSwapToERC20, opts ...grpc.CallOption) (*MsgSwapToERC20Response, error) // SwapFromERC20 defines a method for swapping some ERC20 token to its native // counterpart SwapFromERC20(ctx context.Context, in *MsgSwapFromERC20, opts ...grpc.CallOption) (*MsgSwapFromERC20Response, error) // UpdateParams defines a governance operation for updating the token // module parameters. The authority is defined in the keeper. // // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) // DeployERC20 defines a governance operation for deploying an ERC20 contract // that binds to a native token DeployERC20(ctx context.Context, in *MsgDeployERC20, opts ...grpc.CallOption) (*MsgDeployERC20Response, error) // UpgradeERC20 defines a governance operation for upgrading an ERC20 contract UpgradeERC20(ctx context.Context, in *MsgUpgradeERC20, opts ...grpc.CallOption) (*MsgUpgradeERC20Response, 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 MsgDeployERC20 ¶
type MsgDeployERC20 struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Scale uint32 `protobuf:"varint,3,opt,name=scale,proto3" json:"scale,omitempty"` MinUnit string `protobuf:"bytes,4,opt,name=min_unit,json=minUnit,proto3" json:"min_unit,omitempty"` Authority string `protobuf:"bytes,5,opt,name=authority,proto3" json:"authority,omitempty"` }
MsgDeployERC20 defines an SDK message for DeployERC20
func (*MsgDeployERC20) Descriptor ¶
func (*MsgDeployERC20) Descriptor() ([]byte, []int)
func (*MsgDeployERC20) GetSigners ¶
func (m *MsgDeployERC20) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgDeployERC20 message
func (*MsgDeployERC20) Marshal ¶
func (m *MsgDeployERC20) Marshal() (dAtA []byte, err error)
func (*MsgDeployERC20) MarshalTo ¶
func (m *MsgDeployERC20) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeployERC20) MarshalToSizedBuffer ¶
func (m *MsgDeployERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeployERC20) ProtoMessage ¶
func (*MsgDeployERC20) ProtoMessage()
func (*MsgDeployERC20) Reset ¶
func (m *MsgDeployERC20) Reset()
func (*MsgDeployERC20) Size ¶
func (m *MsgDeployERC20) Size() (n int)
func (*MsgDeployERC20) String ¶
func (m *MsgDeployERC20) String() string
func (*MsgDeployERC20) Unmarshal ¶
func (m *MsgDeployERC20) Unmarshal(dAtA []byte) error
func (*MsgDeployERC20) ValidateBasic ¶
func (m *MsgDeployERC20) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgDeployERC20) XXX_DiscardUnknown ¶
func (m *MsgDeployERC20) XXX_DiscardUnknown()
func (*MsgDeployERC20) XXX_Marshal ¶
func (m *MsgDeployERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeployERC20) XXX_Merge ¶
func (m *MsgDeployERC20) XXX_Merge(src proto.Message)
func (*MsgDeployERC20) XXX_Size ¶
func (m *MsgDeployERC20) XXX_Size() int
func (*MsgDeployERC20) XXX_Unmarshal ¶
func (m *MsgDeployERC20) XXX_Unmarshal(b []byte) error
type MsgDeployERC20Response ¶
type MsgDeployERC20Response struct { }
MsgDeployERC20Response defines the Msg/DeployERC20 response type
func (*MsgDeployERC20Response) Descriptor ¶
func (*MsgDeployERC20Response) Descriptor() ([]byte, []int)
func (*MsgDeployERC20Response) Marshal ¶
func (m *MsgDeployERC20Response) Marshal() (dAtA []byte, err error)
func (*MsgDeployERC20Response) MarshalTo ¶
func (m *MsgDeployERC20Response) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeployERC20Response) MarshalToSizedBuffer ¶
func (m *MsgDeployERC20Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeployERC20Response) ProtoMessage ¶
func (*MsgDeployERC20Response) ProtoMessage()
func (*MsgDeployERC20Response) Reset ¶
func (m *MsgDeployERC20Response) Reset()
func (*MsgDeployERC20Response) Size ¶
func (m *MsgDeployERC20Response) Size() (n int)
func (*MsgDeployERC20Response) String ¶
func (m *MsgDeployERC20Response) String() string
func (*MsgDeployERC20Response) Unmarshal ¶
func (m *MsgDeployERC20Response) Unmarshal(dAtA []byte) error
func (*MsgDeployERC20Response) XXX_DiscardUnknown ¶
func (m *MsgDeployERC20Response) XXX_DiscardUnknown()
func (*MsgDeployERC20Response) XXX_Marshal ¶
func (m *MsgDeployERC20Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeployERC20Response) XXX_Merge ¶
func (m *MsgDeployERC20Response) XXX_Merge(src proto.Message)
func (*MsgDeployERC20Response) XXX_Size ¶
func (m *MsgDeployERC20Response) XXX_Size() int
func (*MsgDeployERC20Response) XXX_Unmarshal ¶
func (m *MsgDeployERC20Response) XXX_Unmarshal(b []byte) error
type MsgEditToken ¶
type MsgEditToken struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` MaxSupply uint64 `protobuf:"varint,3,opt,name=max_supply,json=maxSupply,proto3" json:"max_supply,omitempty"` Mintable mods_irisnet_org_modules_token_types.Bool `protobuf:"bytes,4,opt,name=mintable,proto3,casttype=mods.irisnet.org/modules/token/types.Bool" json:"mintable,omitempty"` Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgEditToken defines an SDK message for editing a new token
func NewMsgEditToken ¶
func NewMsgEditToken( name, symbol string, maxSupply uint64, mintable tokentypes.Bool, owner string, ) *MsgEditToken
NewMsgEditToken creates a MsgEditToken
func (*MsgEditToken) Descriptor ¶
func (*MsgEditToken) Descriptor() ([]byte, []int)
func (MsgEditToken) GetSignBytes ¶
func (msg MsgEditToken) GetSignBytes() []byte
GetSignBytes implements Msg
func (MsgEditToken) GetSigners ¶
func (msg MsgEditToken) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgEditToken) Marshal ¶
func (m *MsgEditToken) Marshal() (dAtA []byte, err error)
func (*MsgEditToken) MarshalTo ¶
func (m *MsgEditToken) MarshalTo(dAtA []byte) (int, error)
func (*MsgEditToken) MarshalToSizedBuffer ¶
func (m *MsgEditToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditToken) ProtoMessage ¶
func (*MsgEditToken) ProtoMessage()
func (*MsgEditToken) Reset ¶
func (m *MsgEditToken) Reset()
func (*MsgEditToken) Size ¶
func (m *MsgEditToken) Size() (n int)
func (*MsgEditToken) String ¶
func (m *MsgEditToken) String() string
func (*MsgEditToken) Unmarshal ¶
func (m *MsgEditToken) Unmarshal(dAtA []byte) error
func (MsgEditToken) ValidateBasic ¶
func (msg MsgEditToken) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgEditToken) XXX_DiscardUnknown ¶
func (m *MsgEditToken) XXX_DiscardUnknown()
func (*MsgEditToken) XXX_Marshal ¶
func (m *MsgEditToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEditToken) XXX_Merge ¶
func (m *MsgEditToken) XXX_Merge(src proto.Message)
func (*MsgEditToken) XXX_Size ¶
func (m *MsgEditToken) XXX_Size() int
func (*MsgEditToken) XXX_Unmarshal ¶
func (m *MsgEditToken) XXX_Unmarshal(b []byte) error
type MsgEditTokenResponse ¶
type MsgEditTokenResponse struct { }
MsgEditTokenResponse defines the Msg/EditToken response type
func (*MsgEditTokenResponse) Descriptor ¶
func (*MsgEditTokenResponse) Descriptor() ([]byte, []int)
func (*MsgEditTokenResponse) Marshal ¶
func (m *MsgEditTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgEditTokenResponse) MarshalTo ¶
func (m *MsgEditTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgEditTokenResponse) MarshalToSizedBuffer ¶
func (m *MsgEditTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditTokenResponse) ProtoMessage ¶
func (*MsgEditTokenResponse) ProtoMessage()
func (*MsgEditTokenResponse) Reset ¶
func (m *MsgEditTokenResponse) Reset()
func (*MsgEditTokenResponse) Size ¶
func (m *MsgEditTokenResponse) Size() (n int)
func (*MsgEditTokenResponse) String ¶
func (m *MsgEditTokenResponse) String() string
func (*MsgEditTokenResponse) Unmarshal ¶
func (m *MsgEditTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgEditTokenResponse) XXX_DiscardUnknown ¶
func (m *MsgEditTokenResponse) XXX_DiscardUnknown()
func (*MsgEditTokenResponse) XXX_Marshal ¶
func (m *MsgEditTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEditTokenResponse) XXX_Merge ¶
func (m *MsgEditTokenResponse) XXX_Merge(src proto.Message)
func (*MsgEditTokenResponse) XXX_Size ¶
func (m *MsgEditTokenResponse) XXX_Size() int
func (*MsgEditTokenResponse) XXX_Unmarshal ¶
func (m *MsgEditTokenResponse) XXX_Unmarshal(b []byte) error
type MsgIssueToken ¶
type MsgIssueToken struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Scale uint32 `protobuf:"varint,3,opt,name=scale,proto3" json:"scale,omitempty"` MinUnit string `protobuf:"bytes,4,opt,name=min_unit,json=minUnit,proto3" json:"min_unit,omitempty"` InitialSupply uint64 `protobuf:"varint,5,opt,name=initial_supply,json=initialSupply,proto3" json:"initial_supply,omitempty"` MaxSupply uint64 `protobuf:"varint,6,opt,name=max_supply,json=maxSupply,proto3" json:"max_supply,omitempty"` Mintable bool `protobuf:"varint,7,opt,name=mintable,proto3" json:"mintable,omitempty"` Owner string `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgIssueToken defines an SDK message for issuing a new token
func NewMsgIssueToken ¶
func NewMsgIssueToken( symbol, minUnit, name string, scale uint32, initialSupply, maxSupply uint64, mintable bool, owner string, ) *MsgIssueToken
NewMsgIssueToken - construct token issue msg.
func (*MsgIssueToken) Descriptor ¶
func (*MsgIssueToken) Descriptor() ([]byte, []int)
func (MsgIssueToken) GetSignBytes ¶
func (msg MsgIssueToken) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgIssueToken) GetSigners ¶
func (msg MsgIssueToken) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgIssueToken) Marshal ¶
func (m *MsgIssueToken) Marshal() (dAtA []byte, err error)
func (*MsgIssueToken) MarshalTo ¶
func (m *MsgIssueToken) MarshalTo(dAtA []byte) (int, error)
func (*MsgIssueToken) MarshalToSizedBuffer ¶
func (m *MsgIssueToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueToken) ProtoMessage ¶
func (*MsgIssueToken) ProtoMessage()
func (*MsgIssueToken) Reset ¶
func (m *MsgIssueToken) Reset()
func (*MsgIssueToken) Size ¶
func (m *MsgIssueToken) Size() (n int)
func (*MsgIssueToken) String ¶
func (m *MsgIssueToken) String() string
func (*MsgIssueToken) Unmarshal ¶
func (m *MsgIssueToken) Unmarshal(dAtA []byte) error
func (MsgIssueToken) ValidateBasic ¶
func (msg MsgIssueToken) ValidateBasic() error
ValidateBasic Implements Msg.
func (*MsgIssueToken) XXX_DiscardUnknown ¶
func (m *MsgIssueToken) XXX_DiscardUnknown()
func (*MsgIssueToken) XXX_Marshal ¶
func (m *MsgIssueToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueToken) XXX_Merge ¶
func (m *MsgIssueToken) XXX_Merge(src proto.Message)
func (*MsgIssueToken) XXX_Size ¶
func (m *MsgIssueToken) XXX_Size() int
func (*MsgIssueToken) XXX_Unmarshal ¶
func (m *MsgIssueToken) XXX_Unmarshal(b []byte) error
type MsgIssueTokenResponse ¶
type MsgIssueTokenResponse struct { }
MsgIssueTokenResponse defines the Msg/IssueToken response type
func (*MsgIssueTokenResponse) Descriptor ¶
func (*MsgIssueTokenResponse) Descriptor() ([]byte, []int)
func (*MsgIssueTokenResponse) Marshal ¶
func (m *MsgIssueTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgIssueTokenResponse) MarshalTo ¶
func (m *MsgIssueTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgIssueTokenResponse) MarshalToSizedBuffer ¶
func (m *MsgIssueTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueTokenResponse) ProtoMessage ¶
func (*MsgIssueTokenResponse) ProtoMessage()
func (*MsgIssueTokenResponse) Reset ¶
func (m *MsgIssueTokenResponse) Reset()
func (*MsgIssueTokenResponse) Size ¶
func (m *MsgIssueTokenResponse) Size() (n int)
func (*MsgIssueTokenResponse) String ¶
func (m *MsgIssueTokenResponse) String() string
func (*MsgIssueTokenResponse) Unmarshal ¶
func (m *MsgIssueTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgIssueTokenResponse) XXX_DiscardUnknown ¶
func (m *MsgIssueTokenResponse) XXX_DiscardUnknown()
func (*MsgIssueTokenResponse) XXX_Marshal ¶
func (m *MsgIssueTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueTokenResponse) XXX_Merge ¶
func (m *MsgIssueTokenResponse) XXX_Merge(src proto.Message)
func (*MsgIssueTokenResponse) XXX_Size ¶
func (m *MsgIssueTokenResponse) XXX_Size() int
func (*MsgIssueTokenResponse) XXX_Unmarshal ¶
func (m *MsgIssueTokenResponse) XXX_Unmarshal(b []byte) error
type MsgMintToken ¶
type MsgMintToken struct { Coin types.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgMintToken defines an SDK message for minting a new token
func (*MsgMintToken) Descriptor ¶
func (*MsgMintToken) Descriptor() ([]byte, []int)
func (MsgMintToken) GetSignBytes ¶
func (msg MsgMintToken) GetSignBytes() []byte
GetSignBytes implements Msg
func (MsgMintToken) GetSigners ¶
func (msg MsgMintToken) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgMintToken) Marshal ¶
func (m *MsgMintToken) Marshal() (dAtA []byte, err error)
func (*MsgMintToken) MarshalTo ¶
func (m *MsgMintToken) MarshalTo(dAtA []byte) (int, error)
func (*MsgMintToken) MarshalToSizedBuffer ¶
func (m *MsgMintToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintToken) ProtoMessage ¶
func (*MsgMintToken) ProtoMessage()
func (*MsgMintToken) Reset ¶
func (m *MsgMintToken) Reset()
func (*MsgMintToken) Size ¶
func (m *MsgMintToken) Size() (n int)
func (*MsgMintToken) String ¶
func (m *MsgMintToken) String() string
func (*MsgMintToken) Unmarshal ¶
func (m *MsgMintToken) Unmarshal(dAtA []byte) error
func (MsgMintToken) ValidateBasic ¶
func (msg MsgMintToken) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgMintToken) XXX_DiscardUnknown ¶
func (m *MsgMintToken) XXX_DiscardUnknown()
func (*MsgMintToken) XXX_Marshal ¶
func (m *MsgMintToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintToken) XXX_Merge ¶
func (m *MsgMintToken) XXX_Merge(src proto.Message)
func (*MsgMintToken) XXX_Size ¶
func (m *MsgMintToken) XXX_Size() int
func (*MsgMintToken) XXX_Unmarshal ¶
func (m *MsgMintToken) XXX_Unmarshal(b []byte) error
type MsgMintTokenResponse ¶
type MsgMintTokenResponse struct { }
MsgMintTokenResponse defines the Msg/MintToken response type
func (*MsgMintTokenResponse) Descriptor ¶
func (*MsgMintTokenResponse) Descriptor() ([]byte, []int)
func (*MsgMintTokenResponse) Marshal ¶
func (m *MsgMintTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintTokenResponse) MarshalTo ¶
func (m *MsgMintTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMintTokenResponse) MarshalToSizedBuffer ¶
func (m *MsgMintTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintTokenResponse) ProtoMessage ¶
func (*MsgMintTokenResponse) ProtoMessage()
func (*MsgMintTokenResponse) Reset ¶
func (m *MsgMintTokenResponse) Reset()
func (*MsgMintTokenResponse) Size ¶
func (m *MsgMintTokenResponse) Size() (n int)
func (*MsgMintTokenResponse) String ¶
func (m *MsgMintTokenResponse) String() string
func (*MsgMintTokenResponse) Unmarshal ¶
func (m *MsgMintTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgMintTokenResponse) XXX_DiscardUnknown ¶
func (m *MsgMintTokenResponse) XXX_DiscardUnknown()
func (*MsgMintTokenResponse) XXX_Marshal ¶
func (m *MsgMintTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintTokenResponse) XXX_Merge ¶
func (m *MsgMintTokenResponse) XXX_Merge(src proto.Message)
func (*MsgMintTokenResponse) XXX_Size ¶
func (m *MsgMintTokenResponse) XXX_Size() int
func (*MsgMintTokenResponse) XXX_Unmarshal ¶
func (m *MsgMintTokenResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // IssueToken defines a method for issuing a new token IssueToken(context.Context, *MsgIssueToken) (*MsgIssueTokenResponse, error) // EditToken defines a method for editing a token EditToken(context.Context, *MsgEditToken) (*MsgEditTokenResponse, error) // MintToken defines a method for minting some tokens MintToken(context.Context, *MsgMintToken) (*MsgMintTokenResponse, error) // BurnToken defines a method for burning some tokens BurnToken(context.Context, *MsgBurnToken) (*MsgBurnTokenResponse, error) // TransferTokenOwner defines a method for transfering token owner TransferTokenOwner(context.Context, *MsgTransferTokenOwner) (*MsgTransferTokenOwnerResponse, error) // SwapFeeToken defines a method for swapping between IRIS and ERIS SwapFeeToken(context.Context, *MsgSwapFeeToken) (*MsgSwapFeeTokenResponse, error) // SwapToERC20 defines a method for swapping some native token to its ERC20 // counterpart SwapToERC20(context.Context, *MsgSwapToERC20) (*MsgSwapToERC20Response, error) // SwapFromERC20 defines a method for swapping some ERC20 token to its native // counterpart SwapFromERC20(context.Context, *MsgSwapFromERC20) (*MsgSwapFromERC20Response, error) // UpdateParams defines a governance operation for updating the token // module parameters. The authority is defined in the keeper. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // DeployERC20 defines a governance operation for deploying an ERC20 contract // that binds to a native token DeployERC20(context.Context, *MsgDeployERC20) (*MsgDeployERC20Response, error) // UpgradeERC20 defines a governance operation for upgrading an ERC20 contract UpgradeERC20(context.Context, *MsgUpgradeERC20) (*MsgUpgradeERC20Response, error) }
MsgServer is the server API for Msg service.
type MsgSwapFeeToken ¶
type MsgSwapFeeToken struct { FeePaid types.Coin `protobuf:"bytes,1,opt,name=fee_paid,json=feePaid,proto3" json:"fee_paid"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` }
MsgSwapFeeToken defines an SDK message for swap fee token
func (*MsgSwapFeeToken) Descriptor ¶
func (*MsgSwapFeeToken) Descriptor() ([]byte, []int)
func (MsgSwapFeeToken) GetSignBytes ¶
func (msg MsgSwapFeeToken) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgSwapFeeToken) GetSigners ¶
func (msg MsgSwapFeeToken) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgSwapFeeToken) Marshal ¶
func (m *MsgSwapFeeToken) Marshal() (dAtA []byte, err error)
func (*MsgSwapFeeToken) MarshalTo ¶
func (m *MsgSwapFeeToken) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapFeeToken) MarshalToSizedBuffer ¶
func (m *MsgSwapFeeToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapFeeToken) ProtoMessage ¶
func (*MsgSwapFeeToken) ProtoMessage()
func (*MsgSwapFeeToken) Reset ¶
func (m *MsgSwapFeeToken) Reset()
func (*MsgSwapFeeToken) Size ¶
func (m *MsgSwapFeeToken) Size() (n int)
func (*MsgSwapFeeToken) String ¶
func (m *MsgSwapFeeToken) String() string
func (*MsgSwapFeeToken) Unmarshal ¶
func (m *MsgSwapFeeToken) Unmarshal(dAtA []byte) error
func (MsgSwapFeeToken) ValidateBasic ¶
func (msg MsgSwapFeeToken) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgSwapFeeToken) XXX_DiscardUnknown ¶
func (m *MsgSwapFeeToken) XXX_DiscardUnknown()
func (*MsgSwapFeeToken) XXX_Marshal ¶
func (m *MsgSwapFeeToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapFeeToken) XXX_Merge ¶
func (m *MsgSwapFeeToken) XXX_Merge(src proto.Message)
func (*MsgSwapFeeToken) XXX_Size ¶
func (m *MsgSwapFeeToken) XXX_Size() int
func (*MsgSwapFeeToken) XXX_Unmarshal ¶
func (m *MsgSwapFeeToken) XXX_Unmarshal(b []byte) error
type MsgSwapFeeTokenResponse ¶
type MsgSwapFeeTokenResponse struct {
FeeGot types.Coin `protobuf:"bytes,1,opt,name=fee_got,json=feeGot,proto3" json:"fee_got"`
}
MsgSwapFeeTokenResponse defines the Msg/SwapFeeToken response type
func (*MsgSwapFeeTokenResponse) Descriptor ¶
func (*MsgSwapFeeTokenResponse) Descriptor() ([]byte, []int)
func (*MsgSwapFeeTokenResponse) Marshal ¶
func (m *MsgSwapFeeTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgSwapFeeTokenResponse) MarshalTo ¶
func (m *MsgSwapFeeTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapFeeTokenResponse) MarshalToSizedBuffer ¶
func (m *MsgSwapFeeTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapFeeTokenResponse) ProtoMessage ¶
func (*MsgSwapFeeTokenResponse) ProtoMessage()
func (*MsgSwapFeeTokenResponse) Reset ¶
func (m *MsgSwapFeeTokenResponse) Reset()
func (*MsgSwapFeeTokenResponse) Size ¶
func (m *MsgSwapFeeTokenResponse) Size() (n int)
func (*MsgSwapFeeTokenResponse) String ¶
func (m *MsgSwapFeeTokenResponse) String() string
func (*MsgSwapFeeTokenResponse) Unmarshal ¶
func (m *MsgSwapFeeTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgSwapFeeTokenResponse) XXX_DiscardUnknown ¶
func (m *MsgSwapFeeTokenResponse) XXX_DiscardUnknown()
func (*MsgSwapFeeTokenResponse) XXX_Marshal ¶
func (m *MsgSwapFeeTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapFeeTokenResponse) XXX_Merge ¶
func (m *MsgSwapFeeTokenResponse) XXX_Merge(src proto.Message)
func (*MsgSwapFeeTokenResponse) XXX_Size ¶
func (m *MsgSwapFeeTokenResponse) XXX_Size() int
func (*MsgSwapFeeTokenResponse) XXX_Unmarshal ¶
func (m *MsgSwapFeeTokenResponse) XXX_Unmarshal(b []byte) error
type MsgSwapFromERC20 ¶
type MsgSwapFromERC20 struct { WantedAmount types.Coin `protobuf:"bytes,1,opt,name=wanted_amount,json=wantedAmount,proto3" json:"wanted_amount"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` }
MsgSwapFromERC20 defines an SDK message for SwapFromERC20
func (*MsgSwapFromERC20) Descriptor ¶
func (*MsgSwapFromERC20) Descriptor() ([]byte, []int)
func (*MsgSwapFromERC20) GetSigners ¶
func (m *MsgSwapFromERC20) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgSwapFromERC20 message
func (*MsgSwapFromERC20) Marshal ¶
func (m *MsgSwapFromERC20) Marshal() (dAtA []byte, err error)
func (*MsgSwapFromERC20) MarshalTo ¶
func (m *MsgSwapFromERC20) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapFromERC20) MarshalToSizedBuffer ¶
func (m *MsgSwapFromERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapFromERC20) ProtoMessage ¶
func (*MsgSwapFromERC20) ProtoMessage()
func (*MsgSwapFromERC20) Reset ¶
func (m *MsgSwapFromERC20) Reset()
func (*MsgSwapFromERC20) Size ¶
func (m *MsgSwapFromERC20) Size() (n int)
func (*MsgSwapFromERC20) String ¶
func (m *MsgSwapFromERC20) String() string
func (*MsgSwapFromERC20) Unmarshal ¶
func (m *MsgSwapFromERC20) Unmarshal(dAtA []byte) error
func (*MsgSwapFromERC20) ValidateBasic ¶
func (m *MsgSwapFromERC20) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgSwapFromERC20) XXX_DiscardUnknown ¶
func (m *MsgSwapFromERC20) XXX_DiscardUnknown()
func (*MsgSwapFromERC20) XXX_Marshal ¶
func (m *MsgSwapFromERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapFromERC20) XXX_Merge ¶
func (m *MsgSwapFromERC20) XXX_Merge(src proto.Message)
func (*MsgSwapFromERC20) XXX_Size ¶
func (m *MsgSwapFromERC20) XXX_Size() int
func (*MsgSwapFromERC20) XXX_Unmarshal ¶
func (m *MsgSwapFromERC20) XXX_Unmarshal(b []byte) error
type MsgSwapFromERC20Response ¶
type MsgSwapFromERC20Response struct { }
MsgSwapFromERC20Response defines the Msg/SwapFromERC20 response type
func (*MsgSwapFromERC20Response) Descriptor ¶
func (*MsgSwapFromERC20Response) Descriptor() ([]byte, []int)
func (*MsgSwapFromERC20Response) Marshal ¶
func (m *MsgSwapFromERC20Response) Marshal() (dAtA []byte, err error)
func (*MsgSwapFromERC20Response) MarshalTo ¶
func (m *MsgSwapFromERC20Response) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapFromERC20Response) MarshalToSizedBuffer ¶
func (m *MsgSwapFromERC20Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapFromERC20Response) ProtoMessage ¶
func (*MsgSwapFromERC20Response) ProtoMessage()
func (*MsgSwapFromERC20Response) Reset ¶
func (m *MsgSwapFromERC20Response) Reset()
func (*MsgSwapFromERC20Response) Size ¶
func (m *MsgSwapFromERC20Response) Size() (n int)
func (*MsgSwapFromERC20Response) String ¶
func (m *MsgSwapFromERC20Response) String() string
func (*MsgSwapFromERC20Response) Unmarshal ¶
func (m *MsgSwapFromERC20Response) Unmarshal(dAtA []byte) error
func (*MsgSwapFromERC20Response) XXX_DiscardUnknown ¶
func (m *MsgSwapFromERC20Response) XXX_DiscardUnknown()
func (*MsgSwapFromERC20Response) XXX_Marshal ¶
func (m *MsgSwapFromERC20Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapFromERC20Response) XXX_Merge ¶
func (m *MsgSwapFromERC20Response) XXX_Merge(src proto.Message)
func (*MsgSwapFromERC20Response) XXX_Size ¶
func (m *MsgSwapFromERC20Response) XXX_Size() int
func (*MsgSwapFromERC20Response) XXX_Unmarshal ¶
func (m *MsgSwapFromERC20Response) XXX_Unmarshal(b []byte) error
type MsgSwapToERC20 ¶
type MsgSwapToERC20 struct { Amount types.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` }
MsgSwapToERC20 defines an SDK message for SwapToERC20
func (*MsgSwapToERC20) Descriptor ¶
func (*MsgSwapToERC20) Descriptor() ([]byte, []int)
func (*MsgSwapToERC20) GetSigners ¶
func (m *MsgSwapToERC20) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgSwapToERC20 message
func (*MsgSwapToERC20) Marshal ¶
func (m *MsgSwapToERC20) Marshal() (dAtA []byte, err error)
func (*MsgSwapToERC20) MarshalTo ¶
func (m *MsgSwapToERC20) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapToERC20) MarshalToSizedBuffer ¶
func (m *MsgSwapToERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapToERC20) ProtoMessage ¶
func (*MsgSwapToERC20) ProtoMessage()
func (*MsgSwapToERC20) Reset ¶
func (m *MsgSwapToERC20) Reset()
func (*MsgSwapToERC20) Size ¶
func (m *MsgSwapToERC20) Size() (n int)
func (*MsgSwapToERC20) String ¶
func (m *MsgSwapToERC20) String() string
func (*MsgSwapToERC20) Unmarshal ¶
func (m *MsgSwapToERC20) Unmarshal(dAtA []byte) error
func (*MsgSwapToERC20) ValidateBasic ¶
func (m *MsgSwapToERC20) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgSwapToERC20) XXX_DiscardUnknown ¶
func (m *MsgSwapToERC20) XXX_DiscardUnknown()
func (*MsgSwapToERC20) XXX_Marshal ¶
func (m *MsgSwapToERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapToERC20) XXX_Merge ¶
func (m *MsgSwapToERC20) XXX_Merge(src proto.Message)
func (*MsgSwapToERC20) XXX_Size ¶
func (m *MsgSwapToERC20) XXX_Size() int
func (*MsgSwapToERC20) XXX_Unmarshal ¶
func (m *MsgSwapToERC20) XXX_Unmarshal(b []byte) error
type MsgSwapToERC20Response ¶
type MsgSwapToERC20Response struct { }
MsgSwapToERC20Response defines the Msg/SwapToERC20 response type
func (*MsgSwapToERC20Response) Descriptor ¶
func (*MsgSwapToERC20Response) Descriptor() ([]byte, []int)
func (*MsgSwapToERC20Response) Marshal ¶
func (m *MsgSwapToERC20Response) Marshal() (dAtA []byte, err error)
func (*MsgSwapToERC20Response) MarshalTo ¶
func (m *MsgSwapToERC20Response) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapToERC20Response) MarshalToSizedBuffer ¶
func (m *MsgSwapToERC20Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapToERC20Response) ProtoMessage ¶
func (*MsgSwapToERC20Response) ProtoMessage()
func (*MsgSwapToERC20Response) Reset ¶
func (m *MsgSwapToERC20Response) Reset()
func (*MsgSwapToERC20Response) Size ¶
func (m *MsgSwapToERC20Response) Size() (n int)
func (*MsgSwapToERC20Response) String ¶
func (m *MsgSwapToERC20Response) String() string
func (*MsgSwapToERC20Response) Unmarshal ¶
func (m *MsgSwapToERC20Response) Unmarshal(dAtA []byte) error
func (*MsgSwapToERC20Response) XXX_DiscardUnknown ¶
func (m *MsgSwapToERC20Response) XXX_DiscardUnknown()
func (*MsgSwapToERC20Response) XXX_Marshal ¶
func (m *MsgSwapToERC20Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapToERC20Response) XXX_Merge ¶
func (m *MsgSwapToERC20Response) XXX_Merge(src proto.Message)
func (*MsgSwapToERC20Response) XXX_Size ¶
func (m *MsgSwapToERC20Response) XXX_Size() int
func (*MsgSwapToERC20Response) XXX_Unmarshal ¶
func (m *MsgSwapToERC20Response) XXX_Unmarshal(b []byte) error
type MsgTransferTokenOwner ¶
type MsgTransferTokenOwner struct { SrcOwner string `protobuf:"bytes,1,opt,name=src_owner,json=srcOwner,proto3" json:"src_owner,omitempty"` DstOwner string `protobuf:"bytes,2,opt,name=dst_owner,json=dstOwner,proto3" json:"dst_owner,omitempty"` Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` }
MsgTransferTokenOwner defines an SDK message for transferring the token owner
func NewMsgTransferTokenOwner ¶
func NewMsgTransferTokenOwner(srcOwner, dstOwner, symbol string) *MsgTransferTokenOwner
NewMsgTransferTokenOwner return a instance of MsgTransferTokenOwner
func (*MsgTransferTokenOwner) Descriptor ¶
func (*MsgTransferTokenOwner) Descriptor() ([]byte, []int)
func (MsgTransferTokenOwner) GetSignBytes ¶
func (msg MsgTransferTokenOwner) GetSignBytes() []byte
GetSignBytes implements Msg
func (MsgTransferTokenOwner) GetSigners ¶
func (msg MsgTransferTokenOwner) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgTransferTokenOwner) Marshal ¶
func (m *MsgTransferTokenOwner) Marshal() (dAtA []byte, err error)
func (*MsgTransferTokenOwner) MarshalTo ¶
func (m *MsgTransferTokenOwner) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferTokenOwner) MarshalToSizedBuffer ¶
func (m *MsgTransferTokenOwner) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferTokenOwner) ProtoMessage ¶
func (*MsgTransferTokenOwner) ProtoMessage()
func (*MsgTransferTokenOwner) Reset ¶
func (m *MsgTransferTokenOwner) Reset()
func (MsgTransferTokenOwner) Route ¶
func (msg MsgTransferTokenOwner) Route() string
Route implements Msg
func (*MsgTransferTokenOwner) Size ¶
func (m *MsgTransferTokenOwner) Size() (n int)
func (*MsgTransferTokenOwner) String ¶
func (m *MsgTransferTokenOwner) String() string
func (MsgTransferTokenOwner) Type ¶
func (msg MsgTransferTokenOwner) Type() string
Type implements Msg
func (*MsgTransferTokenOwner) Unmarshal ¶
func (m *MsgTransferTokenOwner) Unmarshal(dAtA []byte) error
func (MsgTransferTokenOwner) ValidateBasic ¶
func (msg MsgTransferTokenOwner) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgTransferTokenOwner) XXX_DiscardUnknown ¶
func (m *MsgTransferTokenOwner) XXX_DiscardUnknown()
func (*MsgTransferTokenOwner) XXX_Marshal ¶
func (m *MsgTransferTokenOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferTokenOwner) XXX_Merge ¶
func (m *MsgTransferTokenOwner) XXX_Merge(src proto.Message)
func (*MsgTransferTokenOwner) XXX_Size ¶
func (m *MsgTransferTokenOwner) XXX_Size() int
func (*MsgTransferTokenOwner) XXX_Unmarshal ¶
func (m *MsgTransferTokenOwner) XXX_Unmarshal(b []byte) error
type MsgTransferTokenOwnerResponse ¶
type MsgTransferTokenOwnerResponse struct { }
MsgTransferTokenOwnerResponse defines the Msg/TransferTokenOwner response type
func (*MsgTransferTokenOwnerResponse) Descriptor ¶
func (*MsgTransferTokenOwnerResponse) Descriptor() ([]byte, []int)
func (*MsgTransferTokenOwnerResponse) Marshal ¶
func (m *MsgTransferTokenOwnerResponse) Marshal() (dAtA []byte, err error)
func (*MsgTransferTokenOwnerResponse) MarshalTo ¶
func (m *MsgTransferTokenOwnerResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferTokenOwnerResponse) MarshalToSizedBuffer ¶
func (m *MsgTransferTokenOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferTokenOwnerResponse) ProtoMessage ¶
func (*MsgTransferTokenOwnerResponse) ProtoMessage()
func (*MsgTransferTokenOwnerResponse) Reset ¶
func (m *MsgTransferTokenOwnerResponse) Reset()
func (*MsgTransferTokenOwnerResponse) Size ¶
func (m *MsgTransferTokenOwnerResponse) Size() (n int)
func (*MsgTransferTokenOwnerResponse) String ¶
func (m *MsgTransferTokenOwnerResponse) String() string
func (*MsgTransferTokenOwnerResponse) Unmarshal ¶
func (m *MsgTransferTokenOwnerResponse) Unmarshal(dAtA []byte) error
func (*MsgTransferTokenOwnerResponse) XXX_DiscardUnknown ¶
func (m *MsgTransferTokenOwnerResponse) XXX_DiscardUnknown()
func (*MsgTransferTokenOwnerResponse) XXX_Marshal ¶
func (m *MsgTransferTokenOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferTokenOwnerResponse) XXX_Merge ¶
func (m *MsgTransferTokenOwnerResponse) XXX_Merge(src proto.Message)
func (*MsgTransferTokenOwnerResponse) XXX_Size ¶
func (m *MsgTransferTokenOwnerResponse) XXX_Size() int
func (*MsgTransferTokenOwnerResponse) XXX_Unmarshal ¶
func (m *MsgTransferTokenOwnerResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to token unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the token parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
Since: cosmos-sdk 0.47
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetSignBytes ¶
func (m *MsgUpdateParams) GetSignBytes() []byte
GetSignBytes returns the raw bytes for a MsgUpdateParams message that the expected signer needs to sign.
func (*MsgUpdateParams) GetSigners ¶
func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpdateParams message
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic executes sanity validation on the provided data
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type MsgUpgradeERC20 ¶
type MsgUpgradeERC20 struct { // implementation is the new erc20 contract address Implementation string `protobuf:"bytes,1,opt,name=implementation,proto3" json:"implementation,omitempty"` Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"` }
MsgUpgradeERC20 defines an SDK message for UpgradeERC20
func (*MsgUpgradeERC20) Descriptor ¶
func (*MsgUpgradeERC20) Descriptor() ([]byte, []int)
func (*MsgUpgradeERC20) GetSigners ¶
func (m *MsgUpgradeERC20) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpgradeERC20 message
func (*MsgUpgradeERC20) Marshal ¶
func (m *MsgUpgradeERC20) Marshal() (dAtA []byte, err error)
func (*MsgUpgradeERC20) MarshalTo ¶
func (m *MsgUpgradeERC20) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpgradeERC20) MarshalToSizedBuffer ¶
func (m *MsgUpgradeERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpgradeERC20) ProtoMessage ¶
func (*MsgUpgradeERC20) ProtoMessage()
func (*MsgUpgradeERC20) Reset ¶
func (m *MsgUpgradeERC20) Reset()
func (*MsgUpgradeERC20) Size ¶
func (m *MsgUpgradeERC20) Size() (n int)
func (*MsgUpgradeERC20) String ¶
func (m *MsgUpgradeERC20) String() string
func (*MsgUpgradeERC20) Unmarshal ¶
func (m *MsgUpgradeERC20) Unmarshal(dAtA []byte) error
func (*MsgUpgradeERC20) ValidateBasic ¶
func (m *MsgUpgradeERC20) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgUpgradeERC20) XXX_DiscardUnknown ¶
func (m *MsgUpgradeERC20) XXX_DiscardUnknown()
func (*MsgUpgradeERC20) XXX_Marshal ¶
func (m *MsgUpgradeERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpgradeERC20) XXX_Merge ¶
func (m *MsgUpgradeERC20) XXX_Merge(src proto.Message)
func (*MsgUpgradeERC20) XXX_Size ¶
func (m *MsgUpgradeERC20) XXX_Size() int
func (*MsgUpgradeERC20) XXX_Unmarshal ¶
func (m *MsgUpgradeERC20) XXX_Unmarshal(b []byte) error
type MsgUpgradeERC20Response ¶
type MsgUpgradeERC20Response struct { }
MsgUpgradeERC20Response defines the Msg/UpgradeERC20 response type
func (*MsgUpgradeERC20Response) Descriptor ¶
func (*MsgUpgradeERC20Response) Descriptor() ([]byte, []int)
func (*MsgUpgradeERC20Response) Marshal ¶
func (m *MsgUpgradeERC20Response) Marshal() (dAtA []byte, err error)
func (*MsgUpgradeERC20Response) MarshalTo ¶
func (m *MsgUpgradeERC20Response) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpgradeERC20Response) MarshalToSizedBuffer ¶
func (m *MsgUpgradeERC20Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpgradeERC20Response) ProtoMessage ¶
func (*MsgUpgradeERC20Response) ProtoMessage()
func (*MsgUpgradeERC20Response) Reset ¶
func (m *MsgUpgradeERC20Response) Reset()
func (*MsgUpgradeERC20Response) Size ¶
func (m *MsgUpgradeERC20Response) Size() (n int)
func (*MsgUpgradeERC20Response) String ¶
func (m *MsgUpgradeERC20Response) String() string
func (*MsgUpgradeERC20Response) Unmarshal ¶
func (m *MsgUpgradeERC20Response) Unmarshal(dAtA []byte) error
func (*MsgUpgradeERC20Response) XXX_DiscardUnknown ¶
func (m *MsgUpgradeERC20Response) XXX_DiscardUnknown()
func (*MsgUpgradeERC20Response) XXX_Marshal ¶
func (m *MsgUpgradeERC20Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpgradeERC20Response) XXX_Merge ¶
func (m *MsgUpgradeERC20Response) XXX_Merge(src proto.Message)
func (*MsgUpgradeERC20Response) XXX_Size ¶
func (m *MsgUpgradeERC20Response) XXX_Size() int
func (*MsgUpgradeERC20Response) XXX_Unmarshal ¶
func (m *MsgUpgradeERC20Response) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { TokenTaxRate cosmossdk_io_math.LegacyDec `` /* 128-byte string literal not displayed */ IssueTokenBaseFee types.Coin `protobuf:"bytes,2,opt,name=issue_token_base_fee,json=issueTokenBaseFee,proto3" json:"issue_token_base_fee"` MintTokenFeeRatio cosmossdk_io_math.LegacyDec `` /* 145-byte string literal not displayed */ EnableErc20 bool `protobuf:"varint,4,opt,name=enable_erc20,json=enableErc20,proto3" json:"enable_erc20,omitempty"` Beacon string `protobuf:"bytes,5,opt,name=beacon,proto3" json:"beacon,omitempty"` }
Params defines token module's parameters
func NewParams ¶
func NewParams(tokenTaxRate math.LegacyDec, issueTokenBaseFee sdk.Coin, mintTokenFeeRatio math.LegacyDec, enableErc20 bool, beacon string, ) Params
NewParams constructs a new Params instance
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() types.ParamSetPairs
func (*Params) XXX_Marshal ¶
type QueryBalancesRequest ¶
type QueryBalancesRequest struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` // address is the address to query balances for. Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` }
QueryBalancesRequest is request type for the Query/Balances RPC method
func (*QueryBalancesRequest) Descriptor ¶
func (*QueryBalancesRequest) Descriptor() ([]byte, []int)
func (*QueryBalancesRequest) GetAddress ¶
func (m *QueryBalancesRequest) GetAddress() string
func (*QueryBalancesRequest) GetDenom ¶
func (m *QueryBalancesRequest) GetDenom() string
func (*QueryBalancesRequest) Marshal ¶
func (m *QueryBalancesRequest) Marshal() (dAtA []byte, err error)
func (*QueryBalancesRequest) MarshalTo ¶
func (m *QueryBalancesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalancesRequest) MarshalToSizedBuffer ¶
func (m *QueryBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalancesRequest) ProtoMessage ¶
func (*QueryBalancesRequest) ProtoMessage()
func (*QueryBalancesRequest) Reset ¶
func (m *QueryBalancesRequest) Reset()
func (*QueryBalancesRequest) Size ¶
func (m *QueryBalancesRequest) Size() (n int)
func (*QueryBalancesRequest) String ¶
func (m *QueryBalancesRequest) String() string
func (*QueryBalancesRequest) Unmarshal ¶
func (m *QueryBalancesRequest) Unmarshal(dAtA []byte) error
func (*QueryBalancesRequest) XXX_DiscardUnknown ¶
func (m *QueryBalancesRequest) XXX_DiscardUnknown()
func (*QueryBalancesRequest) XXX_Marshal ¶
func (m *QueryBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalancesRequest) XXX_Merge ¶
func (m *QueryBalancesRequest) XXX_Merge(src proto.Message)
func (*QueryBalancesRequest) XXX_Size ¶
func (m *QueryBalancesRequest) XXX_Size() int
func (*QueryBalancesRequest) XXX_Unmarshal ¶
func (m *QueryBalancesRequest) XXX_Unmarshal(b []byte) error
type QueryBalancesResponse ¶
type QueryBalancesResponse struct { // balances is the balances of all the coins. Balances github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=balances,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balances"` }
QueryBalancesResponse is response type for the Query/Balances RPC method
func (*QueryBalancesResponse) Descriptor ¶
func (*QueryBalancesResponse) Descriptor() ([]byte, []int)
func (*QueryBalancesResponse) GetBalances ¶
func (m *QueryBalancesResponse) GetBalances() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryBalancesResponse) Marshal ¶
func (m *QueryBalancesResponse) Marshal() (dAtA []byte, err error)
func (*QueryBalancesResponse) MarshalTo ¶
func (m *QueryBalancesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalancesResponse) MarshalToSizedBuffer ¶
func (m *QueryBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalancesResponse) ProtoMessage ¶
func (*QueryBalancesResponse) ProtoMessage()
func (*QueryBalancesResponse) Reset ¶
func (m *QueryBalancesResponse) Reset()
func (*QueryBalancesResponse) Size ¶
func (m *QueryBalancesResponse) Size() (n int)
func (*QueryBalancesResponse) String ¶
func (m *QueryBalancesResponse) String() string
func (*QueryBalancesResponse) Unmarshal ¶
func (m *QueryBalancesResponse) Unmarshal(dAtA []byte) error
func (*QueryBalancesResponse) XXX_DiscardUnknown ¶
func (m *QueryBalancesResponse) XXX_DiscardUnknown()
func (*QueryBalancesResponse) XXX_Marshal ¶
func (m *QueryBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalancesResponse) XXX_Merge ¶
func (m *QueryBalancesResponse) XXX_Merge(src proto.Message)
func (*QueryBalancesResponse) XXX_Size ¶
func (m *QueryBalancesResponse) XXX_Size() int
func (*QueryBalancesResponse) XXX_Unmarshal ¶
func (m *QueryBalancesResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Tokens returns the token list Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, error) // Token returns token with token name Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) // Fees returns the fees to issue or mint a token Fees(ctx context.Context, in *QueryFeesRequest, opts ...grpc.CallOption) (*QueryFeesResponse, error) // Params queries the token parameters Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // TotalBurn queries all the burnt coins TotalBurn(ctx context.Context, in *QueryTotalBurnRequest, opts ...grpc.CallOption) (*QueryTotalBurnResponse, error) // Balances queries the balance of the specified token (including erc20 // balance) Balances(ctx context.Context, in *QueryBalancesRequest, opts ...grpc.CallOption) (*QueryBalancesResponse, 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 QueryFeesRequest ¶
type QueryFeesRequest struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
}
QueryFeesRequest is request type for the Query/Fees RPC method
func (*QueryFeesRequest) Descriptor ¶
func (*QueryFeesRequest) Descriptor() ([]byte, []int)
func (*QueryFeesRequest) GetSymbol ¶
func (m *QueryFeesRequest) GetSymbol() string
func (*QueryFeesRequest) Marshal ¶
func (m *QueryFeesRequest) Marshal() (dAtA []byte, err error)
func (*QueryFeesRequest) MarshalTo ¶
func (m *QueryFeesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFeesRequest) MarshalToSizedBuffer ¶
func (m *QueryFeesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFeesRequest) ProtoMessage ¶
func (*QueryFeesRequest) ProtoMessage()
func (*QueryFeesRequest) Reset ¶
func (m *QueryFeesRequest) Reset()
func (*QueryFeesRequest) Size ¶
func (m *QueryFeesRequest) Size() (n int)
func (*QueryFeesRequest) String ¶
func (m *QueryFeesRequest) String() string
func (*QueryFeesRequest) Unmarshal ¶
func (m *QueryFeesRequest) Unmarshal(dAtA []byte) error
func (*QueryFeesRequest) XXX_DiscardUnknown ¶
func (m *QueryFeesRequest) XXX_DiscardUnknown()
func (*QueryFeesRequest) XXX_Marshal ¶
func (m *QueryFeesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFeesRequest) XXX_Merge ¶
func (m *QueryFeesRequest) XXX_Merge(src proto.Message)
func (*QueryFeesRequest) XXX_Size ¶
func (m *QueryFeesRequest) XXX_Size() int
func (*QueryFeesRequest) XXX_Unmarshal ¶
func (m *QueryFeesRequest) XXX_Unmarshal(b []byte) error
type QueryFeesResponse ¶
type QueryFeesResponse struct { Exist bool `protobuf:"varint,1,opt,name=exist,proto3" json:"exist,omitempty"` IssueFee github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=issue_fee,json=issueFee,proto3,casttype=github.com/cosmos/cosmos-sdk/types.Coin" json:"issue_fee"` MintFee github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=mint_fee,json=mintFee,proto3,casttype=github.com/cosmos/cosmos-sdk/types.Coin" json:"mint_fee"` }
QueryFeesResponse is response type for the Query/Fees RPC method
func (*QueryFeesResponse) Descriptor ¶
func (*QueryFeesResponse) Descriptor() ([]byte, []int)
func (*QueryFeesResponse) GetExist ¶
func (m *QueryFeesResponse) GetExist() bool
func (*QueryFeesResponse) GetIssueFee ¶
func (m *QueryFeesResponse) GetIssueFee() github_com_cosmos_cosmos_sdk_types.Coin
func (*QueryFeesResponse) GetMintFee ¶
func (m *QueryFeesResponse) GetMintFee() github_com_cosmos_cosmos_sdk_types.Coin
func (*QueryFeesResponse) Marshal ¶
func (m *QueryFeesResponse) Marshal() (dAtA []byte, err error)
func (*QueryFeesResponse) MarshalTo ¶
func (m *QueryFeesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryFeesResponse) MarshalToSizedBuffer ¶
func (m *QueryFeesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFeesResponse) ProtoMessage ¶
func (*QueryFeesResponse) ProtoMessage()
func (*QueryFeesResponse) Reset ¶
func (m *QueryFeesResponse) Reset()
func (*QueryFeesResponse) Size ¶
func (m *QueryFeesResponse) Size() (n int)
func (*QueryFeesResponse) String ¶
func (m *QueryFeesResponse) String() string
func (*QueryFeesResponse) Unmarshal ¶
func (m *QueryFeesResponse) Unmarshal(dAtA []byte) error
func (*QueryFeesResponse) XXX_DiscardUnknown ¶
func (m *QueryFeesResponse) XXX_DiscardUnknown()
func (*QueryFeesResponse) XXX_Marshal ¶
func (m *QueryFeesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFeesResponse) XXX_Merge ¶
func (m *QueryFeesResponse) XXX_Merge(src proto.Message)
func (*QueryFeesResponse) XXX_Size ¶
func (m *QueryFeesResponse) XXX_Size() int
func (*QueryFeesResponse) XXX_Unmarshal ¶
func (m *QueryFeesResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParametersRequest is request type for the Query/Parameters 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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Res *query.PageResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"` }
QueryParametersResponse is response type for the Query/Parameters RPC method
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) GetRes ¶
func (m *QueryParamsResponse) GetRes() *query.PageResponse
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 { // Tokens returns the token list Tokens(context.Context, *QueryTokensRequest) (*QueryTokensResponse, error) // Token returns token with token name Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) // Fees returns the fees to issue or mint a token Fees(context.Context, *QueryFeesRequest) (*QueryFeesResponse, error) // Params queries the token parameters Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // TotalBurn queries all the burnt coins TotalBurn(context.Context, *QueryTotalBurnRequest) (*QueryTotalBurnResponse, error) // Balances queries the balance of the specified token (including erc20 // balance) Balances(context.Context, *QueryBalancesRequest) (*QueryBalancesResponse, error) }
QueryServer is the server API for Query service.
type QueryTokenRequest ¶
type QueryTokenRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryTokenRequest is request type for the Query/Token RPC method
func (*QueryTokenRequest) Descriptor ¶
func (*QueryTokenRequest) Descriptor() ([]byte, []int)
func (*QueryTokenRequest) GetDenom ¶
func (m *QueryTokenRequest) GetDenom() string
func (*QueryTokenRequest) Marshal ¶
func (m *QueryTokenRequest) Marshal() (dAtA []byte, err error)
func (*QueryTokenRequest) MarshalTo ¶
func (m *QueryTokenRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokenRequest) MarshalToSizedBuffer ¶
func (m *QueryTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokenRequest) ProtoMessage ¶
func (*QueryTokenRequest) ProtoMessage()
func (*QueryTokenRequest) Reset ¶
func (m *QueryTokenRequest) Reset()
func (*QueryTokenRequest) Size ¶
func (m *QueryTokenRequest) Size() (n int)
func (*QueryTokenRequest) String ¶
func (m *QueryTokenRequest) String() string
func (*QueryTokenRequest) Unmarshal ¶
func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error
func (*QueryTokenRequest) XXX_DiscardUnknown ¶
func (m *QueryTokenRequest) XXX_DiscardUnknown()
func (*QueryTokenRequest) XXX_Marshal ¶
func (m *QueryTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokenRequest) XXX_Merge ¶
func (m *QueryTokenRequest) XXX_Merge(src proto.Message)
func (*QueryTokenRequest) XXX_Size ¶
func (m *QueryTokenRequest) XXX_Size() int
func (*QueryTokenRequest) XXX_Unmarshal ¶
func (m *QueryTokenRequest) XXX_Unmarshal(b []byte) error
type QueryTokenResponse ¶
type QueryTokenResponse struct {
Token *types.Any `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
}
QueryTokenResponse is response type for the Query/Token RPC method
func (*QueryTokenResponse) Descriptor ¶
func (*QueryTokenResponse) Descriptor() ([]byte, []int)
func (*QueryTokenResponse) GetToken ¶
func (m *QueryTokenResponse) GetToken() *types.Any
func (*QueryTokenResponse) Marshal ¶
func (m *QueryTokenResponse) Marshal() (dAtA []byte, err error)
func (*QueryTokenResponse) MarshalTo ¶
func (m *QueryTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokenResponse) MarshalToSizedBuffer ¶
func (m *QueryTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokenResponse) ProtoMessage ¶
func (*QueryTokenResponse) ProtoMessage()
func (*QueryTokenResponse) Reset ¶
func (m *QueryTokenResponse) Reset()
func (*QueryTokenResponse) Size ¶
func (m *QueryTokenResponse) Size() (n int)
func (*QueryTokenResponse) String ¶
func (m *QueryTokenResponse) String() string
func (*QueryTokenResponse) Unmarshal ¶
func (m *QueryTokenResponse) Unmarshal(dAtA []byte) error
func (*QueryTokenResponse) XXX_DiscardUnknown ¶
func (m *QueryTokenResponse) XXX_DiscardUnknown()
func (*QueryTokenResponse) XXX_Marshal ¶
func (m *QueryTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokenResponse) XXX_Merge ¶
func (m *QueryTokenResponse) XXX_Merge(src proto.Message)
func (*QueryTokenResponse) XXX_Size ¶
func (m *QueryTokenResponse) XXX_Size() int
func (*QueryTokenResponse) XXX_Unmarshal ¶
func (m *QueryTokenResponse) XXX_Unmarshal(b []byte) error
type QueryTokensRequest ¶
type QueryTokensRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryTokensRequest is request type for the Query/Tokens RPC method
func (*QueryTokensRequest) Descriptor ¶
func (*QueryTokensRequest) Descriptor() ([]byte, []int)
func (*QueryTokensRequest) GetOwner ¶
func (m *QueryTokensRequest) GetOwner() string
func (*QueryTokensRequest) GetPagination ¶
func (m *QueryTokensRequest) GetPagination() *query.PageRequest
func (*QueryTokensRequest) Marshal ¶
func (m *QueryTokensRequest) Marshal() (dAtA []byte, err error)
func (*QueryTokensRequest) MarshalTo ¶
func (m *QueryTokensRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokensRequest) MarshalToSizedBuffer ¶
func (m *QueryTokensRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokensRequest) ProtoMessage ¶
func (*QueryTokensRequest) ProtoMessage()
func (*QueryTokensRequest) Reset ¶
func (m *QueryTokensRequest) Reset()
func (*QueryTokensRequest) Size ¶
func (m *QueryTokensRequest) Size() (n int)
func (*QueryTokensRequest) String ¶
func (m *QueryTokensRequest) String() string
func (*QueryTokensRequest) Unmarshal ¶
func (m *QueryTokensRequest) Unmarshal(dAtA []byte) error
func (*QueryTokensRequest) XXX_DiscardUnknown ¶
func (m *QueryTokensRequest) XXX_DiscardUnknown()
func (*QueryTokensRequest) XXX_Marshal ¶
func (m *QueryTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokensRequest) XXX_Merge ¶
func (m *QueryTokensRequest) XXX_Merge(src proto.Message)
func (*QueryTokensRequest) XXX_Size ¶
func (m *QueryTokensRequest) XXX_Size() int
func (*QueryTokensRequest) XXX_Unmarshal ¶
func (m *QueryTokensRequest) XXX_Unmarshal(b []byte) error
type QueryTokensResponse ¶
type QueryTokensResponse struct { Tokens []*types.Any `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryTokensResponse is response type for the Query/Tokens RPC method
func (*QueryTokensResponse) Descriptor ¶
func (*QueryTokensResponse) Descriptor() ([]byte, []int)
func (*QueryTokensResponse) GetPagination ¶
func (m *QueryTokensResponse) GetPagination() *query.PageResponse
func (*QueryTokensResponse) GetTokens ¶
func (m *QueryTokensResponse) GetTokens() []*types.Any
func (*QueryTokensResponse) Marshal ¶
func (m *QueryTokensResponse) Marshal() (dAtA []byte, err error)
func (*QueryTokensResponse) MarshalTo ¶
func (m *QueryTokensResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokensResponse) MarshalToSizedBuffer ¶
func (m *QueryTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokensResponse) ProtoMessage ¶
func (*QueryTokensResponse) ProtoMessage()
func (*QueryTokensResponse) Reset ¶
func (m *QueryTokensResponse) Reset()
func (*QueryTokensResponse) Size ¶
func (m *QueryTokensResponse) Size() (n int)
func (*QueryTokensResponse) String ¶
func (m *QueryTokensResponse) String() string
func (*QueryTokensResponse) Unmarshal ¶
func (m *QueryTokensResponse) Unmarshal(dAtA []byte) error
func (*QueryTokensResponse) XXX_DiscardUnknown ¶
func (m *QueryTokensResponse) XXX_DiscardUnknown()
func (*QueryTokensResponse) XXX_Marshal ¶
func (m *QueryTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokensResponse) XXX_Merge ¶
func (m *QueryTokensResponse) XXX_Merge(src proto.Message)
func (*QueryTokensResponse) XXX_Size ¶
func (m *QueryTokensResponse) XXX_Size() int
func (*QueryTokensResponse) XXX_Unmarshal ¶
func (m *QueryTokensResponse) XXX_Unmarshal(b []byte) error
type QueryTotalBurnRequest ¶
type QueryTotalBurnRequest struct { }
QueryTokenRequest is request type for the Query/TotalBurn RPC method
func (*QueryTotalBurnRequest) Descriptor ¶
func (*QueryTotalBurnRequest) Descriptor() ([]byte, []int)
func (*QueryTotalBurnRequest) Marshal ¶
func (m *QueryTotalBurnRequest) Marshal() (dAtA []byte, err error)
func (*QueryTotalBurnRequest) MarshalTo ¶
func (m *QueryTotalBurnRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalBurnRequest) MarshalToSizedBuffer ¶
func (m *QueryTotalBurnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalBurnRequest) ProtoMessage ¶
func (*QueryTotalBurnRequest) ProtoMessage()
func (*QueryTotalBurnRequest) Reset ¶
func (m *QueryTotalBurnRequest) Reset()
func (*QueryTotalBurnRequest) Size ¶
func (m *QueryTotalBurnRequest) Size() (n int)
func (*QueryTotalBurnRequest) String ¶
func (m *QueryTotalBurnRequest) String() string
func (*QueryTotalBurnRequest) Unmarshal ¶
func (m *QueryTotalBurnRequest) Unmarshal(dAtA []byte) error
func (*QueryTotalBurnRequest) XXX_DiscardUnknown ¶
func (m *QueryTotalBurnRequest) XXX_DiscardUnknown()
func (*QueryTotalBurnRequest) XXX_Marshal ¶
func (m *QueryTotalBurnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalBurnRequest) XXX_Merge ¶
func (m *QueryTotalBurnRequest) XXX_Merge(src proto.Message)
func (*QueryTotalBurnRequest) XXX_Size ¶
func (m *QueryTotalBurnRequest) XXX_Size() int
func (*QueryTotalBurnRequest) XXX_Unmarshal ¶
func (m *QueryTotalBurnRequest) XXX_Unmarshal(b []byte) error
type QueryTotalBurnResponse ¶
type QueryTotalBurnResponse struct {
BurnedCoins []types1.Coin `protobuf:"bytes,1,rep,name=burned_coins,json=burnedCoins,proto3" json:"burned_coins"`
}
QueryTotalBurnResponse is response type for the Query/TotalBurn RPC method
func (*QueryTotalBurnResponse) Descriptor ¶
func (*QueryTotalBurnResponse) Descriptor() ([]byte, []int)
func (*QueryTotalBurnResponse) GetBurnedCoins ¶
func (m *QueryTotalBurnResponse) GetBurnedCoins() []types1.Coin
func (*QueryTotalBurnResponse) Marshal ¶
func (m *QueryTotalBurnResponse) Marshal() (dAtA []byte, err error)
func (*QueryTotalBurnResponse) MarshalTo ¶
func (m *QueryTotalBurnResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalBurnResponse) MarshalToSizedBuffer ¶
func (m *QueryTotalBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalBurnResponse) ProtoMessage ¶
func (*QueryTotalBurnResponse) ProtoMessage()
func (*QueryTotalBurnResponse) Reset ¶
func (m *QueryTotalBurnResponse) Reset()
func (*QueryTotalBurnResponse) Size ¶
func (m *QueryTotalBurnResponse) Size() (n int)
func (*QueryTotalBurnResponse) String ¶
func (m *QueryTotalBurnResponse) String() string
func (*QueryTotalBurnResponse) Unmarshal ¶
func (m *QueryTotalBurnResponse) Unmarshal(dAtA []byte) error
func (*QueryTotalBurnResponse) XXX_DiscardUnknown ¶
func (m *QueryTotalBurnResponse) XXX_DiscardUnknown()
func (*QueryTotalBurnResponse) XXX_Marshal ¶
func (m *QueryTotalBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalBurnResponse) XXX_Merge ¶
func (m *QueryTotalBurnResponse) XXX_Merge(src proto.Message)
func (*QueryTotalBurnResponse) XXX_Size ¶
func (m *QueryTotalBurnResponse) XXX_Size() int
func (*QueryTotalBurnResponse) XXX_Unmarshal ¶
func (m *QueryTotalBurnResponse) XXX_Unmarshal(b []byte) error
type SwapRegistry ¶
type SwapRegistry map[string]SwapParams
type Token ¶
type Token struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Scale uint32 `protobuf:"varint,3,opt,name=scale,proto3" json:"scale,omitempty"` MinUnit string `protobuf:"bytes,4,opt,name=min_unit,json=minUnit,proto3" json:"min_unit,omitempty"` InitialSupply uint64 `protobuf:"varint,5,opt,name=initial_supply,json=initialSupply,proto3" json:"initial_supply,omitempty"` MaxSupply uint64 `protobuf:"varint,6,opt,name=max_supply,json=maxSupply,proto3" json:"max_supply,omitempty"` Mintable bool `protobuf:"varint,7,opt,name=mintable,proto3" json:"mintable,omitempty"` Owner string `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"` Contract string `protobuf:"bytes,9,opt,name=contract,proto3" json:"contract,omitempty"` }
Token defines a standard for the fungible token
func GetNativeToken ¶
func GetNativeToken() Token
GetNativeToken returns the system's default native token
func NewToken ¶
func NewToken( symbol string, name string, minUnit string, scale uint32, initialSupply, maxSupply uint64, mintable bool, owner sdk.AccAddress, ) Token
NewToken constructs a new Token instance
func (Token) GetInitialSupply ¶
GetInitialSupply implements exported.TokenI
func (Token) GetMaxSupply ¶
GetMaxSupply implements exported.TokenI
func (Token) GetOwner ¶
func (t Token) GetOwner() sdk.AccAddress
GetOwner implements exported.TokenI
func (Token) ToMainCoin ¶
ToMainCoin returns the main denom coin from args
func (Token) ToMinCoin ¶
ToMinCoin returns the min denom coin from args
func (*Token) XXX_Marshal ¶
type TokenI ¶
type TokenI interface { GetSymbol() string GetName() string GetScale() uint32 GetMinUnit() string GetInitialSupply() uint64 GetMaxSupply() uint64 GetMintable() bool GetOwner() sdk.AccAddress GetContract() string ToMainCoin(coin sdk.Coin) (sdk.DecCoin, error) ToMinCoin(coin sdk.DecCoin) (sdk.Coin, error) }
TokenI defines an interface for Token
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) BurnToken ¶
func (*UnimplementedMsgServer) BurnToken(ctx context.Context, req *MsgBurnToken) (*MsgBurnTokenResponse, error)
func (*UnimplementedMsgServer) DeployERC20 ¶
func (*UnimplementedMsgServer) DeployERC20(ctx context.Context, req *MsgDeployERC20) (*MsgDeployERC20Response, error)
func (*UnimplementedMsgServer) EditToken ¶
func (*UnimplementedMsgServer) EditToken(ctx context.Context, req *MsgEditToken) (*MsgEditTokenResponse, error)
func (*UnimplementedMsgServer) IssueToken ¶
func (*UnimplementedMsgServer) IssueToken(ctx context.Context, req *MsgIssueToken) (*MsgIssueTokenResponse, error)
func (*UnimplementedMsgServer) MintToken ¶
func (*UnimplementedMsgServer) MintToken(ctx context.Context, req *MsgMintToken) (*MsgMintTokenResponse, error)
func (*UnimplementedMsgServer) SwapFeeToken ¶
func (*UnimplementedMsgServer) SwapFeeToken(ctx context.Context, req *MsgSwapFeeToken) (*MsgSwapFeeTokenResponse, error)
func (*UnimplementedMsgServer) SwapFromERC20 ¶
func (*UnimplementedMsgServer) SwapFromERC20(ctx context.Context, req *MsgSwapFromERC20) (*MsgSwapFromERC20Response, error)
func (*UnimplementedMsgServer) SwapToERC20 ¶
func (*UnimplementedMsgServer) SwapToERC20(ctx context.Context, req *MsgSwapToERC20) (*MsgSwapToERC20Response, error)
func (*UnimplementedMsgServer) TransferTokenOwner ¶
func (*UnimplementedMsgServer) TransferTokenOwner(ctx context.Context, req *MsgTransferTokenOwner) (*MsgTransferTokenOwnerResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (*UnimplementedMsgServer) UpgradeERC20 ¶
func (*UnimplementedMsgServer) UpgradeERC20(ctx context.Context, req *MsgUpgradeERC20) (*MsgUpgradeERC20Response, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Balances ¶
func (*UnimplementedQueryServer) Balances(ctx context.Context, req *QueryBalancesRequest) (*QueryBalancesResponse, error)
func (*UnimplementedQueryServer) Fees ¶
func (*UnimplementedQueryServer) Fees(ctx context.Context, req *QueryFeesRequest) (*QueryFeesResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Token ¶
func (*UnimplementedQueryServer) Token(ctx context.Context, req *QueryTokenRequest) (*QueryTokenResponse, error)
func (*UnimplementedQueryServer) Tokens ¶
func (*UnimplementedQueryServer) Tokens(ctx context.Context, req *QueryTokensRequest) (*QueryTokensResponse, error)
func (*UnimplementedQueryServer) TotalBurn ¶
func (*UnimplementedQueryServer) TotalBurn(ctx context.Context, req *QueryTotalBurnRequest) (*QueryTotalBurnResponse, error)