evmchain

package
v0.9.11 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package evmchain provides static metadata about supported evm chains.

Index

Constants

View Source
const (
	// Mainnets.
	IDStoryMainnet uint64 = 1514

	// Local Testet.
	IDLocal uint64 = 1511

	// Testnets.
	IDIliad uint64 = 1513

	IP  Token = "IP"
	ETH Token = "ETH"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

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

func MetadataByID

func MetadataByID(chainID uint64) (Metadata, bool)

func MetadataByName

func MetadataByName(name string) (Metadata, bool)

type Token

type Token string

Jump to

Keyboard shortcuts

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