Documentation ¶
Overview ¶
Package types contains the database types for the Executor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBAttestation ¶ added in v0.0.63
type DBAttestation struct { // Destination is the destination of the attestation. Destination *uint32 // SnapshotRoot is the snapshot root. SnapshotRoot *string // Height is the height of the snapshot Merkle tree. Height *uint8 // AttestationNonce is the nonce of the attestation. AttestationNonce *uint32 // SummitBlockNumber is the block number when the attestation was created in Summit. SummitBlockNumber *uint64 // SummitTimestamp is the timestamp of the block when the attestation was created in Summit. SummitTimestamp *uint64 // DestinationBlockNumber is the block number that the attestation was submitted on the destination. DestinationBlockNumber *uint64 // DestinationTimestamp is the timestamp of the block that the attestation was submitted on the destination. DestinationTimestamp *uint64 }
DBAttestation is the executor type for interacting with the database representation of an attestation.
type DBMessage ¶
type DBMessage struct { // ChainID is the chain ID of the chain that the message is for. ChainID *uint32 // Destination is the destination chain id of the message. Destination *uint32 // Nonce is the nonce of the message. Nonce *uint32 // Message is the message. Message *[]byte // BlockNumber is the block number of the message. BlockNumber *uint64 // Executed is if the message has been executed. Executed *bool // MinimumTimeSet is if the MinimumTime field has been set from an Attestation. MinimumTimeSet *bool // MinimumTime is the minimum time that the message can be executed. MinimumTime *uint64 }
DBMessage is the executor type for interacting with the database representation of a message.
type DBState ¶ added in v0.0.130
type DBState struct { // SnapshotRoot is the snapshot root. SnapshotRoot *string // Root is the origin Merkle tree's root. Root *string // ChainID is the origin chain id. ChainID *uint32 // Nonce is the origin Merkle tree's nonce. Nonce *uint32 // OriginBlockNumber is the block number that the state was taken from on the origin. OriginBlockNumber *uint64 // OriginTimestamp is the timestamp of the block that the state was taken from on the origin. OriginTimestamp *uint64 // Proof is the Snapshot Merkle Tree proof for the state. Proof *json.RawMessage // TreeHeight is the height of the Snapshot Merkle Tree that the state belongs to. TreeHeight *uint32 // StateIndex is the index of the state in the Snapshot. StateIndex *uint32 }
DBState is the executor type for interacting with the database representation of a state.
Click to show internal directories.
Click to hide internal directories.