types

package
v0.0.0-...-d4adcb1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyBlockID  = BlockID{}
	EmptyBlockRef = BlockRef{}
)

Functions

This section is empty.

Types

type Assertion

type Assertion struct {
	ID         *big.Int
	VmHash     common.Hash
	BlockNum   *big.Int
	Deadline   *big.Int
	StartBlock uint64
	EndBlock   uint64
}

Assertion represents disputable assertion for L1 rollup contract

func (*Assertion) Copy

func (a *Assertion) Copy() *Assertion

type BlockID

type BlockID struct {
	Number uint64      `json:"number"`
	Hash   common.Hash `json:"hash"`
}

func NewBlockID

func NewBlockID(number uint64, hash common.Hash) BlockID

func NewBlockIDFromHeader

func NewBlockIDFromHeader(header *types.Header) BlockID

func (BlockID) GetHash

func (id BlockID) GetHash() common.Hash

func (BlockID) GetNumber

func (id BlockID) GetNumber() uint64

func (BlockID) String

func (id BlockID) String() string

type BlockRef

type BlockRef struct {
	BlockID
	ParentHash common.Hash `json:"parent_hash"`
}

func NewBlockRef

func NewBlockRef(number uint64, hash common.Hash, parentHash common.Hash) BlockRef

func NewBlockRefFromHeader

func NewBlockRefFromHeader(header *types.Header) BlockRef

func (BlockRef) GetParentHash

func (ref BlockRef) GetParentHash() common.Hash

Jump to

Keyboard shortcuts

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