ink

package
v0.0.0-...-7ece11e Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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)

type MintNftData

type MintNftData struct {
	NftID       common.Hash `json:"NftID"`
	OtaReceiver string      `json:"OtaReceiver"`
	ShardID     byte        `json:"ShardID"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL