constants

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArbitrumChainId  = 42161
	AuroraChainId    = 1313161554
	AvalancheChainId = 43114
	BaseChainId      = 8453
	BscChainId       = 56
	EthereumChainId  = 1
	FantomChainId    = 250
	GnosisChainId    = 100
	KlaytnChainId    = 8217
	OptimismChainId  = 10
	PolygonChainId   = 137
	ZkSyncEraChainId = 324
)
View Source
const AggregationRouterV5 = "0x1111111254eeb25477b68fb85ed929f73a960582" // Contract address is identical for all chains except zkSync
View Source
const AggregationRouterV5Name = "1inch Aggregation Router"
View Source
const AggregationRouterV5VersionNumber = "5"
View Source
const AggregationRouterV6 = "0x111111125421cA6dc452d289314280a0f8842A65" // Contract address is identical for all chains except zkSync
View Source
const AggregationRouterV6Name = "1inch Aggregation Router"
View Source
const AggregationRouterV6VersionNumber = "6"
View Source
const AggregationV5RouterZkSyncEra = "0x6e2B76966cbD9cF4cC2Fa0D76d24d5241E0ABC2F"
View Source
const ERC20_APPROVE_GAS = 45_000
View Source
const NativeToken = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
View Source
const SeriesNonceManagerArbitrum = "0xD7936052D1e096d48C81Ef3918F9Fd6384108480"
View Source
const SeriesNonceManagerAurora = "0x7F069df72b7A39bCE9806e3AfaF579E54D8CF2b9"
View Source
const SeriesNonceManagerAvalanche = "0x2EC255797FEF7669fA243509b7a599121148FFba"
View Source
const SeriesNonceManagerBase = "0xD9Cc0A957cAC93135596f98c20Fbaca8Bf515909"
View Source
const SeriesNonceManagerBsc = "0x58ce0e6ef670c9a05622f4188faa03a9e12ee2e4"
View Source
const SeriesNonceManagerEthereum = "0x303389f541ff2d620e42832f180a08e767b28e10"
View Source
const SeriesNonceManagerFantom = "0x7871769b3816b23dB12E83a482aAc35F1FD35D4B"
View Source
const SeriesNonceManagerGnosis = "0x11431a89893025D2a48dCA4EddC396f8C8117187"
View Source
const SeriesNonceManagerKlaytn = "0x7871769b3816b23dB12E83a482aAc35F1FD35D4B"
View Source
const SeriesNonceManagerOptimism = "0x32d12a25f539E341089050E2d26794F041fC9dF8"
View Source
const SeriesNonceManagerPolygon = "0xa5eb255EF45dFb48B5d133d08833DEF69871691D"

Variables

View Source
var AggregationRouterV5ABI string
View Source
var AggregationRouterV6ABI string
View Source
var Erc20ABI string
View Source
var SeriesNonceManagerABI string
View Source
var ValidFusionPresets = []string{"Fast", "Medium", "Slow", "Custom"}

Functions

func Get1inchRouterFromChainId

func Get1inchRouterFromChainId(chainId int) (string, error)

func GetSeriesNonceManagerFromChainId

func GetSeriesNonceManagerFromChainId(chainId int) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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