evmchain

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: GPL-3.0 Imports: 3 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
	IDOptimism    uint64 = 10
	IDBSC         uint64 = 56
	IDPolygon     uint64 = 137
	IDOmniMainnet uint64 = 166
	IDSolana      uint64 = 350
	IDHyperEVM    uint64 = 999
	IDMantle      uint64 = 5000
	IDBase        uint64 = 8453
	IDArbitrumOne uint64 = 42161
	IDBerachain   uint64 = 80094
	IDPlume       uint64 = 98866

	// Testnets.
	IDBSCTestnet uint64 = 97
	IDOmniOmega  uint64 = 164

	IDHyperEVMTestnet uint64 = 998
	IDHolesky         uint64 = 17000
	IDPolygonAmoy     uint64 = 80002
	IDBaseSepolia     uint64 = 84532
	IDPlumeTestnet    uint64 = 98867
	IDArbSepolia      uint64 = 421614
	IDSepolia         uint64 = 11155111
	IDOpSepolia       uint64 = 11155420
	IDSolanaDevnet    uint64 = 351 // Note we use solana devnet, not testnet which is for performance testing only.

	// Ephemeral.
	IDOmniStaging uint64 = 1650
	IDOmniDevnet  uint64 = 1651
	IDMockL1      uint64 = 1652
	IDMockL2      uint64 = 1654
	IDMockOp      uint64 = 1655
	IDMockArb     uint64 = 1656
	IDSolanaLocal uint64 = 352
)

Variables

This section is empty.

Functions

func IsDisabled added in v0.14.0

func IsDisabled(_ uint64) bool

IsDisabled returns true if the chain is disabled. TODO(corver): Remove once holesky issue resolved.

func IsSVM added in v0.16.0

func IsSVM(chainID uint64) bool

IsSVM returns true if the chain is a Solana Virtual Machine (SVM) chain.

func Name added in v0.15.0

func Name(id uint64) string

Name returns the name of the chain by its ID.

Types

type Metadata

type Metadata struct {
	ChainID     uint64
	PostsTo     uint64 // chain id to which tx data is posted
	Name        string
	PrettyName  string
	BlockPeriod time.Duration
	NativeToken tokens.Asset
	Reorgs      bool // Only if chain actually reorgs, e.g. L2s don't
}

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