chains

package
v1.10.17 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainType added in v1.10.17

type ChainType string
const (
	Arbitrum ChainType = "arbitrum"
	ExChain  ChainType = "exchain"
	Optimism ChainType = "optimism"
	XDai     ChainType = "xdai"
)

func (ChainType) IsL2 added in v1.10.17

func (c ChainType) IsL2() bool

IsL2 returns true if this chain is a Layer 2 chain. Notably the block numbers used for log searching are different from calling block.number

func (ChainType) IsValid added in v1.10.17

func (c ChainType) IsValid() bool

IsValid returns true if the ChainType value is known or empty.

Directories

Path Synopsis
evm

Jump to

Keyboard shortcuts

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