Documentation ¶
Index ¶
- type InscribeAcceptedAction
- type InscribeRejectedAction
- type InscribeRequest
- func (request *InscribeRequest) BuildReqActions(tx metadataCommon.Transaction, chainRetriever metadataCommon.ChainRetriever, ...) ([][]string, error)
- func (iReq *InscribeRequest) CalculateSize() uint64
- func (iReq *InscribeRequest) GetOTADeclarations() []metadataCommon.OTADeclaration
- func (iReq InscribeRequest) Hash() *common.Hash
- func (iReq InscribeRequest) ValidateMetadataByItself() bool
- func (iReq InscribeRequest) ValidateSanityData(chainRetriever metadataCommon.ChainRetriever, ...) (bool, bool, error)
- func (iReq InscribeRequest) ValidateTxWithBlockChain(tx metadataCommon.Transaction, chainRetriever metadataCommon.ChainRetriever, ...) (bool, error)
- type InscribeResponse
- func (response *InscribeResponse) CalculateSize() uint64
- func (response *InscribeResponse) CheckTransactionFee(tx metadataCommon.Transaction, minFeePerKb uint64, minFeePerTx uint64, ...) bool
- func (response *InscribeResponse) Hash() *common.Hash
- func (response *InscribeResponse) MarshalJSON() ([]byte, error)
- func (response *InscribeResponse) Status() string
- func (response *InscribeResponse) TxReqID() string
- func (response *InscribeResponse) UnmarshalJSON(data []byte) error
- func (response *InscribeResponse) ValidateMetadataByItself() bool
- func (response *InscribeResponse) ValidateSanityData(chainRetriever metadataCommon.ChainRetriever, ...) (bool, bool, error)
- func (response *InscribeResponse) ValidateTxWithBlockChain(tx metadataCommon.Transaction, chainRetriever metadataCommon.ChainRetriever, ...) (bool, error)
- func (response *InscribeResponse) VerifyMinerCreatedTxBeforeGettingInBlock(mintData *metadataCommon.MintData, shardID byte, tx metadataCommon.Transaction, ...) (bool, error)
- type MintNftData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InscribeAcceptedAction ¶
type InscribeAcceptedAction struct { Receiver privacy.OTAReceiver `json:"Receiver"` TokenID common.Hash `json:"TokenID"` }
func (*InscribeAcceptedAction) GetStatus ¶
func (acn *InscribeAcceptedAction) GetStatus() int
func (*InscribeAcceptedAction) GetType ¶
func (acn *InscribeAcceptedAction) GetType() int
type InscribeRejectedAction ¶
type InscribeRejectedAction struct{}
func (*InscribeRejectedAction) GetStatus ¶
func (acn *InscribeRejectedAction) GetStatus() int
func (*InscribeRejectedAction) GetType ¶
func (acn *InscribeRejectedAction) GetType() int
type InscribeRequest ¶
type InscribeRequest struct { Data json.RawMessage `json:"Data"` Receiver privacy.OTAReceiver `json:"Receiver"` metadataCommon.MetadataBase }
func (*InscribeRequest) BuildReqActions ¶
func (request *InscribeRequest) BuildReqActions(tx metadataCommon.Transaction, chainRetriever metadataCommon.ChainRetriever, shardViewRetriever metadataCommon.ShardViewRetriever, beaconViewRetriever metadataCommon.BeaconViewRetriever, shardID byte, shardHeight uint64) ([][]string, error)
func (*InscribeRequest) CalculateSize ¶
func (iReq *InscribeRequest) CalculateSize() uint64
func (*InscribeRequest) GetOTADeclarations ¶
func (iReq *InscribeRequest) GetOTADeclarations() []metadataCommon.OTADeclaration
func (InscribeRequest) Hash ¶
func (iReq InscribeRequest) Hash() *common.Hash
func (InscribeRequest) ValidateMetadataByItself ¶
func (iReq InscribeRequest) ValidateMetadataByItself() bool
func (InscribeRequest) ValidateSanityData ¶
func (iReq InscribeRequest) ValidateSanityData(chainRetriever metadataCommon.ChainRetriever, shardViewRetriever metadataCommon.ShardViewRetriever, beaconViewRetriever metadataCommon.BeaconViewRetriever, beaconHeight uint64, tx metadataCommon.Transaction) (bool, bool, error)
func (InscribeRequest) ValidateTxWithBlockChain ¶
func (iReq InscribeRequest) ValidateTxWithBlockChain(tx metadataCommon.Transaction, chainRetriever metadataCommon.ChainRetriever, shardViewRetriever metadataCommon.ShardViewRetriever, beaconViewRetriever metadataCommon.BeaconViewRetriever, shardID byte, transactionStateDB *statedb.StateDB) (bool, error)
type InscribeResponse ¶
type InscribeResponse struct { metadataCommon.MetadataBase // contains filtered or unexported fields }
func NewInscribeResponseWithValue ¶
func NewInscribeResponseWithValue(status, txReqID string) *InscribeResponse
func (*InscribeResponse) CalculateSize ¶
func (response *InscribeResponse) CalculateSize() uint64
func (*InscribeResponse) CheckTransactionFee ¶
func (response *InscribeResponse) CheckTransactionFee(tx metadataCommon.Transaction, minFeePerKb uint64, minFeePerTx uint64, beaconHeight int64, db *statedb.StateDB) bool
func (*InscribeResponse) Hash ¶
func (response *InscribeResponse) Hash() *common.Hash
func (*InscribeResponse) MarshalJSON ¶
func (response *InscribeResponse) MarshalJSON() ([]byte, error)
func (*InscribeResponse) Status ¶
func (response *InscribeResponse) Status() string
func (*InscribeResponse) TxReqID ¶
func (response *InscribeResponse) TxReqID() string
func (*InscribeResponse) UnmarshalJSON ¶
func (response *InscribeResponse) UnmarshalJSON(data []byte) error
func (*InscribeResponse) ValidateMetadataByItself ¶
func (response *InscribeResponse) ValidateMetadataByItself() bool
func (*InscribeResponse) ValidateSanityData ¶
func (response *InscribeResponse) ValidateSanityData( chainRetriever metadataCommon.ChainRetriever, shardViewRetriever metadataCommon.ShardViewRetriever, beaconViewRetriever metadataCommon.BeaconViewRetriever, beaconHeight uint64, tx metadataCommon.Transaction, ) (bool, bool, error)
func (*InscribeResponse) ValidateTxWithBlockChain ¶
func (response *InscribeResponse) ValidateTxWithBlockChain( tx metadataCommon.Transaction, chainRetriever metadataCommon.ChainRetriever, shardViewRetriever metadataCommon.ShardViewRetriever, beaconViewRetriever metadataCommon.BeaconViewRetriever, shardID byte, transactionStateDB *statedb.StateDB, ) (bool, error)
func (*InscribeResponse) VerifyMinerCreatedTxBeforeGettingInBlock ¶
func (response *InscribeResponse) VerifyMinerCreatedTxBeforeGettingInBlock( mintData *metadataCommon.MintData, shardID byte, tx metadataCommon.Transaction, chainRetriever metadataCommon.ChainRetriever, ac *metadataCommon.AccumulatedValues, shardViewRetriever metadataCommon.ShardViewRetriever, beaconViewRetriever metadataCommon.BeaconViewRetriever, ) (bool, error)
Click to show internal directories.
Click to hide internal directories.