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 2cf4896f9..40262cf35 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: 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 05bdea30b..e8105fa86 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": 7397758 + }, + { + "name": "PoseidonT3", + "address": "0xB43122Ecb241DD50062641f089876679fd06599a", + "startBlock": 7397758 + }, + { + "name": "Semaphore", + "address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E", + "startBlock": 7397758 + } + ] } ] diff --git a/packages/utils/src/networks/supported-networks.ts b/packages/utils/src/networks/supported-networks.ts index 94853b8d1..87cbfdfd0 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://sepolia-rpc.scroll.io", + chainId: 534351, + explorer: "https://sepolia.scrollscan.com" } }