v0_1

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: 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 ChainConfig

type ChainConfig struct {
	ChainId      common_types.U256Decimal `json:"chain_id"`
	MaxBlockSize common_types.U256Decimal `json:"max_block_size"`
	BaseFee      common_types.U256Decimal `json:"base_fee"`
	FeeContract  *common.Address          `json:"fee_contract"`
	FeeRecipient common.Address           `json:"fee_recipient"`
}

func (*ChainConfig) Commit

func (self *ChainConfig) Commit() common_types.Commitment

type EitherChainConfig

type EitherChainConfig struct {
	Left  *ChainConfig   `json:"Left"`
	Right **TaggedBase64 `json:"Right"`
}

func (*EitherChainConfig) MarshalJSON

func (i *EitherChainConfig) MarshalJSON() ([]byte, error)

func (*EitherChainConfig) UnmarshalJSON

func (i *EitherChainConfig) UnmarshalJSON(b []byte) error
type Header struct {
	ChainConfig         *ResolvableChainConfig     `json:"chain_config"`
	Height              uint64                     `json:"height"`
	Timestamp           uint64                     `json:"timestamp"`
	L1Head              uint64                     `json:"l1_head"`
	L1Finalized         *common_types.L1BlockInfo  `json:"l1_finalized"           rlp:"nil"`
	PayloadCommitment   *common_types.TaggedBase64 `json:"payload_commitment"`
	BuilderCommitment   *common_types.TaggedBase64 `json:"builder_commitment"`
	NsTable             *common_types.NsTable      `json:"ns_table"`
	BlockMerkleTreeRoot *common_types.TaggedBase64 `json:"block_merkle_tree_root"`
	FeeMerkleTreeRoot   *common_types.TaggedBase64 `json:"fee_merkle_tree_root"`
	FeeInfo             *common_types.FeeInfo      `json:"fee_info"`
	BuilderSignature    *common_types.Signature    `json:"builder_signature"           rlp:"nil"`
}

func (*Header) Commit

func (self *Header) Commit() common_types.Commitment

func (*Header) GetBlockHeight

func (h *Header) GetBlockHeight() uint64

func (*Header) GetBlockMerkleTreeRoot

func (h *Header) GetBlockMerkleTreeRoot() *common_types.TaggedBase64

func (*Header) GetBuilderCommitment

func (h *Header) GetBuilderCommitment() *common_types.TaggedBase64

func (*Header) GetBuilderSignature

func (h *Header) GetBuilderSignature() *common_types.Signature

func (*Header) GetFeeMerkleTreeRoot

func (h *Header) GetFeeMerkleTreeRoot() *common_types.TaggedBase64

func (*Header) GetL1Head

func (h *Header) GetL1Head() uint64

func (*Header) GetNsTable

func (h *Header) GetNsTable() *common_types.NsTable

func (*Header) GetPayloadCommitment

func (h *Header) GetPayloadCommitment() *common_types.TaggedBase64

func (*Header) GetTimestamp

func (h *Header) GetTimestamp() uint64

func (*Header) UnmarshalJSON

func (h *Header) UnmarshalJSON(b []byte) error

func (*Header) Version

func (h *Header) Version() common_types.Version

type ResolvableChainConfig

type ResolvableChainConfig struct {
	ChainConfig EitherChainConfig `json:"chain_config"`
}

func (*ResolvableChainConfig) Commit

type TaggedBase64

type TaggedBase64 = tagged_base64.TaggedBase64

Jump to

Keyboard shortcuts

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