@pancakeswap/chains
Advanced tools
| export { allChainConfigs, chainConfigs, Chains, evmChainConfigs, getChainConfig, getChainIdsByFeature, getL2ChainIds, robinhoodChainConfig, } from './chains'; | ||
| export type { Chain, ChainConfig, ChainContractConfig, ChainFeatureConfig, ChainHashConfig, ChainRoutingConfig, ChainIdWithFeature, EvmChainConfig, NonEvmChainConfig, UnifiedChainConfig, } from './chains'; | ||
| //# sourceMappingURL=chainConfigs.d.ts.map |
| {"version":3,"file":"chainConfigs.d.ts","sourceRoot":"","sources":["../src/chainConfigs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,YAAY,EACZ,MAAM,EACN,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,oBAAoB,GACrB,MAAM,UAAU,CAAA;AACjB,YAAY,EACV,KAAK,EACL,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,UAAU,CAAA"} |
| export {}; | ||
| //# sourceMappingURL=chains.test.d.ts.map |
| {"version":3,"file":"chains.test.d.ts","sourceRoot":"","sources":["../src/chains.test.ts"],"names":[],"mappings":""} |
| import { NonEVMChainId } from '../chainId'; | ||
| export declare const aptos: { | ||
| readonly id: NonEVMChainId.APTOS; | ||
| readonly name: "aptos"; | ||
| readonly fullName: "Aptos"; | ||
| readonly kebabCaseName: "aptos"; | ||
| readonly mainnetKebabCaseName: "aptos"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: false; | ||
| }; | ||
| //# sourceMappingURL=aptos.d.ts.map |
| {"version":3,"file":"aptos.d.ts","sourceRoot":"","sources":["../../src/chains/aptos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAG1C,eAAO,MAAM,KAAK;;;;;;;;CAQoB,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const arbitrum: { | ||
| readonly id: ChainId.ARBITRUM_ONE; | ||
| readonly name: "arb"; | ||
| readonly fullName: "Arbitrum One"; | ||
| readonly kebabCaseName: "arbitrum"; | ||
| readonly mainnetKebabCaseName: "arbitrum"; | ||
| readonly defiLlamaName: "arbitrum"; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly averageBlockTime: 0.25; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly prediction: true; | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=arbitrum.d.ts.map |
| {"version":3,"file":"arbitrum.d.ts","sourceRoot":"","sources":["../../src/chains/arbitrum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;CAWc,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const arbitrumGoerli: { | ||
| readonly id: ChainId.ARBITRUM_GOERLI; | ||
| readonly name: "arbGoerli"; | ||
| readonly fullName: "Arbitrum Goerli"; | ||
| readonly kebabCaseName: "arbitrum-goerli"; | ||
| readonly mainnetKebabCaseName: "arbitrum"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 0.25; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=arbitrumGoerli.d.ts.map |
| {"version":3,"file":"arbitrumGoerli.d.ts","sourceRoot":"","sources":["../../src/chains/arbitrumGoerli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;CAYQ,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const arbitrumSepolia: { | ||
| readonly id: ChainId.ARBITRUM_SEPOLIA; | ||
| readonly name: "arbSepolia"; | ||
| readonly fullName: "Arbitrum Sepolia"; | ||
| readonly kebabCaseName: "arbitrum-sepolia"; | ||
| readonly mainnetKebabCaseName: "arbitrum"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 0.25; | ||
| }; | ||
| //# sourceMappingURL=arbitrumSepolia.d.ts.map |
| {"version":3,"file":"arbitrumSepolia.d.ts","sourceRoot":"","sources":["../../src/chains/arbitrumSepolia.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,eAAe;;;;;;;;;;;CAWO,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const base: { | ||
| readonly id: ChainId.BASE; | ||
| readonly name: "base"; | ||
| readonly fullName: "Base"; | ||
| readonly kebabCaseName: "base"; | ||
| readonly mainnetKebabCaseName: "base"; | ||
| readonly defiLlamaName: "base"; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly averageBlockTime: 2; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly aggregator: true; | ||
| readonly infinity: true; | ||
| readonly v3: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=base.d.ts.map |
| {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/chains/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;CAWkB,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const baseSepolia: { | ||
| readonly id: ChainId.BASE_SEPOLIA; | ||
| readonly name: "baseSepolia"; | ||
| readonly fullName: "Base Sepolia"; | ||
| readonly kebabCaseName: "base-sepolia"; | ||
| readonly mainnetKebabCaseName: "base"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 2; | ||
| }; | ||
| //# sourceMappingURL=baseSepolia.d.ts.map |
| {"version":3,"file":"baseSepolia.d.ts","sourceRoot":"","sources":["../../src/chains/baseSepolia.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,WAAW;;;;;;;;;;;CAWW,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const baseTestnet: { | ||
| readonly id: ChainId.BASE_TESTNET; | ||
| readonly name: "baseTestnet"; | ||
| readonly fullName: "Base Testnet"; | ||
| readonly kebabCaseName: "base-testnet"; | ||
| readonly mainnetKebabCaseName: "base"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 2; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=baseTestnet.d.ts.map |
| {"version":3,"file":"baseTestnet.d.ts","sourceRoot":"","sources":["../../src/chains/baseTestnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CAYW,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const bsc: { | ||
| readonly id: ChainId.BSC; | ||
| readonly name: "bsc"; | ||
| readonly fullName: "BNB Chain"; | ||
| readonly kebabCaseName: "bsc"; | ||
| readonly mainnetKebabCaseName: "bsc"; | ||
| readonly defiLlamaName: "bsc"; | ||
| readonly isEVM: true; | ||
| readonly averageBlockTime: 0.45; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly prediction: true; | ||
| readonly aggregator: true; | ||
| readonly infinity: true; | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=bsc.d.ts.map |
| {"version":3,"file":"bsc.d.ts","sourceRoot":"","sources":["../../src/chains/bsc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;CAkBmB,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const bscTestnet: { | ||
| readonly id: ChainId.BSC_TESTNET; | ||
| readonly name: "bscTestnet"; | ||
| readonly fullName: "BNB Chain Testnet"; | ||
| readonly kebabCaseName: "bsc-testnet"; | ||
| readonly mainnetKebabCaseName: "bsc"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 0.45; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly infinity: true; | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=bscTestnet.d.ts.map |
| {"version":3,"file":"bscTestnet.d.ts","sourceRoot":"","sources":["../../src/chains/bscTestnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;CAWY,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const ethereum: { | ||
| readonly id: ChainId.ETHEREUM; | ||
| readonly name: "eth"; | ||
| readonly fullName: "Ethereum"; | ||
| readonly kebabCaseName: "ethereum"; | ||
| readonly mainnetKebabCaseName: "ethereum"; | ||
| readonly defiLlamaName: "ethereum"; | ||
| readonly isEVM: true; | ||
| readonly averageBlockTime: 12; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly prediction: false; | ||
| readonly aggregator: true; | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=ethereum.d.ts.map |
| {"version":3,"file":"ethereum.d.ts","sourceRoot":"","sources":["../../src/chains/ethereum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;CAUc,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const goerli: { | ||
| readonly id: ChainId.GOERLI; | ||
| readonly name: "goerli"; | ||
| readonly fullName: "Goerli"; | ||
| readonly kebabCaseName: "goerli"; | ||
| readonly mainnetKebabCaseName: "ethereum"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 3; | ||
| readonly features: { | ||
| readonly v2: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=goerli.d.ts.map |
| {"version":3,"file":"goerli.d.ts","sourceRoot":"","sources":["../../src/chains/goerli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAWgB,CAAA"} |
| import { ChainId, UnifiedChainId } from '../chainId'; | ||
| import { ChainConfig, ChainFeatureConfig, EvmChainConfig, UnifiedChainConfig } from './types'; | ||
| export * from './types'; | ||
| export interface Chain { | ||
| id: UnifiedChainId; | ||
| name: string; | ||
| fullName: string; | ||
| isEVM: boolean; | ||
| testnet?: boolean; | ||
| } | ||
| declare const allChainConfigsLiteral: readonly [{ | ||
| readonly id: ChainId.BSC; | ||
| readonly name: "bsc"; | ||
| readonly fullName: "BNB Chain"; | ||
| readonly kebabCaseName: "bsc"; | ||
| readonly mainnetKebabCaseName: "bsc"; | ||
| readonly defiLlamaName: "bsc"; | ||
| readonly isEVM: true; | ||
| readonly averageBlockTime: 0.45; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly prediction: true; | ||
| readonly aggregator: true; | ||
| readonly infinity: true; | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.ETHEREUM; | ||
| readonly name: "eth"; | ||
| readonly fullName: "Ethereum"; | ||
| readonly kebabCaseName: "ethereum"; | ||
| readonly mainnetKebabCaseName: "ethereum"; | ||
| readonly defiLlamaName: "ethereum"; | ||
| readonly isEVM: true; | ||
| readonly averageBlockTime: 12; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly prediction: false; | ||
| readonly aggregator: true; | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| }, { | ||
| readonly id: import("../chainId").NonEVMChainId.SOLANA; | ||
| readonly name: "sol"; | ||
| readonly fullName: "Solana"; | ||
| readonly kebabCaseName: "sol"; | ||
| readonly mainnetKebabCaseName: "sol"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: false; | ||
| }, { | ||
| readonly id: import("../chainId").NonEVMChainId.APTOS; | ||
| readonly name: "aptos"; | ||
| readonly fullName: "Aptos"; | ||
| readonly kebabCaseName: "aptos"; | ||
| readonly mainnetKebabCaseName: "aptos"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: false; | ||
| }, { | ||
| readonly id: ChainId.BASE; | ||
| readonly name: "base"; | ||
| readonly fullName: "Base"; | ||
| readonly kebabCaseName: "base"; | ||
| readonly mainnetKebabCaseName: "base"; | ||
| readonly defiLlamaName: "base"; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly averageBlockTime: 2; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly aggregator: true; | ||
| readonly infinity: true; | ||
| readonly v3: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.MONAD_MAINNET; | ||
| readonly name: "monad"; | ||
| readonly fullName: "Monad"; | ||
| readonly kebabCaseName: "monad"; | ||
| readonly mainnetKebabCaseName: "monad"; | ||
| readonly defiLlamaName: "monad"; | ||
| readonly isEVM: true; | ||
| readonly averageBlockTime: 1; | ||
| readonly features: { | ||
| readonly farms: true; | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.ROBINHOOD; | ||
| readonly name: "robinhood"; | ||
| readonly fullName: "Robinhood"; | ||
| readonly kebabCaseName: "robinhood"; | ||
| readonly mainnetKebabCaseName: "robinhood"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly averageBlockTime: 1; | ||
| readonly nativeCurrency: { | ||
| readonly name: "Ether"; | ||
| readonly symbol: "ETH"; | ||
| readonly decimals: 18; | ||
| }; | ||
| readonly blockExplorerUrl: "https://robinhoodchain.blockscout.com/"; | ||
| readonly features: { | ||
| readonly swap: true; | ||
| readonly liquidity: true; | ||
| readonly pools: true; | ||
| readonly farms: false; | ||
| readonly prediction: false; | ||
| readonly aggregator: false; | ||
| readonly infinity: false; | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| readonly tokens: { | ||
| readonly wrappedNative: "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73"; | ||
| }; | ||
| readonly contracts: { | ||
| readonly multicall: "0xcf05Fc31A6B693DD0bEB76e958ae4BCD490dc985"; | ||
| readonly multicall3: "0xD59aaE32bcF95AAe58119751d5E355C9855cDC31"; | ||
| readonly permit2: "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768"; | ||
| readonly v2Factory: "0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E"; | ||
| readonly v2Router: "0x8cFe327CEc66d1C090Dd72bd0FF11d690C33a2Eb"; | ||
| readonly v3Factory: "0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865"; | ||
| readonly v3Deployer: "0x41ff9AA7e16B8B1a8a8dc4f0eFacd93D02d071c9"; | ||
| readonly v3NftPositionManager: "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364"; | ||
| readonly v3Migrator: "0xbC203d7f83677c7ed3F7acEc959963E7F4ECC5C2"; | ||
| readonly v3Quoter: "0x8553AA1615549A86882151784b329B017aA7c832"; | ||
| readonly v3TickLens: "0x9a489505a00cE272eAa5e07Dba6491314CaE3796"; | ||
| readonly mixedRouteQuoter: "0x2b792b99ae08483D45d79833408439674C6Daf1B"; | ||
| readonly smartRouter: "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4"; | ||
| readonly universalRouter: "0xE28c0e44F4016b073db20cF28971CAc6ce3664D3"; | ||
| }; | ||
| readonly hashes: { | ||
| readonly v2InitCodeHash: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d"; | ||
| readonly v3PoolInitCodeHash: "0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2"; | ||
| }; | ||
| readonly routing: { | ||
| readonly poolDiscovery: "onChainOnly"; | ||
| readonly skipCompactTickFallback: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.ARBITRUM_ONE; | ||
| readonly name: "arb"; | ||
| readonly fullName: "Arbitrum One"; | ||
| readonly kebabCaseName: "arbitrum"; | ||
| readonly mainnetKebabCaseName: "arbitrum"; | ||
| readonly defiLlamaName: "arbitrum"; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly averageBlockTime: 0.25; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly prediction: true; | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.ZKSYNC; | ||
| readonly name: "zkSync"; | ||
| readonly fullName: "ZKsync Era"; | ||
| readonly kebabCaseName: "zksync"; | ||
| readonly mainnetKebabCaseName: "zksync"; | ||
| readonly defiLlamaName: "era"; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly averageBlockTime: 2; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly prediction: true; | ||
| readonly v3: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.ZKSYNC_TESTNET; | ||
| readonly name: "zkSyncTestnet"; | ||
| readonly fullName: "ZKsync Era Testnet"; | ||
| readonly kebabCaseName: "zksync-testnet"; | ||
| readonly mainnetKebabCaseName: "zksync"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 2; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly v3: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.LINEA; | ||
| readonly name: "linea"; | ||
| readonly fullName: "Linea"; | ||
| readonly kebabCaseName: "linea"; | ||
| readonly mainnetKebabCaseName: "linea"; | ||
| readonly defiLlamaName: "linea"; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly averageBlockTime: 2; | ||
| readonly features: { | ||
| readonly farms: true; | ||
| readonly v3: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.OPBNB; | ||
| readonly name: "opBNB"; | ||
| readonly fullName: "opBNB"; | ||
| readonly kebabCaseName: "opbnb"; | ||
| readonly mainnetKebabCaseName: "opbnb"; | ||
| readonly defiLlamaName: "op_bnb"; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly averageBlockTime: 0.5; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly v3: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.BSC_TESTNET; | ||
| readonly name: "bscTestnet"; | ||
| readonly fullName: "BNB Chain Testnet"; | ||
| readonly kebabCaseName: "bsc-testnet"; | ||
| readonly mainnetKebabCaseName: "bsc"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 0.45; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly infinity: true; | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.GOERLI; | ||
| readonly name: "goerli"; | ||
| readonly fullName: "Goerli"; | ||
| readonly kebabCaseName: "goerli"; | ||
| readonly mainnetKebabCaseName: "ethereum"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 3; | ||
| readonly features: { | ||
| readonly v2: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.SEPOLIA; | ||
| readonly name: "sepolia"; | ||
| readonly fullName: "Sepolia"; | ||
| readonly kebabCaseName: "sepolia"; | ||
| readonly mainnetKebabCaseName: "ethereum"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 12; | ||
| readonly features: { | ||
| readonly infinity: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.ARBITRUM_GOERLI; | ||
| readonly name: "arbGoerli"; | ||
| readonly fullName: "Arbitrum Goerli"; | ||
| readonly kebabCaseName: "arbitrum-goerli"; | ||
| readonly mainnetKebabCaseName: "arbitrum"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 0.25; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.ARBITRUM_SEPOLIA; | ||
| readonly name: "arbSepolia"; | ||
| readonly fullName: "Arbitrum Sepolia"; | ||
| readonly kebabCaseName: "arbitrum-sepolia"; | ||
| readonly mainnetKebabCaseName: "arbitrum"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 0.25; | ||
| }, { | ||
| readonly id: ChainId.LINEA_TESTNET; | ||
| readonly name: "lineaTestnet"; | ||
| readonly fullName: "Linea Testnet"; | ||
| readonly kebabCaseName: "linea-testnet"; | ||
| readonly mainnetKebabCaseName: "linea"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 2; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.BASE_TESTNET; | ||
| readonly name: "baseTestnet"; | ||
| readonly fullName: "Base Testnet"; | ||
| readonly kebabCaseName: "base-testnet"; | ||
| readonly mainnetKebabCaseName: "base"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 2; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.BASE_SEPOLIA; | ||
| readonly name: "baseSepolia"; | ||
| readonly fullName: "Base Sepolia"; | ||
| readonly kebabCaseName: "base-sepolia"; | ||
| readonly mainnetKebabCaseName: "base"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 2; | ||
| }, { | ||
| readonly id: ChainId.OPBNB_TESTNET; | ||
| readonly name: "opBnbTestnet"; | ||
| readonly fullName: "opBNB Testnet"; | ||
| readonly kebabCaseName: "opbnb-testnet"; | ||
| readonly mainnetKebabCaseName: "opbnb"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 0.5; | ||
| readonly features: { | ||
| readonly v3: true; | ||
| }; | ||
| }, { | ||
| readonly id: ChainId.SCROLL_SEPOLIA; | ||
| readonly name: "scrollSepolia"; | ||
| readonly fullName: "Scroll Sepolia"; | ||
| readonly kebabCaseName: "scroll-sepolia"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 1; | ||
| }, { | ||
| readonly id: ChainId.MONAD_TESTNET; | ||
| readonly name: "monadTestnet"; | ||
| readonly fullName: "Monad Testnet"; | ||
| readonly kebabCaseName: "monad-testnet"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 1; | ||
| readonly features: { | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| }]; | ||
| export declare const allChainConfigs: readonly UnifiedChainConfig[]; | ||
| export declare const evmChainConfigs: readonly EvmChainConfig[]; | ||
| export declare const robinhoodChainConfig: { | ||
| readonly id: ChainId.ROBINHOOD; | ||
| readonly name: "robinhood"; | ||
| readonly fullName: "Robinhood"; | ||
| readonly kebabCaseName: "robinhood"; | ||
| readonly mainnetKebabCaseName: "robinhood"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly averageBlockTime: 1; | ||
| readonly nativeCurrency: { | ||
| readonly name: "Ether"; | ||
| readonly symbol: "ETH"; | ||
| readonly decimals: 18; | ||
| }; | ||
| readonly blockExplorerUrl: "https://robinhoodchain.blockscout.com/"; | ||
| readonly features: { | ||
| readonly swap: true; | ||
| readonly liquidity: true; | ||
| readonly pools: true; | ||
| readonly farms: false; | ||
| readonly prediction: false; | ||
| readonly aggregator: false; | ||
| readonly infinity: false; | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| readonly tokens: { | ||
| readonly wrappedNative: "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73"; | ||
| }; | ||
| readonly contracts: { | ||
| readonly multicall: "0xcf05Fc31A6B693DD0bEB76e958ae4BCD490dc985"; | ||
| readonly multicall3: "0xD59aaE32bcF95AAe58119751d5E355C9855cDC31"; | ||
| readonly permit2: "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768"; | ||
| readonly v2Factory: "0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E"; | ||
| readonly v2Router: "0x8cFe327CEc66d1C090Dd72bd0FF11d690C33a2Eb"; | ||
| readonly v3Factory: "0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865"; | ||
| readonly v3Deployer: "0x41ff9AA7e16B8B1a8a8dc4f0eFacd93D02d071c9"; | ||
| readonly v3NftPositionManager: "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364"; | ||
| readonly v3Migrator: "0xbC203d7f83677c7ed3F7acEc959963E7F4ECC5C2"; | ||
| readonly v3Quoter: "0x8553AA1615549A86882151784b329B017aA7c832"; | ||
| readonly v3TickLens: "0x9a489505a00cE272eAa5e07Dba6491314CaE3796"; | ||
| readonly mixedRouteQuoter: "0x2b792b99ae08483D45d79833408439674C6Daf1B"; | ||
| readonly smartRouter: "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4"; | ||
| readonly universalRouter: "0xE28c0e44F4016b073db20cF28971CAc6ce3664D3"; | ||
| }; | ||
| readonly hashes: { | ||
| readonly v2InitCodeHash: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d"; | ||
| readonly v3PoolInitCodeHash: "0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2"; | ||
| }; | ||
| readonly routing: { | ||
| readonly poolDiscovery: "onChainOnly"; | ||
| readonly skipCompactTickFallback: true; | ||
| }; | ||
| }; | ||
| export declare const chainConfigs: Record<ChainId, EvmChainConfig>; | ||
| type RegisteredChainConfig = Extract<(typeof allChainConfigsLiteral)[number], { | ||
| readonly isEVM: true; | ||
| }>; | ||
| type ChainIdWithFeatureFromConfig<Config, Feature extends keyof ChainFeatureConfig> = Config extends { | ||
| readonly features: infer Features; | ||
| } ? Features extends { | ||
| readonly [Key in Feature]: true; | ||
| } ? Config extends { | ||
| readonly id: infer Id; | ||
| } ? Id : never : never : never; | ||
| export type ChainIdWithFeature<Feature extends keyof ChainFeatureConfig> = ChainIdWithFeatureFromConfig<RegisteredChainConfig, Feature>; | ||
| export declare const getChainConfig: (chainId: ChainId) => ChainConfig | undefined; | ||
| export declare const getChainIdsByFeature: <Feature extends keyof ChainFeatureConfig>(feature: Feature) => ChainIdWithFeature<Feature>[]; | ||
| export declare const getL2ChainIds: () => ChainId[]; | ||
| export declare const Chains: Chain[]; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/chains/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAwBpD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE7F,cAAc,SAAS,CAAA;AAEvB,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,cAAc,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBsB,CAAA;AAElD,eAAO,MAAM,eAAe,EAAE,SAAS,kBAAkB,EAA2B,CAAA;AAEpF,eAAO,MAAM,eAAe,EAAE,SAAS,cAAc,EAEpD,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAY,CAAA;AAE7C,eAAO,MAAM,YAAY,EAA+E,MAAM,CAC5G,OAAO,EACP,cAAc,CACf,CAAA;AAED,KAAK,qBAAqB,GAAG,OAAO,CAAC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA;AAEvG,KAAK,4BAA4B,CAAC,MAAM,EAAE,OAAO,SAAS,MAAM,kBAAkB,IAAI,MAAM,SAAS;IACnG,QAAQ,CAAC,QAAQ,EAAE,MAAM,QAAQ,CAAA;CAClC,GACG,QAAQ,SAAS;IAAE,QAAQ,EAAE,GAAG,IAAI,OAAO,GAAG,IAAI;CAAE,GAClD,MAAM,SAAS;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,CAAA;CAAE,GACtC,EAAE,GACF,KAAK,GACP,KAAK,GACP,KAAK,CAAA;AAET,MAAM,MAAM,kBAAkB,CAAC,OAAO,SAAS,MAAM,kBAAkB,IAAI,4BAA4B,CACrG,qBAAqB,EACrB,OAAO,CACR,CAAA;AAED,eAAO,MAAM,cAAc,YAAa,OAAO,KAAG,WAAW,GAAG,SAAkC,CAAA;AAElG,eAAO,MAAM,oBAAoB,GAAI,OAAO,SAAS,MAAM,kBAAkB,WAClE,OAAO,KACf,kBAAkB,CAAC,OAAO,CAAC,EAGkC,CAAA;AAEhE,eAAO,MAAM,aAAa,QAAO,OAAO,EAAgF,CAAA;AAExH,eAAO,MAAM,MAAM,EAAE,KAAK,EAMvB,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const linea: { | ||
| readonly id: ChainId.LINEA; | ||
| readonly name: "linea"; | ||
| readonly fullName: "Linea"; | ||
| readonly kebabCaseName: "linea"; | ||
| readonly mainnetKebabCaseName: "linea"; | ||
| readonly defiLlamaName: "linea"; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly averageBlockTime: 2; | ||
| readonly features: { | ||
| readonly farms: true; | ||
| readonly v3: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=linea.d.ts.map |
| {"version":3,"file":"linea.d.ts","sourceRoot":"","sources":["../../src/chains/linea.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,KAAK;;;;;;;;;;;;;;CAWiB,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const lineaTestnet: { | ||
| readonly id: ChainId.LINEA_TESTNET; | ||
| readonly name: "lineaTestnet"; | ||
| readonly fullName: "Linea Testnet"; | ||
| readonly kebabCaseName: "linea-testnet"; | ||
| readonly mainnetKebabCaseName: "linea"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 2; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=lineaTestnet.d.ts.map |
| {"version":3,"file":"lineaTestnet.d.ts","sourceRoot":"","sources":["../../src/chains/lineaTestnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAYU,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const monad: { | ||
| readonly id: ChainId.MONAD_MAINNET; | ||
| readonly name: "monad"; | ||
| readonly fullName: "Monad"; | ||
| readonly kebabCaseName: "monad"; | ||
| readonly mainnetKebabCaseName: "monad"; | ||
| readonly defiLlamaName: "monad"; | ||
| readonly isEVM: true; | ||
| readonly averageBlockTime: 1; | ||
| readonly features: { | ||
| readonly farms: true; | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=monad.d.ts.map |
| {"version":3,"file":"monad.d.ts","sourceRoot":"","sources":["../../src/chains/monad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,KAAK;;;;;;;;;;;;;;CAUiB,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const monadTestnet: { | ||
| readonly id: ChainId.MONAD_TESTNET; | ||
| readonly name: "monadTestnet"; | ||
| readonly fullName: "Monad Testnet"; | ||
| readonly kebabCaseName: "monad-testnet"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 1; | ||
| readonly features: { | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=monadTestnet.d.ts.map |
| {"version":3,"file":"monadTestnet.d.ts","sourceRoot":"","sources":["../../src/chains/monadTestnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAUU,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const opbnb: { | ||
| readonly id: ChainId.OPBNB; | ||
| readonly name: "opBNB"; | ||
| readonly fullName: "opBNB"; | ||
| readonly kebabCaseName: "opbnb"; | ||
| readonly mainnetKebabCaseName: "opbnb"; | ||
| readonly defiLlamaName: "op_bnb"; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly averageBlockTime: 0.5; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly v3: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=opbnb.d.ts.map |
| {"version":3,"file":"opbnb.d.ts","sourceRoot":"","sources":["../../src/chains/opbnb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;CAWiB,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const opbnbTestnet: { | ||
| readonly id: ChainId.OPBNB_TESTNET; | ||
| readonly name: "opBnbTestnet"; | ||
| readonly fullName: "opBNB Testnet"; | ||
| readonly kebabCaseName: "opbnb-testnet"; | ||
| readonly mainnetKebabCaseName: "opbnb"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 0.5; | ||
| readonly features: { | ||
| readonly v3: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=opbnbTestnet.d.ts.map |
| {"version":3,"file":"opbnbTestnet.d.ts","sourceRoot":"","sources":["../../src/chains/opbnbTestnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAYU,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const robinhood: { | ||
| readonly id: ChainId.ROBINHOOD; | ||
| readonly name: "robinhood"; | ||
| readonly fullName: "Robinhood"; | ||
| readonly kebabCaseName: "robinhood"; | ||
| readonly mainnetKebabCaseName: "robinhood"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly averageBlockTime: 1; | ||
| readonly nativeCurrency: { | ||
| readonly name: "Ether"; | ||
| readonly symbol: "ETH"; | ||
| readonly decimals: 18; | ||
| }; | ||
| readonly blockExplorerUrl: "https://robinhoodchain.blockscout.com/"; | ||
| readonly features: { | ||
| readonly swap: true; | ||
| readonly liquidity: true; | ||
| readonly pools: true; | ||
| readonly farms: false; | ||
| readonly prediction: false; | ||
| readonly aggregator: false; | ||
| readonly infinity: false; | ||
| readonly v2: true; | ||
| readonly v3: true; | ||
| }; | ||
| readonly tokens: { | ||
| readonly wrappedNative: "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73"; | ||
| }; | ||
| readonly contracts: { | ||
| readonly multicall: "0xcf05Fc31A6B693DD0bEB76e958ae4BCD490dc985"; | ||
| readonly multicall3: "0xD59aaE32bcF95AAe58119751d5E355C9855cDC31"; | ||
| readonly permit2: "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768"; | ||
| readonly v2Factory: "0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E"; | ||
| readonly v2Router: "0x8cFe327CEc66d1C090Dd72bd0FF11d690C33a2Eb"; | ||
| readonly v3Factory: "0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865"; | ||
| readonly v3Deployer: "0x41ff9AA7e16B8B1a8a8dc4f0eFacd93D02d071c9"; | ||
| readonly v3NftPositionManager: "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364"; | ||
| readonly v3Migrator: "0xbC203d7f83677c7ed3F7acEc959963E7F4ECC5C2"; | ||
| readonly v3Quoter: "0x8553AA1615549A86882151784b329B017aA7c832"; | ||
| readonly v3TickLens: "0x9a489505a00cE272eAa5e07Dba6491314CaE3796"; | ||
| readonly mixedRouteQuoter: "0x2b792b99ae08483D45d79833408439674C6Daf1B"; | ||
| readonly smartRouter: "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4"; | ||
| readonly universalRouter: "0xE28c0e44F4016b073db20cF28971CAc6ce3664D3"; | ||
| }; | ||
| readonly hashes: { | ||
| readonly v2InitCodeHash: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d"; | ||
| readonly v3PoolInitCodeHash: "0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2"; | ||
| }; | ||
| readonly routing: { | ||
| readonly poolDiscovery: "onChainOnly"; | ||
| readonly skipCompactTickFallback: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=robinhood.d.ts.map |
| {"version":3,"file":"robinhood.d.ts","sourceRoot":"","sources":["../../src/chains/robinhood.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDa,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const scrollSepolia: { | ||
| readonly id: ChainId.SCROLL_SEPOLIA; | ||
| readonly name: "scrollSepolia"; | ||
| readonly fullName: "Scroll Sepolia"; | ||
| readonly kebabCaseName: "scroll-sepolia"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 1; | ||
| }; | ||
| //# sourceMappingURL=scrollSepolia.d.ts.map |
| {"version":3,"file":"scrollSepolia.d.ts","sourceRoot":"","sources":["../../src/chains/scrollSepolia.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,aAAa;;;;;;;;;;CAUS,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const sepolia: { | ||
| readonly id: ChainId.SEPOLIA; | ||
| readonly name: "sepolia"; | ||
| readonly fullName: "Sepolia"; | ||
| readonly kebabCaseName: "sepolia"; | ||
| readonly mainnetKebabCaseName: "ethereum"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 12; | ||
| readonly features: { | ||
| readonly infinity: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=sepolia.d.ts.map |
| {"version":3,"file":"sepolia.d.ts","sourceRoot":"","sources":["../../src/chains/sepolia.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAWe,CAAA"} |
| import { NonEVMChainId } from '../chainId'; | ||
| export declare const solana: { | ||
| readonly id: NonEVMChainId.SOLANA; | ||
| readonly name: "sol"; | ||
| readonly fullName: "Solana"; | ||
| readonly kebabCaseName: "sol"; | ||
| readonly mainnetKebabCaseName: "sol"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: false; | ||
| }; | ||
| //# sourceMappingURL=solana.d.ts.map |
| {"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../src/chains/solana.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAG1C,eAAO,MAAM,MAAM;;;;;;;;CAQmB,CAAA"} |
| import { ChainId, NonEVMChainId, UnifiedChainId } from '../chainId'; | ||
| export type ChainFeatureConfig = { | ||
| swap?: boolean; | ||
| liquidity?: boolean; | ||
| pools?: boolean; | ||
| farms?: boolean; | ||
| prediction?: boolean; | ||
| aggregator?: boolean; | ||
| infinity?: boolean; | ||
| v2?: boolean; | ||
| v3?: boolean; | ||
| }; | ||
| export type ChainContractConfig = { | ||
| multicall?: `0x${string}`; | ||
| multicall3?: `0x${string}`; | ||
| permit2?: `0x${string}`; | ||
| v2Factory?: `0x${string}`; | ||
| v2Router?: `0x${string}`; | ||
| v3Factory?: `0x${string}`; | ||
| v3Deployer?: `0x${string}`; | ||
| v3NftPositionManager?: `0x${string}`; | ||
| v3Migrator?: `0x${string}`; | ||
| v3Quoter?: `0x${string}`; | ||
| v3TickLens?: `0x${string}`; | ||
| mixedRouteQuoter?: `0x${string}`; | ||
| smartRouter?: `0x${string}`; | ||
| universalRouter?: `0x${string}`; | ||
| masterChefV3?: `0x${string}`; | ||
| }; | ||
| export type ChainHashConfig = { | ||
| v2InitCodeHash?: `0x${string}`; | ||
| v3PoolInitCodeHash?: `0x${string}`; | ||
| }; | ||
| export type ChainRoutingConfig = { | ||
| poolDiscovery?: 'edgeWithOnChainFallback' | 'onChainOnly'; | ||
| skipCompactTickFallback?: boolean; | ||
| }; | ||
| export type BaseChainConfig = { | ||
| id: UnifiedChainId; | ||
| name: string; | ||
| fullName: string; | ||
| kebabCaseName: string; | ||
| mainnetKebabCaseName?: string; | ||
| defiLlamaName?: string; | ||
| isEVM: boolean; | ||
| testnet?: boolean; | ||
| averageBlockTime?: number; | ||
| }; | ||
| export type EvmChainConfig = BaseChainConfig & { | ||
| id: ChainId; | ||
| isEVM: true; | ||
| nativeCurrency?: { | ||
| name: string; | ||
| symbol: string; | ||
| decimals: number; | ||
| }; | ||
| blockExplorerUrl?: string; | ||
| isL2?: boolean; | ||
| features?: ChainFeatureConfig; | ||
| tokens?: { | ||
| wrappedNative?: `0x${string}`; | ||
| }; | ||
| contracts?: ChainContractConfig; | ||
| hashes?: ChainHashConfig; | ||
| routing?: ChainRoutingConfig; | ||
| }; | ||
| export type NonEvmChainConfig = BaseChainConfig & { | ||
| id: NonEVMChainId; | ||
| isEVM: false; | ||
| }; | ||
| export type ChainConfig = EvmChainConfig; | ||
| export type UnifiedChainConfig = EvmChainConfig | NonEvmChainConfig; | ||
| //# sourceMappingURL=types.d.ts.map |
| {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/chains/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAEnE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,EAAE,CAAC,EAAE,OAAO,CAAA;CACb,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IACzB,UAAU,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IAC1B,OAAO,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IACvB,SAAS,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IACzB,QAAQ,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IACxB,SAAS,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IACzB,UAAU,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IAC1B,oBAAoB,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IACpC,UAAU,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IAC1B,QAAQ,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IACxB,UAAU,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IAC1B,gBAAgB,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IAChC,WAAW,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IAC3B,eAAe,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IAC/B,YAAY,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,cAAc,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IAC9B,kBAAkB,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,CAAC,EAAE,yBAAyB,GAAG,aAAa,CAAA;IACzD,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,cAAc,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG;IAC7C,EAAE,EAAE,OAAO,CAAA;IACX,KAAK,EAAE,IAAI,CAAA;IACX,cAAc,CAAC,EAAE;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,MAAM,CAAC,EAAE;QACP,aAAa,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;KAC9B,CAAA;IACD,SAAS,CAAC,EAAE,mBAAmB,CAAA;IAC/B,MAAM,CAAC,EAAE,eAAe,CAAA;IACxB,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG;IAChD,EAAE,EAAE,aAAa,CAAA;IACjB,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,cAAc,CAAA;AACxC,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG,iBAAiB,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const zksync: { | ||
| readonly id: ChainId.ZKSYNC; | ||
| readonly name: "zkSync"; | ||
| readonly fullName: "ZKsync Era"; | ||
| readonly kebabCaseName: "zksync"; | ||
| readonly mainnetKebabCaseName: "zksync"; | ||
| readonly defiLlamaName: "era"; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly averageBlockTime: 2; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly farms: true; | ||
| readonly prediction: true; | ||
| readonly v3: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=zksync.d.ts.map |
| {"version":3,"file":"zksync.d.ts","sourceRoot":"","sources":["../../src/chains/zksync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CAWgB,CAAA"} |
| import { ChainId } from '../chainId'; | ||
| export declare const zksyncTestnet: { | ||
| readonly id: ChainId.ZKSYNC_TESTNET; | ||
| readonly name: "zkSyncTestnet"; | ||
| readonly fullName: "ZKsync Era Testnet"; | ||
| readonly kebabCaseName: "zksync-testnet"; | ||
| readonly mainnetKebabCaseName: "zksync"; | ||
| readonly defiLlamaName: ""; | ||
| readonly isEVM: true; | ||
| readonly isL2: true; | ||
| readonly testnet: true; | ||
| readonly averageBlockTime: 2; | ||
| readonly features: { | ||
| readonly pools: true; | ||
| readonly v3: true; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=zksyncTestnet.d.ts.map |
| {"version":3,"file":"zksyncTestnet.d.ts","sourceRoot":"","sources":["../../src/chains/zksyncTestnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAYS,CAAA"} |
| export {}; | ||
| //# sourceMappingURL=subgraph.test.d.ts.map |
| {"version":3,"file":"subgraph.test.d.ts","sourceRoot":"","sources":["../src/subgraph.test.ts"],"names":[],"mappings":""} |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"averageChainBlockTimes.d.ts","sourceRoot":"","sources":["../src/averageChainBlockTimes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAqB7D,CAAA"} | ||
| {"version":3,"file":"averageChainBlockTimes.d.ts","sourceRoot":"","sources":["../src/averageChainBlockTimes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAGnC,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAIlC,CAAA"} |
@@ -21,3 +21,4 @@ export declare enum ChainId { | ||
| MONAD_MAINNET = 143, | ||
| MONAD_TESTNET = 10143 | ||
| MONAD_TESTNET = 10143, | ||
| ROBINHOOD = 4663 | ||
| } | ||
@@ -24,0 +25,0 @@ export declare enum NonEVMChainId { |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"chainId.d.ts","sourceRoot":"","sources":["../src/chainId.ts"],"names":[],"mappings":"AAAA,oBAAY,OAAO;IACjB,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,GAAG,KAAK;IACR,WAAW,KAAK;IAChB,cAAc,MAAM;IACpB,MAAM,MAAM;IACZ,aAAa,OAAO;IACpB,KAAK,MAAM;IACX,YAAY,QAAQ;IACpB,eAAe,SAAS;IACxB,gBAAgB,SAAS;IACzB,cAAc,SAAS;IACvB,KAAK,QAAQ;IACb,aAAa,QAAQ;IACrB,IAAI,OAAO;IACX,YAAY,QAAQ;IACpB,YAAY,QAAQ;IACpB,OAAO,WAAW;IAClB,aAAa,MAAM;IACnB,aAAa,QAAQ;CACtB;AAED,oBAAY,aAAa;IACvB,MAAM,aAAa;IACnB,KAAK,aAAa;CACnB;AAED,oBAAY,aAAa;IACvB,aAAa,OAAO;IACpB,qBAAqB,OAAO;CAC7B;AAED,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,aAAa,CAAA;AAEpD,eAAO,MAAM,eAAe,WAa3B,CAAA"} | ||
| {"version":3,"file":"chainId.d.ts","sourceRoot":"","sources":["../src/chainId.ts"],"names":[],"mappings":"AAAA,oBAAY,OAAO;IACjB,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,GAAG,KAAK;IACR,WAAW,KAAK;IAChB,cAAc,MAAM;IACpB,MAAM,MAAM;IACZ,aAAa,OAAO;IACpB,KAAK,MAAM;IACX,YAAY,QAAQ;IACpB,eAAe,SAAS;IACxB,gBAAgB,SAAS;IACzB,cAAc,SAAS;IACvB,KAAK,QAAQ;IACb,aAAa,QAAQ;IACrB,IAAI,OAAO;IACX,YAAY,QAAQ;IACpB,YAAY,QAAQ;IACpB,OAAO,WAAW;IAClB,aAAa,MAAM;IACnB,aAAa,QAAQ;IACrB,SAAS,OAAO;CACjB;AAED,oBAAY,aAAa;IACvB,MAAM,aAAa;IACnB,KAAK,aAAa;CACnB;AAED,oBAAY,aAAa;IACvB,aAAa,OAAO;IACpB,qBAAqB,OAAO;CAC7B;AAED,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,aAAa,CAAA;AAEpD,eAAO,MAAM,eAAe,WAa3B,CAAA"} |
+2
-46
| import { UnifiedChainId } from './chainId'; | ||
| export declare const chainNames: Record<UnifiedChainId, string>; | ||
| export declare const chainFullNames: Record<UnifiedChainId, string>; | ||
| export declare const chainNamesInKebabCase: { | ||
| readonly 1: "ethereum"; | ||
| readonly 5: "goerli"; | ||
| readonly 56: "bsc"; | ||
| readonly 97: "bsc-testnet"; | ||
| readonly 42161: "arbitrum"; | ||
| readonly 421613: "arbitrum-goerli"; | ||
| readonly 324: "zksync"; | ||
| readonly 280: "zksync-testnet"; | ||
| readonly 59144: "linea"; | ||
| readonly 59140: "linea-testnet"; | ||
| readonly 204: "opbnb"; | ||
| readonly 5611: "opbnb-testnet"; | ||
| readonly 8453: "base"; | ||
| readonly 84531: "base-testnet"; | ||
| readonly 534351: "scroll-sepolia"; | ||
| readonly 11155111: "sepolia"; | ||
| readonly 421614: "arbitrum-sepolia"; | ||
| readonly 84532: "base-sepolia"; | ||
| readonly 143: "monad"; | ||
| readonly 10143: "monad-testnet"; | ||
| readonly 8000001001: "sol"; | ||
| readonly 8000002000: "aptos"; | ||
| }; | ||
| export declare const mainnetChainNamesInKebabCase: { | ||
| readonly 1: "ethereum"; | ||
| readonly 5: "ethereum"; | ||
| readonly 56: "bsc"; | ||
| readonly 97: "bsc"; | ||
| readonly 42161: "arbitrum"; | ||
| readonly 421613: "arbitrum"; | ||
| readonly 324: "zksync"; | ||
| readonly 280: "zksync"; | ||
| readonly 59144: "linea"; | ||
| readonly 59140: "linea"; | ||
| readonly 204: "opbnb"; | ||
| readonly 5611: "opbnb"; | ||
| readonly 8453: "base"; | ||
| readonly 84531: "base"; | ||
| readonly 11155111: "ethereum"; | ||
| readonly 421614: "arbitrum"; | ||
| readonly 84532: "base"; | ||
| readonly 8000001001: "sol"; | ||
| readonly 143: "monad"; | ||
| readonly 8000002000: "aptos"; | ||
| }; | ||
| export declare const chainNamesInKebabCase: Record<UnifiedChainId, string>; | ||
| export declare const mainnetChainNamesInKebabCase: Record<UnifiedChainId, string>; | ||
| export declare const chainNameToChainId: Record<string, UnifiedChainId>; | ||
@@ -51,0 +7,0 @@ export declare const allCasesNameToChainId: Record<string, UnifiedChainId>; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"chainNames.d.ts","sourceRoot":"","sources":["../src/chainNames.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,cAAc,EAAE,MAAM,WAAW,CAAA;AAElE,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAuBrD,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAuBzD,CAAA;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;CAuBxB,CAAA;AAEV,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;CAqB/B,CAAA;AAOV,eAAO,MAAM,kBAAkB,gCAKS,CAAA;AAgBxC,eAAO,MAAM,qBAAqB,gCAYQ,CAAA;AAI1C,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAuB9D,CAAA"} | ||
| {"version":3,"file":"chainNames.d.ts","sourceRoot":"","sources":["../src/chainNames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,cAAc,EAAE,MAAM,WAAW,CAAA;AAanD,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAAqC,CAAA;AAE3F,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAAyC,CAAA;AAEnG,eAAO,MAAM,qBAAqB,gCAA6C,CAAA;AAE/E,eAAO,MAAM,4BAA4B,gCAAoD,CAAA;AAO7F,eAAO,MAAM,kBAAkB,gCAKS,CAAA;AAgBxC,eAAO,MAAM,qBAAqB,gCAYQ,CAAA;AAI1C,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAAoD,CAAA"} |
+1
-1
| export * from './averageChainBlockTimes'; | ||
| export * from './chainId'; | ||
| export * from './chainNames'; | ||
| export * from './chains'; | ||
| export * from './chainConfigs'; | ||
| export * from './utils'; | ||
| export * from './subgraphs'; | ||
| //# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"} |
+447
-241
@@ -25,2 +25,3 @@ 'use strict'; | ||
| ChainId2[ChainId2["MONAD_TESTNET"] = 10143] = "MONAD_TESTNET"; | ||
| ChainId2[ChainId2["ROBINHOOD"] = 4663] = "ROBINHOOD"; | ||
| return ChainId2; | ||
@@ -53,121 +54,427 @@ })(ChainId || {}); | ||
| // src/averageChainBlockTimes.ts | ||
| var AVERAGE_CHAIN_BLOCK_TIMES = { | ||
| [56 /* BSC */]: 0.45, | ||
| [97 /* BSC_TESTNET */]: 0.45, | ||
| [204 /* OPBNB */]: 0.5, | ||
| [5611 /* OPBNB_TESTNET */]: 0.5, | ||
| [1 /* ETHEREUM */]: 12, | ||
| [11155111 /* SEPOLIA */]: 12, | ||
| [5 /* GOERLI */]: 3, | ||
| [324 /* ZKSYNC */]: 2, | ||
| [280 /* ZKSYNC_TESTNET */]: 2, | ||
| [42161 /* ARBITRUM_ONE */]: 0.25, | ||
| [421613 /* ARBITRUM_GOERLI */]: 0.25, | ||
| [421614 /* ARBITRUM_SEPOLIA */]: 0.25, | ||
| [534351 /* SCROLL_SEPOLIA */]: 1, | ||
| [59144 /* LINEA */]: 2, | ||
| [59140 /* LINEA_TESTNET */]: 2, | ||
| [8453 /* BASE */]: 2, | ||
| [84531 /* BASE_TESTNET */]: 2, | ||
| [84532 /* BASE_SEPOLIA */]: 2, | ||
| [143 /* MONAD_MAINNET */]: 1, | ||
| [10143 /* MONAD_TESTNET */]: 1 | ||
| // src/chains/aptos.ts | ||
| var aptos = { | ||
| id: 8000002e3 /* APTOS */, | ||
| name: "aptos", | ||
| fullName: "Aptos", | ||
| kebabCaseName: "aptos", | ||
| mainnetKebabCaseName: "aptos", | ||
| defiLlamaName: "", | ||
| isEVM: false | ||
| }; | ||
| // src/chainNames.ts | ||
| var chainNames = { | ||
| [1 /* ETHEREUM */]: "eth", | ||
| [5 /* GOERLI */]: "goerli", | ||
| [56 /* BSC */]: "bsc", | ||
| [97 /* BSC_TESTNET */]: "bscTestnet", | ||
| [42161 /* ARBITRUM_ONE */]: "arb", | ||
| [421613 /* ARBITRUM_GOERLI */]: "arbGoerli", | ||
| [324 /* ZKSYNC */]: "zkSync", | ||
| [280 /* ZKSYNC_TESTNET */]: "zkSyncTestnet", | ||
| [59144 /* LINEA */]: "linea", | ||
| [59140 /* LINEA_TESTNET */]: "lineaTestnet", | ||
| [204 /* OPBNB */]: "opBNB", | ||
| [5611 /* OPBNB_TESTNET */]: "opBnbTestnet", | ||
| [8453 /* BASE */]: "base", | ||
| [84531 /* BASE_TESTNET */]: "baseTestnet", | ||
| [534351 /* SCROLL_SEPOLIA */]: "scrollSepolia", | ||
| [11155111 /* SEPOLIA */]: "sepolia", | ||
| [421614 /* ARBITRUM_SEPOLIA */]: "arbSepolia", | ||
| [84532 /* BASE_SEPOLIA */]: "baseSepolia", | ||
| [143 /* MONAD_MAINNET */]: "monad", | ||
| [10143 /* MONAD_TESTNET */]: "monadTestnet", | ||
| [8000001001 /* SOLANA */]: "sol", | ||
| [8000002e3 /* APTOS */]: "aptos" | ||
| // src/chains/arbitrum.ts | ||
| var arbitrum = { | ||
| id: 42161 /* ARBITRUM_ONE */, | ||
| name: "arb", | ||
| fullName: "Arbitrum One", | ||
| kebabCaseName: "arbitrum", | ||
| mainnetKebabCaseName: "arbitrum", | ||
| defiLlamaName: "arbitrum", | ||
| isEVM: true, | ||
| isL2: true, | ||
| averageBlockTime: 0.25, | ||
| features: { pools: true, farms: true, prediction: true, v2: true, v3: true } | ||
| }; | ||
| var chainFullNames = { | ||
| [1 /* ETHEREUM */]: "Ethereum", | ||
| [5 /* GOERLI */]: "Goerli", | ||
| [56 /* BSC */]: "BNB Chain", | ||
| [97 /* BSC_TESTNET */]: "BNB Chain Testnet", | ||
| [42161 /* ARBITRUM_ONE */]: "Arbitrum One", | ||
| [421613 /* ARBITRUM_GOERLI */]: "Arbitrum Goerli", | ||
| [324 /* ZKSYNC */]: "ZKsync Era", | ||
| [280 /* ZKSYNC_TESTNET */]: "ZKsync Era Testnet", | ||
| [59144 /* LINEA */]: "Linea", | ||
| [59140 /* LINEA_TESTNET */]: "Linea Testnet", | ||
| [204 /* OPBNB */]: "opBNB", | ||
| [5611 /* OPBNB_TESTNET */]: "opBNB Testnet", | ||
| [8453 /* BASE */]: "Base", | ||
| [84531 /* BASE_TESTNET */]: "Base Testnet", | ||
| [534351 /* SCROLL_SEPOLIA */]: "Scroll Sepolia", | ||
| [11155111 /* SEPOLIA */]: "Sepolia", | ||
| [421614 /* ARBITRUM_SEPOLIA */]: "Arbitrum Sepolia", | ||
| [84532 /* BASE_SEPOLIA */]: "Base Sepolia", | ||
| [143 /* MONAD_MAINNET */]: "Monad", | ||
| [10143 /* MONAD_TESTNET */]: "Monad Testnet", | ||
| [8000001001 /* SOLANA */]: "Solana", | ||
| [8000002e3 /* APTOS */]: "Aptos" | ||
| // src/chains/arbitrumGoerli.ts | ||
| var arbitrumGoerli = { | ||
| id: 421613 /* ARBITRUM_GOERLI */, | ||
| name: "arbGoerli", | ||
| fullName: "Arbitrum Goerli", | ||
| kebabCaseName: "arbitrum-goerli", | ||
| mainnetKebabCaseName: "arbitrum", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 0.25, | ||
| features: { pools: true } | ||
| }; | ||
| var chainNamesInKebabCase = { | ||
| [1 /* ETHEREUM */]: "ethereum", | ||
| [5 /* GOERLI */]: "goerli", | ||
| [56 /* BSC */]: "bsc", | ||
| [97 /* BSC_TESTNET */]: "bsc-testnet", | ||
| [42161 /* ARBITRUM_ONE */]: "arbitrum", | ||
| [421613 /* ARBITRUM_GOERLI */]: "arbitrum-goerli", | ||
| [324 /* ZKSYNC */]: "zksync", | ||
| [280 /* ZKSYNC_TESTNET */]: "zksync-testnet", | ||
| [59144 /* LINEA */]: "linea", | ||
| [59140 /* LINEA_TESTNET */]: "linea-testnet", | ||
| [204 /* OPBNB */]: "opbnb", | ||
| [5611 /* OPBNB_TESTNET */]: "opbnb-testnet", | ||
| [8453 /* BASE */]: "base", | ||
| [84531 /* BASE_TESTNET */]: "base-testnet", | ||
| [534351 /* SCROLL_SEPOLIA */]: "scroll-sepolia", | ||
| [11155111 /* SEPOLIA */]: "sepolia", | ||
| [421614 /* ARBITRUM_SEPOLIA */]: "arbitrum-sepolia", | ||
| [84532 /* BASE_SEPOLIA */]: "base-sepolia", | ||
| [143 /* MONAD_MAINNET */]: "monad", | ||
| [10143 /* MONAD_TESTNET */]: "monad-testnet", | ||
| [8000001001 /* SOLANA */]: "sol", | ||
| [8000002e3 /* APTOS */]: "aptos" | ||
| // src/chains/arbitrumSepolia.ts | ||
| var arbitrumSepolia = { | ||
| id: 421614 /* ARBITRUM_SEPOLIA */, | ||
| name: "arbSepolia", | ||
| fullName: "Arbitrum Sepolia", | ||
| kebabCaseName: "arbitrum-sepolia", | ||
| mainnetKebabCaseName: "arbitrum", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 0.25 | ||
| }; | ||
| var mainnetChainNamesInKebabCase = { | ||
| [1 /* ETHEREUM */]: "ethereum", | ||
| [5 /* GOERLI */]: "ethereum", | ||
| [56 /* BSC */]: "bsc", | ||
| [97 /* BSC_TESTNET */]: "bsc", | ||
| [42161 /* ARBITRUM_ONE */]: "arbitrum", | ||
| [421613 /* ARBITRUM_GOERLI */]: "arbitrum", | ||
| [324 /* ZKSYNC */]: "zksync", | ||
| [280 /* ZKSYNC_TESTNET */]: "zksync", | ||
| [59144 /* LINEA */]: "linea", | ||
| [59140 /* LINEA_TESTNET */]: "linea", | ||
| [204 /* OPBNB */]: "opbnb", | ||
| [5611 /* OPBNB_TESTNET */]: "opbnb", | ||
| [8453 /* BASE */]: "base", | ||
| [84531 /* BASE_TESTNET */]: "base", | ||
| [11155111 /* SEPOLIA */]: "ethereum", | ||
| [421614 /* ARBITRUM_SEPOLIA */]: "arbitrum", | ||
| [84532 /* BASE_SEPOLIA */]: "base", | ||
| [8000001001 /* SOLANA */]: "sol", | ||
| [143 /* MONAD_MAINNET */]: "monad", | ||
| [8000002e3 /* APTOS */]: "aptos" | ||
| // src/chains/base.ts | ||
| var base = { | ||
| id: 8453 /* BASE */, | ||
| name: "base", | ||
| fullName: "Base", | ||
| kebabCaseName: "base", | ||
| mainnetKebabCaseName: "base", | ||
| defiLlamaName: "base", | ||
| isEVM: true, | ||
| isL2: true, | ||
| averageBlockTime: 2, | ||
| features: { pools: true, farms: true, aggregator: true, infinity: true, v3: true } | ||
| }; | ||
| // src/chains/baseSepolia.ts | ||
| var baseSepolia = { | ||
| id: 84532 /* BASE_SEPOLIA */, | ||
| name: "baseSepolia", | ||
| fullName: "Base Sepolia", | ||
| kebabCaseName: "base-sepolia", | ||
| mainnetKebabCaseName: "base", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 2 | ||
| }; | ||
| // src/chains/baseTestnet.ts | ||
| var baseTestnet = { | ||
| id: 84531 /* BASE_TESTNET */, | ||
| name: "baseTestnet", | ||
| fullName: "Base Testnet", | ||
| kebabCaseName: "base-testnet", | ||
| mainnetKebabCaseName: "base", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 2, | ||
| features: { pools: true } | ||
| }; | ||
| // src/chains/bsc.ts | ||
| var bsc = { | ||
| id: 56 /* BSC */, | ||
| name: "bsc", | ||
| fullName: "BNB Chain", | ||
| kebabCaseName: "bsc", | ||
| mainnetKebabCaseName: "bsc", | ||
| defiLlamaName: "bsc", | ||
| isEVM: true, | ||
| averageBlockTime: 0.45, | ||
| features: { | ||
| pools: true, | ||
| farms: true, | ||
| prediction: true, | ||
| aggregator: true, | ||
| infinity: true, | ||
| v2: true, | ||
| v3: true | ||
| } | ||
| }; | ||
| // src/chains/bscTestnet.ts | ||
| var bscTestnet = { | ||
| id: 97 /* BSC_TESTNET */, | ||
| name: "bscTestnet", | ||
| fullName: "BNB Chain Testnet", | ||
| kebabCaseName: "bsc-testnet", | ||
| mainnetKebabCaseName: "bsc", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| testnet: true, | ||
| averageBlockTime: 0.45, | ||
| features: { pools: true, farms: true, infinity: true, v2: true, v3: true } | ||
| }; | ||
| // src/chains/ethereum.ts | ||
| var ethereum = { | ||
| id: 1 /* ETHEREUM */, | ||
| name: "eth", | ||
| fullName: "Ethereum", | ||
| kebabCaseName: "ethereum", | ||
| mainnetKebabCaseName: "ethereum", | ||
| defiLlamaName: "ethereum", | ||
| isEVM: true, | ||
| averageBlockTime: 12, | ||
| features: { pools: true, farms: true, prediction: false, aggregator: true, v2: true, v3: true } | ||
| }; | ||
| // src/chains/goerli.ts | ||
| var goerli = { | ||
| id: 5 /* GOERLI */, | ||
| name: "goerli", | ||
| fullName: "Goerli", | ||
| kebabCaseName: "goerli", | ||
| mainnetKebabCaseName: "ethereum", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| testnet: true, | ||
| averageBlockTime: 3, | ||
| features: { v2: true } | ||
| }; | ||
| // src/chains/linea.ts | ||
| var linea = { | ||
| id: 59144 /* LINEA */, | ||
| name: "linea", | ||
| fullName: "Linea", | ||
| kebabCaseName: "linea", | ||
| mainnetKebabCaseName: "linea", | ||
| defiLlamaName: "linea", | ||
| isEVM: true, | ||
| isL2: true, | ||
| averageBlockTime: 2, | ||
| features: { farms: true, v3: true } | ||
| }; | ||
| // src/chains/lineaTestnet.ts | ||
| var lineaTestnet = { | ||
| id: 59140 /* LINEA_TESTNET */, | ||
| name: "lineaTestnet", | ||
| fullName: "Linea Testnet", | ||
| kebabCaseName: "linea-testnet", | ||
| mainnetKebabCaseName: "linea", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 2, | ||
| features: { pools: true } | ||
| }; | ||
| // src/chains/monad.ts | ||
| var monad = { | ||
| id: 143 /* MONAD_MAINNET */, | ||
| name: "monad", | ||
| fullName: "Monad", | ||
| kebabCaseName: "monad", | ||
| mainnetKebabCaseName: "monad", | ||
| defiLlamaName: "monad", | ||
| isEVM: true, | ||
| averageBlockTime: 1, | ||
| features: { farms: true, v2: true, v3: true } | ||
| }; | ||
| // src/chains/monadTestnet.ts | ||
| var monadTestnet = { | ||
| id: 10143 /* MONAD_TESTNET */, | ||
| name: "monadTestnet", | ||
| fullName: "Monad Testnet", | ||
| kebabCaseName: "monad-testnet", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| testnet: true, | ||
| averageBlockTime: 1, | ||
| features: { v2: true, v3: true } | ||
| }; | ||
| // src/chains/opbnb.ts | ||
| var opbnb = { | ||
| id: 204 /* OPBNB */, | ||
| name: "opBNB", | ||
| fullName: "opBNB", | ||
| kebabCaseName: "opbnb", | ||
| mainnetKebabCaseName: "opbnb", | ||
| defiLlamaName: "op_bnb", | ||
| isEVM: true, | ||
| isL2: true, | ||
| averageBlockTime: 0.5, | ||
| features: { pools: true, farms: true, v3: true } | ||
| }; | ||
| // src/chains/opbnbTestnet.ts | ||
| var opbnbTestnet = { | ||
| id: 5611 /* OPBNB_TESTNET */, | ||
| name: "opBnbTestnet", | ||
| fullName: "opBNB Testnet", | ||
| kebabCaseName: "opbnb-testnet", | ||
| mainnetKebabCaseName: "opbnb", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 0.5, | ||
| features: { v3: true } | ||
| }; | ||
| // src/chains/robinhood.ts | ||
| var robinhood = { | ||
| id: 4663 /* ROBINHOOD */, | ||
| name: "robinhood", | ||
| fullName: "Robinhood", | ||
| kebabCaseName: "robinhood", | ||
| mainnetKebabCaseName: "robinhood", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| averageBlockTime: 1, | ||
| nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, | ||
| // blockExplorerUrl: 'https://explorer.chain.robinhood.com', | ||
| blockExplorerUrl: "https://robinhoodchain.blockscout.com/", | ||
| features: { | ||
| swap: true, | ||
| liquidity: true, | ||
| pools: true, | ||
| farms: false, | ||
| prediction: false, | ||
| aggregator: false, | ||
| infinity: false, | ||
| v2: true, | ||
| v3: true | ||
| }, | ||
| tokens: { | ||
| wrappedNative: "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73" | ||
| }, | ||
| contracts: { | ||
| multicall: "0xcf05Fc31A6B693DD0bEB76e958ae4BCD490dc985", | ||
| multicall3: "0xD59aaE32bcF95AAe58119751d5E355C9855cDC31", | ||
| permit2: "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768", | ||
| v2Factory: "0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E", | ||
| v2Router: "0x8cFe327CEc66d1C090Dd72bd0FF11d690C33a2Eb", | ||
| v3Factory: "0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865", | ||
| v3Deployer: "0x41ff9AA7e16B8B1a8a8dc4f0eFacd93D02d071c9", | ||
| v3NftPositionManager: "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364", | ||
| v3Migrator: "0xbC203d7f83677c7ed3F7acEc959963E7F4ECC5C2", | ||
| v3Quoter: "0x8553AA1615549A86882151784b329B017aA7c832", | ||
| v3TickLens: "0x9a489505a00cE272eAa5e07Dba6491314CaE3796", | ||
| mixedRouteQuoter: "0x2b792b99ae08483D45d79833408439674C6Daf1B", | ||
| smartRouter: "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4", | ||
| universalRouter: "0xE28c0e44F4016b073db20cF28971CAc6ce3664D3" | ||
| }, | ||
| hashes: { | ||
| v2InitCodeHash: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d", | ||
| v3PoolInitCodeHash: "0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2" | ||
| }, | ||
| routing: { | ||
| poolDiscovery: "onChainOnly", | ||
| skipCompactTickFallback: true | ||
| } | ||
| }; | ||
| // src/chains/scrollSepolia.ts | ||
| var scrollSepolia = { | ||
| id: 534351 /* SCROLL_SEPOLIA */, | ||
| name: "scrollSepolia", | ||
| fullName: "Scroll Sepolia", | ||
| kebabCaseName: "scroll-sepolia", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 1 | ||
| }; | ||
| // src/chains/sepolia.ts | ||
| var sepolia = { | ||
| id: 11155111 /* SEPOLIA */, | ||
| name: "sepolia", | ||
| fullName: "Sepolia", | ||
| kebabCaseName: "sepolia", | ||
| mainnetKebabCaseName: "ethereum", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| testnet: true, | ||
| averageBlockTime: 12, | ||
| features: { infinity: true } | ||
| }; | ||
| // src/chains/solana.ts | ||
| var solana = { | ||
| id: 8000001001 /* SOLANA */, | ||
| name: "sol", | ||
| fullName: "Solana", | ||
| kebabCaseName: "sol", | ||
| mainnetKebabCaseName: "sol", | ||
| defiLlamaName: "", | ||
| isEVM: false | ||
| }; | ||
| // src/chains/zksync.ts | ||
| var zksync = { | ||
| id: 324 /* ZKSYNC */, | ||
| name: "zkSync", | ||
| fullName: "ZKsync Era", | ||
| kebabCaseName: "zksync", | ||
| mainnetKebabCaseName: "zksync", | ||
| defiLlamaName: "era", | ||
| isEVM: true, | ||
| isL2: true, | ||
| averageBlockTime: 2, | ||
| features: { pools: true, farms: true, prediction: true, v3: true } | ||
| }; | ||
| // src/chains/zksyncTestnet.ts | ||
| var zksyncTestnet = { | ||
| id: 280 /* ZKSYNC_TESTNET */, | ||
| name: "zkSyncTestnet", | ||
| fullName: "ZKsync Era Testnet", | ||
| kebabCaseName: "zksync-testnet", | ||
| mainnetKebabCaseName: "zksync", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 2, | ||
| features: { pools: true, v3: true } | ||
| }; | ||
| // src/chains/index.ts | ||
| var allChainConfigsLiteral = [ | ||
| bsc, | ||
| ethereum, | ||
| solana, | ||
| aptos, | ||
| base, | ||
| monad, | ||
| robinhood, | ||
| arbitrum, | ||
| zksync, | ||
| zksyncTestnet, | ||
| linea, | ||
| opbnb, | ||
| bscTestnet, | ||
| goerli, | ||
| sepolia, | ||
| arbitrumGoerli, | ||
| arbitrumSepolia, | ||
| lineaTestnet, | ||
| baseTestnet, | ||
| baseSepolia, | ||
| opbnbTestnet, | ||
| scrollSepolia, | ||
| monadTestnet | ||
| ]; | ||
| var allChainConfigs = allChainConfigsLiteral; | ||
| var evmChainConfigs = allChainConfigs.filter( | ||
| (config) => config.isEVM | ||
| ); | ||
| var robinhoodChainConfig = robinhood; | ||
| var chainConfigs = Object.fromEntries(evmChainConfigs.map((config) => [config.id, config])); | ||
| var getChainConfig = (chainId) => chainConfigs[chainId]; | ||
| var getChainIdsByFeature = (feature) => evmChainConfigs.filter((config) => config.features?.[feature] === true).map((config) => config.id); | ||
| var getL2ChainIds = () => evmChainConfigs.filter((config) => config.isL2).map((config) => config.id); | ||
| var Chains = allChainConfigs.map((config) => ({ | ||
| id: config.id, | ||
| name: config.name, | ||
| fullName: config.fullName, | ||
| isEVM: config.isEVM, | ||
| ...config.testnet ? { testnet: true } : {} | ||
| })); | ||
| // src/averageChainBlockTimes.ts | ||
| var AVERAGE_CHAIN_BLOCK_TIMES = Object.fromEntries( | ||
| evmChainConfigs.flatMap( | ||
| (config) => config.averageBlockTime === void 0 ? [] : [[config.id, config.averageBlockTime]] | ||
| ) | ||
| ); | ||
| // src/chainNames.ts | ||
| var toRecord = (selector) => Object.fromEntries( | ||
| allChainConfigs.flatMap((config) => { | ||
| const value = selector(config); | ||
| return value === void 0 ? [] : [[config.id, value]]; | ||
| }) | ||
| ); | ||
| var chainNames = toRecord((config) => config.name); | ||
| var chainFullNames = toRecord((config) => config.fullName); | ||
| var chainNamesInKebabCase = toRecord((config) => config.kebabCaseName); | ||
| var mainnetChainNamesInKebabCase = toRecord((config) => config.mainnetKebabCaseName); | ||
| var legacyChainNames = [ | ||
@@ -206,122 +513,4 @@ ["Binance Smart Chain", 56 /* BSC */], | ||
| }, {}); | ||
| var defiLlamaChainNames = { | ||
| [56 /* BSC */]: "bsc", | ||
| [1 /* ETHEREUM */]: "ethereum", | ||
| [5 /* GOERLI */]: "", | ||
| [97 /* BSC_TESTNET */]: "", | ||
| [42161 /* ARBITRUM_ONE */]: "arbitrum", | ||
| [421613 /* ARBITRUM_GOERLI */]: "", | ||
| [324 /* ZKSYNC */]: "era", | ||
| [280 /* ZKSYNC_TESTNET */]: "", | ||
| [59140 /* LINEA_TESTNET */]: "", | ||
| [84531 /* BASE_TESTNET */]: "", | ||
| [204 /* OPBNB */]: "op_bnb", | ||
| [5611 /* OPBNB_TESTNET */]: "", | ||
| [534351 /* SCROLL_SEPOLIA */]: "", | ||
| [59144 /* LINEA */]: "linea", | ||
| [8453 /* BASE */]: "base", | ||
| [11155111 /* SEPOLIA */]: "", | ||
| [421614 /* ARBITRUM_SEPOLIA */]: "", | ||
| [84532 /* BASE_SEPOLIA */]: "", | ||
| [143 /* MONAD_MAINNET */]: "monad", | ||
| [10143 /* MONAD_TESTNET */]: "", | ||
| [8000001001 /* SOLANA */]: "", | ||
| [8000002e3 /* APTOS */]: "" | ||
| }; | ||
| var defiLlamaChainNames = toRecord((config) => config.defiLlamaName ?? ""); | ||
| // src/chains.ts | ||
| var Chains = [ | ||
| { id: 56 /* BSC */, name: chainNames[56 /* BSC */], fullName: chainFullNames[56 /* BSC */], isEVM: true }, | ||
| { id: 1 /* ETHEREUM */, name: chainNames[1 /* ETHEREUM */], fullName: chainFullNames[1 /* ETHEREUM */], isEVM: true }, | ||
| { | ||
| id: 8000001001 /* SOLANA */, | ||
| name: chainNames[8000001001 /* SOLANA */], | ||
| fullName: chainFullNames[8000001001 /* SOLANA */], | ||
| isEVM: false | ||
| }, | ||
| { | ||
| id: 8000002e3 /* APTOS */, | ||
| name: chainNames[8000002e3 /* APTOS */], | ||
| fullName: chainFullNames[8000002e3 /* APTOS */], | ||
| isEVM: false | ||
| }, | ||
| { id: 8453 /* BASE */, name: chainNames[8453 /* BASE */], fullName: chainFullNames[8453 /* BASE */], isEVM: true }, | ||
| { | ||
| id: 143 /* MONAD_MAINNET */, | ||
| name: chainNames[143 /* MONAD_MAINNET */], | ||
| fullName: chainFullNames[143 /* MONAD_MAINNET */], | ||
| isEVM: true | ||
| }, | ||
| { | ||
| id: 42161 /* ARBITRUM_ONE */, | ||
| name: chainNames[42161 /* ARBITRUM_ONE */], | ||
| fullName: chainFullNames[42161 /* ARBITRUM_ONE */], | ||
| isEVM: true | ||
| }, | ||
| { id: 324 /* ZKSYNC */, name: chainNames[324 /* ZKSYNC */], fullName: chainFullNames[324 /* ZKSYNC */], isEVM: true }, | ||
| { id: 59144 /* LINEA */, name: chainNames[59144 /* LINEA */], fullName: chainFullNames[59144 /* LINEA */], isEVM: true }, | ||
| { id: 204 /* OPBNB */, name: chainNames[204 /* OPBNB */], fullName: chainFullNames[204 /* OPBNB */], isEVM: true }, | ||
| { | ||
| id: 97 /* BSC_TESTNET */, | ||
| name: chainNames[97 /* BSC_TESTNET */], | ||
| fullName: chainFullNames[97 /* BSC_TESTNET */], | ||
| isEVM: true, | ||
| testnet: true | ||
| }, | ||
| { id: 5 /* GOERLI */, name: chainNames[5 /* GOERLI */], fullName: chainFullNames[5 /* GOERLI */], isEVM: true }, | ||
| { id: 11155111 /* SEPOLIA */, name: chainNames[11155111 /* SEPOLIA */], fullName: chainFullNames[11155111 /* SEPOLIA */], isEVM: true }, | ||
| { | ||
| id: 421613 /* ARBITRUM_GOERLI */, | ||
| name: chainNames[421613 /* ARBITRUM_GOERLI */], | ||
| fullName: chainFullNames[421613 /* ARBITRUM_GOERLI */], | ||
| isEVM: true | ||
| }, | ||
| { | ||
| id: 421614 /* ARBITRUM_SEPOLIA */, | ||
| name: chainNames[421614 /* ARBITRUM_SEPOLIA */], | ||
| fullName: chainFullNames[421614 /* ARBITRUM_SEPOLIA */], | ||
| isEVM: true | ||
| }, | ||
| { | ||
| id: 59140 /* LINEA_TESTNET */, | ||
| name: chainNames[59140 /* LINEA_TESTNET */], | ||
| fullName: chainFullNames[59140 /* LINEA_TESTNET */], | ||
| isEVM: true, | ||
| testnet: true | ||
| }, | ||
| { | ||
| id: 84531 /* BASE_TESTNET */, | ||
| name: chainNames[84531 /* BASE_TESTNET */], | ||
| fullName: chainFullNames[84531 /* BASE_TESTNET */], | ||
| isEVM: true, | ||
| testnet: true | ||
| }, | ||
| { | ||
| id: 84532 /* BASE_SEPOLIA */, | ||
| name: chainNames[84532 /* BASE_SEPOLIA */], | ||
| fullName: chainFullNames[84532 /* BASE_SEPOLIA */], | ||
| isEVM: true | ||
| }, | ||
| { | ||
| id: 5611 /* OPBNB_TESTNET */, | ||
| name: chainNames[5611 /* OPBNB_TESTNET */], | ||
| fullName: chainFullNames[5611 /* OPBNB_TESTNET */], | ||
| isEVM: true, | ||
| testnet: true | ||
| }, | ||
| { | ||
| id: 534351 /* SCROLL_SEPOLIA */, | ||
| name: chainNames[534351 /* SCROLL_SEPOLIA */], | ||
| fullName: chainFullNames[534351 /* SCROLL_SEPOLIA */], | ||
| isEVM: true | ||
| }, | ||
| { | ||
| id: 10143 /* MONAD_TESTNET */, | ||
| name: chainNames[10143 /* MONAD_TESTNET */], | ||
| fullName: chainFullNames[10143 /* MONAD_TESTNET */], | ||
| isEVM: true, | ||
| testnet: true | ||
| } | ||
| ]; | ||
| // src/utils.ts | ||
@@ -377,11 +566,19 @@ var MAX_EVM_CHAIN_ID = Math.max(...Object.values(ChainId).filter((v) => typeof v === "number")); | ||
| var STABLESWAP_SUBGRAPHS = getStableSwapSubgraphs(publicSubgraphParams); | ||
| function filterSubgraphs(subgraphs) { | ||
| const isProduction = process.env.NODE_ENV === "production" && process.env.NEXT_PUBLIC_VERCEL_ENV !== "preview"; | ||
| if (!isProduction) | ||
| return subgraphs; | ||
| return Object.fromEntries( | ||
| Object.entries(subgraphs).filter(([, value]) => value !== void 0).map(([key, value]) => [key, typeof value === "string" && value.includes("undefined") ? null : value]) | ||
| ); | ||
| } | ||
| function getStableSwapSubgraphs({ theGraphApiKey } = {}) { | ||
| return { | ||
| return filterSubgraphs({ | ||
| [56 /* BSC */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/C5EuiZwWkCge7edveeMcvDmdr7jjc1zG4vgn8uucLdfz`, | ||
| [42161 /* ARBITRUM_ONE */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/y7G5NUSq5ngsLH2jBGQajjxuLgW1bcqWiBqKmBk3MWM`, | ||
| [143 /* MONAD_MAINNET */]: null | ||
| }; | ||
| }); | ||
| } | ||
| function getV3Subgraphs({ noderealApiKey, theGraphApiKey }) { | ||
| return { | ||
| return filterSubgraphs({ | ||
| [1 /* ETHEREUM */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/CJYGNhb7RvnhfBDjqpRnD3oxgyhibzc7fkAMa38YV3oS`, | ||
@@ -406,7 +603,8 @@ [5 /* GOERLI */]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-goerli", | ||
| [143 /* MONAD_MAINNET */]: null, | ||
| [10143 /* MONAD_TESTNET */]: null | ||
| }; | ||
| [10143 /* MONAD_TESTNET */]: null, | ||
| [4663 /* ROBINHOOD */]: null | ||
| }); | ||
| } | ||
| function getV2Subgraphs({ noderealApiKey, theGraphApiKey }) { | ||
| return { | ||
| return filterSubgraphs({ | ||
| [56 /* BSC */]: null, | ||
@@ -422,6 +620,6 @@ [1 /* ETHEREUM */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/9opY17WnEPD4REcC43yHycQthSeUMQE26wyoeMjZTLEx`, | ||
| [143 /* MONAD_MAINNET */]: null | ||
| }; | ||
| }); | ||
| } | ||
| function getBlocksSubgraphs({ noderealApiKey }) { | ||
| return { | ||
| return filterSubgraphs({ | ||
| [56 /* BSC */]: "https://api.thegraph.com/subgraphs/name/pancakeswap/blocks", | ||
@@ -435,3 +633,3 @@ [1 /* ETHEREUM */]: "https://api.thegraph.com/subgraphs/name/blocklytics/ethereum-blocks", | ||
| [143 /* MONAD_MAINNET */]: null | ||
| }; | ||
| }); | ||
| } | ||
@@ -449,2 +647,4 @@ | ||
| exports.allCasesNameToChainId = allCasesNameToChainId; | ||
| exports.allChainConfigs = allChainConfigs; | ||
| exports.chainConfigs = chainConfigs; | ||
| exports.chainFullNames = chainFullNames; | ||
@@ -455,6 +655,11 @@ exports.chainNameToChainId = chainNameToChainId; | ||
| exports.defiLlamaChainNames = defiLlamaChainNames; | ||
| exports.evmChainConfigs = evmChainConfigs; | ||
| exports.filterSubgraphs = filterSubgraphs; | ||
| exports.getBlocksSubgraphs = getBlocksSubgraphs; | ||
| exports.getChainConfig = getChainConfig; | ||
| exports.getChainIdByChainName = getChainIdByChainName; | ||
| exports.getChainIdsByFeature = getChainIdsByFeature; | ||
| exports.getChainName = getChainName; | ||
| exports.getChainNameInKebabCase = getChainNameInKebabCase; | ||
| exports.getL2ChainIds = getL2ChainIds; | ||
| exports.getLlamaChainName = getLlamaChainName; | ||
@@ -471,2 +676,3 @@ exports.getMainnetChainNameInKebabCase = getMainnetChainNameInKebabCase; | ||
| exports.mainnetChainNamesInKebabCase = mainnetChainNamesInKebabCase; | ||
| exports.robinhoodChainConfig = robinhoodChainConfig; | ||
| exports.testnetChainIds = testnetChainIds; |
+440
-242
@@ -23,2 +23,3 @@ // src/chainId.ts | ||
| ChainId2[ChainId2["MONAD_TESTNET"] = 10143] = "MONAD_TESTNET"; | ||
| ChainId2[ChainId2["ROBINHOOD"] = 4663] = "ROBINHOOD"; | ||
| return ChainId2; | ||
@@ -51,121 +52,427 @@ })(ChainId || {}); | ||
| // src/averageChainBlockTimes.ts | ||
| var AVERAGE_CHAIN_BLOCK_TIMES = { | ||
| [56 /* BSC */]: 0.45, | ||
| [97 /* BSC_TESTNET */]: 0.45, | ||
| [204 /* OPBNB */]: 0.5, | ||
| [5611 /* OPBNB_TESTNET */]: 0.5, | ||
| [1 /* ETHEREUM */]: 12, | ||
| [11155111 /* SEPOLIA */]: 12, | ||
| [5 /* GOERLI */]: 3, | ||
| [324 /* ZKSYNC */]: 2, | ||
| [280 /* ZKSYNC_TESTNET */]: 2, | ||
| [42161 /* ARBITRUM_ONE */]: 0.25, | ||
| [421613 /* ARBITRUM_GOERLI */]: 0.25, | ||
| [421614 /* ARBITRUM_SEPOLIA */]: 0.25, | ||
| [534351 /* SCROLL_SEPOLIA */]: 1, | ||
| [59144 /* LINEA */]: 2, | ||
| [59140 /* LINEA_TESTNET */]: 2, | ||
| [8453 /* BASE */]: 2, | ||
| [84531 /* BASE_TESTNET */]: 2, | ||
| [84532 /* BASE_SEPOLIA */]: 2, | ||
| [143 /* MONAD_MAINNET */]: 1, | ||
| [10143 /* MONAD_TESTNET */]: 1 | ||
| // src/chains/aptos.ts | ||
| var aptos = { | ||
| id: 8000002e3 /* APTOS */, | ||
| name: "aptos", | ||
| fullName: "Aptos", | ||
| kebabCaseName: "aptos", | ||
| mainnetKebabCaseName: "aptos", | ||
| defiLlamaName: "", | ||
| isEVM: false | ||
| }; | ||
| // src/chainNames.ts | ||
| var chainNames = { | ||
| [1 /* ETHEREUM */]: "eth", | ||
| [5 /* GOERLI */]: "goerli", | ||
| [56 /* BSC */]: "bsc", | ||
| [97 /* BSC_TESTNET */]: "bscTestnet", | ||
| [42161 /* ARBITRUM_ONE */]: "arb", | ||
| [421613 /* ARBITRUM_GOERLI */]: "arbGoerli", | ||
| [324 /* ZKSYNC */]: "zkSync", | ||
| [280 /* ZKSYNC_TESTNET */]: "zkSyncTestnet", | ||
| [59144 /* LINEA */]: "linea", | ||
| [59140 /* LINEA_TESTNET */]: "lineaTestnet", | ||
| [204 /* OPBNB */]: "opBNB", | ||
| [5611 /* OPBNB_TESTNET */]: "opBnbTestnet", | ||
| [8453 /* BASE */]: "base", | ||
| [84531 /* BASE_TESTNET */]: "baseTestnet", | ||
| [534351 /* SCROLL_SEPOLIA */]: "scrollSepolia", | ||
| [11155111 /* SEPOLIA */]: "sepolia", | ||
| [421614 /* ARBITRUM_SEPOLIA */]: "arbSepolia", | ||
| [84532 /* BASE_SEPOLIA */]: "baseSepolia", | ||
| [143 /* MONAD_MAINNET */]: "monad", | ||
| [10143 /* MONAD_TESTNET */]: "monadTestnet", | ||
| [8000001001 /* SOLANA */]: "sol", | ||
| [8000002e3 /* APTOS */]: "aptos" | ||
| // src/chains/arbitrum.ts | ||
| var arbitrum = { | ||
| id: 42161 /* ARBITRUM_ONE */, | ||
| name: "arb", | ||
| fullName: "Arbitrum One", | ||
| kebabCaseName: "arbitrum", | ||
| mainnetKebabCaseName: "arbitrum", | ||
| defiLlamaName: "arbitrum", | ||
| isEVM: true, | ||
| isL2: true, | ||
| averageBlockTime: 0.25, | ||
| features: { pools: true, farms: true, prediction: true, v2: true, v3: true } | ||
| }; | ||
| var chainFullNames = { | ||
| [1 /* ETHEREUM */]: "Ethereum", | ||
| [5 /* GOERLI */]: "Goerli", | ||
| [56 /* BSC */]: "BNB Chain", | ||
| [97 /* BSC_TESTNET */]: "BNB Chain Testnet", | ||
| [42161 /* ARBITRUM_ONE */]: "Arbitrum One", | ||
| [421613 /* ARBITRUM_GOERLI */]: "Arbitrum Goerli", | ||
| [324 /* ZKSYNC */]: "ZKsync Era", | ||
| [280 /* ZKSYNC_TESTNET */]: "ZKsync Era Testnet", | ||
| [59144 /* LINEA */]: "Linea", | ||
| [59140 /* LINEA_TESTNET */]: "Linea Testnet", | ||
| [204 /* OPBNB */]: "opBNB", | ||
| [5611 /* OPBNB_TESTNET */]: "opBNB Testnet", | ||
| [8453 /* BASE */]: "Base", | ||
| [84531 /* BASE_TESTNET */]: "Base Testnet", | ||
| [534351 /* SCROLL_SEPOLIA */]: "Scroll Sepolia", | ||
| [11155111 /* SEPOLIA */]: "Sepolia", | ||
| [421614 /* ARBITRUM_SEPOLIA */]: "Arbitrum Sepolia", | ||
| [84532 /* BASE_SEPOLIA */]: "Base Sepolia", | ||
| [143 /* MONAD_MAINNET */]: "Monad", | ||
| [10143 /* MONAD_TESTNET */]: "Monad Testnet", | ||
| [8000001001 /* SOLANA */]: "Solana", | ||
| [8000002e3 /* APTOS */]: "Aptos" | ||
| // src/chains/arbitrumGoerli.ts | ||
| var arbitrumGoerli = { | ||
| id: 421613 /* ARBITRUM_GOERLI */, | ||
| name: "arbGoerli", | ||
| fullName: "Arbitrum Goerli", | ||
| kebabCaseName: "arbitrum-goerli", | ||
| mainnetKebabCaseName: "arbitrum", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 0.25, | ||
| features: { pools: true } | ||
| }; | ||
| var chainNamesInKebabCase = { | ||
| [1 /* ETHEREUM */]: "ethereum", | ||
| [5 /* GOERLI */]: "goerli", | ||
| [56 /* BSC */]: "bsc", | ||
| [97 /* BSC_TESTNET */]: "bsc-testnet", | ||
| [42161 /* ARBITRUM_ONE */]: "arbitrum", | ||
| [421613 /* ARBITRUM_GOERLI */]: "arbitrum-goerli", | ||
| [324 /* ZKSYNC */]: "zksync", | ||
| [280 /* ZKSYNC_TESTNET */]: "zksync-testnet", | ||
| [59144 /* LINEA */]: "linea", | ||
| [59140 /* LINEA_TESTNET */]: "linea-testnet", | ||
| [204 /* OPBNB */]: "opbnb", | ||
| [5611 /* OPBNB_TESTNET */]: "opbnb-testnet", | ||
| [8453 /* BASE */]: "base", | ||
| [84531 /* BASE_TESTNET */]: "base-testnet", | ||
| [534351 /* SCROLL_SEPOLIA */]: "scroll-sepolia", | ||
| [11155111 /* SEPOLIA */]: "sepolia", | ||
| [421614 /* ARBITRUM_SEPOLIA */]: "arbitrum-sepolia", | ||
| [84532 /* BASE_SEPOLIA */]: "base-sepolia", | ||
| [143 /* MONAD_MAINNET */]: "monad", | ||
| [10143 /* MONAD_TESTNET */]: "monad-testnet", | ||
| [8000001001 /* SOLANA */]: "sol", | ||
| [8000002e3 /* APTOS */]: "aptos" | ||
| // src/chains/arbitrumSepolia.ts | ||
| var arbitrumSepolia = { | ||
| id: 421614 /* ARBITRUM_SEPOLIA */, | ||
| name: "arbSepolia", | ||
| fullName: "Arbitrum Sepolia", | ||
| kebabCaseName: "arbitrum-sepolia", | ||
| mainnetKebabCaseName: "arbitrum", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 0.25 | ||
| }; | ||
| var mainnetChainNamesInKebabCase = { | ||
| [1 /* ETHEREUM */]: "ethereum", | ||
| [5 /* GOERLI */]: "ethereum", | ||
| [56 /* BSC */]: "bsc", | ||
| [97 /* BSC_TESTNET */]: "bsc", | ||
| [42161 /* ARBITRUM_ONE */]: "arbitrum", | ||
| [421613 /* ARBITRUM_GOERLI */]: "arbitrum", | ||
| [324 /* ZKSYNC */]: "zksync", | ||
| [280 /* ZKSYNC_TESTNET */]: "zksync", | ||
| [59144 /* LINEA */]: "linea", | ||
| [59140 /* LINEA_TESTNET */]: "linea", | ||
| [204 /* OPBNB */]: "opbnb", | ||
| [5611 /* OPBNB_TESTNET */]: "opbnb", | ||
| [8453 /* BASE */]: "base", | ||
| [84531 /* BASE_TESTNET */]: "base", | ||
| [11155111 /* SEPOLIA */]: "ethereum", | ||
| [421614 /* ARBITRUM_SEPOLIA */]: "arbitrum", | ||
| [84532 /* BASE_SEPOLIA */]: "base", | ||
| [8000001001 /* SOLANA */]: "sol", | ||
| [143 /* MONAD_MAINNET */]: "monad", | ||
| [8000002e3 /* APTOS */]: "aptos" | ||
| // src/chains/base.ts | ||
| var base = { | ||
| id: 8453 /* BASE */, | ||
| name: "base", | ||
| fullName: "Base", | ||
| kebabCaseName: "base", | ||
| mainnetKebabCaseName: "base", | ||
| defiLlamaName: "base", | ||
| isEVM: true, | ||
| isL2: true, | ||
| averageBlockTime: 2, | ||
| features: { pools: true, farms: true, aggregator: true, infinity: true, v3: true } | ||
| }; | ||
| // src/chains/baseSepolia.ts | ||
| var baseSepolia = { | ||
| id: 84532 /* BASE_SEPOLIA */, | ||
| name: "baseSepolia", | ||
| fullName: "Base Sepolia", | ||
| kebabCaseName: "base-sepolia", | ||
| mainnetKebabCaseName: "base", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 2 | ||
| }; | ||
| // src/chains/baseTestnet.ts | ||
| var baseTestnet = { | ||
| id: 84531 /* BASE_TESTNET */, | ||
| name: "baseTestnet", | ||
| fullName: "Base Testnet", | ||
| kebabCaseName: "base-testnet", | ||
| mainnetKebabCaseName: "base", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 2, | ||
| features: { pools: true } | ||
| }; | ||
| // src/chains/bsc.ts | ||
| var bsc = { | ||
| id: 56 /* BSC */, | ||
| name: "bsc", | ||
| fullName: "BNB Chain", | ||
| kebabCaseName: "bsc", | ||
| mainnetKebabCaseName: "bsc", | ||
| defiLlamaName: "bsc", | ||
| isEVM: true, | ||
| averageBlockTime: 0.45, | ||
| features: { | ||
| pools: true, | ||
| farms: true, | ||
| prediction: true, | ||
| aggregator: true, | ||
| infinity: true, | ||
| v2: true, | ||
| v3: true | ||
| } | ||
| }; | ||
| // src/chains/bscTestnet.ts | ||
| var bscTestnet = { | ||
| id: 97 /* BSC_TESTNET */, | ||
| name: "bscTestnet", | ||
| fullName: "BNB Chain Testnet", | ||
| kebabCaseName: "bsc-testnet", | ||
| mainnetKebabCaseName: "bsc", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| testnet: true, | ||
| averageBlockTime: 0.45, | ||
| features: { pools: true, farms: true, infinity: true, v2: true, v3: true } | ||
| }; | ||
| // src/chains/ethereum.ts | ||
| var ethereum = { | ||
| id: 1 /* ETHEREUM */, | ||
| name: "eth", | ||
| fullName: "Ethereum", | ||
| kebabCaseName: "ethereum", | ||
| mainnetKebabCaseName: "ethereum", | ||
| defiLlamaName: "ethereum", | ||
| isEVM: true, | ||
| averageBlockTime: 12, | ||
| features: { pools: true, farms: true, prediction: false, aggregator: true, v2: true, v3: true } | ||
| }; | ||
| // src/chains/goerli.ts | ||
| var goerli = { | ||
| id: 5 /* GOERLI */, | ||
| name: "goerli", | ||
| fullName: "Goerli", | ||
| kebabCaseName: "goerli", | ||
| mainnetKebabCaseName: "ethereum", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| testnet: true, | ||
| averageBlockTime: 3, | ||
| features: { v2: true } | ||
| }; | ||
| // src/chains/linea.ts | ||
| var linea = { | ||
| id: 59144 /* LINEA */, | ||
| name: "linea", | ||
| fullName: "Linea", | ||
| kebabCaseName: "linea", | ||
| mainnetKebabCaseName: "linea", | ||
| defiLlamaName: "linea", | ||
| isEVM: true, | ||
| isL2: true, | ||
| averageBlockTime: 2, | ||
| features: { farms: true, v3: true } | ||
| }; | ||
| // src/chains/lineaTestnet.ts | ||
| var lineaTestnet = { | ||
| id: 59140 /* LINEA_TESTNET */, | ||
| name: "lineaTestnet", | ||
| fullName: "Linea Testnet", | ||
| kebabCaseName: "linea-testnet", | ||
| mainnetKebabCaseName: "linea", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 2, | ||
| features: { pools: true } | ||
| }; | ||
| // src/chains/monad.ts | ||
| var monad = { | ||
| id: 143 /* MONAD_MAINNET */, | ||
| name: "monad", | ||
| fullName: "Monad", | ||
| kebabCaseName: "monad", | ||
| mainnetKebabCaseName: "monad", | ||
| defiLlamaName: "monad", | ||
| isEVM: true, | ||
| averageBlockTime: 1, | ||
| features: { farms: true, v2: true, v3: true } | ||
| }; | ||
| // src/chains/monadTestnet.ts | ||
| var monadTestnet = { | ||
| id: 10143 /* MONAD_TESTNET */, | ||
| name: "monadTestnet", | ||
| fullName: "Monad Testnet", | ||
| kebabCaseName: "monad-testnet", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| testnet: true, | ||
| averageBlockTime: 1, | ||
| features: { v2: true, v3: true } | ||
| }; | ||
| // src/chains/opbnb.ts | ||
| var opbnb = { | ||
| id: 204 /* OPBNB */, | ||
| name: "opBNB", | ||
| fullName: "opBNB", | ||
| kebabCaseName: "opbnb", | ||
| mainnetKebabCaseName: "opbnb", | ||
| defiLlamaName: "op_bnb", | ||
| isEVM: true, | ||
| isL2: true, | ||
| averageBlockTime: 0.5, | ||
| features: { pools: true, farms: true, v3: true } | ||
| }; | ||
| // src/chains/opbnbTestnet.ts | ||
| var opbnbTestnet = { | ||
| id: 5611 /* OPBNB_TESTNET */, | ||
| name: "opBnbTestnet", | ||
| fullName: "opBNB Testnet", | ||
| kebabCaseName: "opbnb-testnet", | ||
| mainnetKebabCaseName: "opbnb", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 0.5, | ||
| features: { v3: true } | ||
| }; | ||
| // src/chains/robinhood.ts | ||
| var robinhood = { | ||
| id: 4663 /* ROBINHOOD */, | ||
| name: "robinhood", | ||
| fullName: "Robinhood", | ||
| kebabCaseName: "robinhood", | ||
| mainnetKebabCaseName: "robinhood", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| averageBlockTime: 1, | ||
| nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, | ||
| // blockExplorerUrl: 'https://explorer.chain.robinhood.com', | ||
| blockExplorerUrl: "https://robinhoodchain.blockscout.com/", | ||
| features: { | ||
| swap: true, | ||
| liquidity: true, | ||
| pools: true, | ||
| farms: false, | ||
| prediction: false, | ||
| aggregator: false, | ||
| infinity: false, | ||
| v2: true, | ||
| v3: true | ||
| }, | ||
| tokens: { | ||
| wrappedNative: "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73" | ||
| }, | ||
| contracts: { | ||
| multicall: "0xcf05Fc31A6B693DD0bEB76e958ae4BCD490dc985", | ||
| multicall3: "0xD59aaE32bcF95AAe58119751d5E355C9855cDC31", | ||
| permit2: "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768", | ||
| v2Factory: "0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E", | ||
| v2Router: "0x8cFe327CEc66d1C090Dd72bd0FF11d690C33a2Eb", | ||
| v3Factory: "0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865", | ||
| v3Deployer: "0x41ff9AA7e16B8B1a8a8dc4f0eFacd93D02d071c9", | ||
| v3NftPositionManager: "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364", | ||
| v3Migrator: "0xbC203d7f83677c7ed3F7acEc959963E7F4ECC5C2", | ||
| v3Quoter: "0x8553AA1615549A86882151784b329B017aA7c832", | ||
| v3TickLens: "0x9a489505a00cE272eAa5e07Dba6491314CaE3796", | ||
| mixedRouteQuoter: "0x2b792b99ae08483D45d79833408439674C6Daf1B", | ||
| smartRouter: "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4", | ||
| universalRouter: "0xE28c0e44F4016b073db20cF28971CAc6ce3664D3" | ||
| }, | ||
| hashes: { | ||
| v2InitCodeHash: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d", | ||
| v3PoolInitCodeHash: "0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2" | ||
| }, | ||
| routing: { | ||
| poolDiscovery: "onChainOnly", | ||
| skipCompactTickFallback: true | ||
| } | ||
| }; | ||
| // src/chains/scrollSepolia.ts | ||
| var scrollSepolia = { | ||
| id: 534351 /* SCROLL_SEPOLIA */, | ||
| name: "scrollSepolia", | ||
| fullName: "Scroll Sepolia", | ||
| kebabCaseName: "scroll-sepolia", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 1 | ||
| }; | ||
| // src/chains/sepolia.ts | ||
| var sepolia = { | ||
| id: 11155111 /* SEPOLIA */, | ||
| name: "sepolia", | ||
| fullName: "Sepolia", | ||
| kebabCaseName: "sepolia", | ||
| mainnetKebabCaseName: "ethereum", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| testnet: true, | ||
| averageBlockTime: 12, | ||
| features: { infinity: true } | ||
| }; | ||
| // src/chains/solana.ts | ||
| var solana = { | ||
| id: 8000001001 /* SOLANA */, | ||
| name: "sol", | ||
| fullName: "Solana", | ||
| kebabCaseName: "sol", | ||
| mainnetKebabCaseName: "sol", | ||
| defiLlamaName: "", | ||
| isEVM: false | ||
| }; | ||
| // src/chains/zksync.ts | ||
| var zksync = { | ||
| id: 324 /* ZKSYNC */, | ||
| name: "zkSync", | ||
| fullName: "ZKsync Era", | ||
| kebabCaseName: "zksync", | ||
| mainnetKebabCaseName: "zksync", | ||
| defiLlamaName: "era", | ||
| isEVM: true, | ||
| isL2: true, | ||
| averageBlockTime: 2, | ||
| features: { pools: true, farms: true, prediction: true, v3: true } | ||
| }; | ||
| // src/chains/zksyncTestnet.ts | ||
| var zksyncTestnet = { | ||
| id: 280 /* ZKSYNC_TESTNET */, | ||
| name: "zkSyncTestnet", | ||
| fullName: "ZKsync Era Testnet", | ||
| kebabCaseName: "zksync-testnet", | ||
| mainnetKebabCaseName: "zksync", | ||
| defiLlamaName: "", | ||
| isEVM: true, | ||
| isL2: true, | ||
| testnet: true, | ||
| averageBlockTime: 2, | ||
| features: { pools: true, v3: true } | ||
| }; | ||
| // src/chains/index.ts | ||
| var allChainConfigsLiteral = [ | ||
| bsc, | ||
| ethereum, | ||
| solana, | ||
| aptos, | ||
| base, | ||
| monad, | ||
| robinhood, | ||
| arbitrum, | ||
| zksync, | ||
| zksyncTestnet, | ||
| linea, | ||
| opbnb, | ||
| bscTestnet, | ||
| goerli, | ||
| sepolia, | ||
| arbitrumGoerli, | ||
| arbitrumSepolia, | ||
| lineaTestnet, | ||
| baseTestnet, | ||
| baseSepolia, | ||
| opbnbTestnet, | ||
| scrollSepolia, | ||
| monadTestnet | ||
| ]; | ||
| var allChainConfigs = allChainConfigsLiteral; | ||
| var evmChainConfigs = allChainConfigs.filter( | ||
| (config) => config.isEVM | ||
| ); | ||
| var robinhoodChainConfig = robinhood; | ||
| var chainConfigs = Object.fromEntries(evmChainConfigs.map((config) => [config.id, config])); | ||
| var getChainConfig = (chainId) => chainConfigs[chainId]; | ||
| var getChainIdsByFeature = (feature) => evmChainConfigs.filter((config) => config.features?.[feature] === true).map((config) => config.id); | ||
| var getL2ChainIds = () => evmChainConfigs.filter((config) => config.isL2).map((config) => config.id); | ||
| var Chains = allChainConfigs.map((config) => ({ | ||
| id: config.id, | ||
| name: config.name, | ||
| fullName: config.fullName, | ||
| isEVM: config.isEVM, | ||
| ...config.testnet ? { testnet: true } : {} | ||
| })); | ||
| // src/averageChainBlockTimes.ts | ||
| var AVERAGE_CHAIN_BLOCK_TIMES = Object.fromEntries( | ||
| evmChainConfigs.flatMap( | ||
| (config) => config.averageBlockTime === void 0 ? [] : [[config.id, config.averageBlockTime]] | ||
| ) | ||
| ); | ||
| // src/chainNames.ts | ||
| var toRecord = (selector) => Object.fromEntries( | ||
| allChainConfigs.flatMap((config) => { | ||
| const value = selector(config); | ||
| return value === void 0 ? [] : [[config.id, value]]; | ||
| }) | ||
| ); | ||
| var chainNames = toRecord((config) => config.name); | ||
| var chainFullNames = toRecord((config) => config.fullName); | ||
| var chainNamesInKebabCase = toRecord((config) => config.kebabCaseName); | ||
| var mainnetChainNamesInKebabCase = toRecord((config) => config.mainnetKebabCaseName); | ||
| var legacyChainNames = [ | ||
@@ -204,122 +511,4 @@ ["Binance Smart Chain", 56 /* BSC */], | ||
| }, {}); | ||
| var defiLlamaChainNames = { | ||
| [56 /* BSC */]: "bsc", | ||
| [1 /* ETHEREUM */]: "ethereum", | ||
| [5 /* GOERLI */]: "", | ||
| [97 /* BSC_TESTNET */]: "", | ||
| [42161 /* ARBITRUM_ONE */]: "arbitrum", | ||
| [421613 /* ARBITRUM_GOERLI */]: "", | ||
| [324 /* ZKSYNC */]: "era", | ||
| [280 /* ZKSYNC_TESTNET */]: "", | ||
| [59140 /* LINEA_TESTNET */]: "", | ||
| [84531 /* BASE_TESTNET */]: "", | ||
| [204 /* OPBNB */]: "op_bnb", | ||
| [5611 /* OPBNB_TESTNET */]: "", | ||
| [534351 /* SCROLL_SEPOLIA */]: "", | ||
| [59144 /* LINEA */]: "linea", | ||
| [8453 /* BASE */]: "base", | ||
| [11155111 /* SEPOLIA */]: "", | ||
| [421614 /* ARBITRUM_SEPOLIA */]: "", | ||
| [84532 /* BASE_SEPOLIA */]: "", | ||
| [143 /* MONAD_MAINNET */]: "monad", | ||
| [10143 /* MONAD_TESTNET */]: "", | ||
| [8000001001 /* SOLANA */]: "", | ||
| [8000002e3 /* APTOS */]: "" | ||
| }; | ||
| var defiLlamaChainNames = toRecord((config) => config.defiLlamaName ?? ""); | ||
| // src/chains.ts | ||
| var Chains = [ | ||
| { id: 56 /* BSC */, name: chainNames[56 /* BSC */], fullName: chainFullNames[56 /* BSC */], isEVM: true }, | ||
| { id: 1 /* ETHEREUM */, name: chainNames[1 /* ETHEREUM */], fullName: chainFullNames[1 /* ETHEREUM */], isEVM: true }, | ||
| { | ||
| id: 8000001001 /* SOLANA */, | ||
| name: chainNames[8000001001 /* SOLANA */], | ||
| fullName: chainFullNames[8000001001 /* SOLANA */], | ||
| isEVM: false | ||
| }, | ||
| { | ||
| id: 8000002e3 /* APTOS */, | ||
| name: chainNames[8000002e3 /* APTOS */], | ||
| fullName: chainFullNames[8000002e3 /* APTOS */], | ||
| isEVM: false | ||
| }, | ||
| { id: 8453 /* BASE */, name: chainNames[8453 /* BASE */], fullName: chainFullNames[8453 /* BASE */], isEVM: true }, | ||
| { | ||
| id: 143 /* MONAD_MAINNET */, | ||
| name: chainNames[143 /* MONAD_MAINNET */], | ||
| fullName: chainFullNames[143 /* MONAD_MAINNET */], | ||
| isEVM: true | ||
| }, | ||
| { | ||
| id: 42161 /* ARBITRUM_ONE */, | ||
| name: chainNames[42161 /* ARBITRUM_ONE */], | ||
| fullName: chainFullNames[42161 /* ARBITRUM_ONE */], | ||
| isEVM: true | ||
| }, | ||
| { id: 324 /* ZKSYNC */, name: chainNames[324 /* ZKSYNC */], fullName: chainFullNames[324 /* ZKSYNC */], isEVM: true }, | ||
| { id: 59144 /* LINEA */, name: chainNames[59144 /* LINEA */], fullName: chainFullNames[59144 /* LINEA */], isEVM: true }, | ||
| { id: 204 /* OPBNB */, name: chainNames[204 /* OPBNB */], fullName: chainFullNames[204 /* OPBNB */], isEVM: true }, | ||
| { | ||
| id: 97 /* BSC_TESTNET */, | ||
| name: chainNames[97 /* BSC_TESTNET */], | ||
| fullName: chainFullNames[97 /* BSC_TESTNET */], | ||
| isEVM: true, | ||
| testnet: true | ||
| }, | ||
| { id: 5 /* GOERLI */, name: chainNames[5 /* GOERLI */], fullName: chainFullNames[5 /* GOERLI */], isEVM: true }, | ||
| { id: 11155111 /* SEPOLIA */, name: chainNames[11155111 /* SEPOLIA */], fullName: chainFullNames[11155111 /* SEPOLIA */], isEVM: true }, | ||
| { | ||
| id: 421613 /* ARBITRUM_GOERLI */, | ||
| name: chainNames[421613 /* ARBITRUM_GOERLI */], | ||
| fullName: chainFullNames[421613 /* ARBITRUM_GOERLI */], | ||
| isEVM: true | ||
| }, | ||
| { | ||
| id: 421614 /* ARBITRUM_SEPOLIA */, | ||
| name: chainNames[421614 /* ARBITRUM_SEPOLIA */], | ||
| fullName: chainFullNames[421614 /* ARBITRUM_SEPOLIA */], | ||
| isEVM: true | ||
| }, | ||
| { | ||
| id: 59140 /* LINEA_TESTNET */, | ||
| name: chainNames[59140 /* LINEA_TESTNET */], | ||
| fullName: chainFullNames[59140 /* LINEA_TESTNET */], | ||
| isEVM: true, | ||
| testnet: true | ||
| }, | ||
| { | ||
| id: 84531 /* BASE_TESTNET */, | ||
| name: chainNames[84531 /* BASE_TESTNET */], | ||
| fullName: chainFullNames[84531 /* BASE_TESTNET */], | ||
| isEVM: true, | ||
| testnet: true | ||
| }, | ||
| { | ||
| id: 84532 /* BASE_SEPOLIA */, | ||
| name: chainNames[84532 /* BASE_SEPOLIA */], | ||
| fullName: chainFullNames[84532 /* BASE_SEPOLIA */], | ||
| isEVM: true | ||
| }, | ||
| { | ||
| id: 5611 /* OPBNB_TESTNET */, | ||
| name: chainNames[5611 /* OPBNB_TESTNET */], | ||
| fullName: chainFullNames[5611 /* OPBNB_TESTNET */], | ||
| isEVM: true, | ||
| testnet: true | ||
| }, | ||
| { | ||
| id: 534351 /* SCROLL_SEPOLIA */, | ||
| name: chainNames[534351 /* SCROLL_SEPOLIA */], | ||
| fullName: chainFullNames[534351 /* SCROLL_SEPOLIA */], | ||
| isEVM: true | ||
| }, | ||
| { | ||
| id: 10143 /* MONAD_TESTNET */, | ||
| name: chainNames[10143 /* MONAD_TESTNET */], | ||
| fullName: chainFullNames[10143 /* MONAD_TESTNET */], | ||
| isEVM: true, | ||
| testnet: true | ||
| } | ||
| ]; | ||
| // src/utils.ts | ||
@@ -375,11 +564,19 @@ var MAX_EVM_CHAIN_ID = Math.max(...Object.values(ChainId).filter((v) => typeof v === "number")); | ||
| var STABLESWAP_SUBGRAPHS = getStableSwapSubgraphs(publicSubgraphParams); | ||
| function filterSubgraphs(subgraphs) { | ||
| const isProduction = process.env.NODE_ENV === "production" && process.env.NEXT_PUBLIC_VERCEL_ENV !== "preview"; | ||
| if (!isProduction) | ||
| return subgraphs; | ||
| return Object.fromEntries( | ||
| Object.entries(subgraphs).filter(([, value]) => value !== void 0).map(([key, value]) => [key, typeof value === "string" && value.includes("undefined") ? null : value]) | ||
| ); | ||
| } | ||
| function getStableSwapSubgraphs({ theGraphApiKey } = {}) { | ||
| return { | ||
| return filterSubgraphs({ | ||
| [56 /* BSC */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/C5EuiZwWkCge7edveeMcvDmdr7jjc1zG4vgn8uucLdfz`, | ||
| [42161 /* ARBITRUM_ONE */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/y7G5NUSq5ngsLH2jBGQajjxuLgW1bcqWiBqKmBk3MWM`, | ||
| [143 /* MONAD_MAINNET */]: null | ||
| }; | ||
| }); | ||
| } | ||
| function getV3Subgraphs({ noderealApiKey, theGraphApiKey }) { | ||
| return { | ||
| return filterSubgraphs({ | ||
| [1 /* ETHEREUM */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/CJYGNhb7RvnhfBDjqpRnD3oxgyhibzc7fkAMa38YV3oS`, | ||
@@ -404,7 +601,8 @@ [5 /* GOERLI */]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-goerli", | ||
| [143 /* MONAD_MAINNET */]: null, | ||
| [10143 /* MONAD_TESTNET */]: null | ||
| }; | ||
| [10143 /* MONAD_TESTNET */]: null, | ||
| [4663 /* ROBINHOOD */]: null | ||
| }); | ||
| } | ||
| function getV2Subgraphs({ noderealApiKey, theGraphApiKey }) { | ||
| return { | ||
| return filterSubgraphs({ | ||
| [56 /* BSC */]: null, | ||
@@ -420,6 +618,6 @@ [1 /* ETHEREUM */]: `https://gateway-arbitrum.network.thegraph.com/api/${theGraphApiKey}/subgraphs/id/9opY17WnEPD4REcC43yHycQthSeUMQE26wyoeMjZTLEx`, | ||
| [143 /* MONAD_MAINNET */]: null | ||
| }; | ||
| }); | ||
| } | ||
| function getBlocksSubgraphs({ noderealApiKey }) { | ||
| return { | ||
| return filterSubgraphs({ | ||
| [56 /* BSC */]: "https://api.thegraph.com/subgraphs/name/pancakeswap/blocks", | ||
@@ -433,5 +631,5 @@ [1 /* ETHEREUM */]: "https://api.thegraph.com/subgraphs/name/blocklytics/ethereum-blocks", | ||
| [143 /* MONAD_MAINNET */]: null | ||
| }; | ||
| }); | ||
| } | ||
| export { AVERAGE_CHAIN_BLOCK_TIMES, BLOCKS_SUBGRAPHS, ChainId, Chains, NonEVMChainId, STABLESWAP_SUBGRAPHS, SunsetChainId, V2_SUBGRAPHS, V3_SUBGRAPHS, allCasesNameToChainId, chainFullNames, chainNameToChainId, chainNames, chainNamesInKebabCase, defiLlamaChainNames, getBlocksSubgraphs, getChainIdByChainName, getChainName, getChainNameInKebabCase, getLlamaChainName, getMainnetChainNameInKebabCase, getStableSwapSubgraphs, getV2Subgraphs, getV3Subgraphs, isAptos, isChainSupported, isEvm, isSolana, isTestnetChainId, mainnetChainNamesInKebabCase, testnetChainIds }; | ||
| export { AVERAGE_CHAIN_BLOCK_TIMES, BLOCKS_SUBGRAPHS, ChainId, Chains, NonEVMChainId, STABLESWAP_SUBGRAPHS, SunsetChainId, V2_SUBGRAPHS, V3_SUBGRAPHS, allCasesNameToChainId, allChainConfigs, chainConfigs, chainFullNames, chainNameToChainId, chainNames, chainNamesInKebabCase, defiLlamaChainNames, evmChainConfigs, filterSubgraphs, getBlocksSubgraphs, getChainConfig, getChainIdByChainName, getChainIdsByFeature, getChainName, getChainNameInKebabCase, getL2ChainIds, getLlamaChainName, getMainnetChainNameInKebabCase, getStableSwapSubgraphs, getV2Subgraphs, getV3Subgraphs, isAptos, isChainSupported, isEvm, isSolana, isTestnetChainId, mainnetChainNamesInKebabCase, robinhoodChainConfig, testnetChainIds }; |
@@ -26,2 +26,3 @@ type SubgraphParams = { | ||
| readonly 10143: null; | ||
| readonly 4663: null; | ||
| }; | ||
@@ -55,2 +56,5 @@ export declare const V2_SUBGRAPHS: { | ||
| }; | ||
| export declare function filterSubgraphs<T extends Record<string | number, string | null | undefined>>(subgraphs: T): { | ||
| [K in keyof T]: Exclude<T[K], undefined>; | ||
| }; | ||
| export declare function getStableSwapSubgraphs({ theGraphApiKey }?: Pick<SubgraphParams, 'theGraphApiKey'>): { | ||
@@ -82,2 +86,3 @@ readonly 56: `https://gateway-arbitrum.network.thegraph.com/api/${string}/subgraphs/id/C5EuiZwWkCge7edveeMcvDmdr7jjc1zG4vgn8uucLdfz`; | ||
| readonly 10143: null; | ||
| readonly 4663: null; | ||
| }; | ||
@@ -84,0 +89,0 @@ export declare function getV2Subgraphs({ noderealApiKey, theGraphApiKey }: SubgraphParams): { |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"subgraphs.d.ts","sourceRoot":"","sources":["../src/subgraphs.ts"],"names":[],"mappings":"AAEA,KAAK,cAAc,GAAG;IACpB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAEhE,eAAO,MAAM,YAAY;;;;;;;;;;;CAAuC,CAAA;AAEhE,eAAO,MAAM,gBAAgB;;;;;;;;;CAA2C,CAAA;AAExE,eAAO,MAAM,oBAAoB;;;;CAA+C,CAAA;AAEhF,wBAAgB,sBAAsB,CAAC,EAAE,cAAc,EAAE,GAAE,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAM;;;;EAMrG;AAED,wBAAgB,cAAc,CAAC,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;EAwBhF;AAED,wBAAgB,cAAc,CAAC,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,cAAc;;;;;;;;;;;EAahF;AAED,wBAAgB,kBAAkB,CAAC,EAAE,cAAc,EAAE,EAAE,cAAc;;;;;;;;;EAWpE"} | ||
| {"version":3,"file":"subgraphs.d.ts","sourceRoot":"","sources":["../src/subgraphs.ts"],"names":[],"mappings":"AAEA,KAAK,cAAc,GAAG;IACpB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAEhE,eAAO,MAAM,YAAY;;;;;;;;;;;CAAuC,CAAA;AAEhE,eAAO,MAAM,gBAAgB;;;;;;;;;CAA2C,CAAA;AAExE,eAAO,MAAM,oBAAoB;;;;CAA+C,CAAA;AAEhF,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,EAC1F,SAAS,EAAE,CAAC,GACX;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC;CAAE,CAS9C;AAED,wBAAgB,sBAAsB,CAAC,EAAE,cAAc,EAAE,GAAE,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAM;;;;EAMrG;AAED,wBAAgB,cAAc,CAAC,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;EAyBhF;AAED,wBAAgB,cAAc,CAAC,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,cAAc;;;;;;;;;;;EAahF;AAED,wBAAgB,kBAAkB,CAAC,EAAE,cAAc,EAAE,EAAE,cAAc;;;;;;;;;EAWpE"} |
+2
-2
| import { ChainId, UnifiedChainId } from './chainId'; | ||
| import { mainnetChainNamesInKebabCase } from './chainNames'; | ||
| export declare function getChainName(chainId: UnifiedChainId): string; | ||
| export declare function getChainNameInKebabCase(chainId: UnifiedChainId): "goerli" | "bsc" | "linea" | "base" | "sepolia" | "monad" | "sol" | "aptos" | "ethereum" | "bsc-testnet" | "arbitrum" | "arbitrum-goerli" | "zksync" | "zksync-testnet" | "linea-testnet" | "opbnb" | "opbnb-testnet" | "base-testnet" | "scroll-sepolia" | "arbitrum-sepolia" | "base-sepolia" | "monad-testnet"; | ||
| export declare function getMainnetChainNameInKebabCase(chainId: keyof typeof mainnetChainNamesInKebabCase): "bsc" | "linea" | "base" | "monad" | "sol" | "aptos" | "ethereum" | "arbitrum" | "zksync" | "opbnb"; | ||
| export declare function getChainNameInKebabCase(chainId: UnifiedChainId): string; | ||
| export declare function getMainnetChainNameInKebabCase(chainId: keyof typeof mainnetChainNamesInKebabCase): string; | ||
| export declare function getLlamaChainName(chainId: ChainId): string; | ||
@@ -7,0 +7,0 @@ export declare function getChainIdByChainName(chainName?: string): UnifiedChainId | undefined; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAkC,cAAc,EAAE,MAAM,WAAW,CAAA;AACnF,OAAO,EAKL,4BAA4B,EAC7B,MAAM,cAAc,CAAA;AAKrB,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,UAEnD;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,cAAc,qTAE9D;AAED,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,OAAO,4BAA4B,uGAEhG;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,UAEjD;AAED,wBAAgB,qBAAqB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAGpF;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc,WAEvD;AAED,wBAAgB,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,WAGrC;AAED,wBAAgB,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,WAGhD;AAED,wBAAgB,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,WAG/C;AAED,wBAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,WAMxD"} | ||
| {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAkC,cAAc,EAAE,MAAM,WAAW,CAAA;AACnF,OAAO,EAKL,4BAA4B,EAC7B,MAAM,cAAc,CAAA;AAKrB,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,UAEnD;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,cAAc,UAE9D;AAED,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,OAAO,4BAA4B,UAEhG;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,UAEjD;AAED,wBAAgB,qBAAqB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAGpF;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc,WAEvD;AAED,wBAAgB,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,WAGrC;AAED,wBAAgB,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,WAGhD;AAED,wBAAgB,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,WAG/C;AAED,wBAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,WAMxD"} |
+1
-1
| { | ||
| "name": "@pancakeswap/chains", | ||
| "license": "MIT", | ||
| "version": "0.8.0", | ||
| "version": "0.9.0", | ||
| "description": "The single source of truth for Pancakeswap chain-related information", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
| import { UnifiedChainId } from './chainId'; | ||
| export interface Chain { | ||
| id: UnifiedChainId; | ||
| name: string; | ||
| fullName: string; | ||
| isEVM: boolean; | ||
| testnet?: boolean; | ||
| } | ||
| export declare const Chains: Chain[]; | ||
| //# sourceMappingURL=chains.d.ts.map |
| {"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../src/chains.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,cAAc,EAAE,MAAM,WAAW,CAAA;AAGlE,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,cAAc,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,EA4FzB,CAAA"} |
Unstable ownership
Supply chain riskA new collaborator has begun publishing package versions. Package stability and security risk may be elevated.
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
133683
51.42%74
270%2329
111.92%1
Infinity%5
400%2
Infinity%