Skip to content

Commit

Permalink
chore(contracts): add scroll sepolia to supported networks (#902)
Browse files Browse the repository at this point in the history
* chore(contracts): add scroll sepolia to supported networks

* chore(contracts): deploy contracts on scroll sepolia

re #899

* chore(contracts): deploy semaphore on correct scroll sepolia network

re #899
  • Loading branch information
cedoor authored Nov 27, 2024
1 parent 4263966 commit 8adfc30
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/subgraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Supported networks:
- `base`
- `linea-sepolia`
- `linea`
- `scroll-sepolia`

## 🛠 Install

Expand Down
8 changes: 8 additions & 0 deletions packages/contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion packages/data/src/ethers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
20 changes: 20 additions & 0 deletions packages/utils/src/networks/deployed-contracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
]
6 changes: 6 additions & 0 deletions packages/utils/src/networks/supported-networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 8adfc30

Please sign in to comment.