Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func RegisterCodec(cdc *codec.LegacyAmino)
- 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 TokenDataKey(tokenID string) []byte
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetTokenDataList() []TokenData
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgBurn
- func (*MsgBurn) Descriptor() ([]byte, []int)
- func (m *MsgBurn) GetAmount() uint64
- func (m *MsgBurn) GetOwner() string
- func (msg *MsgBurn) GetSignBytes() []byte
- func (msg *MsgBurn) GetSigners() []sdk.AccAddress
- func (m *MsgBurn) GetTokenID() string
- func (m *MsgBurn) Marshal() (dAtA []byte, err error)
- func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurn) ProtoMessage()
- func (m *MsgBurn) Reset()
- func (msg *MsgBurn) Route() string
- func (m *MsgBurn) Size() (n int)
- func (m *MsgBurn) String() string
- func (msg *MsgBurn) Type() string
- func (m *MsgBurn) Unmarshal(dAtA []byte) error
- func (msg *MsgBurn) ValidateBasic() error
- func (m *MsgBurn) XXX_DiscardUnknown()
- func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurn) XXX_Merge(src proto.Message)
- func (m *MsgBurn) XXX_Size() int
- func (m *MsgBurn) XXX_Unmarshal(b []byte) error
- type MsgBurnResponse
- func (*MsgBurnResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnResponse) ProtoMessage()
- func (m *MsgBurnResponse) Reset()
- func (m *MsgBurnResponse) Size() (n int)
- func (m *MsgBurnResponse) String() string
- func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnResponse) XXX_DiscardUnknown()
- func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnResponse) XXX_Size() int
- func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateToken
- func (*MsgCreateToken) Descriptor() ([]byte, []int)
- func (m *MsgCreateToken) GetBurnable() bool
- func (m *MsgCreateToken) GetDecimal() uint64
- func (m *MsgCreateToken) GetMintable() bool
- func (m *MsgCreateToken) GetName() string
- func (m *MsgCreateToken) GetOwner() string
- func (msg *MsgCreateToken) GetSignBytes() []byte
- func (msg *MsgCreateToken) GetSigners() []sdk.AccAddress
- func (m *MsgCreateToken) GetSymbol() string
- func (m *MsgCreateToken) GetTokenURI() string
- func (m *MsgCreateToken) GetTotalSupply() uint64
- func (m *MsgCreateToken) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateToken) ProtoMessage()
- func (m *MsgCreateToken) Reset()
- func (msg *MsgCreateToken) Route() string
- func (m *MsgCreateToken) Size() (n int)
- func (m *MsgCreateToken) String() string
- func (msg *MsgCreateToken) Type() string
- func (m *MsgCreateToken) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateToken) ValidateBasic() error
- func (m *MsgCreateToken) XXX_DiscardUnknown()
- func (m *MsgCreateToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateToken) XXX_Merge(src proto.Message)
- func (m *MsgCreateToken) XXX_Size() int
- func (m *MsgCreateToken) XXX_Unmarshal(b []byte) error
- type MsgCreateTokenResponse
- func (*MsgCreateTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateTokenResponse) ProtoMessage()
- func (m *MsgCreateTokenResponse) Reset()
- func (m *MsgCreateTokenResponse) Size() (n int)
- func (m *MsgCreateTokenResponse) String() string
- func (m *MsgCreateTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateTokenResponse) XXX_DiscardUnknown()
- func (m *MsgCreateTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateTokenResponse) XXX_Size() int
- func (m *MsgCreateTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgMint
- func (*MsgMint) Descriptor() ([]byte, []int)
- func (m *MsgMint) GetAmount() uint64
- func (m *MsgMint) GetOwner() string
- func (msg *MsgMint) GetSignBytes() []byte
- func (msg *MsgMint) GetSigners() []sdk.AccAddress
- func (m *MsgMint) GetToAddress() string
- func (m *MsgMint) GetTokenID() string
- func (m *MsgMint) Marshal() (dAtA []byte, err error)
- func (m *MsgMint) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMint) ProtoMessage()
- func (m *MsgMint) Reset()
- func (msg *MsgMint) Route() string
- func (m *MsgMint) Size() (n int)
- func (m *MsgMint) String() string
- func (msg *MsgMint) Type() string
- func (m *MsgMint) Unmarshal(dAtA []byte) error
- func (msg *MsgMint) ValidateBasic() error
- func (m *MsgMint) XXX_DiscardUnknown()
- func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMint) XXX_Merge(src proto.Message)
- func (m *MsgMint) XXX_Size() int
- func (m *MsgMint) XXX_Unmarshal(b []byte) error
- type MsgMintResponse
- func (*MsgMintResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintResponse) ProtoMessage()
- func (m *MsgMintResponse) Reset()
- func (m *MsgMintResponse) Size() (n int)
- func (m *MsgMintResponse) String() string
- func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintResponse) XXX_DiscardUnknown()
- func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintResponse) XXX_Size() int
- func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateTokenURI
- func (*MsgUpdateTokenURI) Descriptor() ([]byte, []int)
- func (m *MsgUpdateTokenURI) GetOwner() string
- func (msg *MsgUpdateTokenURI) GetSignBytes() []byte
- func (msg *MsgUpdateTokenURI) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateTokenURI) GetTokenID() string
- func (m *MsgUpdateTokenURI) GetTokenURI() string
- func (m *MsgUpdateTokenURI) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateTokenURI) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateTokenURI) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateTokenURI) ProtoMessage()
- func (m *MsgUpdateTokenURI) Reset()
- func (msg *MsgUpdateTokenURI) Route() string
- func (m *MsgUpdateTokenURI) Size() (n int)
- func (m *MsgUpdateTokenURI) String() string
- func (msg *MsgUpdateTokenURI) Type() string
- func (m *MsgUpdateTokenURI) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateTokenURI) ValidateBasic() error
- func (m *MsgUpdateTokenURI) XXX_DiscardUnknown()
- func (m *MsgUpdateTokenURI) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateTokenURI) XXX_Merge(src proto.Message)
- func (m *MsgUpdateTokenURI) XXX_Size() int
- func (m *MsgUpdateTokenURI) XXX_Unmarshal(b []byte) error
- type MsgUpdateTokenURIResponse
- func (*MsgUpdateTokenURIResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateTokenURIResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateTokenURIResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateTokenURIResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateTokenURIResponse) ProtoMessage()
- func (m *MsgUpdateTokenURIResponse) Reset()
- func (m *MsgUpdateTokenURIResponse) Size() (n int)
- func (m *MsgUpdateTokenURIResponse) String() string
- func (m *MsgUpdateTokenURIResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateTokenURIResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateTokenURIResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateTokenURIResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateTokenURIResponse) XXX_Size() int
- func (m *MsgUpdateTokenURIResponse) XXX_Unmarshal(b []byte) error
- type QueryAllTokenDataRequest
- func (*QueryAllTokenDataRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllTokenDataRequest) GetPagination() *query.PageRequest
- func (m *QueryAllTokenDataRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllTokenDataRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllTokenDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllTokenDataRequest) ProtoMessage()
- func (m *QueryAllTokenDataRequest) Reset()
- func (m *QueryAllTokenDataRequest) Size() (n int)
- func (m *QueryAllTokenDataRequest) String() string
- func (m *QueryAllTokenDataRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllTokenDataRequest) XXX_DiscardUnknown()
- func (m *QueryAllTokenDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllTokenDataRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllTokenDataRequest) XXX_Size() int
- func (m *QueryAllTokenDataRequest) XXX_Unmarshal(b []byte) error
- type QueryAllTokenDataResponse
- func (*QueryAllTokenDataResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllTokenDataResponse) GetPagination() *query.PageResponse
- func (m *QueryAllTokenDataResponse) GetTokenData() []TokenData
- func (m *QueryAllTokenDataResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllTokenDataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllTokenDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllTokenDataResponse) ProtoMessage()
- func (m *QueryAllTokenDataResponse) Reset()
- func (m *QueryAllTokenDataResponse) Size() (n int)
- func (m *QueryAllTokenDataResponse) String() string
- func (m *QueryAllTokenDataResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllTokenDataResponse) XXX_DiscardUnknown()
- func (m *QueryAllTokenDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllTokenDataResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllTokenDataResponse) XXX_Size() int
- func (m *QueryAllTokenDataResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetTokenDataRequest
- func (*QueryGetTokenDataRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetTokenDataRequest) GetTokenID() string
- func (m *QueryGetTokenDataRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetTokenDataRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetTokenDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetTokenDataRequest) ProtoMessage()
- func (m *QueryGetTokenDataRequest) Reset()
- func (m *QueryGetTokenDataRequest) Size() (n int)
- func (m *QueryGetTokenDataRequest) String() string
- func (m *QueryGetTokenDataRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetTokenDataRequest) XXX_DiscardUnknown()
- func (m *QueryGetTokenDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetTokenDataRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetTokenDataRequest) XXX_Size() int
- func (m *QueryGetTokenDataRequest) XXX_Unmarshal(b []byte) error
- type QueryGetTokenDataResponse
- func (*QueryGetTokenDataResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetTokenDataResponse) GetTokenData() TokenData
- func (m *QueryGetTokenDataResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetTokenDataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetTokenDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetTokenDataResponse) ProtoMessage()
- func (m *QueryGetTokenDataResponse) Reset()
- func (m *QueryGetTokenDataResponse) Size() (n int)
- func (m *QueryGetTokenDataResponse) String() string
- func (m *QueryGetTokenDataResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetTokenDataResponse) XXX_DiscardUnknown()
- func (m *QueryGetTokenDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetTokenDataResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetTokenDataResponse) XXX_Size() int
- func (m *QueryGetTokenDataResponse) XXX_Unmarshal(b []byte) error
- type QueryGetTokenListRequest
- func (*QueryGetTokenListRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetTokenListRequest) GetOwnerAddress() string
- func (m *QueryGetTokenListRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetTokenListRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetTokenListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetTokenListRequest) ProtoMessage()
- func (m *QueryGetTokenListRequest) Reset()
- func (m *QueryGetTokenListRequest) Size() (n int)
- func (m *QueryGetTokenListRequest) String() string
- func (m *QueryGetTokenListRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetTokenListRequest) XXX_DiscardUnknown()
- func (m *QueryGetTokenListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetTokenListRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetTokenListRequest) XXX_Size() int
- func (m *QueryGetTokenListRequest) XXX_Unmarshal(b []byte) error
- type QueryGetTokenListResponse
- func (*QueryGetTokenListResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetTokenListResponse) GetTokenID() []string
- func (m *QueryGetTokenListResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetTokenListResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetTokenListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetTokenListResponse) ProtoMessage()
- func (m *QueryGetTokenListResponse) Reset()
- func (m *QueryGetTokenListResponse) Size() (n int)
- func (m *QueryGetTokenListResponse) String() string
- func (m *QueryGetTokenListResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetTokenListResponse) XXX_DiscardUnknown()
- func (m *QueryGetTokenListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetTokenListResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetTokenListResponse) XXX_Size() int
- func (m *QueryGetTokenListResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type TokenData
- func (*TokenData) Descriptor() ([]byte, []int)
- func (m *TokenData) GetBurnSequence() uint64
- func (m *TokenData) GetBurnable() bool
- func (m *TokenData) GetDecimal() uint64
- func (m *TokenData) GetMintSequence() uint64
- func (m *TokenData) GetMintable() bool
- func (m *TokenData) GetName() string
- func (m *TokenData) GetOwner() string
- func (m *TokenData) GetSymbol() string
- func (m *TokenData) GetTokenID() string
- func (m *TokenData) GetTokenURI() string
- func (m *TokenData) GetTotalSupply() uint64
- func (m *TokenData) Marshal() (dAtA []byte, err error)
- func (m *TokenData) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenData) ProtoMessage()
- func (m *TokenData) Reset()
- func (m *TokenData) Size() (n int)
- func (m *TokenData) String() string
- func (m *TokenData) Unmarshal(dAtA []byte) error
- func (m *TokenData) XXX_DiscardUnknown()
- func (m *TokenData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenData) XXX_Merge(src proto.Message)
- func (m *TokenData) XXX_Size() int
- func (m *TokenData) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
- func (*UnimplementedMsgServer) CreateToken(ctx context.Context, req *MsgCreateToken) (*MsgCreateTokenResponse, error)
- func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
- func (*UnimplementedMsgServer) UpdateTokenURI(ctx context.Context, req *MsgUpdateTokenURI) (*MsgUpdateTokenURIResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) GetTokenList(ctx context.Context, req *QueryGetTokenListRequest) (*QueryGetTokenListResponse, error)
- func (*UnimplementedQueryServer) TokenData(ctx context.Context, req *QueryGetTokenDataRequest) (*QueryGetTokenDataResponse, error)
- func (*UnimplementedQueryServer) TokenDataAll(ctx context.Context, req *QueryAllTokenDataRequest) (*QueryAllTokenDataResponse, error)
Constants ¶
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 // MemStoreKey defines the in-memory store key MemStoreKey = "mem_token" OwnerOfTokenKey = "OwnerOfTokenKey" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const (
// TokenDataKeyPrefix is the prefix to retrieve all TokenData
TokenDataKeyPrefix = "TokenDataKeyPrefix"
)
Variables ¶
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 ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTokenData = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTokenData = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTokenData = 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 (
ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)
x/token module sentinel errors
var (
ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
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 TokenDataKey ¶
TokenDataKey returns the store key to retrieve a TokenData from the index fields
Types ¶
type BankKeeper ¶
type BankKeeper interface { // Methods imported from bank should be defined here MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error GetSupply(ctx sdk.Context, denom string) sdk.Coin GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin }
type GenesisState ¶
type GenesisState struct {
TokenDataList []TokenData `protobuf:"bytes,1,rep,name=tokenDataList,proto3" json:"tokenDataList"`
}
GenesisState defines the token module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetTokenDataList ¶
func (m *GenesisState) GetTokenDataList() []TokenData
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgBurn ¶
type MsgBurn struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` TokenID string `protobuf:"bytes,2,opt,name=tokenID,proto3" json:"tokenID,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` }
func (*MsgBurn) Descriptor ¶
func (*MsgBurn) GetSignBytes ¶
func (*MsgBurn) GetSigners ¶
func (msg *MsgBurn) GetSigners() []sdk.AccAddress
func (*MsgBurn) GetTokenID ¶
func (*MsgBurn) MarshalToSizedBuffer ¶
func (*MsgBurn) ProtoMessage ¶
func (*MsgBurn) ProtoMessage()
func (*MsgBurn) ValidateBasic ¶
func (*MsgBurn) XXX_DiscardUnknown ¶
func (m *MsgBurn) XXX_DiscardUnknown()
func (*MsgBurn) XXX_Marshal ¶
func (*MsgBurn) XXX_Unmarshal ¶
type MsgBurnResponse ¶
type MsgBurnResponse struct { }
func (*MsgBurnResponse) Descriptor ¶
func (*MsgBurnResponse) Descriptor() ([]byte, []int)
func (*MsgBurnResponse) Marshal ¶
func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnResponse) MarshalToSizedBuffer ¶
func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnResponse) ProtoMessage ¶
func (*MsgBurnResponse) ProtoMessage()
func (*MsgBurnResponse) Reset ¶
func (m *MsgBurnResponse) Reset()
func (*MsgBurnResponse) Size ¶
func (m *MsgBurnResponse) Size() (n int)
func (*MsgBurnResponse) String ¶
func (m *MsgBurnResponse) String() string
func (*MsgBurnResponse) Unmarshal ¶
func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnResponse) XXX_DiscardUnknown ¶
func (m *MsgBurnResponse) XXX_DiscardUnknown()
func (*MsgBurnResponse) XXX_Marshal ¶
func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnResponse) XXX_Merge ¶
func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
func (*MsgBurnResponse) XXX_Size ¶
func (m *MsgBurnResponse) XXX_Size() int
func (*MsgBurnResponse) XXX_Unmarshal ¶
func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { CreateToken(ctx context.Context, in *MsgCreateToken, opts ...grpc.CallOption) (*MsgCreateTokenResponse, error) Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error) Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error) UpdateTokenURI(ctx context.Context, in *MsgUpdateTokenURI, opts ...grpc.CallOption) (*MsgUpdateTokenURIResponse, 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 MsgCreateToken ¶
type MsgCreateToken struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` TokenURI string `protobuf:"bytes,4,opt,name=tokenURI,proto3" json:"tokenURI,omitempty"` TotalSupply uint64 `protobuf:"varint,5,opt,name=totalSupply,proto3" json:"totalSupply,omitempty"` Decimal uint64 `protobuf:"varint,6,opt,name=decimal,proto3" json:"decimal,omitempty"` Mintable bool `protobuf:"varint,7,opt,name=mintable,proto3" json:"mintable,omitempty"` Burnable bool `protobuf:"varint,8,opt,name=burnable,proto3" json:"burnable,omitempty"` }
func NewMsgCreateToken ¶
func (*MsgCreateToken) Descriptor ¶
func (*MsgCreateToken) Descriptor() ([]byte, []int)
func (*MsgCreateToken) GetBurnable ¶
func (m *MsgCreateToken) GetBurnable() bool
func (*MsgCreateToken) GetDecimal ¶
func (m *MsgCreateToken) GetDecimal() uint64
func (*MsgCreateToken) GetMintable ¶
func (m *MsgCreateToken) GetMintable() bool
func (*MsgCreateToken) GetName ¶
func (m *MsgCreateToken) GetName() string
func (*MsgCreateToken) GetOwner ¶
func (m *MsgCreateToken) GetOwner() string
func (*MsgCreateToken) GetSignBytes ¶
func (msg *MsgCreateToken) GetSignBytes() []byte
func (*MsgCreateToken) GetSigners ¶
func (msg *MsgCreateToken) GetSigners() []sdk.AccAddress
func (*MsgCreateToken) GetSymbol ¶
func (m *MsgCreateToken) GetSymbol() string
func (*MsgCreateToken) GetTokenURI ¶
func (m *MsgCreateToken) GetTokenURI() string
func (*MsgCreateToken) GetTotalSupply ¶
func (m *MsgCreateToken) GetTotalSupply() uint64
func (*MsgCreateToken) Marshal ¶
func (m *MsgCreateToken) Marshal() (dAtA []byte, err error)
func (*MsgCreateToken) MarshalToSizedBuffer ¶
func (m *MsgCreateToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateToken) ProtoMessage ¶
func (*MsgCreateToken) ProtoMessage()
func (*MsgCreateToken) Reset ¶
func (m *MsgCreateToken) Reset()
func (*MsgCreateToken) Route ¶
func (msg *MsgCreateToken) Route() string
func (*MsgCreateToken) Size ¶
func (m *MsgCreateToken) Size() (n int)
func (*MsgCreateToken) String ¶
func (m *MsgCreateToken) String() string
func (*MsgCreateToken) Type ¶
func (msg *MsgCreateToken) Type() string
func (*MsgCreateToken) Unmarshal ¶
func (m *MsgCreateToken) Unmarshal(dAtA []byte) error
func (*MsgCreateToken) ValidateBasic ¶
func (msg *MsgCreateToken) ValidateBasic() error
func (*MsgCreateToken) XXX_DiscardUnknown ¶
func (m *MsgCreateToken) XXX_DiscardUnknown()
func (*MsgCreateToken) XXX_Marshal ¶
func (m *MsgCreateToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateToken) XXX_Merge ¶
func (m *MsgCreateToken) XXX_Merge(src proto.Message)
func (*MsgCreateToken) XXX_Size ¶
func (m *MsgCreateToken) XXX_Size() int
func (*MsgCreateToken) XXX_Unmarshal ¶
func (m *MsgCreateToken) XXX_Unmarshal(b []byte) error
type MsgCreateTokenResponse ¶
type MsgCreateTokenResponse struct { }
func (*MsgCreateTokenResponse) Descriptor ¶
func (*MsgCreateTokenResponse) Descriptor() ([]byte, []int)
func (*MsgCreateTokenResponse) Marshal ¶
func (m *MsgCreateTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateTokenResponse) MarshalTo ¶
func (m *MsgCreateTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateTokenResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateTokenResponse) ProtoMessage ¶
func (*MsgCreateTokenResponse) ProtoMessage()
func (*MsgCreateTokenResponse) Reset ¶
func (m *MsgCreateTokenResponse) Reset()
func (*MsgCreateTokenResponse) Size ¶
func (m *MsgCreateTokenResponse) Size() (n int)
func (*MsgCreateTokenResponse) String ¶
func (m *MsgCreateTokenResponse) String() string
func (*MsgCreateTokenResponse) Unmarshal ¶
func (m *MsgCreateTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateTokenResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateTokenResponse) XXX_DiscardUnknown()
func (*MsgCreateTokenResponse) XXX_Marshal ¶
func (m *MsgCreateTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateTokenResponse) XXX_Merge ¶
func (m *MsgCreateTokenResponse) XXX_Merge(src proto.Message)
func (*MsgCreateTokenResponse) XXX_Size ¶
func (m *MsgCreateTokenResponse) XXX_Size() int
func (*MsgCreateTokenResponse) XXX_Unmarshal ¶
func (m *MsgCreateTokenResponse) XXX_Unmarshal(b []byte) error
type MsgMint ¶
type MsgMint struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` TokenID string `protobuf:"bytes,2,opt,name=tokenID,proto3" json:"tokenID,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` ToAddress string `protobuf:"bytes,4,opt,name=toAddress,proto3" json:"toAddress,omitempty"` }
func NewMsgMint ¶
func (*MsgMint) Descriptor ¶
func (*MsgMint) GetSignBytes ¶
func (*MsgMint) GetSigners ¶
func (msg *MsgMint) GetSigners() []sdk.AccAddress
func (*MsgMint) GetToAddress ¶
func (*MsgMint) GetTokenID ¶
func (*MsgMint) MarshalToSizedBuffer ¶
func (*MsgMint) ProtoMessage ¶
func (*MsgMint) ProtoMessage()
func (*MsgMint) ValidateBasic ¶
func (*MsgMint) XXX_DiscardUnknown ¶
func (m *MsgMint) XXX_DiscardUnknown()
func (*MsgMint) XXX_Marshal ¶
func (*MsgMint) XXX_Unmarshal ¶
type MsgMintResponse ¶
type MsgMintResponse struct { }
func (*MsgMintResponse) Descriptor ¶
func (*MsgMintResponse) Descriptor() ([]byte, []int)
func (*MsgMintResponse) Marshal ¶
func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintResponse) MarshalToSizedBuffer ¶
func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintResponse) ProtoMessage ¶
func (*MsgMintResponse) ProtoMessage()
func (*MsgMintResponse) Reset ¶
func (m *MsgMintResponse) Reset()
func (*MsgMintResponse) Size ¶
func (m *MsgMintResponse) Size() (n int)
func (*MsgMintResponse) String ¶
func (m *MsgMintResponse) String() string
func (*MsgMintResponse) Unmarshal ¶
func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
func (*MsgMintResponse) XXX_DiscardUnknown ¶
func (m *MsgMintResponse) XXX_DiscardUnknown()
func (*MsgMintResponse) XXX_Marshal ¶
func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintResponse) XXX_Merge ¶
func (m *MsgMintResponse) XXX_Merge(src proto.Message)
func (*MsgMintResponse) XXX_Size ¶
func (m *MsgMintResponse) XXX_Size() int
func (*MsgMintResponse) XXX_Unmarshal ¶
func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreateToken(context.Context, *MsgCreateToken) (*MsgCreateTokenResponse, error) Mint(context.Context, *MsgMint) (*MsgMintResponse, error) Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error) UpdateTokenURI(context.Context, *MsgUpdateTokenURI) (*MsgUpdateTokenURIResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateTokenURI ¶
type MsgUpdateTokenURI struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` TokenID string `protobuf:"bytes,2,opt,name=tokenID,proto3" json:"tokenID,omitempty"` TokenURI string `protobuf:"bytes,3,opt,name=tokenURI,proto3" json:"tokenURI,omitempty"` }
func NewMsgUpdateTokenURI ¶
func NewMsgUpdateTokenURI(owner string, tokenID string, tokenURI string) *MsgUpdateTokenURI
func (*MsgUpdateTokenURI) Descriptor ¶
func (*MsgUpdateTokenURI) Descriptor() ([]byte, []int)
func (*MsgUpdateTokenURI) GetOwner ¶
func (m *MsgUpdateTokenURI) GetOwner() string
func (*MsgUpdateTokenURI) GetSignBytes ¶
func (msg *MsgUpdateTokenURI) GetSignBytes() []byte
func (*MsgUpdateTokenURI) GetSigners ¶
func (msg *MsgUpdateTokenURI) GetSigners() []sdk.AccAddress
func (*MsgUpdateTokenURI) GetTokenID ¶
func (m *MsgUpdateTokenURI) GetTokenID() string
func (*MsgUpdateTokenURI) GetTokenURI ¶
func (m *MsgUpdateTokenURI) GetTokenURI() string
func (*MsgUpdateTokenURI) Marshal ¶
func (m *MsgUpdateTokenURI) Marshal() (dAtA []byte, err error)
func (*MsgUpdateTokenURI) MarshalTo ¶
func (m *MsgUpdateTokenURI) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateTokenURI) MarshalToSizedBuffer ¶
func (m *MsgUpdateTokenURI) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateTokenURI) ProtoMessage ¶
func (*MsgUpdateTokenURI) ProtoMessage()
func (*MsgUpdateTokenURI) Reset ¶
func (m *MsgUpdateTokenURI) Reset()
func (*MsgUpdateTokenURI) Route ¶
func (msg *MsgUpdateTokenURI) Route() string
func (*MsgUpdateTokenURI) Size ¶
func (m *MsgUpdateTokenURI) Size() (n int)
func (*MsgUpdateTokenURI) String ¶
func (m *MsgUpdateTokenURI) String() string
func (*MsgUpdateTokenURI) Type ¶
func (msg *MsgUpdateTokenURI) Type() string
func (*MsgUpdateTokenURI) Unmarshal ¶
func (m *MsgUpdateTokenURI) Unmarshal(dAtA []byte) error
func (*MsgUpdateTokenURI) ValidateBasic ¶
func (msg *MsgUpdateTokenURI) ValidateBasic() error
func (*MsgUpdateTokenURI) XXX_DiscardUnknown ¶
func (m *MsgUpdateTokenURI) XXX_DiscardUnknown()
func (*MsgUpdateTokenURI) XXX_Marshal ¶
func (m *MsgUpdateTokenURI) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateTokenURI) XXX_Merge ¶
func (m *MsgUpdateTokenURI) XXX_Merge(src proto.Message)
func (*MsgUpdateTokenURI) XXX_Size ¶
func (m *MsgUpdateTokenURI) XXX_Size() int
func (*MsgUpdateTokenURI) XXX_Unmarshal ¶
func (m *MsgUpdateTokenURI) XXX_Unmarshal(b []byte) error
type MsgUpdateTokenURIResponse ¶
type MsgUpdateTokenURIResponse struct { }
func (*MsgUpdateTokenURIResponse) Descriptor ¶
func (*MsgUpdateTokenURIResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateTokenURIResponse) Marshal ¶
func (m *MsgUpdateTokenURIResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateTokenURIResponse) MarshalTo ¶
func (m *MsgUpdateTokenURIResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateTokenURIResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateTokenURIResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateTokenURIResponse) ProtoMessage ¶
func (*MsgUpdateTokenURIResponse) ProtoMessage()
func (*MsgUpdateTokenURIResponse) Reset ¶
func (m *MsgUpdateTokenURIResponse) Reset()
func (*MsgUpdateTokenURIResponse) Size ¶
func (m *MsgUpdateTokenURIResponse) Size() (n int)
func (*MsgUpdateTokenURIResponse) String ¶
func (m *MsgUpdateTokenURIResponse) String() string
func (*MsgUpdateTokenURIResponse) Unmarshal ¶
func (m *MsgUpdateTokenURIResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateTokenURIResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateTokenURIResponse) XXX_DiscardUnknown()
func (*MsgUpdateTokenURIResponse) XXX_Marshal ¶
func (m *MsgUpdateTokenURIResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateTokenURIResponse) XXX_Merge ¶
func (m *MsgUpdateTokenURIResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateTokenURIResponse) XXX_Size ¶
func (m *MsgUpdateTokenURIResponse) XXX_Size() int
func (*MsgUpdateTokenURIResponse) XXX_Unmarshal ¶
func (m *MsgUpdateTokenURIResponse) XXX_Unmarshal(b []byte) error
type QueryAllTokenDataRequest ¶
type QueryAllTokenDataRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllTokenDataRequest) Descriptor ¶
func (*QueryAllTokenDataRequest) Descriptor() ([]byte, []int)
func (*QueryAllTokenDataRequest) GetPagination ¶
func (m *QueryAllTokenDataRequest) GetPagination() *query.PageRequest
func (*QueryAllTokenDataRequest) Marshal ¶
func (m *QueryAllTokenDataRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllTokenDataRequest) MarshalTo ¶
func (m *QueryAllTokenDataRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllTokenDataRequest) MarshalToSizedBuffer ¶
func (m *QueryAllTokenDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllTokenDataRequest) ProtoMessage ¶
func (*QueryAllTokenDataRequest) ProtoMessage()
func (*QueryAllTokenDataRequest) Reset ¶
func (m *QueryAllTokenDataRequest) Reset()
func (*QueryAllTokenDataRequest) Size ¶
func (m *QueryAllTokenDataRequest) Size() (n int)
func (*QueryAllTokenDataRequest) String ¶
func (m *QueryAllTokenDataRequest) String() string
func (*QueryAllTokenDataRequest) Unmarshal ¶
func (m *QueryAllTokenDataRequest) Unmarshal(dAtA []byte) error
func (*QueryAllTokenDataRequest) XXX_DiscardUnknown ¶
func (m *QueryAllTokenDataRequest) XXX_DiscardUnknown()
func (*QueryAllTokenDataRequest) XXX_Marshal ¶
func (m *QueryAllTokenDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllTokenDataRequest) XXX_Merge ¶
func (m *QueryAllTokenDataRequest) XXX_Merge(src proto.Message)
func (*QueryAllTokenDataRequest) XXX_Size ¶
func (m *QueryAllTokenDataRequest) XXX_Size() int
func (*QueryAllTokenDataRequest) XXX_Unmarshal ¶
func (m *QueryAllTokenDataRequest) XXX_Unmarshal(b []byte) error
type QueryAllTokenDataResponse ¶
type QueryAllTokenDataResponse struct { TokenData []TokenData `protobuf:"bytes,1,rep,name=tokenData,proto3" json:"tokenData"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllTokenDataResponse) Descriptor ¶
func (*QueryAllTokenDataResponse) Descriptor() ([]byte, []int)
func (*QueryAllTokenDataResponse) GetPagination ¶
func (m *QueryAllTokenDataResponse) GetPagination() *query.PageResponse
func (*QueryAllTokenDataResponse) GetTokenData ¶
func (m *QueryAllTokenDataResponse) GetTokenData() []TokenData
func (*QueryAllTokenDataResponse) Marshal ¶
func (m *QueryAllTokenDataResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllTokenDataResponse) MarshalTo ¶
func (m *QueryAllTokenDataResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllTokenDataResponse) MarshalToSizedBuffer ¶
func (m *QueryAllTokenDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllTokenDataResponse) ProtoMessage ¶
func (*QueryAllTokenDataResponse) ProtoMessage()
func (*QueryAllTokenDataResponse) Reset ¶
func (m *QueryAllTokenDataResponse) Reset()
func (*QueryAllTokenDataResponse) Size ¶
func (m *QueryAllTokenDataResponse) Size() (n int)
func (*QueryAllTokenDataResponse) String ¶
func (m *QueryAllTokenDataResponse) String() string
func (*QueryAllTokenDataResponse) Unmarshal ¶
func (m *QueryAllTokenDataResponse) Unmarshal(dAtA []byte) error
func (*QueryAllTokenDataResponse) XXX_DiscardUnknown ¶
func (m *QueryAllTokenDataResponse) XXX_DiscardUnknown()
func (*QueryAllTokenDataResponse) XXX_Marshal ¶
func (m *QueryAllTokenDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllTokenDataResponse) XXX_Merge ¶
func (m *QueryAllTokenDataResponse) XXX_Merge(src proto.Message)
func (*QueryAllTokenDataResponse) XXX_Size ¶
func (m *QueryAllTokenDataResponse) XXX_Size() int
func (*QueryAllTokenDataResponse) XXX_Unmarshal ¶
func (m *QueryAllTokenDataResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Queries a tokenData by index. TokenData(ctx context.Context, in *QueryGetTokenDataRequest, opts ...grpc.CallOption) (*QueryGetTokenDataResponse, error) // Queries a list of tokenData items. TokenDataAll(ctx context.Context, in *QueryAllTokenDataRequest, opts ...grpc.CallOption) (*QueryAllTokenDataResponse, error) // Queries a list of getTokenList items. GetTokenList(ctx context.Context, in *QueryGetTokenListRequest, opts ...grpc.CallOption) (*QueryGetTokenListResponse, 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 QueryGetTokenDataRequest ¶
type QueryGetTokenDataRequest struct {
TokenID string `protobuf:"bytes,1,opt,name=tokenID,proto3" json:"tokenID,omitempty"`
}
func (*QueryGetTokenDataRequest) Descriptor ¶
func (*QueryGetTokenDataRequest) Descriptor() ([]byte, []int)
func (*QueryGetTokenDataRequest) GetTokenID ¶
func (m *QueryGetTokenDataRequest) GetTokenID() string
func (*QueryGetTokenDataRequest) Marshal ¶
func (m *QueryGetTokenDataRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetTokenDataRequest) MarshalTo ¶
func (m *QueryGetTokenDataRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetTokenDataRequest) MarshalToSizedBuffer ¶
func (m *QueryGetTokenDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetTokenDataRequest) ProtoMessage ¶
func (*QueryGetTokenDataRequest) ProtoMessage()
func (*QueryGetTokenDataRequest) Reset ¶
func (m *QueryGetTokenDataRequest) Reset()
func (*QueryGetTokenDataRequest) Size ¶
func (m *QueryGetTokenDataRequest) Size() (n int)
func (*QueryGetTokenDataRequest) String ¶
func (m *QueryGetTokenDataRequest) String() string
func (*QueryGetTokenDataRequest) Unmarshal ¶
func (m *QueryGetTokenDataRequest) Unmarshal(dAtA []byte) error
func (*QueryGetTokenDataRequest) XXX_DiscardUnknown ¶
func (m *QueryGetTokenDataRequest) XXX_DiscardUnknown()
func (*QueryGetTokenDataRequest) XXX_Marshal ¶
func (m *QueryGetTokenDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetTokenDataRequest) XXX_Merge ¶
func (m *QueryGetTokenDataRequest) XXX_Merge(src proto.Message)
func (*QueryGetTokenDataRequest) XXX_Size ¶
func (m *QueryGetTokenDataRequest) XXX_Size() int
func (*QueryGetTokenDataRequest) XXX_Unmarshal ¶
func (m *QueryGetTokenDataRequest) XXX_Unmarshal(b []byte) error
type QueryGetTokenDataResponse ¶
type QueryGetTokenDataResponse struct {
TokenData TokenData `protobuf:"bytes,1,opt,name=tokenData,proto3" json:"tokenData"`
}
func (*QueryGetTokenDataResponse) Descriptor ¶
func (*QueryGetTokenDataResponse) Descriptor() ([]byte, []int)
func (*QueryGetTokenDataResponse) GetTokenData ¶
func (m *QueryGetTokenDataResponse) GetTokenData() TokenData
func (*QueryGetTokenDataResponse) Marshal ¶
func (m *QueryGetTokenDataResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetTokenDataResponse) MarshalTo ¶
func (m *QueryGetTokenDataResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetTokenDataResponse) MarshalToSizedBuffer ¶
func (m *QueryGetTokenDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetTokenDataResponse) ProtoMessage ¶
func (*QueryGetTokenDataResponse) ProtoMessage()
func (*QueryGetTokenDataResponse) Reset ¶
func (m *QueryGetTokenDataResponse) Reset()
func (*QueryGetTokenDataResponse) Size ¶
func (m *QueryGetTokenDataResponse) Size() (n int)
func (*QueryGetTokenDataResponse) String ¶
func (m *QueryGetTokenDataResponse) String() string
func (*QueryGetTokenDataResponse) Unmarshal ¶
func (m *QueryGetTokenDataResponse) Unmarshal(dAtA []byte) error
func (*QueryGetTokenDataResponse) XXX_DiscardUnknown ¶
func (m *QueryGetTokenDataResponse) XXX_DiscardUnknown()
func (*QueryGetTokenDataResponse) XXX_Marshal ¶
func (m *QueryGetTokenDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetTokenDataResponse) XXX_Merge ¶
func (m *QueryGetTokenDataResponse) XXX_Merge(src proto.Message)
func (*QueryGetTokenDataResponse) XXX_Size ¶
func (m *QueryGetTokenDataResponse) XXX_Size() int
func (*QueryGetTokenDataResponse) XXX_Unmarshal ¶
func (m *QueryGetTokenDataResponse) XXX_Unmarshal(b []byte) error
type QueryGetTokenListRequest ¶
type QueryGetTokenListRequest struct {
OwnerAddress string `protobuf:"bytes,1,opt,name=ownerAddress,proto3" json:"ownerAddress,omitempty"`
}
func (*QueryGetTokenListRequest) Descriptor ¶
func (*QueryGetTokenListRequest) Descriptor() ([]byte, []int)
func (*QueryGetTokenListRequest) GetOwnerAddress ¶
func (m *QueryGetTokenListRequest) GetOwnerAddress() string
func (*QueryGetTokenListRequest) Marshal ¶
func (m *QueryGetTokenListRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetTokenListRequest) MarshalTo ¶
func (m *QueryGetTokenListRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetTokenListRequest) MarshalToSizedBuffer ¶
func (m *QueryGetTokenListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetTokenListRequest) ProtoMessage ¶
func (*QueryGetTokenListRequest) ProtoMessage()
func (*QueryGetTokenListRequest) Reset ¶
func (m *QueryGetTokenListRequest) Reset()
func (*QueryGetTokenListRequest) Size ¶
func (m *QueryGetTokenListRequest) Size() (n int)
func (*QueryGetTokenListRequest) String ¶
func (m *QueryGetTokenListRequest) String() string
func (*QueryGetTokenListRequest) Unmarshal ¶
func (m *QueryGetTokenListRequest) Unmarshal(dAtA []byte) error
func (*QueryGetTokenListRequest) XXX_DiscardUnknown ¶
func (m *QueryGetTokenListRequest) XXX_DiscardUnknown()
func (*QueryGetTokenListRequest) XXX_Marshal ¶
func (m *QueryGetTokenListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetTokenListRequest) XXX_Merge ¶
func (m *QueryGetTokenListRequest) XXX_Merge(src proto.Message)
func (*QueryGetTokenListRequest) XXX_Size ¶
func (m *QueryGetTokenListRequest) XXX_Size() int
func (*QueryGetTokenListRequest) XXX_Unmarshal ¶
func (m *QueryGetTokenListRequest) XXX_Unmarshal(b []byte) error
type QueryGetTokenListResponse ¶
type QueryGetTokenListResponse struct {
TokenID []string `protobuf:"bytes,1,rep,name=tokenID,proto3" json:"tokenID,omitempty"`
}
func (*QueryGetTokenListResponse) Descriptor ¶
func (*QueryGetTokenListResponse) Descriptor() ([]byte, []int)
func (*QueryGetTokenListResponse) GetTokenID ¶
func (m *QueryGetTokenListResponse) GetTokenID() []string
func (*QueryGetTokenListResponse) Marshal ¶
func (m *QueryGetTokenListResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetTokenListResponse) MarshalTo ¶
func (m *QueryGetTokenListResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetTokenListResponse) MarshalToSizedBuffer ¶
func (m *QueryGetTokenListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetTokenListResponse) ProtoMessage ¶
func (*QueryGetTokenListResponse) ProtoMessage()
func (*QueryGetTokenListResponse) Reset ¶
func (m *QueryGetTokenListResponse) Reset()
func (*QueryGetTokenListResponse) Size ¶
func (m *QueryGetTokenListResponse) Size() (n int)
func (*QueryGetTokenListResponse) String ¶
func (m *QueryGetTokenListResponse) String() string
func (*QueryGetTokenListResponse) Unmarshal ¶
func (m *QueryGetTokenListResponse) Unmarshal(dAtA []byte) error
func (*QueryGetTokenListResponse) XXX_DiscardUnknown ¶
func (m *QueryGetTokenListResponse) XXX_DiscardUnknown()
func (*QueryGetTokenListResponse) XXX_Marshal ¶
func (m *QueryGetTokenListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetTokenListResponse) XXX_Merge ¶
func (m *QueryGetTokenListResponse) XXX_Merge(src proto.Message)
func (*QueryGetTokenListResponse) XXX_Size ¶
func (m *QueryGetTokenListResponse) XXX_Size() int
func (*QueryGetTokenListResponse) XXX_Unmarshal ¶
func (m *QueryGetTokenListResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Queries a tokenData by index. TokenData(context.Context, *QueryGetTokenDataRequest) (*QueryGetTokenDataResponse, error) // Queries a list of tokenData items. TokenDataAll(context.Context, *QueryAllTokenDataRequest) (*QueryAllTokenDataResponse, error) // Queries a list of getTokenList items. GetTokenList(context.Context, *QueryGetTokenListRequest) (*QueryGetTokenListResponse, error) }
QueryServer is the server API for Query service.
type TokenData ¶
type TokenData struct { TokenID string `protobuf:"bytes,1,opt,name=tokenID,proto3" json:"tokenID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` TokenURI string `protobuf:"bytes,4,opt,name=tokenURI,proto3" json:"tokenURI,omitempty"` TotalSupply uint64 `protobuf:"varint,5,opt,name=totalSupply,proto3" json:"totalSupply,omitempty"` Decimal uint64 `protobuf:"varint,6,opt,name=decimal,proto3" json:"decimal,omitempty"` Mintable bool `protobuf:"varint,7,opt,name=mintable,proto3" json:"mintable,omitempty"` Burnable bool `protobuf:"varint,8,opt,name=burnable,proto3" json:"burnable,omitempty"` MintSequence uint64 `protobuf:"varint,9,opt,name=mintSequence,proto3" json:"mintSequence,omitempty"` BurnSequence uint64 `protobuf:"varint,10,opt,name=burnSequence,proto3" json:"burnSequence,omitempty"` Owner string `protobuf:"bytes,11,opt,name=owner,proto3" json:"owner,omitempty"` }
func (*TokenData) Descriptor ¶
func (*TokenData) GetBurnSequence ¶
func (*TokenData) GetBurnable ¶
func (*TokenData) GetDecimal ¶
func (*TokenData) GetMintSequence ¶
func (*TokenData) GetMintable ¶
func (*TokenData) GetTokenID ¶
func (*TokenData) GetTokenURI ¶
func (*TokenData) GetTotalSupply ¶
func (*TokenData) MarshalToSizedBuffer ¶
func (*TokenData) ProtoMessage ¶
func (*TokenData) ProtoMessage()
func (*TokenData) XXX_DiscardUnknown ¶
func (m *TokenData) XXX_DiscardUnknown()
func (*TokenData) XXX_Marshal ¶
func (*TokenData) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Burn ¶
func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
func (*UnimplementedMsgServer) CreateToken ¶
func (*UnimplementedMsgServer) CreateToken(ctx context.Context, req *MsgCreateToken) (*MsgCreateTokenResponse, error)
func (*UnimplementedMsgServer) Mint ¶
func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
func (*UnimplementedMsgServer) UpdateTokenURI ¶
func (*UnimplementedMsgServer) UpdateTokenURI(ctx context.Context, req *MsgUpdateTokenURI) (*MsgUpdateTokenURIResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) GetTokenList ¶
func (*UnimplementedQueryServer) GetTokenList(ctx context.Context, req *QueryGetTokenListRequest) (*QueryGetTokenListResponse, error)
func (*UnimplementedQueryServer) TokenData ¶
func (*UnimplementedQueryServer) TokenData(ctx context.Context, req *QueryGetTokenDataRequest) (*QueryGetTokenDataResponse, error)
func (*UnimplementedQueryServer) TokenDataAll ¶
func (*UnimplementedQueryServer) TokenDataAll(ctx context.Context, req *QueryAllTokenDataRequest) (*QueryAllTokenDataResponse, error)