types

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 33 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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
)
View Source
const (
	TypeMsgMintToken     = "mint_token"
	TypeMsgUpdateToken   = "update_token"
	TypeMsgUpdateReserve = "update_reserve"
	TypeMsgSendToken     = "send_token"
	TypeMsgBurnToken     = "burn_token"
)
View Source
const ReservedPool = "reserved_pool"

Variables

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthNft        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNft          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNft = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultMaxCollectionSize uint32      = 10000
	DefaultMaxTokenQuantity  uint32      = 10000
	DefaultMinReserveAmount  sdkmath.Int = helpers.EtherToWei(sdkmath.NewInt(1))
)

NFT params default values.

View Source
var (
	KeyMaxCollectionSize = []byte("MaxCollectionSize")
	KeyMaxTokenQuantity  = []byte("MaxTokenQuantity")
	KeyMinReserveAmount  = []byte("MinReserveAmount")
)

Parameter store keys.

View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

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 CheckUnique(arr []uint32) bool

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

func GetSubTokenKey(id string, index uint32) []byte

GetSubTokenKey returns the key of the NFT sub-token.

func GetSubTokensKey

func GetSubTokensKey(id string) []byte

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

func GetTokenCounterKey(id string) []byte

GetTokenCounterKey returns the key of the NFT token counter.

func GetTokenKey added in v0.0.8

func GetTokenKey(id string) []byte

GetTokenKey returns the key of the NFT token.

func GetTokenKeyByIDHash added in v0.0.8

func GetTokenKeyByIDHash(id []byte) []byte

func GetTokenURIKey

func GetTokenURIKey(tokenURI string) []byte

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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) MarshalTo

func (m *Collection) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) 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) Descriptor() ([]byte, []int)

func (*Params) Equal added in v0.0.8

func (this *Params) Equal(that interface{}) bool

func (*Params) Marshal added in v0.0.8

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo added in v0.0.8

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer added in v0.0.8

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

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) Reset added in v0.0.8

func (m *Params) Reset()

func (*Params) Size added in v0.0.8

func (m *Params) Size() (n int)

func (*Params) String added in v0.0.8

func (m *Params) String() string

func (*Params) Unmarshal added in v0.0.8

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) Validate added in v0.0.8

func (p *Params) Validate() (err error)

Validate validates the set of params.

func (*Params) XXX_DiscardUnknown added in v0.0.8

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.0.8

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge added in v0.0.8

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size added in v0.0.8

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.0.8

func (m *Params) XXX_Unmarshal(b []byte) error

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 (*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 (*QueryCollectionsByCreatorRequest) Size added in v0.0.8

func (m *QueryCollectionsByCreatorRequest) Size() (n int)

func (*QueryCollectionsByCreatorRequest) String added in v0.0.8

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 (*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 (*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 (*QueryCollectionsByCreatorResponse) Size added in v0.0.8

func (m *QueryCollectionsByCreatorResponse) Size() (n int)

func (*QueryCollectionsByCreatorResponse) String added in v0.0.8

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 (*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

type QueryNFTParams struct {
	Denom   string `json:"denom"`
	TokenID string `json:"token_id"`
}

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 ResponseSubToken struct {
	ID      uint64
	Reserve sdk.Coin
}

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) Descriptor() ([]byte, []int)

func (*SubToken) Equal added in v0.0.8

func (this *SubToken) Equal(that interface{}) bool

func (*SubToken) Marshal

func (m *SubToken) Marshal() (dAtA []byte, err error)

func (*SubToken) MarshalTo

func (m *SubToken) MarshalTo(dAtA []byte) (int, error)

func (*SubToken) MarshalToSizedBuffer

func (m *SubToken) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SubToken) ProtoMessage

func (*SubToken) ProtoMessage()

func (*SubToken) Reset

func (m *SubToken) Reset()

func (*SubToken) Size

func (m *SubToken) Size() (n int)

func (*SubToken) String

func (m *SubToken) String() string

func (*SubToken) Unmarshal

func (m *SubToken) Unmarshal(dAtA []byte) error

func (*SubToken) Validate added in v0.0.8

func (st *SubToken) Validate() error

func (*SubToken) XXX_DiscardUnknown

func (m *SubToken) XXX_DiscardUnknown()

func (*SubToken) XXX_Marshal

func (m *SubToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubToken) XXX_Merge

func (m *SubToken) XXX_Merge(src proto.Message)

func (*SubToken) XXX_Size

func (m *SubToken) XXX_Size() int

func (*SubToken) XXX_Unmarshal

func (m *SubToken) XXX_Unmarshal(b []byte) error

type SubTokens

type SubTokens = []*SubToken

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) Descriptor() ([]byte, []int)

func (*Token) Equal added in v0.0.8

func (this *Token) Equal(that interface{}) bool

func (*Token) Marshal added in v0.0.8

func (m *Token) Marshal() (dAtA []byte, err error)

func (*Token) MarshalTo added in v0.0.8

func (m *Token) MarshalTo(dAtA []byte) (int, error)

func (*Token) MarshalToSizedBuffer added in v0.0.8

func (m *Token) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Token) ProtoMessage added in v0.0.8

func (*Token) ProtoMessage()

func (*Token) Reset added in v0.0.8

func (m *Token) Reset()

func (*Token) Size added in v0.0.8

func (m *Token) Size() (n int)

func (*Token) String added in v0.0.8

func (m *Token) String() string

func (*Token) Unmarshal added in v0.0.8

func (m *Token) Unmarshal(dAtA []byte) error

func (*Token) Validate added in v0.0.8

func (t *Token) Validate() error

func (*Token) XXX_DiscardUnknown added in v0.0.8

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal added in v0.0.8

func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Token) XXX_Merge added in v0.0.8

func (m *Token) XXX_Merge(src proto.Message)

func (*Token) XXX_Size added in v0.0.8

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal added in v0.0.8

func (m *Token) XXX_Unmarshal(b []byte) error

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 Tokens added in v0.0.8

type Tokens = []*Token

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BurnToken added in v0.0.8

func (*UnimplementedMsgServer) MintToken added in v0.0.8

func (*UnimplementedMsgServer) SendToken added in v0.0.8

func (*UnimplementedMsgServer) UpdateReserve added in v0.0.8

func (*UnimplementedMsgServer) UpdateToken added in v0.0.8

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Collection added in v0.0.8

func (*UnimplementedQueryServer) Collections added in v0.0.8

func (*UnimplementedQueryServer) CollectionsByCreator added in v0.0.8

func (*UnimplementedQueryServer) SubToken added in v0.0.8

func (*UnimplementedQueryServer) Token added in v0.0.8

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL