Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CheckUnique(arr []uint32) bool
- func GetCollectionCounterKey(creator sdk.AccAddress, denom string) []byte
- func GetCollectionKey(creator sdk.AccAddress, denom string) []byte
- func GetCollectionsByCreatorKey(creator sdk.AccAddress) []byte
- func GetCollectionsKey() []byte
- func GetSubTokenByOwnerKey(owner sdk.AccAddress, id string, index uint32) []byte
- func GetSubTokenKey(id string, index uint32) []byte
- func GetSubTokensKey(id string) []byte
- func GetTokenByCollectionKey(creator sdk.AccAddress, denom string, id string) []byte
- func GetTokenCounterKey(id string) []byte
- func GetTokenKey(id string) []byte
- func GetTokenKeyByIDHash(id []byte) []byte
- func GetTokenURIKey(tokenURI string) []byte
- func GetTokensByCollectionKey(creator sdk.AccAddress, denom string) []byte
- func GetTokensKey() []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func SupplyInvariantCheck(collections []Collection) (string, bool)
- type Collection
- func (*Collection) Descriptor() ([]byte, []int)
- func (this *Collection) Equal(that interface{}) bool
- func (m *Collection) Marshal() (dAtA []byte, err error)
- func (m *Collection) MarshalTo(dAtA []byte) (int, error)
- func (m *Collection) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Collection) ProtoMessage()
- func (m *Collection) Reset()
- func (m *Collection) Size() (n int)
- func (m *Collection) String() string
- func (m *Collection) Unmarshal(dAtA []byte) error
- func (c *Collection) Validate() error
- func (m *Collection) XXX_DiscardUnknown()
- func (m *Collection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Collection) XXX_Merge(src proto.Message)
- func (m *Collection) XXX_Size() int
- func (m *Collection) XXX_Unmarshal(b []byte) error
- type CollectionCounter
- func (*CollectionCounter) Descriptor() ([]byte, []int)
- func (this *CollectionCounter) Equal(that interface{}) bool
- func (m *CollectionCounter) Marshal() (dAtA []byte, err error)
- func (m *CollectionCounter) MarshalTo(dAtA []byte) (int, error)
- func (m *CollectionCounter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CollectionCounter) ProtoMessage()
- func (m *CollectionCounter) Reset()
- func (m *CollectionCounter) Size() (n int)
- func (m *CollectionCounter) String() string
- func (m *CollectionCounter) Unmarshal(dAtA []byte) error
- func (m *CollectionCounter) XXX_DiscardUnknown()
- func (m *CollectionCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CollectionCounter) XXX_Merge(src proto.Message)
- func (m *CollectionCounter) XXX_Size() int
- func (m *CollectionCounter) XXX_Unmarshal(b []byte) error
- type EventBurnToken
- func (*EventBurnToken) Descriptor() ([]byte, []int)
- func (m *EventBurnToken) GetID() string
- func (m *EventBurnToken) GetReturn() string
- func (m *EventBurnToken) GetSender() string
- func (m *EventBurnToken) GetSubTokenIDs() []uint32
- func (m *EventBurnToken) Marshal() (dAtA []byte, err error)
- func (m *EventBurnToken) MarshalTo(dAtA []byte) (int, error)
- func (m *EventBurnToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventBurnToken) ProtoMessage()
- func (m *EventBurnToken) Reset()
- func (m *EventBurnToken) Size() (n int)
- func (m *EventBurnToken) String() string
- func (m *EventBurnToken) Unmarshal(dAtA []byte) error
- func (m *EventBurnToken) XXX_DiscardUnknown()
- func (m *EventBurnToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventBurnToken) XXX_Merge(src proto.Message)
- func (m *EventBurnToken) XXX_Size() int
- func (m *EventBurnToken) XXX_Unmarshal(b []byte) error
- type EventCreateCollection
- func (*EventCreateCollection) Descriptor() ([]byte, []int)
- func (m *EventCreateCollection) GetCreator() string
- func (m *EventCreateCollection) GetDenom() string
- func (m *EventCreateCollection) GetSupply() uint32
- func (m *EventCreateCollection) Marshal() (dAtA []byte, err error)
- func (m *EventCreateCollection) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCreateCollection) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCreateCollection) ProtoMessage()
- func (m *EventCreateCollection) Reset()
- func (m *EventCreateCollection) Size() (n int)
- func (m *EventCreateCollection) String() string
- func (m *EventCreateCollection) Unmarshal(dAtA []byte) error
- func (m *EventCreateCollection) XXX_DiscardUnknown()
- func (m *EventCreateCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCreateCollection) XXX_Merge(src proto.Message)
- func (m *EventCreateCollection) XXX_Size() int
- func (m *EventCreateCollection) XXX_Unmarshal(b []byte) error
- type EventCreateToken
- func (*EventCreateToken) Descriptor() ([]byte, []int)
- func (m *EventCreateToken) GetAllowMint() bool
- func (m *EventCreateToken) GetCreator() string
- func (m *EventCreateToken) GetDenom() string
- func (m *EventCreateToken) GetID() string
- func (m *EventCreateToken) GetRecipient() string
- func (m *EventCreateToken) GetReserve() string
- func (m *EventCreateToken) GetSubTokenIDs() []uint32
- func (m *EventCreateToken) GetURI() string
- func (m *EventCreateToken) Marshal() (dAtA []byte, err error)
- func (m *EventCreateToken) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCreateToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCreateToken) ProtoMessage()
- func (m *EventCreateToken) Reset()
- func (m *EventCreateToken) Size() (n int)
- func (m *EventCreateToken) String() string
- func (m *EventCreateToken) Unmarshal(dAtA []byte) error
- func (m *EventCreateToken) XXX_DiscardUnknown()
- func (m *EventCreateToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCreateToken) XXX_Merge(src proto.Message)
- func (m *EventCreateToken) XXX_Size() int
- func (m *EventCreateToken) XXX_Unmarshal(b []byte) error
- type EventMintToken
- func (*EventMintToken) Descriptor() ([]byte, []int)
- func (m *EventMintToken) GetCreator() string
- func (m *EventMintToken) GetDenom() string
- func (m *EventMintToken) GetID() string
- func (m *EventMintToken) GetRecipient() string
- func (m *EventMintToken) GetReserve() string
- func (m *EventMintToken) GetSubTokenIDs() []uint32
- func (m *EventMintToken) Marshal() (dAtA []byte, err error)
- func (m *EventMintToken) MarshalTo(dAtA []byte) (int, error)
- func (m *EventMintToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventMintToken) ProtoMessage()
- func (m *EventMintToken) Reset()
- func (m *EventMintToken) Size() (n int)
- func (m *EventMintToken) String() string
- func (m *EventMintToken) Unmarshal(dAtA []byte) error
- func (m *EventMintToken) XXX_DiscardUnknown()
- func (m *EventMintToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventMintToken) XXX_Merge(src proto.Message)
- func (m *EventMintToken) XXX_Size() int
- func (m *EventMintToken) XXX_Unmarshal(b []byte) error
- type EventSendToken
- func (*EventSendToken) Descriptor() ([]byte, []int)
- func (m *EventSendToken) GetID() string
- func (m *EventSendToken) GetRecipient() string
- func (m *EventSendToken) GetSender() string
- func (m *EventSendToken) GetSubTokenIDs() []uint32
- func (m *EventSendToken) Marshal() (dAtA []byte, err error)
- func (m *EventSendToken) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSendToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSendToken) ProtoMessage()
- func (m *EventSendToken) Reset()
- func (m *EventSendToken) Size() (n int)
- func (m *EventSendToken) String() string
- func (m *EventSendToken) Unmarshal(dAtA []byte) error
- func (m *EventSendToken) XXX_DiscardUnknown()
- func (m *EventSendToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSendToken) XXX_Merge(src proto.Message)
- func (m *EventSendToken) XXX_Size() int
- func (m *EventSendToken) XXX_Unmarshal(b []byte) error
- type EventUpdateCollection
- func (*EventUpdateCollection) Descriptor() ([]byte, []int)
- func (m *EventUpdateCollection) GetCreator() string
- func (m *EventUpdateCollection) GetDenom() string
- func (m *EventUpdateCollection) GetSupply() uint32
- func (m *EventUpdateCollection) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateCollection) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateCollection) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateCollection) ProtoMessage()
- func (m *EventUpdateCollection) Reset()
- func (m *EventUpdateCollection) Size() (n int)
- func (m *EventUpdateCollection) String() string
- func (m *EventUpdateCollection) Unmarshal(dAtA []byte) error
- func (m *EventUpdateCollection) XXX_DiscardUnknown()
- func (m *EventUpdateCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateCollection) XXX_Merge(src proto.Message)
- func (m *EventUpdateCollection) XXX_Size() int
- func (m *EventUpdateCollection) XXX_Unmarshal(b []byte) error
- type EventUpdateReserve
- func (*EventUpdateReserve) Descriptor() ([]byte, []int)
- func (m *EventUpdateReserve) GetID() string
- func (m *EventUpdateReserve) GetRefill() string
- func (m *EventUpdateReserve) GetReserve() string
- func (m *EventUpdateReserve) GetSender() string
- func (m *EventUpdateReserve) GetSubTokenIDs() []uint32
- func (m *EventUpdateReserve) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateReserve) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateReserve) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateReserve) ProtoMessage()
- func (m *EventUpdateReserve) Reset()
- func (m *EventUpdateReserve) Size() (n int)
- func (m *EventUpdateReserve) String() string
- func (m *EventUpdateReserve) Unmarshal(dAtA []byte) error
- func (m *EventUpdateReserve) XXX_DiscardUnknown()
- func (m *EventUpdateReserve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateReserve) XXX_Merge(src proto.Message)
- func (m *EventUpdateReserve) XXX_Size() int
- func (m *EventUpdateReserve) XXX_Unmarshal(b []byte) error
- type EventUpdateToken
- func (*EventUpdateToken) Descriptor() ([]byte, []int)
- func (m *EventUpdateToken) GetID() string
- func (m *EventUpdateToken) GetSender() string
- func (m *EventUpdateToken) GetURI() string
- func (m *EventUpdateToken) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateToken) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateToken) ProtoMessage()
- func (m *EventUpdateToken) Reset()
- func (m *EventUpdateToken) Size() (n int)
- func (m *EventUpdateToken) String() string
- func (m *EventUpdateToken) Unmarshal(dAtA []byte) error
- func (m *EventUpdateToken) XXX_DiscardUnknown()
- func (m *EventUpdateToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateToken) XXX_Merge(src proto.Message)
- func (m *EventUpdateToken) XXX_Size() int
- func (m *EventUpdateToken) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (this *GenesisState) Equal(that interface{}) bool
- func (m *GenesisState) GetCollections() []Collection
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgBurnToken
- func (*MsgBurnToken) Descriptor() ([]byte, []int)
- func (m *MsgBurnToken) GetSender() string
- func (msg *MsgBurnToken) GetSignBytes() []byte
- func (msg *MsgBurnToken) GetSigners() []sdk.AccAddress
- func (m *MsgBurnToken) GetSubTokenIDs() []uint32
- func (m *MsgBurnToken) GetTokenID() string
- func (m *MsgBurnToken) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnToken) ProtoMessage()
- func (m *MsgBurnToken) Reset()
- func (msg *MsgBurnToken) Route() string
- func (m *MsgBurnToken) Size() (n int)
- func (m *MsgBurnToken) String() string
- func (msg *MsgBurnToken) Type() string
- func (m *MsgBurnToken) Unmarshal(dAtA []byte) error
- func (msg *MsgBurnToken) ValidateBasic() error
- func (m *MsgBurnToken) XXX_DiscardUnknown()
- func (m *MsgBurnToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnToken) XXX_Merge(src proto.Message)
- func (m *MsgBurnToken) XXX_Size() int
- func (m *MsgBurnToken) XXX_Unmarshal(b []byte) error
- type MsgBurnTokenResponse
- func (*MsgBurnTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnTokenResponse) ProtoMessage()
- func (m *MsgBurnTokenResponse) Reset()
- func (m *MsgBurnTokenResponse) Size() (n int)
- func (m *MsgBurnTokenResponse) String() string
- func (m *MsgBurnTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnTokenResponse) XXX_DiscardUnknown()
- func (m *MsgBurnTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnTokenResponse) XXX_Size() int
- func (m *MsgBurnTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgMintToken
- func (*MsgMintToken) Descriptor() ([]byte, []int)
- func (m *MsgMintToken) GetAllowMint() bool
- func (m *MsgMintToken) GetDenom() string
- func (m *MsgMintToken) GetQuantity() uint32
- func (m *MsgMintToken) GetRecipient() string
- func (m *MsgMintToken) GetReserve() types.Coin
- func (m *MsgMintToken) GetSender() string
- func (msg *MsgMintToken) GetSignBytes() []byte
- func (msg *MsgMintToken) GetSigners() []sdk.AccAddress
- func (m *MsgMintToken) GetTokenID() string
- func (m *MsgMintToken) GetTokenURI() string
- func (m *MsgMintToken) Marshal() (dAtA []byte, err error)
- func (m *MsgMintToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintToken) ProtoMessage()
- func (m *MsgMintToken) Reset()
- func (msg *MsgMintToken) Route() string
- func (m *MsgMintToken) Size() (n int)
- func (m *MsgMintToken) String() string
- func (msg *MsgMintToken) Type() string
- func (m *MsgMintToken) Unmarshal(dAtA []byte) error
- func (msg *MsgMintToken) ValidateBasic() error
- func (m *MsgMintToken) XXX_DiscardUnknown()
- func (m *MsgMintToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintToken) XXX_Merge(src proto.Message)
- func (m *MsgMintToken) XXX_Size() int
- func (m *MsgMintToken) XXX_Unmarshal(b []byte) error
- type MsgMintTokenResponse
- func (*MsgMintTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintTokenResponse) ProtoMessage()
- func (m *MsgMintTokenResponse) Reset()
- func (m *MsgMintTokenResponse) Size() (n int)
- func (m *MsgMintTokenResponse) String() string
- func (m *MsgMintTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintTokenResponse) XXX_DiscardUnknown()
- func (m *MsgMintTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintTokenResponse) XXX_Size() int
- func (m *MsgMintTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgSendToken
- func (*MsgSendToken) Descriptor() ([]byte, []int)
- func (m *MsgSendToken) GetRecipient() string
- func (m *MsgSendToken) GetSender() string
- func (msg *MsgSendToken) GetSignBytes() []byte
- func (msg *MsgSendToken) GetSigners() []sdk.AccAddress
- func (m *MsgSendToken) GetSubTokenIDs() []uint32
- func (m *MsgSendToken) GetTokenID() string
- func (m *MsgSendToken) Marshal() (dAtA []byte, err error)
- func (m *MsgSendToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSendToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSendToken) ProtoMessage()
- func (m *MsgSendToken) Reset()
- func (msg *MsgSendToken) Route() string
- func (m *MsgSendToken) Size() (n int)
- func (m *MsgSendToken) String() string
- func (msg *MsgSendToken) Type() string
- func (m *MsgSendToken) Unmarshal(dAtA []byte) error
- func (msg *MsgSendToken) ValidateBasic() error
- func (m *MsgSendToken) XXX_DiscardUnknown()
- func (m *MsgSendToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSendToken) XXX_Merge(src proto.Message)
- func (m *MsgSendToken) XXX_Size() int
- func (m *MsgSendToken) XXX_Unmarshal(b []byte) error
- type MsgSendTokenResponse
- func (*MsgSendTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgSendTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSendTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSendTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSendTokenResponse) ProtoMessage()
- func (m *MsgSendTokenResponse) Reset()
- func (m *MsgSendTokenResponse) Size() (n int)
- func (m *MsgSendTokenResponse) String() string
- func (m *MsgSendTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSendTokenResponse) XXX_DiscardUnknown()
- func (m *MsgSendTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSendTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgSendTokenResponse) XXX_Size() int
- func (m *MsgSendTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateReserve
- func (*MsgUpdateReserve) Descriptor() ([]byte, []int)
- func (m *MsgUpdateReserve) GetReserve() types.Coin
- func (m *MsgUpdateReserve) GetSender() string
- func (msg *MsgUpdateReserve) GetSignBytes() []byte
- func (msg *MsgUpdateReserve) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateReserve) GetSubTokenIDs() []uint32
- func (m *MsgUpdateReserve) GetTokenID() string
- func (m *MsgUpdateReserve) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateReserve) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateReserve) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateReserve) ProtoMessage()
- func (m *MsgUpdateReserve) Reset()
- func (msg *MsgUpdateReserve) Route() string
- func (m *MsgUpdateReserve) Size() (n int)
- func (m *MsgUpdateReserve) String() string
- func (msg *MsgUpdateReserve) Type() string
- func (m *MsgUpdateReserve) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateReserve) ValidateBasic() error
- func (m *MsgUpdateReserve) XXX_DiscardUnknown()
- func (m *MsgUpdateReserve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateReserve) XXX_Merge(src proto.Message)
- func (m *MsgUpdateReserve) XXX_Size() int
- func (m *MsgUpdateReserve) XXX_Unmarshal(b []byte) error
- type MsgUpdateReserveResponse
- func (*MsgUpdateReserveResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateReserveResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateReserveResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateReserveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateReserveResponse) ProtoMessage()
- func (m *MsgUpdateReserveResponse) Reset()
- func (m *MsgUpdateReserveResponse) Size() (n int)
- func (m *MsgUpdateReserveResponse) String() string
- func (m *MsgUpdateReserveResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateReserveResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateReserveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateReserveResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateReserveResponse) XXX_Size() int
- func (m *MsgUpdateReserveResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateToken
- func (*MsgUpdateToken) Descriptor() ([]byte, []int)
- func (m *MsgUpdateToken) GetSender() string
- func (msg *MsgUpdateToken) GetSignBytes() []byte
- func (msg *MsgUpdateToken) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateToken) GetTokenID() string
- func (m *MsgUpdateToken) GetTokenURI() string
- func (m *MsgUpdateToken) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateToken) ProtoMessage()
- func (m *MsgUpdateToken) Reset()
- func (msg *MsgUpdateToken) Route() string
- func (m *MsgUpdateToken) Size() (n int)
- func (m *MsgUpdateToken) String() string
- func (msg *MsgUpdateToken) Type() string
- func (m *MsgUpdateToken) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateToken) ValidateBasic() error
- func (m *MsgUpdateToken) XXX_DiscardUnknown()
- func (m *MsgUpdateToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateToken) XXX_Merge(src proto.Message)
- func (m *MsgUpdateToken) XXX_Size() int
- func (m *MsgUpdateToken) XXX_Unmarshal(b []byte) error
- type MsgUpdateTokenResponse
- func (*MsgUpdateTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateTokenResponse) ProtoMessage()
- func (m *MsgUpdateTokenResponse) Reset()
- func (m *MsgUpdateTokenResponse) Size() (n int)
- func (m *MsgUpdateTokenResponse) String() string
- func (m *MsgUpdateTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateTokenResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateTokenResponse) XXX_Size() int
- func (m *MsgUpdateTokenResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p *Params) Validate() (err 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 QueryBalanceParams
- type QueryClient
- type QueryCollectionParams
- type QueryCollectionRequest
- func (*QueryCollectionRequest) Descriptor() ([]byte, []int)
- func (m *QueryCollectionRequest) GetCreator() string
- func (m *QueryCollectionRequest) GetDenom() string
- func (m *QueryCollectionRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCollectionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollectionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollectionRequest) ProtoMessage()
- func (m *QueryCollectionRequest) Reset()
- func (m *QueryCollectionRequest) Size() (n int)
- func (m *QueryCollectionRequest) String() string
- func (m *QueryCollectionRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCollectionRequest) XXX_DiscardUnknown()
- func (m *QueryCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollectionRequest) XXX_Merge(src proto.Message)
- func (m *QueryCollectionRequest) XXX_Size() int
- func (m *QueryCollectionRequest) XXX_Unmarshal(b []byte) error
- type QueryCollectionResponse
- func (*QueryCollectionResponse) Descriptor() ([]byte, []int)
- func (m *QueryCollectionResponse) GetCollection() Collection
- func (m *QueryCollectionResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCollectionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollectionResponse) ProtoMessage()
- func (m *QueryCollectionResponse) Reset()
- func (m *QueryCollectionResponse) Size() (n int)
- func (m *QueryCollectionResponse) String() string
- func (m *QueryCollectionResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCollectionResponse) XXX_DiscardUnknown()
- func (m *QueryCollectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollectionResponse) XXX_Merge(src proto.Message)
- func (m *QueryCollectionResponse) XXX_Size() int
- func (m *QueryCollectionResponse) XXX_Unmarshal(b []byte) error
- type QueryCollectionsByCreatorRequest
- func (*QueryCollectionsByCreatorRequest) Descriptor() ([]byte, []int)
- func (m *QueryCollectionsByCreatorRequest) GetCreator() string
- func (m *QueryCollectionsByCreatorRequest) GetPagination() *query.PageRequest
- func (m *QueryCollectionsByCreatorRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCollectionsByCreatorRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollectionsByCreatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollectionsByCreatorRequest) ProtoMessage()
- func (m *QueryCollectionsByCreatorRequest) Reset()
- func (m *QueryCollectionsByCreatorRequest) Size() (n int)
- func (m *QueryCollectionsByCreatorRequest) String() string
- func (m *QueryCollectionsByCreatorRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCollectionsByCreatorRequest) XXX_DiscardUnknown()
- func (m *QueryCollectionsByCreatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollectionsByCreatorRequest) XXX_Merge(src proto.Message)
- func (m *QueryCollectionsByCreatorRequest) XXX_Size() int
- func (m *QueryCollectionsByCreatorRequest) XXX_Unmarshal(b []byte) error
- type QueryCollectionsByCreatorResponse
- func (*QueryCollectionsByCreatorResponse) Descriptor() ([]byte, []int)
- func (m *QueryCollectionsByCreatorResponse) GetCollections() []Collection
- func (m *QueryCollectionsByCreatorResponse) GetPagination() *query.PageResponse
- func (m *QueryCollectionsByCreatorResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCollectionsByCreatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollectionsByCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollectionsByCreatorResponse) ProtoMessage()
- func (m *QueryCollectionsByCreatorResponse) Reset()
- func (m *QueryCollectionsByCreatorResponse) Size() (n int)
- func (m *QueryCollectionsByCreatorResponse) String() string
- func (m *QueryCollectionsByCreatorResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCollectionsByCreatorResponse) XXX_DiscardUnknown()
- func (m *QueryCollectionsByCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollectionsByCreatorResponse) XXX_Merge(src proto.Message)
- func (m *QueryCollectionsByCreatorResponse) XXX_Size() int
- func (m *QueryCollectionsByCreatorResponse) XXX_Unmarshal(b []byte) error
- type QueryCollectionsRequest
- func (*QueryCollectionsRequest) Descriptor() ([]byte, []int)
- func (m *QueryCollectionsRequest) GetPagination() *query.PageRequest
- func (m *QueryCollectionsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCollectionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollectionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollectionsRequest) ProtoMessage()
- func (m *QueryCollectionsRequest) Reset()
- func (m *QueryCollectionsRequest) Size() (n int)
- func (m *QueryCollectionsRequest) String() string
- func (m *QueryCollectionsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCollectionsRequest) XXX_DiscardUnknown()
- func (m *QueryCollectionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollectionsRequest) XXX_Merge(src proto.Message)
- func (m *QueryCollectionsRequest) XXX_Size() int
- func (m *QueryCollectionsRequest) XXX_Unmarshal(b []byte) error
- type QueryCollectionsResponse
- func (*QueryCollectionsResponse) Descriptor() ([]byte, []int)
- func (m *QueryCollectionsResponse) GetCollections() []Collection
- func (m *QueryCollectionsResponse) GetPagination() *query.PageResponse
- func (m *QueryCollectionsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCollectionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollectionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollectionsResponse) ProtoMessage()
- func (m *QueryCollectionsResponse) Reset()
- func (m *QueryCollectionsResponse) Size() (n int)
- func (m *QueryCollectionsResponse) String() string
- func (m *QueryCollectionsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCollectionsResponse) XXX_DiscardUnknown()
- func (m *QueryCollectionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollectionsResponse) XXX_Merge(src proto.Message)
- func (m *QueryCollectionsResponse) XXX_Size() int
- func (m *QueryCollectionsResponse) XXX_Unmarshal(b []byte) error
- type QueryNFTParams
- type QueryServer
- type QuerySubTokenRequest
- func (*QuerySubTokenRequest) Descriptor() ([]byte, []int)
- func (m *QuerySubTokenRequest) GetSubTokenId() string
- func (m *QuerySubTokenRequest) GetTokenId() string
- func (m *QuerySubTokenRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySubTokenRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubTokenRequest) ProtoMessage()
- func (m *QuerySubTokenRequest) Reset()
- func (m *QuerySubTokenRequest) Size() (n int)
- func (m *QuerySubTokenRequest) String() string
- func (m *QuerySubTokenRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySubTokenRequest) XXX_DiscardUnknown()
- func (m *QuerySubTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubTokenRequest) XXX_Merge(src proto.Message)
- func (m *QuerySubTokenRequest) XXX_Size() int
- func (m *QuerySubTokenRequest) XXX_Unmarshal(b []byte) error
- type QuerySubTokenResponse
- func (*QuerySubTokenResponse) Descriptor() ([]byte, []int)
- func (m *QuerySubTokenResponse) GetSubToken() SubToken
- func (m *QuerySubTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySubTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubTokenResponse) ProtoMessage()
- func (m *QuerySubTokenResponse) Reset()
- func (m *QuerySubTokenResponse) Size() (n int)
- func (m *QuerySubTokenResponse) String() string
- func (m *QuerySubTokenResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySubTokenResponse) XXX_DiscardUnknown()
- func (m *QuerySubTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubTokenResponse) XXX_Merge(src proto.Message)
- func (m *QuerySubTokenResponse) XXX_Size() int
- func (m *QuerySubTokenResponse) XXX_Unmarshal(b []byte) error
- type QuerySubTokensParams
- type QueryTokenRequest
- func (*QueryTokenRequest) Descriptor() ([]byte, []int)
- func (m *QueryTokenRequest) GetTokenId() 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() Token
- 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 ResponseSubToken
- type ResponseSubTokens
- type SortedStringArray
- type SortedUintArray
- type SubToken
- func (*SubToken) Descriptor() ([]byte, []int)
- func (this *SubToken) Equal(that interface{}) bool
- func (m *SubToken) Marshal() (dAtA []byte, err error)
- func (m *SubToken) MarshalTo(dAtA []byte) (int, error)
- func (m *SubToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubToken) ProtoMessage()
- func (m *SubToken) Reset()
- func (m *SubToken) Size() (n int)
- func (m *SubToken) String() string
- func (m *SubToken) Unmarshal(dAtA []byte) error
- func (st *SubToken) Validate() error
- func (m *SubToken) XXX_DiscardUnknown()
- func (m *SubToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubToken) XXX_Merge(src proto.Message)
- func (m *SubToken) XXX_Size() int
- func (m *SubToken) XXX_Unmarshal(b []byte) error
- type SubTokens
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (this *Token) Equal(that interface{}) bool
- func (m *Token) Marshal() (dAtA []byte, err error)
- func (m *Token) MarshalTo(dAtA []byte) (int, error)
- func (m *Token) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) Size() (n int)
- func (m *Token) String() string
- func (m *Token) Unmarshal(dAtA []byte) error
- func (t *Token) Validate() error
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
- type TokenCounter
- func (*TokenCounter) Descriptor() ([]byte, []int)
- func (this *TokenCounter) Equal(that interface{}) bool
- func (m *TokenCounter) Marshal() (dAtA []byte, err error)
- func (m *TokenCounter) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenCounter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenCounter) ProtoMessage()
- func (m *TokenCounter) Reset()
- func (m *TokenCounter) Size() (n int)
- func (m *TokenCounter) String() string
- func (m *TokenCounter) Unmarshal(dAtA []byte) error
- func (m *TokenCounter) XXX_DiscardUnknown()
- func (m *TokenCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenCounter) XXX_Merge(src proto.Message)
- func (m *TokenCounter) XXX_Size() int
- func (m *TokenCounter) XXX_Unmarshal(b []byte) error
- type Tokens
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) BurnToken(ctx context.Context, req *MsgBurnToken) (*MsgBurnTokenResponse, error)
- func (*UnimplementedMsgServer) MintToken(ctx context.Context, req *MsgMintToken) (*MsgMintTokenResponse, error)
- func (*UnimplementedMsgServer) SendToken(ctx context.Context, req *MsgSendToken) (*MsgSendTokenResponse, error)
- func (*UnimplementedMsgServer) UpdateReserve(ctx context.Context, req *MsgUpdateReserve) (*MsgUpdateReserveResponse, error)
- func (*UnimplementedMsgServer) UpdateToken(ctx context.Context, req *MsgUpdateToken) (*MsgUpdateTokenResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Collection(ctx context.Context, req *QueryCollectionRequest) (*QueryCollectionResponse, error)
- func (*UnimplementedQueryServer) Collections(ctx context.Context, req *QueryCollectionsRequest) (*QueryCollectionsResponse, error)
- func (*UnimplementedQueryServer) CollectionsByCreator(ctx context.Context, req *QueryCollectionsByCreatorRequest) (*QueryCollectionsByCreatorResponse, error)
- func (*UnimplementedQueryServer) SubToken(ctx context.Context, req *QuerySubTokenRequest) (*QuerySubTokenResponse, error)
- func (*UnimplementedQueryServer) Token(ctx context.Context, req *QueryTokenRequest) (*QueryTokenResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "nft" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_" + ModuleName // RouterKey defines module's messages routing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const ( TypeMsgMintToken = "mint_token" TypeMsgUpdateToken = "update_token" TypeMsgUpdateReserve = "update_reserve" TypeMsgSendToken = "send_token" TypeMsgBurnToken = "burn_token" )
const ReservedPool = "reserved_pool"
Variables ¶
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthNft = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowNft = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupNft = fmt.Errorf("proto: unexpected end of group") )
var ( DefaultMaxCollectionSize uint32 = 10000 DefaultMaxTokenQuantity uint32 = 10000 DefaultMinReserveAmount sdkmath.Int = helpers.EtherToWei(sdkmath.NewInt(1)) )
NFT params default values.
var ( KeyMaxCollectionSize = []byte("MaxCollectionSize") KeyMaxTokenQuantity = []byte("MaxTokenQuantity") KeyMinReserveAmount = []byte("MinReserveAmount") )
Parameter store keys.
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
ModuleCdc references the global nft module codec. Note, the codec should ONLY be used in certain instances of tests and for JSON encoding.
The actual codec used for serialization should be provided to modules/nft and defined at the application level.
Functions ¶
func CheckUnique ¶
func GetCollectionCounterKey ¶ added in v0.0.8
func GetCollectionCounterKey(creator sdk.AccAddress, denom string) []byte
GetCollectionCounterKey returns the key of the NFT collection counter.
func GetCollectionKey ¶
func GetCollectionKey(creator sdk.AccAddress, denom string) []byte
GetCollectionKey returns the key of the NFT collection.
func GetCollectionsByCreatorKey ¶ added in v0.0.8
func GetCollectionsByCreatorKey(creator sdk.AccAddress) []byte
GetCollectionsByCreatorKey returns the key prefix of the NFT collections created by specified creator.
func GetCollectionsKey ¶ added in v0.0.8
func GetCollectionsKey() []byte
GetCollectionsKey returns the key prefix of the NFT collections.
func GetSubTokenByOwnerKey ¶ added in v0.0.8
func GetSubTokenByOwnerKey(owner sdk.AccAddress, id string, index uint32) []byte
GetSubTokenByOwnerKey returns the key of the NFT sub-token of specific owner address NFT token and index.
func GetSubTokenKey ¶
GetSubTokenKey returns the key of the NFT sub-token.
func GetSubTokensKey ¶
GetSubTokensKey returns the key prefix of the NFT sub-tokens.
func GetTokenByCollectionKey ¶ added in v0.0.8
func GetTokenByCollectionKey(creator sdk.AccAddress, denom string, id string) []byte
GetTokenByCollectionKey returns the key prefix of the NFT token of specific collection.
func GetTokenCounterKey ¶ added in v0.0.8
GetTokenCounterKey returns the key of the NFT token counter.
func GetTokenKey ¶ added in v0.0.8
GetTokenKey returns the key of the NFT token.
func GetTokenKeyByIDHash ¶ added in v0.0.8
func GetTokenURIKey ¶
GetTokenURIKey returns the key of the NFT token URI.
func GetTokensByCollectionKey ¶ added in v0.0.8
func GetTokensByCollectionKey(creator sdk.AccAddress, denom string) []byte
GetTokensByCollectionKey returns the key prefix of the NFT tokens of specific collection.
func GetTokensKey ¶ added in v0.0.8
func GetTokensKey() []byte
GetTokensKey returns the key prefix of the NFT tokens.
func ParamKeyTable ¶ added in v0.0.8
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module.
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers concrete implementations of specific interfaces.
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 SupplyInvariantCheck ¶
func SupplyInvariantCheck(collections []Collection) (string, bool)
Types ¶
type Collection ¶
type Collection struct { // creator defines address of the NFT collection creator. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // denom defines the NFT collection name. Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` // supply defines total count of NFT tokens containing in the collection. Supply uint32 `protobuf:"varint,3,opt,name=supply,proto3" json:"supply,omitempty"` // tokens defines the list of NFT tokens containing in the NFT collection. Tokens Tokens `protobuf:"bytes,4,rep,name=tokens,proto3,castrepeated=Tokens" json:"tokens,omitempty"` }
Collection defines NFT collection which is just a set of NFT tokens.
func (*Collection) Descriptor ¶
func (*Collection) Descriptor() ([]byte, []int)
func (*Collection) Equal ¶ added in v0.0.8
func (this *Collection) Equal(that interface{}) bool
func (*Collection) Marshal ¶
func (m *Collection) Marshal() (dAtA []byte, err error)
func (*Collection) MarshalToSizedBuffer ¶
func (m *Collection) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Collection) ProtoMessage ¶
func (*Collection) ProtoMessage()
func (*Collection) Reset ¶
func (m *Collection) Reset()
func (*Collection) Size ¶
func (m *Collection) Size() (n int)
func (*Collection) String ¶
func (m *Collection) String() string
func (*Collection) Unmarshal ¶
func (m *Collection) Unmarshal(dAtA []byte) error
func (*Collection) Validate ¶ added in v0.0.8
func (c *Collection) Validate() error
func (*Collection) XXX_DiscardUnknown ¶
func (m *Collection) XXX_DiscardUnknown()
func (*Collection) XXX_Marshal ¶
func (m *Collection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Collection) XXX_Merge ¶
func (m *Collection) XXX_Merge(src proto.Message)
func (*Collection) XXX_Size ¶
func (m *Collection) XXX_Size() int
func (*Collection) XXX_Unmarshal ¶
func (m *Collection) XXX_Unmarshal(b []byte) error
type CollectionCounter ¶ added in v0.0.8
type CollectionCounter struct { // supply defines total count of minted NFT tokens in the collection. Supply uint32 `protobuf:"varint,1,opt,name=supply,proto3" json:"supply,omitempty"` }
CollectionCounter defines object containing counter of minted NFT tokens in the collection.
func (*CollectionCounter) Descriptor ¶ added in v0.0.8
func (*CollectionCounter) Descriptor() ([]byte, []int)
func (*CollectionCounter) Equal ¶ added in v0.0.8
func (this *CollectionCounter) Equal(that interface{}) bool
func (*CollectionCounter) Marshal ¶ added in v0.0.8
func (m *CollectionCounter) Marshal() (dAtA []byte, err error)
func (*CollectionCounter) MarshalTo ¶ added in v0.0.8
func (m *CollectionCounter) MarshalTo(dAtA []byte) (int, error)
func (*CollectionCounter) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *CollectionCounter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CollectionCounter) ProtoMessage ¶ added in v0.0.8
func (*CollectionCounter) ProtoMessage()
func (*CollectionCounter) Reset ¶ added in v0.0.8
func (m *CollectionCounter) Reset()
func (*CollectionCounter) Size ¶ added in v0.0.8
func (m *CollectionCounter) Size() (n int)
func (*CollectionCounter) String ¶ added in v0.0.8
func (m *CollectionCounter) String() string
func (*CollectionCounter) Unmarshal ¶ added in v0.0.8
func (m *CollectionCounter) Unmarshal(dAtA []byte) error
func (*CollectionCounter) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *CollectionCounter) XXX_DiscardUnknown()
func (*CollectionCounter) XXX_Marshal ¶ added in v0.0.8
func (m *CollectionCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CollectionCounter) XXX_Merge ¶ added in v0.0.8
func (m *CollectionCounter) XXX_Merge(src proto.Message)
func (*CollectionCounter) XXX_Size ¶ added in v0.0.8
func (m *CollectionCounter) XXX_Size() int
func (*CollectionCounter) XXX_Unmarshal ¶ added in v0.0.8
func (m *CollectionCounter) XXX_Unmarshal(b []byte) error
type EventBurnToken ¶ added in v0.0.8
type EventBurnToken struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Return string `protobuf:"bytes,3,opt,name=return,proto3" json:"return,omitempty"` SubTokenIDs []uint32 `protobuf:"varint,4,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"` }
EventBurnToken defines event emitted when existed NFT sub-tokens are burnt.
func (*EventBurnToken) Descriptor ¶ added in v0.0.8
func (*EventBurnToken) Descriptor() ([]byte, []int)
func (*EventBurnToken) GetID ¶ added in v0.0.8
func (m *EventBurnToken) GetID() string
func (*EventBurnToken) GetReturn ¶ added in v0.0.8
func (m *EventBurnToken) GetReturn() string
func (*EventBurnToken) GetSender ¶ added in v0.0.8
func (m *EventBurnToken) GetSender() string
func (*EventBurnToken) GetSubTokenIDs ¶ added in v0.0.8
func (m *EventBurnToken) GetSubTokenIDs() []uint32
func (*EventBurnToken) Marshal ¶ added in v0.0.8
func (m *EventBurnToken) Marshal() (dAtA []byte, err error)
func (*EventBurnToken) MarshalTo ¶ added in v0.0.8
func (m *EventBurnToken) MarshalTo(dAtA []byte) (int, error)
func (*EventBurnToken) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *EventBurnToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventBurnToken) ProtoMessage ¶ added in v0.0.8
func (*EventBurnToken) ProtoMessage()
func (*EventBurnToken) Reset ¶ added in v0.0.8
func (m *EventBurnToken) Reset()
func (*EventBurnToken) Size ¶ added in v0.0.8
func (m *EventBurnToken) Size() (n int)
func (*EventBurnToken) String ¶ added in v0.0.8
func (m *EventBurnToken) String() string
func (*EventBurnToken) Unmarshal ¶ added in v0.0.8
func (m *EventBurnToken) Unmarshal(dAtA []byte) error
func (*EventBurnToken) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *EventBurnToken) XXX_DiscardUnknown()
func (*EventBurnToken) XXX_Marshal ¶ added in v0.0.8
func (m *EventBurnToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventBurnToken) XXX_Merge ¶ added in v0.0.8
func (m *EventBurnToken) XXX_Merge(src proto.Message)
func (*EventBurnToken) XXX_Size ¶ added in v0.0.8
func (m *EventBurnToken) XXX_Size() int
func (*EventBurnToken) XXX_Unmarshal ¶ added in v0.0.8
func (m *EventBurnToken) XXX_Unmarshal(b []byte) error
type EventCreateCollection ¶ added in v0.0.8
type EventCreateCollection struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` Supply uint32 `protobuf:"varint,3,opt,name=supply,proto3" json:"supply,omitempty"` }
EventCreateCollection defines event emitted when new NFT collection is created.
func (*EventCreateCollection) Descriptor ¶ added in v0.0.8
func (*EventCreateCollection) Descriptor() ([]byte, []int)
func (*EventCreateCollection) GetCreator ¶ added in v0.0.8
func (m *EventCreateCollection) GetCreator() string
func (*EventCreateCollection) GetDenom ¶ added in v0.0.8
func (m *EventCreateCollection) GetDenom() string
func (*EventCreateCollection) GetSupply ¶ added in v0.0.8
func (m *EventCreateCollection) GetSupply() uint32
func (*EventCreateCollection) Marshal ¶ added in v0.0.8
func (m *EventCreateCollection) Marshal() (dAtA []byte, err error)
func (*EventCreateCollection) MarshalTo ¶ added in v0.0.8
func (m *EventCreateCollection) MarshalTo(dAtA []byte) (int, error)
func (*EventCreateCollection) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *EventCreateCollection) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCreateCollection) ProtoMessage ¶ added in v0.0.8
func (*EventCreateCollection) ProtoMessage()
func (*EventCreateCollection) Reset ¶ added in v0.0.8
func (m *EventCreateCollection) Reset()
func (*EventCreateCollection) Size ¶ added in v0.0.8
func (m *EventCreateCollection) Size() (n int)
func (*EventCreateCollection) String ¶ added in v0.0.8
func (m *EventCreateCollection) String() string
func (*EventCreateCollection) Unmarshal ¶ added in v0.0.8
func (m *EventCreateCollection) Unmarshal(dAtA []byte) error
func (*EventCreateCollection) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *EventCreateCollection) XXX_DiscardUnknown()
func (*EventCreateCollection) XXX_Marshal ¶ added in v0.0.8
func (m *EventCreateCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCreateCollection) XXX_Merge ¶ added in v0.0.8
func (m *EventCreateCollection) XXX_Merge(src proto.Message)
func (*EventCreateCollection) XXX_Size ¶ added in v0.0.8
func (m *EventCreateCollection) XXX_Size() int
func (*EventCreateCollection) XXX_Unmarshal ¶ added in v0.0.8
func (m *EventCreateCollection) XXX_Unmarshal(b []byte) error
type EventCreateToken ¶ added in v0.0.8
type EventCreateToken struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` ID string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` URI string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` AllowMint bool `protobuf:"varint,5,opt,name=allow_mint,json=allowMint,proto3" json:"allow_mint,omitempty"` Reserve string `protobuf:"bytes,6,opt,name=reserve,proto3" json:"reserve,omitempty"` Recipient string `protobuf:"bytes,7,opt,name=recipient,proto3" json:"recipient,omitempty"` SubTokenIDs []uint32 `protobuf:"varint,8,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"` }
EventCreateToken defines event emitted when new NFT token is created.
func (*EventCreateToken) Descriptor ¶ added in v0.0.8
func (*EventCreateToken) Descriptor() ([]byte, []int)
func (*EventCreateToken) GetAllowMint ¶ added in v0.0.8
func (m *EventCreateToken) GetAllowMint() bool
func (*EventCreateToken) GetCreator ¶ added in v0.0.8
func (m *EventCreateToken) GetCreator() string
func (*EventCreateToken) GetDenom ¶ added in v0.0.8
func (m *EventCreateToken) GetDenom() string
func (*EventCreateToken) GetID ¶ added in v0.0.8
func (m *EventCreateToken) GetID() string
func (*EventCreateToken) GetRecipient ¶ added in v0.0.8
func (m *EventCreateToken) GetRecipient() string
func (*EventCreateToken) GetReserve ¶ added in v0.0.8
func (m *EventCreateToken) GetReserve() string
func (*EventCreateToken) GetSubTokenIDs ¶ added in v0.0.8
func (m *EventCreateToken) GetSubTokenIDs() []uint32
func (*EventCreateToken) GetURI ¶ added in v0.0.8
func (m *EventCreateToken) GetURI() string
func (*EventCreateToken) Marshal ¶ added in v0.0.8
func (m *EventCreateToken) Marshal() (dAtA []byte, err error)
func (*EventCreateToken) MarshalTo ¶ added in v0.0.8
func (m *EventCreateToken) MarshalTo(dAtA []byte) (int, error)
func (*EventCreateToken) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *EventCreateToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCreateToken) ProtoMessage ¶ added in v0.0.8
func (*EventCreateToken) ProtoMessage()
func (*EventCreateToken) Reset ¶ added in v0.0.8
func (m *EventCreateToken) Reset()
func (*EventCreateToken) Size ¶ added in v0.0.8
func (m *EventCreateToken) Size() (n int)
func (*EventCreateToken) String ¶ added in v0.0.8
func (m *EventCreateToken) String() string
func (*EventCreateToken) Unmarshal ¶ added in v0.0.8
func (m *EventCreateToken) Unmarshal(dAtA []byte) error
func (*EventCreateToken) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *EventCreateToken) XXX_DiscardUnknown()
func (*EventCreateToken) XXX_Marshal ¶ added in v0.0.8
func (m *EventCreateToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCreateToken) XXX_Merge ¶ added in v0.0.8
func (m *EventCreateToken) XXX_Merge(src proto.Message)
func (*EventCreateToken) XXX_Size ¶ added in v0.0.8
func (m *EventCreateToken) XXX_Size() int
func (*EventCreateToken) XXX_Unmarshal ¶ added in v0.0.8
func (m *EventCreateToken) XXX_Unmarshal(b []byte) error
type EventMintToken ¶ added in v0.0.8
type EventMintToken struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` ID string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Reserve string `protobuf:"bytes,4,opt,name=reserve,proto3" json:"reserve,omitempty"` Recipient string `protobuf:"bytes,5,opt,name=recipient,proto3" json:"recipient,omitempty"` SubTokenIDs []uint32 `protobuf:"varint,6,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"` }
EventMintToken defines event emitted when new NFT sub-tokens are created.
func (*EventMintToken) Descriptor ¶ added in v0.0.8
func (*EventMintToken) Descriptor() ([]byte, []int)
func (*EventMintToken) GetCreator ¶ added in v0.0.8
func (m *EventMintToken) GetCreator() string
func (*EventMintToken) GetDenom ¶ added in v0.0.8
func (m *EventMintToken) GetDenom() string
func (*EventMintToken) GetID ¶ added in v0.0.8
func (m *EventMintToken) GetID() string
func (*EventMintToken) GetRecipient ¶ added in v0.0.8
func (m *EventMintToken) GetRecipient() string
func (*EventMintToken) GetReserve ¶ added in v0.0.8
func (m *EventMintToken) GetReserve() string
func (*EventMintToken) GetSubTokenIDs ¶ added in v0.0.8
func (m *EventMintToken) GetSubTokenIDs() []uint32
func (*EventMintToken) Marshal ¶ added in v0.0.8
func (m *EventMintToken) Marshal() (dAtA []byte, err error)
func (*EventMintToken) MarshalTo ¶ added in v0.0.8
func (m *EventMintToken) MarshalTo(dAtA []byte) (int, error)
func (*EventMintToken) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *EventMintToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventMintToken) ProtoMessage ¶ added in v0.0.8
func (*EventMintToken) ProtoMessage()
func (*EventMintToken) Reset ¶ added in v0.0.8
func (m *EventMintToken) Reset()
func (*EventMintToken) Size ¶ added in v0.0.8
func (m *EventMintToken) Size() (n int)
func (*EventMintToken) String ¶ added in v0.0.8
func (m *EventMintToken) String() string
func (*EventMintToken) Unmarshal ¶ added in v0.0.8
func (m *EventMintToken) Unmarshal(dAtA []byte) error
func (*EventMintToken) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *EventMintToken) XXX_DiscardUnknown()
func (*EventMintToken) XXX_Marshal ¶ added in v0.0.8
func (m *EventMintToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventMintToken) XXX_Merge ¶ added in v0.0.8
func (m *EventMintToken) XXX_Merge(src proto.Message)
func (*EventMintToken) XXX_Size ¶ added in v0.0.8
func (m *EventMintToken) XXX_Size() int
func (*EventMintToken) XXX_Unmarshal ¶ added in v0.0.8
func (m *EventMintToken) XXX_Unmarshal(b []byte) error
type EventSendToken ¶ added in v0.0.8
type EventSendToken struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` SubTokenIDs []uint32 `protobuf:"varint,4,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"` }
EventSendToken defines event emitted when existed NFT sub-tokens are transferred.
func (*EventSendToken) Descriptor ¶ added in v0.0.8
func (*EventSendToken) Descriptor() ([]byte, []int)
func (*EventSendToken) GetID ¶ added in v0.0.8
func (m *EventSendToken) GetID() string
func (*EventSendToken) GetRecipient ¶ added in v0.0.8
func (m *EventSendToken) GetRecipient() string
func (*EventSendToken) GetSender ¶ added in v0.0.8
func (m *EventSendToken) GetSender() string
func (*EventSendToken) GetSubTokenIDs ¶ added in v0.0.8
func (m *EventSendToken) GetSubTokenIDs() []uint32
func (*EventSendToken) Marshal ¶ added in v0.0.8
func (m *EventSendToken) Marshal() (dAtA []byte, err error)
func (*EventSendToken) MarshalTo ¶ added in v0.0.8
func (m *EventSendToken) MarshalTo(dAtA []byte) (int, error)
func (*EventSendToken) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *EventSendToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSendToken) ProtoMessage ¶ added in v0.0.8
func (*EventSendToken) ProtoMessage()
func (*EventSendToken) Reset ¶ added in v0.0.8
func (m *EventSendToken) Reset()
func (*EventSendToken) Size ¶ added in v0.0.8
func (m *EventSendToken) Size() (n int)
func (*EventSendToken) String ¶ added in v0.0.8
func (m *EventSendToken) String() string
func (*EventSendToken) Unmarshal ¶ added in v0.0.8
func (m *EventSendToken) Unmarshal(dAtA []byte) error
func (*EventSendToken) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *EventSendToken) XXX_DiscardUnknown()
func (*EventSendToken) XXX_Marshal ¶ added in v0.0.8
func (m *EventSendToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSendToken) XXX_Merge ¶ added in v0.0.8
func (m *EventSendToken) XXX_Merge(src proto.Message)
func (*EventSendToken) XXX_Size ¶ added in v0.0.8
func (m *EventSendToken) XXX_Size() int
func (*EventSendToken) XXX_Unmarshal ¶ added in v0.0.8
func (m *EventSendToken) XXX_Unmarshal(b []byte) error
type EventUpdateCollection ¶ added in v0.0.8
type EventUpdateCollection struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` Supply uint32 `protobuf:"varint,3,opt,name=supply,proto3" json:"supply,omitempty"` }
EventUpdateCollection defines event emitted when new NFT token is added to existing NFT collection.
func (*EventUpdateCollection) Descriptor ¶ added in v0.0.8
func (*EventUpdateCollection) Descriptor() ([]byte, []int)
func (*EventUpdateCollection) GetCreator ¶ added in v0.0.8
func (m *EventUpdateCollection) GetCreator() string
func (*EventUpdateCollection) GetDenom ¶ added in v0.0.8
func (m *EventUpdateCollection) GetDenom() string
func (*EventUpdateCollection) GetSupply ¶ added in v0.0.8
func (m *EventUpdateCollection) GetSupply() uint32
func (*EventUpdateCollection) Marshal ¶ added in v0.0.8
func (m *EventUpdateCollection) Marshal() (dAtA []byte, err error)
func (*EventUpdateCollection) MarshalTo ¶ added in v0.0.8
func (m *EventUpdateCollection) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateCollection) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *EventUpdateCollection) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateCollection) ProtoMessage ¶ added in v0.0.8
func (*EventUpdateCollection) ProtoMessage()
func (*EventUpdateCollection) Reset ¶ added in v0.0.8
func (m *EventUpdateCollection) Reset()
func (*EventUpdateCollection) Size ¶ added in v0.0.8
func (m *EventUpdateCollection) Size() (n int)
func (*EventUpdateCollection) String ¶ added in v0.0.8
func (m *EventUpdateCollection) String() string
func (*EventUpdateCollection) Unmarshal ¶ added in v0.0.8
func (m *EventUpdateCollection) Unmarshal(dAtA []byte) error
func (*EventUpdateCollection) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *EventUpdateCollection) XXX_DiscardUnknown()
func (*EventUpdateCollection) XXX_Marshal ¶ added in v0.0.8
func (m *EventUpdateCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateCollection) XXX_Merge ¶ added in v0.0.8
func (m *EventUpdateCollection) XXX_Merge(src proto.Message)
func (*EventUpdateCollection) XXX_Size ¶ added in v0.0.8
func (m *EventUpdateCollection) XXX_Size() int
func (*EventUpdateCollection) XXX_Unmarshal ¶ added in v0.0.8
func (m *EventUpdateCollection) XXX_Unmarshal(b []byte) error
type EventUpdateReserve ¶ added in v0.0.8
type EventUpdateReserve struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Reserve string `protobuf:"bytes,3,opt,name=reserve,proto3" json:"reserve,omitempty"` Refill string `protobuf:"bytes,4,opt,name=refill,proto3" json:"refill,omitempty"` SubTokenIDs []uint32 `protobuf:"varint,5,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"` }
EventUpdateReserve defines event emitted when existed NFT sub-token reserve is changed.
func (*EventUpdateReserve) Descriptor ¶ added in v0.0.8
func (*EventUpdateReserve) Descriptor() ([]byte, []int)
func (*EventUpdateReserve) GetID ¶ added in v0.0.8
func (m *EventUpdateReserve) GetID() string
func (*EventUpdateReserve) GetRefill ¶ added in v0.0.8
func (m *EventUpdateReserve) GetRefill() string
func (*EventUpdateReserve) GetReserve ¶ added in v0.0.8
func (m *EventUpdateReserve) GetReserve() string
func (*EventUpdateReserve) GetSender ¶ added in v0.0.8
func (m *EventUpdateReserve) GetSender() string
func (*EventUpdateReserve) GetSubTokenIDs ¶ added in v0.0.8
func (m *EventUpdateReserve) GetSubTokenIDs() []uint32
func (*EventUpdateReserve) Marshal ¶ added in v0.0.8
func (m *EventUpdateReserve) Marshal() (dAtA []byte, err error)
func (*EventUpdateReserve) MarshalTo ¶ added in v0.0.8
func (m *EventUpdateReserve) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateReserve) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *EventUpdateReserve) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateReserve) ProtoMessage ¶ added in v0.0.8
func (*EventUpdateReserve) ProtoMessage()
func (*EventUpdateReserve) Reset ¶ added in v0.0.8
func (m *EventUpdateReserve) Reset()
func (*EventUpdateReserve) Size ¶ added in v0.0.8
func (m *EventUpdateReserve) Size() (n int)
func (*EventUpdateReserve) String ¶ added in v0.0.8
func (m *EventUpdateReserve) String() string
func (*EventUpdateReserve) Unmarshal ¶ added in v0.0.8
func (m *EventUpdateReserve) Unmarshal(dAtA []byte) error
func (*EventUpdateReserve) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *EventUpdateReserve) XXX_DiscardUnknown()
func (*EventUpdateReserve) XXX_Marshal ¶ added in v0.0.8
func (m *EventUpdateReserve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateReserve) XXX_Merge ¶ added in v0.0.8
func (m *EventUpdateReserve) XXX_Merge(src proto.Message)
func (*EventUpdateReserve) XXX_Size ¶ added in v0.0.8
func (m *EventUpdateReserve) XXX_Size() int
func (*EventUpdateReserve) XXX_Unmarshal ¶ added in v0.0.8
func (m *EventUpdateReserve) XXX_Unmarshal(b []byte) error
type EventUpdateToken ¶ added in v0.0.8
type EventUpdateToken struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` URI string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` }
EventUpdateToken defines event emitted when existed NFT token is changed.
func (*EventUpdateToken) Descriptor ¶ added in v0.0.8
func (*EventUpdateToken) Descriptor() ([]byte, []int)
func (*EventUpdateToken) GetID ¶ added in v0.0.8
func (m *EventUpdateToken) GetID() string
func (*EventUpdateToken) GetSender ¶ added in v0.0.8
func (m *EventUpdateToken) GetSender() string
func (*EventUpdateToken) GetURI ¶ added in v0.0.8
func (m *EventUpdateToken) GetURI() string
func (*EventUpdateToken) Marshal ¶ added in v0.0.8
func (m *EventUpdateToken) Marshal() (dAtA []byte, err error)
func (*EventUpdateToken) MarshalTo ¶ added in v0.0.8
func (m *EventUpdateToken) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateToken) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *EventUpdateToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateToken) ProtoMessage ¶ added in v0.0.8
func (*EventUpdateToken) ProtoMessage()
func (*EventUpdateToken) Reset ¶ added in v0.0.8
func (m *EventUpdateToken) Reset()
func (*EventUpdateToken) Size ¶ added in v0.0.8
func (m *EventUpdateToken) Size() (n int)
func (*EventUpdateToken) String ¶ added in v0.0.8
func (m *EventUpdateToken) String() string
func (*EventUpdateToken) Unmarshal ¶ added in v0.0.8
func (m *EventUpdateToken) Unmarshal(dAtA []byte) error
func (*EventUpdateToken) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *EventUpdateToken) XXX_DiscardUnknown()
func (*EventUpdateToken) XXX_Marshal ¶ added in v0.0.8
func (m *EventUpdateToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateToken) XXX_Merge ¶ added in v0.0.8
func (m *EventUpdateToken) XXX_Merge(src proto.Message)
func (*EventUpdateToken) XXX_Size ¶ added in v0.0.8
func (m *EventUpdateToken) XXX_Size() int
func (*EventUpdateToken) XXX_Unmarshal ¶ added in v0.0.8
func (m *EventUpdateToken) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // collections defines all existing NFT collections (including tokens and sub-tokens). Collections []Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections"` // params defines all the module's parameters. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
GenesisState defines the module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns a default genesis state.
func NewGenesisState ¶
func NewGenesisState(params Params, collections []Collection) *GenesisState
NewGenesisState creates a new genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Equal ¶ added in v0.0.8
func (this *GenesisState) Equal(that interface{}) bool
func (*GenesisState) GetCollections ¶ added in v0.0.8
func (m *GenesisState) GetCollections() []Collection
func (*GenesisState) GetParams ¶ added in v0.0.8
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (m GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgBurnToken ¶ added in v0.0.8
type MsgBurnToken struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` TokenID string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` SubTokenIDs []uint32 `protobuf:"varint,3,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"` }
MsgBurnToken defines a SDK message for burning NFT sub-token.
func NewMsgBurnToken ¶ added in v0.0.8
func NewMsgBurnToken(sender sdk.AccAddress, tokenID string, subTokenIDs []uint32) *MsgBurnToken
NewMsgBurnToken creates a new instance of MsgBurnToken.
func (*MsgBurnToken) Descriptor ¶ added in v0.0.8
func (*MsgBurnToken) Descriptor() ([]byte, []int)
func (*MsgBurnToken) GetSender ¶ added in v0.0.8
func (m *MsgBurnToken) GetSender() string
func (*MsgBurnToken) GetSignBytes ¶ added in v0.0.8
func (msg *MsgBurnToken) GetSignBytes() []byte
GetSignBytes encodes the message for signing.
func (*MsgBurnToken) GetSigners ¶ added in v0.0.8
func (msg *MsgBurnToken) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgBurnToken) GetSubTokenIDs ¶ added in v0.0.8
func (m *MsgBurnToken) GetSubTokenIDs() []uint32
func (*MsgBurnToken) GetTokenID ¶ added in v0.0.8
func (m *MsgBurnToken) GetTokenID() string
func (*MsgBurnToken) Marshal ¶ added in v0.0.8
func (m *MsgBurnToken) Marshal() (dAtA []byte, err error)
func (*MsgBurnToken) MarshalTo ¶ added in v0.0.8
func (m *MsgBurnToken) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnToken) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgBurnToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnToken) ProtoMessage ¶ added in v0.0.8
func (*MsgBurnToken) ProtoMessage()
func (*MsgBurnToken) Reset ¶ added in v0.0.8
func (m *MsgBurnToken) Reset()
func (*MsgBurnToken) Route ¶ added in v0.0.8
func (msg *MsgBurnToken) Route() string
Route should return the name of the module.
func (*MsgBurnToken) Size ¶ added in v0.0.8
func (m *MsgBurnToken) Size() (n int)
func (*MsgBurnToken) String ¶ added in v0.0.8
func (m *MsgBurnToken) String() string
func (*MsgBurnToken) Type ¶ added in v0.0.8
func (msg *MsgBurnToken) Type() string
Type should return the action.
func (*MsgBurnToken) Unmarshal ¶ added in v0.0.8
func (m *MsgBurnToken) Unmarshal(dAtA []byte) error
func (*MsgBurnToken) ValidateBasic ¶ added in v0.0.8
func (msg *MsgBurnToken) ValidateBasic() error
ValidateBasic runs stateless checks on the message.
func (*MsgBurnToken) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgBurnToken) XXX_DiscardUnknown()
func (*MsgBurnToken) XXX_Marshal ¶ added in v0.0.8
func (m *MsgBurnToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnToken) XXX_Merge ¶ added in v0.0.8
func (m *MsgBurnToken) XXX_Merge(src proto.Message)
func (*MsgBurnToken) XXX_Size ¶ added in v0.0.8
func (m *MsgBurnToken) XXX_Size() int
func (*MsgBurnToken) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgBurnToken) XXX_Unmarshal(b []byte) error
type MsgBurnTokenResponse ¶ added in v0.0.8
type MsgBurnTokenResponse struct { }
MsgBurnTokenResponse defines the Msg/BurnToken response type.
func (*MsgBurnTokenResponse) Descriptor ¶ added in v0.0.8
func (*MsgBurnTokenResponse) Descriptor() ([]byte, []int)
func (*MsgBurnTokenResponse) Marshal ¶ added in v0.0.8
func (m *MsgBurnTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnTokenResponse) MarshalTo ¶ added in v0.0.8
func (m *MsgBurnTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnTokenResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgBurnTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnTokenResponse) ProtoMessage ¶ added in v0.0.8
func (*MsgBurnTokenResponse) ProtoMessage()
func (*MsgBurnTokenResponse) Reset ¶ added in v0.0.8
func (m *MsgBurnTokenResponse) Reset()
func (*MsgBurnTokenResponse) Size ¶ added in v0.0.8
func (m *MsgBurnTokenResponse) Size() (n int)
func (*MsgBurnTokenResponse) String ¶ added in v0.0.8
func (m *MsgBurnTokenResponse) String() string
func (*MsgBurnTokenResponse) Unmarshal ¶ added in v0.0.8
func (m *MsgBurnTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnTokenResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgBurnTokenResponse) XXX_DiscardUnknown()
func (*MsgBurnTokenResponse) XXX_Marshal ¶ added in v0.0.8
func (m *MsgBurnTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnTokenResponse) XXX_Merge ¶ added in v0.0.8
func (m *MsgBurnTokenResponse) XXX_Merge(src proto.Message)
func (*MsgBurnTokenResponse) XXX_Size ¶ added in v0.0.8
func (m *MsgBurnTokenResponse) XXX_Size() int
func (*MsgBurnTokenResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgBurnTokenResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // MintToken defines message for creating new NFT token or minting additional NFT sub-tokens. MintToken(ctx context.Context, in *MsgMintToken, opts ...grpc.CallOption) (*MsgMintTokenResponse, error) // UpdateToken defines message for NFT token modifying. UpdateToken(ctx context.Context, in *MsgUpdateToken, opts ...grpc.CallOption) (*MsgUpdateTokenResponse, error) // UpdateReserve defines message for NFT token reserve updating. UpdateReserve(ctx context.Context, in *MsgUpdateReserve, opts ...grpc.CallOption) (*MsgUpdateReserveResponse, error) // SendToken defines message for transferring NFT sub-tokens. SendToken(ctx context.Context, in *MsgSendToken, opts ...grpc.CallOption) (*MsgSendTokenResponse, error) // BurnToken defines message for burning NFT sub-tokens. BurnToken(ctx context.Context, in *MsgBurnToken, opts ...grpc.CallOption) (*MsgBurnTokenResponse, 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 MsgMintToken ¶ added in v0.0.8
type MsgMintToken struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` TokenID string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` TokenURI string `protobuf:"bytes,4,opt,name=token_uri,json=tokenUri,proto3" json:"token_uri,omitempty"` AllowMint bool `protobuf:"varint,5,opt,name=allow_mint,json=allowMint,proto3" json:"allow_mint,omitempty"` Recipient string `protobuf:"bytes,6,opt,name=recipient,proto3" json:"recipient,omitempty"` Quantity uint32 `protobuf:"varint,7,opt,name=quantity,proto3" json:"quantity,omitempty"` Reserve types.Coin `protobuf:"bytes,8,opt,name=reserve,proto3" json:"reserve"` }
MsgMintToken defines a SDK message for creating a new NFT token or mint additional NFT sub-tokens.
func NewMsgMintToken ¶ added in v0.0.8
func NewMsgMintToken( sender sdk.AccAddress, denom string, tokenID string, tokenURI string, allowMint bool, recipient sdk.AccAddress, quantity uint32, reserve sdk.Coin, ) *MsgMintToken
NewMsgMintToken creates a new instance of MsgMintToken.
func (*MsgMintToken) Descriptor ¶ added in v0.0.8
func (*MsgMintToken) Descriptor() ([]byte, []int)
func (*MsgMintToken) GetAllowMint ¶ added in v0.0.8
func (m *MsgMintToken) GetAllowMint() bool
func (*MsgMintToken) GetDenom ¶ added in v0.0.8
func (m *MsgMintToken) GetDenom() string
func (*MsgMintToken) GetQuantity ¶ added in v0.0.8
func (m *MsgMintToken) GetQuantity() uint32
func (*MsgMintToken) GetRecipient ¶ added in v0.0.8
func (m *MsgMintToken) GetRecipient() string
func (*MsgMintToken) GetReserve ¶ added in v0.0.8
func (m *MsgMintToken) GetReserve() types.Coin
func (*MsgMintToken) GetSender ¶ added in v0.0.8
func (m *MsgMintToken) GetSender() string
func (*MsgMintToken) GetSignBytes ¶ added in v0.0.8
func (msg *MsgMintToken) GetSignBytes() []byte
GetSignBytes encodes the message for signing.
func (*MsgMintToken) GetSigners ¶ added in v0.0.8
func (msg *MsgMintToken) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgMintToken) GetTokenID ¶ added in v0.0.8
func (m *MsgMintToken) GetTokenID() string
func (*MsgMintToken) GetTokenURI ¶ added in v0.0.8
func (m *MsgMintToken) GetTokenURI() string
func (*MsgMintToken) Marshal ¶ added in v0.0.8
func (m *MsgMintToken) Marshal() (dAtA []byte, err error)
func (*MsgMintToken) MarshalTo ¶ added in v0.0.8
func (m *MsgMintToken) MarshalTo(dAtA []byte) (int, error)
func (*MsgMintToken) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgMintToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintToken) ProtoMessage ¶ added in v0.0.8
func (*MsgMintToken) ProtoMessage()
func (*MsgMintToken) Reset ¶ added in v0.0.8
func (m *MsgMintToken) Reset()
func (*MsgMintToken) Route ¶ added in v0.0.8
func (msg *MsgMintToken) Route() string
Route should return the name of the module.
func (*MsgMintToken) Size ¶ added in v0.0.8
func (m *MsgMintToken) Size() (n int)
func (*MsgMintToken) String ¶ added in v0.0.8
func (m *MsgMintToken) String() string
func (*MsgMintToken) Type ¶ added in v0.0.8
func (msg *MsgMintToken) Type() string
Type should return the action.
func (*MsgMintToken) Unmarshal ¶ added in v0.0.8
func (m *MsgMintToken) Unmarshal(dAtA []byte) error
func (*MsgMintToken) ValidateBasic ¶ added in v0.0.8
func (msg *MsgMintToken) ValidateBasic() error
ValidateBasic runs stateless checks on the message.
func (*MsgMintToken) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgMintToken) XXX_DiscardUnknown()
func (*MsgMintToken) XXX_Marshal ¶ added in v0.0.8
func (m *MsgMintToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintToken) XXX_Merge ¶ added in v0.0.8
func (m *MsgMintToken) XXX_Merge(src proto.Message)
func (*MsgMintToken) XXX_Size ¶ added in v0.0.8
func (m *MsgMintToken) XXX_Size() int
func (*MsgMintToken) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgMintToken) XXX_Unmarshal(b []byte) error
type MsgMintTokenResponse ¶ added in v0.0.8
type MsgMintTokenResponse struct { }
MsgMintTokenResponse defines the Msg/MintToken response type.
func (*MsgMintTokenResponse) Descriptor ¶ added in v0.0.8
func (*MsgMintTokenResponse) Descriptor() ([]byte, []int)
func (*MsgMintTokenResponse) Marshal ¶ added in v0.0.8
func (m *MsgMintTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintTokenResponse) MarshalTo ¶ added in v0.0.8
func (m *MsgMintTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMintTokenResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgMintTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintTokenResponse) ProtoMessage ¶ added in v0.0.8
func (*MsgMintTokenResponse) ProtoMessage()
func (*MsgMintTokenResponse) Reset ¶ added in v0.0.8
func (m *MsgMintTokenResponse) Reset()
func (*MsgMintTokenResponse) Size ¶ added in v0.0.8
func (m *MsgMintTokenResponse) Size() (n int)
func (*MsgMintTokenResponse) String ¶ added in v0.0.8
func (m *MsgMintTokenResponse) String() string
func (*MsgMintTokenResponse) Unmarshal ¶ added in v0.0.8
func (m *MsgMintTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgMintTokenResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgMintTokenResponse) XXX_DiscardUnknown()
func (*MsgMintTokenResponse) XXX_Marshal ¶ added in v0.0.8
func (m *MsgMintTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintTokenResponse) XXX_Merge ¶ added in v0.0.8
func (m *MsgMintTokenResponse) XXX_Merge(src proto.Message)
func (*MsgMintTokenResponse) XXX_Size ¶ added in v0.0.8
func (m *MsgMintTokenResponse) XXX_Size() int
func (*MsgMintTokenResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgMintTokenResponse) XXX_Unmarshal(b []byte) error
type MsgSendToken ¶ added in v0.0.8
type MsgSendToken struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` TokenID string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` SubTokenIDs []uint32 `protobuf:"varint,3,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"` Recipient string `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"` }
MsgSendToken defines a SDK message for transferring NFT sub-token.
func NewMsgSendToken ¶ added in v0.0.8
func NewMsgSendToken(sender sdk.AccAddress, recipient sdk.AccAddress, tokenID string, subTokenIDs []uint32) *MsgSendToken
NewMsgSendToken creates a new instance of MsgSendToken.
func (*MsgSendToken) Descriptor ¶ added in v0.0.8
func (*MsgSendToken) Descriptor() ([]byte, []int)
func (*MsgSendToken) GetRecipient ¶ added in v0.0.8
func (m *MsgSendToken) GetRecipient() string
func (*MsgSendToken) GetSender ¶ added in v0.0.8
func (m *MsgSendToken) GetSender() string
func (*MsgSendToken) GetSignBytes ¶ added in v0.0.8
func (msg *MsgSendToken) GetSignBytes() []byte
GetSignBytes encodes the message for signing.
func (*MsgSendToken) GetSigners ¶ added in v0.0.8
func (msg *MsgSendToken) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgSendToken) GetSubTokenIDs ¶ added in v0.0.8
func (m *MsgSendToken) GetSubTokenIDs() []uint32
func (*MsgSendToken) GetTokenID ¶ added in v0.0.8
func (m *MsgSendToken) GetTokenID() string
func (*MsgSendToken) Marshal ¶ added in v0.0.8
func (m *MsgSendToken) Marshal() (dAtA []byte, err error)
func (*MsgSendToken) MarshalTo ¶ added in v0.0.8
func (m *MsgSendToken) MarshalTo(dAtA []byte) (int, error)
func (*MsgSendToken) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgSendToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSendToken) ProtoMessage ¶ added in v0.0.8
func (*MsgSendToken) ProtoMessage()
func (*MsgSendToken) Reset ¶ added in v0.0.8
func (m *MsgSendToken) Reset()
func (*MsgSendToken) Route ¶ added in v0.0.8
func (msg *MsgSendToken) Route() string
Route should return the name of the module.
func (*MsgSendToken) Size ¶ added in v0.0.8
func (m *MsgSendToken) Size() (n int)
func (*MsgSendToken) String ¶ added in v0.0.8
func (m *MsgSendToken) String() string
func (*MsgSendToken) Type ¶ added in v0.0.8
func (msg *MsgSendToken) Type() string
Type should return the action.
func (*MsgSendToken) Unmarshal ¶ added in v0.0.8
func (m *MsgSendToken) Unmarshal(dAtA []byte) error
func (*MsgSendToken) ValidateBasic ¶ added in v0.0.8
func (msg *MsgSendToken) ValidateBasic() error
ValidateBasic runs stateless checks on the message.
func (*MsgSendToken) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgSendToken) XXX_DiscardUnknown()
func (*MsgSendToken) XXX_Marshal ¶ added in v0.0.8
func (m *MsgSendToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSendToken) XXX_Merge ¶ added in v0.0.8
func (m *MsgSendToken) XXX_Merge(src proto.Message)
func (*MsgSendToken) XXX_Size ¶ added in v0.0.8
func (m *MsgSendToken) XXX_Size() int
func (*MsgSendToken) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgSendToken) XXX_Unmarshal(b []byte) error
type MsgSendTokenResponse ¶ added in v0.0.8
type MsgSendTokenResponse struct { }
MsgSendTokenResponse defines the Msg/SendToken response type.
func (*MsgSendTokenResponse) Descriptor ¶ added in v0.0.8
func (*MsgSendTokenResponse) Descriptor() ([]byte, []int)
func (*MsgSendTokenResponse) Marshal ¶ added in v0.0.8
func (m *MsgSendTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgSendTokenResponse) MarshalTo ¶ added in v0.0.8
func (m *MsgSendTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSendTokenResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgSendTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSendTokenResponse) ProtoMessage ¶ added in v0.0.8
func (*MsgSendTokenResponse) ProtoMessage()
func (*MsgSendTokenResponse) Reset ¶ added in v0.0.8
func (m *MsgSendTokenResponse) Reset()
func (*MsgSendTokenResponse) Size ¶ added in v0.0.8
func (m *MsgSendTokenResponse) Size() (n int)
func (*MsgSendTokenResponse) String ¶ added in v0.0.8
func (m *MsgSendTokenResponse) String() string
func (*MsgSendTokenResponse) Unmarshal ¶ added in v0.0.8
func (m *MsgSendTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgSendTokenResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgSendTokenResponse) XXX_DiscardUnknown()
func (*MsgSendTokenResponse) XXX_Marshal ¶ added in v0.0.8
func (m *MsgSendTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSendTokenResponse) XXX_Merge ¶ added in v0.0.8
func (m *MsgSendTokenResponse) XXX_Merge(src proto.Message)
func (*MsgSendTokenResponse) XXX_Size ¶ added in v0.0.8
func (m *MsgSendTokenResponse) XXX_Size() int
func (*MsgSendTokenResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgSendTokenResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // MintToken defines message for creating new NFT token or minting additional NFT sub-tokens. MintToken(context.Context, *MsgMintToken) (*MsgMintTokenResponse, error) // UpdateToken defines message for NFT token modifying. UpdateToken(context.Context, *MsgUpdateToken) (*MsgUpdateTokenResponse, error) // UpdateReserve defines message for NFT token reserve updating. UpdateReserve(context.Context, *MsgUpdateReserve) (*MsgUpdateReserveResponse, error) // SendToken defines message for transferring NFT sub-tokens. SendToken(context.Context, *MsgSendToken) (*MsgSendTokenResponse, error) // BurnToken defines message for burning NFT sub-tokens. BurnToken(context.Context, *MsgBurnToken) (*MsgBurnTokenResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateReserve ¶ added in v0.0.8
type MsgUpdateReserve struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` TokenID string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` SubTokenIDs []uint32 `protobuf:"varint,4,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"` Reserve types.Coin `protobuf:"bytes,5,opt,name=reserve,proto3" json:"reserve"` }
MsgUpdateReserve defines a SDK message for modifying existing NFT sub-token reserve.
func NewMsgUpdateReserve ¶ added in v0.0.8
func NewMsgUpdateReserve(sender sdk.AccAddress, tokenID string, subTokenIDs []uint32, reserve sdk.Coin) *MsgUpdateReserve
NewMsgUpdateReserve creates a new instance of MsgUpdateReserve.
func (*MsgUpdateReserve) Descriptor ¶ added in v0.0.8
func (*MsgUpdateReserve) Descriptor() ([]byte, []int)
func (*MsgUpdateReserve) GetReserve ¶ added in v0.0.8
func (m *MsgUpdateReserve) GetReserve() types.Coin
func (*MsgUpdateReserve) GetSender ¶ added in v0.0.8
func (m *MsgUpdateReserve) GetSender() string
func (*MsgUpdateReserve) GetSignBytes ¶ added in v0.0.8
func (msg *MsgUpdateReserve) GetSignBytes() []byte
GetSignBytes encodes the message for signing.
func (*MsgUpdateReserve) GetSigners ¶ added in v0.0.8
func (msg *MsgUpdateReserve) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgUpdateReserve) GetSubTokenIDs ¶ added in v0.0.8
func (m *MsgUpdateReserve) GetSubTokenIDs() []uint32
func (*MsgUpdateReserve) GetTokenID ¶ added in v0.0.8
func (m *MsgUpdateReserve) GetTokenID() string
func (*MsgUpdateReserve) Marshal ¶ added in v0.0.8
func (m *MsgUpdateReserve) Marshal() (dAtA []byte, err error)
func (*MsgUpdateReserve) MarshalTo ¶ added in v0.0.8
func (m *MsgUpdateReserve) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateReserve) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgUpdateReserve) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateReserve) ProtoMessage ¶ added in v0.0.8
func (*MsgUpdateReserve) ProtoMessage()
func (*MsgUpdateReserve) Reset ¶ added in v0.0.8
func (m *MsgUpdateReserve) Reset()
func (*MsgUpdateReserve) Route ¶ added in v0.0.8
func (msg *MsgUpdateReserve) Route() string
Route should return the name of the module.
func (*MsgUpdateReserve) Size ¶ added in v0.0.8
func (m *MsgUpdateReserve) Size() (n int)
func (*MsgUpdateReserve) String ¶ added in v0.0.8
func (m *MsgUpdateReserve) String() string
func (*MsgUpdateReserve) Type ¶ added in v0.0.8
func (msg *MsgUpdateReserve) Type() string
Type should return the action.
func (*MsgUpdateReserve) Unmarshal ¶ added in v0.0.8
func (m *MsgUpdateReserve) Unmarshal(dAtA []byte) error
func (*MsgUpdateReserve) ValidateBasic ¶ added in v0.0.8
func (msg *MsgUpdateReserve) ValidateBasic() error
ValidateBasic runs stateless checks on the message.
func (*MsgUpdateReserve) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgUpdateReserve) XXX_DiscardUnknown()
func (*MsgUpdateReserve) XXX_Marshal ¶ added in v0.0.8
func (m *MsgUpdateReserve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateReserve) XXX_Merge ¶ added in v0.0.8
func (m *MsgUpdateReserve) XXX_Merge(src proto.Message)
func (*MsgUpdateReserve) XXX_Size ¶ added in v0.0.8
func (m *MsgUpdateReserve) XXX_Size() int
func (*MsgUpdateReserve) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgUpdateReserve) XXX_Unmarshal(b []byte) error
type MsgUpdateReserveResponse ¶ added in v0.0.8
type MsgUpdateReserveResponse struct { }
MsgUpdateReserveResponse defines the Msg/UpdateReserve response type.
func (*MsgUpdateReserveResponse) Descriptor ¶ added in v0.0.8
func (*MsgUpdateReserveResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateReserveResponse) Marshal ¶ added in v0.0.8
func (m *MsgUpdateReserveResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateReserveResponse) MarshalTo ¶ added in v0.0.8
func (m *MsgUpdateReserveResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateReserveResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgUpdateReserveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateReserveResponse) ProtoMessage ¶ added in v0.0.8
func (*MsgUpdateReserveResponse) ProtoMessage()
func (*MsgUpdateReserveResponse) Reset ¶ added in v0.0.8
func (m *MsgUpdateReserveResponse) Reset()
func (*MsgUpdateReserveResponse) Size ¶ added in v0.0.8
func (m *MsgUpdateReserveResponse) Size() (n int)
func (*MsgUpdateReserveResponse) String ¶ added in v0.0.8
func (m *MsgUpdateReserveResponse) String() string
func (*MsgUpdateReserveResponse) Unmarshal ¶ added in v0.0.8
func (m *MsgUpdateReserveResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateReserveResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgUpdateReserveResponse) XXX_DiscardUnknown()
func (*MsgUpdateReserveResponse) XXX_Marshal ¶ added in v0.0.8
func (m *MsgUpdateReserveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateReserveResponse) XXX_Merge ¶ added in v0.0.8
func (m *MsgUpdateReserveResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateReserveResponse) XXX_Size ¶ added in v0.0.8
func (m *MsgUpdateReserveResponse) XXX_Size() int
func (*MsgUpdateReserveResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgUpdateReserveResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateToken ¶ added in v0.0.8
type MsgUpdateToken struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` TokenID string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` TokenURI string `protobuf:"bytes,3,opt,name=token_uri,json=tokenUri,proto3" json:"token_uri,omitempty"` }
MsgUpdateToken defines a SDK message for modifying existing NFT token.
func NewMsgUpdateToken ¶ added in v0.0.8
func NewMsgUpdateToken(sender sdk.AccAddress, tokenID string, tokenURI string) *MsgUpdateToken
NewMsgUpdateToken creates a new instance of MsgUpdateToken.
func (*MsgUpdateToken) Descriptor ¶ added in v0.0.8
func (*MsgUpdateToken) Descriptor() ([]byte, []int)
func (*MsgUpdateToken) GetSender ¶ added in v0.0.8
func (m *MsgUpdateToken) GetSender() string
func (*MsgUpdateToken) GetSignBytes ¶ added in v0.0.8
func (msg *MsgUpdateToken) GetSignBytes() []byte
GetSignBytes encodes the message for signing.
func (*MsgUpdateToken) GetSigners ¶ added in v0.0.8
func (msg *MsgUpdateToken) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgUpdateToken) GetTokenID ¶ added in v0.0.8
func (m *MsgUpdateToken) GetTokenID() string
func (*MsgUpdateToken) GetTokenURI ¶ added in v0.0.8
func (m *MsgUpdateToken) GetTokenURI() string
func (*MsgUpdateToken) Marshal ¶ added in v0.0.8
func (m *MsgUpdateToken) Marshal() (dAtA []byte, err error)
func (*MsgUpdateToken) MarshalTo ¶ added in v0.0.8
func (m *MsgUpdateToken) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateToken) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgUpdateToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateToken) ProtoMessage ¶ added in v0.0.8
func (*MsgUpdateToken) ProtoMessage()
func (*MsgUpdateToken) Reset ¶ added in v0.0.8
func (m *MsgUpdateToken) Reset()
func (*MsgUpdateToken) Route ¶ added in v0.0.8
func (msg *MsgUpdateToken) Route() string
Route should return the name of the module.
func (*MsgUpdateToken) Size ¶ added in v0.0.8
func (m *MsgUpdateToken) Size() (n int)
func (*MsgUpdateToken) String ¶ added in v0.0.8
func (m *MsgUpdateToken) String() string
func (*MsgUpdateToken) Type ¶ added in v0.0.8
func (msg *MsgUpdateToken) Type() string
Type should return the action.
func (*MsgUpdateToken) Unmarshal ¶ added in v0.0.8
func (m *MsgUpdateToken) Unmarshal(dAtA []byte) error
func (*MsgUpdateToken) ValidateBasic ¶ added in v0.0.8
func (msg *MsgUpdateToken) ValidateBasic() error
ValidateBasic runs stateless checks on the message.
func (*MsgUpdateToken) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgUpdateToken) XXX_DiscardUnknown()
func (*MsgUpdateToken) XXX_Marshal ¶ added in v0.0.8
func (m *MsgUpdateToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateToken) XXX_Merge ¶ added in v0.0.8
func (m *MsgUpdateToken) XXX_Merge(src proto.Message)
func (*MsgUpdateToken) XXX_Size ¶ added in v0.0.8
func (m *MsgUpdateToken) XXX_Size() int
func (*MsgUpdateToken) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgUpdateToken) XXX_Unmarshal(b []byte) error
type MsgUpdateTokenResponse ¶ added in v0.0.8
type MsgUpdateTokenResponse struct { }
MsgUpdateTokenResponse defines the Msg/UpdateToken response type.
func (*MsgUpdateTokenResponse) Descriptor ¶ added in v0.0.8
func (*MsgUpdateTokenResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateTokenResponse) Marshal ¶ added in v0.0.8
func (m *MsgUpdateTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateTokenResponse) MarshalTo ¶ added in v0.0.8
func (m *MsgUpdateTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateTokenResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *MsgUpdateTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateTokenResponse) ProtoMessage ¶ added in v0.0.8
func (*MsgUpdateTokenResponse) ProtoMessage()
func (*MsgUpdateTokenResponse) Reset ¶ added in v0.0.8
func (m *MsgUpdateTokenResponse) Reset()
func (*MsgUpdateTokenResponse) Size ¶ added in v0.0.8
func (m *MsgUpdateTokenResponse) Size() (n int)
func (*MsgUpdateTokenResponse) String ¶ added in v0.0.8
func (m *MsgUpdateTokenResponse) String() string
func (*MsgUpdateTokenResponse) Unmarshal ¶ added in v0.0.8
func (m *MsgUpdateTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateTokenResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *MsgUpdateTokenResponse) XXX_DiscardUnknown()
func (*MsgUpdateTokenResponse) XXX_Marshal ¶ added in v0.0.8
func (m *MsgUpdateTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateTokenResponse) XXX_Merge ¶ added in v0.0.8
func (m *MsgUpdateTokenResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateTokenResponse) XXX_Size ¶ added in v0.0.8
func (m *MsgUpdateTokenResponse) XXX_Size() int
func (*MsgUpdateTokenResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *MsgUpdateTokenResponse) XXX_Unmarshal(b []byte) error
type Params ¶ added in v0.0.8
type Params struct { // max_collection_size defines maximum allowed count of NFT tokens per a NFT collection. MaxCollectionSize uint32 `protobuf:"varint,1,opt,name=max_collection_size,json=maxCollectionSize,proto3" json:"max_collection_size,omitempty"` // max_token_quantity defines maximum allowed count of NFT sub-tokens per a NFT token. MaxTokenQuantity uint32 `protobuf:"varint,2,opt,name=max_token_quantity,json=maxTokenQuantity,proto3" json:"max_token_quantity,omitempty"` // min_reserve_amount defines minimum allowed reserve for a NFT sub-token in the base coin. MinReserveAmount cosmossdk_io_math.Int `` /* 134-byte string literal not displayed */ }
Params defines the parameters for the module.
func DefaultParams ¶ added in v0.0.8
func DefaultParams() Params
DefaultParams returns a default set of parameters.
func NewParams ¶ added in v0.0.8
func NewParams(maxCollectionSize uint32, maxTokenQuantity uint32, minReserveAmount sdkmath.Int) Params
NewParams creates a new Params instance.
func (*Params) Descriptor ¶ added in v0.0.8
func (*Params) MarshalToSizedBuffer ¶ added in v0.0.8
func (*Params) ParamSetPairs ¶ added in v0.0.8
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs returns the parameter set pairs.
func (*Params) ProtoMessage ¶ added in v0.0.8
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.0.8
func (*Params) XXX_Unmarshal ¶ added in v0.0.8
type QueryBalanceParams ¶
type QueryBalanceParams struct { Owner sdk.AccAddress Denom string // optional }
QueryBalanceParams params for query 'custom/nfts/balance'
func NewQueryBalanceParams ¶
func NewQueryBalanceParams(owner sdk.AccAddress, denom ...string) QueryBalanceParams
NewQueryBalanceParams creates a new instance of QuerySupplyParams
type QueryClient ¶
type QueryClient interface { // Collections queries all NFT collections. // Response does not contain any info about NFT tokens. Collections(ctx context.Context, in *QueryCollectionsRequest, opts ...grpc.CallOption) (*QueryCollectionsResponse, error) // CollectionsByCreator queries all NFT collections created by specified creator address. // Response does not contain any info about NFT sub-tokens. CollectionsByCreator(ctx context.Context, in *QueryCollectionsByCreatorRequest, opts ...grpc.CallOption) (*QueryCollectionsByCreatorResponse, error) // Collection queries the NFT collection by specified creator address and collection denom. // Response does not contain any info about NFT sub-tokens. Collection(ctx context.Context, in *QueryCollectionRequest, opts ...grpc.CallOption) (*QueryCollectionResponse, error) // Token queries the NFT token by specified unique token ID. // Response contains full info about the NFT token with containing NFT sub-tokens. Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) // SubToken queries the NFT sub-token by specified unique token ID and sub-token ID. // Response contains full info about the NFT sub-tokens. SubToken(ctx context.Context, in *QuerySubTokenRequest, opts ...grpc.CallOption) (*QuerySubTokenResponse, 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 QueryCollectionParams ¶
type QueryCollectionParams struct {
Denom string `json:"denom"`
}
QueryCollectionParams defines the params for queries:
func NewQueryCollectionParams ¶
func NewQueryCollectionParams(denom string) QueryCollectionParams
NewQueryCollectionParams creates a new instance of QuerySupplyParams
func (QueryCollectionParams) Bytes ¶
func (q QueryCollectionParams) Bytes() []byte
Bytes exports the Denom as bytes
type QueryCollectionRequest ¶
type QueryCollectionRequest struct { // creator defines the NFT collection creator address. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // denom defines NFT collection name. Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
QueryCollectionRequest is request type for the Query/Collection RPC method.
func (*QueryCollectionRequest) Descriptor ¶
func (*QueryCollectionRequest) Descriptor() ([]byte, []int)
func (*QueryCollectionRequest) GetCreator ¶ added in v0.0.8
func (m *QueryCollectionRequest) GetCreator() string
func (*QueryCollectionRequest) GetDenom ¶
func (m *QueryCollectionRequest) GetDenom() string
func (*QueryCollectionRequest) Marshal ¶
func (m *QueryCollectionRequest) Marshal() (dAtA []byte, err error)
func (*QueryCollectionRequest) MarshalTo ¶
func (m *QueryCollectionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollectionRequest) MarshalToSizedBuffer ¶
func (m *QueryCollectionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollectionRequest) ProtoMessage ¶
func (*QueryCollectionRequest) ProtoMessage()
func (*QueryCollectionRequest) Reset ¶
func (m *QueryCollectionRequest) Reset()
func (*QueryCollectionRequest) Size ¶
func (m *QueryCollectionRequest) Size() (n int)
func (*QueryCollectionRequest) String ¶
func (m *QueryCollectionRequest) String() string
func (*QueryCollectionRequest) Unmarshal ¶
func (m *QueryCollectionRequest) Unmarshal(dAtA []byte) error
func (*QueryCollectionRequest) XXX_DiscardUnknown ¶
func (m *QueryCollectionRequest) XXX_DiscardUnknown()
func (*QueryCollectionRequest) XXX_Marshal ¶
func (m *QueryCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollectionRequest) XXX_Merge ¶
func (m *QueryCollectionRequest) XXX_Merge(src proto.Message)
func (*QueryCollectionRequest) XXX_Size ¶
func (m *QueryCollectionRequest) XXX_Size() int
func (*QueryCollectionRequest) XXX_Unmarshal ¶
func (m *QueryCollectionRequest) XXX_Unmarshal(b []byte) error
type QueryCollectionResponse ¶
type QueryCollectionResponse struct { // collection contains the queried NFT collection. Collection Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection"` }
QueryCollectionResponse is response type for the Query/Collection RPC method. NOTE: Response does not contain any info about NFT sub-tokens.
func (*QueryCollectionResponse) Descriptor ¶
func (*QueryCollectionResponse) Descriptor() ([]byte, []int)
func (*QueryCollectionResponse) GetCollection ¶
func (m *QueryCollectionResponse) GetCollection() Collection
func (*QueryCollectionResponse) Marshal ¶
func (m *QueryCollectionResponse) Marshal() (dAtA []byte, err error)
func (*QueryCollectionResponse) MarshalTo ¶
func (m *QueryCollectionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollectionResponse) MarshalToSizedBuffer ¶
func (m *QueryCollectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollectionResponse) ProtoMessage ¶
func (*QueryCollectionResponse) ProtoMessage()
func (*QueryCollectionResponse) Reset ¶
func (m *QueryCollectionResponse) Reset()
func (*QueryCollectionResponse) Size ¶
func (m *QueryCollectionResponse) Size() (n int)
func (*QueryCollectionResponse) String ¶
func (m *QueryCollectionResponse) String() string
func (*QueryCollectionResponse) Unmarshal ¶
func (m *QueryCollectionResponse) Unmarshal(dAtA []byte) error
func (*QueryCollectionResponse) XXX_DiscardUnknown ¶
func (m *QueryCollectionResponse) XXX_DiscardUnknown()
func (*QueryCollectionResponse) XXX_Marshal ¶
func (m *QueryCollectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollectionResponse) XXX_Merge ¶
func (m *QueryCollectionResponse) XXX_Merge(src proto.Message)
func (*QueryCollectionResponse) XXX_Size ¶
func (m *QueryCollectionResponse) XXX_Size() int
func (*QueryCollectionResponse) XXX_Unmarshal ¶
func (m *QueryCollectionResponse) XXX_Unmarshal(b []byte) error
type QueryCollectionsByCreatorRequest ¶ added in v0.0.8
type QueryCollectionsByCreatorRequest struct { // creator defines the NFT collection creator address. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCollectionsByCreatorRequest is request type for the Query/CollectionsByCreator RPC method.
func (*QueryCollectionsByCreatorRequest) Descriptor ¶ added in v0.0.8
func (*QueryCollectionsByCreatorRequest) Descriptor() ([]byte, []int)
func (*QueryCollectionsByCreatorRequest) GetCreator ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) GetCreator() string
func (*QueryCollectionsByCreatorRequest) GetPagination ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) GetPagination() *query.PageRequest
func (*QueryCollectionsByCreatorRequest) Marshal ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) Marshal() (dAtA []byte, err error)
func (*QueryCollectionsByCreatorRequest) MarshalTo ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollectionsByCreatorRequest) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollectionsByCreatorRequest) ProtoMessage ¶ added in v0.0.8
func (*QueryCollectionsByCreatorRequest) ProtoMessage()
func (*QueryCollectionsByCreatorRequest) Reset ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) Reset()
func (*QueryCollectionsByCreatorRequest) Size ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) Size() (n int)
func (*QueryCollectionsByCreatorRequest) String ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) String() string
func (*QueryCollectionsByCreatorRequest) Unmarshal ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) Unmarshal(dAtA []byte) error
func (*QueryCollectionsByCreatorRequest) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) XXX_DiscardUnknown()
func (*QueryCollectionsByCreatorRequest) XXX_Marshal ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollectionsByCreatorRequest) XXX_Merge ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) XXX_Merge(src proto.Message)
func (*QueryCollectionsByCreatorRequest) XXX_Size ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) XXX_Size() int
func (*QueryCollectionsByCreatorRequest) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorRequest) XXX_Unmarshal(b []byte) error
type QueryCollectionsByCreatorResponse ¶ added in v0.0.8
type QueryCollectionsByCreatorResponse struct { // collections contains all the queried collections. Collections []Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCollectionsByCreatorResponse is response type for the Query/CollectionsByCreator RPC method. NOTE: Response does not contain any info about NFT sub-tokens.
func (*QueryCollectionsByCreatorResponse) Descriptor ¶ added in v0.0.8
func (*QueryCollectionsByCreatorResponse) Descriptor() ([]byte, []int)
func (*QueryCollectionsByCreatorResponse) GetCollections ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) GetCollections() []Collection
func (*QueryCollectionsByCreatorResponse) GetPagination ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) GetPagination() *query.PageResponse
func (*QueryCollectionsByCreatorResponse) Marshal ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) Marshal() (dAtA []byte, err error)
func (*QueryCollectionsByCreatorResponse) MarshalTo ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollectionsByCreatorResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollectionsByCreatorResponse) ProtoMessage ¶ added in v0.0.8
func (*QueryCollectionsByCreatorResponse) ProtoMessage()
func (*QueryCollectionsByCreatorResponse) Reset ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) Reset()
func (*QueryCollectionsByCreatorResponse) Size ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) Size() (n int)
func (*QueryCollectionsByCreatorResponse) String ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) String() string
func (*QueryCollectionsByCreatorResponse) Unmarshal ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) Unmarshal(dAtA []byte) error
func (*QueryCollectionsByCreatorResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) XXX_DiscardUnknown()
func (*QueryCollectionsByCreatorResponse) XXX_Marshal ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollectionsByCreatorResponse) XXX_Merge ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) XXX_Merge(src proto.Message)
func (*QueryCollectionsByCreatorResponse) XXX_Size ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) XXX_Size() int
func (*QueryCollectionsByCreatorResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryCollectionsByCreatorResponse) XXX_Unmarshal(b []byte) error
type QueryCollectionsRequest ¶ added in v0.0.8
type QueryCollectionsRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCollectionsRequest is request type for the Query/Collections RPC method.
func (*QueryCollectionsRequest) Descriptor ¶ added in v0.0.8
func (*QueryCollectionsRequest) Descriptor() ([]byte, []int)
func (*QueryCollectionsRequest) GetPagination ¶ added in v0.0.8
func (m *QueryCollectionsRequest) GetPagination() *query.PageRequest
func (*QueryCollectionsRequest) Marshal ¶ added in v0.0.8
func (m *QueryCollectionsRequest) Marshal() (dAtA []byte, err error)
func (*QueryCollectionsRequest) MarshalTo ¶ added in v0.0.8
func (m *QueryCollectionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollectionsRequest) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryCollectionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollectionsRequest) ProtoMessage ¶ added in v0.0.8
func (*QueryCollectionsRequest) ProtoMessage()
func (*QueryCollectionsRequest) Reset ¶ added in v0.0.8
func (m *QueryCollectionsRequest) Reset()
func (*QueryCollectionsRequest) Size ¶ added in v0.0.8
func (m *QueryCollectionsRequest) Size() (n int)
func (*QueryCollectionsRequest) String ¶ added in v0.0.8
func (m *QueryCollectionsRequest) String() string
func (*QueryCollectionsRequest) Unmarshal ¶ added in v0.0.8
func (m *QueryCollectionsRequest) Unmarshal(dAtA []byte) error
func (*QueryCollectionsRequest) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryCollectionsRequest) XXX_DiscardUnknown()
func (*QueryCollectionsRequest) XXX_Marshal ¶ added in v0.0.8
func (m *QueryCollectionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollectionsRequest) XXX_Merge ¶ added in v0.0.8
func (m *QueryCollectionsRequest) XXX_Merge(src proto.Message)
func (*QueryCollectionsRequest) XXX_Size ¶ added in v0.0.8
func (m *QueryCollectionsRequest) XXX_Size() int
func (*QueryCollectionsRequest) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryCollectionsRequest) XXX_Unmarshal(b []byte) error
type QueryCollectionsResponse ¶ added in v0.0.8
type QueryCollectionsResponse struct { // collections contains all the queried collections. Collections []Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCollectionsResponse is response type for the Query/Collections RPC method. NOTE: Response does not contain any info about NFT tokens.
func (*QueryCollectionsResponse) Descriptor ¶ added in v0.0.8
func (*QueryCollectionsResponse) Descriptor() ([]byte, []int)
func (*QueryCollectionsResponse) GetCollections ¶ added in v0.0.8
func (m *QueryCollectionsResponse) GetCollections() []Collection
func (*QueryCollectionsResponse) GetPagination ¶ added in v0.0.8
func (m *QueryCollectionsResponse) GetPagination() *query.PageResponse
func (*QueryCollectionsResponse) Marshal ¶ added in v0.0.8
func (m *QueryCollectionsResponse) Marshal() (dAtA []byte, err error)
func (*QueryCollectionsResponse) MarshalTo ¶ added in v0.0.8
func (m *QueryCollectionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollectionsResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryCollectionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollectionsResponse) ProtoMessage ¶ added in v0.0.8
func (*QueryCollectionsResponse) ProtoMessage()
func (*QueryCollectionsResponse) Reset ¶ added in v0.0.8
func (m *QueryCollectionsResponse) Reset()
func (*QueryCollectionsResponse) Size ¶ added in v0.0.8
func (m *QueryCollectionsResponse) Size() (n int)
func (*QueryCollectionsResponse) String ¶ added in v0.0.8
func (m *QueryCollectionsResponse) String() string
func (*QueryCollectionsResponse) Unmarshal ¶ added in v0.0.8
func (m *QueryCollectionsResponse) Unmarshal(dAtA []byte) error
func (*QueryCollectionsResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryCollectionsResponse) XXX_DiscardUnknown()
func (*QueryCollectionsResponse) XXX_Marshal ¶ added in v0.0.8
func (m *QueryCollectionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollectionsResponse) XXX_Merge ¶ added in v0.0.8
func (m *QueryCollectionsResponse) XXX_Merge(src proto.Message)
func (*QueryCollectionsResponse) XXX_Size ¶ added in v0.0.8
func (m *QueryCollectionsResponse) XXX_Size() int
func (*QueryCollectionsResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryCollectionsResponse) XXX_Unmarshal(b []byte) error
type QueryNFTParams ¶
QueryNFTParams params for query 'custom/nfts/nft'
func NewQueryNFTParams ¶
func NewQueryNFTParams(denom, id string) QueryNFTParams
NewQueryNFTParams creates a new instance of QueryNFTParams
type QueryServer ¶
type QueryServer interface { // Collections queries all NFT collections. // Response does not contain any info about NFT tokens. Collections(context.Context, *QueryCollectionsRequest) (*QueryCollectionsResponse, error) // CollectionsByCreator queries all NFT collections created by specified creator address. // Response does not contain any info about NFT sub-tokens. CollectionsByCreator(context.Context, *QueryCollectionsByCreatorRequest) (*QueryCollectionsByCreatorResponse, error) // Collection queries the NFT collection by specified creator address and collection denom. // Response does not contain any info about NFT sub-tokens. Collection(context.Context, *QueryCollectionRequest) (*QueryCollectionResponse, error) // Token queries the NFT token by specified unique token ID. // Response contains full info about the NFT token with containing NFT sub-tokens. Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) // SubToken queries the NFT sub-token by specified unique token ID and sub-token ID. // Response contains full info about the NFT sub-tokens. SubToken(context.Context, *QuerySubTokenRequest) (*QuerySubTokenResponse, error) }
QueryServer is the server API for Query service.
type QuerySubTokenRequest ¶ added in v0.0.8
type QuerySubTokenRequest struct { // token_id defines NFT token ID. TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` // sub_token_id defines NFT sub-token ID. SubTokenId string `protobuf:"bytes,2,opt,name=sub_token_id,json=subTokenId,proto3" json:"sub_token_id,omitempty"` }
QuerySubTokenRequest is request type for the Query/SubToken RPC method.
func (*QuerySubTokenRequest) Descriptor ¶ added in v0.0.8
func (*QuerySubTokenRequest) Descriptor() ([]byte, []int)
func (*QuerySubTokenRequest) GetSubTokenId ¶ added in v0.0.8
func (m *QuerySubTokenRequest) GetSubTokenId() string
func (*QuerySubTokenRequest) GetTokenId ¶ added in v0.0.8
func (m *QuerySubTokenRequest) GetTokenId() string
func (*QuerySubTokenRequest) Marshal ¶ added in v0.0.8
func (m *QuerySubTokenRequest) Marshal() (dAtA []byte, err error)
func (*QuerySubTokenRequest) MarshalTo ¶ added in v0.0.8
func (m *QuerySubTokenRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubTokenRequest) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QuerySubTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubTokenRequest) ProtoMessage ¶ added in v0.0.8
func (*QuerySubTokenRequest) ProtoMessage()
func (*QuerySubTokenRequest) Reset ¶ added in v0.0.8
func (m *QuerySubTokenRequest) Reset()
func (*QuerySubTokenRequest) Size ¶ added in v0.0.8
func (m *QuerySubTokenRequest) Size() (n int)
func (*QuerySubTokenRequest) String ¶ added in v0.0.8
func (m *QuerySubTokenRequest) String() string
func (*QuerySubTokenRequest) Unmarshal ¶ added in v0.0.8
func (m *QuerySubTokenRequest) Unmarshal(dAtA []byte) error
func (*QuerySubTokenRequest) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QuerySubTokenRequest) XXX_DiscardUnknown()
func (*QuerySubTokenRequest) XXX_Marshal ¶ added in v0.0.8
func (m *QuerySubTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubTokenRequest) XXX_Merge ¶ added in v0.0.8
func (m *QuerySubTokenRequest) XXX_Merge(src proto.Message)
func (*QuerySubTokenRequest) XXX_Size ¶ added in v0.0.8
func (m *QuerySubTokenRequest) XXX_Size() int
func (*QuerySubTokenRequest) XXX_Unmarshal ¶ added in v0.0.8
func (m *QuerySubTokenRequest) XXX_Unmarshal(b []byte) error
type QuerySubTokenResponse ¶ added in v0.0.8
type QuerySubTokenResponse struct { // sub_token contains the queried NFT sub-token. SubToken SubToken `protobuf:"bytes,1,opt,name=sub_token,json=subToken,proto3" json:"sub_token"` }
QuerySubTokenResponse is response type for the Query/SubToken RPC method. NOTE: Response contains info about single NFT sub-token.
func (*QuerySubTokenResponse) Descriptor ¶ added in v0.0.8
func (*QuerySubTokenResponse) Descriptor() ([]byte, []int)
func (*QuerySubTokenResponse) GetSubToken ¶ added in v0.0.8
func (m *QuerySubTokenResponse) GetSubToken() SubToken
func (*QuerySubTokenResponse) Marshal ¶ added in v0.0.8
func (m *QuerySubTokenResponse) Marshal() (dAtA []byte, err error)
func (*QuerySubTokenResponse) MarshalTo ¶ added in v0.0.8
func (m *QuerySubTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubTokenResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QuerySubTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubTokenResponse) ProtoMessage ¶ added in v0.0.8
func (*QuerySubTokenResponse) ProtoMessage()
func (*QuerySubTokenResponse) Reset ¶ added in v0.0.8
func (m *QuerySubTokenResponse) Reset()
func (*QuerySubTokenResponse) Size ¶ added in v0.0.8
func (m *QuerySubTokenResponse) Size() (n int)
func (*QuerySubTokenResponse) String ¶ added in v0.0.8
func (m *QuerySubTokenResponse) String() string
func (*QuerySubTokenResponse) Unmarshal ¶ added in v0.0.8
func (m *QuerySubTokenResponse) Unmarshal(dAtA []byte) error
func (*QuerySubTokenResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QuerySubTokenResponse) XXX_DiscardUnknown()
func (*QuerySubTokenResponse) XXX_Marshal ¶ added in v0.0.8
func (m *QuerySubTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubTokenResponse) XXX_Merge ¶ added in v0.0.8
func (m *QuerySubTokenResponse) XXX_Merge(src proto.Message)
func (*QuerySubTokenResponse) XXX_Size ¶ added in v0.0.8
func (m *QuerySubTokenResponse) XXX_Size() int
func (*QuerySubTokenResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *QuerySubTokenResponse) XXX_Unmarshal(b []byte) error
type QuerySubTokensParams ¶
type QuerySubTokensParams struct { Denom string `json:"denom"` TokenID string `json:"token_id"` SubTokenIDs []uint64 `json:"sub_token_ids"` }
QuerySubTokensParams params for query 'custom/nfts/sub_tokens'
func NewQuerySubTokensParams ¶
func NewQuerySubTokensParams(denom, id string, subTokenIDs []uint64) QuerySubTokensParams
NewQuerySubTokensParams creates a new instance of QuerySubTokensParams
type QueryTokenRequest ¶ added in v0.0.8
type QueryTokenRequest struct { // token_id defines NFT token ID. TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` }
QueryTokenRequest is request type for the Query/Token RPC method.
func (*QueryTokenRequest) Descriptor ¶ added in v0.0.8
func (*QueryTokenRequest) Descriptor() ([]byte, []int)
func (*QueryTokenRequest) GetTokenId ¶ added in v0.0.8
func (m *QueryTokenRequest) GetTokenId() string
func (*QueryTokenRequest) Marshal ¶ added in v0.0.8
func (m *QueryTokenRequest) Marshal() (dAtA []byte, err error)
func (*QueryTokenRequest) MarshalTo ¶ added in v0.0.8
func (m *QueryTokenRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokenRequest) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokenRequest) ProtoMessage ¶ added in v0.0.8
func (*QueryTokenRequest) ProtoMessage()
func (*QueryTokenRequest) Reset ¶ added in v0.0.8
func (m *QueryTokenRequest) Reset()
func (*QueryTokenRequest) Size ¶ added in v0.0.8
func (m *QueryTokenRequest) Size() (n int)
func (*QueryTokenRequest) String ¶ added in v0.0.8
func (m *QueryTokenRequest) String() string
func (*QueryTokenRequest) Unmarshal ¶ added in v0.0.8
func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error
func (*QueryTokenRequest) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryTokenRequest) XXX_DiscardUnknown()
func (*QueryTokenRequest) XXX_Marshal ¶ added in v0.0.8
func (m *QueryTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokenRequest) XXX_Merge ¶ added in v0.0.8
func (m *QueryTokenRequest) XXX_Merge(src proto.Message)
func (*QueryTokenRequest) XXX_Size ¶ added in v0.0.8
func (m *QueryTokenRequest) XXX_Size() int
func (*QueryTokenRequest) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryTokenRequest) XXX_Unmarshal(b []byte) error
type QueryTokenResponse ¶ added in v0.0.8
type QueryTokenResponse struct { // token contains the queried NFT token. Token Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` }
QueryTokenResponse is response type for the Query/Token RPC method. NOTE: Response contains info about NFT collection and full info about the NFT token with containing NFT sub-tokens.
func (*QueryTokenResponse) Descriptor ¶ added in v0.0.8
func (*QueryTokenResponse) Descriptor() ([]byte, []int)
func (*QueryTokenResponse) GetToken ¶ added in v0.0.8
func (m *QueryTokenResponse) GetToken() Token
func (*QueryTokenResponse) Marshal ¶ added in v0.0.8
func (m *QueryTokenResponse) Marshal() (dAtA []byte, err error)
func (*QueryTokenResponse) MarshalTo ¶ added in v0.0.8
func (m *QueryTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokenResponse) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *QueryTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokenResponse) ProtoMessage ¶ added in v0.0.8
func (*QueryTokenResponse) ProtoMessage()
func (*QueryTokenResponse) Reset ¶ added in v0.0.8
func (m *QueryTokenResponse) Reset()
func (*QueryTokenResponse) Size ¶ added in v0.0.8
func (m *QueryTokenResponse) Size() (n int)
func (*QueryTokenResponse) String ¶ added in v0.0.8
func (m *QueryTokenResponse) String() string
func (*QueryTokenResponse) Unmarshal ¶ added in v0.0.8
func (m *QueryTokenResponse) Unmarshal(dAtA []byte) error
func (*QueryTokenResponse) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *QueryTokenResponse) XXX_DiscardUnknown()
func (*QueryTokenResponse) XXX_Marshal ¶ added in v0.0.8
func (m *QueryTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokenResponse) XXX_Merge ¶ added in v0.0.8
func (m *QueryTokenResponse) XXX_Merge(src proto.Message)
func (*QueryTokenResponse) XXX_Size ¶ added in v0.0.8
func (m *QueryTokenResponse) XXX_Size() int
func (*QueryTokenResponse) XXX_Unmarshal ¶ added in v0.0.8
func (m *QueryTokenResponse) XXX_Unmarshal(b []byte) error
type ResponseSubToken ¶
type ResponseSubTokens ¶
type ResponseSubTokens []ResponseSubToken
type SortedStringArray ¶
type SortedStringArray = types.SortedStringArray
type SortedUintArray ¶
type SortedUintArray = types.SortedUintArray
type SubToken ¶
type SubToken struct { // id defines NFT sub-token internal ID in the parent NFT token. ID uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // owner defines address of the current owner of the NFT sub-token. Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` // reserve defines reserve of the NFT sub-token. Reserve *types.Coin `protobuf:"bytes,3,opt,name=reserve,proto3" json:"reserve,omitempty"` }
SubToken defines NFT sub-token.
func (*SubToken) Descriptor ¶
func (*SubToken) MarshalToSizedBuffer ¶
func (*SubToken) ProtoMessage ¶
func (*SubToken) ProtoMessage()
func (*SubToken) XXX_DiscardUnknown ¶
func (m *SubToken) XXX_DiscardUnknown()
func (*SubToken) XXX_Marshal ¶
func (*SubToken) XXX_Unmarshal ¶
type Token ¶ added in v0.0.8
type Token struct { // creator defines address of the NFT collection creator. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // denom defines the NFT collection name. Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` // id defines unique NFT token ID. ID string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` // uri defines URI to the NFT token metadata. URI string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` // reserve defines default reserve of each minted NFT sub-token. Reserve types.Coin `protobuf:"bytes,5,opt,name=reserve,proto3" json:"reserve"` // allow_mint defines ability to mint additional NFT sub-tokens. AllowMint bool `protobuf:"varint,6,opt,name=allow_mint,json=allowMint,proto3" json:"allow_mint,omitempty"` // minted defines total count of minted NFT sub-tokens. Minted uint32 `protobuf:"varint,7,opt,name=minted,proto3" json:"minted,omitempty"` // burnt defines total count of burnt NFT sub-tokens. Burnt uint32 `protobuf:"varint,8,opt,name=burnt,proto3" json:"burnt,omitempty"` // sub_tokens defines the list of NFT sub-tokens existing in the NFT token. SubTokens SubTokens `protobuf:"bytes,9,rep,name=sub_tokens,json=subTokens,proto3,castrepeated=SubTokens" json:"sub_tokens,omitempty"` }
Token defines NFT token.
func (*Token) Descriptor ¶ added in v0.0.8
func (*Token) MarshalToSizedBuffer ¶ added in v0.0.8
func (*Token) ProtoMessage ¶ added in v0.0.8
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶ added in v0.0.8
func (*Token) XXX_Unmarshal ¶ added in v0.0.8
type TokenCounter ¶ added in v0.0.8
type TokenCounter struct { // minted defines total count of minted NFT sub-tokens. Minted uint32 `protobuf:"varint,1,opt,name=minted,proto3" json:"minted,omitempty"` // burnt defines total count of burnt NFT sub-tokens. Burnt uint32 `protobuf:"varint,2,opt,name=burnt,proto3" json:"burnt,omitempty"` }
TokenCounter defines object containing counters of minted and burnt NFT sub-tokens.
func (*TokenCounter) Descriptor ¶ added in v0.0.8
func (*TokenCounter) Descriptor() ([]byte, []int)
func (*TokenCounter) Equal ¶ added in v0.0.8
func (this *TokenCounter) Equal(that interface{}) bool
func (*TokenCounter) Marshal ¶ added in v0.0.8
func (m *TokenCounter) Marshal() (dAtA []byte, err error)
func (*TokenCounter) MarshalTo ¶ added in v0.0.8
func (m *TokenCounter) MarshalTo(dAtA []byte) (int, error)
func (*TokenCounter) MarshalToSizedBuffer ¶ added in v0.0.8
func (m *TokenCounter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TokenCounter) ProtoMessage ¶ added in v0.0.8
func (*TokenCounter) ProtoMessage()
func (*TokenCounter) Reset ¶ added in v0.0.8
func (m *TokenCounter) Reset()
func (*TokenCounter) Size ¶ added in v0.0.8
func (m *TokenCounter) Size() (n int)
func (*TokenCounter) String ¶ added in v0.0.8
func (m *TokenCounter) String() string
func (*TokenCounter) Unmarshal ¶ added in v0.0.8
func (m *TokenCounter) Unmarshal(dAtA []byte) error
func (*TokenCounter) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *TokenCounter) XXX_DiscardUnknown()
func (*TokenCounter) XXX_Marshal ¶ added in v0.0.8
func (m *TokenCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenCounter) XXX_Merge ¶ added in v0.0.8
func (m *TokenCounter) XXX_Merge(src proto.Message)
func (*TokenCounter) XXX_Size ¶ added in v0.0.8
func (m *TokenCounter) XXX_Size() int
func (*TokenCounter) XXX_Unmarshal ¶ added in v0.0.8
func (m *TokenCounter) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) BurnToken ¶ added in v0.0.8
func (*UnimplementedMsgServer) BurnToken(ctx context.Context, req *MsgBurnToken) (*MsgBurnTokenResponse, error)
func (*UnimplementedMsgServer) MintToken ¶ added in v0.0.8
func (*UnimplementedMsgServer) MintToken(ctx context.Context, req *MsgMintToken) (*MsgMintTokenResponse, error)
func (*UnimplementedMsgServer) SendToken ¶ added in v0.0.8
func (*UnimplementedMsgServer) SendToken(ctx context.Context, req *MsgSendToken) (*MsgSendTokenResponse, error)
func (*UnimplementedMsgServer) UpdateReserve ¶ added in v0.0.8
func (*UnimplementedMsgServer) UpdateReserve(ctx context.Context, req *MsgUpdateReserve) (*MsgUpdateReserveResponse, error)
func (*UnimplementedMsgServer) UpdateToken ¶ added in v0.0.8
func (*UnimplementedMsgServer) UpdateToken(ctx context.Context, req *MsgUpdateToken) (*MsgUpdateTokenResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Collection ¶ added in v0.0.8
func (*UnimplementedQueryServer) Collection(ctx context.Context, req *QueryCollectionRequest) (*QueryCollectionResponse, error)
func (*UnimplementedQueryServer) Collections ¶ added in v0.0.8
func (*UnimplementedQueryServer) Collections(ctx context.Context, req *QueryCollectionsRequest) (*QueryCollectionsResponse, error)
func (*UnimplementedQueryServer) CollectionsByCreator ¶ added in v0.0.8
func (*UnimplementedQueryServer) CollectionsByCreator(ctx context.Context, req *QueryCollectionsByCreatorRequest) (*QueryCollectionsByCreatorResponse, error)
func (*UnimplementedQueryServer) SubToken ¶ added in v0.0.8
func (*UnimplementedQueryServer) SubToken(ctx context.Context, req *QuerySubTokenRequest) (*QuerySubTokenResponse, error)
func (*UnimplementedQueryServer) Token ¶ added in v0.0.8
func (*UnimplementedQueryServer) Token(ctx context.Context, req *QueryTokenRequest) (*QueryTokenResponse, error)