From ba8ebdd26b6e5b0ccb80320a016d7481da3e26ff Mon Sep 17 00:00:00 2001 From: james-a-morris Date: Fri, 2 Feb 2024 17:30:56 -0500 Subject: [PATCH 1/5] feat(testnet): add base sepolia --- src/constants.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/constants.ts b/src/constants.ts index 5d44b85..187f86b 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -14,6 +14,7 @@ export const CHAIN_IDs = { OPTIMISM_GOERLI: 420, ZK_SYNC_GOERLI: 280, BASE_GOERLI: 84531, + BASE_SEPOLIA: 111551111, }; // Information for the supported tokens on each chain. @@ -98,6 +99,7 @@ export const TOKEN_SYMBOLS_MAP = { [CHAIN_IDs.ZK_SYNC_GOERLI]: "0x20b28B1e4665FFf290650586ad76E977EAb90c5D", [CHAIN_IDs.BASE]: "0x4200000000000000000000000000000000000006", [CHAIN_IDs.BASE_GOERLI]: "0x4200000000000000000000000000000000000006", + [CHAIN_IDs.BASE_SEPOLIA]: "0x4200000000000000000000000000000000000006", }, }, MATIC: { @@ -154,6 +156,7 @@ export const TOKEN_SYMBOLS_MAP = { [CHAIN_IDs.POLYGON]: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174", [CHAIN_IDs.BOBA]: "0x66a2A913e447d6b4BF33EFbec43aAeF87890FBbc", [CHAIN_IDs.ARBITRUM]: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8", + [CHAIN_IDs.SEPOLIA]: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238", // [CHAIN_IDs.GOERLI]: "0xd35CCeEAD182dcee0F148EbaC9447DA2c4D449c4", [CHAIN_IDs.GOERLI]: "0x07865c6E87B9F70255377e024ace6630C1Eaa37F", // Uncomment for Optimism/Base testnet usage. [CHAIN_IDs.MUMBAI]: "0xe6b8a5CF854791412c1f6EFC7CAf629f5Df1c747", @@ -161,6 +164,7 @@ export const TOKEN_SYMBOLS_MAP = { [CHAIN_IDs.ZK_SYNC_GOERLI]: "0x0faF6df7054946141266420b43783387A78d82A9", [CHAIN_IDs.BASE]: "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA", [CHAIN_IDs.BASE_GOERLI]: "0x853154e2A5604E5C74a2546E2871Ad44932eB92C", + [CHAIN_IDs.BASE_SEPOLIA]: "0x036CbD53842c5426634e7929541eC2318f3dCF7e", }, }, USDT: { @@ -208,6 +212,7 @@ export const TOKEN_SYMBOLS_MAP = { [CHAIN_IDs.ZK_SYNC_GOERLI]: "0x20b28B1e4665FFf290650586ad76E977EAb90c5D", [CHAIN_IDs.BASE]: "0x4200000000000000000000000000000000000006", [CHAIN_IDs.BASE_GOERLI]: "0x4200000000000000000000000000000000000006", + [CHAIN_IDs.BASE_SEPOLIA]: "0x4200000000000000000000000000000000000006", }, }, WMATIC: { From e4d582d42efb05da31d77a7e62e77d6e7f1b3602 Mon Sep 17 00:00:00 2001 From: james-a-morris Date: Mon, 5 Feb 2024 13:15:32 -0500 Subject: [PATCH 2/5] improve: weth token on sepolia --- src/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants.ts b/src/constants.ts index 187f86b..ff6c849 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -207,7 +207,7 @@ export const TOKEN_SYMBOLS_MAP = { [CHAIN_IDs.ARBITRUM]: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", [CHAIN_IDs.ARBITRUM_GOERLI]: "0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3", [CHAIN_IDs.GOERLI]: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6", - [CHAIN_IDs.SEPOLIA]: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9", + [CHAIN_IDs.SEPOLIA]: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14", [CHAIN_IDs.ZK_SYNC]: "0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91", [CHAIN_IDs.ZK_SYNC_GOERLI]: "0x20b28B1e4665FFf290650586ad76E977EAb90c5D", [CHAIN_IDs.BASE]: "0x4200000000000000000000000000000000000006", From d09595eb729c8df24c8d95a3efb447ba6e19c793 Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Wed, 7 Feb 2024 02:29:35 +0100 Subject: [PATCH 3/5] feat: Define Sepolia chain IDs (#13) Also some slight re-ordering so that the prod networks are always first, and then that ordering is repeated for each subsequent testnet. Testnets are always grouped. --- src/constants.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index ff6c849..eb1fdda 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -2,19 +2,23 @@ export const CHAIN_IDs = { MAINNET: 1, OPTIMISM: 10, - ARBITRUM: 42161, - BOBA: 288, POLYGON: 137, + BOBA: 288, ZK_SYNC: 324, BASE: 8453, + ARBITRUM: 42161, GOERLI: 5, - SEPOLIA: 11155111, - MUMBAI: 80001, - ARBITRUM_GOERLI: 421613, OPTIMISM_GOERLI: 420, ZK_SYNC_GOERLI: 280, + MUMBAI: 80001, BASE_GOERLI: 84531, - BASE_SEPOLIA: 111551111, + ARBITRUM_GOERLI: 421613, + SEPOLIA: 11155111, + OP_SEPOLIA: 11155420, + ZK_SYNC_SEPOLIA: 300, + POLYGON_AMOY: 80002, + BASE_SEPOLIA: 84532, + ARBITRUM_SEPOLIA: 421614, }; // Information for the supported tokens on each chain. From 83f65e38710279288efc34c338e4161b89ed8466 Mon Sep 17 00:00:00 2001 From: james-a-morris Date: Tue, 6 Feb 2024 20:59:25 -0500 Subject: [PATCH 4/5] improve: add testnet definitions for WETH --- src/constants.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/constants.ts b/src/constants.ts index eb1fdda..70e1585 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -14,7 +14,7 @@ export const CHAIN_IDs = { BASE_GOERLI: 84531, ARBITRUM_GOERLI: 421613, SEPOLIA: 11155111, - OP_SEPOLIA: 11155420, + OPTIMISM_SEPOLIA: 11155420, ZK_SYNC_SEPOLIA: 300, POLYGON_AMOY: 80002, BASE_SEPOLIA: 84532, @@ -206,14 +206,18 @@ export const TOKEN_SYMBOLS_MAP = { [CHAIN_IDs.MAINNET]: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", [CHAIN_IDs.OPTIMISM]: "0x4200000000000000000000000000000000000006", [CHAIN_IDs.OPTIMISM_GOERLI]: "0x4200000000000000000000000000000000000006", + [CHAIN_IDs.OPTIMISM_SEPOLIA]: "0x4200000000000000000000000000000000000006", [CHAIN_IDs.POLYGON]: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619", + [CHAIN_IDs.POLYGON_AMOY]: "0x41Dc3C8eB8368bd9139Cec50434a0C294c8c1102", [CHAIN_IDs.BOBA]: "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000", [CHAIN_IDs.ARBITRUM]: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", [CHAIN_IDs.ARBITRUM_GOERLI]: "0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3", + [CHAIN_IDs.ARBITRUM_SEPOLIA]: "0x980B62Da83eFf3D4576C647993b0c1D7faf17c73", [CHAIN_IDs.GOERLI]: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6", [CHAIN_IDs.SEPOLIA]: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14", [CHAIN_IDs.ZK_SYNC]: "0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91", [CHAIN_IDs.ZK_SYNC_GOERLI]: "0x20b28B1e4665FFf290650586ad76E977EAb90c5D", + [CHAIN_IDs.ZK_SYNC_SEPOLIA]: "0x2D6Db36B3117802E996f13073A08A685D3FeF7eD", [CHAIN_IDs.BASE]: "0x4200000000000000000000000000000000000006", [CHAIN_IDs.BASE_GOERLI]: "0x4200000000000000000000000000000000000006", [CHAIN_IDs.BASE_SEPOLIA]: "0x4200000000000000000000000000000000000006", From 25ebbdb9c4544a063f7ee4b24cfa1455308702ae Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Wed, 7 Feb 2024 03:02:06 +0100 Subject: [PATCH 5/5] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 503e091..8b70519 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@across-protocol/constants-v2", - "version": "1.0.8", + "version": "1.0.9", "description": "Export commonly re-used values for Across repositories", "repository": "https://github.com/across-protocol/constants-v2.git", "author": "hello@umaproject.org",