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

Commit

Permalink
Merge pull request #1 from ourzora/t/zora-support
Browse files Browse the repository at this point in the history
[feat] add Zora Network and Zora Sepolia Support
  • Loading branch information
tbtstl authored Feb 22, 2024
2 parents 27d7888 + fb6da93 commit 189cd4f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
23 changes: 22 additions & 1 deletion src/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,25 @@ const BASE_GOERLI_ADDRESSES: ChainAddresses = {
swapRouter02Address: '0x8357227D4eDc78991Db6FDB9bD6ADE250536dE1d'
}

const ZORA_ADDRESSES: ChainAddresses = {
v3CoreFactoryAddress: '0x7145F8aeef1f6510E92164038E1B6F8cB2c42Cbb',
multicallAddress: '0xA51c76bEE6746cB487a7e9312E43e2b8f4A37C15',
quoterAddress: '0x11867e1b3348F3ce4FcC170BC5af3d23E07E64Df',
v3MigratorAddress: '0x048352d8dCF13686982C799da63fA6426a9D0b60',
nonfungiblePositionManagerAddress: '0xbC91e8DfA3fF18De43853372A3d7dfe585137D78',
tickLensAddress: '0x209AAda09D74Ad3B8D0E92910Eaf85D2357e3044',
swapRouter02Address: '0x7De04c96BE5159c3b5CeffC82aa176dc81281557'
}

const ZORA_SEPOLIA_ADDRESSES: ChainAddresses = {
v3CoreFactoryAddress: '0x4324A677D74764f46f33ED447964252441aA8Db6',
multicallAddress: '0xA1E7e3A69671C4494EC59Dbd442de930a93F911A',
quoterAddress: '0xC195976fEF0985886E37036E2DF62bF371E12Df0',
v3MigratorAddress: '0x65ef259b31bf1d977c37e9434658694267674897',
nonfungiblePositionManagerAddress: '0xB8458EaAe43292e3c1F7994EFd016bd653d23c20',
tickLensAddress: '0x23C0F71877a1Fc4e20A78018f9831365c85f3064',
}

export const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses> = {
[ChainId.MAINNET]: MAINNET_ADDRESSES,
[ChainId.OPTIMISM]: OPTIMISM_ADDRESSES,
Expand All @@ -209,7 +228,9 @@ 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.ZORA]: ZORA_ADDRESSES,
[ChainId.ZORA_SEPOLIA]: ZORA_SEPOLIA_ADDRESSES,
}

/* V3 Contract Addresses */
Expand Down
8 changes: 6 additions & 2 deletions src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export enum ChainId {
BNB = 56,
AVALANCHE = 43114,
BASE_GOERLI = 84531,
BASE = 8453
BASE = 8453,
ZORA = 7777777,
ZORA_SEPOLIA = 999999999,
}

export const SUPPORTED_CHAINS = [
Expand All @@ -37,7 +39,9 @@ export const SUPPORTED_CHAINS = [
ChainId.BNB,
ChainId.AVALANCHE,
ChainId.BASE,
ChainId.BASE_GOERLI
ChainId.BASE_GOERLI,
ChainId.ZORA,
ChainId.ZORA_SEPOLIA,
] as const
export type SupportedChainsType = typeof SUPPORTED_CHAINS[number]

Expand Down

0 comments on commit 189cd4f

Please sign in to comment.