Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type Bool
- type Client
- type EditTokenRequest
- type IssueTokenRequest
- 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 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 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 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 Params
- func (p Params) Convert() interface{}
- 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 (*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 QueryFeesResp
- type QueryFeesResponse
- func (t QueryFeesResponse) Convert() interface{}
- func (*QueryFeesResponse) Descriptor() ([]byte, []int)
- func (m *QueryFeesResponse) GetExist() bool
- func (m *QueryFeesResponse) GetIssueFee() github_com_irisnet_irishub_sdk_go_types.Coin
- func (m *QueryFeesResponse) GetMintFee() github_com_irisnet_irishub_sdk_go_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 QueryParamsResp
- 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) 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) 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 (t Token) Convert() interface{}
- func (*Token) Descriptor() ([]byte, []int)
- 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 (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 TokenInterface
- type Tokens
- 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 (
ModuleName = "token"
)
Variables ¶
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 (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type Bool ¶
type Bool string
func (*Bool) UnmarshalJSON ¶
Unmarshals from JSON assuming Bech32 encoding
type Client ¶
type Client interface { sdk.Module IssueToken(req IssueTokenRequest, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error) EditToken(req EditTokenRequest, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error) TransferToken(to string, symbol string, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error) MintToken(symbol string, amount uint64, to string, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error) QueryToken(symbol string) (sdk.Token, error) QueryTokens(owner string) (sdk.Tokens, error) QueryFees(symbol string) (QueryFeesResp, error) QueryParams() (QueryParamsResp, error) }
type EditTokenRequest ¶
type IssueTokenRequest ¶
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" yaml:"max_supply"` Mintable Bool `protobuf:"bytes,4,opt,name=mintable,proto3,casttype=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 (*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) Route ¶
func (msg MsgEditToken) Route() string
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 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" yaml:"min_unit"` InitialSupply uint64 `protobuf:"varint,5,opt,name=initial_supply,json=initialSupply,proto3" json:"initial_supply,omitempty" yaml:"initial_supply"` MaxSupply uint64 `protobuf:"varint,6,opt,name=max_supply,json=maxSupply,proto3" json:"max_supply,omitempty" yaml:"max_supply"` 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 (*MsgIssueToken) Descriptor ¶
func (*MsgIssueToken) Descriptor() ([]byte, []int)
func (MsgIssueToken) GetSigners ¶
func (msg MsgIssueToken) GetSigners() []sdk.AccAddress
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) Route ¶
func (msg MsgIssueToken) Route() string
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) 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 MsgMintToken ¶
type MsgMintToken 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"` To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` Owner string `protobuf:"bytes,4,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) MarshalToSizedBuffer ¶
func (m *MsgMintToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintToken) ProtoMessage ¶
func (*MsgMintToken) ProtoMessage()
func (*MsgMintToken) Reset ¶
func (m *MsgMintToken) Reset()
func (MsgMintToken) Route ¶
func (msg MsgMintToken) Route() string
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 MsgTransferTokenOwner ¶
type MsgTransferTokenOwner struct { SrcOwner string `protobuf:"bytes,1,opt,name=src_owner,json=srcOwner,proto3" json:"src_owner,omitempty" yaml:"src_owner"` DstOwner string `protobuf:"bytes,2,opt,name=dst_owner,json=dstOwner,proto3" json:"dst_owner,omitempty" yaml:"dst_owner"` Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` }
MsgMintToken defines an SDK message for transferring the token owner.
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
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
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 Params ¶
type Params struct { TokenTaxRate github_com_irisnet_irishub_sdk_go_types.Dec `` /* 166-byte string literal not displayed */ IssueTokenBaseFee types.Coin `` /* 134-byte string literal not displayed */ MintTokenFeeRatio github_com_irisnet_irishub_sdk_go_types.Dec `` /* 189-byte string literal not displayed */ }
token parameters
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
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 returns token with token name Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) // Tokens returns the token list Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, 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) }
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) 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 QueryFeesResp ¶
type QueryFeesResp struct { Exist bool `json:"exist"` // indicate if the token has existed IssueFee sdk.Coin `json:"issue_fee"` // issue fee MintFee sdk.Coin `json:"mint_fee"` // mint fee }
QueryFeesResp is for the token fees query output
type QueryFeesResponse ¶
type QueryFeesResponse struct { Exist bool `protobuf:"varint,1,opt,name=exist,proto3" json:"exist,omitempty"` IssueFee github_com_irisnet_irishub_sdk_go_types.Coin `` /* 146-byte string literal not displayed */ MintFee github_com_irisnet_irishub_sdk_go_types.Coin `` /* 142-byte string literal not displayed */ }
QueryFeesResponse is response type for the Query/Fees RPC method
func (QueryFeesResponse) Convert ¶
func (t QueryFeesResponse) Convert() interface{}
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_irisnet_irishub_sdk_go_types.Coin
func (*QueryFeesResponse) GetMintFee ¶
func (m *QueryFeesResponse) GetMintFee() github_com_irisnet_irishub_sdk_go_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 QueryParamsResp ¶
type QueryParamsResp struct { TokenTaxRate string `json:"token_tax_rate"` // e.g., 40% IssueTokenBaseFee string `json:"issue_token_base_fee"` // e.g., 300000*10^18iris-atto MintTokenFeeRatio string `json:"mint_token_fee_ratio"` // e.g., 10% }
token params
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 { // Token returns token with token name Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) // Tokens returns the token list Tokens(context.Context, *QueryTokensRequest) (*QueryTokensResponse, 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) }
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"`
}
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) 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"`
}
QueryTokensResponse is response type for the Query/Tokens RPC method
func (*QueryTokensResponse) Descriptor ¶
func (*QueryTokensResponse) Descriptor() ([]byte, []int)
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" yaml:"min_unit"` InitialSupply uint64 `protobuf:"varint,5,opt,name=initial_supply,json=initialSupply,proto3" json:"initial_supply,omitempty" yaml:"initial_supply"` MaxSupply uint64 `protobuf:"varint,6,opt,name=max_supply,json=maxSupply,proto3" json:"max_supply,omitempty" yaml:"max_supply"` Mintable bool `protobuf:"varint,7,opt,name=mintable,proto3" json:"mintable,omitempty"` Owner string `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"` }
Token defines a standard for the fungible token
func (*Token) Descriptor ¶
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) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
type TokenInterface ¶
type Tokens ¶
type Tokens []TokenInterface
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)