From 3f46fd839d191d3c29d16e3939be74d19b831ffb Mon Sep 17 00:00:00 2001 From: cedoor Date: Tue, 26 Nov 2024 17:10:56 +0700 Subject: [PATCH 1/3] chore(contracts): add scroll sepolia to supported networks --- packages/contracts/hardhat.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/contracts/hardhat.config.ts b/packages/contracts/hardhat.config.ts index 2cf4896f9..e39ffd8ff 100644 --- a/packages/contracts/hardhat.config.ts +++ b/packages/contracts/hardhat.config.ts @@ -64,6 +64,14 @@ const hardhatConfig: HardhatUserConfig = { apiURL: "https://api.lineascan.build/api", browserURL: "https://lineascan.build" } + }, + { + network: "scroll-sepolia", + chainId: 11155111, + urls: { + apiURL: "https://api-sepolia.scrollscan.com/api", + browserURL: "https://sepolia.scrollscan.com" + } } ] }, From 83d08c69caf7663fd1e93430df2735529473963a Mon Sep 17 00:00:00 2001 From: cedoor Date: Wed, 27 Nov 2024 15:25:56 +0700 Subject: [PATCH 2/3] chore(contracts): deploy contracts on scroll sepolia re #899 --- .../src/networks/deployed-contracts.json | 20 +++++++++++++++++++ .../utils/src/networks/supported-networks.ts | 6 ++++++ 2 files changed, 26 insertions(+) diff --git a/packages/utils/src/networks/deployed-contracts.json b/packages/utils/src/networks/deployed-contracts.json index 05bdea30b..124ad7a82 100644 --- a/packages/utils/src/networks/deployed-contracts.json +++ b/packages/utils/src/networks/deployed-contracts.json @@ -218,5 +218,25 @@ "startBlock": 11459722 } ] + }, + { + "network": "scroll-sepolia", + "contracts": [ + { + "name": "SemaphoreVerifier", + "address": "0x6C42599435B82121794D835263C846384869502d", + "startBlock": 7155337 + }, + { + "name": "PoseidonT3", + "address": "0xB43122Ecb241DD50062641f089876679fd06599a", + "startBlock": 7155337 + }, + { + "name": "Semaphore", + "address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E", + "startBlock": 7155337 + } + ] } ] diff --git a/packages/utils/src/networks/supported-networks.ts b/packages/utils/src/networks/supported-networks.ts index 94853b8d1..1a235e47b 100644 --- a/packages/utils/src/networks/supported-networks.ts +++ b/packages/utils/src/networks/supported-networks.ts @@ -64,5 +64,11 @@ export default { url: "https://rpc.linea.build", chainId: 59144, explorer: "https://lineascan.build" + }, + "scroll-sepolia": { + name: "Scroll Sepolia", + url: "https://eth-sepolia-public.unifra.io", + chainId: 11155111, + explorer: "https://sepolia.scrollscan.com" } } From cdae69b934afa22c0fe63e8ca771a5727b93957c Mon Sep 17 00:00:00 2001 From: cedoor Date: Wed, 27 Nov 2024 16:56:11 +0700 Subject: [PATCH 3/3] chore(contracts): deploy semaphore on correct scroll sepolia network re #899 --- apps/subgraph/README.md | 1 + packages/contracts/hardhat.config.ts | 2 +- packages/data/src/ethers.ts | 2 +- packages/utils/src/networks/deployed-contracts.json | 6 +++--- packages/utils/src/networks/supported-networks.ts | 4 ++-- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/apps/subgraph/README.md b/apps/subgraph/README.md index 13622f903..426b2e08e 100644 --- a/apps/subgraph/README.md +++ b/apps/subgraph/README.md @@ -57,6 +57,7 @@ Supported networks: - `base` - `linea-sepolia` - `linea` +- `scroll-sepolia` ## 🛠 Install diff --git a/packages/contracts/hardhat.config.ts b/packages/contracts/hardhat.config.ts index e39ffd8ff..40262cf35 100644 --- a/packages/contracts/hardhat.config.ts +++ b/packages/contracts/hardhat.config.ts @@ -67,7 +67,7 @@ const hardhatConfig: HardhatUserConfig = { }, { network: "scroll-sepolia", - chainId: 11155111, + chainId: 534351, urls: { apiURL: "https://api-sepolia.scrollscan.com/api", browserURL: "https://sepolia.scrollscan.com" diff --git a/packages/data/src/ethers.ts b/packages/data/src/ethers.ts index b415b1176..431b81014 100644 --- a/packages/data/src/ethers.ts +++ b/packages/data/src/ethers.ts @@ -40,7 +40,7 @@ export default class SemaphoreEthers { * @param options Configuration options for the ethers provider and the Semaphore contract. */ constructor(networkOrEthereumURL: EthersNetwork | string = defaultNetwork, options: EthersOptions = {}) { - checkParameter(networkOrEthereumURL, "networkOrSubgraphURL", "string") + checkParameter(networkOrEthereumURL, "networkOrEthereumURL", "string") if (options.provider) { checkParameter(options.provider, "provider", "string") diff --git a/packages/utils/src/networks/deployed-contracts.json b/packages/utils/src/networks/deployed-contracts.json index 124ad7a82..e8105fa86 100644 --- a/packages/utils/src/networks/deployed-contracts.json +++ b/packages/utils/src/networks/deployed-contracts.json @@ -225,17 +225,17 @@ { "name": "SemaphoreVerifier", "address": "0x6C42599435B82121794D835263C846384869502d", - "startBlock": 7155337 + "startBlock": 7397758 }, { "name": "PoseidonT3", "address": "0xB43122Ecb241DD50062641f089876679fd06599a", - "startBlock": 7155337 + "startBlock": 7397758 }, { "name": "Semaphore", "address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E", - "startBlock": 7155337 + "startBlock": 7397758 } ] } diff --git a/packages/utils/src/networks/supported-networks.ts b/packages/utils/src/networks/supported-networks.ts index 1a235e47b..87cbfdfd0 100644 --- a/packages/utils/src/networks/supported-networks.ts +++ b/packages/utils/src/networks/supported-networks.ts @@ -67,8 +67,8 @@ export default { }, "scroll-sepolia": { name: "Scroll Sepolia", - url: "https://eth-sepolia-public.unifra.io", - chainId: 11155111, + url: "https://sepolia-rpc.scroll.io", + chainId: 534351, explorer: "https://sepolia.scrollscan.com" } }