Documentation ¶
Index ¶
- Variables
- func CalculateCollectionItemsFee(getStateFunc mitumbase.GetStateFunc, items []CollectionItem) (map[currencytypes.CurrencyID]mitumbase.State, ...)
- func NewApproveProcessor() currencytypes.GetNewProcessor
- func NewCreateCollectionProcessor() currencytypes.GetNewProcessor
- func NewDelegateProcessor() currencytypes.GetNewProcessor
- func NewMintProcessor() currencytypes.GetNewProcessor
- func NewSignProcessor() currencytypes.GetNewProcessor
- func NewTransferProcessor() currencytypes.GetNewProcessor
- func NewUpdateCollectionPolicyProcessor() currencytypes.GetNewProcessor
- type Approve
- func (op *Approve) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *Approve) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op Approve) MarshalBSON() ([]byte, error)
- func (op Approve) MarshalJSON() ([]byte, error)
- func (Approve) Process(ctx context.Context, getStateFunc mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type ApproveFact
- func (fact ApproveFact) Addresses() ([]mitumbase.Address, error)
- func (fact ApproveFact) Bytes() []byte
- func (fact *ApproveFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *ApproveFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact ApproveFact) GenerateHash() util.Hash
- func (fact ApproveFact) Hash() util.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) Sender() mitumbase.Address
- func (fact ApproveFact) Token() mitumbase.Token
- type ApproveFactBSONUnmarshaler
- type ApproveFactJSONMarshaler
- type ApproveFactJSONUnmarshaler
- type ApproveItem
- func (it ApproveItem) Addresses() ([]mitumbase.Address, error)
- func (it ApproveItem) Approved() mitumbase.Address
- func (it ApproveItem) Bytes() []byte
- func (it ApproveItem) Contract() mitumbase.Address
- func (it ApproveItem) Currency() types.CurrencyID
- func (it *ApproveItem) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (it *ApproveItem) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (it ApproveItem) IsValid([]byte) error
- func (it ApproveItem) MarshalBSON() ([]byte, error)
- func (it ApproveItem) MarshalJSON() ([]byte, error)
- func (it ApproveItem) NFT() uint64
- type ApproveItemBSONUnmarshaler
- type ApproveItemJSONMarshaler
- type ApproveItemJSONUnmarshaler
- type ApproveItemProcessor
- type ApproveProcessor
- func (opp *ApproveProcessor) Close() error
- func (opp *ApproveProcessor) PreProcess(ctx context.Context, op mitumbase.Operation, ...) (context.Context, mitumbase.OperationProcessReasonError, error)
- func (opp *ApproveProcessor) Process(ctx context.Context, op mitumbase.Operation, ...) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type CollectionItem
- type CreateCollection
- func (op *CreateCollection) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *CreateCollection) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op CreateCollection) MarshalBSON() ([]byte, error)
- func (op CreateCollection) MarshalJSON() ([]byte, error)
- func (CreateCollection) Process(_ context.Context, _ mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type CreateCollectionFact
- func (fact CreateCollectionFact) Addresses() ([]mitumbase.Address, error)
- func (fact CreateCollectionFact) Bytes() []byte
- func (fact CreateCollectionFact) Contract() mitumbase.Address
- func (fact CreateCollectionFact) Currency() currencytypes.CurrencyID
- func (fact *CreateCollectionFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *CreateCollectionFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact CreateCollectionFact) GenerateHash() util.Hash
- func (fact CreateCollectionFact) Hash() util.Hash
- func (fact CreateCollectionFact) IsValid(b []byte) error
- func (fact CreateCollectionFact) MarshalBSON() ([]byte, error)
- func (fact CreateCollectionFact) MarshalJSON() ([]byte, error)
- func (fact CreateCollectionFact) Name() types.CollectionName
- func (fact CreateCollectionFact) Royalty() types.PaymentParameter
- func (fact CreateCollectionFact) Sender() mitumbase.Address
- func (fact CreateCollectionFact) Token() mitumbase.Token
- func (fact CreateCollectionFact) URI() types.URI
- func (fact CreateCollectionFact) WhiteList() []mitumbase.Address
- type CreateCollectionFactBSONUnmarshaler
- type CreateCollectionFactJSONMarshaler
- type CreateCollectionFactJSONUnmarshaler
- type CreateCollectionProcessor
- func (opp *CreateCollectionProcessor) Close() error
- func (opp *CreateCollectionProcessor) PreProcess(ctx context.Context, op mitumbase.Operation, ...) (context.Context, mitumbase.OperationProcessReasonError, error)
- func (opp *CreateCollectionProcessor) Process(_ context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type Delegate
- func (op *Delegate) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *Delegate) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op Delegate) MarshalBSON() ([]byte, error)
- func (op Delegate) MarshalJSON() ([]byte, error)
- func (Delegate) Process(ctx context.Context, getStateFunc mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type DelegateFact
- func (fact DelegateFact) Addresses() ([]mitumbase.Address, error)
- func (fact DelegateFact) Bytes() []byte
- func (fact *DelegateFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *DelegateFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact DelegateFact) GenerateHash() util.Hash
- func (fact DelegateFact) Hash() util.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) Sender() mitumbase.Address
- func (fact DelegateFact) Token() mitumbase.Token
- type DelegateFactBSONUnmarshaler
- type DelegateFactJSONMarshaler
- type DelegateFactJSONUnmarshaler
- type DelegateItem
- func (it DelegateItem) Addresses() ([]mitumbase.Address, error)
- func (it DelegateItem) Bytes() []byte
- func (it DelegateItem) Contract() mitumbase.Address
- func (it DelegateItem) Currency() types.CurrencyID
- func (it *DelegateItem) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (it *DelegateItem) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (it DelegateItem) Delegatee() mitumbase.Address
- func (it DelegateItem) IsValid([]byte) error
- func (it DelegateItem) MarshalBSON() ([]byte, error)
- func (it DelegateItem) MarshalJSON() ([]byte, error)
- func (it DelegateItem) Mode() DelegateMode
- type DelegateItemBSONUnmarshaler
- type DelegateItemJSONMarshaler
- type DelegateItemJSONUnmarshaler
- type DelegateItemProcessor
- type DelegateMode
- type DelegateProcessor
- func (opp *DelegateProcessor) Close() error
- func (opp *DelegateProcessor) PreProcess(ctx context.Context, op mitumbase.Operation, ...) (context.Context, mitumbase.OperationProcessReasonError, error)
- func (opp *DelegateProcessor) Process(ctx context.Context, op mitumbase.Operation, ...) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type Mint
- func (op *Mint) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *Mint) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op Mint) MarshalBSON() ([]byte, error)
- func (op Mint) MarshalJSON() ([]byte, error)
- func (Mint) Process(_ context.Context, _ base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type MintFact
- func (fact MintFact) Addresses() ([]mitumbase.Address, error)
- func (fact MintFact) Bytes() []byte
- func (fact *MintFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *MintFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact MintFact) GenerateHash() util.Hash
- func (fact MintFact) Hash() util.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) Sender() mitumbase.Address
- func (fact MintFact) Token() mitumbase.Token
- type MintFactBSONUnmarshaler
- type MintFactJSONMarshaler
- type MintFactJSONUnmarshaler
- type MintItem
- func (it MintItem) Addresses() ([]mitumbase.Address, error)
- func (it MintItem) Bytes() []byte
- func (it MintItem) Contract() mitumbase.Address
- func (it MintItem) Creators() types.Signers
- func (it MintItem) Currency() currencytypes.CurrencyID
- func (it *MintItem) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (it *MintItem) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (it MintItem) IsValid([]byte) error
- func (it MintItem) MarshalBSON() ([]byte, error)
- func (it MintItem) MarshalJSON() ([]byte, error)
- func (it MintItem) NFTHash() types.NFTHash
- func (it MintItem) Receiver() mitumbase.Address
- func (it MintItem) URI() types.URI
- type MintItemBSONUnmarshaler
- type MintItemJSONMarshaler
- type MintItemJSONUnmarshaler
- type MintItemProcessor
- type MintProcessor
- func (opp *MintProcessor) Close() error
- func (opp *MintProcessor) PreProcess(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) (context.Context, base.OperationProcessReasonError, error)
- func (opp *MintProcessor) Process(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type Sign
- func (op *Sign) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *Sign) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op Sign) MarshalBSON() ([]byte, error)
- func (op Sign) MarshalJSON() ([]byte, error)
- func (Sign) Process(ctx context.Context, getStateFunc mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type SignFact
- func (fact SignFact) Addresses() ([]mitumbase.Address, error)
- func (fact SignFact) Bytes() []byte
- func (fact *SignFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *SignFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact SignFact) GenerateHash() util.Hash
- func (fact SignFact) Hash() util.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) Sender() mitumbase.Address
- func (fact SignFact) Token() mitumbase.Token
- type SignFactBSONUnmarshaler
- type SignFactJSONMarshaler
- type SignFactJSONUnmarshaler
- type SignItem
- func (it SignItem) Bytes() []byte
- func (it SignItem) Contract() mitumbase.Address
- func (it SignItem) Currency() types.CurrencyID
- func (it *SignItem) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (it *SignItem) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (it SignItem) IsValid([]byte) error
- func (it SignItem) MarshalBSON() ([]byte, error)
- func (it SignItem) MarshalJSON() ([]byte, error)
- func (it SignItem) NFT() uint64
- type SignItemBSONUnmarshaler
- type SignItemJSONMarshaler
- type SignItemJSONUnmarshaler
- type SignItemProcessor
- type SignProcessor
- func (opp *SignProcessor) Close() error
- func (opp *SignProcessor) PreProcess(ctx context.Context, op mitumbase.Operation, ...) (context.Context, mitumbase.OperationProcessReasonError, error)
- func (opp *SignProcessor) Process(ctx context.Context, op mitumbase.Operation, ...) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type Transfer
- func (op *Transfer) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *Transfer) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op Transfer) MarshalBSON() ([]byte, error)
- func (op Transfer) MarshalJSON() ([]byte, error)
- func (Transfer) Process(ctx context.Context, getStateFunc mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type TransferFact
- func (fact TransferFact) Addresses() ([]mitumbase.Address, error)
- func (fact TransferFact) Bytes() []byte
- func (fact *TransferFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *TransferFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact TransferFact) GenerateHash() util.Hash
- func (fact TransferFact) Hash() util.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) Sender() mitumbase.Address
- func (fact TransferFact) Token() mitumbase.Token
- type TransferFactBSONUnmarshaler
- type TransferFactJSONMarshaler
- type TransferFactJSONUnmarshaler
- type TransferItem
- func (it TransferItem) Addresses() ([]mitumbase.Address, error)
- func (it TransferItem) Bytes() []byte
- func (it TransferItem) Contract() mitumbase.Address
- func (it TransferItem) Currency() types.CurrencyID
- func (it *TransferItem) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (it *TransferItem) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (it TransferItem) IsValid([]byte) error
- func (it TransferItem) MarshalBSON() ([]byte, error)
- func (it TransferItem) MarshalJSON() ([]byte, error)
- func (it TransferItem) NFT() uint64
- func (it TransferItem) Receiver() mitumbase.Address
- type TransferItemBSONUnmarshaler
- type TransferItemJSONMarshaler
- type TransferItemJSONUnmarshaler
- type TransferItemProcessor
- type TransferProcessor
- func (opp *TransferProcessor) Close() error
- func (opp *TransferProcessor) PreProcess(ctx context.Context, op mitumbase.Operation, ...) (context.Context, mitumbase.OperationProcessReasonError, error)
- func (opp *TransferProcessor) Process(ctx context.Context, op mitumbase.Operation, ...) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type UpdateCollectionPolicy
- func (op *UpdateCollectionPolicy) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *UpdateCollectionPolicy) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op UpdateCollectionPolicy) MarshalBSON() ([]byte, error)
- func (op UpdateCollectionPolicy) MarshalJSON() ([]byte, error)
- func (UpdateCollectionPolicy) Process(ctx context.Context, getStateFunc mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type UpdateCollectionPolicyFact
- func (fact UpdateCollectionPolicyFact) Addresses() ([]mitumbase.Address, error)
- func (fact UpdateCollectionPolicyFact) Bytes() []byte
- func (fact UpdateCollectionPolicyFact) Contract() mitumbase.Address
- func (fact UpdateCollectionPolicyFact) Currency() currencytypes.CurrencyID
- func (fact *UpdateCollectionPolicyFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *UpdateCollectionPolicyFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact UpdateCollectionPolicyFact) GenerateHash() util.Hash
- func (fact UpdateCollectionPolicyFact) Hash() util.Hash
- func (fact UpdateCollectionPolicyFact) IsValid(b []byte) error
- func (fact UpdateCollectionPolicyFact) MarshalBSON() ([]byte, error)
- func (fact UpdateCollectionPolicyFact) MarshalJSON() ([]byte, error)
- func (fact UpdateCollectionPolicyFact) Name() types.CollectionName
- func (fact UpdateCollectionPolicyFact) Royalty() types.PaymentParameter
- func (fact UpdateCollectionPolicyFact) Sender() mitumbase.Address
- func (fact UpdateCollectionPolicyFact) Token() mitumbase.Token
- func (fact UpdateCollectionPolicyFact) URI() types.URI
- func (fact UpdateCollectionPolicyFact) Whitelist() []mitumbase.Address
- type UpdateCollectionPolicyFactBSONUnmarshaler
- type UpdateCollectionPolicyFactJSONMarshaler
- type UpdateCollectionPolicyFactJSONUnmarshaler
- type UpdateCollectionPolicyProcessor
- func (opp *UpdateCollectionPolicyProcessor) Close() error
- func (opp *UpdateCollectionPolicyProcessor) PreProcess(ctx context.Context, op mitumbase.Operation, ...) (context.Context, mitumbase.OperationProcessReasonError, error)
- func (opp *UpdateCollectionPolicyProcessor) Process(ctx context.Context, op mitumbase.Operation, ...) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApproveFactHint = hint.MustNewHint("mitum-nft-approve-operation-fact-v0.0.1") ApproveHint = hint.MustNewHint("mitum-nft-approve-operation-v0.0.1") )
View Source
var ( CreateCollectionFactHint = hint.MustNewHint("mitum-nft-create-collection-operation-fact-v0.0.1") CreateCollectionHint = hint.MustNewHint("mitum-nft-create-collection-operation-v0.0.1") )
View Source
var ( DelegateFactHint = hint.MustNewHint("mitum-nft-delegate-operation-fact-v0.0.1") DelegateHint = hint.MustNewHint("mitum-nft-delegate-operation-v0.0.1") )
View Source
var ( DelegateAllow = DelegateMode("allow") DelegateCancel = DelegateMode("cancel") )
View Source
var ( MintFactHint = hint.MustNewHint("mitum-nft-mint-operation-fact-v0.0.1") MintHint = hint.MustNewHint("mitum-nft-mint-operation-v0.0.1") )
View Source
var ( SignFactHint = hint.MustNewHint("mitum-nft-sign-operation-fact-v0.0.1") SignHint = hint.MustNewHint("mitum-nft-sign-operation-v0.0.1") )
View Source
var ( TransferFactHint = hint.MustNewHint("mitum-nft-transfer-operation-fact-v0.0.1") TransferHint = hint.MustNewHint("mitum-nft-transfer-operation-v0.0.1") )
View Source
var ( UpdateCollectionPolicyFactHint = hint.MustNewHint("mitum-nft-update-collection-policy-operation-fact-v0.0.1") UpdateCollectionPolicyHint = hint.MustNewHint("mitum-nft-update-collection-policy-operation-v0.0.1") )
View Source
var ApproveItemHint = hint.MustNewHint("mitum-nft-approve-item-v0.0.1")
View Source
var DelegateItemHint = hint.MustNewHint("mitum-nft-delegate-item-v0.0.1")
View Source
var MaxApproveItems = 100
View Source
var MaxDelegateItems = 100
View Source
var MaxMintItems = 100
View Source
var MaxSignItems = 100
View Source
var MaxTransferItems = 100
View Source
var MintItemHint = hint.MustNewHint("mitum-nft-mint-item-v0.0.1")
View Source
var SignItemHint = hint.MustNewHint("mitum-nft-sign-item-v0.0.1")
View Source
var TransferItemHint = hint.MustNewHint("mitum-nft-transfer-item-v0.0.1")
Functions ¶
func CalculateCollectionItemsFee ¶
func CalculateCollectionItemsFee(getStateFunc mitumbase.GetStateFunc, items []CollectionItem) ( map[currencytypes.CurrencyID]mitumbase.State, map[currencytypes.CurrencyID][2]common.Big, error)
func NewApproveProcessor ¶
func NewApproveProcessor() currencytypes.GetNewProcessor
func NewCreateCollectionProcessor ¶
func NewCreateCollectionProcessor() currencytypes.GetNewProcessor
func NewDelegateProcessor ¶
func NewDelegateProcessor() currencytypes.GetNewProcessor
func NewMintProcessor ¶
func NewMintProcessor() currencytypes.GetNewProcessor
func NewSignProcessor ¶
func NewSignProcessor() currencytypes.GetNewProcessor
func NewTransferProcessor ¶
func NewTransferProcessor() currencytypes.GetNewProcessor
func NewUpdateCollectionPolicyProcessor ¶
func NewUpdateCollectionPolicyProcessor() currencytypes.GetNewProcessor
Types ¶
type Approve ¶
type Approve struct {
common.BaseOperation
}
func NewApprove ¶
func NewApprove(fact ApproveFact) (Approve, error)
func (Approve) MarshalBSON ¶
func (Approve) MarshalJSON ¶
func (Approve) Process ¶
func (Approve) Process( ctx context.Context, getStateFunc mitumbase.GetStateFunc, ) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
type ApproveFact ¶
func NewApproveFact ¶
func NewApproveFact(token []byte, sender mitumbase.Address, items []ApproveItem) ApproveFact
func (ApproveFact) Bytes ¶
func (fact ApproveFact) Bytes() []byte
func (*ApproveFact) DecodeBSON ¶
func (fact *ApproveFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*ApproveFact) DecodeJSON ¶
func (fact *ApproveFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (ApproveFact) GenerateHash ¶
func (fact ApproveFact) GenerateHash() util.Hash
func (ApproveFact) Hash ¶
func (fact ApproveFact) Hash() util.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) Sender ¶
func (fact ApproveFact) Sender() mitumbase.Address
func (ApproveFact) Token ¶
func (fact ApproveFact) Token() mitumbase.Token
type ApproveFactJSONMarshaler ¶
type ApproveFactJSONMarshaler struct { mitumbase.BaseFactJSONMarshaler Sender mitumbase.Address `json:"sender"` Items []ApproveItem `json:"items"` }
type ApproveFactJSONUnmarshaler ¶
type ApproveFactJSONUnmarshaler struct { mitumbase.BaseFactJSONUnmarshaler Sender string `json:"sender"` Items json.RawMessage `json:"items"` }
type ApproveItem ¶
type ApproveItem struct { hint.BaseHinter // contains filtered or unexported fields }
func NewApproveItem ¶
func NewApproveItem(contract mitumbase.Address, approved mitumbase.Address, idx uint64, currency types.CurrencyID) ApproveItem
func (ApproveItem) Approved ¶
func (it ApproveItem) Approved() mitumbase.Address
func (ApproveItem) Bytes ¶
func (it ApproveItem) Bytes() []byte
func (ApproveItem) Contract ¶
func (it ApproveItem) Contract() mitumbase.Address
func (ApproveItem) Currency ¶
func (it ApproveItem) Currency() types.CurrencyID
func (*ApproveItem) DecodeBSON ¶
func (it *ApproveItem) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*ApproveItem) DecodeJSON ¶
func (it *ApproveItem) DecodeJSON(b []byte, enc encoder.Encoder) error
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() uint64
type ApproveItemJSONMarshaler ¶
type ApproveItemJSONMarshaler struct { hint.BaseHinter Contract mitumbase.Address `json:"contract"` Approved mitumbase.Address `json:"approved"` NFTidx uint64 `json:"nftidx"` Currency types.CurrencyID `json:"currency"` }
type ApproveItemProcessor ¶
type ApproveItemProcessor struct {
// contains filtered or unexported fields
}
func (*ApproveItemProcessor) Close ¶
func (ipp *ApproveItemProcessor) Close()
func (*ApproveItemProcessor) PreProcess ¶
func (ipp *ApproveItemProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) error
func (*ApproveItemProcessor) Process ¶
func (ipp *ApproveItemProcessor) Process( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) ([]mitumbase.StateMergeValue, error)
type ApproveProcessor ¶
type ApproveProcessor struct {
*mitumbase.BaseOperationProcessor
}
func (*ApproveProcessor) Close ¶
func (opp *ApproveProcessor) Close() error
func (*ApproveProcessor) PreProcess ¶
func (opp *ApproveProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) (context.Context, mitumbase.OperationProcessReasonError, error)
func (*ApproveProcessor) Process ¶
func (opp *ApproveProcessor) Process( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ( []mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error, )
type CollectionItem ¶
type CollectionItem interface { util.Byter util.IsValider Currency() currencytypes.CurrencyID }
type CreateCollection ¶
type CreateCollection struct {
common.BaseOperation
}
func NewCreateCollection ¶
func NewCreateCollection(fact CreateCollectionFact) (CreateCollection, error)
func (*CreateCollection) DecodeBSON ¶
func (op *CreateCollection) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*CreateCollection) DecodeJSON ¶
func (op *CreateCollection) DecodeJSON(b []byte, enc encoder.Encoder) error
func (CreateCollection) MarshalBSON ¶
func (op CreateCollection) MarshalBSON() ([]byte, error)
func (CreateCollection) MarshalJSON ¶
func (op CreateCollection) MarshalJSON() ([]byte, error)
func (CreateCollection) Process ¶
func (CreateCollection) Process( _ context.Context, _ mitumbase.GetStateFunc, ) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
type CreateCollectionFact ¶
func NewCreateCollectionFact ¶
func NewCreateCollectionFact( token []byte, sender mitumbase.Address, contract mitumbase.Address, name types.CollectionName, royalty types.PaymentParameter, uri types.URI, whitelist []mitumbase.Address, currency currencytypes.CurrencyID, ) CreateCollectionFact
func (CreateCollectionFact) Addresses ¶
func (fact CreateCollectionFact) Addresses() ([]mitumbase.Address, error)
func (CreateCollectionFact) Bytes ¶
func (fact CreateCollectionFact) Bytes() []byte
func (CreateCollectionFact) Contract ¶
func (fact CreateCollectionFact) Contract() mitumbase.Address
func (CreateCollectionFact) Currency ¶
func (fact CreateCollectionFact) Currency() currencytypes.CurrencyID
func (*CreateCollectionFact) DecodeBSON ¶
func (fact *CreateCollectionFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*CreateCollectionFact) DecodeJSON ¶
func (fact *CreateCollectionFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (CreateCollectionFact) GenerateHash ¶
func (fact CreateCollectionFact) GenerateHash() util.Hash
func (CreateCollectionFact) Hash ¶
func (fact CreateCollectionFact) Hash() util.Hash
func (CreateCollectionFact) IsValid ¶
func (fact CreateCollectionFact) IsValid(b []byte) error
func (CreateCollectionFact) MarshalBSON ¶
func (fact CreateCollectionFact) MarshalBSON() ([]byte, error)
func (CreateCollectionFact) MarshalJSON ¶
func (fact CreateCollectionFact) MarshalJSON() ([]byte, error)
func (CreateCollectionFact) Name ¶
func (fact CreateCollectionFact) Name() types.CollectionName
func (CreateCollectionFact) Royalty ¶
func (fact CreateCollectionFact) Royalty() types.PaymentParameter
func (CreateCollectionFact) Sender ¶
func (fact CreateCollectionFact) Sender() mitumbase.Address
func (CreateCollectionFact) Token ¶
func (fact CreateCollectionFact) Token() mitumbase.Token
func (CreateCollectionFact) URI ¶
func (fact CreateCollectionFact) URI() types.URI
func (CreateCollectionFact) WhiteList ¶
func (fact CreateCollectionFact) WhiteList() []mitumbase.Address
type CreateCollectionFactJSONMarshaler ¶
type CreateCollectionFactJSONMarshaler struct { mitumbase.BaseFactJSONMarshaler Sender mitumbase.Address `json:"sender"` Contract mitumbase.Address `json:"contract"` Name types.CollectionName `json:"name"` Royalty types.PaymentParameter `json:"royalty"` URI types.URI `json:"uri"` Whitelist []mitumbase.Address `json:"whitelist"` Currency currencytypes.CurrencyID `json:"currency"` }
type CreateCollectionFactJSONUnmarshaler ¶
type CreateCollectionFactJSONUnmarshaler struct { mitumbase.BaseFactJSONUnmarshaler Sender string `json:"sender"` Contract string `json:"contract"` Name string `json:"name"` Royalty uint `json:"royalty"` URI string `json:"uri"` Whitelist []string `json:"whitelist"` Currency string `json:"currency"` }
type CreateCollectionProcessor ¶
type CreateCollectionProcessor struct {
*mitumbase.BaseOperationProcessor
}
func (*CreateCollectionProcessor) Close ¶
func (opp *CreateCollectionProcessor) Close() error
func (*CreateCollectionProcessor) PreProcess ¶
func (opp *CreateCollectionProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) (context.Context, mitumbase.OperationProcessReasonError, error)
func (*CreateCollectionProcessor) Process ¶
func (opp *CreateCollectionProcessor) Process( _ context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ( []mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error, )
type Delegate ¶
type Delegate struct {
common.BaseOperation
}
func NewDelegate ¶
func NewDelegate(fact DelegateFact) (Delegate, error)
func (Delegate) MarshalBSON ¶
func (Delegate) MarshalJSON ¶
func (Delegate) Process ¶
func (Delegate) Process( ctx context.Context, getStateFunc mitumbase.GetStateFunc, ) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
type DelegateFact ¶
func NewDelegateFact ¶
func NewDelegateFact(token []byte, sender mitumbase.Address, items []DelegateItem) DelegateFact
func (DelegateFact) Bytes ¶
func (fact DelegateFact) Bytes() []byte
func (*DelegateFact) DecodeBSON ¶
func (fact *DelegateFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*DelegateFact) DecodeJSON ¶
func (fact *DelegateFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (DelegateFact) GenerateHash ¶
func (fact DelegateFact) GenerateHash() util.Hash
func (DelegateFact) Hash ¶
func (fact DelegateFact) Hash() util.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) Sender ¶
func (fact DelegateFact) Sender() mitumbase.Address
func (DelegateFact) Token ¶
func (fact DelegateFact) Token() mitumbase.Token
type DelegateFactJSONMarshaler ¶
type DelegateFactJSONMarshaler struct { mitumbase.BaseFactJSONMarshaler Sender mitumbase.Address `json:"sender"` Items []DelegateItem `json:"items"` }
type DelegateFactJSONUnmarshaler ¶
type DelegateFactJSONUnmarshaler struct { mitumbase.BaseFactJSONUnmarshaler Sender string `json:"sender"` Items json.RawMessage `json:"items"` }
type DelegateItem ¶
type DelegateItem struct { hint.BaseHinter // contains filtered or unexported fields }
func NewDelegateItem ¶
func NewDelegateItem(contract mitumbase.Address, operator mitumbase.Address, mode DelegateMode, currency types.CurrencyID) DelegateItem
func (DelegateItem) Bytes ¶
func (it DelegateItem) Bytes() []byte
func (DelegateItem) Contract ¶
func (it DelegateItem) Contract() mitumbase.Address
func (DelegateItem) Currency ¶
func (it DelegateItem) Currency() types.CurrencyID
func (*DelegateItem) DecodeBSON ¶
func (it *DelegateItem) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*DelegateItem) DecodeJSON ¶
func (it *DelegateItem) DecodeJSON(b []byte, enc encoder.Encoder) error
func (DelegateItem) Delegatee ¶
func (it DelegateItem) Delegatee() mitumbase.Address
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
type DelegateItemJSONMarshaler ¶
type DelegateItemJSONMarshaler struct { hint.BaseHinter Contract mitumbase.Address `json:"contract"` Delegatee mitumbase.Address `json:"delegatee"` Mode DelegateMode `json:"mode"` Currency types.CurrencyID `json:"currency"` }
type DelegateItemProcessor ¶
type DelegateItemProcessor struct {
// contains filtered or unexported fields
}
func (*DelegateItemProcessor) Close ¶
func (ipp *DelegateItemProcessor) Close()
func (*DelegateItemProcessor) PreProcess ¶
func (ipp *DelegateItemProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) error
func (*DelegateItemProcessor) Process ¶
func (ipp *DelegateItemProcessor) Process( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) ([]mitumbase.StateMergeValue, error)
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 {
*mitumbase.BaseOperationProcessor
}
func (*DelegateProcessor) Close ¶
func (opp *DelegateProcessor) Close() error
func (*DelegateProcessor) PreProcess ¶
func (opp *DelegateProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) (context.Context, mitumbase.OperationProcessReasonError, error)
func (*DelegateProcessor) Process ¶
func (opp *DelegateProcessor) Process( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ( []mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error, )
type Mint ¶
type Mint struct {
common.BaseOperation
}
func (Mint) MarshalBSON ¶
func (Mint) MarshalJSON ¶
func (Mint) Process ¶
func (Mint) Process( _ context.Context, _ base.GetStateFunc, ) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
type MintFact ¶
func NewMintFact ¶
func (*MintFact) DecodeBSON ¶
func (MintFact) GenerateHash ¶
func (MintFact) MarshalBSON ¶
func (MintFact) MarshalJSON ¶
type MintFactBSONUnmarshaler ¶
type MintFactJSONMarshaler ¶
type MintFactJSONMarshaler struct { mitumbase.BaseFactJSONMarshaler Sender mitumbase.Address `json:"sender"` Items []MintItem `json:"items"` }
type MintFactJSONUnmarshaler ¶
type MintFactJSONUnmarshaler struct { mitumbase.BaseFactJSONUnmarshaler Sender string `json:"sender"` Items json.RawMessage `json:"items"` }
type MintItem ¶
type MintItem struct { hint.BaseHinter // contains filtered or unexported fields }
func NewMintItem ¶
func (MintItem) Currency ¶
func (it MintItem) Currency() currencytypes.CurrencyID
func (MintItem) MarshalBSON ¶
func (MintItem) MarshalJSON ¶
type MintItemBSONUnmarshaler ¶
type MintItemJSONMarshaler ¶
type MintItemJSONMarshaler struct { hint.BaseHinter Contract mitumbase.Address `json:"contract"` Receiver mitumbase.Address `json:"receiver"` Hash types.NFTHash `json:"hash"` Uri types.URI `json:"uri"` Creators types.Signers `json:"creators"` Currency currencytypes.CurrencyID `json:"currency"` }
type MintItemJSONUnmarshaler ¶
type MintItemProcessor ¶
type MintItemProcessor struct {
// contains filtered or unexported fields
}
func (*MintItemProcessor) Close ¶
func (ipp *MintItemProcessor) Close()
func (*MintItemProcessor) PreProcess ¶
func (ipp *MintItemProcessor) PreProcess( _ context.Context, _ base.Operation, getStateFunc base.GetStateFunc, ) error
func (*MintItemProcessor) Process ¶
func (ipp *MintItemProcessor) Process( _ context.Context, _ base.Operation, getStateFunc base.GetStateFunc, ) ([]base.StateMergeValue, error)
type MintProcessor ¶
type MintProcessor struct {
*base.BaseOperationProcessor
}
func (*MintProcessor) Close ¶
func (opp *MintProcessor) Close() error
func (*MintProcessor) PreProcess ¶
func (opp *MintProcessor) PreProcess( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc, ) (context.Context, base.OperationProcessReasonError, error)
func (*MintProcessor) Process ¶
func (opp *MintProcessor) Process( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) ( []base.StateMergeValue, base.OperationProcessReasonError, error, )
type Sign ¶
type Sign struct {
common.BaseOperation
}
func (Sign) MarshalBSON ¶
func (Sign) MarshalJSON ¶
func (Sign) Process ¶
func (Sign) Process( ctx context.Context, getStateFunc mitumbase.GetStateFunc, ) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
type SignFact ¶
func NewSignFact ¶
func (*SignFact) DecodeBSON ¶
func (SignFact) GenerateHash ¶
func (SignFact) MarshalBSON ¶
func (SignFact) MarshalJSON ¶
type SignFactBSONUnmarshaler ¶
type SignFactJSONMarshaler ¶
type SignFactJSONMarshaler struct { mitumbase.BaseFactJSONMarshaler Sender mitumbase.Address `json:"sender"` Items []SignItem `json:"items"` }
type SignFactJSONUnmarshaler ¶
type SignFactJSONUnmarshaler struct { mitumbase.BaseFactJSONUnmarshaler Sender string `json:"sender"` Items json.RawMessage `json:"items"` }
type SignItem ¶
type SignItem struct { hint.BaseHinter // contains filtered or unexported fields }
func NewSignItem ¶
func (SignItem) Currency ¶
func (it SignItem) Currency() types.CurrencyID
func (SignItem) MarshalBSON ¶
func (SignItem) MarshalJSON ¶
type SignItemBSONUnmarshaler ¶
type SignItemJSONMarshaler ¶
type SignItemJSONMarshaler struct { hint.BaseHinter Contract mitumbase.Address `json:"contract"` NFT uint64 `json:"nft"` Currency types.CurrencyID `json:"currency"` }
type SignItemJSONUnmarshaler ¶
type SignItemProcessor ¶
type SignItemProcessor struct {
// contains filtered or unexported fields
}
func (*SignItemProcessor) Close ¶
func (ipp *SignItemProcessor) Close()
func (*SignItemProcessor) PreProcess ¶
func (ipp *SignItemProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) error
func (*SignItemProcessor) Process ¶
func (ipp *SignItemProcessor) Process( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) ([]mitumbase.StateMergeValue, error)
type SignProcessor ¶
type SignProcessor struct {
*mitumbase.BaseOperationProcessor
}
func (*SignProcessor) Close ¶
func (opp *SignProcessor) Close() error
func (*SignProcessor) PreProcess ¶
func (opp *SignProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) (context.Context, mitumbase.OperationProcessReasonError, error)
func (*SignProcessor) Process ¶
func (opp *SignProcessor) Process( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ( []mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error, )
type Transfer ¶
type Transfer struct {
common.BaseOperation
}
func NewTransfer ¶
func NewTransfer(fact TransferFact) (Transfer, error)
func (Transfer) MarshalBSON ¶
func (Transfer) MarshalJSON ¶
func (Transfer) Process ¶
func (Transfer) Process( ctx context.Context, getStateFunc mitumbase.GetStateFunc, ) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
type TransferFact ¶
func NewTransferFact ¶
func NewTransferFact(token []byte, sender mitumbase.Address, items []TransferItem) TransferFact
func (TransferFact) Bytes ¶
func (fact TransferFact) Bytes() []byte
func (*TransferFact) DecodeBSON ¶
func (fact *TransferFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*TransferFact) DecodeJSON ¶
func (fact *TransferFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (TransferFact) GenerateHash ¶
func (fact TransferFact) GenerateHash() util.Hash
func (TransferFact) Hash ¶
func (fact TransferFact) Hash() util.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) Sender ¶
func (fact TransferFact) Sender() mitumbase.Address
func (TransferFact) Token ¶
func (fact TransferFact) Token() mitumbase.Token
type TransferFactJSONMarshaler ¶
type TransferFactJSONMarshaler struct { mitumbase.BaseFactJSONMarshaler Sender mitumbase.Address `json:"sender"` Items []TransferItem `json:"items"` }
type TransferFactJSONUnmarshaler ¶
type TransferFactJSONUnmarshaler struct { mitumbase.BaseFactJSONUnmarshaler Sender string `json:"sender"` Items json.RawMessage `json:"items"` }
type TransferItem ¶
type TransferItem struct { hint.BaseHinter // contains filtered or unexported fields }
func NewTransferItem ¶
func NewTransferItem(contract mitumbase.Address, receiver mitumbase.Address, nft uint64, currency types.CurrencyID) TransferItem
func (TransferItem) Bytes ¶
func (it TransferItem) Bytes() []byte
func (TransferItem) Contract ¶
func (it TransferItem) Contract() mitumbase.Address
func (TransferItem) Currency ¶
func (it TransferItem) Currency() types.CurrencyID
func (*TransferItem) DecodeBSON ¶
func (it *TransferItem) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*TransferItem) DecodeJSON ¶
func (it *TransferItem) DecodeJSON(b []byte, enc encoder.Encoder) error
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() uint64
func (TransferItem) Receiver ¶
func (it TransferItem) Receiver() mitumbase.Address
type TransferItemJSONMarshaler ¶
type TransferItemJSONMarshaler struct { hint.BaseHinter Contract mitumbase.Address `json:"contract"` Receiver mitumbase.Address `json:"receiver"` NFTidx uint64 `json:"nft"` Currency types.CurrencyID `json:"currency"` }
type TransferItemProcessor ¶
type TransferItemProcessor struct {
// contains filtered or unexported fields
}
func (*TransferItemProcessor) Close ¶
func (ipp *TransferItemProcessor) Close()
func (*TransferItemProcessor) PreProcess ¶
func (ipp *TransferItemProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) error
func (*TransferItemProcessor) Process ¶
func (ipp *TransferItemProcessor) Process( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) ([]mitumbase.StateMergeValue, error)
type TransferProcessor ¶
type TransferProcessor struct {
*mitumbase.BaseOperationProcessor
}
func (*TransferProcessor) Close ¶
func (opp *TransferProcessor) Close() error
func (*TransferProcessor) PreProcess ¶
func (opp *TransferProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) (context.Context, mitumbase.OperationProcessReasonError, error)
func (*TransferProcessor) Process ¶
func (opp *TransferProcessor) Process( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ( []mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error, )
type UpdateCollectionPolicy ¶
type UpdateCollectionPolicy struct {
common.BaseOperation
}
func NewUpdateCollectionPolicy ¶
func NewUpdateCollectionPolicy(fact UpdateCollectionPolicyFact) (UpdateCollectionPolicy, error)
func (*UpdateCollectionPolicy) DecodeBSON ¶
func (op *UpdateCollectionPolicy) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*UpdateCollectionPolicy) DecodeJSON ¶
func (op *UpdateCollectionPolicy) DecodeJSON(b []byte, enc encoder.Encoder) error
func (UpdateCollectionPolicy) MarshalBSON ¶
func (op UpdateCollectionPolicy) MarshalBSON() ([]byte, error)
func (UpdateCollectionPolicy) MarshalJSON ¶
func (op UpdateCollectionPolicy) MarshalJSON() ([]byte, error)
func (UpdateCollectionPolicy) Process ¶
func (UpdateCollectionPolicy) Process( ctx context.Context, getStateFunc mitumbase.GetStateFunc, ) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
type UpdateCollectionPolicyFact ¶
type UpdateCollectionPolicyFact struct { mitumbase.BaseFact // contains filtered or unexported fields }
func NewUpdateCollectionPolicyFact ¶
func NewUpdateCollectionPolicyFact( token []byte, sender, contract mitumbase.Address, name types.CollectionName, royalty types.PaymentParameter, uri types.URI, whitelist []mitumbase.Address, currency currencytypes.CurrencyID, ) UpdateCollectionPolicyFact
func (UpdateCollectionPolicyFact) Addresses ¶
func (fact UpdateCollectionPolicyFact) Addresses() ([]mitumbase.Address, error)
func (UpdateCollectionPolicyFact) Bytes ¶
func (fact UpdateCollectionPolicyFact) Bytes() []byte
func (UpdateCollectionPolicyFact) Contract ¶
func (fact UpdateCollectionPolicyFact) Contract() mitumbase.Address
func (UpdateCollectionPolicyFact) Currency ¶
func (fact UpdateCollectionPolicyFact) Currency() currencytypes.CurrencyID
func (*UpdateCollectionPolicyFact) DecodeBSON ¶
func (fact *UpdateCollectionPolicyFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*UpdateCollectionPolicyFact) DecodeJSON ¶
func (fact *UpdateCollectionPolicyFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (UpdateCollectionPolicyFact) GenerateHash ¶
func (fact UpdateCollectionPolicyFact) GenerateHash() util.Hash
func (UpdateCollectionPolicyFact) Hash ¶
func (fact UpdateCollectionPolicyFact) Hash() util.Hash
func (UpdateCollectionPolicyFact) IsValid ¶
func (fact UpdateCollectionPolicyFact) IsValid(b []byte) error
func (UpdateCollectionPolicyFact) MarshalBSON ¶
func (fact UpdateCollectionPolicyFact) MarshalBSON() ([]byte, error)
func (UpdateCollectionPolicyFact) MarshalJSON ¶
func (fact UpdateCollectionPolicyFact) MarshalJSON() ([]byte, error)
func (UpdateCollectionPolicyFact) Name ¶
func (fact UpdateCollectionPolicyFact) Name() types.CollectionName
func (UpdateCollectionPolicyFact) Royalty ¶
func (fact UpdateCollectionPolicyFact) Royalty() types.PaymentParameter
func (UpdateCollectionPolicyFact) Sender ¶
func (fact UpdateCollectionPolicyFact) Sender() mitumbase.Address
func (UpdateCollectionPolicyFact) Token ¶
func (fact UpdateCollectionPolicyFact) Token() mitumbase.Token
func (UpdateCollectionPolicyFact) URI ¶
func (fact UpdateCollectionPolicyFact) URI() types.URI
func (UpdateCollectionPolicyFact) Whitelist ¶
func (fact UpdateCollectionPolicyFact) Whitelist() []mitumbase.Address
type UpdateCollectionPolicyFactBSONUnmarshaler ¶
type UpdateCollectionPolicyFactBSONUnmarshaler struct { Hint string `bson:"_hint"` Sender string `bson:"sender"` Contract string `bson:"contract"` Name string `bson:"name"` Royalty uint `bson:"royalty"` URI string `bson:"uri"` Whitelist []string `bson:"whitelist"` Currency string `bson:"currency"` }
type UpdateCollectionPolicyFactJSONMarshaler ¶
type UpdateCollectionPolicyFactJSONMarshaler struct { mitumbase.BaseFactJSONMarshaler Sender mitumbase.Address `json:"sender"` Contract mitumbase.Address `json:"contract"` Name types.CollectionName `json:"name"` Royalty types.PaymentParameter `json:"royalty"` URI types.URI `json:"uri"` Whitelist []mitumbase.Address `json:"whitelist"` Currency currencytypes.CurrencyID `json:"currency"` }
type UpdateCollectionPolicyFactJSONUnmarshaler ¶
type UpdateCollectionPolicyFactJSONUnmarshaler struct { mitumbase.BaseFactJSONUnmarshaler Sender string `json:"sender"` Contract string `json:"contract"` Name string `json:"name"` Royalty uint `json:"royalty"` URI string `json:"uri"` Whitelist []string `json:"whitelist"` Currency string `json:"currency"` }
type UpdateCollectionPolicyProcessor ¶
type UpdateCollectionPolicyProcessor struct {
*mitumbase.BaseOperationProcessor
}
func (*UpdateCollectionPolicyProcessor) Close ¶
func (opp *UpdateCollectionPolicyProcessor) Close() error
func (*UpdateCollectionPolicyProcessor) PreProcess ¶
func (opp *UpdateCollectionPolicyProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) (context.Context, mitumbase.OperationProcessReasonError, error)
func (*UpdateCollectionPolicyProcessor) Process ¶
func (opp *UpdateCollectionPolicyProcessor) Process( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ( []mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error, )
Source Files ¶
- 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
- create_collection.go
- create_collection_bson.go
- create_collection_encode.go
- create_collection_json.go
- create_collection_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
- 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
- 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
- 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
- update_collection_policy.go
- update_collection_policy_bson.go
- update_collection_policy_encode.go
- update_collection_policy_json.go
- update_collection_policy_process.go
Click to show internal directories.
Click to hide internal directories.