chains

package
v1.3.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 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.1.0

type ChainType string

ChainType denotes the chain or network to work with

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

nolint

func (ChainType) IsL2 added in v1.1.0

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.1.0

func (c ChainType) IsValid() bool

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

Jump to

Keyboard shortcuts

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