types

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package types contains types specific to prom exporting.

this comes from: https://github.com/synapsecns/sanguine/blob/5f5f6779a33ff40ad099a43874d401f9c9dfe02a/packages/synapse-interface/constants/chains/index.tsx and needs to be manually updated when https://github.com/synapsecns/sanguine/issues/1586 is implemented, this can be removed nolint: golint, revive

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToInts

func ToInts(ids ...ChainID) (out []int)

ToInts converts a list of chainIDs to a slice of ints. please note: this will not remove duplicate chainids.

Types

type ChainID

type ChainID int

ChainID contains the chain id.

const (
	ETH       ChainID = 1
	ROPSTEN   ChainID = 3
	RINKEBY   ChainID = 4
	GOERLI    ChainID = 5
	OPTIMISM  ChainID = 10
	CRONOS    ChainID = 25
	KOVAN     ChainID = 42
	BSC       ChainID = 56
	BLAST     ChainID = 81457
	POLYGON   ChainID = 137
	FANTOM    ChainID = 250
	BOBA      ChainID = 288
	METIS     ChainID = 1088
	MOONBEAM  ChainID = 1284
	MOONRIVER ChainID = 1285
	DOGECHAIN ChainID = 2000
	CANTO     ChainID = 7700
	KLAYTN    ChainID = 8217
	ARBITRUM  ChainID = 42161
	BASE      ChainID = 8453
	AVALANCHE ChainID = 43114
	DFK       ChainID = 53935
	AURORA    ChainID = 1313161554
	HARMONY   ChainID = 1666600000
)

func (ChainID) Int

func (c ChainID) Int() int

Int returns the int value of the chain id.

func (ChainID) String

func (i ChainID) String() string

Jump to

Keyboard shortcuts

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