rollup

package
v0.0.0-...-44e5e6b Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rollup

type Rollup struct {
	Contract                *polygonvalidiumetrog.Polygonvalidiumetrog `json:"-"`
	Address                 common.Address
	GenesisRoot             common.Hash
	CreationBlock           uint64
	CreationBlockHash       common.Hash
	CreationParentBlockHash common.Hash
	CreationTimestamp       uint64
	ChainID                 uint64
	Name                    string
	RollupID                uint32
	GasToken                common.Address
}

func LoadFromFile

func LoadFromFile(client *ethclient.Client, filePath string) (*Rollup, error)

func LoadFromL1ByChainID

func LoadFromL1ByChainID(client *ethclient.Client, rm *rollupmanager.RollupManager, chainID uint64) (*Rollup, error)

func (*Rollup) InitContract

func (r *Rollup) InitContract(ctx context.Context, client bind.ContractBackend) error

InitContract initializes the rollup contract if not already initialized

Jump to

Keyboard shortcuts

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