diff --git a/apps/subgraph/README.md b/apps/subgraph/README.md index 4c5e5b7e4..3c11b65de 100644 --- a/apps/subgraph/README.md +++ b/apps/subgraph/README.md @@ -53,6 +53,8 @@ Supported networks: - `arbitrum-sepolia` - `matic` - `polygon-amoy` +- `base-sepolia` +- `linea-sepolia` ## 🛠 Install diff --git a/apps/subgraph/package.json b/apps/subgraph/package.json index dd73ed0b4..c1ed73424 100644 --- a/apps/subgraph/package.json +++ b/apps/subgraph/package.json @@ -20,7 +20,7 @@ "dependencies": { "@graphprotocol/graph-cli": "0.78.0", "@graphprotocol/graph-ts": "0.35.1", - "@semaphore-protocol/utils": "4.1.0" + "@semaphore-protocol/utils": "workspace:packages/utils" }, "devDependencies": { "@types/mustache": "^4.2.2", diff --git a/packages/contracts/hardhat.config.ts b/packages/contracts/hardhat.config.ts index d1942437d..c167ef574 100644 --- a/packages/contracts/hardhat.config.ts +++ b/packages/contracts/hardhat.config.ts @@ -48,6 +48,14 @@ const hardhatConfig: HardhatUserConfig = { apiURL: "https://api-sepolia-optimistic.etherscan.io/api", browserURL: "https://sepolia-optimistic.etherscan.io" } + }, + { + network: "linea-sepolia", + chainId: 59141, + urls: { + apiURL: "https://api-sepolia.lineascan.build/api", + browserURL: "https://sepolia.lineascan.build/address" + } } ] }, diff --git a/packages/data/src/getURL.ts b/packages/data/src/getURL.ts index 3d42c8685..c26ef7ee6 100644 --- a/packages/data/src/getURL.ts +++ b/packages/data/src/getURL.ts @@ -12,5 +12,5 @@ export default function getURL(supportedNetwork: SupportedNetwork): string { throw new TypeError(`Network '${supportedNetwork}' is not supported`) } - return `https://api.studio.thegraph.com/query/14377/semaphore-${supportedNetwork}/v4.0.0-beta.17` + return `https://api.studio.thegraph.com/query/14377/semaphore-${supportedNetwork}/v4.0.0` } diff --git a/packages/utils/src/networks/deployed-contracts.json b/packages/utils/src/networks/deployed-contracts.json index ec9c53579..0668b8b51 100644 --- a/packages/utils/src/networks/deployed-contracts.json +++ b/packages/utils/src/networks/deployed-contracts.json @@ -138,5 +138,45 @@ "startBlock": 126057798 } ] + }, + { + "network": "base-sepolia", + "contracts": [ + { + "name": "SemaphoreVerifier", + "address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043", + "startBlock": 16008294 + }, + { + "name": "PoseidonT3", + "address": "0xB43122Ecb241DD50062641f089876679fd06599a", + "startBlock": 16008294 + }, + { + "name": "Semaphore", + "address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f", + "startBlock": 16008294 + } + ] + }, + { + "network": "linea-sepolia", + "contracts": [ + { + "name": "SemaphoreVerifier", + "address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043", + "startBlock": 3928632 + }, + { + "name": "PoseidonT3", + "address": "0xB43122Ecb241DD50062641f089876679fd06599a", + "startBlock": 3928632 + }, + { + "name": "Semaphore", + "address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f", + "startBlock": 3928632 + } + ] } ] diff --git a/packages/utils/src/networks/supported-networks.ts b/packages/utils/src/networks/supported-networks.ts index b2e5d67df..fecbc4bb9 100644 --- a/packages/utils/src/networks/supported-networks.ts +++ b/packages/utils/src/networks/supported-networks.ts @@ -40,5 +40,17 @@ export default { url: "https://polygon-rpc.com", chainId: 137, explorer: "https://polygonscan.com" + }, + "base-sepolia": { + name: "Base Sepolia", + url: "https://sepolia.base.org", + chainId: 84532, + explorer: "https://sepolia.basescan.org" + }, + "linea-sepolia": { + name: "Linea Sepolia", + url: "https://rpc.sepolia.linea.build", + chainId: 59141, + explorer: "https://sepolia.lineascan.build" } } diff --git a/yarn.lock b/yarn.lock index 62e2a1d14..713c17e3c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5389,8 +5389,8 @@ __metadata: linkType: hard "@nomicfoundation/hardhat-verify@npm:^2.0.8": - version: 2.0.8 - resolution: "@nomicfoundation/hardhat-verify@npm:2.0.8" + version: 2.0.11 + resolution: "@nomicfoundation/hardhat-verify@npm:2.0.11" dependencies: "@ethersproject/abi": "npm:^5.1.2" "@ethersproject/address": "npm:^5.0.2" @@ -5403,7 +5403,7 @@ __metadata: undici: "npm:^5.14.0" peerDependencies: hardhat: ^2.0.4 - checksum: 10/f49d6615a45d063e8d361ea2029c80c351d4377925de6c229095619384353d3fa9463751beceae0d6ceaf26f60a99797a19abd16ae22258fba37aee26ee5576e + checksum: 10/edad30efeb0ab7c26fd0c5fd3f1d161733d51276435f77d9c58edaa4307171be40e8c65a24a8fb11481e1032e4eb72ac99cd11c6eaa0bbfabb493455e387e2e9 languageName: node linkType: hard @@ -24717,7 +24717,7 @@ __metadata: dependencies: "@graphprotocol/graph-cli": "npm:0.78.0" "@graphprotocol/graph-ts": "npm:0.35.1" - "@semaphore-protocol/utils": "npm:4.1.0" + "@semaphore-protocol/utils": "workspace:packages/utils" "@types/mustache": "npm:^4.2.2" matchstick-as: "npm:0.5.0" mustache: "npm:^4.2.0"