metadata

package
v0.0.0-...-9c383ba Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaikoBatchMetaDataPacaya

type TaikoBatchMetaDataPacaya interface {
	GetTxListHash() common.Hash
	GetExtraData() []byte
	GetCoinbase() common.Address
	GetBatchID() *big.Int
	GetGasLimit() uint32
	GetLastBlockTimestamp() uint64
	GetProposer() common.Address
	GetProposedAt() uint64
	GetProposedIn() uint64
	GetBlobCreatedIn() *big.Int
	GetTxListOffset() uint32
	GetTxListSize() uint32
	GetLastBlockID() uint64
	GetBlobHashes() []common.Hash
	GetAnchorBlockID() uint64
	GetAnchorBlockHash() common.Hash
	GetBlocks() []pacayaBindings.ITaikoInboxBlockParams
	GetBaseFeeConfig() *pacayaBindings.LibSharedDataBaseFeeConfig
	GetRawBlockHeight() *big.Int
	GetRawBlockHash() common.Hash
	GetTxIndex() uint
	GetTxHash() common.Hash
	InnerMetadata() *pacayaBindings.ITaikoInboxBatchMetadata
}

type TaikoBlockMetaDataOntake

type TaikoBlockMetaDataOntake interface {
	GetAnchorBlockHash() common.Hash
	GetDifficulty() common.Hash
	GetBlobHash() common.Hash
	GetExtraData() []byte
	GetCoinbase() common.Address
	GetBlockID() *big.Int
	GetGasLimit() uint32
	GetTimestamp() uint64
	GetAnchorBlockID() uint64
	GetMinTier() uint16
	GetBlobUsed() bool
	GetParentMetaHash() common.Hash
	GetProposer() common.Address
	GetAssignedProver() common.Address
	GetLivenessBond() *big.Int
	GetProposedAt() uint64
	GetProposedIn() uint64
	GetBlobCreatedIn() *big.Int
	GetBlobTxListOffset() uint32
	GetBlobTxListLength() uint32
	GetBlobIndex() uint8
	GetBaseFeeConfig() *ontakeBindings.LibSharedDataBaseFeeConfig
	GetRawBlockHeight() *big.Int
	GetRawBlockHash() common.Hash
	GetTxIndex() uint
	GetTxHash() common.Hash
	InnerMetadata() *ontakeBindings.TaikoDataBlockMetadataV2
}

type TaikoDataBlockMetadataOntake

type TaikoDataBlockMetadataOntake struct {
	ontakeBindings.TaikoDataBlockMetadataV2
	types.Log
}

TaikoDataBlockMetadataOntake is the metadata of an ontake Taiko block.

func NewTaikoDataBlockMetadataOntake

NewTaikoDataBlockMetadataOntake creates a new instance of TaikoDataBlockMetadataOntake from the TaikoL1.BlockProposedV2 event.

func (*TaikoDataBlockMetadataOntake) GetAnchorBlockHash

func (m *TaikoDataBlockMetadataOntake) GetAnchorBlockHash() common.Hash

GetAnchorBlockHash returns the anchor block hash.

func (*TaikoDataBlockMetadataOntake) GetAnchorBlockID

func (m *TaikoDataBlockMetadataOntake) GetAnchorBlockID() uint64

GetAnchorBlockID returns the L1 block number which should be used in anchor transaction.

func (*TaikoDataBlockMetadataOntake) GetAssignedProver

func (m *TaikoDataBlockMetadataOntake) GetAssignedProver() common.Address

GetAssignedProver returns the assigned prover address, right now this address should be equal to the proposer address.

func (*TaikoDataBlockMetadataOntake) GetBaseFeeConfig

GetBaseFeeConfig returns the L2 block basefee configs.

func (*TaikoDataBlockMetadataOntake) GetBlobCreatedIn

func (m *TaikoDataBlockMetadataOntake) GetBlobCreatedIn() *big.Int

GetBlobCreatedIn returns the L1 block number when the blob created.

func (*TaikoDataBlockMetadataOntake) GetBlobHash

func (m *TaikoDataBlockMetadataOntake) GetBlobHash() common.Hash

GetBlobHash returns the blob hash.

func (*TaikoDataBlockMetadataOntake) GetBlobIndex

func (m *TaikoDataBlockMetadataOntake) GetBlobIndex() uint8

GetBlobIndex returns the blob index.

func (*TaikoDataBlockMetadataOntake) GetBlobTxListLength

func (m *TaikoDataBlockMetadataOntake) GetBlobTxListLength() uint32

GetBlobTxListLength returns the blob tx list length.

func (*TaikoDataBlockMetadataOntake) GetBlobTxListOffset

func (m *TaikoDataBlockMetadataOntake) GetBlobTxListOffset() uint32

GetBlobTxListOffset returns the blob tx list offset.

func (*TaikoDataBlockMetadataOntake) GetBlobUsed

func (m *TaikoDataBlockMetadataOntake) GetBlobUsed() bool

GetBlobUsed returns whether the blob is used.

func (*TaikoDataBlockMetadataOntake) GetBlockID

func (m *TaikoDataBlockMetadataOntake) GetBlockID() *big.Int

GetBlockID returns the L2 block ID.

func (*TaikoDataBlockMetadataOntake) GetCoinbase

func (m *TaikoDataBlockMetadataOntake) GetCoinbase() common.Address

GetCoinbase returns the coinbase.

func (*TaikoDataBlockMetadataOntake) GetDifficulty

func (m *TaikoDataBlockMetadataOntake) GetDifficulty() common.Hash

GetDifficulty returns the difficulty.

func (*TaikoDataBlockMetadataOntake) GetExtraData

func (m *TaikoDataBlockMetadataOntake) GetExtraData() []byte

GetExtraData returns the extra data.

func (*TaikoDataBlockMetadataOntake) GetGasLimit

func (m *TaikoDataBlockMetadataOntake) GetGasLimit() uint32

GetGasLimit returns the gas limit.

func (*TaikoDataBlockMetadataOntake) GetLivenessBond

func (m *TaikoDataBlockMetadataOntake) GetLivenessBond() *big.Int

GetLivenessBond returns the liveness bond.

func (*TaikoDataBlockMetadataOntake) GetMinTier

func (m *TaikoDataBlockMetadataOntake) GetMinTier() uint16

GetMinTier returns the minimum tier.

func (*TaikoDataBlockMetadataOntake) GetParentMetaHash

func (m *TaikoDataBlockMetadataOntake) GetParentMetaHash() common.Hash

GetParentMetaHash returns the parent meta hash.

func (*TaikoDataBlockMetadataOntake) GetProposedAt

func (m *TaikoDataBlockMetadataOntake) GetProposedAt() uint64

GetProposedAt returns the proposedAt timestamp.

func (*TaikoDataBlockMetadataOntake) GetProposedIn

func (m *TaikoDataBlockMetadataOntake) GetProposedIn() uint64

GetProposedIn returns the proposedIn block number.

func (*TaikoDataBlockMetadataOntake) GetProposer

func (m *TaikoDataBlockMetadataOntake) GetProposer() common.Address

GetProposer returns the proposer address.

func (*TaikoDataBlockMetadataOntake) GetRawBlockHash

func (m *TaikoDataBlockMetadataOntake) GetRawBlockHash() common.Hash

GetRawBlockHash returns the raw L1 block hash.

func (*TaikoDataBlockMetadataOntake) GetRawBlockHeight

func (m *TaikoDataBlockMetadataOntake) GetRawBlockHeight() *big.Int

GetRawBlockHeight returns the raw L1 block height.

func (*TaikoDataBlockMetadataOntake) GetTimestamp

func (m *TaikoDataBlockMetadataOntake) GetTimestamp() uint64

GetTimestamp returns the timestamp.

func (*TaikoDataBlockMetadataOntake) GetTxHash

func (m *TaikoDataBlockMetadataOntake) GetTxHash() common.Hash

GetTxHash returns the transaction hash.

func (*TaikoDataBlockMetadataOntake) GetTxIndex

func (m *TaikoDataBlockMetadataOntake) GetTxIndex() uint

GetTxIndex returns the transaction index.

func (*TaikoDataBlockMetadataOntake) InnerMetadata

InnerMetadata returns the inner metadata.

func (*TaikoDataBlockMetadataOntake) IsPacaya

func (m *TaikoDataBlockMetadataOntake) IsPacaya() bool

IsPacaya implemnts TaikoProposalMetaData interface.

func (*TaikoDataBlockMetadataOntake) Ontake

Ontake implemnts TaikoProposalMetaData interface.

func (*TaikoDataBlockMetadataOntake) Pacaya

Pacaya implemnts TaikoProposalMetaData interface.

type TaikoDataBlockMetadataPacaya

TaikoDataBlockMetadataPacaya is the metadata of an ontake Taiko block.

func NewTaikoDataBlockMetadataPacaya

NewTaikoDataBlockMetadataPacaya creates a new instance of TaikoDataBlockMetadataPacaya from the TaikoL1.BlockProposedV2 event.

func (*TaikoDataBlockMetadataPacaya) GetAnchorBlockHash

func (m *TaikoDataBlockMetadataPacaya) GetAnchorBlockHash() common.Hash

GetAnchorBlockHash returns the anchor block hash.

func (*TaikoDataBlockMetadataPacaya) GetAnchorBlockID

func (m *TaikoDataBlockMetadataPacaya) GetAnchorBlockID() uint64

GetAnchorBlockID returns the anchor block ID.

func (*TaikoDataBlockMetadataPacaya) GetBaseFeeConfig

GetBaseFeeConfig returns the L2 block basefee configs.

func (*TaikoDataBlockMetadataPacaya) GetBatchID

func (m *TaikoDataBlockMetadataPacaya) GetBatchID() *big.Int

GetTxListHash returns batch ID.

func (*TaikoDataBlockMetadataPacaya) GetBlobCreatedIn

func (m *TaikoDataBlockMetadataPacaya) GetBlobCreatedIn() *big.Int

GetBlobCreatedIn returns the L1 block number when the blob created.

func (*TaikoDataBlockMetadataPacaya) GetBlobHashes

func (m *TaikoDataBlockMetadataPacaya) GetBlobHashes() []common.Hash

GetBlobHashes returns blob hashes in this batch.

func (*TaikoDataBlockMetadataPacaya) GetBlocks

GetBlocks returns block params of this batch.

func (*TaikoDataBlockMetadataPacaya) GetCoinbase

func (m *TaikoDataBlockMetadataPacaya) GetCoinbase() common.Address

GetCoinbase returns block coinbase.

func (*TaikoDataBlockMetadataPacaya) GetExtraData

func (m *TaikoDataBlockMetadataPacaya) GetExtraData() []byte

GetTxListHash returns block extradata.

func (*TaikoDataBlockMetadataPacaya) GetGasLimit

func (m *TaikoDataBlockMetadataPacaya) GetGasLimit() uint32

GetGasLimit returns gas limit of each L2 block.

func (*TaikoDataBlockMetadataPacaya) GetLastBlockID

func (m *TaikoDataBlockMetadataPacaya) GetLastBlockID() uint64

GetLastBlockID returns last block's ID in this batch.

func (*TaikoDataBlockMetadataPacaya) GetLastBlockTimestamp

func (m *TaikoDataBlockMetadataPacaya) GetLastBlockTimestamp() uint64

GetLastBlockTimestamp returns last block's timestamp in this batch.

func (*TaikoDataBlockMetadataPacaya) GetProposedAt

func (m *TaikoDataBlockMetadataPacaya) GetProposedAt() uint64

GetProposedAt returns the proposing timestamp of this batch.

func (*TaikoDataBlockMetadataPacaya) GetProposedIn

func (m *TaikoDataBlockMetadataPacaya) GetProposedIn() uint64

ProposedIn returns the proposing L1 block number of this batch.

func (*TaikoDataBlockMetadataPacaya) GetProposer

func (m *TaikoDataBlockMetadataPacaya) GetProposer() common.Address

GetProposer returns the proposer of this batch.

func (*TaikoDataBlockMetadataPacaya) GetRawBlockHash

func (m *TaikoDataBlockMetadataPacaya) GetRawBlockHash() common.Hash

GetRawBlockHash returns the raw L1 block hash.

func (*TaikoDataBlockMetadataPacaya) GetRawBlockHeight

func (m *TaikoDataBlockMetadataPacaya) GetRawBlockHeight() *big.Int

GetRawBlockHeight returns the raw L1 block height.

func (*TaikoDataBlockMetadataPacaya) GetTxHash

func (m *TaikoDataBlockMetadataPacaya) GetTxHash() common.Hash

GetTxHash returns the transaction hash.

func (*TaikoDataBlockMetadataPacaya) GetTxIndex

func (m *TaikoDataBlockMetadataPacaya) GetTxIndex() uint

GetTxIndex returns the transaction index.

func (*TaikoDataBlockMetadataPacaya) GetTxListHash

func (m *TaikoDataBlockMetadataPacaya) GetTxListHash() common.Hash

GetTxListHash returns the hash of calldata txlist.

func (*TaikoDataBlockMetadataPacaya) GetTxListOffset

func (m *TaikoDataBlockMetadataPacaya) GetTxListOffset() uint32

GetTxListOffset returns calldata tx list offset.

func (*TaikoDataBlockMetadataPacaya) GetTxListSize

func (m *TaikoDataBlockMetadataPacaya) GetTxListSize() uint32

GetTxListSize returns calldata tx list size.

func (*TaikoDataBlockMetadataPacaya) InnerMetadata

InnerMetadata returns the inner metadata.

func (*TaikoDataBlockMetadataPacaya) IsOntakeBlock

func (m *TaikoDataBlockMetadataPacaya) IsOntakeBlock() bool

IsOntakeBlock returns whether the block is an ontake block.

func (*TaikoDataBlockMetadataPacaya) IsPacaya

func (m *TaikoDataBlockMetadataPacaya) IsPacaya() bool

IsPacaya implemnts TaikoProposalMetaData interface.

func (*TaikoDataBlockMetadataPacaya) Ontake

Ontake implemnts TaikoProposalMetaData interface.

func (*TaikoDataBlockMetadataPacaya) Pacaya

Pacaya implemnts TaikoProposalMetaData interface.

type TaikoProposalMetaData

type TaikoProposalMetaData interface {
	Ontake() TaikoBlockMetaDataOntake
	Pacaya() TaikoBatchMetaDataPacaya
	IsPacaya() bool
	GetRawBlockHeight() *big.Int
	GetRawBlockHash() common.Hash
	GetTxIndex() uint
	GetTxHash() common.Hash
	GetProposer() common.Address
	GetCoinbase() common.Address
	GetBlobCreatedIn() *big.Int
}

TaikoProposalMetaData defines all the metadata of a Taiko block.

Jump to

Keyboard shortcuts

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