nftv1beta1

package
v0.0.0-...-891b8cb Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_cosmos_nft_v1beta1_event_proto protoreflect.FileDescriptor
View Source
var File_cosmos_nft_v1beta1_genesis_proto protoreflect.FileDescriptor
View Source
var File_cosmos_nft_v1beta1_nft_proto protoreflect.FileDescriptor
View Source
var File_cosmos_nft_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_nft_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.nft.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Send",
			Handler:    _Msg_Send_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/nft/v1beta1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.nft.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Balance",
			Handler:    _Query_Balance_Handler,
		},
		{
			MethodName: "Owner",
			Handler:    _Query_Owner_Handler,
		},
		{
			MethodName: "Supply",
			Handler:    _Query_Supply_Handler,
		},
		{
			MethodName: "NFTs",
			Handler:    _Query_NFTs_Handler,
		},
		{
			MethodName: "NFT",
			Handler:    _Query_NFT_Handler,
		},
		{
			MethodName: "Class",
			Handler:    _Query_Class_Handler,
		},
		{
			MethodName: "Classes",
			Handler:    _Query_Classes_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/nft/v1beta1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type Class

type Class struct {

	// id defines the unique identifier of the NFT classification, similar to the contract address of ERC721
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name defines the human-readable name of the NFT classification. Optional
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// symbol is an abbreviated name for nft classification. Optional
	Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// description is a brief description of nft classification. Optional
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional
	Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"`
	// uri_hash is a hash of the document pointed by uri. Optional
	UriHash string `protobuf:"bytes,6,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"`
	// data is the app specific metadata of the NFT class. Optional
	Data *anypb.Any `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Class defines the class of the nft type.

func (*Class) Descriptor deprecated

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

Deprecated: Use Class.ProtoReflect.Descriptor instead.

func (*Class) GetData

func (x *Class) GetData() *anypb.Any

func (*Class) GetDescription

func (x *Class) GetDescription() string

func (*Class) GetId

func (x *Class) GetId() string

func (*Class) GetName

func (x *Class) GetName() string

func (*Class) GetSymbol

func (x *Class) GetSymbol() string

func (*Class) GetUri

func (x *Class) GetUri() string

func (*Class) GetUriHash

func (x *Class) GetUriHash() string

func (*Class) ProtoMessage

func (*Class) ProtoMessage()

func (*Class) ProtoReflect

func (x *Class) ProtoReflect() protoreflect.Message

func (*Class) Reset

func (x *Class) Reset()

func (*Class) String

func (x *Class) String() string

type Entry

type Entry struct {

	// owner is the owner address of the following nft
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// nfts is a group of nfts of the same owner
	Nfts []*NFT `protobuf:"bytes,2,rep,name=nfts,proto3" json:"nfts,omitempty"`
	// contains filtered or unexported fields
}

Entry Defines all nft owned by a person

func (*Entry) Descriptor deprecated

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

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetNfts

func (x *Entry) GetNfts() []*NFT

func (*Entry) GetOwner

func (x *Entry) GetOwner() string

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

func (x *Entry) ProtoReflect() protoreflect.Message

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

type EventBurn

type EventBurn struct {
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	Id      string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Owner   string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

EventBurn is emitted on Burn

func (*EventBurn) Descriptor deprecated

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

Deprecated: Use EventBurn.ProtoReflect.Descriptor instead.

func (*EventBurn) GetClassId

func (x *EventBurn) GetClassId() string

func (*EventBurn) GetId

func (x *EventBurn) GetId() string

func (*EventBurn) GetOwner

func (x *EventBurn) GetOwner() string

func (*EventBurn) ProtoMessage

func (*EventBurn) ProtoMessage()

func (*EventBurn) ProtoReflect

func (x *EventBurn) ProtoReflect() protoreflect.Message

func (*EventBurn) Reset

func (x *EventBurn) Reset()

func (*EventBurn) String

func (x *EventBurn) String() string

type EventMint

type EventMint struct {
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	Id      string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Owner   string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

EventMint is emitted on Mint

func (*EventMint) Descriptor deprecated

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

Deprecated: Use EventMint.ProtoReflect.Descriptor instead.

func (*EventMint) GetClassId

func (x *EventMint) GetClassId() string

func (*EventMint) GetId

func (x *EventMint) GetId() string

func (*EventMint) GetOwner

func (x *EventMint) GetOwner() string

func (*EventMint) ProtoMessage

func (*EventMint) ProtoMessage()

func (*EventMint) ProtoReflect

func (x *EventMint) ProtoReflect() protoreflect.Message

func (*EventMint) Reset

func (x *EventMint) Reset()

func (*EventMint) String

func (x *EventMint) String() string

type EventSend

type EventSend struct {
	ClassId  string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	Id       string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Sender   string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
	Receiver string `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// contains filtered or unexported fields
}

EventSend is emitted on Msg/Send

func (*EventSend) Descriptor deprecated

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

Deprecated: Use EventSend.ProtoReflect.Descriptor instead.

func (*EventSend) GetClassId

func (x *EventSend) GetClassId() string

func (*EventSend) GetId

func (x *EventSend) GetId() string

func (*EventSend) GetReceiver

func (x *EventSend) GetReceiver() string

func (*EventSend) GetSender

func (x *EventSend) GetSender() string

func (*EventSend) ProtoMessage

func (*EventSend) ProtoMessage()

func (*EventSend) ProtoReflect

func (x *EventSend) ProtoReflect() protoreflect.Message

func (*EventSend) Reset

func (x *EventSend) Reset()

func (*EventSend) String

func (x *EventSend) String() string

type GenesisState

type GenesisState struct {

	// class defines the class of the nft type.
	Classes []*Class `protobuf:"bytes,1,rep,name=classes,proto3" json:"classes,omitempty"`
	Entries []*Entry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the nft module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetClasses

func (x *GenesisState) GetClasses() []*Class

func (*GenesisState) GetEntries

func (x *GenesisState) GetEntries() []*Entry

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type MsgClient

type MsgClient interface {
	// Send defines a method to send a nft from one account to another account.
	Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgSend

type MsgSend struct {

	// class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// id defines the unique identification of nft
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// sender is the address of the owner of nft
	Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
	// receiver is the receiver address of nft
	Receiver string `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// contains filtered or unexported fields
}

MsgSend represents a message to send a nft from one account to another account.

func (*MsgSend) Descriptor deprecated

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

Deprecated: Use MsgSend.ProtoReflect.Descriptor instead.

func (*MsgSend) GetClassId

func (x *MsgSend) GetClassId() string

func (*MsgSend) GetId

func (x *MsgSend) GetId() string

func (*MsgSend) GetReceiver

func (x *MsgSend) GetReceiver() string

func (*MsgSend) GetSender

func (x *MsgSend) GetSender() string

func (*MsgSend) ProtoMessage

func (*MsgSend) ProtoMessage()

func (*MsgSend) ProtoReflect

func (x *MsgSend) ProtoReflect() protoreflect.Message

func (*MsgSend) Reset

func (x *MsgSend) Reset()

func (*MsgSend) String

func (x *MsgSend) String() string

type MsgSendResponse

type MsgSendResponse struct {
	// contains filtered or unexported fields
}

MsgSendResponse defines the Msg/Send response type.

func (*MsgSendResponse) Descriptor deprecated

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

Deprecated: Use MsgSendResponse.ProtoReflect.Descriptor instead.

func (*MsgSendResponse) ProtoMessage

func (*MsgSendResponse) ProtoMessage()

func (*MsgSendResponse) ProtoReflect

func (x *MsgSendResponse) ProtoReflect() protoreflect.Message

func (*MsgSendResponse) Reset

func (x *MsgSendResponse) Reset()

func (*MsgSendResponse) String

func (x *MsgSendResponse) String() string

type MsgServer

type MsgServer interface {
	// Send defines a method to send a nft from one account to another account.
	Send(context.Context, *MsgSend) (*MsgSendResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type NFT

type NFT struct {

	// class_id associated with the NFT, similar to the contract address of ERC721
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// id is a unique identifier of the NFT
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// uri for the NFT metadata stored off chain
	Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
	// uri_hash is a hash of the document pointed by uri
	UriHash string `protobuf:"bytes,4,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"`
	// data is an app specific data of the NFT. Optional
	Data *anypb.Any `protobuf:"bytes,10,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

NFT defines the NFT.

func (*NFT) Descriptor deprecated

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

Deprecated: Use NFT.ProtoReflect.Descriptor instead.

func (*NFT) GetClassId

func (x *NFT) GetClassId() string

func (*NFT) GetData

func (x *NFT) GetData() *anypb.Any

func (*NFT) GetId

func (x *NFT) GetId() string

func (*NFT) GetUri

func (x *NFT) GetUri() string

func (*NFT) GetUriHash

func (x *NFT) GetUriHash() string

func (*NFT) ProtoMessage

func (*NFT) ProtoMessage()

func (*NFT) ProtoReflect

func (x *NFT) ProtoReflect() protoreflect.Message

func (*NFT) Reset

func (x *NFT) Reset()

func (*NFT) String

func (x *NFT) String() string

type QueryBalanceRequest

type QueryBalanceRequest struct {
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	Owner   string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

QueryBalanceRequest is the request type for the Query/Balance RPC method

func (*QueryBalanceRequest) Descriptor deprecated

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

Deprecated: Use QueryBalanceRequest.ProtoReflect.Descriptor instead.

func (*QueryBalanceRequest) GetClassId

func (x *QueryBalanceRequest) GetClassId() string

func (*QueryBalanceRequest) GetOwner

func (x *QueryBalanceRequest) GetOwner() string

func (*QueryBalanceRequest) ProtoMessage

func (*QueryBalanceRequest) ProtoMessage()

func (*QueryBalanceRequest) ProtoReflect

func (x *QueryBalanceRequest) ProtoReflect() protoreflect.Message

func (*QueryBalanceRequest) Reset

func (x *QueryBalanceRequest) Reset()

func (*QueryBalanceRequest) String

func (x *QueryBalanceRequest) String() string

type QueryBalanceResponse

type QueryBalanceResponse struct {
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

QueryBalanceResponse is the response type for the Query/Balance RPC method

func (*QueryBalanceResponse) Descriptor deprecated

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

Deprecated: Use QueryBalanceResponse.ProtoReflect.Descriptor instead.

func (*QueryBalanceResponse) GetAmount

func (x *QueryBalanceResponse) GetAmount() uint64

func (*QueryBalanceResponse) ProtoMessage

func (*QueryBalanceResponse) ProtoMessage()

func (*QueryBalanceResponse) ProtoReflect

func (x *QueryBalanceResponse) ProtoReflect() protoreflect.Message

func (*QueryBalanceResponse) Reset

func (x *QueryBalanceResponse) Reset()

func (*QueryBalanceResponse) String

func (x *QueryBalanceResponse) String() string

type QueryClassRequest

type QueryClassRequest struct {
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// contains filtered or unexported fields
}

QueryClassRequest is the request type for the Query/Class RPC method

func (*QueryClassRequest) Descriptor deprecated

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

Deprecated: Use QueryClassRequest.ProtoReflect.Descriptor instead.

func (*QueryClassRequest) GetClassId

func (x *QueryClassRequest) GetClassId() string

func (*QueryClassRequest) ProtoMessage

func (*QueryClassRequest) ProtoMessage()

func (*QueryClassRequest) ProtoReflect

func (x *QueryClassRequest) ProtoReflect() protoreflect.Message

func (*QueryClassRequest) Reset

func (x *QueryClassRequest) Reset()

func (*QueryClassRequest) String

func (x *QueryClassRequest) String() string

type QueryClassResponse

type QueryClassResponse struct {
	Class *Class `protobuf:"bytes,1,opt,name=class,proto3" json:"class,omitempty"`
	// contains filtered or unexported fields
}

QueryClassResponse is the response type for the Query/Class RPC method

func (*QueryClassResponse) Descriptor deprecated

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

Deprecated: Use QueryClassResponse.ProtoReflect.Descriptor instead.

func (*QueryClassResponse) GetClass

func (x *QueryClassResponse) GetClass() *Class

func (*QueryClassResponse) ProtoMessage

func (*QueryClassResponse) ProtoMessage()

func (*QueryClassResponse) ProtoReflect

func (x *QueryClassResponse) ProtoReflect() protoreflect.Message

func (*QueryClassResponse) Reset

func (x *QueryClassResponse) Reset()

func (*QueryClassResponse) String

func (x *QueryClassResponse) String() string

type QueryClassesRequest

type QueryClassesRequest struct {

	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryClassesRequest is the request type for the Query/Classes RPC method

func (*QueryClassesRequest) Descriptor deprecated

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

Deprecated: Use QueryClassesRequest.ProtoReflect.Descriptor instead.

func (*QueryClassesRequest) GetPagination

func (x *QueryClassesRequest) GetPagination() *v1beta1.PageRequest

func (*QueryClassesRequest) ProtoMessage

func (*QueryClassesRequest) ProtoMessage()

func (*QueryClassesRequest) ProtoReflect

func (x *QueryClassesRequest) ProtoReflect() protoreflect.Message

func (*QueryClassesRequest) Reset

func (x *QueryClassesRequest) Reset()

func (*QueryClassesRequest) String

func (x *QueryClassesRequest) String() string

type QueryClassesResponse

type QueryClassesResponse struct {
	Classes    []*Class              `protobuf:"bytes,1,rep,name=classes,proto3" json:"classes,omitempty"`
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryClassesResponse is the response type for the Query/Classes RPC method

func (*QueryClassesResponse) Descriptor deprecated

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

Deprecated: Use QueryClassesResponse.ProtoReflect.Descriptor instead.

func (*QueryClassesResponse) GetClasses

func (x *QueryClassesResponse) GetClasses() []*Class

func (*QueryClassesResponse) GetPagination

func (x *QueryClassesResponse) GetPagination() *v1beta1.PageResponse

func (*QueryClassesResponse) ProtoMessage

func (*QueryClassesResponse) ProtoMessage()

func (*QueryClassesResponse) ProtoReflect

func (x *QueryClassesResponse) ProtoReflect() protoreflect.Message

func (*QueryClassesResponse) Reset

func (x *QueryClassesResponse) Reset()

func (*QueryClassesResponse) String

func (x *QueryClassesResponse) String() string

type QueryClient

type QueryClient interface {
	// Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721
	Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error)
	// Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721
	Owner(ctx context.Context, in *QueryOwnerRequest, opts ...grpc.CallOption) (*QueryOwnerResponse, error)
	// Supply queries the number of NFTs from the given class, same as totalSupply of ERC721.
	Supply(ctx context.Context, in *QuerySupplyRequest, opts ...grpc.CallOption) (*QuerySupplyResponse, error)
	// NFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in
	// ERC721Enumerable
	NFTs(ctx context.Context, in *QueryNFTsRequest, opts ...grpc.CallOption) (*QueryNFTsResponse, error)
	// NFT queries an NFT based on its class and id.
	NFT(ctx context.Context, in *QueryNFTRequest, opts ...grpc.CallOption) (*QueryNFTResponse, error)
	// Class queries an NFT class based on its id
	Class(ctx context.Context, in *QueryClassRequest, opts ...grpc.CallOption) (*QueryClassResponse, error)
	// Classes queries all NFT classes
	Classes(ctx context.Context, in *QueryClassesRequest, opts ...grpc.CallOption) (*QueryClassesResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryNFTRequest

type QueryNFTRequest struct {
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	Id      string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryNFTRequest) Descriptor deprecated

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

Deprecated: Use QueryNFTRequest.ProtoReflect.Descriptor instead.

func (*QueryNFTRequest) GetClassId

func (x *QueryNFTRequest) GetClassId() string

func (*QueryNFTRequest) GetId

func (x *QueryNFTRequest) GetId() string

func (*QueryNFTRequest) ProtoMessage

func (*QueryNFTRequest) ProtoMessage()

func (*QueryNFTRequest) ProtoReflect

func (x *QueryNFTRequest) ProtoReflect() protoreflect.Message

func (*QueryNFTRequest) Reset

func (x *QueryNFTRequest) Reset()

func (*QueryNFTRequest) String

func (x *QueryNFTRequest) String() string

type QueryNFTResponse

type QueryNFTResponse struct {
	Nft *NFT `protobuf:"bytes,1,opt,name=nft,proto3" json:"nft,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryNFTResponse) Descriptor deprecated

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

Deprecated: Use QueryNFTResponse.ProtoReflect.Descriptor instead.

func (*QueryNFTResponse) GetNft

func (x *QueryNFTResponse) GetNft() *NFT

func (*QueryNFTResponse) ProtoMessage

func (*QueryNFTResponse) ProtoMessage()

func (*QueryNFTResponse) ProtoReflect

func (x *QueryNFTResponse) ProtoReflect() protoreflect.Message

func (*QueryNFTResponse) Reset

func (x *QueryNFTResponse) Reset()

func (*QueryNFTResponse) String

func (x *QueryNFTResponse) String() string

type QueryNFTsRequest

type QueryNFTsRequest struct {
	ClassId    string               `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	Owner      string               `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryNFTstRequest is the request type for the Query/NFTs RPC method

func (*QueryNFTsRequest) Descriptor deprecated

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

Deprecated: Use QueryNFTsRequest.ProtoReflect.Descriptor instead.

func (*QueryNFTsRequest) GetClassId

func (x *QueryNFTsRequest) GetClassId() string

func (*QueryNFTsRequest) GetOwner

func (x *QueryNFTsRequest) GetOwner() string

func (*QueryNFTsRequest) GetPagination

func (x *QueryNFTsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryNFTsRequest) ProtoMessage

func (*QueryNFTsRequest) ProtoMessage()

func (*QueryNFTsRequest) ProtoReflect

func (x *QueryNFTsRequest) ProtoReflect() protoreflect.Message

func (*QueryNFTsRequest) Reset

func (x *QueryNFTsRequest) Reset()

func (*QueryNFTsRequest) String

func (x *QueryNFTsRequest) String() string

type QueryNFTsResponse

type QueryNFTsResponse struct {
	Nfts       []*NFT                `protobuf:"bytes,1,rep,name=nfts,proto3" json:"nfts,omitempty"`
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryNFTsResponse is the response type for the Query/NFTs RPC methods

func (*QueryNFTsResponse) Descriptor deprecated

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

Deprecated: Use QueryNFTsResponse.ProtoReflect.Descriptor instead.

func (*QueryNFTsResponse) GetNfts

func (x *QueryNFTsResponse) GetNfts() []*NFT

func (*QueryNFTsResponse) GetPagination

func (x *QueryNFTsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryNFTsResponse) ProtoMessage

func (*QueryNFTsResponse) ProtoMessage()

func (*QueryNFTsResponse) ProtoReflect

func (x *QueryNFTsResponse) ProtoReflect() protoreflect.Message

func (*QueryNFTsResponse) Reset

func (x *QueryNFTsResponse) Reset()

func (*QueryNFTsResponse) String

func (x *QueryNFTsResponse) String() string

type QueryOwnerRequest

type QueryOwnerRequest struct {
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	Id      string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryOwnerRequest) Descriptor deprecated

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

Deprecated: Use QueryOwnerRequest.ProtoReflect.Descriptor instead.

func (*QueryOwnerRequest) GetClassId

func (x *QueryOwnerRequest) GetClassId() string

func (*QueryOwnerRequest) GetId

func (x *QueryOwnerRequest) GetId() string

func (*QueryOwnerRequest) ProtoMessage

func (*QueryOwnerRequest) ProtoMessage()

func (*QueryOwnerRequest) ProtoReflect

func (x *QueryOwnerRequest) ProtoReflect() protoreflect.Message

func (*QueryOwnerRequest) Reset

func (x *QueryOwnerRequest) Reset()

func (*QueryOwnerRequest) String

func (x *QueryOwnerRequest) String() string

type QueryOwnerResponse

type QueryOwnerResponse struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryOwnerResponse) Descriptor deprecated

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

Deprecated: Use QueryOwnerResponse.ProtoReflect.Descriptor instead.

func (*QueryOwnerResponse) GetOwner

func (x *QueryOwnerResponse) GetOwner() string

func (*QueryOwnerResponse) ProtoMessage

func (*QueryOwnerResponse) ProtoMessage()

func (*QueryOwnerResponse) ProtoReflect

func (x *QueryOwnerResponse) ProtoReflect() protoreflect.Message

func (*QueryOwnerResponse) Reset

func (x *QueryOwnerResponse) Reset()

func (*QueryOwnerResponse) String

func (x *QueryOwnerResponse) String() string

type QueryServer

type QueryServer interface {
	// Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721
	Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
	// Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721
	Owner(context.Context, *QueryOwnerRequest) (*QueryOwnerResponse, error)
	// Supply queries the number of NFTs from the given class, same as totalSupply of ERC721.
	Supply(context.Context, *QuerySupplyRequest) (*QuerySupplyResponse, error)
	// NFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in
	// ERC721Enumerable
	NFTs(context.Context, *QueryNFTsRequest) (*QueryNFTsResponse, error)
	// NFT queries an NFT based on its class and id.
	NFT(context.Context, *QueryNFTRequest) (*QueryNFTResponse, error)
	// Class queries an NFT class based on its id
	Class(context.Context, *QueryClassRequest) (*QueryClassResponse, error)
	// Classes queries all NFT classes
	Classes(context.Context, *QueryClassesRequest) (*QueryClassesResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QuerySupplyRequest

type QuerySupplyRequest struct {
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QuerySupplyRequest) Descriptor deprecated

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

Deprecated: Use QuerySupplyRequest.ProtoReflect.Descriptor instead.

func (*QuerySupplyRequest) GetClassId

func (x *QuerySupplyRequest) GetClassId() string

func (*QuerySupplyRequest) ProtoMessage

func (*QuerySupplyRequest) ProtoMessage()

func (*QuerySupplyRequest) ProtoReflect

func (x *QuerySupplyRequest) ProtoReflect() protoreflect.Message

func (*QuerySupplyRequest) Reset

func (x *QuerySupplyRequest) Reset()

func (*QuerySupplyRequest) String

func (x *QuerySupplyRequest) String() string

type QuerySupplyResponse

type QuerySupplyResponse struct {
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QuerySupplyResponse) Descriptor deprecated

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

Deprecated: Use QuerySupplyResponse.ProtoReflect.Descriptor instead.

func (*QuerySupplyResponse) GetAmount

func (x *QuerySupplyResponse) GetAmount() uint64

func (*QuerySupplyResponse) ProtoMessage

func (*QuerySupplyResponse) ProtoMessage()

func (*QuerySupplyResponse) ProtoReflect

func (x *QuerySupplyResponse) ProtoReflect() protoreflect.Message

func (*QuerySupplyResponse) Reset

func (x *QuerySupplyResponse) Reset()

func (*QuerySupplyResponse) String

func (x *QuerySupplyResponse) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) Send

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Balance

func (UnimplementedQueryServer) Class

func (UnimplementedQueryServer) Classes

func (UnimplementedQueryServer) NFT

func (UnimplementedQueryServer) NFTs

func (UnimplementedQueryServer) Owner

func (UnimplementedQueryServer) Supply

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Jump to

Keyboard shortcuts

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