Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
chore(networks): add Base Sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
JFrankfurt committed Nov 7, 2023
1 parent 06e102f commit 2a821a4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 13 additions & 1 deletion src/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,17 @@ const BASE_GOERLI_ADDRESSES: ChainAddresses = {
swapRouter02Address: '0x8357227D4eDc78991Db6FDB9bD6ADE250536dE1d'
}

// Base Sepolia v3 addresses
const BASE_SEPOLIA_ADDRESSES: ChainAddresses = {
v3CoreFactoryAddress: '',
multicallAddress: '',
quoterAddress: '',
v3MigratorAddress: '',
nonfungiblePositionManagerAddress: '',
tickLensAddress: '',
swapRouter02Address: ''
}

export const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses> = {
[ChainId.MAINNET]: MAINNET_ADDRESSES,
[ChainId.OPTIMISM]: OPTIMISM_ADDRESSES,
Expand All @@ -168,7 +179,8 @@ export const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses>
[ChainId.SEPOLIA]: SEPOLIA_ADDRESSES,
[ChainId.AVALANCHE]: AVALANCHE_ADDRESSES,
[ChainId.BASE]: BASE_ADDRESSES,
[ChainId.BASE_GOERLI]: BASE_GOERLI_ADDRESSES
[ChainId.BASE_GOERLI]: BASE_GOERLI_ADDRESSES,
[ChainId.BASE_SEPOLIA]: BASE_SEPOLIA_ADDRESSES
}

/* V3 Contract Addresses */
Expand Down
4 changes: 3 additions & 1 deletion src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export enum ChainId {
BNB = 56,
AVALANCHE = 43114,
BASE_GOERLI = 84531,
BASE_SEPOLIA = 84532,
BASE = 8453
}

Expand All @@ -33,7 +34,8 @@ export const SUPPORTED_CHAINS = [
ChainId.BNB,
ChainId.AVALANCHE,
ChainId.BASE,
ChainId.BASE_GOERLI
ChainId.BASE_GOERLI,
ChainId.BASE_SEPOLIA
] as const
export type SupportedChainsType = typeof SUPPORTED_CHAINS[number]

Expand Down

0 comments on commit 2a821a4

Please sign in to comment.