types

package
v3.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 33 Imported by: 4

Documentation

Overview

Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021, CRO Protocol Labs ("Crypto.org") (licensed under the Apache License, Version 2.0)

Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021, CRO Protocol Labs ("Crypto.org") (licensed under the Apache License, Version 2.0)

Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021, CRO Protocol Labs ("Crypto.org") (licensed under the Apache License, Version 2.0)

Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021, CRO Protocol Labs ("Crypto.org") (licensed under the Apache License, Version 2.0)

Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021, CRO Protocol Labs ("Crypto.org") (licensed under the Apache License, Version 2.0)

Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021, CRO Protocol Labs ("Crypto.org") (licensed under the Apache License, Version 2.0)

Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021, CRO Protocol Labs ("Crypto.org") (licensed under the Apache License, Version 2.0)

Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021, CRO Protocol Labs ("Crypto.org") (licensed under the Apache License, Version 2.0)

Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021, CRO Protocol Labs ("Crypto.org") (licensed under the Apache License, Version 2.0)

Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021, CRO Protocol Labs ("Crypto.org") (licensed under the Apache License, Version 2.0)

Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021, CRO Protocol Labs ("Crypto.org") (licensed under the Apache License, Version 2.0)

Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021, CRO Protocol Labs ("Crypto.org") (licensed under the Apache License, Version 2.0)

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021, CRO Protocol Labs ("Crypto.org") (licensed under the Apache License, Version 2.0)

Index

Constants

View Source
const (
	// ModuleName is the name of the module
	ModuleName = "nft"

	// StoreKey is the default store key for NFT
	StoreKey = ModuleName

	// QuerierRoute is the querier route for the NFT store.
	QuerierRoute = ModuleName

	// RouterKey is the message route for the NFT module
	RouterKey = ModuleName
)
View Source
const (
	TypeMsgIssueDenom  = "issue_denom"
	TypeMsgTransferNFT = "transfer_nft"
	TypeMsgEditNFT     = "edit_nft"
	TypeMsgMintNFT     = "mint_nft"
	TypeMsgBurnNFT     = "burn_nft"
)

constant used to indicate that some field should not be updated

View Source
const (
	QuerySupply      = "supply"
	QueryOwner       = "owner"
	QueryCollection  = "collection"
	QueryDenoms      = "denoms"
	QueryDenom       = "denom"
	QueryDenomByName = "denom-by-name"
	QueryNFT         = "nft"
)

query endpoints supported by the NFT Querier

View Source
const (
	DoNotModify = "[do-not-modify]"
	MinDenomLen = 3
	MaxDenomLen = 64

	MaxTokenURILen = 256
)

Variables

View Source
var (
	ErrInvalidCollection = sdkerrors.Register(ModuleName, 2, "invalid nft collection")
	ErrUnknownCollection = sdkerrors.Register(ModuleName, 3, "unknown nft collection")
	ErrInvalidNFT        = sdkerrors.Register(ModuleName, 4, "invalid nft")
	ErrNFTAlreadyExists  = sdkerrors.Register(ModuleName, 5, "nft already exists")
	ErrUnknownNFT        = sdkerrors.Register(ModuleName, 6, "unknown nft")
	ErrEmptyTokenData    = sdkerrors.Register(ModuleName, 7, "nft data can't be empty")
	ErrUnauthorized      = sdkerrors.Register(ModuleName, 8, "unauthorized address")
	ErrInvalidDenom      = sdkerrors.Register(ModuleName, 9, "invalid denom")
	ErrInvalidTokenID    = sdkerrors.Register(ModuleName, 10, "invalid nft id")
	ErrInvalidTokenURI   = sdkerrors.Register(ModuleName, 11, "invalid nft uri")
	ErrInvalidDenomName  = sdkerrors.Register(ModuleName, 12, "invalid denom name")
)
View Source
var (
	EventTypeIssueDenom = "issue_denom"
	EventTypeTransfer   = "transfer_nft"
	EventTypeEditNFT    = "edit_nft"
	EventTypeMintNFT    = "mint_nft"
	EventTypeBurnNFT    = "burn_nft"

	AttributeValueCategory = ModuleName

	AttributeKeySender    = "sender"
	AttributeKeyCreator   = "creator"
	AttributeKeyRecipient = "recipient"
	AttributeKeyOwner     = "owner"
	AttributeKeyTokenID   = "token_id"
	AttributeKeyTokenURI  = "token_uri"
	AttributeKeyDenomID   = "denom_id"
	AttributeKeyDenomName = "denom_name"
)

NFT module event types

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 (
	PrefixNFT        = []byte{0x01}
	PrefixOwners     = []byte{0x02} // key for a owner
	PrefixCollection = []byte{0x03} // key for balance of NFTs held by the denom
	PrefixDenom      = []byte{0x04} // key for denom of the nft
	PrefixDenomName  = []byte{0x05} // key for denom name of the nft

)
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 (
	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")
)
View Source
var (
	// IsAlphaNumeric only accepts [a-z0-9]
	IsAlphaNumeric = regexp.MustCompile(`^[a-z0-9]+$`).MatchString
	// IsBeginWithAlpha only begin with [a-z]
	IsBeginWithAlpha = regexp.MustCompile(`^[a-z].*`).MatchString
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func KeyCollection

func KeyCollection(denomID string) []byte

KeyCollection gets the storeKey by the collection

func KeyDenomID

func KeyDenomID(id string) []byte

KeyDenomID gets the storeKey by the denom id

func KeyDenomName

func KeyDenomName(name string) []byte

KeyDenomName gets the storeKey by the denom name

func KeyNFT

func KeyNFT(denomID, tokenID string) []byte

KeyNFT gets the key of nft stored by an denom and id

func KeyOwner

func KeyOwner(address sdk.AccAddress, denomID, tokenID string) []byte

KeyOwner gets the key of a collection owned by an account address

func Modified

func Modified(target string) bool

Modified returns whether the field is modified

func MustMarshalSupply

func MustMarshalSupply(cdc codec.Codec, supply uint64) []byte

return supply protobuf code

func MustMarshalTokenID

func MustMarshalTokenID(cdc codec.Codec, tokenID string) []byte

return the tokenID protobuf code

func MustUnMarshalSupply

func MustUnMarshalSupply(cdc codec.Codec, value []byte) uint64

return th supply

func MustUnMarshalTokenID

func MustUnMarshalTokenID(cdc codec.Codec, value []byte) string

return th tokenID

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec concrete types on codec (Amino is still needed for Ledger at the moment) nolint: staticcheck

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 SplitKeyDenom

func SplitKeyDenom(key []byte) (denomID, tokenID string, err error)

func SplitKeyOwner

func SplitKeyOwner(key []byte) (address sdk.AccAddress, denomID, tokenID string, err error)

SplitKeyOwner return the address,denom,id from the key of stored owner

func ValidateDenomID

func ValidateDenomID(denomID string) error

ValidateDenomID verifies whether the parameters are legal

func ValidateDenomName

func ValidateDenomName(denomName string) error

ValidateDenomName verifies whether the parameters are legal

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis performs basic validation of nfts genesis data returning an error for any failed validation criteria.

func ValidateTokenID

func ValidateTokenID(tokenID string) error

ValidateTokenID verify that the tokenID is legal

func ValidateTokenURI

func ValidateTokenURI(tokenURI string) error

ValidateTokenURI verify that the tokenURI is legal

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}

AccountKeeper defines the expected account keeper for query account

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type BaseNFT

type BaseNFT struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	URI   string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
	Data  string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
}

BaseNFT defines a non-fungible token

func NewBaseNFT

func NewBaseNFT(id, name string, owner sdk.AccAddress, uri, data string) BaseNFT

NewBaseNFT creates a new NFT instance

func (*BaseNFT) Descriptor

func (*BaseNFT) Descriptor() ([]byte, []int)

func (*BaseNFT) Equal

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

func (BaseNFT) GetData

func (bnft BaseNFT) GetData() string

GetData return the Data of BaseNFT

func (BaseNFT) GetID

func (bnft BaseNFT) GetID() string

GetID return the id of BaseNFT

func (BaseNFT) GetName

func (bnft BaseNFT) GetName() string

GetName return the name of BaseNFT

func (BaseNFT) GetOwner

func (bnft BaseNFT) GetOwner() sdk.AccAddress

GetOwner return the owner of BaseNFT

func (BaseNFT) GetURI

func (bnft BaseNFT) GetURI() string

GetURI return the URI of BaseNFT

func (*BaseNFT) Marshal

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

func (*BaseNFT) MarshalTo

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

func (*BaseNFT) MarshalToSizedBuffer

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

func (*BaseNFT) ProtoMessage

func (*BaseNFT) ProtoMessage()

func (*BaseNFT) Reset

func (m *BaseNFT) Reset()

func (*BaseNFT) Size

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

func (*BaseNFT) String

func (m *BaseNFT) String() string

func (*BaseNFT) Unmarshal

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

func (*BaseNFT) XXX_DiscardUnknown

func (m *BaseNFT) XXX_DiscardUnknown()

func (*BaseNFT) XXX_Marshal

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

func (*BaseNFT) XXX_Merge

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

func (*BaseNFT) XXX_Size

func (m *BaseNFT) XXX_Size() int

func (*BaseNFT) XXX_Unmarshal

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

type Collection

type Collection struct {
	Denom Denom     `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom"`
	NFTs  []BaseNFT `protobuf:"bytes,2,rep,name=nfts,proto3" json:"nfts"`
}

Collection defines a type of collection

func NewCollection

func NewCollection(denom Denom, nfts []exported.NFT) (c Collection)

NewCollection creates a new NFT Collection

func NewCollections

func NewCollections(c ...Collection) []Collection

NewCollection creates a new NFT Collection

func (Collection) AddNFT

func (c Collection) AddNFT(nft BaseNFT) Collection

AddNFT adds an NFT to the collection

func (*Collection) Descriptor

func (*Collection) Descriptor() ([]byte, []int)

func (*Collection) Equal

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

func (c Collection) Supply() int

func (*Collection) Unmarshal

func (m *Collection) Unmarshal(dAtA []byte) 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 Denom

type Denom struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Schema  string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"`
	Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"`
}

Denom defines a type of NFT

func NewDenom

func NewDenom(id, name, schema string, creator sdk.AccAddress) Denom

NewDenom return a new denom

func (*Denom) Descriptor

func (*Denom) Descriptor() ([]byte, []int)

func (*Denom) Equal

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

func (*Denom) Marshal

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

func (*Denom) MarshalTo

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

func (*Denom) MarshalToSizedBuffer

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

func (*Denom) ProtoMessage

func (*Denom) ProtoMessage()

func (*Denom) Reset

func (m *Denom) Reset()

func (*Denom) Size

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

func (*Denom) String

func (m *Denom) String() string

func (*Denom) Unmarshal

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

func (*Denom) XXX_DiscardUnknown

func (m *Denom) XXX_DiscardUnknown()

func (*Denom) XXX_Marshal

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

func (*Denom) XXX_Merge

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

func (*Denom) XXX_Size

func (m *Denom) XXX_Size() int

func (*Denom) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Collections []Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections"`
}

GenesisState defines the NFT module's genesis state

func NewGenesisState

func NewGenesisState(collections []Collection) *GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetCollections

func (m *GenesisState) GetCollections() []Collection

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

type IDCollection struct {
	DenomId  string   `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty" yaml:"denom_id"`
	TokenIds []string `protobuf:"bytes,2,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty" yaml:"token_ids"`
}

IDCollection defines a type of collection with specified ID

func NewIDCollection

func NewIDCollection(denomID string, tokenIDs []string) IDCollection

NewIDCollection creates a new IDCollection instance

func (IDCollection) AddID

func (idc IDCollection) AddID(tokenID string) IDCollection

AddID adds an tokenID to the idCollection

func (*IDCollection) Descriptor

func (*IDCollection) Descriptor() ([]byte, []int)

func (*IDCollection) Equal

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

func (*IDCollection) Marshal

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

func (*IDCollection) MarshalTo

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

func (*IDCollection) MarshalToSizedBuffer

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

func (*IDCollection) ProtoMessage

func (*IDCollection) ProtoMessage()

func (*IDCollection) Reset

func (m *IDCollection) Reset()

func (*IDCollection) Size

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

func (*IDCollection) String

func (m *IDCollection) String() string

func (IDCollection) Supply

func (idc IDCollection) Supply() int

Supply return the amount of the denom

func (*IDCollection) Unmarshal

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

func (*IDCollection) XXX_DiscardUnknown

func (m *IDCollection) XXX_DiscardUnknown()

func (*IDCollection) XXX_Marshal

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

func (*IDCollection) XXX_Merge

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

func (*IDCollection) XXX_Size

func (m *IDCollection) XXX_Size() int

func (*IDCollection) XXX_Unmarshal

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

type IDCollections

type IDCollections []IDCollection

---------------------------------------------------------------------------- IDCollections is an array of ID Collections

func (IDCollections) Add

func (idcs IDCollections) Add(denomID, tokenID string) IDCollections

Add adds an ID to the idCollection

func (IDCollections) String

func (idcs IDCollections) String() string

String follows stringer interface

type MsgBurnNFT

type MsgBurnNFT struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DenomId string `protobuf:"bytes,2,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty" yaml:"denom_id"`
	Sender  string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgBurnNFT defines an SDK message for burning a NFT.

func NewMsgBurnNFT

func NewMsgBurnNFT(sender, tokenID, denomID string) *MsgBurnNFT

NewMsgBurnNFT is a constructor function for MsgBurnNFT

func (*MsgBurnNFT) Descriptor

func (*MsgBurnNFT) Descriptor() ([]byte, []int)

func (*MsgBurnNFT) Equal

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

func (MsgBurnNFT) GetSignBytes

func (msg MsgBurnNFT) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgBurnNFT) GetSigners

func (msg MsgBurnNFT) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgBurnNFT) Marshal

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

func (*MsgBurnNFT) MarshalTo

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

func (*MsgBurnNFT) MarshalToSizedBuffer

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

func (*MsgBurnNFT) ProtoMessage

func (*MsgBurnNFT) ProtoMessage()

func (*MsgBurnNFT) Reset

func (m *MsgBurnNFT) Reset()

func (MsgBurnNFT) Route

func (msg MsgBurnNFT) Route() string

Route Implements Msg

func (*MsgBurnNFT) Size

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

func (*MsgBurnNFT) String

func (m *MsgBurnNFT) String() string

func (MsgBurnNFT) Type

func (msg MsgBurnNFT) Type() string

Type Implements Msg

func (*MsgBurnNFT) Unmarshal

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

func (MsgBurnNFT) ValidateBasic

func (msg MsgBurnNFT) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgBurnNFT) XXX_DiscardUnknown

func (m *MsgBurnNFT) XXX_DiscardUnknown()

func (*MsgBurnNFT) XXX_Marshal

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

func (*MsgBurnNFT) XXX_Merge

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

func (*MsgBurnNFT) XXX_Size

func (m *MsgBurnNFT) XXX_Size() int

func (*MsgBurnNFT) XXX_Unmarshal

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

type MsgBurnNFTResponse

type MsgBurnNFTResponse struct {
}

MsgBurnNFTResponse defines the Msg/BurnNFT response type.

func (*MsgBurnNFTResponse) Descriptor

func (*MsgBurnNFTResponse) Descriptor() ([]byte, []int)

func (*MsgBurnNFTResponse) Marshal

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

func (*MsgBurnNFTResponse) MarshalTo

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

func (*MsgBurnNFTResponse) MarshalToSizedBuffer

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

func (*MsgBurnNFTResponse) ProtoMessage

func (*MsgBurnNFTResponse) ProtoMessage()

func (*MsgBurnNFTResponse) Reset

func (m *MsgBurnNFTResponse) Reset()

func (*MsgBurnNFTResponse) Size

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

func (*MsgBurnNFTResponse) String

func (m *MsgBurnNFTResponse) String() string

func (*MsgBurnNFTResponse) Unmarshal

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

func (*MsgBurnNFTResponse) XXX_DiscardUnknown

func (m *MsgBurnNFTResponse) XXX_DiscardUnknown()

func (*MsgBurnNFTResponse) XXX_Marshal

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

func (*MsgBurnNFTResponse) XXX_Merge

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

func (*MsgBurnNFTResponse) XXX_Size

func (m *MsgBurnNFTResponse) XXX_Size() int

func (*MsgBurnNFTResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// IssueDenom defines a method for issue a denom.
	IssueDenom(ctx context.Context, in *MsgIssueDenom, opts ...grpc.CallOption) (*MsgIssueDenomResponse, error)
	// MintNFT defines a method for mint a new nft
	MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.CallOption) (*MsgMintNFTResponse, error)
	// EditNFT defines a method for editing a nft.
	EditNFT(ctx context.Context, in *MsgEditNFT, opts ...grpc.CallOption) (*MsgEditNFTResponse, error)
	// TransferNFT defines a method for transferring a nft.
	TransferNFT(ctx context.Context, in *MsgTransferNFT, opts ...grpc.CallOption) (*MsgTransferNFTResponse, error)
	// BurnNFT defines a method for burning a nft.
	BurnNFT(ctx context.Context, in *MsgBurnNFT, opts ...grpc.CallOption) (*MsgBurnNFTResponse, 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 MsgEditNFT

type MsgEditNFT struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DenomId string `protobuf:"bytes,2,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty" yaml:"denom_id"`
	Name    string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	URI     string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"`
	Data    string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	Sender  string `protobuf:"bytes,6,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgEditNFT defines an SDK message for editing a nft.

func NewMsgEditNFT

func NewMsgEditNFT(
	tokenID, denomID, tokenName, tokenURI, tokenData, sender string,
) *MsgEditNFT

NewMsgEditNFT is a constructor function for MsgSetName

func (*MsgEditNFT) Descriptor

func (*MsgEditNFT) Descriptor() ([]byte, []int)

func (*MsgEditNFT) Equal

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

func (MsgEditNFT) GetSignBytes

func (msg MsgEditNFT) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgEditNFT) GetSigners

func (msg MsgEditNFT) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgEditNFT) Marshal

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

func (*MsgEditNFT) MarshalTo

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

func (*MsgEditNFT) MarshalToSizedBuffer

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

func (*MsgEditNFT) ProtoMessage

func (*MsgEditNFT) ProtoMessage()

func (*MsgEditNFT) Reset

func (m *MsgEditNFT) Reset()

func (MsgEditNFT) Route

func (msg MsgEditNFT) Route() string

Route Implements Msg

func (*MsgEditNFT) Size

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

func (*MsgEditNFT) String

func (m *MsgEditNFT) String() string

func (MsgEditNFT) Type

func (msg MsgEditNFT) Type() string

Type Implements Msg

func (*MsgEditNFT) Unmarshal

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

func (MsgEditNFT) ValidateBasic

func (msg MsgEditNFT) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgEditNFT) XXX_DiscardUnknown

func (m *MsgEditNFT) XXX_DiscardUnknown()

func (*MsgEditNFT) XXX_Marshal

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

func (*MsgEditNFT) XXX_Merge

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

func (*MsgEditNFT) XXX_Size

func (m *MsgEditNFT) XXX_Size() int

func (*MsgEditNFT) XXX_Unmarshal

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

type MsgEditNFTResponse

type MsgEditNFTResponse struct {
}

MsgEditNFTResponse defines the Msg/EditNFT response type.

func (*MsgEditNFTResponse) Descriptor

func (*MsgEditNFTResponse) Descriptor() ([]byte, []int)

func (*MsgEditNFTResponse) Marshal

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

func (*MsgEditNFTResponse) MarshalTo

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

func (*MsgEditNFTResponse) MarshalToSizedBuffer

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

func (*MsgEditNFTResponse) ProtoMessage

func (*MsgEditNFTResponse) ProtoMessage()

func (*MsgEditNFTResponse) Reset

func (m *MsgEditNFTResponse) Reset()

func (*MsgEditNFTResponse) Size

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

func (*MsgEditNFTResponse) String

func (m *MsgEditNFTResponse) String() string

func (*MsgEditNFTResponse) Unmarshal

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

func (*MsgEditNFTResponse) XXX_DiscardUnknown

func (m *MsgEditNFTResponse) XXX_DiscardUnknown()

func (*MsgEditNFTResponse) XXX_Marshal

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

func (*MsgEditNFTResponse) XXX_Merge

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

func (*MsgEditNFTResponse) XXX_Size

func (m *MsgEditNFTResponse) XXX_Size() int

func (*MsgEditNFTResponse) XXX_Unmarshal

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

type MsgIssueDenom

type MsgIssueDenom struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Schema string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"`
	Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgIssueDenom defines an SDK message for creating a new denom.

func NewMsgIssueDenom

func NewMsgIssueDenom(denomID, denomName, schema, sender string) *MsgIssueDenom

NewMsgIssueDenom is a constructor function for MsgSetName

func (*MsgIssueDenom) Descriptor

func (*MsgIssueDenom) Descriptor() ([]byte, []int)

func (*MsgIssueDenom) Equal

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

func (MsgIssueDenom) GetSignBytes

func (msg MsgIssueDenom) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgIssueDenom) GetSigners

func (msg MsgIssueDenom) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgIssueDenom) Marshal

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

func (*MsgIssueDenom) MarshalTo

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

func (*MsgIssueDenom) MarshalToSizedBuffer

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

func (*MsgIssueDenom) ProtoMessage

func (*MsgIssueDenom) ProtoMessage()

func (*MsgIssueDenom) Reset

func (m *MsgIssueDenom) Reset()

func (MsgIssueDenom) Route

func (msg MsgIssueDenom) Route() string

Route Implements Msg

func (*MsgIssueDenom) Size

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

func (*MsgIssueDenom) String

func (m *MsgIssueDenom) String() string

func (MsgIssueDenom) Type

func (msg MsgIssueDenom) Type() string

Type Implements Msg

func (*MsgIssueDenom) Unmarshal

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

func (MsgIssueDenom) ValidateBasic

func (msg MsgIssueDenom) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgIssueDenom) XXX_DiscardUnknown

func (m *MsgIssueDenom) XXX_DiscardUnknown()

func (*MsgIssueDenom) XXX_Marshal

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

func (*MsgIssueDenom) XXX_Merge

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

func (*MsgIssueDenom) XXX_Size

func (m *MsgIssueDenom) XXX_Size() int

func (*MsgIssueDenom) XXX_Unmarshal

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

type MsgIssueDenomResponse

type MsgIssueDenomResponse struct {
}

MsgIssueDenomResponse defines the Msg/IssueDenom response type.

func (*MsgIssueDenomResponse) Descriptor

func (*MsgIssueDenomResponse) Descriptor() ([]byte, []int)

func (*MsgIssueDenomResponse) Marshal

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

func (*MsgIssueDenomResponse) MarshalTo

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

func (*MsgIssueDenomResponse) MarshalToSizedBuffer

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

func (*MsgIssueDenomResponse) ProtoMessage

func (*MsgIssueDenomResponse) ProtoMessage()

func (*MsgIssueDenomResponse) Reset

func (m *MsgIssueDenomResponse) Reset()

func (*MsgIssueDenomResponse) Size

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

func (*MsgIssueDenomResponse) String

func (m *MsgIssueDenomResponse) String() string

func (*MsgIssueDenomResponse) Unmarshal

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

func (*MsgIssueDenomResponse) XXX_DiscardUnknown

func (m *MsgIssueDenomResponse) XXX_DiscardUnknown()

func (*MsgIssueDenomResponse) XXX_Marshal

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

func (*MsgIssueDenomResponse) XXX_Merge

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

func (*MsgIssueDenomResponse) XXX_Size

func (m *MsgIssueDenomResponse) XXX_Size() int

func (*MsgIssueDenomResponse) XXX_Unmarshal

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

type MsgMintNFT

type MsgMintNFT struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DenomId   string `protobuf:"bytes,2,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty" yaml:"denom_id"`
	Name      string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	URI       string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"`
	Data      string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	Sender    string `protobuf:"bytes,6,opt,name=sender,proto3" json:"sender,omitempty"`
	Recipient string `protobuf:"bytes,7,opt,name=recipient,proto3" json:"recipient,omitempty"`
}

MsgMintNFT defines an SDK message for creating a new NFT.

func NewMsgMintNFT

func NewMsgMintNFT(
	tokenID, denomID, tokenName, tokenURI, tokenData, sender, recipient string,
) *MsgMintNFT

NewMsgMintNFT is a constructor function for MsgMintNFT

func (*MsgMintNFT) Descriptor

func (*MsgMintNFT) Descriptor() ([]byte, []int)

func (*MsgMintNFT) Equal

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

func (MsgMintNFT) GetSignBytes

func (msg MsgMintNFT) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgMintNFT) GetSigners

func (msg MsgMintNFT) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgMintNFT) Marshal

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

func (*MsgMintNFT) MarshalTo

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

func (*MsgMintNFT) MarshalToSizedBuffer

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

func (*MsgMintNFT) ProtoMessage

func (*MsgMintNFT) ProtoMessage()

func (*MsgMintNFT) Reset

func (m *MsgMintNFT) Reset()

func (MsgMintNFT) Route

func (msg MsgMintNFT) Route() string

Route Implements Msg

func (*MsgMintNFT) Size

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

func (*MsgMintNFT) String

func (m *MsgMintNFT) String() string

func (MsgMintNFT) Type

func (msg MsgMintNFT) Type() string

Type Implements Msg

func (*MsgMintNFT) Unmarshal

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

func (MsgMintNFT) ValidateBasic

func (msg MsgMintNFT) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgMintNFT) XXX_DiscardUnknown

func (m *MsgMintNFT) XXX_DiscardUnknown()

func (*MsgMintNFT) XXX_Marshal

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

func (*MsgMintNFT) XXX_Merge

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

func (*MsgMintNFT) XXX_Size

func (m *MsgMintNFT) XXX_Size() int

func (*MsgMintNFT) XXX_Unmarshal

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

type MsgMintNFTResponse

type MsgMintNFTResponse struct {
}

MsgMintNFTResponse defines the Msg/MintNFT response type.

func (*MsgMintNFTResponse) Descriptor

func (*MsgMintNFTResponse) Descriptor() ([]byte, []int)

func (*MsgMintNFTResponse) Marshal

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

func (*MsgMintNFTResponse) MarshalTo

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

func (*MsgMintNFTResponse) MarshalToSizedBuffer

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

func (*MsgMintNFTResponse) ProtoMessage

func (*MsgMintNFTResponse) ProtoMessage()

func (*MsgMintNFTResponse) Reset

func (m *MsgMintNFTResponse) Reset()

func (*MsgMintNFTResponse) Size

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

func (*MsgMintNFTResponse) String

func (m *MsgMintNFTResponse) String() string

func (*MsgMintNFTResponse) Unmarshal

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

func (*MsgMintNFTResponse) XXX_DiscardUnknown

func (m *MsgMintNFTResponse) XXX_DiscardUnknown()

func (*MsgMintNFTResponse) XXX_Marshal

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

func (*MsgMintNFTResponse) XXX_Merge

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

func (*MsgMintNFTResponse) XXX_Size

func (m *MsgMintNFTResponse) XXX_Size() int

func (*MsgMintNFTResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// IssueDenom defines a method for issue a denom.
	IssueDenom(context.Context, *MsgIssueDenom) (*MsgIssueDenomResponse, error)
	// MintNFT defines a method for mint a new nft
	MintNFT(context.Context, *MsgMintNFT) (*MsgMintNFTResponse, error)
	// EditNFT defines a method for editing a nft.
	EditNFT(context.Context, *MsgEditNFT) (*MsgEditNFTResponse, error)
	// TransferNFT defines a method for transferring a nft.
	TransferNFT(context.Context, *MsgTransferNFT) (*MsgTransferNFTResponse, error)
	// BurnNFT defines a method for burning a nft.
	BurnNFT(context.Context, *MsgBurnNFT) (*MsgBurnNFTResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTransferNFT

type MsgTransferNFT struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DenomId   string `protobuf:"bytes,2,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty" yaml:"denom_id"`
	Sender    string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
	Recipient string `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"`
}

MsgTransferNFT defines an SDK message for transferring an NFT to recipient.

func NewMsgTransferNFT

func NewMsgTransferNFT(
	tokenID, denomID, sender, recipient string,
) *MsgTransferNFT

NewMsgTransferNFT is a constructor function for MsgSetName

func (*MsgTransferNFT) Descriptor

func (*MsgTransferNFT) Descriptor() ([]byte, []int)

func (*MsgTransferNFT) Equal

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

func (MsgTransferNFT) GetSignBytes

func (msg MsgTransferNFT) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgTransferNFT) GetSigners

func (msg MsgTransferNFT) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgTransferNFT) Marshal

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

func (*MsgTransferNFT) MarshalTo

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

func (*MsgTransferNFT) MarshalToSizedBuffer

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

func (*MsgTransferNFT) ProtoMessage

func (*MsgTransferNFT) ProtoMessage()

func (*MsgTransferNFT) Reset

func (m *MsgTransferNFT) Reset()

func (MsgTransferNFT) Route

func (msg MsgTransferNFT) Route() string

Route Implements Msg

func (*MsgTransferNFT) Size

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

func (*MsgTransferNFT) String

func (m *MsgTransferNFT) String() string

func (MsgTransferNFT) Type

func (msg MsgTransferNFT) Type() string

Type Implements Msg

func (*MsgTransferNFT) Unmarshal

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

func (MsgTransferNFT) ValidateBasic

func (msg MsgTransferNFT) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgTransferNFT) XXX_DiscardUnknown

func (m *MsgTransferNFT) XXX_DiscardUnknown()

func (*MsgTransferNFT) XXX_Marshal

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

func (*MsgTransferNFT) XXX_Merge

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

func (*MsgTransferNFT) XXX_Size

func (m *MsgTransferNFT) XXX_Size() int

func (*MsgTransferNFT) XXX_Unmarshal

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

type MsgTransferNFTResponse

type MsgTransferNFTResponse struct {
}

MsgTransferNFTResponse defines the Msg/TransferNFT response type.

func (*MsgTransferNFTResponse) Descriptor

func (*MsgTransferNFTResponse) Descriptor() ([]byte, []int)

func (*MsgTransferNFTResponse) Marshal

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

func (*MsgTransferNFTResponse) MarshalTo

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

func (*MsgTransferNFTResponse) MarshalToSizedBuffer

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

func (*MsgTransferNFTResponse) ProtoMessage

func (*MsgTransferNFTResponse) ProtoMessage()

func (*MsgTransferNFTResponse) Reset

func (m *MsgTransferNFTResponse) Reset()

func (*MsgTransferNFTResponse) Size

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

func (*MsgTransferNFTResponse) String

func (m *MsgTransferNFTResponse) String() string

func (*MsgTransferNFTResponse) Unmarshal

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

func (*MsgTransferNFTResponse) XXX_DiscardUnknown

func (m *MsgTransferNFTResponse) XXX_DiscardUnknown()

func (*MsgTransferNFTResponse) XXX_Marshal

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

func (*MsgTransferNFTResponse) XXX_Merge

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

func (*MsgTransferNFTResponse) XXX_Size

func (m *MsgTransferNFTResponse) XXX_Size() int

func (*MsgTransferNFTResponse) XXX_Unmarshal

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

type NFTs

type NFTs []exported.NFT

NFTs define a list of NFT

func NewNFTs

func NewNFTs(nfts ...exported.NFT) NFTs

NewNFTs creates a new set of NFTs

type Owner

type Owner struct {
	Address       string         `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	IDCollections []IDCollection `protobuf:"bytes,2,rep,name=id_collections,json=idCollections,proto3" json:"id_collections" yaml:"idcs"`
}

Owner defines a type of owner

func NewOwner

func NewOwner(owner sdk.AccAddress, idCollections ...IDCollection) Owner

NewOwner creates a new Owner

func (*Owner) Descriptor

func (*Owner) Descriptor() ([]byte, []int)

func (*Owner) Equal

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

func (*Owner) Marshal

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

func (*Owner) MarshalTo

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

func (*Owner) MarshalToSizedBuffer

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

func (*Owner) ProtoMessage

func (*Owner) ProtoMessage()

func (*Owner) Reset

func (m *Owner) Reset()

func (*Owner) Size

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

func (*Owner) String

func (m *Owner) String() string

func (*Owner) Unmarshal

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

func (*Owner) XXX_DiscardUnknown

func (m *Owner) XXX_DiscardUnknown()

func (*Owner) XXX_Marshal

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

func (*Owner) XXX_Merge

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

func (*Owner) XXX_Size

func (m *Owner) XXX_Size() int

func (*Owner) XXX_Unmarshal

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

type Owners

type Owners []Owner

func NewOwners

func NewOwners(owner ...Owner) Owners

NewOwner creates a new Owner

func (Owners) String

func (owners Owners) String() string

String follows stringer interface

type QueryClient

type QueryClient interface {
	// Supply queries the total supply of a given denom or owner
	Supply(ctx context.Context, in *QuerySupplyRequest, opts ...grpc.CallOption) (*QuerySupplyResponse, error)
	// Owner queries the NFTs of the specified owner
	Owner(ctx context.Context, in *QueryOwnerRequest, opts ...grpc.CallOption) (*QueryOwnerResponse, error)
	// Collection queries the NFTs of the specified denom
	Collection(ctx context.Context, in *QueryCollectionRequest, opts ...grpc.CallOption) (*QueryCollectionResponse, error)
	// Denom queries the definition of a given denom
	Denom(ctx context.Context, in *QueryDenomRequest, opts ...grpc.CallOption) (*QueryDenomResponse, error)
	// DenomByName queries the definition of a given denom by name
	DenomByName(ctx context.Context, in *QueryDenomByNameRequest, opts ...grpc.CallOption) (*QueryDenomByNameResponse, error)
	// Denoms queries all the denoms
	Denoms(ctx context.Context, in *QueryDenomsRequest, opts ...grpc.CallOption) (*QueryDenomsResponse, error)
	// NFT queries the NFT for the given denom and token ID
	NFT(ctx context.Context, in *QueryNFTRequest, opts ...grpc.CallOption) (*QueryNFTResponse, 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
}

QuerySupplyParams defines the params for queries:

func NewQueryCollectionParams

func NewQueryCollectionParams(denom string) QueryCollectionParams

NewQueryCollectionParams creates a new instance of QueryCollectionParams

type QueryCollectionRequest

type QueryCollectionRequest struct {
	DenomId string `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty" yaml:"denom_id"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryCollectionRequest is the request type for the Query/Collection RPC method

func (*QueryCollectionRequest) Descriptor

func (*QueryCollectionRequest) Descriptor() ([]byte, []int)

func (*QueryCollectionRequest) GetDenomId

func (m *QueryCollectionRequest) GetDenomId() string

func (*QueryCollectionRequest) GetPagination

func (m *QueryCollectionRequest) GetPagination() *query.PageRequest

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 *Collection         `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryCollectionResponse is the response type for the Query/Collection RPC method

func (*QueryCollectionResponse) Descriptor

func (*QueryCollectionResponse) Descriptor() ([]byte, []int)

func (*QueryCollectionResponse) GetCollection

func (m *QueryCollectionResponse) GetCollection() *Collection

func (*QueryCollectionResponse) GetPagination

func (m *QueryCollectionResponse) GetPagination() *query.PageResponse

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 QueryDenomByNameParams

type QueryDenomByNameParams struct {
	Name string
}

QueryDenomByNameParams defines the params for querying a denom by name

func NewQueryDenomByNameParams

func NewQueryDenomByNameParams(name string) QueryDenomByNameParams

NewQueryDenomByNameParams creates a new instance of QueryDenomByNameParams

type QueryDenomByNameRequest

type QueryDenomByNameRequest struct {
	DenomName string `protobuf:"bytes,1,opt,name=denom_name,json=denomName,proto3" json:"denom_name,omitempty" yaml:"denom_name"`
}

QueryDenomByNameRequest is the request type for the Query/DenomByName RPC method

func (*QueryDenomByNameRequest) Descriptor

func (*QueryDenomByNameRequest) Descriptor() ([]byte, []int)

func (*QueryDenomByNameRequest) GetDenomName

func (m *QueryDenomByNameRequest) GetDenomName() string

func (*QueryDenomByNameRequest) Marshal

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

func (*QueryDenomByNameRequest) MarshalTo

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

func (*QueryDenomByNameRequest) MarshalToSizedBuffer

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

func (*QueryDenomByNameRequest) ProtoMessage

func (*QueryDenomByNameRequest) ProtoMessage()

func (*QueryDenomByNameRequest) Reset

func (m *QueryDenomByNameRequest) Reset()

func (*QueryDenomByNameRequest) Size

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

func (*QueryDenomByNameRequest) String

func (m *QueryDenomByNameRequest) String() string

func (*QueryDenomByNameRequest) Unmarshal

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

func (*QueryDenomByNameRequest) XXX_DiscardUnknown

func (m *QueryDenomByNameRequest) XXX_DiscardUnknown()

func (*QueryDenomByNameRequest) XXX_Marshal

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

func (*QueryDenomByNameRequest) XXX_Merge

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

func (*QueryDenomByNameRequest) XXX_Size

func (m *QueryDenomByNameRequest) XXX_Size() int

func (*QueryDenomByNameRequest) XXX_Unmarshal

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

type QueryDenomByNameResponse

type QueryDenomByNameResponse struct {
	Denom *Denom `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

QueryDenomByNameResponse is the response type for the Query/DenomByName RPC method

func (*QueryDenomByNameResponse) Descriptor

func (*QueryDenomByNameResponse) Descriptor() ([]byte, []int)

func (*QueryDenomByNameResponse) GetDenom

func (m *QueryDenomByNameResponse) GetDenom() *Denom

func (*QueryDenomByNameResponse) Marshal

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

func (*QueryDenomByNameResponse) MarshalTo

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

func (*QueryDenomByNameResponse) MarshalToSizedBuffer

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

func (*QueryDenomByNameResponse) ProtoMessage

func (*QueryDenomByNameResponse) ProtoMessage()

func (*QueryDenomByNameResponse) Reset

func (m *QueryDenomByNameResponse) Reset()

func (*QueryDenomByNameResponse) Size

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

func (*QueryDenomByNameResponse) String

func (m *QueryDenomByNameResponse) String() string

func (*QueryDenomByNameResponse) Unmarshal

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

func (*QueryDenomByNameResponse) XXX_DiscardUnknown

func (m *QueryDenomByNameResponse) XXX_DiscardUnknown()

func (*QueryDenomByNameResponse) XXX_Marshal

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

func (*QueryDenomByNameResponse) XXX_Merge

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

func (*QueryDenomByNameResponse) XXX_Size

func (m *QueryDenomByNameResponse) XXX_Size() int

func (*QueryDenomByNameResponse) XXX_Unmarshal

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

type QueryDenomParams

type QueryDenomParams struct {
	ID string
}

QueryDenomParams defines the params for queries:

func NewQueryDenomParams

func NewQueryDenomParams(id string) QueryDenomParams

NewQueryDenomParams creates a new instance of QueryDenomParams

type QueryDenomRequest

type QueryDenomRequest struct {
	DenomId string `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty" yaml:"denom_id"`
}

QueryDenomRequest is the request type for the Query/Denom RPC method

func (*QueryDenomRequest) Descriptor

func (*QueryDenomRequest) Descriptor() ([]byte, []int)

func (*QueryDenomRequest) GetDenomId

func (m *QueryDenomRequest) GetDenomId() string

func (*QueryDenomRequest) Marshal

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

func (*QueryDenomRequest) MarshalTo

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

func (*QueryDenomRequest) MarshalToSizedBuffer

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

func (*QueryDenomRequest) ProtoMessage

func (*QueryDenomRequest) ProtoMessage()

func (*QueryDenomRequest) Reset

func (m *QueryDenomRequest) Reset()

func (*QueryDenomRequest) Size

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

func (*QueryDenomRequest) String

func (m *QueryDenomRequest) String() string

func (*QueryDenomRequest) Unmarshal

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

func (*QueryDenomRequest) XXX_DiscardUnknown

func (m *QueryDenomRequest) XXX_DiscardUnknown()

func (*QueryDenomRequest) XXX_Marshal

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

func (*QueryDenomRequest) XXX_Merge

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

func (*QueryDenomRequest) XXX_Size

func (m *QueryDenomRequest) XXX_Size() int

func (*QueryDenomRequest) XXX_Unmarshal

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

type QueryDenomResponse

type QueryDenomResponse struct {
	Denom *Denom `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

QueryDenomResponse is the response type for the Query/Denom RPC method

func (*QueryDenomResponse) Descriptor

func (*QueryDenomResponse) Descriptor() ([]byte, []int)

func (*QueryDenomResponse) GetDenom

func (m *QueryDenomResponse) GetDenom() *Denom

func (*QueryDenomResponse) Marshal

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

func (*QueryDenomResponse) MarshalTo

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

func (*QueryDenomResponse) MarshalToSizedBuffer

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

func (*QueryDenomResponse) ProtoMessage

func (*QueryDenomResponse) ProtoMessage()

func (*QueryDenomResponse) Reset

func (m *QueryDenomResponse) Reset()

func (*QueryDenomResponse) Size

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

func (*QueryDenomResponse) String

func (m *QueryDenomResponse) String() string

func (*QueryDenomResponse) Unmarshal

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

func (*QueryDenomResponse) XXX_DiscardUnknown

func (m *QueryDenomResponse) XXX_DiscardUnknown()

func (*QueryDenomResponse) XXX_Marshal

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

func (*QueryDenomResponse) XXX_Merge

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

func (*QueryDenomResponse) XXX_Size

func (m *QueryDenomResponse) XXX_Size() int

func (*QueryDenomResponse) XXX_Unmarshal

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

type QueryDenomsRequest

type QueryDenomsRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDenomsRequest is the request type for the Query/Denoms RPC method

func (*QueryDenomsRequest) Descriptor

func (*QueryDenomsRequest) Descriptor() ([]byte, []int)

func (*QueryDenomsRequest) GetPagination

func (m *QueryDenomsRequest) GetPagination() *query.PageRequest

func (*QueryDenomsRequest) Marshal

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

func (*QueryDenomsRequest) MarshalTo

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

func (*QueryDenomsRequest) MarshalToSizedBuffer

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

func (*QueryDenomsRequest) ProtoMessage

func (*QueryDenomsRequest) ProtoMessage()

func (*QueryDenomsRequest) Reset

func (m *QueryDenomsRequest) Reset()

func (*QueryDenomsRequest) Size

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

func (*QueryDenomsRequest) String

func (m *QueryDenomsRequest) String() string

func (*QueryDenomsRequest) Unmarshal

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

func (*QueryDenomsRequest) XXX_DiscardUnknown

func (m *QueryDenomsRequest) XXX_DiscardUnknown()

func (*QueryDenomsRequest) XXX_Marshal

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

func (*QueryDenomsRequest) XXX_Merge

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

func (*QueryDenomsRequest) XXX_Size

func (m *QueryDenomsRequest) XXX_Size() int

func (*QueryDenomsRequest) XXX_Unmarshal

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

type QueryDenomsResponse

type QueryDenomsResponse struct {
	Denoms     []Denom             `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDenomsResponse is the response type for the Query/Denoms RPC method

func (*QueryDenomsResponse) Descriptor

func (*QueryDenomsResponse) Descriptor() ([]byte, []int)

func (*QueryDenomsResponse) GetDenoms

func (m *QueryDenomsResponse) GetDenoms() []Denom

func (*QueryDenomsResponse) GetPagination

func (m *QueryDenomsResponse) GetPagination() *query.PageResponse

func (*QueryDenomsResponse) Marshal

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

func (*QueryDenomsResponse) MarshalTo

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

func (*QueryDenomsResponse) MarshalToSizedBuffer

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

func (*QueryDenomsResponse) ProtoMessage

func (*QueryDenomsResponse) ProtoMessage()

func (*QueryDenomsResponse) Reset

func (m *QueryDenomsResponse) Reset()

func (*QueryDenomsResponse) Size

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

func (*QueryDenomsResponse) String

func (m *QueryDenomsResponse) String() string

func (*QueryDenomsResponse) Unmarshal

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

func (*QueryDenomsResponse) XXX_DiscardUnknown

func (m *QueryDenomsResponse) XXX_DiscardUnknown()

func (*QueryDenomsResponse) XXX_Marshal

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

func (*QueryDenomsResponse) XXX_Merge

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

func (*QueryDenomsResponse) XXX_Size

func (m *QueryDenomsResponse) XXX_Size() int

func (*QueryDenomsResponse) XXX_Unmarshal

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

type QueryNFTParams

type QueryNFTParams struct {
	Denom   string
	TokenID string
}

QueryNFTParams params for query 'custom/nfts/nft'

func NewQueryNFTParams

func NewQueryNFTParams(denom, id string) QueryNFTParams

NewQueryNFTParams creates a new instance of QueryNFTParams

type QueryNFTRequest

type QueryNFTRequest struct {
	DenomId string `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty" yaml:"denom_id"`
	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty" yaml:"token_id"`
}

QueryNFTRequest is the request type for the Query/NFT RPC method

func (*QueryNFTRequest) Descriptor

func (*QueryNFTRequest) Descriptor() ([]byte, []int)

func (*QueryNFTRequest) GetDenomId

func (m *QueryNFTRequest) GetDenomId() string

func (*QueryNFTRequest) GetTokenId

func (m *QueryNFTRequest) GetTokenId() string

func (*QueryNFTRequest) Marshal

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

func (*QueryNFTRequest) MarshalTo

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

func (*QueryNFTRequest) MarshalToSizedBuffer

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

func (*QueryNFTRequest) ProtoMessage

func (*QueryNFTRequest) ProtoMessage()

func (*QueryNFTRequest) Reset

func (m *QueryNFTRequest) Reset()

func (*QueryNFTRequest) Size

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

func (*QueryNFTRequest) String

func (m *QueryNFTRequest) String() string

func (*QueryNFTRequest) Unmarshal

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

func (*QueryNFTRequest) XXX_DiscardUnknown

func (m *QueryNFTRequest) XXX_DiscardUnknown()

func (*QueryNFTRequest) XXX_Marshal

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

func (*QueryNFTRequest) XXX_Merge

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

func (*QueryNFTRequest) XXX_Size

func (m *QueryNFTRequest) XXX_Size() int

func (*QueryNFTRequest) XXX_Unmarshal

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

type QueryNFTResponse

type QueryNFTResponse struct {
	NFT *BaseNFT `protobuf:"bytes,1,opt,name=nft,proto3" json:"nft,omitempty"`
}

QueryNFTResponse is the response type for the Query/NFT RPC method

func (*QueryNFTResponse) Descriptor

func (*QueryNFTResponse) Descriptor() ([]byte, []int)

func (*QueryNFTResponse) GetNFT

func (m *QueryNFTResponse) GetNFT() *BaseNFT

func (*QueryNFTResponse) Marshal

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

func (*QueryNFTResponse) MarshalTo

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

func (*QueryNFTResponse) MarshalToSizedBuffer

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

func (*QueryNFTResponse) ProtoMessage

func (*QueryNFTResponse) ProtoMessage()

func (*QueryNFTResponse) Reset

func (m *QueryNFTResponse) Reset()

func (*QueryNFTResponse) Size

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

func (*QueryNFTResponse) String

func (m *QueryNFTResponse) String() string

func (*QueryNFTResponse) Unmarshal

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

func (*QueryNFTResponse) XXX_DiscardUnknown

func (m *QueryNFTResponse) XXX_DiscardUnknown()

func (*QueryNFTResponse) XXX_Marshal

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

func (*QueryNFTResponse) XXX_Merge

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

func (*QueryNFTResponse) XXX_Size

func (m *QueryNFTResponse) XXX_Size() int

func (*QueryNFTResponse) XXX_Unmarshal

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

type QueryOwnerParams

type QueryOwnerParams struct {
	Denom string
	Owner sdk.AccAddress
}

QueryOwnerParams defines the params for queries:

func NewQueryOwnerParams

func NewQueryOwnerParams(denom string, owner sdk.AccAddress) QueryOwnerParams

NewQuerySupplyParams creates a new instance of QuerySupplyParams

type QueryOwnerRequest

type QueryOwnerRequest struct {
	DenomId string `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty" yaml:"denom_id"`
	Owner   string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOwnerRequest is the request type for the Query/Owner RPC method

func (*QueryOwnerRequest) Descriptor

func (*QueryOwnerRequest) Descriptor() ([]byte, []int)

func (*QueryOwnerRequest) GetDenomId

func (m *QueryOwnerRequest) GetDenomId() string

func (*QueryOwnerRequest) GetOwner

func (m *QueryOwnerRequest) GetOwner() string

func (*QueryOwnerRequest) GetPagination

func (m *QueryOwnerRequest) GetPagination() *query.PageRequest

func (*QueryOwnerRequest) Marshal

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

func (*QueryOwnerRequest) MarshalTo

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

func (*QueryOwnerRequest) MarshalToSizedBuffer

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

func (*QueryOwnerRequest) ProtoMessage

func (*QueryOwnerRequest) ProtoMessage()

func (*QueryOwnerRequest) Reset

func (m *QueryOwnerRequest) Reset()

func (*QueryOwnerRequest) Size

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

func (*QueryOwnerRequest) String

func (m *QueryOwnerRequest) String() string

func (*QueryOwnerRequest) Unmarshal

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

func (*QueryOwnerRequest) XXX_DiscardUnknown

func (m *QueryOwnerRequest) XXX_DiscardUnknown()

func (*QueryOwnerRequest) XXX_Marshal

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

func (*QueryOwnerRequest) XXX_Merge

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

func (*QueryOwnerRequest) XXX_Size

func (m *QueryOwnerRequest) XXX_Size() int

func (*QueryOwnerRequest) XXX_Unmarshal

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

type QueryOwnerResponse

type QueryOwnerResponse struct {
	Owner      *Owner              `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOwnerResponse is the response type for the Query/Owner RPC method

func (*QueryOwnerResponse) Descriptor

func (*QueryOwnerResponse) Descriptor() ([]byte, []int)

func (*QueryOwnerResponse) GetOwner

func (m *QueryOwnerResponse) GetOwner() *Owner

func (*QueryOwnerResponse) GetPagination

func (m *QueryOwnerResponse) GetPagination() *query.PageResponse

func (*QueryOwnerResponse) Marshal

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

func (*QueryOwnerResponse) MarshalTo

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

func (*QueryOwnerResponse) MarshalToSizedBuffer

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

func (*QueryOwnerResponse) ProtoMessage

func (*QueryOwnerResponse) ProtoMessage()

func (*QueryOwnerResponse) Reset

func (m *QueryOwnerResponse) Reset()

func (*QueryOwnerResponse) Size

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

func (*QueryOwnerResponse) String

func (m *QueryOwnerResponse) String() string

func (*QueryOwnerResponse) Unmarshal

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

func (*QueryOwnerResponse) XXX_DiscardUnknown

func (m *QueryOwnerResponse) XXX_DiscardUnknown()

func (*QueryOwnerResponse) XXX_Marshal

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

func (*QueryOwnerResponse) XXX_Merge

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

func (*QueryOwnerResponse) XXX_Size

func (m *QueryOwnerResponse) XXX_Size() int

func (*QueryOwnerResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Supply queries the total supply of a given denom or owner
	Supply(context.Context, *QuerySupplyRequest) (*QuerySupplyResponse, error)
	// Owner queries the NFTs of the specified owner
	Owner(context.Context, *QueryOwnerRequest) (*QueryOwnerResponse, error)
	// Collection queries the NFTs of the specified denom
	Collection(context.Context, *QueryCollectionRequest) (*QueryCollectionResponse, error)
	// Denom queries the definition of a given denom
	Denom(context.Context, *QueryDenomRequest) (*QueryDenomResponse, error)
	// DenomByName queries the definition of a given denom by name
	DenomByName(context.Context, *QueryDenomByNameRequest) (*QueryDenomByNameResponse, error)
	// Denoms queries all the denoms
	Denoms(context.Context, *QueryDenomsRequest) (*QueryDenomsResponse, error)
	// NFT queries the NFT for the given denom and token ID
	NFT(context.Context, *QueryNFTRequest) (*QueryNFTResponse, error)
}

QueryServer is the server API for Query service.

type QuerySupplyParams

type QuerySupplyParams struct {
	Denom string
	Owner sdk.AccAddress
}

QuerySupplyParams defines the params for queries:

func NewQuerySupplyParams

func NewQuerySupplyParams(denom string, owner sdk.AccAddress) QuerySupplyParams

NewQuerySupplyParams creates a new instance of QuerySupplyParams

func (QuerySupplyParams) Bytes

func (q QuerySupplyParams) Bytes() []byte

Bytes exports the Denom as bytes

type QuerySupplyRequest

type QuerySupplyRequest struct {
	DenomId string `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty" yaml:"denom_id"`
	Owner   string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
}

QuerySupplyRequest is the request type for the Query/HTLC RPC method

func (*QuerySupplyRequest) Descriptor

func (*QuerySupplyRequest) Descriptor() ([]byte, []int)

func (*QuerySupplyRequest) GetDenomId

func (m *QuerySupplyRequest) GetDenomId() string

func (*QuerySupplyRequest) GetOwner

func (m *QuerySupplyRequest) GetOwner() string

func (*QuerySupplyRequest) Marshal

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

func (*QuerySupplyRequest) MarshalTo

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

func (*QuerySupplyRequest) MarshalToSizedBuffer

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

func (*QuerySupplyRequest) ProtoMessage

func (*QuerySupplyRequest) ProtoMessage()

func (*QuerySupplyRequest) Reset

func (m *QuerySupplyRequest) Reset()

func (*QuerySupplyRequest) Size

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

func (*QuerySupplyRequest) String

func (m *QuerySupplyRequest) String() string

func (*QuerySupplyRequest) Unmarshal

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

func (*QuerySupplyRequest) XXX_DiscardUnknown

func (m *QuerySupplyRequest) XXX_DiscardUnknown()

func (*QuerySupplyRequest) XXX_Marshal

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

func (*QuerySupplyRequest) XXX_Merge

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

func (*QuerySupplyRequest) XXX_Size

func (m *QuerySupplyRequest) XXX_Size() int

func (*QuerySupplyRequest) XXX_Unmarshal

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

type QuerySupplyResponse

type QuerySupplyResponse struct {
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
}

QuerySupplyResponse is the response type for the Query/Supply RPC method

func (*QuerySupplyResponse) Descriptor

func (*QuerySupplyResponse) Descriptor() ([]byte, []int)

func (*QuerySupplyResponse) GetAmount

func (m *QuerySupplyResponse) GetAmount() uint64

func (*QuerySupplyResponse) Marshal

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

func (*QuerySupplyResponse) MarshalTo

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

func (*QuerySupplyResponse) MarshalToSizedBuffer

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

func (*QuerySupplyResponse) ProtoMessage

func (*QuerySupplyResponse) ProtoMessage()

func (*QuerySupplyResponse) Reset

func (m *QuerySupplyResponse) Reset()

func (*QuerySupplyResponse) Size

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

func (*QuerySupplyResponse) String

func (m *QuerySupplyResponse) String() string

func (*QuerySupplyResponse) Unmarshal

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

func (*QuerySupplyResponse) XXX_DiscardUnknown

func (m *QuerySupplyResponse) XXX_DiscardUnknown()

func (*QuerySupplyResponse) XXX_Marshal

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

func (*QuerySupplyResponse) XXX_Merge

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

func (*QuerySupplyResponse) XXX_Size

func (m *QuerySupplyResponse) XXX_Size() int

func (*QuerySupplyResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BurnNFT

func (*UnimplementedMsgServer) EditNFT

func (*UnimplementedMsgServer) IssueDenom

func (*UnimplementedMsgServer) MintNFT

func (*UnimplementedMsgServer) TransferNFT

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Collection

func (*UnimplementedQueryServer) Denom

func (*UnimplementedQueryServer) DenomByName

func (*UnimplementedQueryServer) Denoms

func (*UnimplementedQueryServer) NFT

func (*UnimplementedQueryServer) Owner

func (*UnimplementedQueryServer) Supply

Jump to

Keyboard shortcuts

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