evmchain

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 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
	IDOmniMainnet uint64 = 166

	// Testnets.
	IDOmniOmega   uint64 = 164
	IDHolesky     uint64 = 17000
	IDSepolia     uint64 = 11155111
	IDArbSepolia  uint64 = 421614
	IDOpSepolia   uint64 = 11155420
	IDBaseSepolia uint64 = 84532

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

Variables

This section is empty.

Functions

func IsOmniEVM

func IsOmniEVM(name string) bool

Types

type Metadata

type Metadata struct {
	ChainID     uint64
	PostsTo     uint64 // chain id to which tx data is posted
	Name        string
	BlockPeriod time.Duration
	NativeToken tokens.Token
}

func All

func All() []Metadata

All returns all evmchain metadatas ordered by chain ID.

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