obitv1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 18 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

View Source
const (
	Query_GetNFTByAddress_FullMethodName = "/obadafoundation.obit.v1.Query/GetNFTByAddress"
	Query_GetNFT_FullMethodName          = "/obadafoundation.obit.v1.Query/GetNFT"
)
View Source
const (
	Msg_UpdateNFT_FullMethodName        = "/obadafoundation.obit.v1.Msg/UpdateNFT"
	Msg_UpdateUriHash_FullMethodName    = "/obadafoundation.obit.v1.Msg/UpdateUriHash"
	Msg_MintNFT_FullMethodName          = "/obadafoundation.obit.v1.Msg/MintNFT"
	Msg_BatchMintNFT_FullMethodName     = "/obadafoundation.obit.v1.Msg/BatchMintNFT"
	Msg_TransferNFT_FullMethodName      = "/obadafoundation.obit.v1.Msg/TransferNFT"
	Msg_BatchTransferNFT_FullMethodName = "/obadafoundation.obit.v1.Msg/BatchTransferNFT"
)

Variables

View Source
var File_obadafoundation_obit_v1_class_proto protoreflect.FileDescriptor
View Source
var File_obadafoundation_obit_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_obadafoundation_obit_v1_nft_proto protoreflect.FileDescriptor
View Source
var File_obadafoundation_obit_v1_query_proto protoreflect.FileDescriptor
View Source
var File_obadafoundation_obit_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "obadafoundation.obit.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateNFT",
			Handler:    _Msg_UpdateNFT_Handler,
		},
		{
			MethodName: "UpdateUriHash",
			Handler:    _Msg_UpdateUriHash_Handler,
		},
		{
			MethodName: "MintNFT",
			Handler:    _Msg_MintNFT_Handler,
		},
		{
			MethodName: "BatchMintNFT",
			Handler:    _Msg_BatchMintNFT_Handler,
		},
		{
			MethodName: "TransferNFT",
			Handler:    _Msg_TransferNFT_Handler,
		},
		{
			MethodName: "BatchTransferNFT",
			Handler:    _Msg_BatchTransferNFT_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "obadafoundation/obit/v1/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: "obadafoundation.obit.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNFTByAddress",
			Handler:    _Query_GetNFTByAddress_Handler,
		},
		{
			MethodName: "GetNFT",
			Handler:    _Query_GetNFT_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "obadafoundation/obit/v1/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 GenesisState

type GenesisState struct {

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

GenesisState defines the obit 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) 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 MsgBatchMintNFT

type MsgBatchMintNFT struct {

	// Bech32 address of creator
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// Collection of NFTs to be minted
	Nft []*MsgBatchNFT `protobuf:"bytes,2,rep,name=nft,proto3" json:"nft,omitempty"`
	// contains filtered or unexported fields
}

MsgBatchMintNFT

func (*MsgBatchMintNFT) Descriptor deprecated

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

Deprecated: Use MsgBatchMintNFT.ProtoReflect.Descriptor instead.

func (*MsgBatchMintNFT) GetCreator

func (x *MsgBatchMintNFT) GetCreator() string

func (*MsgBatchMintNFT) GetNft

func (x *MsgBatchMintNFT) GetNft() []*MsgBatchNFT

func (*MsgBatchMintNFT) ProtoMessage

func (*MsgBatchMintNFT) ProtoMessage()

func (*MsgBatchMintNFT) ProtoReflect

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

func (*MsgBatchMintNFT) Reset

func (x *MsgBatchMintNFT) Reset()

func (*MsgBatchMintNFT) String

func (x *MsgBatchMintNFT) String() string

type MsgBatchMintNFTResponse

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

MsgBulkMintNFTResponse success bulk minting response

func (*MsgBatchMintNFTResponse) Descriptor deprecated

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

Deprecated: Use MsgBatchMintNFTResponse.ProtoReflect.Descriptor instead.

func (*MsgBatchMintNFTResponse) ProtoMessage

func (*MsgBatchMintNFTResponse) ProtoMessage()

func (*MsgBatchMintNFTResponse) ProtoReflect

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

func (*MsgBatchMintNFTResponse) Reset

func (x *MsgBatchMintNFTResponse) Reset()

func (*MsgBatchMintNFTResponse) String

func (x *MsgBatchMintNFTResponse) String() string

type MsgBatchNFT

type MsgBatchNFT struct {

	// DID is the unique identification of nft
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Reference to the document
	Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
	// DID document metadata checksum
	UriHash string `protobuf:"bytes,3,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"`
	// usn is the universal serial number of asset
	Usn string `protobuf:"bytes,4,opt,name=usn,proto3" json:"usn,omitempty"`
	// contains filtered or unexported fields
}

MsgMintNFT handles obit information

func (*MsgBatchNFT) Descriptor deprecated

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

Deprecated: Use MsgBatchNFT.ProtoReflect.Descriptor instead.

func (*MsgBatchNFT) GetId

func (x *MsgBatchNFT) GetId() string

func (*MsgBatchNFT) GetUri

func (x *MsgBatchNFT) GetUri() string

func (*MsgBatchNFT) GetUriHash

func (x *MsgBatchNFT) GetUriHash() string

func (*MsgBatchNFT) GetUsn

func (x *MsgBatchNFT) GetUsn() string

func (*MsgBatchNFT) ProtoMessage

func (*MsgBatchNFT) ProtoMessage()

func (*MsgBatchNFT) ProtoReflect

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

func (*MsgBatchNFT) Reset

func (x *MsgBatchNFT) Reset()

func (*MsgBatchNFT) String

func (x *MsgBatchNFT) String() string

type MsgBatchTransferNFT

type MsgBatchTransferNFT struct {

	// sender is the address of the owner of nft
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// receiver is the receiver address of nft
	Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// Collection of NFTs to be minted
	Ids []string `protobuf:"bytes,3,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

MsgBatchTransferNFT

func (*MsgBatchTransferNFT) Descriptor deprecated

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

Deprecated: Use MsgBatchTransferNFT.ProtoReflect.Descriptor instead.

func (*MsgBatchTransferNFT) GetIds

func (x *MsgBatchTransferNFT) GetIds() []string

func (*MsgBatchTransferNFT) GetReceiver

func (x *MsgBatchTransferNFT) GetReceiver() string

func (*MsgBatchTransferNFT) GetSender

func (x *MsgBatchTransferNFT) GetSender() string

func (*MsgBatchTransferNFT) ProtoMessage

func (*MsgBatchTransferNFT) ProtoMessage()

func (*MsgBatchTransferNFT) ProtoReflect

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

func (*MsgBatchTransferNFT) Reset

func (x *MsgBatchTransferNFT) Reset()

func (*MsgBatchTransferNFT) String

func (x *MsgBatchTransferNFT) String() string

type MsgBatchTransferNFTResponse

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

MsgBatchTransferNFTResponse defines the Msg response type.

func (*MsgBatchTransferNFTResponse) Descriptor deprecated

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

Deprecated: Use MsgBatchTransferNFTResponse.ProtoReflect.Descriptor instead.

func (*MsgBatchTransferNFTResponse) ProtoMessage

func (*MsgBatchTransferNFTResponse) ProtoMessage()

func (*MsgBatchTransferNFTResponse) ProtoReflect

func (*MsgBatchTransferNFTResponse) Reset

func (x *MsgBatchTransferNFTResponse) Reset()

func (*MsgBatchTransferNFTResponse) String

func (x *MsgBatchTransferNFTResponse) String() string

type MsgClient

type MsgClient interface {
	// UpdateNFT updates NFT properties (definition will come in future)
	UpdateNFT(ctx context.Context, in *MsgUpdateNFT, opts ...grpc.CallOption) (*MsgUpdateNFTResponse, error)
	// UpdateUriHash updates URI hash for existing NFT
	UpdateUriHash(ctx context.Context, in *MsgUpdateUriHash, opts ...grpc.CallOption) (*MsgUpdateUriHashResponse, error)
	// MintNFT mint a new OBADA NFT (Obit)
	MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.CallOption) (*MsgMintNFTResponse, error)
	// BatchMintNFT mint many NFTs
	BatchMintNFT(ctx context.Context, in *MsgBatchMintNFT, opts ...grpc.CallOption) (*MsgBatchMintNFTResponse, error)
	// TransferNFT send NFT to the new owner address
	TransferNFT(ctx context.Context, in *MsgTransferNFT, opts ...grpc.CallOption) (*MsgTransferNFTResponse, error)
	// BatchTransferNFT transfer a batch NFTs
	BatchTransferNFT(ctx context.Context, in *MsgBatchTransferNFT, opts ...grpc.CallOption) (*MsgBatchTransferNFTResponse, 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 MsgMintNFT

type MsgMintNFT struct {

	// Bech32 address of creator
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// DID is the unique identification of nft
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Reference to the document
	Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
	// uri_hash did document metadata checksum
	UriHash string `protobuf:"bytes,4,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"`
	// usn is the universal serial number of asset
	Usn string `protobuf:"bytes,5,opt,name=usn,proto3" json:"usn,omitempty"`
	// contains filtered or unexported fields
}

MsgMintNFT handles obit information

func (*MsgMintNFT) Descriptor deprecated

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

Deprecated: Use MsgMintNFT.ProtoReflect.Descriptor instead.

func (*MsgMintNFT) GetCreator

func (x *MsgMintNFT) GetCreator() string

func (*MsgMintNFT) GetId

func (x *MsgMintNFT) GetId() string

func (*MsgMintNFT) GetUri

func (x *MsgMintNFT) GetUri() string

func (*MsgMintNFT) GetUriHash

func (x *MsgMintNFT) GetUriHash() string

func (*MsgMintNFT) GetUsn

func (x *MsgMintNFT) GetUsn() string

func (*MsgMintNFT) ProtoMessage

func (*MsgMintNFT) ProtoMessage()

func (*MsgMintNFT) ProtoReflect

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

func (*MsgMintNFT) Reset

func (x *MsgMintNFT) Reset()

func (*MsgMintNFT) String

func (x *MsgMintNFT) String() string

type MsgMintNFTResponse

type MsgMintNFTResponse struct {

	// DID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

MsgMintNFTResponse success minting response

func (*MsgMintNFTResponse) Descriptor deprecated

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

Deprecated: Use MsgMintNFTResponse.ProtoReflect.Descriptor instead.

func (*MsgMintNFTResponse) GetId

func (x *MsgMintNFTResponse) GetId() string

func (*MsgMintNFTResponse) ProtoMessage

func (*MsgMintNFTResponse) ProtoMessage()

func (*MsgMintNFTResponse) ProtoReflect

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

func (*MsgMintNFTResponse) Reset

func (x *MsgMintNFTResponse) Reset()

func (*MsgMintNFTResponse) String

func (x *MsgMintNFTResponse) String() string

type MsgServer

type MsgServer interface {
	// UpdateNFT updates NFT properties (definition will come in future)
	UpdateNFT(context.Context, *MsgUpdateNFT) (*MsgUpdateNFTResponse, error)
	// UpdateUriHash updates URI hash for existing NFT
	UpdateUriHash(context.Context, *MsgUpdateUriHash) (*MsgUpdateUriHashResponse, error)
	// MintNFT mint a new OBADA NFT (Obit)
	MintNFT(context.Context, *MsgMintNFT) (*MsgMintNFTResponse, error)
	// BatchMintNFT mint many NFTs
	BatchMintNFT(context.Context, *MsgBatchMintNFT) (*MsgBatchMintNFTResponse, error)
	// TransferNFT send NFT to the new owner address
	TransferNFT(context.Context, *MsgTransferNFT) (*MsgTransferNFTResponse, error)
	// BatchTransferNFT transfer a batch NFTs
	BatchTransferNFT(context.Context, *MsgBatchTransferNFT) (*MsgBatchTransferNFTResponse, error)
	// contains filtered or unexported methods
}

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

type MsgTransferNFT

type MsgTransferNFT struct {

	// did defines the unique identification of nft
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// sender is the address of the owner of nft
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	// receiver is the receiver address of nft
	Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// contains filtered or unexported fields
}

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

func (*MsgTransferNFT) Descriptor deprecated

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

Deprecated: Use MsgTransferNFT.ProtoReflect.Descriptor instead.

func (*MsgTransferNFT) GetId

func (x *MsgTransferNFT) GetId() string

func (*MsgTransferNFT) GetReceiver

func (x *MsgTransferNFT) GetReceiver() string

func (*MsgTransferNFT) GetSender

func (x *MsgTransferNFT) GetSender() string

func (*MsgTransferNFT) ProtoMessage

func (*MsgTransferNFT) ProtoMessage()

func (*MsgTransferNFT) ProtoReflect

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

func (*MsgTransferNFT) Reset

func (x *MsgTransferNFT) Reset()

func (*MsgTransferNFT) String

func (x *MsgTransferNFT) String() string

type MsgTransferNFTResponse

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

MsgTransferNFTResponse defines the Msg/Send response type.

func (*MsgTransferNFTResponse) Descriptor deprecated

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

Deprecated: Use MsgTransferNFTResponse.ProtoReflect.Descriptor instead.

func (*MsgTransferNFTResponse) ProtoMessage

func (*MsgTransferNFTResponse) ProtoMessage()

func (*MsgTransferNFTResponse) ProtoReflect

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

func (*MsgTransferNFTResponse) Reset

func (x *MsgTransferNFTResponse) Reset()

func (*MsgTransferNFTResponse) String

func (x *MsgTransferNFTResponse) String() string

type MsgUpdateNFT

type MsgUpdateNFT struct {

	// did defines the unique identification of nft
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// editor is the address of the editor of nft metadata
	Editor string `protobuf:"bytes,2,opt,name=editor,proto3" json:"editor,omitempty"`
	// NFTData represent NFT metadata
	NftData *NFTData `protobuf:"bytes,3,opt,name=nft_data,json=nftData,proto3" json:"nft_data,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateNFT

func (*MsgUpdateNFT) Descriptor deprecated

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

Deprecated: Use MsgUpdateNFT.ProtoReflect.Descriptor instead.

func (*MsgUpdateNFT) GetEditor

func (x *MsgUpdateNFT) GetEditor() string

func (*MsgUpdateNFT) GetId

func (x *MsgUpdateNFT) GetId() string

func (*MsgUpdateNFT) GetNftData

func (x *MsgUpdateNFT) GetNftData() *NFTData

func (*MsgUpdateNFT) ProtoMessage

func (*MsgUpdateNFT) ProtoMessage()

func (*MsgUpdateNFT) ProtoReflect

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

func (*MsgUpdateNFT) Reset

func (x *MsgUpdateNFT) Reset()

func (*MsgUpdateNFT) String

func (x *MsgUpdateNFT) String() string

type MsgUpdateNFTResponse

type MsgUpdateNFTResponse struct {

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

MsgUpdateNFTResponse

func (*MsgUpdateNFTResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateNFTResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateNFTResponse) GetNft

func (x *MsgUpdateNFTResponse) GetNft() *NFT

func (*MsgUpdateNFTResponse) ProtoMessage

func (*MsgUpdateNFTResponse) ProtoMessage()

func (*MsgUpdateNFTResponse) ProtoReflect

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

func (*MsgUpdateNFTResponse) Reset

func (x *MsgUpdateNFTResponse) Reset()

func (*MsgUpdateNFTResponse) String

func (x *MsgUpdateNFTResponse) String() string

type MsgUpdateUriHash

type MsgUpdateUriHash struct {

	// editor is the address of the editor of nft metadata
	Editor string `protobuf:"bytes,1,opt,name=editor,proto3" json:"editor,omitempty"`
	// id stores DID
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// uri_hash did document metadata checksum
	UriHash string `protobuf:"bytes,3,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateUriChecksum

func (*MsgUpdateUriHash) Descriptor deprecated

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

Deprecated: Use MsgUpdateUriHash.ProtoReflect.Descriptor instead.

func (*MsgUpdateUriHash) GetEditor

func (x *MsgUpdateUriHash) GetEditor() string

func (*MsgUpdateUriHash) GetId

func (x *MsgUpdateUriHash) GetId() string

func (*MsgUpdateUriHash) GetUriHash

func (x *MsgUpdateUriHash) GetUriHash() string

func (*MsgUpdateUriHash) ProtoMessage

func (*MsgUpdateUriHash) ProtoMessage()

func (*MsgUpdateUriHash) ProtoReflect

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

func (*MsgUpdateUriHash) Reset

func (x *MsgUpdateUriHash) Reset()

func (*MsgUpdateUriHash) String

func (x *MsgUpdateUriHash) String() string

type MsgUpdateUriHashResponse

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

MsgUpdateUriHashResponse

func (*MsgUpdateUriHashResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateUriHashResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateUriHashResponse) ProtoMessage

func (*MsgUpdateUriHashResponse) ProtoMessage()

func (*MsgUpdateUriHashResponse) ProtoReflect

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

func (*MsgUpdateUriHashResponse) Reset

func (x *MsgUpdateUriHashResponse) Reset()

func (*MsgUpdateUriHashResponse) String

func (x *MsgUpdateUriHashResponse) String() string

type NFT

type NFT struct {

	// NFT namespace
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// NFT ID (DID)
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// NFT URI
	Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
	// NFT URI hash
	UriHash string `protobuf:"bytes,4,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"`
	// NFT data
	Data *anypb.Any `protobuf:"bytes,10,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

NFT is the struct that contains all the metadata of an 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 NFTData

type NFTData struct {

	// Universal Serial Number
	Usn string `protobuf:"bytes,1,opt,name=usn,proto3" json:"usn,omitempty"`
	// contains filtered or unexported fields
}

NFTData is the struct that contains all the metadata of an NFT

func (*NFTData) Descriptor deprecated

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

Deprecated: Use NFTData.ProtoReflect.Descriptor instead.

func (*NFTData) GetUsn

func (x *NFTData) GetUsn() string

func (*NFTData) ProtoMessage

func (*NFTData) ProtoMessage()

func (*NFTData) ProtoReflect

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

func (*NFTData) Reset

func (x *NFTData) Reset()

func (*NFTData) String

func (x *NFTData) String() string

type QueryClient

type QueryClient interface {
	// QueryGetAllNFTByAddressRequest returns a list of NFTs ownerd by given
	// address
	GetNFTByAddress(ctx context.Context, in *QueryGetNFTByAddressRequest, opts ...grpc.CallOption) (*QueryGetNFTByAddressResponse, error)
	// GetNft returns single NFT by DID
	GetNFT(ctx context.Context, in *QueryGetNFTRequest, opts ...grpc.CallOption) (*QueryGetNFTResponse, 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 QueryGetNFTByAddressRequest

type QueryGetNFTByAddressRequest struct {

	// Bech32 address
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

QueryGetNFTByAddressRequest is the request type for the Query.GetNFTByAddress

func (*QueryGetNFTByAddressRequest) Descriptor deprecated

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

Deprecated: Use QueryGetNFTByAddressRequest.ProtoReflect.Descriptor instead.

func (*QueryGetNFTByAddressRequest) GetAddress

func (x *QueryGetNFTByAddressRequest) GetAddress() string

func (*QueryGetNFTByAddressRequest) ProtoMessage

func (*QueryGetNFTByAddressRequest) ProtoMessage()

func (*QueryGetNFTByAddressRequest) ProtoReflect

func (*QueryGetNFTByAddressRequest) Reset

func (x *QueryGetNFTByAddressRequest) Reset()

func (*QueryGetNFTByAddressRequest) String

func (x *QueryGetNFTByAddressRequest) String() string

type QueryGetNFTByAddressResponse

type QueryGetNFTByAddressResponse struct {

	// List of NFTs owned by the given address
	Nft []*NFT `protobuf:"bytes,1,rep,name=nft,proto3" json:"nft,omitempty"`
	// contains filtered or unexported fields
}

QueryGetNFTByAddressResponse is the response type for the Query.GetNFTByAddress

func (*QueryGetNFTByAddressResponse) Descriptor deprecated

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

Deprecated: Use QueryGetNFTByAddressResponse.ProtoReflect.Descriptor instead.

func (*QueryGetNFTByAddressResponse) GetNft

func (x *QueryGetNFTByAddressResponse) GetNft() []*NFT

func (*QueryGetNFTByAddressResponse) ProtoMessage

func (*QueryGetNFTByAddressResponse) ProtoMessage()

func (*QueryGetNFTByAddressResponse) ProtoReflect

func (*QueryGetNFTByAddressResponse) Reset

func (x *QueryGetNFTByAddressResponse) Reset()

func (*QueryGetNFTByAddressResponse) String

type QueryGetNFTRequest

type QueryGetNFTRequest struct {

	// NFT ID (DID)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

QueryGetNFTRequest is the request type for the Query.GetNFT method.

func (*QueryGetNFTRequest) Descriptor deprecated

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

Deprecated: Use QueryGetNFTRequest.ProtoReflect.Descriptor instead.

func (*QueryGetNFTRequest) GetId

func (x *QueryGetNFTRequest) GetId() string

func (*QueryGetNFTRequest) ProtoMessage

func (*QueryGetNFTRequest) ProtoMessage()

func (*QueryGetNFTRequest) ProtoReflect

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

func (*QueryGetNFTRequest) Reset

func (x *QueryGetNFTRequest) Reset()

func (*QueryGetNFTRequest) String

func (x *QueryGetNFTRequest) String() string

type QueryGetNFTResponse

type QueryGetNFTResponse struct {

	// NFT with the given ID
	Nft *NFT `protobuf:"bytes,1,opt,name=nft,proto3" json:"nft,omitempty"`
	// contains filtered or unexported fields
}

QueryGetNFTResponse is the response type for the Query.GetNFT method.

func (*QueryGetNFTResponse) Descriptor deprecated

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

Deprecated: Use QueryGetNFTResponse.ProtoReflect.Descriptor instead.

func (*QueryGetNFTResponse) GetNft

func (x *QueryGetNFTResponse) GetNft() *NFT

func (*QueryGetNFTResponse) ProtoMessage

func (*QueryGetNFTResponse) ProtoMessage()

func (*QueryGetNFTResponse) ProtoReflect

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

func (*QueryGetNFTResponse) Reset

func (x *QueryGetNFTResponse) Reset()

func (*QueryGetNFTResponse) String

func (x *QueryGetNFTResponse) String() string

type QueryServer

type QueryServer interface {
	// QueryGetAllNFTByAddressRequest returns a list of NFTs ownerd by given
	// address
	GetNFTByAddress(context.Context, *QueryGetNFTByAddressRequest) (*QueryGetNFTByAddressResponse, error)
	// GetNft returns single NFT by DID
	GetNFT(context.Context, *QueryGetNFTRequest) (*QueryGetNFTResponse, error)
	// contains filtered or unexported methods
}

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) BatchMintNFT

func (UnimplementedMsgServer) BatchTransferNFT

func (UnimplementedMsgServer) MintNFT

func (UnimplementedMsgServer) TransferNFT

func (UnimplementedMsgServer) UpdateNFT

func (UnimplementedMsgServer) UpdateUriHash

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) GetNFT

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