UNPKG

@xlink-network/xlink-sdk

Version:
141 lines (139 loc) 2.99 kB
import { ailayer, berachainTestnet, bitlayer, blifeTestnet, bsquared, coreDaoTestnet, lorenzo, xLayer } from "./chunk-BFDTAYX3.mjs"; import { EVMChain } from "./chunk-RHGELTWO.mjs"; // src/evmUtils/evmClients.ts import { createClient, fallback, http } from "viem"; import { arbitrum, aurora, base, bob, bsc, bscTestnet, coreDao, linea, mainnet, manta, merlin, mode, sepolia } from "viem/chains"; var defaultEvmClients = { [EVMChain.Ethereum]: createClient({ chain: mainnet, transport: http(), batch: { multicall: true } }), [EVMChain.Sepolia]: createClient({ chain: sepolia, transport: http(), batch: { multicall: true } }), [EVMChain.BSC]: createClient({ chain: bsc, transport: http(), batch: { multicall: true } }), [EVMChain.BSCTestnet]: createClient({ chain: bscTestnet, transport: http(), batch: { multicall: true } }), [EVMChain.CoreDAO]: createClient({ chain: coreDao, transport: http(), batch: { multicall: true } }), [EVMChain.CoreDAOTestnet]: createClient({ chain: coreDaoTestnet, transport: http(), batch: { multicall: true } }), [EVMChain.Bsquared]: createClient({ chain: bsquared, transport: http(), batch: { multicall: true } }), [EVMChain.BOB]: createClient({ chain: bob, transport: http(), batch: { multicall: true } }), [EVMChain.Bitlayer]: createClient({ chain: bitlayer, transport: http(), batch: { multicall: true } }), [EVMChain.Lorenzo]: createClient({ chain: lorenzo, transport: http(), batch: { multicall: true } }), [EVMChain.Merlin]: createClient({ chain: merlin, transport: http(), batch: { multicall: true } }), [EVMChain.AILayer]: createClient({ chain: ailayer, transport: http(), batch: { multicall: true } }), [EVMChain.Mode]: createClient({ chain: mode, transport: http(), batch: { multicall: true } }), [EVMChain.XLayer]: createClient({ chain: xLayer, transport: fallback([http(), http("https://xlayerrpc.okx.com")]), batch: { multicall: true } }), [EVMChain.Arbitrum]: createClient({ chain: arbitrum, transport: http(), batch: { multicall: true } }), [EVMChain.Aurora]: createClient({ chain: aurora, transport: http(), batch: { multicall: true } }), [EVMChain.Manta]: createClient({ chain: manta, transport: http(), batch: { multicall: true } }), [EVMChain.Linea]: createClient({ chain: linea, transport: http(), batch: { multicall: true } }), [EVMChain.Base]: createClient({ chain: base, transport: http(), batch: { multicall: true } }), [EVMChain.BlifeTestnet]: createClient({ chain: blifeTestnet, transport: http() }), [EVMChain.BeraTestnet]: createClient({ chain: berachainTestnet, transport: http() }) }; export { defaultEvmClients }; //# sourceMappingURL=chunk-4IBMNMIU.mjs.map