From 046d0f8380954b41a779edc9fb7f428ac1c05e48 Mon Sep 17 00:00:00 2001 From: eddie <66155195+just-toby@users.noreply.github.com> Date: Wed, 13 Sep 2023 12:43:02 -0700 Subject: [PATCH] feat: add v2 factory chains (#85) * feat: add v2 factory chains * Fix code style issues with Prettier --------- Co-authored-by: Lint Action --- src/addresses.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/addresses.ts b/src/addresses.ts index 0cf5702e..c3c1da1e 100644 --- a/src/addresses.ts +++ b/src/addresses.ts @@ -13,7 +13,7 @@ type ChainAddresses = { v1MixedRouteQuoterAddress?: string } -const DEFAULT_NETWORKS = [ChainId.MAINNET, ChainId.GOERLI] +const DEFAULT_NETWORKS = [ChainId.MAINNET, ChainId.GOERLI, ChainId.SEPOLIA] function constructSameAddressMap(address: string, additionalNetworks: ChainId[] = []): AddressMap { return DEFAULT_NETWORKS.concat(additionalNetworks).reduce((memo, chainId) => { @@ -33,7 +33,15 @@ export const UNI_ADDRESSES: AddressMap = constructSameAddressMap('0x1f9840a85d5a export const UNISWAP_NFT_AIRDROP_CLAIM_ADDRESS = '0x8B799381ac40b838BBA4131ffB26197C432AFe78' export const V2_FACTORY_ADDRESS = '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f' -export const V2_FACTORY_ADDRESSES: AddressMap = constructSameAddressMap(V2_FACTORY_ADDRESS) +export const V2_FACTORY_ADDRESSES: AddressMap = constructSameAddressMap(V2_FACTORY_ADDRESS, [ + ChainId.POLYGON, + ChainId.OPTIMISM, + ChainId.CELO, + ChainId.ARBITRUM_ONE, + ChainId.BNB, + ChainId.AVALANCHE, + ChainId.BASE +]) export const V2_ROUTER_ADDRESS = '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D' export const V2_ROUTER_ADDRESSES: AddressMap = constructSameAddressMap(V2_ROUTER_ADDRESS)