Skip to content

Commit 36255fd

Browse files
authored
chore: add Uniswap v3 router & factory to addresses (#470)
1 parent 26f0708 commit 36255fd

File tree

5 files changed

+35
-15
lines changed

5 files changed

+35
-15
lines changed

data/addresses.mainnet.json

+14
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,20 @@
139139
"address": "0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe",
140140
"type": "uniswapV2Router02"
141141
},
142+
{
143+
"address": "0x67AA6B2b715937Edc1Eb4D3b7B5d5dCD1fd93E8C",
144+
"category": "messaging",
145+
"chain_id": 7000,
146+
"chain_name": "zeta_mainnet",
147+
"type": "uniswapV3Factory"
148+
},
149+
{
150+
"address": "0x9b30CfbACD3504252F82263F72D6acf62bf733C2",
151+
"category": "omnichain",
152+
"chain_id": 7000,
153+
"chain_name": "zeta_mainnet",
154+
"type": "uniswapV3Router"
155+
},
142156
{
143157
"category": "omnichain",
144158
"chain_id": 7000,

docs/book.toml

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ title = ""
66
no-section-label = true
77
additional-js = ["solidity.min.js"]
88
additional-css = ["book.css"]
9-
mathjax-support = true
109
git-repository-url = "https://github.com/zeta-chain/protocol-contracts"
1110

1211
[output.html.fold]

lib/types.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export type ParamSymbol = "USDC.ARB" | "USDC.BSC" | "USDT.ARB" | "USDC.ETH" | "BTC.BTC" | "ETH.BASE" | "PEPE.ETH" | "USDT.AVAX" | "CBBTC.ETH" | "BNB.BSC" | "SOL.SOL" | "CBBTC.SOL" | "SHIB.ETH" | "USDT.ETH" | "USDC.SOL" | "USDT.BSC" | "USDC.BASE" | "USDC.AVAX" | "ETH.ARB" | "POL.POLYGON" | "DAI.ETH" | "WBTC.ETH" | "ULTI.BSC" | "ETH.ETH" | "USDT.POL" | "NPC.ETH" | "ULTI.ETH" | "CBBTC.BASE" | "AVAX.AVAX" | "USDT.SOL" | "USDC.POL" | "sETH.SEPOLIA" | "ETH.ARBSEP" | "ETH.BASESEPOLIA" | "SUI.SUI" | "USDC.ARBSEP" | "TON.TON" | "MATIC.AMOY" | "USDC" | "USDC.FUJI" | "SOL.SOLANA" | "USDC.SEPOLIA" | "tBNB" | "sBTC" | "USDC.AMOY" | "USDC.SUI" | "AVAX.FUJI" | "tBTC";
2-
export type ParamChainName = "eth_mainnet" | "bsc_mainnet" | "polygon_mainnet" | "solana_mainnet" | "zeta_mainnet" | "btc_mainnet" | "base_mainnet" | "arbitrum_mainnet" | "avalanche_mainnet" | "bsc_testnet" | "sui_testnet" | "solana_devnet" | "zeta_testnet" | "btc_testnet" | "avalanche_testnet" | "amoy_testnet" | "base_sepolia" | "arbitrum_sepolia" | "ton_testnet" | "sepolia_testnet";
3-
export type ParamType = "tss" | "connector" | "erc20Custody" | "gateway" | "zetaToken" | "fungibleModule" | "systemContract" | "uniswapV2Factory" | "uniswapV2Router02" | "zrc20";
4-
1+
export type ParamSymbol = "USDC.ARB" | "USDC.BSC" | "USDT.ARB" | "USDC.ETH" | "BTC.BTC" | "ETH.BASE" | "PEPE.ETH" | "USDT.AVAX" | "CBBTC.ETH" | "BNB.BSC" | "SOL.SOL" | "CBBTC.SOL" | "SHIB.ETH" | "USDT.ETH" | "USDC.SOL" | "USDT.BSC" | "USDC.BASE" | "USDC.AVAX" | "ETH.ARB" | "POL.POLYGON" | "DAI.ETH" | "WBTC.ETH" | "ULTI.BSC" | "ETH.ETH" | "USDT.POL" | "NPC.ETH" | "ULTI.ETH" | "CBBTC.BASE" | "AVAX.AVAX" | "USDT.SOL" | "USDC.POL" | "sETH.SEPOLIA" | "ETH.ARBSEP" | "ETH.BASESEPOLIA" | "USDC.ARBSEP" | "TON.TON" | "MATIC.AMOY" | "USDC" | "USDC.FUJI" | "SOL.SOLANA" | "USDC.SEPOLIA" | "tBNB" | "sBTC" | "USDC.AMOY" | "AVAX.FUJI" | "tBTC";
2+
export type ParamChainName = "eth_mainnet" | "bsc_mainnet" | "polygon_mainnet" | "solana_mainnet" | "zeta_mainnet" | "btc_mainnet" | "base_mainnet" | "arbitrum_mainnet" | "avalanche_mainnet" | "bsc_testnet" | "solana_devnet" | "zeta_testnet" | "btc_testnet" | "avalanche_testnet" | "amoy_testnet" | "base_sepolia" | "arbitrum_sepolia" | "ton_testnet" | "sepolia_testnet";
3+
export type ParamType = "tss" | "connector" | "erc20Custody" | "gateway" | "zetaToken" | "fungibleModule" | "systemContract" | "uniswapV2Factory" | "uniswapV2Router02" | "uniswapV3Factory" | "uniswapV3Router" | "zrc20";

tasks/addresses.mainnet.json

+7
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,12 @@
55
"chain_id": 7000,
66
"chain_name": "zeta_mainnet",
77
"type": "gateway"
8+
},
9+
{
10+
"address": "0x9b30CfbACD3504252F82263F72D6acf62bf733C2",
11+
"category": "omnichain",
12+
"chain_id": 7000,
13+
"chain_name": "zeta_mainnet",
14+
"type": "uniswapV3Router"
815
}
916
]

tasks/addresses.ts

+11-10
Original file line numberDiff line numberDiff line change
@@ -260,16 +260,17 @@ const fetchFactoryV3 = async (addresses: any, network: Network) => {
260260
const wethAddress = await routerContract.WETH9();
261261
const factoryAddress = await routerContract.factory();
262262

263-
const wethObj = {
264-
address: wethAddress,
265-
category: "messaging",
266-
chain_id: router.chain_id,
267-
chain_name: router.chain_name,
268-
type: "weth9",
269-
};
270-
271-
if (!addresses.some((e: any) => isEqual(e, wethObj))) {
272-
addresses.push(wethObj);
263+
if (router.chain_id !== 7000 && router.chain_id !== 7001) {
264+
const wethObj = {
265+
address: wethAddress,
266+
category: "messaging",
267+
chain_id: router.chain_id,
268+
chain_name: router.chain_name,
269+
type: "weth9",
270+
};
271+
if (!addresses.some((e: any) => isEqual(e, wethObj))) {
272+
addresses.push(wethObj);
273+
}
273274
}
274275

275276
addresses.push({

0 commit comments

Comments
 (0)