evmchain

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package evmchain provides static metadata about supported evm chains.

Index

Constants

View Source
const (
	// Mainnets.
	IDEthereum    uint64 = 1
	IDOmniMainnet uint64 = 166

	// Testnets.
	IDOmniTestnet uint64 = 165
	IDHolesky     uint64 = 17000
	IDArbSepolia  uint64 = 421614
	IDOpSepolia   uint64 = 11155420

	// Ephemeral.
	IDOmniEphemeral uint64 = 1651
	IDMockL1Fast    uint64 = 1652
	IDMockL1Slow    uint64 = 1653
	IDMockL2        uint64 = 1654
	IDMockOp        uint64 = 1655
	IDMockArb       uint64 = 1656
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	ChainID     uint64
	Name        string
	BlockPeriod time.Duration
	NativeToken tokens.Token
}

func MetadataByID

func MetadataByID(chainID uint64) (Metadata, bool)

func MetadataByName

func MetadataByName(name string) (Metadata, bool)

Jump to

Keyboard shortcuts

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