evmchain

package
v0.1.10 Latest Latest
Warning

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

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

Documentation

Overview

Package evmchain provides static metadata about supported evm chains.

This package should only contain public well-known metadata and should not be Omni-network specific, since multiple omni networks can be deployed to the same evm chain.

Index

Constants

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

	// Testnets.
	IDOmniOmega  uint64 = 164
	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
	IsL2        bool
	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