collectionv1

package
v0.0.0-...-9db31c4 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 19 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_Balance_FullMethodName            = "/lbm.collection.v1.Query/Balance"
	Query_AllBalances_FullMethodName        = "/lbm.collection.v1.Query/AllBalances"
	Query_NFTSupply_FullMethodName          = "/lbm.collection.v1.Query/NFTSupply"
	Query_NFTMinted_FullMethodName          = "/lbm.collection.v1.Query/NFTMinted"
	Query_NFTBurnt_FullMethodName           = "/lbm.collection.v1.Query/NFTBurnt"
	Query_Contract_FullMethodName           = "/lbm.collection.v1.Query/Contract"
	Query_TokenClassTypeName_FullMethodName = "/lbm.collection.v1.Query/TokenClassTypeName"
	Query_TokenType_FullMethodName          = "/lbm.collection.v1.Query/TokenType"
	Query_Token_FullMethodName              = "/lbm.collection.v1.Query/Token"
	Query_GranteeGrants_FullMethodName      = "/lbm.collection.v1.Query/GranteeGrants"
	Query_IsOperatorFor_FullMethodName      = "/lbm.collection.v1.Query/IsOperatorFor"
	Query_HoldersByOperator_FullMethodName  = "/lbm.collection.v1.Query/HoldersByOperator"
)
View Source
const (
	Msg_SendNFT_FullMethodName           = "/lbm.collection.v1.Msg/SendNFT"
	Msg_OperatorSendNFT_FullMethodName   = "/lbm.collection.v1.Msg/OperatorSendNFT"
	Msg_AuthorizeOperator_FullMethodName = "/lbm.collection.v1.Msg/AuthorizeOperator"
	Msg_RevokeOperator_FullMethodName    = "/lbm.collection.v1.Msg/RevokeOperator"
	Msg_CreateContract_FullMethodName    = "/lbm.collection.v1.Msg/CreateContract"
	Msg_IssueNFT_FullMethodName          = "/lbm.collection.v1.Msg/IssueNFT"
	Msg_MintNFT_FullMethodName           = "/lbm.collection.v1.Msg/MintNFT"
	Msg_BurnNFT_FullMethodName           = "/lbm.collection.v1.Msg/BurnNFT"
	Msg_OperatorBurnNFT_FullMethodName   = "/lbm.collection.v1.Msg/OperatorBurnNFT"
	Msg_Modify_FullMethodName            = "/lbm.collection.v1.Msg/Modify"
	Msg_GrantPermission_FullMethodName   = "/lbm.collection.v1.Msg/GrantPermission"
	Msg_RevokePermission_FullMethodName  = "/lbm.collection.v1.Msg/RevokePermission"
)

Variables

View Source
var (
	Permission_name = map[int32]string{
		0: "PERMISSION_UNSPECIFIED",
		1: "PERMISSION_ISSUE",
		2: "PERMISSION_MODIFY",
		3: "PERMISSION_MINT",
		4: "PERMISSION_BURN",
	}
	Permission_value = map[string]int32{
		"PERMISSION_UNSPECIFIED": 0,
		"PERMISSION_ISSUE":       1,
		"PERMISSION_MODIFY":      2,
		"PERMISSION_MINT":        3,
		"PERMISSION_BURN":        4,
	}
)

Enum value maps for Permission.

View Source
var (
	LegacyPermission_name = map[int32]string{
		0: "LEGACY_PERMISSION_UNSPECIFIED",
		1: "LEGACY_PERMISSION_ISSUE",
		2: "LEGACY_PERMISSION_MODIFY",
		3: "LEGACY_PERMISSION_MINT",
		4: "LEGACY_PERMISSION_BURN",
	}
	LegacyPermission_value = map[string]int32{
		"LEGACY_PERMISSION_UNSPECIFIED": 0,
		"LEGACY_PERMISSION_ISSUE":       1,
		"LEGACY_PERMISSION_MODIFY":      2,
		"LEGACY_PERMISSION_MINT":        3,
		"LEGACY_PERMISSION_BURN":        4,
	}
)

Enum value maps for LegacyPermission.

View Source
var (
	AttributeKey_name = map[int32]string{
		0:  "ATTRIBUTE_KEY_UNSPECIFIED",
		1:  "ATTRIBUTE_KEY_NAME",
		2:  "ATTRIBUTE_KEY_META",
		8:  "ATTRIBUTE_KEY_BASE_IMG_URI",
		20: "ATTRIBUTE_KEY_URI",
	}
	AttributeKey_value = map[string]int32{
		"ATTRIBUTE_KEY_UNSPECIFIED":  0,
		"ATTRIBUTE_KEY_NAME":         1,
		"ATTRIBUTE_KEY_META":         2,
		"ATTRIBUTE_KEY_BASE_IMG_URI": 8,
		"ATTRIBUTE_KEY_URI":          20,
	}
)

Enum value maps for AttributeKey.

View Source
var File_lbm_collection_v1_collection_proto protoreflect.FileDescriptor
View Source
var File_lbm_collection_v1_event_proto protoreflect.FileDescriptor
View Source
var File_lbm_collection_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_lbm_collection_v1_query_proto protoreflect.FileDescriptor
View Source
var File_lbm_collection_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "lbm.collection.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendNFT",
			Handler:    _Msg_SendNFT_Handler,
		},
		{
			MethodName: "OperatorSendNFT",
			Handler:    _Msg_OperatorSendNFT_Handler,
		},
		{
			MethodName: "AuthorizeOperator",
			Handler:    _Msg_AuthorizeOperator_Handler,
		},
		{
			MethodName: "RevokeOperator",
			Handler:    _Msg_RevokeOperator_Handler,
		},
		{
			MethodName: "CreateContract",
			Handler:    _Msg_CreateContract_Handler,
		},
		{
			MethodName: "IssueNFT",
			Handler:    _Msg_IssueNFT_Handler,
		},
		{
			MethodName: "MintNFT",
			Handler:    _Msg_MintNFT_Handler,
		},
		{
			MethodName: "BurnNFT",
			Handler:    _Msg_BurnNFT_Handler,
		},
		{
			MethodName: "OperatorBurnNFT",
			Handler:    _Msg_OperatorBurnNFT_Handler,
		},
		{
			MethodName: "Modify",
			Handler:    _Msg_Modify_Handler,
		},
		{
			MethodName: "GrantPermission",
			Handler:    _Msg_GrantPermission_Handler,
		},
		{
			MethodName: "RevokePermission",
			Handler:    _Msg_RevokePermission_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "lbm/collection/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: "lbm.collection.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Balance",
			Handler:    _Query_Balance_Handler,
		},
		{
			MethodName: "AllBalances",
			Handler:    _Query_AllBalances_Handler,
		},
		{
			MethodName: "NFTSupply",
			Handler:    _Query_NFTSupply_Handler,
		},
		{
			MethodName: "NFTMinted",
			Handler:    _Query_NFTMinted_Handler,
		},
		{
			MethodName: "NFTBurnt",
			Handler:    _Query_NFTBurnt_Handler,
		},
		{
			MethodName: "Contract",
			Handler:    _Query_Contract_Handler,
		},
		{
			MethodName: "TokenClassTypeName",
			Handler:    _Query_TokenClassTypeName_Handler,
		},
		{
			MethodName: "TokenType",
			Handler:    _Query_TokenType_Handler,
		},
		{
			MethodName: "Token",
			Handler:    _Query_Token_Handler,
		},
		{
			MethodName: "GranteeGrants",
			Handler:    _Query_GranteeGrants_Handler,
		},
		{
			MethodName: "IsOperatorFor",
			Handler:    _Query_IsOperatorFor_Handler,
		},
		{
			MethodName: "HoldersByOperator",
			Handler:    _Query_HoldersByOperator_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "lbm/collection/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 Attribute

type Attribute struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Attribute defines a key and value of the attribute.

Since: 0.46.0 (finschia)

func (*Attribute) Descriptor deprecated

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

Deprecated: Use Attribute.ProtoReflect.Descriptor instead.

func (*Attribute) GetKey

func (x *Attribute) GetKey() string

func (*Attribute) GetValue

func (x *Attribute) GetValue() string

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) ProtoReflect

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

func (*Attribute) Reset

func (x *Attribute) Reset()

func (*Attribute) String

func (x *Attribute) String() string

type AttributeKey

type AttributeKey int32

AttributeKey enumerates the valid attribute keys on x/collection.

const (
	// unspecified
	AttributeKey_ATTRIBUTE_KEY_UNSPECIFIED AttributeKey = 0
	// name in Msg/Modify
	AttributeKey_ATTRIBUTE_KEY_NAME AttributeKey = 1
	// meta in Msg/Modify
	AttributeKey_ATTRIBUTE_KEY_META AttributeKey = 2
	// deprecated: use ATTRIBUTE_KEY_URI
	AttributeKey_ATTRIBUTE_KEY_BASE_IMG_URI AttributeKey = 8
	// uri in Msg/Modify
	AttributeKey_ATTRIBUTE_KEY_URI AttributeKey = 20
)

func (AttributeKey) Descriptor

func (AttributeKey) Enum

func (x AttributeKey) Enum() *AttributeKey

func (AttributeKey) EnumDescriptor deprecated

func (AttributeKey) EnumDescriptor() ([]byte, []int)

Deprecated: Use AttributeKey.Descriptor instead.

func (AttributeKey) Number

func (AttributeKey) String

func (x AttributeKey) String() string

func (AttributeKey) Type

type Authorization

type Authorization struct {

	// address of the holder which authorizes the manipulation of its tokens.
	Holder string `protobuf:"bytes,1,opt,name=holder,proto3" json:"holder,omitempty"`
	// address of the operator which the authorization is granted to.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// contains filtered or unexported fields
}

Authorization defines an authorization given to the operator on tokens of the holder.

Since: 0.46.0 (finschia)

func (*Authorization) Descriptor deprecated

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

Deprecated: Use Authorization.ProtoReflect.Descriptor instead.

func (*Authorization) GetHolder

func (x *Authorization) GetHolder() string

func (*Authorization) GetOperator

func (x *Authorization) GetOperator() string

func (*Authorization) ProtoMessage

func (*Authorization) ProtoMessage()

func (*Authorization) ProtoReflect

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

func (*Authorization) Reset

func (x *Authorization) Reset()

func (*Authorization) String

func (x *Authorization) String() string

type Balance

type Balance struct {
	Address string  `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Amount  []*Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Balance defines a balance of an address.

func (*Balance) Descriptor deprecated

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

Deprecated: Use Balance.ProtoReflect.Descriptor instead.

func (*Balance) GetAddress

func (x *Balance) GetAddress() string

func (*Balance) GetAmount

func (x *Balance) GetAmount() []*Coin

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) ProtoReflect

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

func (*Balance) Reset

func (x *Balance) Reset()

func (*Balance) String

func (x *Balance) String() string

type ClassState

type ClassState struct {

	// nonce is the next class nonce to issue.
	Nonce string `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// ids represents the issued ids.
	Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

ClassState defines the classes state.

func (*ClassState) Descriptor deprecated

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

Deprecated: Use ClassState.ProtoReflect.Descriptor instead.

func (*ClassState) GetIds

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

func (*ClassState) GetNonce

func (x *ClassState) GetNonce() string

func (*ClassState) ProtoMessage

func (*ClassState) ProtoMessage()

func (*ClassState) ProtoReflect

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

func (*ClassState) Reset

func (x *ClassState) Reset()

func (*ClassState) String

func (x *ClassState) String() string

type ClassStatistics

type ClassStatistics struct {

	// class id associated with the token class.
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// statistics
	Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

ClassStatistics defines statistics belong to a token class.

func (*ClassStatistics) Descriptor deprecated

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

Deprecated: Use ClassStatistics.ProtoReflect.Descriptor instead.

func (*ClassStatistics) GetAmount

func (x *ClassStatistics) GetAmount() string

func (*ClassStatistics) GetClassId

func (x *ClassStatistics) GetClassId() string

func (*ClassStatistics) ProtoMessage

func (*ClassStatistics) ProtoMessage()

func (*ClassStatistics) ProtoReflect

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

func (*ClassStatistics) Reset

func (x *ClassStatistics) Reset()

func (*ClassStatistics) String

func (x *ClassStatistics) String() string

type Coin

type Coin struct {

	// token id associated with the token.
	TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// amount of the token.
	Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Coin defines a token with a token id and an amount.

func (*Coin) Descriptor deprecated

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

Deprecated: Use Coin.ProtoReflect.Descriptor instead.

func (*Coin) GetAmount

func (x *Coin) GetAmount() string

func (*Coin) GetTokenId

func (x *Coin) GetTokenId() string

func (*Coin) ProtoMessage

func (*Coin) ProtoMessage()

func (*Coin) ProtoReflect

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

func (*Coin) Reset

func (x *Coin) Reset()

func (*Coin) String

func (x *Coin) String() string

type Contract

type Contract struct {

	// contract_id defines the unique identifier of the contract.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name defines the human-readable name of the contract.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// meta is a brief description of the contract.
	Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// uri for the contract image stored off chain.
	Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

Contract defines the information of the contract for the collection.

func (*Contract) Descriptor deprecated

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

Deprecated: Use Contract.ProtoReflect.Descriptor instead.

func (*Contract) GetId

func (x *Contract) GetId() string

func (*Contract) GetMeta

func (x *Contract) GetMeta() string

func (*Contract) GetName

func (x *Contract) GetName() string

func (*Contract) GetUri

func (x *Contract) GetUri() string

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) ProtoReflect

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

func (*Contract) Reset

func (x *Contract) Reset()

func (*Contract) String

func (x *Contract) String() string

type ContractAuthorizations

type ContractAuthorizations struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// authorizations
	Authorizations []*Authorization `protobuf:"bytes,2,rep,name=authorizations,proto3" json:"authorizations,omitempty"`
	// contains filtered or unexported fields
}

ContractAuthorizations defines authorizations belong to a contract.

func (*ContractAuthorizations) Descriptor deprecated

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

Deprecated: Use ContractAuthorizations.ProtoReflect.Descriptor instead.

func (*ContractAuthorizations) GetAuthorizations

func (x *ContractAuthorizations) GetAuthorizations() []*Authorization

func (*ContractAuthorizations) GetContractId

func (x *ContractAuthorizations) GetContractId() string

func (*ContractAuthorizations) ProtoMessage

func (*ContractAuthorizations) ProtoMessage()

func (*ContractAuthorizations) ProtoReflect

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

func (*ContractAuthorizations) Reset

func (x *ContractAuthorizations) Reset()

func (*ContractAuthorizations) String

func (x *ContractAuthorizations) String() string

type ContractBalances

type ContractBalances struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// balances
	Balances []*Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances,omitempty"`
	// contains filtered or unexported fields
}

ContractBalances defines balances belong to a contract. genesis state.

func (*ContractBalances) Descriptor deprecated

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

Deprecated: Use ContractBalances.ProtoReflect.Descriptor instead.

func (*ContractBalances) GetBalances

func (x *ContractBalances) GetBalances() []*Balance

func (*ContractBalances) GetContractId

func (x *ContractBalances) GetContractId() string

func (*ContractBalances) ProtoMessage

func (*ContractBalances) ProtoMessage()

func (*ContractBalances) ProtoReflect

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

func (*ContractBalances) Reset

func (x *ContractBalances) Reset()

func (*ContractBalances) String

func (x *ContractBalances) String() string

type ContractClasses

type ContractClasses struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// classes
	Classes []*anypb.Any `protobuf:"bytes,2,rep,name=classes,proto3" json:"classes,omitempty"`
	// contains filtered or unexported fields
}

ContractClasses defines token classes belong to a contract.

func (*ContractClasses) Descriptor deprecated

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

Deprecated: Use ContractClasses.ProtoReflect.Descriptor instead.

func (*ContractClasses) GetClasses

func (x *ContractClasses) GetClasses() []*anypb.Any

func (*ContractClasses) GetContractId

func (x *ContractClasses) GetContractId() string

func (*ContractClasses) ProtoMessage

func (*ContractClasses) ProtoMessage()

func (*ContractClasses) ProtoReflect

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

func (*ContractClasses) Reset

func (x *ContractClasses) Reset()

func (*ContractClasses) String

func (x *ContractClasses) String() string

type ContractGrants

type ContractGrants struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// grants
	Grants []*Grant `protobuf:"bytes,2,rep,name=grants,proto3" json:"grants,omitempty"`
	// contains filtered or unexported fields
}

ContractGrant defines grants belong to a contract.

func (*ContractGrants) Descriptor deprecated

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

Deprecated: Use ContractGrants.ProtoReflect.Descriptor instead.

func (*ContractGrants) GetContractId

func (x *ContractGrants) GetContractId() string

func (*ContractGrants) GetGrants

func (x *ContractGrants) GetGrants() []*Grant

func (*ContractGrants) ProtoMessage

func (*ContractGrants) ProtoMessage()

func (*ContractGrants) ProtoReflect

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

func (*ContractGrants) Reset

func (x *ContractGrants) Reset()

func (*ContractGrants) String

func (x *ContractGrants) String() string

type ContractNFTs

type ContractNFTs struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// nfts
	Nfts []*NFT `protobuf:"bytes,2,rep,name=nfts,proto3" json:"nfts,omitempty"`
	// contains filtered or unexported fields
}

ContractNFTs defines token classes belong to a contract.

func (*ContractNFTs) Descriptor deprecated

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

Deprecated: Use ContractNFTs.ProtoReflect.Descriptor instead.

func (*ContractNFTs) GetContractId

func (x *ContractNFTs) GetContractId() string

func (*ContractNFTs) GetNfts

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

func (*ContractNFTs) ProtoMessage

func (*ContractNFTs) ProtoMessage()

func (*ContractNFTs) ProtoReflect

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

func (*ContractNFTs) Reset

func (x *ContractNFTs) Reset()

func (*ContractNFTs) String

func (x *ContractNFTs) String() string

type ContractNextTokenIDs

type ContractNextTokenIDs struct {
	ContractId string         `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	TokenIds   []*NextTokenID `protobuf:"bytes,2,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"`
	// contains filtered or unexported fields
}

ContractNextTokenIDs defines the next token ids belong to a contract.

func (*ContractNextTokenIDs) Descriptor deprecated

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

Deprecated: Use ContractNextTokenIDs.ProtoReflect.Descriptor instead.

func (*ContractNextTokenIDs) GetContractId

func (x *ContractNextTokenIDs) GetContractId() string

func (*ContractNextTokenIDs) GetTokenIds

func (x *ContractNextTokenIDs) GetTokenIds() []*NextTokenID

func (*ContractNextTokenIDs) ProtoMessage

func (*ContractNextTokenIDs) ProtoMessage()

func (*ContractNextTokenIDs) ProtoReflect

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

func (*ContractNextTokenIDs) Reset

func (x *ContractNextTokenIDs) Reset()

func (*ContractNextTokenIDs) String

func (x *ContractNextTokenIDs) String() string

type ContractStatistics

type ContractStatistics struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// statistics
	Statistics []*ClassStatistics `protobuf:"bytes,2,rep,name=statistics,proto3" json:"statistics,omitempty"`
	// contains filtered or unexported fields
}

ContractStatistics defines statistics belong to a contract.

func (*ContractStatistics) Descriptor deprecated

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

Deprecated: Use ContractStatistics.ProtoReflect.Descriptor instead.

func (*ContractStatistics) GetContractId

func (x *ContractStatistics) GetContractId() string

func (*ContractStatistics) GetStatistics

func (x *ContractStatistics) GetStatistics() []*ClassStatistics

func (*ContractStatistics) ProtoMessage

func (*ContractStatistics) ProtoMessage()

func (*ContractStatistics) ProtoReflect

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

func (*ContractStatistics) Reset

func (x *ContractStatistics) Reset()

func (*ContractStatistics) String

func (x *ContractStatistics) String() string

type EventAuthorizedOperator

type EventAuthorizedOperator struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of a holder which authorized the `operator` address as an operator.
	Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
	// address which became an operator of `holder`.
	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
	// contains filtered or unexported fields
}

EventAuthorizedOperator is emitted when a holder authorizes an operator to manipulate its tokens.

Since: 0.46.0 (finschia)

func (*EventAuthorizedOperator) Descriptor deprecated

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

Deprecated: Use EventAuthorizedOperator.ProtoReflect.Descriptor instead.

func (*EventAuthorizedOperator) GetContractId

func (x *EventAuthorizedOperator) GetContractId() string

func (*EventAuthorizedOperator) GetHolder

func (x *EventAuthorizedOperator) GetHolder() string

func (*EventAuthorizedOperator) GetOperator

func (x *EventAuthorizedOperator) GetOperator() string

func (*EventAuthorizedOperator) ProtoMessage

func (*EventAuthorizedOperator) ProtoMessage()

func (*EventAuthorizedOperator) ProtoReflect

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

func (*EventAuthorizedOperator) Reset

func (x *EventAuthorizedOperator) Reset()

func (*EventAuthorizedOperator) String

func (x *EventAuthorizedOperator) String() string

type EventBurned

type EventBurned struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggered the burn.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// holder whose tokens were burned.
	From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	// amount of tokens burned.
	Amount []*Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

EventBurned is emitted when tokens are burnt.

Since: 0.46.0 (finschia)

func (*EventBurned) Descriptor deprecated

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

Deprecated: Use EventBurned.ProtoReflect.Descriptor instead.

func (*EventBurned) GetAmount

func (x *EventBurned) GetAmount() []*Coin

func (*EventBurned) GetContractId

func (x *EventBurned) GetContractId() string

func (*EventBurned) GetFrom

func (x *EventBurned) GetFrom() string

func (*EventBurned) GetOperator

func (x *EventBurned) GetOperator() string

func (*EventBurned) ProtoMessage

func (*EventBurned) ProtoMessage()

func (*EventBurned) ProtoReflect

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

func (*EventBurned) Reset

func (x *EventBurned) Reset()

func (*EventBurned) String

func (x *EventBurned) String() string

type EventCreatedContract

type EventCreatedContract struct {

	// address which created the contract.
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// name of the contract.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// metadata of the contract.
	Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"`
	// uri for the contract image stored off chain.
	Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

EventCreatedContract is emitted when a new contract is created.

Since: 0.46.0 (finschia)

func (*EventCreatedContract) Descriptor deprecated

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

Deprecated: Use EventCreatedContract.ProtoReflect.Descriptor instead.

func (*EventCreatedContract) GetContractId

func (x *EventCreatedContract) GetContractId() string

func (*EventCreatedContract) GetCreator

func (x *EventCreatedContract) GetCreator() string

func (*EventCreatedContract) GetMeta

func (x *EventCreatedContract) GetMeta() string

func (*EventCreatedContract) GetName

func (x *EventCreatedContract) GetName() string

func (*EventCreatedContract) GetUri

func (x *EventCreatedContract) GetUri() string

func (*EventCreatedContract) ProtoMessage

func (*EventCreatedContract) ProtoMessage()

func (*EventCreatedContract) ProtoReflect

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

func (*EventCreatedContract) Reset

func (x *EventCreatedContract) Reset()

func (*EventCreatedContract) String

func (x *EventCreatedContract) String() string

type EventCreatedNFTClass

type EventCreatedNFTClass struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggered the create.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// token type associated with the token class.
	// refer to TokenType for the definition.
	TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	// name of the token class.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// metadata of the token class.
	Meta string `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

EventCreatedNFTClass is emitted when a new non-fungible token class is created.

Since: 0.46.0 (finschia)

func (*EventCreatedNFTClass) Descriptor deprecated

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

Deprecated: Use EventCreatedNFTClass.ProtoReflect.Descriptor instead.

func (*EventCreatedNFTClass) GetContractId

func (x *EventCreatedNFTClass) GetContractId() string

func (*EventCreatedNFTClass) GetMeta

func (x *EventCreatedNFTClass) GetMeta() string

func (*EventCreatedNFTClass) GetName

func (x *EventCreatedNFTClass) GetName() string

func (*EventCreatedNFTClass) GetOperator

func (x *EventCreatedNFTClass) GetOperator() string

func (*EventCreatedNFTClass) GetTokenType

func (x *EventCreatedNFTClass) GetTokenType() string

func (*EventCreatedNFTClass) ProtoMessage

func (*EventCreatedNFTClass) ProtoMessage()

func (*EventCreatedNFTClass) ProtoReflect

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

func (*EventCreatedNFTClass) Reset

func (x *EventCreatedNFTClass) Reset()

func (*EventCreatedNFTClass) String

func (x *EventCreatedNFTClass) String() string

type EventGranted

type EventGranted struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the granter which grants the permission.
	Granter string `protobuf:"bytes,2,opt,name=granter,proto3" json:"granter,omitempty"`
	// address of the grantee.
	Grantee string `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// permission on the contract.
	Permission Permission `protobuf:"varint,4,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

EventGranted is emitted when a granter grants its permission to a grantee.

Info: `granter` would be empty if the permission is granted by an issuance.

Since: 0.46.0 (finschia)

func (*EventGranted) Descriptor deprecated

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

Deprecated: Use EventGranted.ProtoReflect.Descriptor instead.

func (*EventGranted) GetContractId

func (x *EventGranted) GetContractId() string

func (*EventGranted) GetGrantee

func (x *EventGranted) GetGrantee() string

func (*EventGranted) GetGranter

func (x *EventGranted) GetGranter() string

func (*EventGranted) GetPermission

func (x *EventGranted) GetPermission() Permission

func (*EventGranted) ProtoMessage

func (*EventGranted) ProtoMessage()

func (*EventGranted) ProtoReflect

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

func (*EventGranted) Reset

func (x *EventGranted) Reset()

func (*EventGranted) String

func (x *EventGranted) String() string

type EventMintedNFT

type EventMintedNFT struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggered the mint.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// recipient of the tokens.
	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// tokens minted.
	Tokens []*NFT `protobuf:"bytes,4,rep,name=tokens,proto3" json:"tokens,omitempty"`
	// contains filtered or unexported fields
}

EventMintedNFT is emitted when non-fungible tokens are minted.

Since: 0.46.0 (finschia)

func (*EventMintedNFT) Descriptor deprecated

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

Deprecated: Use EventMintedNFT.ProtoReflect.Descriptor instead.

func (*EventMintedNFT) GetContractId

func (x *EventMintedNFT) GetContractId() string

func (*EventMintedNFT) GetOperator

func (x *EventMintedNFT) GetOperator() string

func (*EventMintedNFT) GetTo

func (x *EventMintedNFT) GetTo() string

func (*EventMintedNFT) GetTokens

func (x *EventMintedNFT) GetTokens() []*NFT

func (*EventMintedNFT) ProtoMessage

func (*EventMintedNFT) ProtoMessage()

func (*EventMintedNFT) ProtoReflect

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

func (*EventMintedNFT) Reset

func (x *EventMintedNFT) Reset()

func (*EventMintedNFT) String

func (x *EventMintedNFT) String() string

type EventModifiedContract

type EventModifiedContract struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggered the modify.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// changes of the attributes applied.
	// possible attribute keys are same as those of MsgModify.
	// deprecated "base_img_uri" has been replaced by "uri" in the events.
	Changes []*Attribute `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

EventModifiedContract is emitted when the information of a contract is modified.

Since: 0.46.0 (finschia)

func (*EventModifiedContract) Descriptor deprecated

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

Deprecated: Use EventModifiedContract.ProtoReflect.Descriptor instead.

func (*EventModifiedContract) GetChanges

func (x *EventModifiedContract) GetChanges() []*Attribute

func (*EventModifiedContract) GetContractId

func (x *EventModifiedContract) GetContractId() string

func (*EventModifiedContract) GetOperator

func (x *EventModifiedContract) GetOperator() string

func (*EventModifiedContract) ProtoMessage

func (*EventModifiedContract) ProtoMessage()

func (*EventModifiedContract) ProtoReflect

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

func (*EventModifiedContract) Reset

func (x *EventModifiedContract) Reset()

func (*EventModifiedContract) String

func (x *EventModifiedContract) String() string

type EventModifiedNFT

type EventModifiedNFT struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggered the modify.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// token id associated with the non-fungible token.
	TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// changes of the attributes applied.
	// possible attribute keys are same as those of MsgModify.
	Changes []*Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

EventModifiedNFT is emitted when the information of a non-fungible token is modified.

Since: 0.46.0 (finschia)

func (*EventModifiedNFT) Descriptor deprecated

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

Deprecated: Use EventModifiedNFT.ProtoReflect.Descriptor instead.

func (*EventModifiedNFT) GetChanges

func (x *EventModifiedNFT) GetChanges() []*Attribute

func (*EventModifiedNFT) GetContractId

func (x *EventModifiedNFT) GetContractId() string

func (*EventModifiedNFT) GetOperator

func (x *EventModifiedNFT) GetOperator() string

func (*EventModifiedNFT) GetTokenId

func (x *EventModifiedNFT) GetTokenId() string

func (*EventModifiedNFT) ProtoMessage

func (*EventModifiedNFT) ProtoMessage()

func (*EventModifiedNFT) ProtoReflect

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

func (*EventModifiedNFT) Reset

func (x *EventModifiedNFT) Reset()

func (*EventModifiedNFT) String

func (x *EventModifiedNFT) String() string

type EventModifiedTokenClass

type EventModifiedTokenClass struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggered the modify.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// token type associated with the token class.
	// refer to TokenType for the definition.
	TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	// changes of the attributes applied.
	// possible attribute keys are same as those of MsgModify.
	Changes []*Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes,omitempty"`
	// type name of the token class.
	TypeName string `protobuf:"bytes,5,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
	// contains filtered or unexported fields
}

EventModifiedTokenClass is emitted when the information of a token class is modified.

Since: 0.46.0 (finschia)

func (*EventModifiedTokenClass) Descriptor deprecated

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

Deprecated: Use EventModifiedTokenClass.ProtoReflect.Descriptor instead.

func (*EventModifiedTokenClass) GetChanges

func (x *EventModifiedTokenClass) GetChanges() []*Attribute

func (*EventModifiedTokenClass) GetContractId

func (x *EventModifiedTokenClass) GetContractId() string

func (*EventModifiedTokenClass) GetOperator

func (x *EventModifiedTokenClass) GetOperator() string

func (*EventModifiedTokenClass) GetTokenType

func (x *EventModifiedTokenClass) GetTokenType() string

func (*EventModifiedTokenClass) GetTypeName

func (x *EventModifiedTokenClass) GetTypeName() string

func (*EventModifiedTokenClass) ProtoMessage

func (*EventModifiedTokenClass) ProtoMessage()

func (*EventModifiedTokenClass) ProtoReflect

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

func (*EventModifiedTokenClass) Reset

func (x *EventModifiedTokenClass) Reset()

func (*EventModifiedTokenClass) String

func (x *EventModifiedTokenClass) String() string

type EventRenounced

type EventRenounced struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the grantee which abandons its grant.
	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// permission on the contract.
	Permission Permission `protobuf:"varint,3,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

EventRenounced is emitted when a grantee renounced its permission.

Since: 0.46.0 (finschia)

func (*EventRenounced) Descriptor deprecated

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

Deprecated: Use EventRenounced.ProtoReflect.Descriptor instead.

func (*EventRenounced) GetContractId

func (x *EventRenounced) GetContractId() string

func (*EventRenounced) GetGrantee

func (x *EventRenounced) GetGrantee() string

func (*EventRenounced) GetPermission

func (x *EventRenounced) GetPermission() Permission

func (*EventRenounced) ProtoMessage

func (*EventRenounced) ProtoMessage()

func (*EventRenounced) ProtoReflect

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

func (*EventRenounced) Reset

func (x *EventRenounced) Reset()

func (*EventRenounced) String

func (x *EventRenounced) String() string

type EventRevokedOperator

type EventRevokedOperator struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of a holder which revoked the `operator` address as an operator.
	Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
	// address which was revoked as an operator of `holder`.
	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
	// contains filtered or unexported fields
}

EventRevokedOperator is emitted when an authorization is revoked.

Since: 0.46.0 (finschia)

func (*EventRevokedOperator) Descriptor deprecated

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

Deprecated: Use EventRevokedOperator.ProtoReflect.Descriptor instead.

func (*EventRevokedOperator) GetContractId

func (x *EventRevokedOperator) GetContractId() string

func (*EventRevokedOperator) GetHolder

func (x *EventRevokedOperator) GetHolder() string

func (*EventRevokedOperator) GetOperator

func (x *EventRevokedOperator) GetOperator() string

func (*EventRevokedOperator) ProtoMessage

func (*EventRevokedOperator) ProtoMessage()

func (*EventRevokedOperator) ProtoReflect

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

func (*EventRevokedOperator) Reset

func (x *EventRevokedOperator) Reset()

func (*EventRevokedOperator) String

func (x *EventRevokedOperator) String() string

type EventSent

type EventSent struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggered the send.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// holder whose tokens were sent.
	From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	// recipient of the tokens.
	To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
	// amount of tokens sent.
	Amount []*Coin `protobuf:"bytes,5,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

EventSent is emitted when tokens are transferred.

Since: 0.46.0 (finschia)

func (*EventSent) Descriptor deprecated

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

Deprecated: Use EventSent.ProtoReflect.Descriptor instead.

func (*EventSent) GetAmount

func (x *EventSent) GetAmount() []*Coin

func (*EventSent) GetContractId

func (x *EventSent) GetContractId() string

func (*EventSent) GetFrom

func (x *EventSent) GetFrom() string

func (*EventSent) GetOperator

func (x *EventSent) GetOperator() string

func (*EventSent) GetTo

func (x *EventSent) GetTo() string

func (*EventSent) ProtoMessage

func (*EventSent) ProtoMessage()

func (*EventSent) ProtoReflect

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

func (*EventSent) Reset

func (x *EventSent) Reset()

func (*EventSent) String

func (x *EventSent) String() string

type FTClass deprecated

type FTClass struct {

	// id defines the unique identifier of the token class.
	// Note: size of the class id is 8 in length.
	// Note: token id of the fungible token would be `id` + `00000000`.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name defines the human-readable name of the token class.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// meta is a brief description of the token class.
	Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// decimals is the number of decimals which one must divide the amount by to get its user representation.
	Decimals int32 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// mintable represents whether the token class is allowed to mint or burn its tokens.
	Mintable bool `protobuf:"varint,5,opt,name=mintable,proto3" json:"mintable,omitempty"`
	// contains filtered or unexported fields
}

FTClass defines the class of fungible token.

Since: 0.46.0 (finschia)

Deprecated: Do not use.

func (*FTClass) Descriptor deprecated

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

Deprecated: Use FTClass.ProtoReflect.Descriptor instead.

func (*FTClass) GetDecimals

func (x *FTClass) GetDecimals() int32

func (*FTClass) GetId

func (x *FTClass) GetId() string

func (*FTClass) GetMeta

func (x *FTClass) GetMeta() string

func (*FTClass) GetMintable

func (x *FTClass) GetMintable() bool

func (*FTClass) GetName

func (x *FTClass) GetName() string

func (*FTClass) ProtoMessage

func (*FTClass) ProtoMessage()

func (*FTClass) ProtoReflect

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

func (*FTClass) Reset

func (x *FTClass) Reset()

func (*FTClass) String

func (x *FTClass) String() string

type GenesisState

type GenesisState struct {

	// params defines all the paramaters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contracts defines the metadata of the contracts.
	Contracts []*Contract `protobuf:"bytes,2,rep,name=contracts,proto3" json:"contracts,omitempty"`
	// next ids for token classes.
	NextClassIds []*NextClassIDs `protobuf:"bytes,3,rep,name=next_class_ids,json=nextClassIds,proto3" json:"next_class_ids,omitempty"`
	// classes defines the metadata of the tokens.
	Classes []*ContractClasses `protobuf:"bytes,4,rep,name=classes,proto3" json:"classes,omitempty"`
	// next ids for (non-fungible) tokens.
	NextTokenIds []*ContractNextTokenIDs `protobuf:"bytes,5,rep,name=next_token_ids,json=nextTokenIds,proto3" json:"next_token_ids,omitempty"`
	// balances is an array containing the balances of all the accounts.
	Balances []*ContractBalances `protobuf:"bytes,6,rep,name=balances,proto3" json:"balances,omitempty"`
	// nfts is an array containing the nfts.
	Nfts []*ContractNFTs `protobuf:"bytes,7,rep,name=nfts,proto3" json:"nfts,omitempty"`
	// grants defines the grant information.
	Grants []*ContractGrants `protobuf:"bytes,9,rep,name=grants,proto3" json:"grants,omitempty"`
	// authorizations defines the approve information.
	Authorizations []*ContractAuthorizations `protobuf:"bytes,10,rep,name=authorizations,proto3" json:"authorizations,omitempty"`
	// supplies represents the total supplies of tokens.
	Supplies []*ContractStatistics `protobuf:"bytes,11,rep,name=supplies,proto3" json:"supplies,omitempty"`
	// burnts represents the total amount of burnt tokens.
	Burnts []*ContractStatistics `protobuf:"bytes,12,rep,name=burnts,proto3" json:"burnts,omitempty"`
	// class_state defines the classes state. It was class keeper's genesis state in legacy x/token.
	ClassState *ClassState `protobuf:"bytes,13,opt,name=class_state,json=classState,proto3" json:"class_state,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the collection module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetAuthorizations

func (x *GenesisState) GetAuthorizations() []*ContractAuthorizations

func (*GenesisState) GetBalances

func (x *GenesisState) GetBalances() []*ContractBalances

func (*GenesisState) GetBurnts

func (x *GenesisState) GetBurnts() []*ContractStatistics

func (*GenesisState) GetClassState

func (x *GenesisState) GetClassState() *ClassState

func (*GenesisState) GetClasses

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

func (*GenesisState) GetContracts

func (x *GenesisState) GetContracts() []*Contract

func (*GenesisState) GetGrants

func (x *GenesisState) GetGrants() []*ContractGrants

func (*GenesisState) GetNextClassIds

func (x *GenesisState) GetNextClassIds() []*NextClassIDs

func (*GenesisState) GetNextTokenIds

func (x *GenesisState) GetNextTokenIds() []*ContractNextTokenIDs

func (*GenesisState) GetNfts

func (x *GenesisState) GetNfts() []*ContractNFTs

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetSupplies

func (x *GenesisState) GetSupplies() []*ContractStatistics

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 Grant

type Grant struct {

	// address of the grantee.
	Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// permission on the contract.
	Permission Permission `protobuf:"varint,2,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

Grant defines permission given to a grantee.

Since: 0.46.0 (finschia)

func (*Grant) Descriptor deprecated

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

Deprecated: Use Grant.ProtoReflect.Descriptor instead.

func (*Grant) GetGrantee

func (x *Grant) GetGrantee() string

func (*Grant) GetPermission

func (x *Grant) GetPermission() Permission

func (*Grant) ProtoMessage

func (*Grant) ProtoMessage()

func (*Grant) ProtoReflect

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

func (*Grant) Reset

func (x *Grant) Reset()

func (*Grant) String

func (x *Grant) String() string

type LegacyPermission deprecated

type LegacyPermission int32

Deprecated: use Permission

LegacyPermission enumerates the valid permissions on a contract.

const (
	// unspecified defines the default permission which is invalid.
	LegacyPermission_LEGACY_PERMISSION_UNSPECIFIED LegacyPermission = 0
	// issue defines a permission to create a token class.
	LegacyPermission_LEGACY_PERMISSION_ISSUE LegacyPermission = 1
	// modify defines a permission to modify a contract.
	LegacyPermission_LEGACY_PERMISSION_MODIFY LegacyPermission = 2
	// mint defines a permission to mint tokens of a contract.
	LegacyPermission_LEGACY_PERMISSION_MINT LegacyPermission = 3
	// burn defines a permission to burn tokens of a contract.
	LegacyPermission_LEGACY_PERMISSION_BURN LegacyPermission = 4
)

func (LegacyPermission) Descriptor

func (LegacyPermission) Enum

func (LegacyPermission) EnumDescriptor deprecated

func (LegacyPermission) EnumDescriptor() ([]byte, []int)

Deprecated: Use LegacyPermission.Descriptor instead.

func (LegacyPermission) Number

func (LegacyPermission) String

func (x LegacyPermission) String() string

func (LegacyPermission) Type

type MintNFTParam

type MintNFTParam struct {

	// token type or class id of the nft.
	// Note: it cannot start with zero.
	// refer to TokenType for the definition.
	TokenType string `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	// name defines the human-readable name of the nft (mandatory).
	// Note: it has an app-specific limit in length.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// meta is a brief description of the nft.
	// Note: it has an app-specific limit in length.
	Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

MintNFTParam defines a parameter for minting nft.

func (*MintNFTParam) Descriptor deprecated

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

Deprecated: Use MintNFTParam.ProtoReflect.Descriptor instead.

func (*MintNFTParam) GetMeta

func (x *MintNFTParam) GetMeta() string

func (*MintNFTParam) GetName

func (x *MintNFTParam) GetName() string

func (*MintNFTParam) GetTokenType

func (x *MintNFTParam) GetTokenType() string

func (*MintNFTParam) ProtoMessage

func (*MintNFTParam) ProtoMessage()

func (*MintNFTParam) ProtoReflect

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

func (*MintNFTParam) Reset

func (x *MintNFTParam) Reset()

func (*MintNFTParam) String

func (x *MintNFTParam) String() string

type MsgAuthorizeOperator

type MsgAuthorizeOperator struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the holder who allows the manipulation of its token.
	Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
	// address which the manipulation is allowed to.
	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
	// contains filtered or unexported fields
}

MsgAuthorizeOperator is the Msg/AuthorizeOperator request type.

func (*MsgAuthorizeOperator) Descriptor deprecated

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

Deprecated: Use MsgAuthorizeOperator.ProtoReflect.Descriptor instead.

func (*MsgAuthorizeOperator) GetContractId

func (x *MsgAuthorizeOperator) GetContractId() string

func (*MsgAuthorizeOperator) GetHolder

func (x *MsgAuthorizeOperator) GetHolder() string

func (*MsgAuthorizeOperator) GetOperator

func (x *MsgAuthorizeOperator) GetOperator() string

func (*MsgAuthorizeOperator) ProtoMessage

func (*MsgAuthorizeOperator) ProtoMessage()

func (*MsgAuthorizeOperator) ProtoReflect

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

func (*MsgAuthorizeOperator) Reset

func (x *MsgAuthorizeOperator) Reset()

func (*MsgAuthorizeOperator) String

func (x *MsgAuthorizeOperator) String() string

type MsgAuthorizeOperatorResponse

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

MsgAuthorizeOperatorResponse is the Msg/AuthorizeOperator response type.

func (*MsgAuthorizeOperatorResponse) Descriptor deprecated

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

Deprecated: Use MsgAuthorizeOperatorResponse.ProtoReflect.Descriptor instead.

func (*MsgAuthorizeOperatorResponse) ProtoMessage

func (*MsgAuthorizeOperatorResponse) ProtoMessage()

func (*MsgAuthorizeOperatorResponse) ProtoReflect

func (*MsgAuthorizeOperatorResponse) Reset

func (x *MsgAuthorizeOperatorResponse) Reset()

func (*MsgAuthorizeOperatorResponse) String

type MsgBurnNFT

type MsgBurnNFT struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which the tokens will be burnt from.
	// Note: it must have the permission for the burn.
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// the token ids to burn.
	// Note: id cannot start with zero.
	TokenIds []string `protobuf:"bytes,3,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"`
	// contains filtered or unexported fields
}

MsgBurnNFT is the Msg/BurnNFT request type.

func (*MsgBurnNFT) Descriptor deprecated

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

Deprecated: Use MsgBurnNFT.ProtoReflect.Descriptor instead.

func (*MsgBurnNFT) GetContractId

func (x *MsgBurnNFT) GetContractId() string

func (*MsgBurnNFT) GetFrom

func (x *MsgBurnNFT) GetFrom() string

func (*MsgBurnNFT) GetTokenIds

func (x *MsgBurnNFT) GetTokenIds() []string

func (*MsgBurnNFT) ProtoMessage

func (*MsgBurnNFT) ProtoMessage()

func (*MsgBurnNFT) ProtoReflect

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

func (*MsgBurnNFT) Reset

func (x *MsgBurnNFT) Reset()

func (*MsgBurnNFT) String

func (x *MsgBurnNFT) String() string

type MsgBurnNFTResponse

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

MsgBurnNFTResponse is the Msg/BurnNFT response type.

func (*MsgBurnNFTResponse) Descriptor deprecated

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

Deprecated: Use MsgBurnNFTResponse.ProtoReflect.Descriptor instead.

func (*MsgBurnNFTResponse) ProtoMessage

func (*MsgBurnNFTResponse) ProtoMessage()

func (*MsgBurnNFTResponse) ProtoReflect

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

func (*MsgBurnNFTResponse) Reset

func (x *MsgBurnNFTResponse) Reset()

func (*MsgBurnNFTResponse) String

func (x *MsgBurnNFTResponse) String() string

type MsgClient

type MsgClient interface {
	// SendNFT defines a method to send non-fungible tokens from one account to another account.
	// Fires:
	// - EventSent
	SendNFT(ctx context.Context, in *MsgSendNFT, opts ...grpc.CallOption) (*MsgSendNFTResponse, error)
	// OperatorSendNFT defines a method to send non-fungible tokens from one account to another account by the operator.
	// Fires:
	// - EventSent
	OperatorSendNFT(ctx context.Context, in *MsgOperatorSendNFT, opts ...grpc.CallOption) (*MsgOperatorSendNFTResponse, error)
	// AuthorizeOperator allows one to send tokens on behalf of the holder.
	// Fires:
	// - EventAuthorizedOperator
	AuthorizeOperator(ctx context.Context, in *MsgAuthorizeOperator, opts ...grpc.CallOption) (*MsgAuthorizeOperatorResponse, error)
	// RevokeOperator revokes the authorization of the operator to send the holder's token.
	// Fires:
	// - EventRevokedOperator
	RevokeOperator(ctx context.Context, in *MsgRevokeOperator, opts ...grpc.CallOption) (*MsgRevokeOperatorResponse, error)
	// CreateContract defines a method to create a contract for collection.
	// it grants `mint`, `burn`, `modify` and `issue` permissions on the contract to its creator.
	// Fires:
	// - EventCreatedContract
	CreateContract(ctx context.Context, in *MsgCreateContract, opts ...grpc.CallOption) (*MsgCreateContractResponse, error)
	// IssueNFT defines a method to create a class of non-fungible token.
	// Fires:
	// - EventCreatedNFTClass
	// Note: it DOES grant `mint` and `burn` permissions to its issuer.
	IssueNFT(ctx context.Context, in *MsgIssueNFT, opts ...grpc.CallOption) (*MsgIssueNFTResponse, error)
	// MintNFT defines a method to mint non-fungible tokens.
	// Fires:
	// - EventMintedNFT
	MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.CallOption) (*MsgMintNFTResponse, error)
	// BurnNFT defines a method to burn non-fungible tokens.
	// Fires:
	// - EventBurned
	BurnNFT(ctx context.Context, in *MsgBurnNFT, opts ...grpc.CallOption) (*MsgBurnNFTResponse, error)
	// OperatorBurnNFT defines a method to burn non-fungible tokens of the holder by the operator.
	// Fires:
	// - EventBurned
	OperatorBurnNFT(ctx context.Context, in *MsgOperatorBurnNFT, opts ...grpc.CallOption) (*MsgOperatorBurnNFTResponse, error)
	// Modify defines a method to modify metadata.
	// Fires:
	// - EventModifiedContract
	// - EventModifiedTokenClass
	// - EventModifiedNFT
	Modify(ctx context.Context, in *MsgModify, opts ...grpc.CallOption) (*MsgModifyResponse, error)
	// GrantPermission allows one to mint or burn tokens or modify metadata.
	// Fires:
	// - EventGranted
	GrantPermission(ctx context.Context, in *MsgGrantPermission, opts ...grpc.CallOption) (*MsgGrantPermissionResponse, error)
	// RevokePermission abandons a permission.
	// Fires:
	// - EventRenounced
	RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, 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 MsgCreateContract

type MsgCreateContract struct {

	// address which all the permissions on the contract will be granted to (not a permanent property).
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// name defines the human-readable name of the contract.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// uri for the contract image stored off chain.
	Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
	// meta is a brief description of the contract.
	Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateContract is the Msg/CreateContract request type.

func (*MsgCreateContract) Descriptor deprecated

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

Deprecated: Use MsgCreateContract.ProtoReflect.Descriptor instead.

func (*MsgCreateContract) GetMeta

func (x *MsgCreateContract) GetMeta() string

func (*MsgCreateContract) GetName

func (x *MsgCreateContract) GetName() string

func (*MsgCreateContract) GetOwner

func (x *MsgCreateContract) GetOwner() string

func (*MsgCreateContract) GetUri

func (x *MsgCreateContract) GetUri() string

func (*MsgCreateContract) ProtoMessage

func (*MsgCreateContract) ProtoMessage()

func (*MsgCreateContract) ProtoReflect

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

func (*MsgCreateContract) Reset

func (x *MsgCreateContract) Reset()

func (*MsgCreateContract) String

func (x *MsgCreateContract) String() string

type MsgCreateContractResponse

type MsgCreateContractResponse struct {

	// id of the new contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateContractResponse is the Msg/CreateContract response type.

func (*MsgCreateContractResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateContractResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateContractResponse) GetContractId

func (x *MsgCreateContractResponse) GetContractId() string

func (*MsgCreateContractResponse) ProtoMessage

func (*MsgCreateContractResponse) ProtoMessage()

func (*MsgCreateContractResponse) ProtoReflect

func (*MsgCreateContractResponse) Reset

func (x *MsgCreateContractResponse) Reset()

func (*MsgCreateContractResponse) String

func (x *MsgCreateContractResponse) String() string

type MsgGrantPermission

type MsgGrantPermission struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the granter which must have the permission to give.
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// address of the grantee.
	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// permission on the contract.
	Permission string `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

MsgGrantPermission is the Msg/GrantPermission request type.

func (*MsgGrantPermission) Descriptor deprecated

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

Deprecated: Use MsgGrantPermission.ProtoReflect.Descriptor instead.

func (*MsgGrantPermission) GetContractId

func (x *MsgGrantPermission) GetContractId() string

func (*MsgGrantPermission) GetFrom

func (x *MsgGrantPermission) GetFrom() string

func (*MsgGrantPermission) GetPermission

func (x *MsgGrantPermission) GetPermission() string

func (*MsgGrantPermission) GetTo

func (x *MsgGrantPermission) GetTo() string

func (*MsgGrantPermission) ProtoMessage

func (*MsgGrantPermission) ProtoMessage()

func (*MsgGrantPermission) ProtoReflect

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

func (*MsgGrantPermission) Reset

func (x *MsgGrantPermission) Reset()

func (*MsgGrantPermission) String

func (x *MsgGrantPermission) String() string

type MsgGrantPermissionResponse

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

MsgGrantPermissionResponse is the Msg/GrantPermission response type.

func (*MsgGrantPermissionResponse) Descriptor deprecated

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

Deprecated: Use MsgGrantPermissionResponse.ProtoReflect.Descriptor instead.

func (*MsgGrantPermissionResponse) ProtoMessage

func (*MsgGrantPermissionResponse) ProtoMessage()

func (*MsgGrantPermissionResponse) ProtoReflect

func (*MsgGrantPermissionResponse) Reset

func (x *MsgGrantPermissionResponse) Reset()

func (*MsgGrantPermissionResponse) String

func (x *MsgGrantPermissionResponse) String() string

type MsgIssueNFT

type MsgIssueNFT struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// name defines the human-readable name of the token type.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// meta is a brief description of the token type.
	Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// the address of the grantee which must have the permission to issue a token.
	Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

MsgIssueNFT is the Msg/IssueNFT request type.

func (*MsgIssueNFT) Descriptor deprecated

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

Deprecated: Use MsgIssueNFT.ProtoReflect.Descriptor instead.

func (*MsgIssueNFT) GetContractId

func (x *MsgIssueNFT) GetContractId() string

func (*MsgIssueNFT) GetMeta

func (x *MsgIssueNFT) GetMeta() string

func (*MsgIssueNFT) GetName

func (x *MsgIssueNFT) GetName() string

func (*MsgIssueNFT) GetOwner

func (x *MsgIssueNFT) GetOwner() string

func (*MsgIssueNFT) ProtoMessage

func (*MsgIssueNFT) ProtoMessage()

func (*MsgIssueNFT) ProtoReflect

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

func (*MsgIssueNFT) Reset

func (x *MsgIssueNFT) Reset()

func (*MsgIssueNFT) String

func (x *MsgIssueNFT) String() string

type MsgIssueNFTResponse

type MsgIssueNFTResponse struct {

	// id of the new token type.
	// refer to TokenType for the definition.
	TokenType string `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	// contains filtered or unexported fields
}

MsgIssueNFTResponse is the Msg/IssueNFT response type.

func (*MsgIssueNFTResponse) Descriptor deprecated

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

Deprecated: Use MsgIssueNFTResponse.ProtoReflect.Descriptor instead.

func (*MsgIssueNFTResponse) GetTokenType

func (x *MsgIssueNFTResponse) GetTokenType() string

func (*MsgIssueNFTResponse) ProtoMessage

func (*MsgIssueNFTResponse) ProtoMessage()

func (*MsgIssueNFTResponse) ProtoReflect

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

func (*MsgIssueNFTResponse) Reset

func (x *MsgIssueNFTResponse) Reset()

func (*MsgIssueNFTResponse) String

func (x *MsgIssueNFTResponse) String() string

type MsgMintNFT

type MsgMintNFT struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the grantee which has the permission for the mint.
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// address which the minted token will be sent to.
	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// parameters for the minted tokens.
	Params []*MintNFTParam `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgMintNFT is the Msg/MintNFT request type.

func (*MsgMintNFT) Descriptor deprecated

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

Deprecated: Use MsgMintNFT.ProtoReflect.Descriptor instead.

func (*MsgMintNFT) GetContractId

func (x *MsgMintNFT) GetContractId() string

func (*MsgMintNFT) GetFrom

func (x *MsgMintNFT) GetFrom() string

func (*MsgMintNFT) GetParams

func (x *MsgMintNFT) GetParams() []*MintNFTParam

func (*MsgMintNFT) GetTo

func (x *MsgMintNFT) GetTo() 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 {

	// ids of the new non-fungible tokens.
	TokenIds []string `protobuf:"bytes,1,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"`
	// contains filtered or unexported fields
}

MsgMintNFTResponse is the Msg/MintNFT response type.

func (*MsgMintNFTResponse) Descriptor deprecated

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

Deprecated: Use MsgMintNFTResponse.ProtoReflect.Descriptor instead.

func (*MsgMintNFTResponse) GetTokenIds

func (x *MsgMintNFTResponse) GetTokenIds() []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 MsgModify

type MsgModify struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// the address of the grantee which must have modify permission.
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// token type of the token.
	// refer to TokenType for the definition.
	TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	// token index of the token.
	// if index is empty, it would modify the corresponding token type.
	// if index is not empty, it would modify the corresponding nft.
	// Note: if token type is of FTs, the index cannot be empty.
	TokenIndex string `protobuf:"bytes,4,opt,name=token_index,json=tokenIndex,proto3" json:"token_index,omitempty"`
	// changes to apply.
	// possible attribute keys on modifying collection: name, uri, base_img_uri (deprecated), meta.
	// possible attribute keys on modifying token type and token: name, meta.
	Changes []*Attribute `protobuf:"bytes,5,rep,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

MsgModify is the Msg/Modify request type.

func (*MsgModify) Descriptor deprecated

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

Deprecated: Use MsgModify.ProtoReflect.Descriptor instead.

func (*MsgModify) GetChanges

func (x *MsgModify) GetChanges() []*Attribute

func (*MsgModify) GetContractId

func (x *MsgModify) GetContractId() string

func (*MsgModify) GetOwner

func (x *MsgModify) GetOwner() string

func (*MsgModify) GetTokenIndex

func (x *MsgModify) GetTokenIndex() string

func (*MsgModify) GetTokenType

func (x *MsgModify) GetTokenType() string

func (*MsgModify) ProtoMessage

func (*MsgModify) ProtoMessage()

func (*MsgModify) ProtoReflect

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

func (*MsgModify) Reset

func (x *MsgModify) Reset()

func (*MsgModify) String

func (x *MsgModify) String() string

type MsgModifyResponse

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

MsgModifyResponse is the Msg/Modify response type.

func (*MsgModifyResponse) Descriptor deprecated

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

Deprecated: Use MsgModifyResponse.ProtoReflect.Descriptor instead.

func (*MsgModifyResponse) ProtoMessage

func (*MsgModifyResponse) ProtoMessage()

func (*MsgModifyResponse) ProtoReflect

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

func (*MsgModifyResponse) Reset

func (x *MsgModifyResponse) Reset()

func (*MsgModifyResponse) String

func (x *MsgModifyResponse) String() string

type MsgOperatorBurnNFT

type MsgOperatorBurnNFT struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggers the burn.
	// Note: it must have the permission for the burn.
	// Note: it must have been authorized by from.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// address which the tokens will be burnt from.
	From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	// the token ids to burn.
	// Note: id cannot start with zero.
	TokenIds []string `protobuf:"bytes,4,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"`
	// contains filtered or unexported fields
}

MsgOperatorBurnNFT is the Msg/OperatorBurnNFT request type.

func (*MsgOperatorBurnNFT) Descriptor deprecated

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

Deprecated: Use MsgOperatorBurnNFT.ProtoReflect.Descriptor instead.

func (*MsgOperatorBurnNFT) GetContractId

func (x *MsgOperatorBurnNFT) GetContractId() string

func (*MsgOperatorBurnNFT) GetFrom

func (x *MsgOperatorBurnNFT) GetFrom() string

func (*MsgOperatorBurnNFT) GetOperator

func (x *MsgOperatorBurnNFT) GetOperator() string

func (*MsgOperatorBurnNFT) GetTokenIds

func (x *MsgOperatorBurnNFT) GetTokenIds() []string

func (*MsgOperatorBurnNFT) ProtoMessage

func (*MsgOperatorBurnNFT) ProtoMessage()

func (*MsgOperatorBurnNFT) ProtoReflect

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

func (*MsgOperatorBurnNFT) Reset

func (x *MsgOperatorBurnNFT) Reset()

func (*MsgOperatorBurnNFT) String

func (x *MsgOperatorBurnNFT) String() string

type MsgOperatorBurnNFTResponse

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

MsgOperatorBurnNFTResponse is the Msg/OperatorBurnNFT response type.

func (*MsgOperatorBurnNFTResponse) Descriptor deprecated

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

Deprecated: Use MsgOperatorBurnNFTResponse.ProtoReflect.Descriptor instead.

func (*MsgOperatorBurnNFTResponse) ProtoMessage

func (*MsgOperatorBurnNFTResponse) ProtoMessage()

func (*MsgOperatorBurnNFTResponse) ProtoReflect

func (*MsgOperatorBurnNFTResponse) Reset

func (x *MsgOperatorBurnNFTResponse) Reset()

func (*MsgOperatorBurnNFTResponse) String

func (x *MsgOperatorBurnNFTResponse) String() string

type MsgOperatorSendNFT

type MsgOperatorSendNFT struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// the address of the operator.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// the address which the transfer is from.
	From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	// the address which the transfer is to.
	To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
	// the token ids to transfer.
	TokenIds []string `protobuf:"bytes,5,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"`
	// contains filtered or unexported fields
}

MsgOperatorSendNFT is the Msg/OperatorSendNFT request type.

func (*MsgOperatorSendNFT) Descriptor deprecated

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

Deprecated: Use MsgOperatorSendNFT.ProtoReflect.Descriptor instead.

func (*MsgOperatorSendNFT) GetContractId

func (x *MsgOperatorSendNFT) GetContractId() string

func (*MsgOperatorSendNFT) GetFrom

func (x *MsgOperatorSendNFT) GetFrom() string

func (*MsgOperatorSendNFT) GetOperator

func (x *MsgOperatorSendNFT) GetOperator() string

func (*MsgOperatorSendNFT) GetTo

func (x *MsgOperatorSendNFT) GetTo() string

func (*MsgOperatorSendNFT) GetTokenIds

func (x *MsgOperatorSendNFT) GetTokenIds() []string

func (*MsgOperatorSendNFT) ProtoMessage

func (*MsgOperatorSendNFT) ProtoMessage()

func (*MsgOperatorSendNFT) ProtoReflect

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

func (*MsgOperatorSendNFT) Reset

func (x *MsgOperatorSendNFT) Reset()

func (*MsgOperatorSendNFT) String

func (x *MsgOperatorSendNFT) String() string

type MsgOperatorSendNFTResponse

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

MsgOperatorSendNFTResponse is the Msg/OperatorSendNFT response type.

func (*MsgOperatorSendNFTResponse) Descriptor deprecated

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

Deprecated: Use MsgOperatorSendNFTResponse.ProtoReflect.Descriptor instead.

func (*MsgOperatorSendNFTResponse) ProtoMessage

func (*MsgOperatorSendNFTResponse) ProtoMessage()

func (*MsgOperatorSendNFTResponse) ProtoReflect

func (*MsgOperatorSendNFTResponse) Reset

func (x *MsgOperatorSendNFTResponse) Reset()

func (*MsgOperatorSendNFTResponse) String

func (x *MsgOperatorSendNFTResponse) String() string

type MsgRevokeOperator

type MsgRevokeOperator struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the holder who allows the manipulation of its token.
	Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
	// address which the manipulation is allowed to.
	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
	// contains filtered or unexported fields
}

MsgRevokeOperator is the Msg/RevokeOperator request type.

func (*MsgRevokeOperator) Descriptor deprecated

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

Deprecated: Use MsgRevokeOperator.ProtoReflect.Descriptor instead.

func (*MsgRevokeOperator) GetContractId

func (x *MsgRevokeOperator) GetContractId() string

func (*MsgRevokeOperator) GetHolder

func (x *MsgRevokeOperator) GetHolder() string

func (*MsgRevokeOperator) GetOperator

func (x *MsgRevokeOperator) GetOperator() string

func (*MsgRevokeOperator) ProtoMessage

func (*MsgRevokeOperator) ProtoMessage()

func (*MsgRevokeOperator) ProtoReflect

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

func (*MsgRevokeOperator) Reset

func (x *MsgRevokeOperator) Reset()

func (*MsgRevokeOperator) String

func (x *MsgRevokeOperator) String() string

type MsgRevokeOperatorResponse

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

MsgRevokeOperatorResponse is the Msg/RevokeOperator response type.

func (*MsgRevokeOperatorResponse) Descriptor deprecated

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

Deprecated: Use MsgRevokeOperatorResponse.ProtoReflect.Descriptor instead.

func (*MsgRevokeOperatorResponse) ProtoMessage

func (*MsgRevokeOperatorResponse) ProtoMessage()

func (*MsgRevokeOperatorResponse) ProtoReflect

func (*MsgRevokeOperatorResponse) Reset

func (x *MsgRevokeOperatorResponse) Reset()

func (*MsgRevokeOperatorResponse) String

func (x *MsgRevokeOperatorResponse) String() string

type MsgRevokePermission

type MsgRevokePermission struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the grantee which abandons the permission.
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// permission on the contract.
	Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

MsgRevokePermission is the Msg/RevokePermission request type.

func (*MsgRevokePermission) Descriptor deprecated

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

Deprecated: Use MsgRevokePermission.ProtoReflect.Descriptor instead.

func (*MsgRevokePermission) GetContractId

func (x *MsgRevokePermission) GetContractId() string

func (*MsgRevokePermission) GetFrom

func (x *MsgRevokePermission) GetFrom() string

func (*MsgRevokePermission) GetPermission

func (x *MsgRevokePermission) GetPermission() string

func (*MsgRevokePermission) ProtoMessage

func (*MsgRevokePermission) ProtoMessage()

func (*MsgRevokePermission) ProtoReflect

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

func (*MsgRevokePermission) Reset

func (x *MsgRevokePermission) Reset()

func (*MsgRevokePermission) String

func (x *MsgRevokePermission) String() string

type MsgRevokePermissionResponse

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

MsgRevokePermissionResponse is the Msg/RevokePermission response type.

func (*MsgRevokePermissionResponse) Descriptor deprecated

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

Deprecated: Use MsgRevokePermissionResponse.ProtoReflect.Descriptor instead.

func (*MsgRevokePermissionResponse) ProtoMessage

func (*MsgRevokePermissionResponse) ProtoMessage()

func (*MsgRevokePermissionResponse) ProtoReflect

func (*MsgRevokePermissionResponse) Reset

func (x *MsgRevokePermissionResponse) Reset()

func (*MsgRevokePermissionResponse) String

func (x *MsgRevokePermissionResponse) String() string

type MsgSendNFT

type MsgSendNFT struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// the address which the transfer is from.
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// the address which the transfer is to.
	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// the token ids to transfer.
	TokenIds []string `protobuf:"bytes,4,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"`
	// contains filtered or unexported fields
}

MsgSendNFT is the Msg/SendNFT request type.

func (*MsgSendNFT) Descriptor deprecated

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

Deprecated: Use MsgSendNFT.ProtoReflect.Descriptor instead.

func (*MsgSendNFT) GetContractId

func (x *MsgSendNFT) GetContractId() string

func (*MsgSendNFT) GetFrom

func (x *MsgSendNFT) GetFrom() string

func (*MsgSendNFT) GetTo

func (x *MsgSendNFT) GetTo() string

func (*MsgSendNFT) GetTokenIds

func (x *MsgSendNFT) GetTokenIds() []string

func (*MsgSendNFT) ProtoMessage

func (*MsgSendNFT) ProtoMessage()

func (*MsgSendNFT) ProtoReflect

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

func (*MsgSendNFT) Reset

func (x *MsgSendNFT) Reset()

func (*MsgSendNFT) String

func (x *MsgSendNFT) String() string

type MsgSendNFTResponse

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

MsgSendNFTResponse is the Msg/SendNFT response type.

func (*MsgSendNFTResponse) Descriptor deprecated

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

Deprecated: Use MsgSendNFTResponse.ProtoReflect.Descriptor instead.

func (*MsgSendNFTResponse) ProtoMessage

func (*MsgSendNFTResponse) ProtoMessage()

func (*MsgSendNFTResponse) ProtoReflect

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

func (*MsgSendNFTResponse) Reset

func (x *MsgSendNFTResponse) Reset()

func (*MsgSendNFTResponse) String

func (x *MsgSendNFTResponse) String() string

type MsgServer

type MsgServer interface {
	// SendNFT defines a method to send non-fungible tokens from one account to another account.
	// Fires:
	// - EventSent
	SendNFT(context.Context, *MsgSendNFT) (*MsgSendNFTResponse, error)
	// OperatorSendNFT defines a method to send non-fungible tokens from one account to another account by the operator.
	// Fires:
	// - EventSent
	OperatorSendNFT(context.Context, *MsgOperatorSendNFT) (*MsgOperatorSendNFTResponse, error)
	// AuthorizeOperator allows one to send tokens on behalf of the holder.
	// Fires:
	// - EventAuthorizedOperator
	AuthorizeOperator(context.Context, *MsgAuthorizeOperator) (*MsgAuthorizeOperatorResponse, error)
	// RevokeOperator revokes the authorization of the operator to send the holder's token.
	// Fires:
	// - EventRevokedOperator
	RevokeOperator(context.Context, *MsgRevokeOperator) (*MsgRevokeOperatorResponse, error)
	// CreateContract defines a method to create a contract for collection.
	// it grants `mint`, `burn`, `modify` and `issue` permissions on the contract to its creator.
	// Fires:
	// - EventCreatedContract
	CreateContract(context.Context, *MsgCreateContract) (*MsgCreateContractResponse, error)
	// IssueNFT defines a method to create a class of non-fungible token.
	// Fires:
	// - EventCreatedNFTClass
	// Note: it DOES grant `mint` and `burn` permissions to its issuer.
	IssueNFT(context.Context, *MsgIssueNFT) (*MsgIssueNFTResponse, error)
	// MintNFT defines a method to mint non-fungible tokens.
	// Fires:
	// - EventMintedNFT
	MintNFT(context.Context, *MsgMintNFT) (*MsgMintNFTResponse, error)
	// BurnNFT defines a method to burn non-fungible tokens.
	// Fires:
	// - EventBurned
	BurnNFT(context.Context, *MsgBurnNFT) (*MsgBurnNFTResponse, error)
	// OperatorBurnNFT defines a method to burn non-fungible tokens of the holder by the operator.
	// Fires:
	// - EventBurned
	OperatorBurnNFT(context.Context, *MsgOperatorBurnNFT) (*MsgOperatorBurnNFTResponse, error)
	// Modify defines a method to modify metadata.
	// Fires:
	// - EventModifiedContract
	// - EventModifiedTokenClass
	// - EventModifiedNFT
	Modify(context.Context, *MsgModify) (*MsgModifyResponse, error)
	// GrantPermission allows one to mint or burn tokens or modify metadata.
	// Fires:
	// - EventGranted
	GrantPermission(context.Context, *MsgGrantPermission) (*MsgGrantPermissionResponse, error)
	// RevokePermission abandons a permission.
	// Fires:
	// - EventRenounced
	RevokePermission(context.Context, *MsgRevokePermission) (*MsgRevokePermissionResponse, 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 {

	// token id defines the unique identifier of the token.
	TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// name defines the human-readable name of the token.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// meta is a brief description of the token.
	Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

NFT defines the information of non-fungible token.

Since: 0.46.0 (finschia)

func (*NFT) Descriptor deprecated

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

Deprecated: Use NFT.ProtoReflect.Descriptor instead.

func (*NFT) GetMeta

func (x *NFT) GetMeta() string

func (*NFT) GetName

func (x *NFT) GetName() string

func (*NFT) GetTokenId

func (x *NFT) GetTokenId() 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 NFTClass

type NFTClass struct {

	// id defines the unique identifier of the token class.
	// Note: size of the class id is 8 in length.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name defines the human-readable name of the token class.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// meta is a brief description of the token class.
	Meta string `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

NFTClass defines the class of non-fungible token.

Since: 0.46.0 (finschia)

func (*NFTClass) Descriptor deprecated

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

Deprecated: Use NFTClass.ProtoReflect.Descriptor instead.

func (*NFTClass) GetId

func (x *NFTClass) GetId() string

func (*NFTClass) GetMeta

func (x *NFTClass) GetMeta() string

func (*NFTClass) GetName

func (x *NFTClass) GetName() string

func (*NFTClass) ProtoMessage

func (*NFTClass) ProtoMessage()

func (*NFTClass) ProtoReflect

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

func (*NFTClass) Reset

func (x *NFTClass) Reset()

func (*NFTClass) String

func (x *NFTClass) String() string

type NextClassIDs

type NextClassIDs struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// id for the non-fungible tokens.
	NonFungible string `protobuf:"bytes,3,opt,name=non_fungible,json=nonFungible,proto3" json:"non_fungible,omitempty"`
	// contains filtered or unexported fields
}

NextClassIDs defines the next class ids of the contract.

func (*NextClassIDs) Descriptor deprecated

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

Deprecated: Use NextClassIDs.ProtoReflect.Descriptor instead.

func (*NextClassIDs) GetContractId

func (x *NextClassIDs) GetContractId() string

func (*NextClassIDs) GetNonFungible

func (x *NextClassIDs) GetNonFungible() string

func (*NextClassIDs) ProtoMessage

func (*NextClassIDs) ProtoMessage()

func (*NextClassIDs) ProtoReflect

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

func (*NextClassIDs) Reset

func (x *NextClassIDs) Reset()

func (*NextClassIDs) String

func (x *NextClassIDs) String() string

type NextTokenID

type NextTokenID struct {

	// class id associated with the token class.
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// id for the token.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

NextTokenID defines the next (non-fungible) token id of the token class.

func (*NextTokenID) Descriptor deprecated

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

Deprecated: Use NextTokenID.ProtoReflect.Descriptor instead.

func (*NextTokenID) GetClassId

func (x *NextTokenID) GetClassId() string

func (*NextTokenID) GetId

func (x *NextTokenID) GetId() string

func (*NextTokenID) ProtoMessage

func (*NextTokenID) ProtoMessage()

func (*NextTokenID) ProtoReflect

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

func (*NextTokenID) Reset

func (x *NextTokenID) Reset()

func (*NextTokenID) String

func (x *NextTokenID) String() string

type OwnerNFT deprecated

type OwnerNFT struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// id defines the unique identifier of the token.
	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// name defines the human-readable name of the token.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// meta is a brief description of the token.
	Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"`
	// owner of the token.
	Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: use NFT

OwnerNFT defines the information of non-fungible token.

func (*OwnerNFT) Descriptor deprecated

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

Deprecated: Use OwnerNFT.ProtoReflect.Descriptor instead.

func (*OwnerNFT) GetContractId

func (x *OwnerNFT) GetContractId() string

func (*OwnerNFT) GetMeta

func (x *OwnerNFT) GetMeta() string

func (*OwnerNFT) GetName

func (x *OwnerNFT) GetName() string

func (*OwnerNFT) GetOwner

func (x *OwnerNFT) GetOwner() string

func (*OwnerNFT) GetTokenId

func (x *OwnerNFT) GetTokenId() string

func (*OwnerNFT) ProtoMessage

func (*OwnerNFT) ProtoMessage()

func (*OwnerNFT) ProtoReflect

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

func (*OwnerNFT) Reset

func (x *OwnerNFT) Reset()

func (*OwnerNFT) String

func (x *OwnerNFT) String() string

type Params

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

Params defines the parameters for the collection module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

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

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type Permission

type Permission int32

Permission enumerates the valid permissions on a contract.

const (
	// unspecified defines the default permission which is invalid.
	Permission_PERMISSION_UNSPECIFIED Permission = 0
	// PERMISSION_ISSUE defines a permission to create a token class.
	Permission_PERMISSION_ISSUE Permission = 1
	// PERMISSION_MODIFY defines a permission to modify a contract.
	Permission_PERMISSION_MODIFY Permission = 2
	// PERMISSION_MINT defines a permission to mint tokens of a contract.
	Permission_PERMISSION_MINT Permission = 3
	// PERMISSION_BURN defines a permission to burn tokens of a contract.
	Permission_PERMISSION_BURN Permission = 4
)

func (Permission) Descriptor

func (Permission) Descriptor() protoreflect.EnumDescriptor

func (Permission) Enum

func (x Permission) Enum() *Permission

func (Permission) EnumDescriptor deprecated

func (Permission) EnumDescriptor() ([]byte, []int)

Deprecated: Use Permission.Descriptor instead.

func (Permission) Number

func (x Permission) Number() protoreflect.EnumNumber

func (Permission) String

func (x Permission) String() string

func (Permission) Type

type QueryAllBalancesRequest

type QueryAllBalancesRequest struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address is the address to query the balances for.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryAllBalancesRequest is the request type for the Query/AllBalances RPC method.

func (*QueryAllBalancesRequest) Descriptor deprecated

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

Deprecated: Use QueryAllBalancesRequest.ProtoReflect.Descriptor instead.

func (*QueryAllBalancesRequest) GetAddress

func (x *QueryAllBalancesRequest) GetAddress() string

func (*QueryAllBalancesRequest) GetContractId

func (x *QueryAllBalancesRequest) GetContractId() string

func (*QueryAllBalancesRequest) GetPagination

func (x *QueryAllBalancesRequest) GetPagination() *query.PageRequest

func (*QueryAllBalancesRequest) ProtoMessage

func (*QueryAllBalancesRequest) ProtoMessage()

func (*QueryAllBalancesRequest) ProtoReflect

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

func (*QueryAllBalancesRequest) Reset

func (x *QueryAllBalancesRequest) Reset()

func (*QueryAllBalancesRequest) String

func (x *QueryAllBalancesRequest) String() string

type QueryAllBalancesResponse

type QueryAllBalancesResponse struct {

	// balances is the balalces of all the tokens.
	Balances []*Coin `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method.

func (*QueryAllBalancesResponse) Descriptor deprecated

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

Deprecated: Use QueryAllBalancesResponse.ProtoReflect.Descriptor instead.

func (*QueryAllBalancesResponse) GetBalances

func (x *QueryAllBalancesResponse) GetBalances() []*Coin

func (*QueryAllBalancesResponse) GetPagination

func (x *QueryAllBalancesResponse) GetPagination() *query.PageResponse

func (*QueryAllBalancesResponse) ProtoMessage

func (*QueryAllBalancesResponse) ProtoMessage()

func (*QueryAllBalancesResponse) ProtoReflect

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

func (*QueryAllBalancesResponse) Reset

func (x *QueryAllBalancesResponse) Reset()

func (*QueryAllBalancesResponse) String

func (x *QueryAllBalancesResponse) String() string

type QueryBalanceRequest

type QueryBalanceRequest struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address is the address to query the balance for.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// token id associated with the token.
	TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,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) GetAddress

func (x *QueryBalanceRequest) GetAddress() string

func (*QueryBalanceRequest) GetContractId

func (x *QueryBalanceRequest) GetContractId() string

func (*QueryBalanceRequest) GetTokenId

func (x *QueryBalanceRequest) GetTokenId() 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 {

	// balance is the balance of the token.
	Balance *Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,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) GetBalance

func (x *QueryBalanceResponse) GetBalance() *Coin

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 QueryClient

type QueryClient interface {
	// Balance queries the balance of a single token class for a single account.
	Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error)
	// AllBalances queries the balance of all token classes for a single account.
	AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error)
	// NFTSupply queries the number of tokens from a given contract id and token type.
	NFTSupply(ctx context.Context, in *QueryNFTSupplyRequest, opts ...grpc.CallOption) (*QueryNFTSupplyResponse, error)
	// NFTMinted queries the number of minted tokens from a given contract id and token type.
	NFTMinted(ctx context.Context, in *QueryNFTMintedRequest, opts ...grpc.CallOption) (*QueryNFTMintedResponse, error)
	// NFTBurnt queries the number of burnt tokens from a given contract id and token type.
	NFTBurnt(ctx context.Context, in *QueryNFTBurntRequest, opts ...grpc.CallOption) (*QueryNFTBurntResponse, error)
	// Contract queries a contract metadata based on its contract id.
	Contract(ctx context.Context, in *QueryContractRequest, opts ...grpc.CallOption) (*QueryContractResponse, error)
	// TokenClassTypeName queries the fully qualified message type name of a token class from its class id.
	//
	// Since: 0.46.0 (finschia)
	TokenClassTypeName(ctx context.Context, in *QueryTokenClassTypeNameRequest, opts ...grpc.CallOption) (*QueryTokenClassTypeNameResponse, error)
	// TokenType queries metadata of a token type.
	TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error)
	// Token queries a metadata of a token from its token id.
	Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error)
	// GranteeGrants queries all permissions on a given grantee.
	GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error)
	// IsOperatorFor queries whether the operator is authorized by the holder.
	IsOperatorFor(ctx context.Context, in *QueryIsOperatorForRequest, opts ...grpc.CallOption) (*QueryIsOperatorForResponse, error)
	// HoldersByOperator queries holders of a given operator.
	HoldersByOperator(ctx context.Context, in *QueryHoldersByOperatorRequest, opts ...grpc.CallOption) (*QueryHoldersByOperatorResponse, 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 QueryContractRequest

type QueryContractRequest struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// contains filtered or unexported fields
}

QueryContractRequest is the request type for the Query/Contract RPC method.

func (*QueryContractRequest) Descriptor deprecated

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

Deprecated: Use QueryContractRequest.ProtoReflect.Descriptor instead.

func (*QueryContractRequest) GetContractId

func (x *QueryContractRequest) GetContractId() string

func (*QueryContractRequest) ProtoMessage

func (*QueryContractRequest) ProtoMessage()

func (*QueryContractRequest) ProtoReflect

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

func (*QueryContractRequest) Reset

func (x *QueryContractRequest) Reset()

func (*QueryContractRequest) String

func (x *QueryContractRequest) String() string

type QueryContractResponse

type QueryContractResponse struct {

	// contract is the information of the contract.
	Contract *Contract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
	// contains filtered or unexported fields
}

QueryContractResponse is the response type for the Query/Contract RPC method.

func (*QueryContractResponse) Descriptor deprecated

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

Deprecated: Use QueryContractResponse.ProtoReflect.Descriptor instead.

func (*QueryContractResponse) GetContract

func (x *QueryContractResponse) GetContract() *Contract

func (*QueryContractResponse) ProtoMessage

func (*QueryContractResponse) ProtoMessage()

func (*QueryContractResponse) ProtoReflect

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

func (*QueryContractResponse) Reset

func (x *QueryContractResponse) Reset()

func (*QueryContractResponse) String

func (x *QueryContractResponse) String() string

type QueryGranteeGrantsRequest

type QueryGranteeGrantsRequest struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// the address of the grantee.
	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method.

func (*QueryGranteeGrantsRequest) Descriptor deprecated

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

Deprecated: Use QueryGranteeGrantsRequest.ProtoReflect.Descriptor instead.

func (*QueryGranteeGrantsRequest) GetContractId

func (x *QueryGranteeGrantsRequest) GetContractId() string

func (*QueryGranteeGrantsRequest) GetGrantee

func (x *QueryGranteeGrantsRequest) GetGrantee() string

func (*QueryGranteeGrantsRequest) GetPagination

func (x *QueryGranteeGrantsRequest) GetPagination() *query.PageRequest

func (*QueryGranteeGrantsRequest) ProtoMessage

func (*QueryGranteeGrantsRequest) ProtoMessage()

func (*QueryGranteeGrantsRequest) ProtoReflect

func (*QueryGranteeGrantsRequest) Reset

func (x *QueryGranteeGrantsRequest) Reset()

func (*QueryGranteeGrantsRequest) String

func (x *QueryGranteeGrantsRequest) String() string

type QueryGranteeGrantsResponse

type QueryGranteeGrantsResponse struct {
	Grants []*Grant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method.

func (*QueryGranteeGrantsResponse) Descriptor deprecated

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

Deprecated: Use QueryGranteeGrantsResponse.ProtoReflect.Descriptor instead.

func (*QueryGranteeGrantsResponse) GetGrants

func (x *QueryGranteeGrantsResponse) GetGrants() []*Grant

func (*QueryGranteeGrantsResponse) GetPagination

func (x *QueryGranteeGrantsResponse) GetPagination() *query.PageResponse

func (*QueryGranteeGrantsResponse) ProtoMessage

func (*QueryGranteeGrantsResponse) ProtoMessage()

func (*QueryGranteeGrantsResponse) ProtoReflect

func (*QueryGranteeGrantsResponse) Reset

func (x *QueryGranteeGrantsResponse) Reset()

func (*QueryGranteeGrantsResponse) String

func (x *QueryGranteeGrantsResponse) String() string

type QueryHoldersByOperatorRequest

type QueryHoldersByOperatorRequest struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the operator.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryHoldersByOperatorRequest is the request type for the Query/HoldersByOperator RPC method.

func (*QueryHoldersByOperatorRequest) Descriptor deprecated

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

Deprecated: Use QueryHoldersByOperatorRequest.ProtoReflect.Descriptor instead.

func (*QueryHoldersByOperatorRequest) GetContractId

func (x *QueryHoldersByOperatorRequest) GetContractId() string

func (*QueryHoldersByOperatorRequest) GetOperator

func (x *QueryHoldersByOperatorRequest) GetOperator() string

func (*QueryHoldersByOperatorRequest) GetPagination

func (x *QueryHoldersByOperatorRequest) GetPagination() *query.PageRequest

func (*QueryHoldersByOperatorRequest) ProtoMessage

func (*QueryHoldersByOperatorRequest) ProtoMessage()

func (*QueryHoldersByOperatorRequest) ProtoReflect

func (*QueryHoldersByOperatorRequest) Reset

func (x *QueryHoldersByOperatorRequest) Reset()

func (*QueryHoldersByOperatorRequest) String

type QueryHoldersByOperatorResponse

type QueryHoldersByOperatorResponse struct {
	Holders []string `protobuf:"bytes,1,rep,name=holders,proto3" json:"holders,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryHoldersByOperatorResponse is the response type for the Query/HoldersByOperator RPC method.

func (*QueryHoldersByOperatorResponse) Descriptor deprecated

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

Deprecated: Use QueryHoldersByOperatorResponse.ProtoReflect.Descriptor instead.

func (*QueryHoldersByOperatorResponse) GetHolders

func (x *QueryHoldersByOperatorResponse) GetHolders() []string

func (*QueryHoldersByOperatorResponse) GetPagination

func (*QueryHoldersByOperatorResponse) ProtoMessage

func (*QueryHoldersByOperatorResponse) ProtoMessage()

func (*QueryHoldersByOperatorResponse) ProtoReflect

func (*QueryHoldersByOperatorResponse) Reset

func (x *QueryHoldersByOperatorResponse) Reset()

func (*QueryHoldersByOperatorResponse) String

type QueryIsOperatorForRequest

type QueryIsOperatorForRequest struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// the address of the operator.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// the address of the token holder.
	Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"`
	// contains filtered or unexported fields
}

QueryIsOperatorForRequest is the request type for the Query/IsOperatorFor RPC method.

func (*QueryIsOperatorForRequest) Descriptor deprecated

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

Deprecated: Use QueryIsOperatorForRequest.ProtoReflect.Descriptor instead.

func (*QueryIsOperatorForRequest) GetContractId

func (x *QueryIsOperatorForRequest) GetContractId() string

func (*QueryIsOperatorForRequest) GetHolder

func (x *QueryIsOperatorForRequest) GetHolder() string

func (*QueryIsOperatorForRequest) GetOperator

func (x *QueryIsOperatorForRequest) GetOperator() string

func (*QueryIsOperatorForRequest) ProtoMessage

func (*QueryIsOperatorForRequest) ProtoMessage()

func (*QueryIsOperatorForRequest) ProtoReflect

func (*QueryIsOperatorForRequest) Reset

func (x *QueryIsOperatorForRequest) Reset()

func (*QueryIsOperatorForRequest) String

func (x *QueryIsOperatorForRequest) String() string

type QueryIsOperatorForResponse

type QueryIsOperatorForResponse struct {
	Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"`
	// contains filtered or unexported fields
}

QueryIsOperatorForResponse is the response type for the Query/IsOperatorFor RPC method.

func (*QueryIsOperatorForResponse) Descriptor deprecated

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

Deprecated: Use QueryIsOperatorForResponse.ProtoReflect.Descriptor instead.

func (*QueryIsOperatorForResponse) GetAuthorized

func (x *QueryIsOperatorForResponse) GetAuthorized() bool

func (*QueryIsOperatorForResponse) ProtoMessage

func (*QueryIsOperatorForResponse) ProtoMessage()

func (*QueryIsOperatorForResponse) ProtoReflect

func (*QueryIsOperatorForResponse) Reset

func (x *QueryIsOperatorForResponse) Reset()

func (*QueryIsOperatorForResponse) String

func (x *QueryIsOperatorForResponse) String() string

type QueryNFTBurntRequest

type QueryNFTBurntRequest struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// token type associated with the token type.
	// refer to TokenType for the definition.
	TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	// contains filtered or unexported fields
}

QueryNFTBurntRequest is the request type for the Query/NFTBurnt RPC method.

func (*QueryNFTBurntRequest) Descriptor deprecated

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

Deprecated: Use QueryNFTBurntRequest.ProtoReflect.Descriptor instead.

func (*QueryNFTBurntRequest) GetContractId

func (x *QueryNFTBurntRequest) GetContractId() string

func (*QueryNFTBurntRequest) GetTokenType

func (x *QueryNFTBurntRequest) GetTokenType() string

func (*QueryNFTBurntRequest) ProtoMessage

func (*QueryNFTBurntRequest) ProtoMessage()

func (*QueryNFTBurntRequest) ProtoReflect

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

func (*QueryNFTBurntRequest) Reset

func (x *QueryNFTBurntRequest) Reset()

func (*QueryNFTBurntRequest) String

func (x *QueryNFTBurntRequest) String() string

type QueryNFTBurntResponse

type QueryNFTBurntResponse struct {

	// burnt is the amount of the burnt tokens.
	Burnt string `protobuf:"bytes,1,opt,name=burnt,proto3" json:"burnt,omitempty"`
	// contains filtered or unexported fields
}

QueryNFTBurntResponse is the response type for the Query/NFTBurnt RPC method.

func (*QueryNFTBurntResponse) Descriptor deprecated

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

Deprecated: Use QueryNFTBurntResponse.ProtoReflect.Descriptor instead.

func (*QueryNFTBurntResponse) GetBurnt

func (x *QueryNFTBurntResponse) GetBurnt() string

func (*QueryNFTBurntResponse) ProtoMessage

func (*QueryNFTBurntResponse) ProtoMessage()

func (*QueryNFTBurntResponse) ProtoReflect

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

func (*QueryNFTBurntResponse) Reset

func (x *QueryNFTBurntResponse) Reset()

func (*QueryNFTBurntResponse) String

func (x *QueryNFTBurntResponse) String() string

type QueryNFTMintedRequest

type QueryNFTMintedRequest struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// token type associated with the token type.
	// refer to TokenType for the definition.
	TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	// contains filtered or unexported fields
}

QueryNFTMintedRequest is the request type for the Query/NFTMinted RPC method.

func (*QueryNFTMintedRequest) Descriptor deprecated

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

Deprecated: Use QueryNFTMintedRequest.ProtoReflect.Descriptor instead.

func (*QueryNFTMintedRequest) GetContractId

func (x *QueryNFTMintedRequest) GetContractId() string

func (*QueryNFTMintedRequest) GetTokenType

func (x *QueryNFTMintedRequest) GetTokenType() string

func (*QueryNFTMintedRequest) ProtoMessage

func (*QueryNFTMintedRequest) ProtoMessage()

func (*QueryNFTMintedRequest) ProtoReflect

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

func (*QueryNFTMintedRequest) Reset

func (x *QueryNFTMintedRequest) Reset()

func (*QueryNFTMintedRequest) String

func (x *QueryNFTMintedRequest) String() string

type QueryNFTMintedResponse

type QueryNFTMintedResponse struct {

	// minted is the amount of minted tokens.
	Minted string `protobuf:"bytes,1,opt,name=minted,proto3" json:"minted,omitempty"`
	// contains filtered or unexported fields
}

QueryNFTMintedResponse is the response type for the Query/NFTMinted RPC method.

func (*QueryNFTMintedResponse) Descriptor deprecated

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

Deprecated: Use QueryNFTMintedResponse.ProtoReflect.Descriptor instead.

func (*QueryNFTMintedResponse) GetMinted

func (x *QueryNFTMintedResponse) GetMinted() string

func (*QueryNFTMintedResponse) ProtoMessage

func (*QueryNFTMintedResponse) ProtoMessage()

func (*QueryNFTMintedResponse) ProtoReflect

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

func (*QueryNFTMintedResponse) Reset

func (x *QueryNFTMintedResponse) Reset()

func (*QueryNFTMintedResponse) String

func (x *QueryNFTMintedResponse) String() string

type QueryNFTSupplyRequest

type QueryNFTSupplyRequest struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// token type associated with the token type.
	// refer to TokenType for the definition.
	TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	// contains filtered or unexported fields
}

QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method.

func (*QueryNFTSupplyRequest) Descriptor deprecated

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

Deprecated: Use QueryNFTSupplyRequest.ProtoReflect.Descriptor instead.

func (*QueryNFTSupplyRequest) GetContractId

func (x *QueryNFTSupplyRequest) GetContractId() string

func (*QueryNFTSupplyRequest) GetTokenType

func (x *QueryNFTSupplyRequest) GetTokenType() string

func (*QueryNFTSupplyRequest) ProtoMessage

func (*QueryNFTSupplyRequest) ProtoMessage()

func (*QueryNFTSupplyRequest) ProtoReflect

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

func (*QueryNFTSupplyRequest) Reset

func (x *QueryNFTSupplyRequest) Reset()

func (*QueryNFTSupplyRequest) String

func (x *QueryNFTSupplyRequest) String() string

type QueryNFTSupplyResponse

type QueryNFTSupplyResponse struct {

	// supply is the supply of the non-fungible token.
	Supply string `protobuf:"bytes,1,opt,name=supply,proto3" json:"supply,omitempty"`
	// contains filtered or unexported fields
}

QueryNFTSupplyResponse is the response type for the Query/NFTSupply RPC method.

func (*QueryNFTSupplyResponse) Descriptor deprecated

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

Deprecated: Use QueryNFTSupplyResponse.ProtoReflect.Descriptor instead.

func (*QueryNFTSupplyResponse) GetSupply

func (x *QueryNFTSupplyResponse) GetSupply() string

func (*QueryNFTSupplyResponse) ProtoMessage

func (*QueryNFTSupplyResponse) ProtoMessage()

func (*QueryNFTSupplyResponse) ProtoReflect

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

func (*QueryNFTSupplyResponse) Reset

func (x *QueryNFTSupplyResponse) Reset()

func (*QueryNFTSupplyResponse) String

func (x *QueryNFTSupplyResponse) String() string

type QueryServer

type QueryServer interface {
	// Balance queries the balance of a single token class for a single account.
	Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
	// AllBalances queries the balance of all token classes for a single account.
	AllBalances(context.Context, *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error)
	// NFTSupply queries the number of tokens from a given contract id and token type.
	NFTSupply(context.Context, *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error)
	// NFTMinted queries the number of minted tokens from a given contract id and token type.
	NFTMinted(context.Context, *QueryNFTMintedRequest) (*QueryNFTMintedResponse, error)
	// NFTBurnt queries the number of burnt tokens from a given contract id and token type.
	NFTBurnt(context.Context, *QueryNFTBurntRequest) (*QueryNFTBurntResponse, error)
	// Contract queries a contract metadata based on its contract id.
	Contract(context.Context, *QueryContractRequest) (*QueryContractResponse, error)
	// TokenClassTypeName queries the fully qualified message type name of a token class from its class id.
	//
	// Since: 0.46.0 (finschia)
	TokenClassTypeName(context.Context, *QueryTokenClassTypeNameRequest) (*QueryTokenClassTypeNameResponse, error)
	// TokenType queries metadata of a token type.
	TokenType(context.Context, *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error)
	// Token queries a metadata of a token from its token id.
	Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error)
	// GranteeGrants queries all permissions on a given grantee.
	GranteeGrants(context.Context, *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error)
	// IsOperatorFor queries whether the operator is authorized by the holder.
	IsOperatorFor(context.Context, *QueryIsOperatorForRequest) (*QueryIsOperatorForResponse, error)
	// HoldersByOperator queries holders of a given operator.
	HoldersByOperator(context.Context, *QueryHoldersByOperatorRequest) (*QueryHoldersByOperatorResponse, error)
	// contains filtered or unexported methods
}

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

type QueryTokenClassTypeNameRequest

type QueryTokenClassTypeNameRequest struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// class id associated with the token class.
	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// contains filtered or unexported fields
}

QueryTokenClassTypeNameRequest is the request type for the Query/TokenClassTypeName RPC method.

Since: 0.46.0 (finschia)

func (*QueryTokenClassTypeNameRequest) Descriptor deprecated

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

Deprecated: Use QueryTokenClassTypeNameRequest.ProtoReflect.Descriptor instead.

func (*QueryTokenClassTypeNameRequest) GetClassId

func (x *QueryTokenClassTypeNameRequest) GetClassId() string

func (*QueryTokenClassTypeNameRequest) GetContractId

func (x *QueryTokenClassTypeNameRequest) GetContractId() string

func (*QueryTokenClassTypeNameRequest) ProtoMessage

func (*QueryTokenClassTypeNameRequest) ProtoMessage()

func (*QueryTokenClassTypeNameRequest) ProtoReflect

func (*QueryTokenClassTypeNameRequest) Reset

func (x *QueryTokenClassTypeNameRequest) Reset()

func (*QueryTokenClassTypeNameRequest) String

type QueryTokenClassTypeNameResponse

type QueryTokenClassTypeNameResponse struct {

	// type name of the token class.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

QueryTokenClassTypeNameResponse is the response type for the Query/TokenClassTypeName RPC method.

Since: 0.46.0 (finschia)

func (*QueryTokenClassTypeNameResponse) Descriptor deprecated

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

Deprecated: Use QueryTokenClassTypeNameResponse.ProtoReflect.Descriptor instead.

func (*QueryTokenClassTypeNameResponse) GetName

func (*QueryTokenClassTypeNameResponse) ProtoMessage

func (*QueryTokenClassTypeNameResponse) ProtoMessage()

func (*QueryTokenClassTypeNameResponse) ProtoReflect

func (*QueryTokenClassTypeNameResponse) Reset

func (*QueryTokenClassTypeNameResponse) String

type QueryTokenRequest

type QueryTokenRequest struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// token id associated with the fungible token.
	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// contains filtered or unexported fields
}

QueryTokenRequest is the request type for the Query/Token RPC method.

func (*QueryTokenRequest) Descriptor deprecated

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

Deprecated: Use QueryTokenRequest.ProtoReflect.Descriptor instead.

func (*QueryTokenRequest) GetContractId

func (x *QueryTokenRequest) GetContractId() string

func (*QueryTokenRequest) GetTokenId

func (x *QueryTokenRequest) GetTokenId() string

func (*QueryTokenRequest) ProtoMessage

func (*QueryTokenRequest) ProtoMessage()

func (*QueryTokenRequest) ProtoReflect

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

func (*QueryTokenRequest) Reset

func (x *QueryTokenRequest) Reset()

func (*QueryTokenRequest) String

func (x *QueryTokenRequest) String() string

type QueryTokenResponse

type QueryTokenResponse struct {

	// information of the token.
	Token *anypb.Any `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

QueryTokenResponse is the response type for the Query/Token RPC method.

func (*QueryTokenResponse) Descriptor deprecated

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

Deprecated: Use QueryTokenResponse.ProtoReflect.Descriptor instead.

func (*QueryTokenResponse) GetToken

func (x *QueryTokenResponse) GetToken() *anypb.Any

func (*QueryTokenResponse) ProtoMessage

func (*QueryTokenResponse) ProtoMessage()

func (*QueryTokenResponse) ProtoReflect

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

func (*QueryTokenResponse) Reset

func (x *QueryTokenResponse) Reset()

func (*QueryTokenResponse) String

func (x *QueryTokenResponse) String() string

type QueryTokenTypeRequest

type QueryTokenTypeRequest struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// token type associated with the token type.
	// refer to TokenType for the definition.
	TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	// contains filtered or unexported fields
}

QueryTokenTypeRequest is the request type for the Query/TokenType RPC method.

func (*QueryTokenTypeRequest) Descriptor deprecated

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

Deprecated: Use QueryTokenTypeRequest.ProtoReflect.Descriptor instead.

func (*QueryTokenTypeRequest) GetContractId

func (x *QueryTokenTypeRequest) GetContractId() string

func (*QueryTokenTypeRequest) GetTokenType

func (x *QueryTokenTypeRequest) GetTokenType() string

func (*QueryTokenTypeRequest) ProtoMessage

func (*QueryTokenTypeRequest) ProtoMessage()

func (*QueryTokenTypeRequest) ProtoReflect

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

func (*QueryTokenTypeRequest) Reset

func (x *QueryTokenTypeRequest) Reset()

func (*QueryTokenTypeRequest) String

func (x *QueryTokenTypeRequest) String() string

type QueryTokenTypeResponse

type QueryTokenTypeResponse struct {

	// token type is the information of the token type.
	TokenType *TokenType `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	// contains filtered or unexported fields
}

QueryTokenTypeResponse is the response type for the Query/TokenType RPC method.

func (*QueryTokenTypeResponse) Descriptor deprecated

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

Deprecated: Use QueryTokenTypeResponse.ProtoReflect.Descriptor instead.

func (*QueryTokenTypeResponse) GetTokenType

func (x *QueryTokenTypeResponse) GetTokenType() *TokenType

func (*QueryTokenTypeResponse) ProtoMessage

func (*QueryTokenTypeResponse) ProtoMessage()

func (*QueryTokenTypeResponse) ProtoReflect

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

func (*QueryTokenTypeResponse) Reset

func (x *QueryTokenTypeResponse) Reset()

func (*QueryTokenTypeResponse) String

func (x *QueryTokenTypeResponse) String() string

type TokenType deprecated

type TokenType struct {

	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// token type defines the unique identifier of the token type.
	// the format of the value is identical to that of class_id.
	TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	// name defines the human-readable name of the token type.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// meta is a brief description of the token type.
	Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: use TokenClass

TokenType defines the information of token type. It represents a NFTClass whose class_id is token_type.

Note: There is no TokenType instance for FTClass.

func (*TokenType) Descriptor deprecated

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

Deprecated: Use TokenType.ProtoReflect.Descriptor instead.

func (*TokenType) GetContractId

func (x *TokenType) GetContractId() string

func (*TokenType) GetMeta

func (x *TokenType) GetMeta() string

func (*TokenType) GetName

func (x *TokenType) GetName() string

func (*TokenType) GetTokenType

func (x *TokenType) GetTokenType() string

func (*TokenType) ProtoMessage

func (*TokenType) ProtoMessage()

func (*TokenType) ProtoReflect

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

func (*TokenType) Reset

func (x *TokenType) Reset()

func (*TokenType) String

func (x *TokenType) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) BurnNFT

func (UnimplementedMsgServer) CreateContract

func (UnimplementedMsgServer) GrantPermission

func (UnimplementedMsgServer) IssueNFT

func (UnimplementedMsgServer) MintNFT

func (UnimplementedMsgServer) Modify

func (UnimplementedMsgServer) OperatorBurnNFT

func (UnimplementedMsgServer) OperatorSendNFT

func (UnimplementedMsgServer) RevokeOperator

func (UnimplementedMsgServer) RevokePermission

func (UnimplementedMsgServer) SendNFT

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Balance

func (UnimplementedQueryServer) Contract

func (UnimplementedQueryServer) NFTBurnt

func (UnimplementedQueryServer) NFTMinted

func (UnimplementedQueryServer) NFTSupply

func (UnimplementedQueryServer) Token

func (UnimplementedQueryServer) TokenType

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