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 ValidChainIds = []int{ArbitrumChainId, AuroraChainId, AvalancheChainId, BaseChainId, BscChainId, EthereumChainId, FantomChainId, GnosisChainId, KlaytnChainId, OptimismChainId, PolygonChainId, ZkSyncEraChainId}
View Source
var ValidFusionPresets = []string{"Fast", "Medium", "Slow", "Custom"}
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.