Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetNftItemCount() uint64
- func (m *GenesisState) GetNftItemList() []*NftItem
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgBurn
- func (*MsgBurn) Descriptor() ([]byte, []int)
- func (m *MsgBurn) GetNftId() uint64
- func (m *MsgBurn) GetOwner() string
- func (msg *MsgBurn) GetSignBytes() []byte
- func (msg *MsgBurn) GetSigners() []sdk.AccAddress
- func (m *MsgBurn) Marshal() (dAtA []byte, err error)
- func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurn) ProtoMessage()
- func (m *MsgBurn) Reset()
- func (msg *MsgBurn) Route() string
- func (m *MsgBurn) Size() (n int)
- func (m *MsgBurn) String() string
- func (msg *MsgBurn) Type() string
- func (m *MsgBurn) Unmarshal(dAtA []byte) error
- func (msg *MsgBurn) ValidateBasic() error
- func (m *MsgBurn) XXX_DiscardUnknown()
- func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurn) XXX_Merge(src proto.Message)
- func (m *MsgBurn) XXX_Size() int
- func (m *MsgBurn) XXX_Unmarshal(b []byte) error
- type MsgBurnResponse
- func (*MsgBurnResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnResponse) GetResult() bool
- func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnResponse) ProtoMessage()
- func (m *MsgBurnResponse) Reset()
- func (m *MsgBurnResponse) Size() (n int)
- func (m *MsgBurnResponse) String() string
- func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnResponse) XXX_DiscardUnknown()
- func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnResponse) XXX_Size() int
- func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgMint
- func (*MsgMint) Descriptor() ([]byte, []int)
- func (m *MsgMint) GetOwner() string
- func (msg *MsgMint) GetSignBytes() []byte
- func (msg *MsgMint) GetSigners() []sdk.AccAddress
- func (m *MsgMint) GetTokenURI() string
- func (m *MsgMint) Marshal() (dAtA []byte, err error)
- func (m *MsgMint) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMint) ProtoMessage()
- func (m *MsgMint) Reset()
- func (msg *MsgMint) Route() string
- func (m *MsgMint) Size() (n int)
- func (m *MsgMint) String() string
- func (msg *MsgMint) Type() string
- func (m *MsgMint) Unmarshal(dAtA []byte) error
- func (msg *MsgMint) ValidateBasic() error
- func (m *MsgMint) XXX_DiscardUnknown()
- func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMint) XXX_Merge(src proto.Message)
- func (m *MsgMint) XXX_Size() int
- func (m *MsgMint) XXX_Unmarshal(b []byte) error
- type MsgMintResponse
- func (*MsgMintResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintResponse) GetNftId() uint64
- func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintResponse) ProtoMessage()
- func (m *MsgMintResponse) Reset()
- func (m *MsgMintResponse) Size() (n int)
- func (m *MsgMintResponse) String() string
- func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintResponse) XXX_DiscardUnknown()
- func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintResponse) XXX_Size() int
- func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgTransfer
- func (*MsgTransfer) Descriptor() ([]byte, []int)
- func (m *MsgTransfer) GetNftId() uint64
- func (m *MsgTransfer) GetOwner() string
- func (msg *MsgTransfer) GetSignBytes() []byte
- func (msg *MsgTransfer) GetSigners() []sdk.AccAddress
- func (m *MsgTransfer) GetToAddress() string
- func (m *MsgTransfer) Marshal() (dAtA []byte, err error)
- func (m *MsgTransfer) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransfer) ProtoMessage()
- func (m *MsgTransfer) Reset()
- func (msg *MsgTransfer) Route() string
- func (m *MsgTransfer) Size() (n int)
- func (m *MsgTransfer) String() string
- func (msg *MsgTransfer) Type() string
- func (m *MsgTransfer) Unmarshal(dAtA []byte) error
- func (msg *MsgTransfer) ValidateBasic() error
- func (m *MsgTransfer) XXX_DiscardUnknown()
- func (m *MsgTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransfer) XXX_Merge(src proto.Message)
- func (m *MsgTransfer) XXX_Size() int
- func (m *MsgTransfer) XXX_Unmarshal(b []byte) error
- type MsgTransferResponse
- func (*MsgTransferResponse) Descriptor() ([]byte, []int)
- func (m *MsgTransferResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferResponse) ProtoMessage()
- func (m *MsgTransferResponse) Reset()
- func (m *MsgTransferResponse) Size() (n int)
- func (m *MsgTransferResponse) String() string
- func (m *MsgTransferResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTransferResponse) XXX_DiscardUnknown()
- func (m *MsgTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferResponse) XXX_Merge(src proto.Message)
- func (m *MsgTransferResponse) XXX_Size() int
- func (m *MsgTransferResponse) XXX_Unmarshal(b []byte) error
- type NftItem
- func (*NftItem) Descriptor() ([]byte, []int)
- func (m *NftItem) GetId() uint64
- func (m *NftItem) GetOwner() string
- func (m *NftItem) GetTokenURI() string
- func (m *NftItem) Marshal() (dAtA []byte, err error)
- func (m *NftItem) MarshalTo(dAtA []byte) (int, error)
- func (m *NftItem) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NftItem) ProtoMessage()
- func (m *NftItem) Reset()
- func (m *NftItem) Size() (n int)
- func (m *NftItem) String() string
- func (m *NftItem) Unmarshal(dAtA []byte) error
- func (m *NftItem) XXX_DiscardUnknown()
- func (m *NftItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NftItem) XXX_Merge(src proto.Message)
- func (m *NftItem) XXX_Size() int
- func (m *NftItem) XXX_Unmarshal(b []byte) error
- type QueryAllNftItemRequest
- func (*QueryAllNftItemRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllNftItemRequest) GetPagination() *query.PageRequest
- func (m *QueryAllNftItemRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllNftItemRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllNftItemRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllNftItemRequest) ProtoMessage()
- func (m *QueryAllNftItemRequest) Reset()
- func (m *QueryAllNftItemRequest) Size() (n int)
- func (m *QueryAllNftItemRequest) String() string
- func (m *QueryAllNftItemRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllNftItemRequest) XXX_DiscardUnknown()
- func (m *QueryAllNftItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllNftItemRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllNftItemRequest) XXX_Size() int
- func (m *QueryAllNftItemRequest) XXX_Unmarshal(b []byte) error
- type QueryAllNftItemResponse
- func (*QueryAllNftItemResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllNftItemResponse) GetNftItem() []*NftItem
- func (m *QueryAllNftItemResponse) GetPagination() *query.PageResponse
- func (m *QueryAllNftItemResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllNftItemResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllNftItemResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllNftItemResponse) ProtoMessage()
- func (m *QueryAllNftItemResponse) Reset()
- func (m *QueryAllNftItemResponse) Size() (n int)
- func (m *QueryAllNftItemResponse) String() string
- func (m *QueryAllNftItemResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllNftItemResponse) XXX_DiscardUnknown()
- func (m *QueryAllNftItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllNftItemResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllNftItemResponse) XXX_Size() int
- func (m *QueryAllNftItemResponse) XXX_Unmarshal(b []byte) error
- type QueryBalanceOfRequest
- func (*QueryBalanceOfRequest) Descriptor() ([]byte, []int)
- func (m *QueryBalanceOfRequest) GetOwnerAddress() string
- func (m *QueryBalanceOfRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBalanceOfRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalanceOfRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalanceOfRequest) ProtoMessage()
- func (m *QueryBalanceOfRequest) Reset()
- func (m *QueryBalanceOfRequest) Size() (n int)
- func (m *QueryBalanceOfRequest) String() string
- func (m *QueryBalanceOfRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBalanceOfRequest) XXX_DiscardUnknown()
- func (m *QueryBalanceOfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalanceOfRequest) XXX_Merge(src proto.Message)
- func (m *QueryBalanceOfRequest) XXX_Size() int
- func (m *QueryBalanceOfRequest) XXX_Unmarshal(b []byte) error
- type QueryBalanceOfResponse
- func (*QueryBalanceOfResponse) Descriptor() ([]byte, []int)
- func (m *QueryBalanceOfResponse) GetTotal() uint64
- func (m *QueryBalanceOfResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBalanceOfResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalanceOfResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalanceOfResponse) ProtoMessage()
- func (m *QueryBalanceOfResponse) Reset()
- func (m *QueryBalanceOfResponse) Size() (n int)
- func (m *QueryBalanceOfResponse) String() string
- func (m *QueryBalanceOfResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBalanceOfResponse) XXX_DiscardUnknown()
- func (m *QueryBalanceOfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalanceOfResponse) XXX_Merge(src proto.Message)
- func (m *QueryBalanceOfResponse) XXX_Size() int
- func (m *QueryBalanceOfResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetNftItemRequest
- func (*QueryGetNftItemRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetNftItemRequest) GetId() uint64
- func (m *QueryGetNftItemRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetNftItemRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetNftItemRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetNftItemRequest) ProtoMessage()
- func (m *QueryGetNftItemRequest) Reset()
- func (m *QueryGetNftItemRequest) Size() (n int)
- func (m *QueryGetNftItemRequest) String() string
- func (m *QueryGetNftItemRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetNftItemRequest) XXX_DiscardUnknown()
- func (m *QueryGetNftItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetNftItemRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetNftItemRequest) XXX_Size() int
- func (m *QueryGetNftItemRequest) XXX_Unmarshal(b []byte) error
- type QueryGetNftItemResponse
- func (*QueryGetNftItemResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetNftItemResponse) GetNftItem() *NftItem
- func (m *QueryGetNftItemResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetNftItemResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetNftItemResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetNftItemResponse) ProtoMessage()
- func (m *QueryGetNftItemResponse) Reset()
- func (m *QueryGetNftItemResponse) Size() (n int)
- func (m *QueryGetNftItemResponse) String() string
- func (m *QueryGetNftItemResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetNftItemResponse) XXX_DiscardUnknown()
- func (m *QueryGetNftItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetNftItemResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetNftItemResponse) XXX_Size() int
- func (m *QueryGetNftItemResponse) XXX_Unmarshal(b []byte) error
- type QueryNftIdListOfOwnerRequest
- func (*QueryNftIdListOfOwnerRequest) Descriptor() ([]byte, []int)
- func (m *QueryNftIdListOfOwnerRequest) GetOwnerAddress() string
- func (m *QueryNftIdListOfOwnerRequest) GetPagination() *query.PageRequest
- func (m *QueryNftIdListOfOwnerRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryNftIdListOfOwnerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNftIdListOfOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNftIdListOfOwnerRequest) ProtoMessage()
- func (m *QueryNftIdListOfOwnerRequest) Reset()
- func (m *QueryNftIdListOfOwnerRequest) Size() (n int)
- func (m *QueryNftIdListOfOwnerRequest) String() string
- func (m *QueryNftIdListOfOwnerRequest) Unmarshal(dAtA []byte) error
- func (m *QueryNftIdListOfOwnerRequest) XXX_DiscardUnknown()
- func (m *QueryNftIdListOfOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNftIdListOfOwnerRequest) XXX_Merge(src proto.Message)
- func (m *QueryNftIdListOfOwnerRequest) XXX_Size() int
- func (m *QueryNftIdListOfOwnerRequest) XXX_Unmarshal(b []byte) error
- type QueryNftIdListOfOwnerResponse
- func (*QueryNftIdListOfOwnerResponse) Descriptor() ([]byte, []int)
- func (m *QueryNftIdListOfOwnerResponse) GetNftIdList() []uint64
- func (m *QueryNftIdListOfOwnerResponse) GetPagination() *query.PageResponse
- func (m *QueryNftIdListOfOwnerResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNftIdListOfOwnerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNftIdListOfOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNftIdListOfOwnerResponse) ProtoMessage()
- func (m *QueryNftIdListOfOwnerResponse) Reset()
- func (m *QueryNftIdListOfOwnerResponse) Size() (n int)
- func (m *QueryNftIdListOfOwnerResponse) String() string
- func (m *QueryNftIdListOfOwnerResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNftIdListOfOwnerResponse) XXX_DiscardUnknown()
- func (m *QueryNftIdListOfOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNftIdListOfOwnerResponse) XXX_Merge(src proto.Message)
- func (m *QueryNftIdListOfOwnerResponse) XXX_Size() int
- func (m *QueryNftIdListOfOwnerResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
- func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
- func (*UnimplementedMsgServer) Transfer(ctx context.Context, req *MsgTransfer) (*MsgTransferResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) BalanceOf(ctx context.Context, req *QueryBalanceOfRequest) (*QueryBalanceOfResponse, error)
- func (*UnimplementedQueryServer) NftIdListOfOwner(ctx context.Context, req *QueryNftIdListOfOwnerRequest) (*QueryNftIdListOfOwnerResponse, error)
- func (*UnimplementedQueryServer) NftItem(ctx context.Context, req *QueryGetNftItemRequest) (*QueryGetNftItemResponse, error)
- func (*UnimplementedQueryServer) NftItemAll(ctx context.Context, req *QueryAllNftItemRequest) (*QueryAllNftItemResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "nft" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_nft" )
const ( NftItemDataKey = "NftItemDataKey" NftItemTotalKey = "NftItemTotalKey" OwnerOfNftKey = "OwnerOfNftKey" OwnerOfNftTotalKey = "OwnerOfNftTotalKey" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthNftItem = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowNftItem = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupNftItem = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)
x/nft module sentinel errors
var (
ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct { NftItemList []*NftItem `protobuf:"bytes,1,rep,name=nftItemList,proto3" json:"nftItemList,omitempty"` NftItemCount uint64 `protobuf:"varint,2,opt,name=nftItemCount,proto3" json:"nftItemCount,omitempty"` }
GenesisState defines the nft module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetNftItemCount ¶
func (m *GenesisState) GetNftItemCount() uint64
func (*GenesisState) GetNftItemList ¶
func (m *GenesisState) GetNftItemList() []*NftItem
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgBurn ¶
type MsgBurn struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` NftId uint64 `protobuf:"varint,2,opt,name=nftId,proto3" json:"nftId,omitempty"` }
func NewMsgBurn ¶
func (*MsgBurn) Descriptor ¶
func (*MsgBurn) GetSignBytes ¶
func (*MsgBurn) GetSigners ¶
func (msg *MsgBurn) GetSigners() []sdk.AccAddress
func (*MsgBurn) MarshalToSizedBuffer ¶
func (*MsgBurn) ProtoMessage ¶
func (*MsgBurn) ProtoMessage()
func (*MsgBurn) ValidateBasic ¶
func (*MsgBurn) XXX_DiscardUnknown ¶
func (m *MsgBurn) XXX_DiscardUnknown()
func (*MsgBurn) XXX_Marshal ¶
func (*MsgBurn) XXX_Unmarshal ¶
type MsgBurnResponse ¶
type MsgBurnResponse struct {
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
}
func (*MsgBurnResponse) Descriptor ¶
func (*MsgBurnResponse) Descriptor() ([]byte, []int)
func (*MsgBurnResponse) GetResult ¶
func (m *MsgBurnResponse) GetResult() bool
func (*MsgBurnResponse) Marshal ¶
func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnResponse) MarshalToSizedBuffer ¶
func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnResponse) ProtoMessage ¶
func (*MsgBurnResponse) ProtoMessage()
func (*MsgBurnResponse) Reset ¶
func (m *MsgBurnResponse) Reset()
func (*MsgBurnResponse) Size ¶
func (m *MsgBurnResponse) Size() (n int)
func (*MsgBurnResponse) String ¶
func (m *MsgBurnResponse) String() string
func (*MsgBurnResponse) Unmarshal ¶
func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnResponse) XXX_DiscardUnknown ¶
func (m *MsgBurnResponse) XXX_DiscardUnknown()
func (*MsgBurnResponse) XXX_Marshal ¶
func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnResponse) XXX_Merge ¶
func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
func (*MsgBurnResponse) XXX_Size ¶
func (m *MsgBurnResponse) XXX_Size() int
func (*MsgBurnResponse) XXX_Unmarshal ¶
func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { Transfer(ctx context.Context, in *MsgTransfer, opts ...grpc.CallOption) (*MsgTransferResponse, error) Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error) Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, 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 MsgMint ¶
type MsgMint struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` TokenURI string `protobuf:"bytes,2,opt,name=tokenURI,proto3" json:"tokenURI,omitempty"` }
func NewMsgMint ¶
func (*MsgMint) Descriptor ¶
func (*MsgMint) GetSignBytes ¶
func (*MsgMint) GetSigners ¶
func (msg *MsgMint) GetSigners() []sdk.AccAddress
func (*MsgMint) GetTokenURI ¶
func (*MsgMint) MarshalToSizedBuffer ¶
func (*MsgMint) ProtoMessage ¶
func (*MsgMint) ProtoMessage()
func (*MsgMint) ValidateBasic ¶
func (*MsgMint) XXX_DiscardUnknown ¶
func (m *MsgMint) XXX_DiscardUnknown()
func (*MsgMint) XXX_Marshal ¶
func (*MsgMint) XXX_Unmarshal ¶
type MsgMintResponse ¶
type MsgMintResponse struct {
NftId uint64 `protobuf:"varint,1,opt,name=nftId,proto3" json:"nftId,omitempty"`
}
func (*MsgMintResponse) Descriptor ¶
func (*MsgMintResponse) Descriptor() ([]byte, []int)
func (*MsgMintResponse) GetNftId ¶
func (m *MsgMintResponse) GetNftId() uint64
func (*MsgMintResponse) Marshal ¶
func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintResponse) MarshalToSizedBuffer ¶
func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintResponse) ProtoMessage ¶
func (*MsgMintResponse) ProtoMessage()
func (*MsgMintResponse) Reset ¶
func (m *MsgMintResponse) Reset()
func (*MsgMintResponse) Size ¶
func (m *MsgMintResponse) Size() (n int)
func (*MsgMintResponse) String ¶
func (m *MsgMintResponse) String() string
func (*MsgMintResponse) Unmarshal ¶
func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
func (*MsgMintResponse) XXX_DiscardUnknown ¶
func (m *MsgMintResponse) XXX_DiscardUnknown()
func (*MsgMintResponse) XXX_Marshal ¶
func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintResponse) XXX_Merge ¶
func (m *MsgMintResponse) XXX_Merge(src proto.Message)
func (*MsgMintResponse) XXX_Size ¶
func (m *MsgMintResponse) XXX_Size() int
func (*MsgMintResponse) XXX_Unmarshal ¶
func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { Transfer(context.Context, *MsgTransfer) (*MsgTransferResponse, error) Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error) Mint(context.Context, *MsgMint) (*MsgMintResponse, error) }
MsgServer is the server API for Msg service.
type MsgTransfer ¶
type MsgTransfer struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` NftId uint64 `protobuf:"varint,2,opt,name=nftId,proto3" json:"nftId,omitempty"` ToAddress string `protobuf:"bytes,3,opt,name=toAddress,proto3" json:"toAddress,omitempty"` }
func NewMsgTransfer ¶
func NewMsgTransfer(owner string, nftId uint64, toAddress string) *MsgTransfer
func (*MsgTransfer) Descriptor ¶
func (*MsgTransfer) Descriptor() ([]byte, []int)
func (*MsgTransfer) GetNftId ¶
func (m *MsgTransfer) GetNftId() uint64
func (*MsgTransfer) GetOwner ¶
func (m *MsgTransfer) GetOwner() string
func (*MsgTransfer) GetSignBytes ¶
func (msg *MsgTransfer) GetSignBytes() []byte
func (*MsgTransfer) GetSigners ¶
func (msg *MsgTransfer) GetSigners() []sdk.AccAddress
func (*MsgTransfer) GetToAddress ¶
func (m *MsgTransfer) GetToAddress() string
func (*MsgTransfer) Marshal ¶
func (m *MsgTransfer) Marshal() (dAtA []byte, err error)
func (*MsgTransfer) MarshalToSizedBuffer ¶
func (m *MsgTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransfer) ProtoMessage ¶
func (*MsgTransfer) ProtoMessage()
func (*MsgTransfer) Reset ¶
func (m *MsgTransfer) Reset()
func (*MsgTransfer) Route ¶
func (msg *MsgTransfer) Route() string
func (*MsgTransfer) Size ¶
func (m *MsgTransfer) Size() (n int)
func (*MsgTransfer) String ¶
func (m *MsgTransfer) String() string
func (*MsgTransfer) Type ¶
func (msg *MsgTransfer) Type() string
func (*MsgTransfer) Unmarshal ¶
func (m *MsgTransfer) Unmarshal(dAtA []byte) error
func (*MsgTransfer) ValidateBasic ¶
func (msg *MsgTransfer) ValidateBasic() error
func (*MsgTransfer) XXX_DiscardUnknown ¶
func (m *MsgTransfer) XXX_DiscardUnknown()
func (*MsgTransfer) XXX_Marshal ¶
func (m *MsgTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransfer) XXX_Merge ¶
func (m *MsgTransfer) XXX_Merge(src proto.Message)
func (*MsgTransfer) XXX_Size ¶
func (m *MsgTransfer) XXX_Size() int
func (*MsgTransfer) XXX_Unmarshal ¶
func (m *MsgTransfer) XXX_Unmarshal(b []byte) error
type MsgTransferResponse ¶
type MsgTransferResponse struct { }
func (*MsgTransferResponse) Descriptor ¶
func (*MsgTransferResponse) Descriptor() ([]byte, []int)
func (*MsgTransferResponse) Marshal ¶
func (m *MsgTransferResponse) Marshal() (dAtA []byte, err error)
func (*MsgTransferResponse) MarshalTo ¶
func (m *MsgTransferResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferResponse) MarshalToSizedBuffer ¶
func (m *MsgTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferResponse) ProtoMessage ¶
func (*MsgTransferResponse) ProtoMessage()
func (*MsgTransferResponse) Reset ¶
func (m *MsgTransferResponse) Reset()
func (*MsgTransferResponse) Size ¶
func (m *MsgTransferResponse) Size() (n int)
func (*MsgTransferResponse) String ¶
func (m *MsgTransferResponse) String() string
func (*MsgTransferResponse) Unmarshal ¶
func (m *MsgTransferResponse) Unmarshal(dAtA []byte) error
func (*MsgTransferResponse) XXX_DiscardUnknown ¶
func (m *MsgTransferResponse) XXX_DiscardUnknown()
func (*MsgTransferResponse) XXX_Marshal ¶
func (m *MsgTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferResponse) XXX_Merge ¶
func (m *MsgTransferResponse) XXX_Merge(src proto.Message)
func (*MsgTransferResponse) XXX_Size ¶
func (m *MsgTransferResponse) XXX_Size() int
func (*MsgTransferResponse) XXX_Unmarshal ¶
func (m *MsgTransferResponse) XXX_Unmarshal(b []byte) error
type NftItem ¶
type NftItem struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` TokenURI string `protobuf:"bytes,3,opt,name=tokenURI,proto3" json:"tokenURI,omitempty"` }
func (*NftItem) Descriptor ¶
func (*NftItem) GetTokenURI ¶
func (*NftItem) MarshalToSizedBuffer ¶
func (*NftItem) ProtoMessage ¶
func (*NftItem) ProtoMessage()
func (*NftItem) XXX_DiscardUnknown ¶
func (m *NftItem) XXX_DiscardUnknown()
func (*NftItem) XXX_Marshal ¶
func (*NftItem) XXX_Unmarshal ¶
type QueryAllNftItemRequest ¶
type QueryAllNftItemRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllNftItemRequest) Descriptor ¶
func (*QueryAllNftItemRequest) Descriptor() ([]byte, []int)
func (*QueryAllNftItemRequest) GetPagination ¶
func (m *QueryAllNftItemRequest) GetPagination() *query.PageRequest
func (*QueryAllNftItemRequest) Marshal ¶
func (m *QueryAllNftItemRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllNftItemRequest) MarshalTo ¶
func (m *QueryAllNftItemRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllNftItemRequest) MarshalToSizedBuffer ¶
func (m *QueryAllNftItemRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllNftItemRequest) ProtoMessage ¶
func (*QueryAllNftItemRequest) ProtoMessage()
func (*QueryAllNftItemRequest) Reset ¶
func (m *QueryAllNftItemRequest) Reset()
func (*QueryAllNftItemRequest) Size ¶
func (m *QueryAllNftItemRequest) Size() (n int)
func (*QueryAllNftItemRequest) String ¶
func (m *QueryAllNftItemRequest) String() string
func (*QueryAllNftItemRequest) Unmarshal ¶
func (m *QueryAllNftItemRequest) Unmarshal(dAtA []byte) error
func (*QueryAllNftItemRequest) XXX_DiscardUnknown ¶
func (m *QueryAllNftItemRequest) XXX_DiscardUnknown()
func (*QueryAllNftItemRequest) XXX_Marshal ¶
func (m *QueryAllNftItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllNftItemRequest) XXX_Merge ¶
func (m *QueryAllNftItemRequest) XXX_Merge(src proto.Message)
func (*QueryAllNftItemRequest) XXX_Size ¶
func (m *QueryAllNftItemRequest) XXX_Size() int
func (*QueryAllNftItemRequest) XXX_Unmarshal ¶
func (m *QueryAllNftItemRequest) XXX_Unmarshal(b []byte) error
type QueryAllNftItemResponse ¶
type QueryAllNftItemResponse struct { NftItem []*NftItem `protobuf:"bytes,1,rep,name=NftItem,proto3" json:"NftItem,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllNftItemResponse) Descriptor ¶
func (*QueryAllNftItemResponse) Descriptor() ([]byte, []int)
func (*QueryAllNftItemResponse) GetNftItem ¶
func (m *QueryAllNftItemResponse) GetNftItem() []*NftItem
func (*QueryAllNftItemResponse) GetPagination ¶
func (m *QueryAllNftItemResponse) GetPagination() *query.PageResponse
func (*QueryAllNftItemResponse) Marshal ¶
func (m *QueryAllNftItemResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllNftItemResponse) MarshalTo ¶
func (m *QueryAllNftItemResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllNftItemResponse) MarshalToSizedBuffer ¶
func (m *QueryAllNftItemResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllNftItemResponse) ProtoMessage ¶
func (*QueryAllNftItemResponse) ProtoMessage()
func (*QueryAllNftItemResponse) Reset ¶
func (m *QueryAllNftItemResponse) Reset()
func (*QueryAllNftItemResponse) Size ¶
func (m *QueryAllNftItemResponse) Size() (n int)
func (*QueryAllNftItemResponse) String ¶
func (m *QueryAllNftItemResponse) String() string
func (*QueryAllNftItemResponse) Unmarshal ¶
func (m *QueryAllNftItemResponse) Unmarshal(dAtA []byte) error
func (*QueryAllNftItemResponse) XXX_DiscardUnknown ¶
func (m *QueryAllNftItemResponse) XXX_DiscardUnknown()
func (*QueryAllNftItemResponse) XXX_Marshal ¶
func (m *QueryAllNftItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllNftItemResponse) XXX_Merge ¶
func (m *QueryAllNftItemResponse) XXX_Merge(src proto.Message)
func (*QueryAllNftItemResponse) XXX_Size ¶
func (m *QueryAllNftItemResponse) XXX_Size() int
func (*QueryAllNftItemResponse) XXX_Unmarshal ¶
func (m *QueryAllNftItemResponse) XXX_Unmarshal(b []byte) error
type QueryBalanceOfRequest ¶
type QueryBalanceOfRequest struct {
OwnerAddress string `protobuf:"bytes,1,opt,name=ownerAddress,proto3" json:"ownerAddress,omitempty"`
}
func (*QueryBalanceOfRequest) Descriptor ¶
func (*QueryBalanceOfRequest) Descriptor() ([]byte, []int)
func (*QueryBalanceOfRequest) GetOwnerAddress ¶
func (m *QueryBalanceOfRequest) GetOwnerAddress() string
func (*QueryBalanceOfRequest) Marshal ¶
func (m *QueryBalanceOfRequest) Marshal() (dAtA []byte, err error)
func (*QueryBalanceOfRequest) MarshalTo ¶
func (m *QueryBalanceOfRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalanceOfRequest) MarshalToSizedBuffer ¶
func (m *QueryBalanceOfRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalanceOfRequest) ProtoMessage ¶
func (*QueryBalanceOfRequest) ProtoMessage()
func (*QueryBalanceOfRequest) Reset ¶
func (m *QueryBalanceOfRequest) Reset()
func (*QueryBalanceOfRequest) Size ¶
func (m *QueryBalanceOfRequest) Size() (n int)
func (*QueryBalanceOfRequest) String ¶
func (m *QueryBalanceOfRequest) String() string
func (*QueryBalanceOfRequest) Unmarshal ¶
func (m *QueryBalanceOfRequest) Unmarshal(dAtA []byte) error
func (*QueryBalanceOfRequest) XXX_DiscardUnknown ¶
func (m *QueryBalanceOfRequest) XXX_DiscardUnknown()
func (*QueryBalanceOfRequest) XXX_Marshal ¶
func (m *QueryBalanceOfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalanceOfRequest) XXX_Merge ¶
func (m *QueryBalanceOfRequest) XXX_Merge(src proto.Message)
func (*QueryBalanceOfRequest) XXX_Size ¶
func (m *QueryBalanceOfRequest) XXX_Size() int
func (*QueryBalanceOfRequest) XXX_Unmarshal ¶
func (m *QueryBalanceOfRequest) XXX_Unmarshal(b []byte) error
type QueryBalanceOfResponse ¶
type QueryBalanceOfResponse struct {
Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
}
func (*QueryBalanceOfResponse) Descriptor ¶
func (*QueryBalanceOfResponse) Descriptor() ([]byte, []int)
func (*QueryBalanceOfResponse) GetTotal ¶
func (m *QueryBalanceOfResponse) GetTotal() uint64
func (*QueryBalanceOfResponse) Marshal ¶
func (m *QueryBalanceOfResponse) Marshal() (dAtA []byte, err error)
func (*QueryBalanceOfResponse) MarshalTo ¶
func (m *QueryBalanceOfResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalanceOfResponse) MarshalToSizedBuffer ¶
func (m *QueryBalanceOfResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalanceOfResponse) ProtoMessage ¶
func (*QueryBalanceOfResponse) ProtoMessage()
func (*QueryBalanceOfResponse) Reset ¶
func (m *QueryBalanceOfResponse) Reset()
func (*QueryBalanceOfResponse) Size ¶
func (m *QueryBalanceOfResponse) Size() (n int)
func (*QueryBalanceOfResponse) String ¶
func (m *QueryBalanceOfResponse) String() string
func (*QueryBalanceOfResponse) Unmarshal ¶
func (m *QueryBalanceOfResponse) Unmarshal(dAtA []byte) error
func (*QueryBalanceOfResponse) XXX_DiscardUnknown ¶
func (m *QueryBalanceOfResponse) XXX_DiscardUnknown()
func (*QueryBalanceOfResponse) XXX_Marshal ¶
func (m *QueryBalanceOfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalanceOfResponse) XXX_Merge ¶
func (m *QueryBalanceOfResponse) XXX_Merge(src proto.Message)
func (*QueryBalanceOfResponse) XXX_Size ¶
func (m *QueryBalanceOfResponse) XXX_Size() int
func (*QueryBalanceOfResponse) XXX_Unmarshal ¶
func (m *QueryBalanceOfResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Queries a list of NftListOfOwner items. NftIdListOfOwner(ctx context.Context, in *QueryNftIdListOfOwnerRequest, opts ...grpc.CallOption) (*QueryNftIdListOfOwnerResponse, error) // Queries a list of balanceOf items. BalanceOf(ctx context.Context, in *QueryBalanceOfRequest, opts ...grpc.CallOption) (*QueryBalanceOfResponse, error) // Queries a nftItem by id. NftItem(ctx context.Context, in *QueryGetNftItemRequest, opts ...grpc.CallOption) (*QueryGetNftItemResponse, error) // Queries a list of nftItem items. NftItemAll(ctx context.Context, in *QueryAllNftItemRequest, opts ...grpc.CallOption) (*QueryAllNftItemResponse, 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 QueryGetNftItemRequest ¶
type QueryGetNftItemRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryGetNftItemRequest) Descriptor ¶
func (*QueryGetNftItemRequest) Descriptor() ([]byte, []int)
func (*QueryGetNftItemRequest) GetId ¶
func (m *QueryGetNftItemRequest) GetId() uint64
func (*QueryGetNftItemRequest) Marshal ¶
func (m *QueryGetNftItemRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetNftItemRequest) MarshalTo ¶
func (m *QueryGetNftItemRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetNftItemRequest) MarshalToSizedBuffer ¶
func (m *QueryGetNftItemRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetNftItemRequest) ProtoMessage ¶
func (*QueryGetNftItemRequest) ProtoMessage()
func (*QueryGetNftItemRequest) Reset ¶
func (m *QueryGetNftItemRequest) Reset()
func (*QueryGetNftItemRequest) Size ¶
func (m *QueryGetNftItemRequest) Size() (n int)
func (*QueryGetNftItemRequest) String ¶
func (m *QueryGetNftItemRequest) String() string
func (*QueryGetNftItemRequest) Unmarshal ¶
func (m *QueryGetNftItemRequest) Unmarshal(dAtA []byte) error
func (*QueryGetNftItemRequest) XXX_DiscardUnknown ¶
func (m *QueryGetNftItemRequest) XXX_DiscardUnknown()
func (*QueryGetNftItemRequest) XXX_Marshal ¶
func (m *QueryGetNftItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetNftItemRequest) XXX_Merge ¶
func (m *QueryGetNftItemRequest) XXX_Merge(src proto.Message)
func (*QueryGetNftItemRequest) XXX_Size ¶
func (m *QueryGetNftItemRequest) XXX_Size() int
func (*QueryGetNftItemRequest) XXX_Unmarshal ¶
func (m *QueryGetNftItemRequest) XXX_Unmarshal(b []byte) error
type QueryGetNftItemResponse ¶
type QueryGetNftItemResponse struct {
NftItem *NftItem `protobuf:"bytes,1,opt,name=NftItem,proto3" json:"NftItem,omitempty"`
}
func (*QueryGetNftItemResponse) Descriptor ¶
func (*QueryGetNftItemResponse) Descriptor() ([]byte, []int)
func (*QueryGetNftItemResponse) GetNftItem ¶
func (m *QueryGetNftItemResponse) GetNftItem() *NftItem
func (*QueryGetNftItemResponse) Marshal ¶
func (m *QueryGetNftItemResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetNftItemResponse) MarshalTo ¶
func (m *QueryGetNftItemResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetNftItemResponse) MarshalToSizedBuffer ¶
func (m *QueryGetNftItemResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetNftItemResponse) ProtoMessage ¶
func (*QueryGetNftItemResponse) ProtoMessage()
func (*QueryGetNftItemResponse) Reset ¶
func (m *QueryGetNftItemResponse) Reset()
func (*QueryGetNftItemResponse) Size ¶
func (m *QueryGetNftItemResponse) Size() (n int)
func (*QueryGetNftItemResponse) String ¶
func (m *QueryGetNftItemResponse) String() string
func (*QueryGetNftItemResponse) Unmarshal ¶
func (m *QueryGetNftItemResponse) Unmarshal(dAtA []byte) error
func (*QueryGetNftItemResponse) XXX_DiscardUnknown ¶
func (m *QueryGetNftItemResponse) XXX_DiscardUnknown()
func (*QueryGetNftItemResponse) XXX_Marshal ¶
func (m *QueryGetNftItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetNftItemResponse) XXX_Merge ¶
func (m *QueryGetNftItemResponse) XXX_Merge(src proto.Message)
func (*QueryGetNftItemResponse) XXX_Size ¶
func (m *QueryGetNftItemResponse) XXX_Size() int
func (*QueryGetNftItemResponse) XXX_Unmarshal ¶
func (m *QueryGetNftItemResponse) XXX_Unmarshal(b []byte) error
type QueryNftIdListOfOwnerRequest ¶
type QueryNftIdListOfOwnerRequest struct { OwnerAddress string `protobuf:"bytes,1,opt,name=ownerAddress,proto3" json:"ownerAddress,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryNftIdListOfOwnerRequest) Descriptor ¶
func (*QueryNftIdListOfOwnerRequest) Descriptor() ([]byte, []int)
func (*QueryNftIdListOfOwnerRequest) GetOwnerAddress ¶
func (m *QueryNftIdListOfOwnerRequest) GetOwnerAddress() string
func (*QueryNftIdListOfOwnerRequest) GetPagination ¶
func (m *QueryNftIdListOfOwnerRequest) GetPagination() *query.PageRequest
func (*QueryNftIdListOfOwnerRequest) Marshal ¶
func (m *QueryNftIdListOfOwnerRequest) Marshal() (dAtA []byte, err error)
func (*QueryNftIdListOfOwnerRequest) MarshalTo ¶
func (m *QueryNftIdListOfOwnerRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryNftIdListOfOwnerRequest) MarshalToSizedBuffer ¶
func (m *QueryNftIdListOfOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNftIdListOfOwnerRequest) ProtoMessage ¶
func (*QueryNftIdListOfOwnerRequest) ProtoMessage()
func (*QueryNftIdListOfOwnerRequest) Reset ¶
func (m *QueryNftIdListOfOwnerRequest) Reset()
func (*QueryNftIdListOfOwnerRequest) Size ¶
func (m *QueryNftIdListOfOwnerRequest) Size() (n int)
func (*QueryNftIdListOfOwnerRequest) String ¶
func (m *QueryNftIdListOfOwnerRequest) String() string
func (*QueryNftIdListOfOwnerRequest) Unmarshal ¶
func (m *QueryNftIdListOfOwnerRequest) Unmarshal(dAtA []byte) error
func (*QueryNftIdListOfOwnerRequest) XXX_DiscardUnknown ¶
func (m *QueryNftIdListOfOwnerRequest) XXX_DiscardUnknown()
func (*QueryNftIdListOfOwnerRequest) XXX_Marshal ¶
func (m *QueryNftIdListOfOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNftIdListOfOwnerRequest) XXX_Merge ¶
func (m *QueryNftIdListOfOwnerRequest) XXX_Merge(src proto.Message)
func (*QueryNftIdListOfOwnerRequest) XXX_Size ¶
func (m *QueryNftIdListOfOwnerRequest) XXX_Size() int
func (*QueryNftIdListOfOwnerRequest) XXX_Unmarshal ¶
func (m *QueryNftIdListOfOwnerRequest) XXX_Unmarshal(b []byte) error
type QueryNftIdListOfOwnerResponse ¶
type QueryNftIdListOfOwnerResponse struct { NftIdList []uint64 `protobuf:"varint,1,rep,packed,name=nftIdList,proto3" json:"nftIdList,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryNftIdListOfOwnerResponse) Descriptor ¶
func (*QueryNftIdListOfOwnerResponse) Descriptor() ([]byte, []int)
func (*QueryNftIdListOfOwnerResponse) GetNftIdList ¶
func (m *QueryNftIdListOfOwnerResponse) GetNftIdList() []uint64
func (*QueryNftIdListOfOwnerResponse) GetPagination ¶
func (m *QueryNftIdListOfOwnerResponse) GetPagination() *query.PageResponse
func (*QueryNftIdListOfOwnerResponse) Marshal ¶
func (m *QueryNftIdListOfOwnerResponse) Marshal() (dAtA []byte, err error)
func (*QueryNftIdListOfOwnerResponse) MarshalTo ¶
func (m *QueryNftIdListOfOwnerResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNftIdListOfOwnerResponse) MarshalToSizedBuffer ¶
func (m *QueryNftIdListOfOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNftIdListOfOwnerResponse) ProtoMessage ¶
func (*QueryNftIdListOfOwnerResponse) ProtoMessage()
func (*QueryNftIdListOfOwnerResponse) Reset ¶
func (m *QueryNftIdListOfOwnerResponse) Reset()
func (*QueryNftIdListOfOwnerResponse) Size ¶
func (m *QueryNftIdListOfOwnerResponse) Size() (n int)
func (*QueryNftIdListOfOwnerResponse) String ¶
func (m *QueryNftIdListOfOwnerResponse) String() string
func (*QueryNftIdListOfOwnerResponse) Unmarshal ¶
func (m *QueryNftIdListOfOwnerResponse) Unmarshal(dAtA []byte) error
func (*QueryNftIdListOfOwnerResponse) XXX_DiscardUnknown ¶
func (m *QueryNftIdListOfOwnerResponse) XXX_DiscardUnknown()
func (*QueryNftIdListOfOwnerResponse) XXX_Marshal ¶
func (m *QueryNftIdListOfOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNftIdListOfOwnerResponse) XXX_Merge ¶
func (m *QueryNftIdListOfOwnerResponse) XXX_Merge(src proto.Message)
func (*QueryNftIdListOfOwnerResponse) XXX_Size ¶
func (m *QueryNftIdListOfOwnerResponse) XXX_Size() int
func (*QueryNftIdListOfOwnerResponse) XXX_Unmarshal ¶
func (m *QueryNftIdListOfOwnerResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Queries a list of NftListOfOwner items. NftIdListOfOwner(context.Context, *QueryNftIdListOfOwnerRequest) (*QueryNftIdListOfOwnerResponse, error) // Queries a list of balanceOf items. BalanceOf(context.Context, *QueryBalanceOfRequest) (*QueryBalanceOfResponse, error) // Queries a nftItem by id. NftItem(context.Context, *QueryGetNftItemRequest) (*QueryGetNftItemResponse, error) // Queries a list of nftItem items. NftItemAll(context.Context, *QueryAllNftItemRequest) (*QueryAllNftItemResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Burn ¶
func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
func (*UnimplementedMsgServer) Mint ¶
func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
func (*UnimplementedMsgServer) Transfer ¶
func (*UnimplementedMsgServer) Transfer(ctx context.Context, req *MsgTransfer) (*MsgTransferResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) BalanceOf ¶
func (*UnimplementedQueryServer) BalanceOf(ctx context.Context, req *QueryBalanceOfRequest) (*QueryBalanceOfResponse, error)
func (*UnimplementedQueryServer) NftIdListOfOwner ¶
func (*UnimplementedQueryServer) NftIdListOfOwner(ctx context.Context, req *QueryNftIdListOfOwnerRequest) (*QueryNftIdListOfOwnerResponse, error)
func (*UnimplementedQueryServer) NftItem ¶
func (*UnimplementedQueryServer) NftItem(ctx context.Context, req *QueryGetNftItemRequest) (*QueryGetNftItemResponse, error)
func (*UnimplementedQueryServer) NftItemAll ¶
func (*UnimplementedQueryServer) NftItemAll(ctx context.Context, req *QueryAllNftItemRequest) (*QueryAllNftItemResponse, error)