Documentation ¶
Index ¶
- Variables
- func CalculateApproveItemsFee(cp *extensioncurrency.CurrencyPool, items []ApproveItem) (map[currency.CurrencyID][2]currency.Big, error)
- func CalculateBurnItemsFee(cp *extensioncurrency.CurrencyPool, items []BurnItem) (map[currency.CurrencyID][2]currency.Big, error)
- func CalculateDelegateItemsFee(cp *extensioncurrency.CurrencyPool, items []DelegateItem) (map[currency.CurrencyID][2]currency.Big, error)
- func CalculateMintItemsFee(cp *extensioncurrency.CurrencyPool, items []MintItem) (map[currency.CurrencyID][2]currency.Big, error)
- func CalculateSignItemsFee(cp *extensioncurrency.CurrencyPool, items []SignItem) (map[currency.CurrencyID][2]currency.Big, error)
- func CalculateTransferItemsFee(cp *extensioncurrency.CurrencyPool, items []TransferItem) (map[currency.CurrencyID][2]currency.Big, error)
- func CheckSenderEnoughBalance(holder base.Address, required map[currency.CurrencyID][2]currency.Big, ...) (map[currency.CurrencyID]currency.AmountState, error)
- func IsStateAgentKey(key string) bool
- func IsStateCollectionKey(key string) bool
- func IsStateCollectionLastIDXKey(key string) bool
- func IsStateNFTKey(key string) bool
- func IsStateNFTsKey(key string) bool
- func NewApproveProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
- func NewBurnProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
- func NewCollectionPolicyUpdaterProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
- func NewCollectionRegisterProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
- func NewDelegateProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
- func NewMintProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
- func NewSignProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
- func NewTransferProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
- func SetStateAgentsValue(st state.State, box AgentBox) (state.State, error)
- func SetStateCollectionLastIDXValue(st state.State, idx uint64) (state.State, error)
- func SetStateCollectionValue(st state.State, design nft.Design) (state.State, error)
- func SetStateNFTValue(st state.State, n nft.NFT) (state.State, error)
- func SetStateNFTsValue(st state.State, box NFTBox) (state.State, error)
- func StateCollectionLastIDXValue(st state.State) (uint64, error)
- func StateCollectionValue(st state.State) (nft.Design, error)
- func StateKeyAgents(addr base.Address, symbol extensioncurrency.ContractID) string
- func StateKeyCollection(id extensioncurrency.ContractID) string
- func StateKeyCollectionLastIDX(id extensioncurrency.ContractID) string
- func StateKeyNFT(id nft.NFTID) string
- func StateKeyNFTs(id extensioncurrency.ContractID) string
- func StateNFTValue(st state.State) (nft.NFT, error)
- type AgentBox
- func (abx AgentBox) Agents() []base.Address
- func (abx *AgentBox) Append(ag base.Address) error
- func (abx AgentBox) Bytes() []byte
- func (abx AgentBox) Collection() extensioncurrency.ContractID
- func (abx AgentBox) Equal(b AgentBox) bool
- func (abx AgentBox) Exists(ag base.Address) bool
- func (abx AgentBox) GenerateHash() valuehash.Hash
- func (abx AgentBox) Get(ag base.Address) (base.Address, error)
- func (abx AgentBox) Hash() valuehash.Hash
- func (abx AgentBox) Hint() hint.Hint
- func (abx AgentBox) IsEmpty() bool
- func (abx AgentBox) IsValid([]byte) error
- func (abx AgentBox) MarshalBSON() ([]byte, error)
- func (abx AgentBox) MarshalJSON() ([]byte, error)
- func (abx *AgentBox) Remove(ag base.Address) error
- func (abx *AgentBox) Sort(ascending bool)
- func (abx *AgentBox) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (abx *AgentBox) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type AgentBoxBSONPacker
- type AgentBoxBSONUnpacker
- type AgentBoxJSONPacker
- type AgentBoxJSONUnpacker
- type Approve
- type ApproveFact
- func (fact ApproveFact) Addresses() ([]base.Address, error)
- func (fact ApproveFact) Bytes() []byte
- func (fact ApproveFact) Currencies() []currency.CurrencyID
- func (fact ApproveFact) GenerateHash() valuehash.Hash
- func (fact ApproveFact) Hash() valuehash.Hash
- func (fact ApproveFact) IsValid(b []byte) error
- func (fact ApproveFact) Items() []ApproveItem
- func (fact ApproveFact) MarshalBSON() ([]byte, error)
- func (fact ApproveFact) MarshalJSON() ([]byte, error)
- func (fact ApproveFact) NFTs() []nft.NFTID
- func (fact ApproveFact) Rebuild() ApproveFact
- func (fact ApproveFact) Sender() base.Address
- func (fact ApproveFact) Token() []byte
- func (fact *ApproveFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *ApproveFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type ApproveFactBSONUnpacker
- type ApproveFactJSONPacker
- type ApproveFactJSONUnpacker
- type ApproveItem
- func (it ApproveItem) Addresses() ([]base.Address, error)
- func (it ApproveItem) Approved() base.Address
- func (it ApproveItem) Bytes() []byte
- func (it ApproveItem) Currency() currency.CurrencyID
- func (it ApproveItem) IsValid([]byte) error
- func (it ApproveItem) MarshalBSON() ([]byte, error)
- func (it ApproveItem) MarshalJSON() ([]byte, error)
- func (it ApproveItem) NFT() nft.NFTID
- func (it ApproveItem) Rebuild() ApproveItem
- func (it *ApproveItem) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (it *ApproveItem) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type ApproveItemBSONUnpacker
- type ApproveItemJSONPacker
- type ApproveItemJSONUnpacker
- type ApproveItemProcessor
- type ApproveProcessor
- type Burn
- type BurnFact
- func (fact BurnFact) Addresses() ([]base.Address, error)
- func (fact BurnFact) Bytes() []byte
- func (fact BurnFact) GenerateHash() valuehash.Hash
- func (fact BurnFact) Hash() valuehash.Hash
- func (fact BurnFact) IsValid(b []byte) error
- func (fact BurnFact) Items() []BurnItem
- func (fact BurnFact) MarshalBSON() ([]byte, error)
- func (fact BurnFact) MarshalJSON() ([]byte, error)
- func (fact BurnFact) NFTs() []nft.NFTID
- func (fact BurnFact) Rebuild() BurnFact
- func (fact BurnFact) Sender() base.Address
- func (fact BurnFact) Token() []byte
- func (fact *BurnFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *BurnFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type BurnFactBSONUnpacker
- type BurnFactJSONPacker
- type BurnFactJSONUnpacker
- type BurnItem
- func (it BurnItem) Bytes() []byte
- func (it BurnItem) Currency() currency.CurrencyID
- func (it BurnItem) IsValid([]byte) error
- func (it BurnItem) MarshalBSON() ([]byte, error)
- func (it BurnItem) MarshalJSON() ([]byte, error)
- func (it BurnItem) NFT() nft.NFTID
- func (it BurnItem) Rebuild() BurnItem
- func (it *BurnItem) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (it *BurnItem) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type BurnItemBSONUnpacker
- type BurnItemJSONPacker
- type BurnItemJSONUnpacker
- type BurnItemProcessor
- type BurnProcessor
- type CollectionName
- type CollectionPolicy
- func (policy CollectionPolicy) Addresses() ([]base.Address, error)
- func (policy CollectionPolicy) Bytes() []byte
- func (policy CollectionPolicy) Equal(c nft.BasePolicy) bool
- func (policy CollectionPolicy) IsValid([]byte) error
- func (p CollectionPolicy) MarshalBSON() ([]byte, error)
- func (p CollectionPolicy) MarshalJSON() ([]byte, error)
- func (policy CollectionPolicy) Name() CollectionName
- func (policy CollectionPolicy) Rebuild() nft.BasePolicy
- func (policy CollectionPolicy) Royalty() nft.PaymentParameter
- func (p *CollectionPolicy) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (p *CollectionPolicy) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- func (policy CollectionPolicy) Uri() nft.URI
- func (policy CollectionPolicy) Whites() []base.Address
- type CollectionPolicyJSONPacker
- type CollectionPolicyJSONUnpacker
- type CollectionPolicyUpdater
- type CollectionPolicyUpdaterFact
- func (fact CollectionPolicyUpdaterFact) Addresses() ([]base.Address, error)
- func (fact CollectionPolicyUpdaterFact) Bytes() []byte
- func (fact CollectionPolicyUpdaterFact) Collection() extensioncurrency.ContractID
- func (fact CollectionPolicyUpdaterFact) Currency() currency.CurrencyID
- func (fact CollectionPolicyUpdaterFact) GenerateHash() valuehash.Hash
- func (fact CollectionPolicyUpdaterFact) Hash() valuehash.Hash
- func (fact CollectionPolicyUpdaterFact) IsValid(b []byte) error
- func (fact CollectionPolicyUpdaterFact) MarshalBSON() ([]byte, error)
- func (fact CollectionPolicyUpdaterFact) MarshalJSON() ([]byte, error)
- func (fact CollectionPolicyUpdaterFact) Policy() CollectionPolicy
- func (fact CollectionPolicyUpdaterFact) Rebuild() CollectionPolicyUpdaterFact
- func (fact CollectionPolicyUpdaterFact) Sender() base.Address
- func (fact CollectionPolicyUpdaterFact) Token() []byte
- func (fact *CollectionPolicyUpdaterFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *CollectionPolicyUpdaterFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type CollectionPolicyUpdaterFactBSONUnpacker
- type CollectionPolicyUpdaterFactJSONPacker
- type CollectionPolicyUpdaterFactJSONUnpacker
- type CollectionPolicyUpdaterProcessor
- func (opp *CollectionPolicyUpdaterProcessor) Close() error
- func (opp *CollectionPolicyUpdaterProcessor) PreProcess(getState func(string) (state.State, bool, error), ...) (state.Processor, error)
- func (opp *CollectionPolicyUpdaterProcessor) Process(_ func(key string) (state.State, bool, error), ...) error
- type CollectionRegister
- type CollectionRegisterFact
- func (fact CollectionRegisterFact) Addresses() ([]base.Address, error)
- func (fact CollectionRegisterFact) Bytes() []byte
- func (fact CollectionRegisterFact) Currency() currency.CurrencyID
- func (fact CollectionRegisterFact) Form() CollectionRegisterForm
- func (fact CollectionRegisterFact) GenerateHash() valuehash.Hash
- func (fact CollectionRegisterFact) Hash() valuehash.Hash
- func (fact CollectionRegisterFact) IsValid(b []byte) error
- func (fact CollectionRegisterFact) MarshalBSON() ([]byte, error)
- func (fact CollectionRegisterFact) MarshalJSON() ([]byte, error)
- func (fact CollectionRegisterFact) Rebuild() CollectionRegisterFact
- func (fact CollectionRegisterFact) Sender() base.Address
- func (fact CollectionRegisterFact) Token() []byte
- func (fact *CollectionRegisterFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *CollectionRegisterFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type CollectionRegisterFactBSONUnpacker
- type CollectionRegisterFactJSONPacker
- type CollectionRegisterFactJSONUnpacker
- type CollectionRegisterForm
- func (form CollectionRegisterForm) Addresses() ([]base.Address, error)
- func (form CollectionRegisterForm) Bytes() []byte
- func (form CollectionRegisterForm) IsValid([]byte) error
- func (form CollectionRegisterForm) MarshalBSON() ([]byte, error)
- func (form CollectionRegisterForm) MarshalJSON() ([]byte, error)
- func (form CollectionRegisterForm) Name() CollectionName
- func (form CollectionRegisterForm) Rebuild() CollectionRegisterForm
- func (form CollectionRegisterForm) Royalty() nft.PaymentParameter
- func (form CollectionRegisterForm) Symbol() extensioncurrency.ContractID
- func (form CollectionRegisterForm) Target() base.Address
- func (form *CollectionRegisterForm) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (form *CollectionRegisterForm) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- func (form CollectionRegisterForm) Uri() nft.URI
- func (form CollectionRegisterForm) Whites() []base.Address
- type CollectionRegisterFormBSONUnpacker
- type CollectionRegisterFormJSONPacker
- type CollectionRegisterFormJSONUnpacker
- type CollectionRegisterProcessor
- type Delegate
- type DelegateFact
- func (fact DelegateFact) Addresses() ([]base.Address, error)
- func (fact DelegateFact) Bytes() []byte
- func (fact DelegateFact) Currencies() []currency.CurrencyID
- func (fact DelegateFact) GenerateHash() valuehash.Hash
- func (fact DelegateFact) Hash() valuehash.Hash
- func (fact DelegateFact) IsValid(b []byte) error
- func (fact DelegateFact) Items() []DelegateItem
- func (fact DelegateFact) MarshalBSON() ([]byte, error)
- func (fact DelegateFact) MarshalJSON() ([]byte, error)
- func (fact DelegateFact) Rebuild() DelegateFact
- func (fact DelegateFact) Sender() base.Address
- func (fact DelegateFact) Token() []byte
- func (fact *DelegateFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *DelegateFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type DelegateFactBSONUnpacker
- type DelegateFactJSONPacker
- type DelegateFactJSONUnpacker
- type DelegateItem
- func (it DelegateItem) Addresses() ([]base.Address, error)
- func (it DelegateItem) Agent() base.Address
- func (it DelegateItem) Bytes() []byte
- func (it DelegateItem) Collection() extensioncurrency.ContractID
- func (it DelegateItem) Currency() currency.CurrencyID
- func (it DelegateItem) IsValid([]byte) error
- func (it DelegateItem) MarshalBSON() ([]byte, error)
- func (it DelegateItem) MarshalJSON() ([]byte, error)
- func (it DelegateItem) Mode() DelegateMode
- func (it DelegateItem) Rebuild() DelegateItem
- func (it *DelegateItem) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (it *DelegateItem) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type DelegateItemBSONUnpacker
- type DelegateItemJSONPacker
- type DelegateItemJSONUnpacker
- type DelegateItemProcessor
- type DelegateMode
- type DelegateProcessor
- type DuplicationType
- type Mint
- type MintFact
- func (fact MintFact) Addresses() ([]base.Address, error)
- func (fact MintFact) Bytes() []byte
- func (fact MintFact) Currencies() []currency.CurrencyID
- func (fact MintFact) GenerateHash() valuehash.Hash
- func (fact MintFact) Hash() valuehash.Hash
- func (fact MintFact) IsValid(b []byte) error
- func (fact MintFact) Items() []MintItem
- func (fact MintFact) MarshalBSON() ([]byte, error)
- func (fact MintFact) MarshalJSON() ([]byte, error)
- func (fact MintFact) Rebuild() MintFact
- func (fact MintFact) Sender() base.Address
- func (fact MintFact) Token() []byte
- func (fact *MintFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *MintFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type MintFactBSONUnpacker
- type MintFactJSONPacker
- type MintFactJSONUnpacker
- type MintForm
- func (form MintForm) Addresses() ([]base.Address, error)
- func (form MintForm) Bytes() []byte
- func (form MintForm) Copyrighters() nft.Signers
- func (form MintForm) Creators() nft.Signers
- func (form MintForm) IsValid([]byte) error
- func (form MintForm) MarshalBSON() ([]byte, error)
- func (form MintForm) MarshalJSON() ([]byte, error)
- func (form MintForm) NftHash() nft.NFTHash
- func (form *MintForm) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (form *MintForm) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- func (form MintForm) Uri() nft.URI
- type MintFormBSONUnpacker
- type MintFormJSONPacker
- type MintFormJSONUnpacker
- type MintItem
- func (it MintItem) Addresses() ([]base.Address, error)
- func (it MintItem) Bytes() []byte
- func (it MintItem) Collection() extensioncurrency.ContractID
- func (it MintItem) Currency() currency.CurrencyID
- func (it MintItem) Form() MintForm
- func (it MintItem) IsValid([]byte) error
- func (it MintItem) MarshalBSON() ([]byte, error)
- func (it MintItem) MarshalJSON() ([]byte, error)
- func (it MintItem) Rebuild() MintItem
- func (it *MintItem) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (it *MintItem) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type MintItemBSONUnpacker
- type MintItemJSONPacker
- type MintItemJSONUnpacker
- type MintItemProcessor
- type MintProcessor
- type NFTBox
- func (nbx *NFTBox) Append(n nft.NFTID) error
- func (nbx NFTBox) Bytes() []byte
- func (nbx NFTBox) Equal(b NFTBox) bool
- func (nbx NFTBox) Exists(id nft.NFTID) bool
- func (nbx NFTBox) GenerateHash() valuehash.Hash
- func (nbx NFTBox) Get(id nft.NFTID) (nft.NFTID, error)
- func (nbx NFTBox) Hash() valuehash.Hash
- func (nbx NFTBox) Hint() hint.Hint
- func (nbx NFTBox) IsEmpty() bool
- func (nbx NFTBox) IsValid([]byte) error
- func (nbx NFTBox) MarshalBSON() ([]byte, error)
- func (nbx NFTBox) MarshalJSON() ([]byte, error)
- func (nbx NFTBox) NFTs() []nft.NFTID
- func (nbx *NFTBox) Remove(n nft.NFTID) error
- func (nbx *NFTBox) Sort(ascending bool)
- func (nbx *NFTBox) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (nbx *NFTBox) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type NFTBoxBSONPacker
- type NFTBoxBSONUnpacker
- type NFTBoxJSONPacker
- type NFTBoxJSONUnpacker
- type OperationProcessor
- func (opr *OperationProcessor) Cancel() error
- func (opr *OperationProcessor) Close() error
- func (opr *OperationProcessor) New(pool *storage.Statepool) prprocessor.OperationProcessor
- func (opr *OperationProcessor) PreProcess(op state.Processor) (state.Processor, error)
- func (opr *OperationProcessor) Process(op state.Processor) error
- func (opr *OperationProcessor) SetProcessor(hinter hint.Hinter, newProcessor currency.GetNewProcessor) (prprocessor.OperationProcessor, error)
- type PolicyBSONUnpacker
- type Qualification
- type Sign
- type SignFact
- func (fact SignFact) Addresses() ([]base.Address, error)
- func (fact SignFact) Bytes() []byte
- func (fact SignFact) GenerateHash() valuehash.Hash
- func (fact SignFact) Hash() valuehash.Hash
- func (fact SignFact) IsValid(b []byte) error
- func (fact SignFact) Items() []SignItem
- func (fact SignFact) MarshalBSON() ([]byte, error)
- func (fact SignFact) MarshalJSON() ([]byte, error)
- func (fact SignFact) Rebuild() SignFact
- func (fact SignFact) Sender() base.Address
- func (fact SignFact) Token() []byte
- func (fact *SignFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *SignFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type SignFactBSONUnpacker
- type SignFactJSONPacker
- type SignFactJSONUnpacker
- type SignItem
- func (it SignItem) Bytes() []byte
- func (it SignItem) Currency() currency.CurrencyID
- func (it SignItem) IsValid([]byte) error
- func (it SignItem) MarshalBSON() ([]byte, error)
- func (it SignItem) MarshalJSON() ([]byte, error)
- func (it SignItem) NFT() nft.NFTID
- func (it SignItem) Qualification() Qualification
- func (it SignItem) Rebuild() SignItem
- func (it *SignItem) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (it *SignItem) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type SignItemBSONUnpacker
- type SignItemJSONPacker
- type SignItemJSONUnpacker
- type SignItemProcessor
- type SignProcessor
- type Transfer
- type TransferFact
- func (fact TransferFact) Addresses() ([]base.Address, error)
- func (fact TransferFact) Bytes() []byte
- func (fact TransferFact) GenerateHash() valuehash.Hash
- func (fact TransferFact) Hash() valuehash.Hash
- func (fact TransferFact) IsValid(b []byte) error
- func (fact TransferFact) Items() []TransferItem
- func (fact TransferFact) MarshalBSON() ([]byte, error)
- func (fact TransferFact) MarshalJSON() ([]byte, error)
- func (fact TransferFact) Rebuild() TransferFact
- func (fact TransferFact) Sender() base.Address
- func (fact TransferFact) Token() []byte
- func (fact *TransferFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *TransferFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type TransferFactBSONUnpacker
- type TransferFactJSONPacker
- type TransferFactJSONUnpacker
- type TransferItem
- func (it TransferItem) Addresses() ([]base.Address, error)
- func (it TransferItem) Bytes() []byte
- func (it TransferItem) Currency() currency.CurrencyID
- func (it TransferItem) IsValid([]byte) error
- func (it TransferItem) MarshalBSON() ([]byte, error)
- func (it TransferItem) MarshalJSON() ([]byte, error)
- func (it TransferItem) NFT() nft.NFTID
- func (it TransferItem) Rebuild() TransferItem
- func (it TransferItem) Receiver() base.Address
- func (it *TransferItem) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (it *TransferItem) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type TransferItemBSONUnpacker
- type TransferItemJSONPacker
- type TransferItemJSONUnpacker
- type TransferItemProcessor
- type TransferProcessor
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AgentBoxType = hint.Type("mitum-nft-agent-box") AgentBoxHint = hint.NewHint(AgentBoxType, "v0.0.1") AgentBoxHinter = AgentBox{BaseHinter: hint.NewBaseHinter(AgentBoxHint)} )
View Source
var ( ApproveFactType = hint.Type("mitum-nft-approve-operation-fact") ApproveFactHint = hint.NewHint(ApproveFactType, "v0.0.1") ApproveFactHinter = ApproveFact{BaseHinter: hint.NewBaseHinter(ApproveFactHint)} ApproveType = hint.Type("mitum-nft-approve-operation") ApproveHint = hint.NewHint(ApproveType, "v0.0.1") ApproveHinter = Approve{BaseOperation: operationHinter(ApproveHint)} )
View Source
var ( ApproveItemType = hint.Type("mitum-nft-approve-item") ApproveItemHint = hint.NewHint(ApproveItemType, "v0.0.1") ApproveItemHinter = ApproveItem{BaseHinter: hint.NewBaseHinter(ApproveItemHint)} )
View Source
var ( BurnFactType = hint.Type("mitum-nft-burn-operation-fact") BurnFactHint = hint.NewHint(BurnFactType, "v0.0.1") BurnFactHinter = BurnFact{BaseHinter: hint.NewBaseHinter(BurnFactHint)} BurnType = hint.Type("mitum-nft-burn-operation") BurnHint = hint.NewHint(BurnType, "v0.0.1") BurnHinter = Burn{BaseOperation: operationHinter(BurnHint)} )
View Source
var ( BurnItemType = hint.Type("mitum-nft-burn-item") BurnItemHint = hint.NewHint(BurnItemType, "v0.0.1") BurnItemHinter = BurnItem{BaseHinter: hint.NewBaseHinter(BurnItemHint)} )
View Source
var ( CollectionPolicyUpdaterFactType = hint.Type("mitum-nft-collection-policy-updater-operation-fact") CollectionPolicyUpdaterFactHint = hint.NewHint(CollectionPolicyUpdaterFactType, "v0.0.1") CollectionPolicyUpdaterFactHinter = CollectionPolicyUpdaterFact{BaseHinter: hint.NewBaseHinter(CollectionPolicyUpdaterFactHint)} CollectionPolicyUpdaterType = hint.Type("mitum-nft-collection-policy-updater-operation") CollectionPolicyUpdaterHint = hint.NewHint(CollectionPolicyUpdaterType, "v0.0.1") CollectionPolicyUpdaterHinter = CollectionPolicyUpdater{BaseOperation: operationHinter(CollectionPolicyUpdaterHint)} )
View Source
var ( CollectionRegisterFormType = hint.Type("mitum-nft-collection-register-form") CollectionRegisterFormHint = hint.NewHint(CollectionRegisterFormType, "v0.0.1") CollectionRegisterFormHinter = CollectionRegisterForm{BaseHinter: hint.NewBaseHinter(CollectionRegisterFormHint)} )
View Source
var ( CollectionRegisterFactType = hint.Type("mitum-nft-collection-register-operation-fact") CollectionRegisterFactHint = hint.NewHint(CollectionRegisterFactType, "v0.0.1") CollectionRegisterFactHinter = CollectionRegisterFact{BaseHinter: hint.NewBaseHinter(CollectionRegisterFactHint)} CollectionRegisterType = hint.Type("mitum-nft-collection-register-operation") CollectionRegisterHint = hint.NewHint(CollectionRegisterType, "v0.0.1") CollectionRegisterHinter = CollectionRegister{BaseOperation: operationHinter(CollectionRegisterHint)} )
View Source
var ( DelegateFactType = hint.Type("mitum-nft-delegate-operation-fact") DelegateFactHint = hint.NewHint(DelegateFactType, "v0.0.1") DelegateFactHinter = DelegateFact{BaseHinter: hint.NewBaseHinter(DelegateFactHint)} DelegateType = hint.Type("mitum-nft-delegate-operation") DelegateHint = hint.NewHint(DelegateType, "v0.0.1") DelegateHinter = Delegate{BaseOperation: operationHinter(DelegateHint)} )
View Source
var ( MaxAgents = 10 MaxDelegateItems = 10 )
View Source
var ( DelegateAllow = DelegateMode("allow") DelegateCancel = DelegateMode("cancel") )
View Source
var ( DelegateItemType = hint.Type("mitum-nft-delegate-item") DelegateItemHint = hint.NewHint(DelegateItemType, "v0.0.1") DelegateItemHinter = DelegateItem{BaseHinter: hint.NewBaseHinter(DelegateItemHint)} )
View Source
var ( MintFactType = hint.Type("mitum-nft-mint-operation-fact") MintFactHint = hint.NewHint(MintFactType, "v0.0.1") MintFactHinter = MintFact{BaseHinter: hint.NewBaseHinter(MintFactHint)} MintType = hint.Type("mitum-nft-mint-operation") MintHint = hint.NewHint(MintType, "v0.0.1") MintHinter = Mint{BaseOperation: operationHinter(MintHint)} )
View Source
var ( MintFormType = hint.Type("mitum-nft-mint-form") MintFormHint = hint.NewHint(MintFormType, "v0.0.1") MintFormHinter = MintForm{BaseHinter: hint.NewBaseHinter(MintFormHint)} )
View Source
var ( MintItemType = hint.Type("mitum-nft-mint-item") MintItemHint = hint.NewHint(MintItemType, "v0.0.1") MintItemHinter = MintItem{BaseHinter: hint.NewBaseHinter(MintItemHint)} )
View Source
var ( NFTBoxType = hint.Type("mitum-nft-nft-box") NFTBoxHint = hint.NewHint(NFTBoxType, "v0.0.1") NFTBoxHinter = NFTBox{BaseHinter: hint.NewBaseHinter(NFTBoxHint)} )
View Source
var ( MinLengthCollectionName = 3 MaxLengthCollectionName = 30 ReValidCollectionName = regexp.MustCompile(`^[a-zA-Z0-9][a-zA-Z0-9\s]+$`) )
View Source
var ( CollectionPolicyType = hint.Type("mitum-nft-collection-policy") CollectionPolicyHint = hint.NewHint(CollectionPolicyType, "v0.0.1") CollectionPolicyHinter = CollectionPolicy{BaseHinter: hint.NewBaseHinter(CollectionPolicyHint)} )
View Source
var ( SignFactType = hint.Type("mitum-nft-sign-operation-fact") SignFactHint = hint.NewHint(SignFactType, "v0.0.1") SignFactHinter = SignFact{BaseHinter: hint.NewBaseHinter(SignFactHint)} SignType = hint.Type("mitum-nft-sign-operation") SignHint = hint.NewHint(SignType, "v0.0.1") SignHinter = Sign{BaseOperation: operationHinter(SignHint)} )
View Source
var ( CreatorQualification = Qualification("creator") CopyrighterQualification = Qualification("copyrighter") )
View Source
var ( SignItemType = hint.Type("mitum-nft-sign-item") SignItemHint = hint.NewHint(SignItemType, "v0.0.1") SignItemHinter = SignItem{BaseHinter: hint.NewBaseHinter(SignItemHint)} )
View Source
var ( StateKeyAgentsSuffix = ":agents" StateKeyCollectionLastIDXSuffix = ":collectionidx" StateKeyNFTsSuffix = ":nfts" StateKeyNFTSuffix = ":nft" )
View Source
var ( TransferFactType = hint.Type("mitum-nft-transfer-operation-fact") TransferFactHint = hint.NewHint(TransferFactType, "v0.0.1") TransferFactHinter = TransferFact{BaseHinter: hint.NewBaseHinter(TransferFactHint)} TransferType = hint.Type("mitum-nft-transfer-operation") TransferHint = hint.NewHint(TransferType, "v0.0.1") TransferHinter = Transfer{BaseOperation: operationHinter(TransferHint)} )
View Source
var ( TransferItemType = hint.Type("mitum-nft-transfer-item") TransferItemHint = hint.NewHint(TransferItemType, "v0.0.1") TransferItemHinter = TransferItem{BaseHinter: hint.NewBaseHinter(TransferItemHint)} )
View Source
var ApproveItemProcessorPool = sync.Pool{ New: func() interface{} { return new(ApproveItemProcessor) }, }
View Source
var ApproveProcessorPool = sync.Pool{ New: func() interface{} { return new(ApproveProcessor) }, }
View Source
var BurnItemProcessorPool = sync.Pool{ New: func() interface{} { return new(BurnItemProcessor) }, }
View Source
var BurnProcessorPool = sync.Pool{ New: func() interface{} { return new(BurnProcessor) }, }
View Source
var CollectionPolicyUpdaterProcessorPool = sync.Pool{ New: func() interface{} { return new(CollectionPolicyUpdaterProcessor) }, }
View Source
var CollectionRegisterProcessorPool = sync.Pool{ New: func() interface{} { return new(CollectionRegisterProcessor) }, }
View Source
var DelegateItemProcessorPool = sync.Pool{ New: func() interface{} { return new(DelegateItemProcessor) }, }
View Source
var DelegateProcessorPool = sync.Pool{ New: func() interface{} { return new(DelegateProcessor) }, }
View Source
var MaxApproveItems = 10
View Source
var MaxBurnItems = 10
View Source
var MaxMintItems = 10
View Source
var MaxSignItems = 10
View Source
var MaxTransferItems = 10
View Source
var MaxWhiteAddress = 10
View Source
var MintItemProcessorPool = sync.Pool{ New: func() interface{} { return new(MintItemProcessor) }, }
View Source
var MintProcessorPool = sync.Pool{ New: func() interface{} { return new(MintProcessor) }, }
View Source
var SignItemProcessorPool = sync.Pool{ New: func() interface{} { return new(SignItemProcessor) }, }
View Source
var SignProcessorPool = sync.Pool{ New: func() interface{} { return new(SignProcessor) }, }
View Source
var (
StateKeyCollectionPrefix = "collection:"
)
View Source
var TransferItemProcessorPool = sync.Pool{ New: func() interface{} { return new(TransferItemProcessor) }, }
View Source
var TransferProcessorPool = sync.Pool{ New: func() interface{} { return new(TransferProcessor) }, }
Functions ¶
func CalculateApproveItemsFee ¶
func CalculateApproveItemsFee(cp *extensioncurrency.CurrencyPool, items []ApproveItem) (map[currency.CurrencyID][2]currency.Big, error)
func CalculateBurnItemsFee ¶
func CalculateBurnItemsFee(cp *extensioncurrency.CurrencyPool, items []BurnItem) (map[currency.CurrencyID][2]currency.Big, error)
func CalculateDelegateItemsFee ¶
func CalculateDelegateItemsFee(cp *extensioncurrency.CurrencyPool, items []DelegateItem) (map[currency.CurrencyID][2]currency.Big, error)
func CalculateMintItemsFee ¶
func CalculateMintItemsFee(cp *extensioncurrency.CurrencyPool, items []MintItem) (map[currency.CurrencyID][2]currency.Big, error)
func CalculateSignItemsFee ¶
func CalculateSignItemsFee(cp *extensioncurrency.CurrencyPool, items []SignItem) (map[currency.CurrencyID][2]currency.Big, error)
func CalculateTransferItemsFee ¶
func CalculateTransferItemsFee(cp *extensioncurrency.CurrencyPool, items []TransferItem) (map[currency.CurrencyID][2]currency.Big, error)
func IsStateAgentKey ¶
func IsStateCollectionKey ¶
func IsStateNFTKey ¶
func IsStateNFTsKey ¶
func NewApproveProcessor ¶
func NewApproveProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
func NewBurnProcessor ¶
func NewBurnProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
func NewCollectionPolicyUpdaterProcessor ¶
func NewCollectionPolicyUpdaterProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
func NewCollectionRegisterProcessor ¶
func NewCollectionRegisterProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
func NewDelegateProcessor ¶
func NewDelegateProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
func NewMintProcessor ¶
func NewMintProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
func NewSignProcessor ¶
func NewSignProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
func NewTransferProcessor ¶
func NewTransferProcessor(cp *extensioncurrency.CurrencyPool) currency.GetNewProcessor
func SetStateAgentsValue ¶
func SetStateCollectionValue ¶
func StateKeyAgents ¶
func StateKeyAgents(addr base.Address, symbol extensioncurrency.ContractID) string
func StateKeyCollection ¶
func StateKeyCollection(id extensioncurrency.ContractID) string
func StateKeyCollectionLastIDX ¶
func StateKeyCollectionLastIDX(id extensioncurrency.ContractID) string
func StateKeyNFT ¶
func StateKeyNFTs ¶
func StateKeyNFTs(id extensioncurrency.ContractID) string
Types ¶
type AgentBox ¶
type AgentBox struct { hint.BaseHinter // contains filtered or unexported fields }
func NewAgentBox ¶
func NewAgentBox(symbol extensioncurrency.ContractID, agents []base.Address) AgentBox
func (AgentBox) Collection ¶
func (abx AgentBox) Collection() extensioncurrency.ContractID
func (AgentBox) GenerateHash ¶
func (AgentBox) MarshalBSON ¶
func (AgentBox) MarshalJSON ¶
type AgentBoxBSONPacker ¶
type AgentBoxBSONPacker struct { CL extensioncurrency.ContractID `bson:"collection"` AG []base.Address `bson:"agents"` }
type AgentBoxBSONUnpacker ¶
type AgentBoxBSONUnpacker struct { CL string `bson:"collection"` AG []base.AddressDecoder `bson:"agents"` }
type AgentBoxJSONPacker ¶
type AgentBoxJSONPacker struct { jsonenc.HintedHead CL extensioncurrency.ContractID `json:"collection"` AG []base.Address `json:"agents"` }
type AgentBoxJSONUnpacker ¶
type AgentBoxJSONUnpacker struct { CL string `json:"collection"` AG []base.AddressDecoder `json:"agents"` }
type Approve ¶
type Approve struct {
currency.BaseOperation
}
func NewApprove ¶
type ApproveFact ¶
type ApproveFact struct { hint.BaseHinter // contains filtered or unexported fields }
func NewApproveFact ¶
func NewApproveFact(token []byte, sender base.Address, items []ApproveItem) ApproveFact
func (ApproveFact) Bytes ¶
func (fact ApproveFact) Bytes() []byte
func (ApproveFact) Currencies ¶
func (fact ApproveFact) Currencies() []currency.CurrencyID
func (ApproveFact) GenerateHash ¶
func (fact ApproveFact) GenerateHash() valuehash.Hash
func (ApproveFact) Hash ¶
func (fact ApproveFact) Hash() valuehash.Hash
func (ApproveFact) IsValid ¶
func (fact ApproveFact) IsValid(b []byte) error
func (ApproveFact) Items ¶
func (fact ApproveFact) Items() []ApproveItem
func (ApproveFact) MarshalBSON ¶
func (fact ApproveFact) MarshalBSON() ([]byte, error)
func (ApproveFact) MarshalJSON ¶
func (fact ApproveFact) MarshalJSON() ([]byte, error)
func (ApproveFact) NFTs ¶
func (fact ApproveFact) NFTs() []nft.NFTID
func (ApproveFact) Rebuild ¶
func (fact ApproveFact) Rebuild() ApproveFact
func (ApproveFact) Sender ¶
func (fact ApproveFact) Sender() base.Address
func (ApproveFact) Token ¶
func (fact ApproveFact) Token() []byte
func (*ApproveFact) UnpackBSON ¶
func (fact *ApproveFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*ApproveFact) UnpackJSON ¶
func (fact *ApproveFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
type ApproveFactBSONUnpacker ¶
type ApproveFactJSONPacker ¶
type ApproveFactJSONPacker struct { jsonenc.HintedHead H valuehash.Hash `json:"hash"` TK []byte `json:"token"` SD base.Address `json:"sender"` IT []ApproveItem `json:"items"` }
type ApproveFactJSONUnpacker ¶
type ApproveFactJSONUnpacker struct { H valuehash.Bytes `json:"hash"` TK []byte `json:"token"` SD base.AddressDecoder `json:"sender"` IT json.RawMessage `json:"items"` }
type ApproveItem ¶
type ApproveItem struct { hint.BaseHinter // contains filtered or unexported fields }
func NewApproveItem ¶
func NewApproveItem(approved base.Address, n nft.NFTID, cid currency.CurrencyID) ApproveItem
func (ApproveItem) Approved ¶
func (it ApproveItem) Approved() base.Address
func (ApproveItem) Bytes ¶
func (it ApproveItem) Bytes() []byte
func (ApproveItem) Currency ¶
func (it ApproveItem) Currency() currency.CurrencyID
func (ApproveItem) IsValid ¶
func (it ApproveItem) IsValid([]byte) error
func (ApproveItem) MarshalBSON ¶
func (it ApproveItem) MarshalBSON() ([]byte, error)
func (ApproveItem) MarshalJSON ¶
func (it ApproveItem) MarshalJSON() ([]byte, error)
func (ApproveItem) NFT ¶
func (it ApproveItem) NFT() nft.NFTID
func (ApproveItem) Rebuild ¶
func (it ApproveItem) Rebuild() ApproveItem
func (*ApproveItem) UnpackBSON ¶
func (it *ApproveItem) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*ApproveItem) UnpackJSON ¶
func (it *ApproveItem) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
type ApproveItemBSONUnpacker ¶
type ApproveItemBSONUnpacker struct { AP base.AddressDecoder `bson:"approved"` NF bson.Raw `bson:"nft"` CR string `bson:"currency"` }
type ApproveItemJSONPacker ¶
type ApproveItemJSONPacker struct { jsonenc.HintedHead AP base.Address `json:"approved"` NF nft.NFTID `json:"nft"` CR currency.CurrencyID `json:"currency"` }
type ApproveItemJSONUnpacker ¶
type ApproveItemJSONUnpacker struct { AP base.AddressDecoder `json:"approved"` NF json.RawMessage `json:"nft"` CR string `json:"currency"` }
type ApproveItemProcessor ¶
type ApproveItemProcessor struct {
// contains filtered or unexported fields
}
func (*ApproveItemProcessor) Close ¶
func (ipp *ApproveItemProcessor) Close() error
func (*ApproveItemProcessor) PreProcess ¶
type ApproveProcessor ¶
type ApproveProcessor struct { Approve // contains filtered or unexported fields }
func (*ApproveProcessor) Close ¶
func (opp *ApproveProcessor) Close() error
func (*ApproveProcessor) PreProcess ¶
type BurnFact ¶
type BurnFact struct { hint.BaseHinter // contains filtered or unexported fields }
func (BurnFact) GenerateHash ¶
func (BurnFact) MarshalBSON ¶
func (BurnFact) MarshalJSON ¶
func (*BurnFact) UnpackBSON ¶
type BurnFactBSONUnpacker ¶
type BurnFactJSONPacker ¶
type BurnFactJSONUnpacker ¶
type BurnFactJSONUnpacker struct { H valuehash.Bytes `json:"hash"` TK []byte `json:"token"` SD base.AddressDecoder `json:"sender"` IT json.RawMessage `json:"items"` }
type BurnItem ¶
type BurnItem struct { hint.BaseHinter // contains filtered or unexported fields }
func NewBurnItem ¶
func NewBurnItem(n nft.NFTID, cid currency.CurrencyID) BurnItem
func (BurnItem) Currency ¶
func (it BurnItem) Currency() currency.CurrencyID
func (BurnItem) MarshalBSON ¶
func (BurnItem) MarshalJSON ¶
type BurnItemBSONUnpacker ¶
type BurnItemJSONPacker ¶
type BurnItemJSONPacker struct { jsonenc.HintedHead NF nft.NFTID `json:"nft"` CR currency.CurrencyID `json:"currency"` }
type BurnItemJSONUnpacker ¶
type BurnItemJSONUnpacker struct { NF json.RawMessage `json:"nft"` CR string `json:"currency"` }
type BurnItemProcessor ¶
type BurnItemProcessor struct {
// contains filtered or unexported fields
}
func (*BurnItemProcessor) Close ¶
func (ipp *BurnItemProcessor) Close() error
func (*BurnItemProcessor) PreProcess ¶
type BurnProcessor ¶
type BurnProcessor struct { Burn // contains filtered or unexported fields }
func (*BurnProcessor) Close ¶
func (opp *BurnProcessor) Close() error
func (*BurnProcessor) PreProcess ¶
type CollectionName ¶
type CollectionName string
func (CollectionName) Bytes ¶
func (cn CollectionName) Bytes() []byte
func (CollectionName) IsValid ¶
func (cn CollectionName) IsValid([]byte) error
func (CollectionName) String ¶
func (cn CollectionName) String() string
type CollectionPolicy ¶
type CollectionPolicy struct { hint.BaseHinter // contains filtered or unexported fields }
func MustNewCollectionPolicy ¶
func MustNewCollectionPolicy(name CollectionName, royalty nft.PaymentParameter, uri nft.URI, whites []base.Address) CollectionPolicy
func NewCollectionPolicy ¶
func NewCollectionPolicy(name CollectionName, royalty nft.PaymentParameter, uri nft.URI, whites []base.Address) CollectionPolicy
func (CollectionPolicy) Addresses ¶
func (policy CollectionPolicy) Addresses() ([]base.Address, error)
func (CollectionPolicy) Bytes ¶
func (policy CollectionPolicy) Bytes() []byte
func (CollectionPolicy) Equal ¶
func (policy CollectionPolicy) Equal(c nft.BasePolicy) bool
func (CollectionPolicy) IsValid ¶
func (policy CollectionPolicy) IsValid([]byte) error
func (CollectionPolicy) MarshalBSON ¶
func (p CollectionPolicy) MarshalBSON() ([]byte, error)
func (CollectionPolicy) MarshalJSON ¶
func (p CollectionPolicy) MarshalJSON() ([]byte, error)
func (CollectionPolicy) Name ¶
func (policy CollectionPolicy) Name() CollectionName
func (CollectionPolicy) Rebuild ¶
func (policy CollectionPolicy) Rebuild() nft.BasePolicy
func (CollectionPolicy) Royalty ¶
func (policy CollectionPolicy) Royalty() nft.PaymentParameter
func (*CollectionPolicy) UnpackBSON ¶
func (p *CollectionPolicy) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*CollectionPolicy) UnpackJSON ¶
func (p *CollectionPolicy) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
func (CollectionPolicy) Uri ¶
func (policy CollectionPolicy) Uri() nft.URI
func (CollectionPolicy) Whites ¶
func (policy CollectionPolicy) Whites() []base.Address
type CollectionPolicyJSONPacker ¶
type CollectionPolicyJSONPacker struct { jsonenc.HintedHead NM CollectionName `json:"name"` RY nft.PaymentParameter `json:"royalty"` UR nft.URI `json:"uri"` WH []base.Address `json:"whites"` }
type CollectionPolicyJSONUnpacker ¶
type CollectionPolicyJSONUnpacker struct { NM string `json:"name"` RY uint `json:"royalty"` UR string `json:"uri"` WH []base.AddressDecoder `json:"whites"` }
type CollectionPolicyUpdater ¶
type CollectionPolicyUpdater struct {
currency.BaseOperation
}
func NewCollectionPolicyUpdater ¶
func NewCollectionPolicyUpdater(fact CollectionPolicyUpdaterFact, fs []base.FactSign, memo string) (CollectionPolicyUpdater, error)
func (*CollectionPolicyUpdater) UnpackBSON ¶
func (op *CollectionPolicyUpdater) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*CollectionPolicyUpdater) UnpackJSON ¶
func (op *CollectionPolicyUpdater) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
type CollectionPolicyUpdaterFact ¶
type CollectionPolicyUpdaterFact struct { hint.BaseHinter // contains filtered or unexported fields }
func NewCollectionPolicyUpdaterFact ¶
func NewCollectionPolicyUpdaterFact(token []byte, sender base.Address, collection extensioncurrency.ContractID, policy CollectionPolicy, cid currency.CurrencyID) CollectionPolicyUpdaterFact
func (CollectionPolicyUpdaterFact) Addresses ¶
func (fact CollectionPolicyUpdaterFact) Addresses() ([]base.Address, error)
func (CollectionPolicyUpdaterFact) Bytes ¶
func (fact CollectionPolicyUpdaterFact) Bytes() []byte
func (CollectionPolicyUpdaterFact) Collection ¶
func (fact CollectionPolicyUpdaterFact) Collection() extensioncurrency.ContractID
func (CollectionPolicyUpdaterFact) Currency ¶
func (fact CollectionPolicyUpdaterFact) Currency() currency.CurrencyID
func (CollectionPolicyUpdaterFact) GenerateHash ¶
func (fact CollectionPolicyUpdaterFact) GenerateHash() valuehash.Hash
func (CollectionPolicyUpdaterFact) Hash ¶
func (fact CollectionPolicyUpdaterFact) Hash() valuehash.Hash
func (CollectionPolicyUpdaterFact) IsValid ¶
func (fact CollectionPolicyUpdaterFact) IsValid(b []byte) error
func (CollectionPolicyUpdaterFact) MarshalBSON ¶
func (fact CollectionPolicyUpdaterFact) MarshalBSON() ([]byte, error)
func (CollectionPolicyUpdaterFact) MarshalJSON ¶
func (fact CollectionPolicyUpdaterFact) MarshalJSON() ([]byte, error)
func (CollectionPolicyUpdaterFact) Policy ¶
func (fact CollectionPolicyUpdaterFact) Policy() CollectionPolicy
func (CollectionPolicyUpdaterFact) Rebuild ¶
func (fact CollectionPolicyUpdaterFact) Rebuild() CollectionPolicyUpdaterFact
func (CollectionPolicyUpdaterFact) Sender ¶
func (fact CollectionPolicyUpdaterFact) Sender() base.Address
func (CollectionPolicyUpdaterFact) Token ¶
func (fact CollectionPolicyUpdaterFact) Token() []byte
func (*CollectionPolicyUpdaterFact) UnpackBSON ¶
func (fact *CollectionPolicyUpdaterFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*CollectionPolicyUpdaterFact) UnpackJSON ¶
func (fact *CollectionPolicyUpdaterFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
type CollectionPolicyUpdaterFactJSONPacker ¶
type CollectionPolicyUpdaterFactJSONPacker struct { jsonenc.HintedHead H valuehash.Hash `json:"hash"` TK []byte `json:"token"` SD base.Address `json:"sender"` CL extensioncurrency.ContractID `json:"collection"` PO CollectionPolicy `json:"policy"` CR currency.CurrencyID `json:"currency"` }
type CollectionPolicyUpdaterFactJSONUnpacker ¶
type CollectionPolicyUpdaterFactJSONUnpacker struct { H valuehash.Bytes `json:"hash"` TK []byte `json:"token"` SD base.AddressDecoder `json:"sender"` CL string `json:"collection"` PO json.RawMessage `json:"policy"` CR string `json:"currency"` }
type CollectionPolicyUpdaterProcessor ¶
type CollectionPolicyUpdaterProcessor struct { CollectionPolicyUpdater // contains filtered or unexported fields }
func (*CollectionPolicyUpdaterProcessor) Close ¶
func (opp *CollectionPolicyUpdaterProcessor) Close() error
func (*CollectionPolicyUpdaterProcessor) PreProcess ¶
type CollectionRegister ¶
type CollectionRegister struct {
currency.BaseOperation
}
func NewCollectionRegister ¶
func NewCollectionRegister(fact CollectionRegisterFact, fs []base.FactSign, memo string) (CollectionRegister, error)
func (*CollectionRegister) UnpackBSON ¶
func (op *CollectionRegister) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*CollectionRegister) UnpackJSON ¶
func (op *CollectionRegister) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
type CollectionRegisterFact ¶
type CollectionRegisterFact struct { hint.BaseHinter // contains filtered or unexported fields }
func NewCollectionRegisterFact ¶
func NewCollectionRegisterFact(token []byte, sender base.Address, form CollectionRegisterForm, cid currency.CurrencyID) CollectionRegisterFact
func (CollectionRegisterFact) Addresses ¶
func (fact CollectionRegisterFact) Addresses() ([]base.Address, error)
func (CollectionRegisterFact) Bytes ¶
func (fact CollectionRegisterFact) Bytes() []byte
func (CollectionRegisterFact) Currency ¶
func (fact CollectionRegisterFact) Currency() currency.CurrencyID
func (CollectionRegisterFact) Form ¶
func (fact CollectionRegisterFact) Form() CollectionRegisterForm
func (CollectionRegisterFact) GenerateHash ¶
func (fact CollectionRegisterFact) GenerateHash() valuehash.Hash
func (CollectionRegisterFact) Hash ¶
func (fact CollectionRegisterFact) Hash() valuehash.Hash
func (CollectionRegisterFact) IsValid ¶
func (fact CollectionRegisterFact) IsValid(b []byte) error
func (CollectionRegisterFact) MarshalBSON ¶
func (fact CollectionRegisterFact) MarshalBSON() ([]byte, error)
func (CollectionRegisterFact) MarshalJSON ¶
func (fact CollectionRegisterFact) MarshalJSON() ([]byte, error)
func (CollectionRegisterFact) Rebuild ¶
func (fact CollectionRegisterFact) Rebuild() CollectionRegisterFact
func (CollectionRegisterFact) Sender ¶
func (fact CollectionRegisterFact) Sender() base.Address
func (CollectionRegisterFact) Token ¶
func (fact CollectionRegisterFact) Token() []byte
func (*CollectionRegisterFact) UnpackBSON ¶
func (fact *CollectionRegisterFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*CollectionRegisterFact) UnpackJSON ¶
func (fact *CollectionRegisterFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
type CollectionRegisterFactJSONPacker ¶
type CollectionRegisterFactJSONPacker struct { jsonenc.HintedHead H valuehash.Hash `json:"hash"` TK []byte `json:"token"` SD base.Address `json:"sender"` FO CollectionRegisterForm `json:"form"` CR currency.CurrencyID `json:"currency"` }
type CollectionRegisterFactJSONUnpacker ¶
type CollectionRegisterFactJSONUnpacker struct { H valuehash.Bytes `json:"hash"` TK []byte `json:"token"` SD base.AddressDecoder `json:"sender"` FO json.RawMessage `json:"form"` CR string `json:"currency"` }
type CollectionRegisterForm ¶
type CollectionRegisterForm struct { hint.BaseHinter // contains filtered or unexported fields }
func MustNewCollectionRegisterForm ¶
func MustNewCollectionRegisterForm(target base.Address, symbol extensioncurrency.ContractID, name CollectionName, royalty nft.PaymentParameter, uri nft.URI, whites []base.Address, ) CollectionRegisterForm
func NewCollectionRegisterForm ¶
func NewCollectionRegisterForm( target base.Address, symbol extensioncurrency.ContractID, name CollectionName, royalty nft.PaymentParameter, uri nft.URI, whites []base.Address, ) CollectionRegisterForm
func (CollectionRegisterForm) Addresses ¶
func (form CollectionRegisterForm) Addresses() ([]base.Address, error)
func (CollectionRegisterForm) Bytes ¶
func (form CollectionRegisterForm) Bytes() []byte
func (CollectionRegisterForm) IsValid ¶
func (form CollectionRegisterForm) IsValid([]byte) error
func (CollectionRegisterForm) MarshalBSON ¶
func (form CollectionRegisterForm) MarshalBSON() ([]byte, error)
func (CollectionRegisterForm) MarshalJSON ¶
func (form CollectionRegisterForm) MarshalJSON() ([]byte, error)
func (CollectionRegisterForm) Name ¶
func (form CollectionRegisterForm) Name() CollectionName
func (CollectionRegisterForm) Rebuild ¶
func (form CollectionRegisterForm) Rebuild() CollectionRegisterForm
func (CollectionRegisterForm) Royalty ¶
func (form CollectionRegisterForm) Royalty() nft.PaymentParameter
func (CollectionRegisterForm) Symbol ¶
func (form CollectionRegisterForm) Symbol() extensioncurrency.ContractID
func (CollectionRegisterForm) Target ¶
func (form CollectionRegisterForm) Target() base.Address
func (*CollectionRegisterForm) UnpackBSON ¶
func (form *CollectionRegisterForm) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*CollectionRegisterForm) UnpackJSON ¶
func (form *CollectionRegisterForm) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
func (CollectionRegisterForm) Uri ¶
func (form CollectionRegisterForm) Uri() nft.URI
func (CollectionRegisterForm) Whites ¶
func (form CollectionRegisterForm) Whites() []base.Address
type CollectionRegisterFormBSONUnpacker ¶
type CollectionRegisterFormBSONUnpacker struct { TG base.AddressDecoder `bson:"target"` SB string `bson:"symbol"` NM string `bson:"name"` RY uint `bson:"royalty"` UR string `bson:"uri"` WH []base.AddressDecoder `bson:"whites"` }
type CollectionRegisterFormJSONPacker ¶
type CollectionRegisterFormJSONPacker struct { jsonenc.HintedHead TG base.Address `json:"target"` SB extensioncurrency.ContractID `json:"symbol"` NM CollectionName `json:"name"` RY nft.PaymentParameter `json:"royalty"` UR nft.URI `json:"uri"` WH []base.Address `json:"whites"` }
type CollectionRegisterFormJSONUnpacker ¶
type CollectionRegisterFormJSONUnpacker struct { TG base.AddressDecoder `json:"target"` SB string `json:"symbol"` NM string `json:"name"` RY uint `json:"royalty"` UR string `json:"uri"` WH []base.AddressDecoder `json:"whites"` }
type CollectionRegisterProcessor ¶
type CollectionRegisterProcessor struct { CollectionRegister DesignState state.State // contains filtered or unexported fields }
func (*CollectionRegisterProcessor) Close ¶
func (opp *CollectionRegisterProcessor) Close() error
func (*CollectionRegisterProcessor) PreProcess ¶
type Delegate ¶
type Delegate struct {
currency.BaseOperation
}
func NewDelegate ¶
type DelegateFact ¶
type DelegateFact struct { hint.BaseHinter // contains filtered or unexported fields }
func NewDelegateFact ¶
func NewDelegateFact(token []byte, sender base.Address, items []DelegateItem) DelegateFact
func (DelegateFact) Bytes ¶
func (fact DelegateFact) Bytes() []byte
func (DelegateFact) Currencies ¶
func (fact DelegateFact) Currencies() []currency.CurrencyID
func (DelegateFact) GenerateHash ¶
func (fact DelegateFact) GenerateHash() valuehash.Hash
func (DelegateFact) Hash ¶
func (fact DelegateFact) Hash() valuehash.Hash
func (DelegateFact) IsValid ¶
func (fact DelegateFact) IsValid(b []byte) error
func (DelegateFact) Items ¶
func (fact DelegateFact) Items() []DelegateItem
func (DelegateFact) MarshalBSON ¶
func (fact DelegateFact) MarshalBSON() ([]byte, error)
func (DelegateFact) MarshalJSON ¶
func (fact DelegateFact) MarshalJSON() ([]byte, error)
func (DelegateFact) Rebuild ¶
func (fact DelegateFact) Rebuild() DelegateFact
func (DelegateFact) Sender ¶
func (fact DelegateFact) Sender() base.Address
func (DelegateFact) Token ¶
func (fact DelegateFact) Token() []byte
func (*DelegateFact) UnpackBSON ¶
func (fact *DelegateFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*DelegateFact) UnpackJSON ¶
func (fact *DelegateFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
type DelegateFactJSONPacker ¶
type DelegateFactJSONPacker struct { jsonenc.HintedHead H valuehash.Hash `json:"hash"` TK []byte `json:"token"` SD base.Address `json:"sender"` IT []DelegateItem `json:"items"` }
type DelegateFactJSONUnpacker ¶
type DelegateFactJSONUnpacker struct { H valuehash.Bytes `json:"hash"` TK []byte `json:"token"` SD base.AddressDecoder `json:"sender"` IT json.RawMessage `json:"items"` }
type DelegateItem ¶
type DelegateItem struct { hint.BaseHinter // contains filtered or unexported fields }
func NewDelegateItem ¶
func NewDelegateItem(symbol extensioncurrency.ContractID, agent base.Address, mode DelegateMode, cid currency.CurrencyID) DelegateItem
func (DelegateItem) Agent ¶
func (it DelegateItem) Agent() base.Address
func (DelegateItem) Bytes ¶
func (it DelegateItem) Bytes() []byte
func (DelegateItem) Collection ¶
func (it DelegateItem) Collection() extensioncurrency.ContractID
func (DelegateItem) Currency ¶
func (it DelegateItem) Currency() currency.CurrencyID
func (DelegateItem) IsValid ¶
func (it DelegateItem) IsValid([]byte) error
func (DelegateItem) MarshalBSON ¶
func (it DelegateItem) MarshalBSON() ([]byte, error)
func (DelegateItem) MarshalJSON ¶
func (it DelegateItem) MarshalJSON() ([]byte, error)
func (DelegateItem) Mode ¶
func (it DelegateItem) Mode() DelegateMode
func (DelegateItem) Rebuild ¶
func (it DelegateItem) Rebuild() DelegateItem
func (*DelegateItem) UnpackBSON ¶
func (it *DelegateItem) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*DelegateItem) UnpackJSON ¶
func (it *DelegateItem) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
type DelegateItemBSONUnpacker ¶
type DelegateItemBSONUnpacker struct { CL string `bson:"collection"` AG base.AddressDecoder `bson:"agent"` MD string `bson:"mode"` CR string `bson:"currency"` }
type DelegateItemJSONPacker ¶
type DelegateItemJSONPacker struct { jsonenc.HintedHead CL extensioncurrency.ContractID `json:"collection"` AG base.Address `json:"agent"` MD DelegateMode `json:"mode"` CR currency.CurrencyID `json:"currency"` }
type DelegateItemJSONUnpacker ¶
type DelegateItemJSONUnpacker struct { CL string `json:"collection"` AG base.AddressDecoder `json:"agent"` MD string `json:"mode"` CR string `json:"currency"` }
type DelegateItemProcessor ¶
type DelegateItemProcessor struct {
// contains filtered or unexported fields
}
func (*DelegateItemProcessor) Close ¶
func (ipp *DelegateItemProcessor) Close() error
func (*DelegateItemProcessor) PreProcess ¶
type DelegateMode ¶
type DelegateMode string
func (DelegateMode) Bytes ¶
func (mode DelegateMode) Bytes() []byte
func (DelegateMode) Equal ¶
func (mode DelegateMode) Equal(cmode DelegateMode) bool
func (DelegateMode) IsValid ¶
func (mode DelegateMode) IsValid([]byte) error
func (DelegateMode) String ¶
func (mode DelegateMode) String() string
type DelegateProcessor ¶
type DelegateProcessor struct { Delegate // contains filtered or unexported fields }
func (*DelegateProcessor) Close ¶
func (opp *DelegateProcessor) Close() error
func (*DelegateProcessor) PreProcess ¶
type DuplicationType ¶
type DuplicationType string
const ( DuplicationTypeSender DuplicationType = "sender" DuplicationTypeCurrency DuplicationType = "currency" )
type MintFact ¶
type MintFact struct { hint.BaseHinter // contains filtered or unexported fields }
func (MintFact) Currencies ¶
func (fact MintFact) Currencies() []currency.CurrencyID
func (MintFact) GenerateHash ¶
func (MintFact) MarshalBSON ¶
func (MintFact) MarshalJSON ¶
func (*MintFact) UnpackBSON ¶
type MintFactBSONUnpacker ¶
type MintFactJSONPacker ¶
type MintFactJSONUnpacker ¶
type MintFactJSONUnpacker struct { H valuehash.Bytes `json:"hash"` TK []byte `json:"token"` SD base.AddressDecoder `json:"sender"` IT json.RawMessage `json:"items"` }
type MintForm ¶
type MintForm struct { hint.BaseHinter // contains filtered or unexported fields }
func MustNewMintform ¶
func NewMintForm ¶
func (MintForm) Copyrighters ¶
func (MintForm) MarshalBSON ¶
func (MintForm) MarshalJSON ¶
func (*MintForm) UnpackBSON ¶
func (*MintForm) UnpackJSON ¶
type MintFormBSONUnpacker ¶
type MintFormJSONPacker ¶
type MintFormJSONUnpacker ¶
type MintFormJSONUnpacker struct { HS string `json:"hash"` UR string `json:"uri"` CR json.RawMessage `json:"creators"` CP json.RawMessage `json:"copyrighters"` }
type MintItem ¶
type MintItem struct { hint.BaseHinter // contains filtered or unexported fields }
func NewMintItem ¶
func NewMintItem(symbol extensioncurrency.ContractID, form MintForm, cid currency.CurrencyID) MintItem
func (MintItem) Collection ¶
func (it MintItem) Collection() extensioncurrency.ContractID
func (MintItem) Currency ¶
func (it MintItem) Currency() currency.CurrencyID
func (MintItem) MarshalBSON ¶
func (MintItem) MarshalJSON ¶
type MintItemBSONUnpacker ¶
type MintItemJSONPacker ¶
type MintItemJSONPacker struct { jsonenc.HintedHead CL extensioncurrency.ContractID `json:"collection"` FO MintForm `json:"form"` CR currency.CurrencyID `json:"currency"` }
type MintItemJSONUnpacker ¶
type MintItemJSONUnpacker struct { CL string `json:"collection"` FO json.RawMessage `json:"form"` CR string `json:"currency"` }
type MintItemProcessor ¶
type MintItemProcessor struct {
// contains filtered or unexported fields
}
func (*MintItemProcessor) Close ¶
func (ipp *MintItemProcessor) Close() error
func (*MintItemProcessor) PreProcess ¶
type MintProcessor ¶
type MintProcessor struct { Mint // contains filtered or unexported fields }
func (*MintProcessor) Close ¶
func (opp *MintProcessor) Close() error
func (*MintProcessor) PreProcess ¶
type NFTBox ¶
type NFTBox struct { hint.BaseHinter // contains filtered or unexported fields }
func (NFTBox) GenerateHash ¶
func (NFTBox) MarshalBSON ¶
func (NFTBox) MarshalJSON ¶
type NFTBoxBSONPacker ¶
type NFTBoxBSONUnpacker ¶
type NFTBoxJSONPacker ¶
type NFTBoxJSONPacker struct { jsonenc.HintedHead NS []nft.NFTID `json:"nfts"` }
type NFTBoxJSONUnpacker ¶
type NFTBoxJSONUnpacker struct {
NS json.RawMessage `json:"nfts"`
}
type OperationProcessor ¶
type OperationProcessor struct { sync.RWMutex *logging.Logging // contains filtered or unexported fields }
func NewOperationProcessor ¶
func NewOperationProcessor(cp *extensioncurrency.CurrencyPool) *OperationProcessor
func (*OperationProcessor) Cancel ¶
func (opr *OperationProcessor) Cancel() error
func (*OperationProcessor) Close ¶
func (opr *OperationProcessor) Close() error
func (*OperationProcessor) New ¶
func (opr *OperationProcessor) New(pool *storage.Statepool) prprocessor.OperationProcessor
func (*OperationProcessor) PreProcess ¶
func (*OperationProcessor) Process ¶
func (opr *OperationProcessor) Process(op state.Processor) error
func (*OperationProcessor) SetProcessor ¶
func (opr *OperationProcessor) SetProcessor( hinter hint.Hinter, newProcessor currency.GetNewProcessor, ) (prprocessor.OperationProcessor, error)
type PolicyBSONUnpacker ¶
type PolicyBSONUnpacker struct { NM string `bson:"name"` RY uint `bson:"royalty"` UR string `bson:"uri"` WH []base.AddressDecoder `bson:"whites"` }
type Qualification ¶
type Qualification string
func (Qualification) Bytes ¶
func (q Qualification) Bytes() []byte
func (Qualification) IsValid ¶
func (q Qualification) IsValid([]byte) error
func (Qualification) String ¶
func (q Qualification) String() string
type SignFact ¶
type SignFact struct { hint.BaseHinter // contains filtered or unexported fields }
func (SignFact) GenerateHash ¶
func (SignFact) MarshalBSON ¶
func (SignFact) MarshalJSON ¶
func (*SignFact) UnpackBSON ¶
type SignFactBSONUnpacker ¶
type SignFactJSONPacker ¶
type SignFactJSONUnpacker ¶
type SignFactJSONUnpacker struct { H valuehash.Bytes `json:"hash"` TK []byte `json:"token"` SD base.AddressDecoder `json:"sender"` IT json.RawMessage `json:"items"` }
type SignItem ¶
type SignItem struct { hint.BaseHinter // contains filtered or unexported fields }
func NewSignItem ¶
func NewSignItem(q Qualification, n nft.NFTID, cid currency.CurrencyID) SignItem
func (SignItem) Currency ¶
func (it SignItem) Currency() currency.CurrencyID
func (SignItem) MarshalBSON ¶
func (SignItem) MarshalJSON ¶
func (SignItem) Qualification ¶
func (it SignItem) Qualification() Qualification
type SignItemBSONUnpacker ¶
type SignItemJSONPacker ¶
type SignItemJSONPacker struct { jsonenc.HintedHead QU Qualification `json:"qualification"` NF nft.NFTID `json:"nft"` CR currency.CurrencyID `json:"currency"` }
type SignItemJSONUnpacker ¶
type SignItemJSONUnpacker struct { QU string `json:"qualification"` NF json.RawMessage `json:"nft"` CR string `json:"currency"` }
type SignItemProcessor ¶
type SignItemProcessor struct {
// contains filtered or unexported fields
}
func (*SignItemProcessor) Close ¶
func (ipp *SignItemProcessor) Close() error
func (*SignItemProcessor) PreProcess ¶
type SignProcessor ¶
type SignProcessor struct { Sign // contains filtered or unexported fields }
func (*SignProcessor) Close ¶
func (opp *SignProcessor) Close() error
func (*SignProcessor) PreProcess ¶
type Transfer ¶
type Transfer struct {
currency.BaseOperation
}
func NewTransfer ¶
type TransferFact ¶
type TransferFact struct { hint.BaseHinter // contains filtered or unexported fields }
func NewTransferFact ¶
func NewTransferFact(token []byte, sender base.Address, items []TransferItem) TransferFact
func (TransferFact) Bytes ¶
func (fact TransferFact) Bytes() []byte
func (TransferFact) GenerateHash ¶
func (fact TransferFact) GenerateHash() valuehash.Hash
func (TransferFact) Hash ¶
func (fact TransferFact) Hash() valuehash.Hash
func (TransferFact) IsValid ¶
func (fact TransferFact) IsValid(b []byte) error
func (TransferFact) Items ¶
func (fact TransferFact) Items() []TransferItem
func (TransferFact) MarshalBSON ¶
func (fact TransferFact) MarshalBSON() ([]byte, error)
func (TransferFact) MarshalJSON ¶
func (fact TransferFact) MarshalJSON() ([]byte, error)
func (TransferFact) Rebuild ¶
func (fact TransferFact) Rebuild() TransferFact
func (TransferFact) Sender ¶
func (fact TransferFact) Sender() base.Address
func (TransferFact) Token ¶
func (fact TransferFact) Token() []byte
func (*TransferFact) UnpackBSON ¶
func (fact *TransferFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*TransferFact) UnpackJSON ¶
func (fact *TransferFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
type TransferFactJSONPacker ¶
type TransferFactJSONPacker struct { jsonenc.HintedHead H valuehash.Hash `json:"hash"` TK []byte `json:"token"` SD base.Address `json:"sender"` IT []TransferItem `json:"items"` }
type TransferFactJSONUnpacker ¶
type TransferFactJSONUnpacker struct { H valuehash.Bytes `json:"hash"` TK []byte `json:"token"` SD base.AddressDecoder `json:"sender"` IT json.RawMessage `json:"items"` }
type TransferItem ¶
type TransferItem struct { hint.BaseHinter // contains filtered or unexported fields }
func NewTransferItem ¶
func NewTransferItem(receiver base.Address, n nft.NFTID, cid currency.CurrencyID) TransferItem
func (TransferItem) Bytes ¶
func (it TransferItem) Bytes() []byte
func (TransferItem) Currency ¶
func (it TransferItem) Currency() currency.CurrencyID
func (TransferItem) IsValid ¶
func (it TransferItem) IsValid([]byte) error
func (TransferItem) MarshalBSON ¶
func (it TransferItem) MarshalBSON() ([]byte, error)
func (TransferItem) MarshalJSON ¶
func (it TransferItem) MarshalJSON() ([]byte, error)
func (TransferItem) NFT ¶
func (it TransferItem) NFT() nft.NFTID
func (TransferItem) Rebuild ¶
func (it TransferItem) Rebuild() TransferItem
func (TransferItem) Receiver ¶
func (it TransferItem) Receiver() base.Address
func (*TransferItem) UnpackBSON ¶
func (it *TransferItem) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*TransferItem) UnpackJSON ¶
func (it *TransferItem) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
type TransferItemBSONUnpacker ¶
type TransferItemBSONUnpacker struct { RC base.AddressDecoder `bson:"receiver"` NF bson.Raw `bson:"nft"` CR string `bson:"currency"` }
type TransferItemJSONPacker ¶
type TransferItemJSONPacker struct { jsonenc.HintedHead RC base.Address `json:"receiver"` NF nft.NFTID `json:"nft"` CR currency.CurrencyID `json:"currency"` }
type TransferItemJSONUnpacker ¶
type TransferItemJSONUnpacker struct { RC base.AddressDecoder `json:"receiver"` NF json.RawMessage `json:"nft"` CR string `json:"currency"` }
type TransferItemProcessor ¶
type TransferItemProcessor struct {
// contains filtered or unexported fields
}
func (*TransferItemProcessor) Close ¶
func (ipp *TransferItemProcessor) Close() error
func (*TransferItemProcessor) PreProcess ¶
type TransferProcessor ¶
type TransferProcessor struct { Transfer // contains filtered or unexported fields }
func (*TransferProcessor) Close ¶
func (opp *TransferProcessor) Close() error
func (*TransferProcessor) PreProcess ¶
Source Files ¶
- agent_box.go
- approve.go
- approve_bson.go
- approve_encode.go
- approve_item.go
- approve_item_bson.go
- approve_item_encode.go
- approve_item_json.go
- approve_json.go
- approve_process.go
- burn.go
- burn_bson.go
- burn_encode.go
- burn_item.go
- burn_item_bson.go
- burn_item_encode.go
- burn_item_json.go
- burn_json.go
- burn_process.go
- colleciton_policy_updater_encode.go
- collection_policy_updater.go
- collection_policy_updater_bson.go
- collection_policy_updater_json.go
- collection_policy_updater_process.go
- collection_register.go
- collection_register_bson.go
- collection_register_encode.go
- collection_register_json.go
- collection_register_process.go
- delegate.go
- delegate_bson.go
- delegate_encode.go
- delegate_item.go
- delegate_item_bson.go
- delegate_item_encode.go
- delegate_item_json.go
- delegate_json.go
- delegate_process.go
- keys.go
- mint.go
- mint_bson.go
- mint_encode.go
- mint_item.go
- mint_item_bson.go
- mint_item_encode.go
- mint_item_json.go
- mint_json.go
- mint_process.go
- nft_box.go
- operation.go
- operation_processor.go
- policy.go
- policy_bson.go
- policy_encode.go
- policy_json.go
- sign.go
- sign_bson.go
- sign_encode.go
- sign_item.go
- sign_item_bson.go
- sign_item_encode.go
- sign_item_json.go
- sign_json.go
- sign_process.go
- signs.go
- state.go
- transfer.go
- transfer_bson.go
- transfer_encode.go
- transfer_item.go
- transfer_item_bson.go
- transfer_item_encode.go
- transfer_item_json.go
- transfer_json.go
- transfer_process.go
Click to show internal directories.
Click to hide internal directories.