Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyMinUint(minUnit string) []byte
- func KeyPrefix(p string) []byte
- func KeySymbol(symbol string) []byte
- func KeyTokens(owner sdk.AccAddress, symbol string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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 SetLocalToken(symbol, name, minUnit string, scale uint32, initialSupply, maxSupply uint64, ...)
- func ValidateAmount(amount uint64) error
- func ValidateInitialSupply(initialSupply uint64) error
- func ValidateKeywords(denom string) error
- func ValidateMinUnit(minUnit string) error
- func ValidateName(name string) error
- func ValidateParams(p Params) error
- func ValidateScale(scale uint32) error
- func ValidateSymbol(symbol string) error
- func ValidateToken(token Token) error
- type AccountKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type 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 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 MsgTransferOwnerToken
- func (*MsgTransferOwnerToken) Descriptor() ([]byte, []int)
- func (msg MsgTransferOwnerToken) GetSignBytes() []byte
- func (msg MsgTransferOwnerToken) GetSigners() []sdk.AccAddress
- func (m *MsgTransferOwnerToken) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferOwnerToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferOwnerToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferOwnerToken) ProtoMessage()
- func (m *MsgTransferOwnerToken) Reset()
- func (msg MsgTransferOwnerToken) Route() string
- func (m *MsgTransferOwnerToken) Size() (n int)
- func (m *MsgTransferOwnerToken) String() string
- func (msg MsgTransferOwnerToken) Type() string
- func (m *MsgTransferOwnerToken) Unmarshal(dAtA []byte) error
- func (msg MsgTransferOwnerToken) ValidateBasic() error
- func (m *MsgTransferOwnerToken) XXX_DiscardUnknown()
- func (m *MsgTransferOwnerToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferOwnerToken) XXX_Merge(src proto.Message)
- func (m *MsgTransferOwnerToken) XXX_Size() int
- func (m *MsgTransferOwnerToken) XXX_Unmarshal(b []byte) error
- type MsgTransferOwnerTokenResponse
- func (*MsgTransferOwnerTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgTransferOwnerTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferOwnerTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferOwnerTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferOwnerTokenResponse) ProtoMessage()
- func (m *MsgTransferOwnerTokenResponse) Reset()
- func (m *MsgTransferOwnerTokenResponse) Size() (n int)
- func (m *MsgTransferOwnerTokenResponse) String() string
- func (m *MsgTransferOwnerTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTransferOwnerTokenResponse) XXX_DiscardUnknown()
- func (m *MsgTransferOwnerTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferOwnerTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgTransferOwnerTokenResponse) XXX_Size() int
- func (m *MsgTransferOwnerTokenResponse) 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() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) 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 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) GetOperateFee() 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 Token
- func (*Token) Descriptor() ([]byte, []int)
- func (t Token) GetOwner() sdk.AccAddress
- 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 (t Token) ReturnBaseCoin(coin sdk.Coin) (sdk.DecCoin, error)
- func (t Token) ReturnMinUnitCoin(coin sdk.DecCoin) (newCoin sdk.Coin, err error)
- func (m *Token) Size() (n int)
- func (t Token) String() string
- func (m *Token) Unmarshal(dAtA []byte) 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) 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) TransferOwnerToken(ctx context.Context, req *MsgTransferOwnerToken) (*MsgTransferOwnerTokenResponse, error)
- type UnimplementedQueryServer
- 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)
Constants ¶
const ( EventTypeEditToken = TypeMsgEditToken EventTypeBurnToken = TypeMsgBurnToken EventTypeMintToken = TypeMsgMintToken EventTypeIssueToken = TypeMsgIssueToken EventTypeTransferOwnerToken = TypeMsgTransferOwnerToken AttributeKeySymbol = "symbol" AttributeKeyOwner = "owner" AttributeKeyScale = "scale" AttributeKeyAmount = "amount" AttributeKeyTo = "to" AttributeKeyInitialSupply = "initial_supply" )
const ( // ModuleName defines the module name ModuleName = "token" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const ( TypeMsgEditToken = "edit_token" TypeMsgIssueToken = "issue_token" TypeMsgMintToken = "mint_token" TypeMsgBurnToken = "burn_token" TypeMsgTransferOwnerToken = "change_owner_token" // DoNotModify used to indicate that some field should not be updated DoNotModify = "[do-not-modify]" )
const ( MinMinUnitLen = 3 MaxMinUnitLen = 8 MinSymbolLen = 3 MaxSymbolLen = 8 MaximumMaxSupply = math.MaxUint64 MaximumInitSupply = uint64(100000000000) MaximumScale = uint32(8) MaxNameLen = 32 )
Variables ¶
var ( ErrInvalidName = sdkerrors.Register(ModuleName, 2, "invalid token name") ErrInvalidMinUnit = sdkerrors.Register(ModuleName, 3, "invalid token min unit") ErrInvalidSymbol = sdkerrors.Register(ModuleName, 4, "invalid standard denom") ErrInvalidInitSupply = sdkerrors.Register(ModuleName, 5, "invalid token initial supply") ErrInvalidMaxSupply = sdkerrors.Register(ModuleName, 6, "invalid token maximum supply") ErrInvalidScale = sdkerrors.Register(ModuleName, 7, "invalid token scale") ErrSymbolAlreadyExists = sdkerrors.Register(ModuleName, 8, "symbol already exists") ErrTokenNotExists = sdkerrors.Register(ModuleName, 10, "token does not exist") ErrInvalidOwner = sdkerrors.Register(ModuleName, 11, "invalid token owner") ErrNotMintable = sdkerrors.Register(ModuleName, 13, "token is not mintable") ErrInvalidAmount = sdkerrors.Register(ModuleName, 15, "invalid amount") )
x/prc10 module sentinel errors
var ( Initialized bool DefaultTokenDescription = "x/prc10 module of Plug Chain Hub token." NativeStakingTokenDesc = "The native staking token of the Plug Chain Hub." )
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 ( PrefixTokenForSymbol = []byte{0x01} PrefixTokenForMinUint = []byte{0x02} PrefixTokens = []byte{0x03} )
var ( KeyIssueTokenBaseFee = []byte("IssueTokenBaseFee") KeyOperateTokenFeeRatio = []byte("OperateTokenFeeRatio") )
var ( ErrInvalidLengthPrc10 = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPrc10 = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPrc10 = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)
Functions ¶
func KeyMinUint ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the TypeTable for the token module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func SetLocalToken ¶
func ValidateInitialSupply ¶
ValidateInitialSupply verifies whether the initial supply is legal
func ValidateKeywords ¶
ValidateKeywords checks if the given denom begins with `TokenKeywords`
func ValidateMinUnit ¶
ValidateMinUnit checks if the given min unit is valid
func ValidateName ¶
ValidateName verifies whether the given name is legal
func ValidateScale ¶
ValidateScale verifies whether the given scale is legal
func ValidateSymbol ¶
ValidateSymbol checks if the given symbol is valid
func ValidateToken ¶
ValidateToken checks if the given token is valid
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI }
AccountKeeper defines the expected account keeper
type BankKeeper ¶
type BankKeeper interface { MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error GetSupply(ctx sdk.Context, denom string) sdk.Coin GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata) GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool) }
BankKeeper defines the expected bank keeper (noalias)
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"` }
GenesisState defines the token module's genesis state.
func NewGenesisState ¶
func NewGenesisState(p Params, ts []Token) GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
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) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgBurnToken ¶
type MsgBurnToken struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgBurnToken defines an SDK message for burning some tokens
func NewMsgBurnToken ¶
func NewMsgBurnToken(symbol string, amount uint64, owner string) *MsgBurnToken
NewMsgBurnToken
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) 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 { }
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(ctx context.Context, in *MsgIssueToken, opts ...grpc.CallOption) (*MsgIssueTokenResponse, error) MintToken(ctx context.Context, in *MsgMintToken, opts ...grpc.CallOption) (*MsgMintTokenResponse, error) EditToken(ctx context.Context, in *MsgEditToken, opts ...grpc.CallOption) (*MsgEditTokenResponse, error) BurnToken(ctx context.Context, in *MsgBurnToken, opts ...grpc.CallOption) (*MsgBurnTokenResponse, error) TransferOwnerToken(ctx context.Context, in *MsgTransferOwnerToken, opts ...grpc.CallOption) (*MsgTransferOwnerTokenResponse, 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 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"` Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgEditToken defines an SDK message for editing a new token
func NewMsgEditToken ¶
func NewMsgEditToken(symbol, name string, maxSupply uint64, owner string) *MsgEditToken
NewMsgEditToken
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) 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 { }
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 string, minUnit string, 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) 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 { }
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 { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgMintTokenResponse defines the Msg/MintToken response type
func NewMsgMintToken ¶
func NewMsgMintToken(symbol string, amount uint64, to, owner string) *MsgMintToken
NewMsgIssueToken - construct token issue msg.
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) 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 { }
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(context.Context, *MsgIssueToken) (*MsgIssueTokenResponse, error) MintToken(context.Context, *MsgMintToken) (*MsgMintTokenResponse, error) EditToken(context.Context, *MsgEditToken) (*MsgEditTokenResponse, error) BurnToken(context.Context, *MsgBurnToken) (*MsgBurnTokenResponse, error) TransferOwnerToken(context.Context, *MsgTransferOwnerToken) (*MsgTransferOwnerTokenResponse, error) }
MsgServer is the server API for Msg service.
type MsgTransferOwnerToken ¶
type MsgTransferOwnerToken struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` }
MsgTransferOwnerToken defines an SDK message for transferring the token owner
func NewMsgTransferOwnerToken ¶
func NewMsgTransferOwnerToken(symbol, src, dst string) *MsgTransferOwnerToken
NewMsgTransferOwnerToken
func (*MsgTransferOwnerToken) Descriptor ¶
func (*MsgTransferOwnerToken) Descriptor() ([]byte, []int)
func (MsgTransferOwnerToken) GetSignBytes ¶
func (msg MsgTransferOwnerToken) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgTransferOwnerToken) GetSigners ¶
func (msg MsgTransferOwnerToken) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgTransferOwnerToken) Marshal ¶
func (m *MsgTransferOwnerToken) Marshal() (dAtA []byte, err error)
func (*MsgTransferOwnerToken) MarshalTo ¶
func (m *MsgTransferOwnerToken) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferOwnerToken) MarshalToSizedBuffer ¶
func (m *MsgTransferOwnerToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferOwnerToken) ProtoMessage ¶
func (*MsgTransferOwnerToken) ProtoMessage()
func (*MsgTransferOwnerToken) Reset ¶
func (m *MsgTransferOwnerToken) Reset()
func (MsgTransferOwnerToken) Route ¶
func (msg MsgTransferOwnerToken) Route() string
Route Implements Msg.
func (*MsgTransferOwnerToken) Size ¶
func (m *MsgTransferOwnerToken) Size() (n int)
func (*MsgTransferOwnerToken) String ¶
func (m *MsgTransferOwnerToken) String() string
func (MsgTransferOwnerToken) Type ¶
func (msg MsgTransferOwnerToken) Type() string
Type Implements Msg.
func (*MsgTransferOwnerToken) Unmarshal ¶
func (m *MsgTransferOwnerToken) Unmarshal(dAtA []byte) error
func (MsgTransferOwnerToken) ValidateBasic ¶
func (msg MsgTransferOwnerToken) ValidateBasic() error
ValidateBasic Implements Msg.
func (*MsgTransferOwnerToken) XXX_DiscardUnknown ¶
func (m *MsgTransferOwnerToken) XXX_DiscardUnknown()
func (*MsgTransferOwnerToken) XXX_Marshal ¶
func (m *MsgTransferOwnerToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferOwnerToken) XXX_Merge ¶
func (m *MsgTransferOwnerToken) XXX_Merge(src proto.Message)
func (*MsgTransferOwnerToken) XXX_Size ¶
func (m *MsgTransferOwnerToken) XXX_Size() int
func (*MsgTransferOwnerToken) XXX_Unmarshal ¶
func (m *MsgTransferOwnerToken) XXX_Unmarshal(b []byte) error
type MsgTransferOwnerTokenResponse ¶
type MsgTransferOwnerTokenResponse struct { }
func (*MsgTransferOwnerTokenResponse) Descriptor ¶
func (*MsgTransferOwnerTokenResponse) Descriptor() ([]byte, []int)
func (*MsgTransferOwnerTokenResponse) Marshal ¶
func (m *MsgTransferOwnerTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgTransferOwnerTokenResponse) MarshalTo ¶
func (m *MsgTransferOwnerTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferOwnerTokenResponse) MarshalToSizedBuffer ¶
func (m *MsgTransferOwnerTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferOwnerTokenResponse) ProtoMessage ¶
func (*MsgTransferOwnerTokenResponse) ProtoMessage()
func (*MsgTransferOwnerTokenResponse) Reset ¶
func (m *MsgTransferOwnerTokenResponse) Reset()
func (*MsgTransferOwnerTokenResponse) Size ¶
func (m *MsgTransferOwnerTokenResponse) Size() (n int)
func (*MsgTransferOwnerTokenResponse) String ¶
func (m *MsgTransferOwnerTokenResponse) String() string
func (*MsgTransferOwnerTokenResponse) Unmarshal ¶
func (m *MsgTransferOwnerTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgTransferOwnerTokenResponse) XXX_DiscardUnknown ¶
func (m *MsgTransferOwnerTokenResponse) XXX_DiscardUnknown()
func (*MsgTransferOwnerTokenResponse) XXX_Marshal ¶
func (m *MsgTransferOwnerTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferOwnerTokenResponse) XXX_Merge ¶
func (m *MsgTransferOwnerTokenResponse) XXX_Merge(src proto.Message)
func (*MsgTransferOwnerTokenResponse) XXX_Size ¶
func (m *MsgTransferOwnerTokenResponse) XXX_Size() int
func (*MsgTransferOwnerTokenResponse) XXX_Unmarshal ¶
func (m *MsgTransferOwnerTokenResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { IssueTokenBaseFee types.Coin `protobuf:"bytes,1,opt,name=issue_token_base_fee,json=issueTokenBaseFee,proto3" json:"issue_token_base_fee"` OperateTokenFeeRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 165-byte string literal not displayed */ }
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) Fees(ctx context.Context, in *QueryFeesRequest, opts ...grpc.CallOption) (*QueryFeesResponse, error) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, 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"`
}
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) 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"` OperateFee github_com_cosmos_cosmos_sdk_types.Coin `` /* 130-byte string literal not displayed */ }
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) GetOperateFee ¶
func (m *QueryFeesResponse) GetOperateFee() 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 { }
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"` }
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 { Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) Fees(context.Context, *QueryFeesRequest) (*QueryFeesResponse, error) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) Tokens(context.Context, *QueryTokensRequest) (*QueryTokensResponse, 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"`
}
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"`
}
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 *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
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"` }
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 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"` }
func GetLocalToken ¶
func GetLocalToken() Token
func (*Token) Descriptor ¶
func (Token) GetOwner ¶
func (t Token) GetOwner() sdk.AccAddress
GetOwner implements exported.TokenI
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (Token) ReturnBaseCoin ¶
ReturnBaseCoin returns the main denom coin from args
func (Token) ReturnMinUnitCoin ¶
ReturnMinUnitCoin returns the min denom coin from args
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
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) 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) TransferOwnerToken ¶
func (*UnimplementedMsgServer) TransferOwnerToken(ctx context.Context, req *MsgTransferOwnerToken) (*MsgTransferOwnerTokenResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
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)