chore(contracts): add scroll sepolia to supported networks (#902)

* 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
This commit is contained in:
Cedoor
2024-11-27 17:24:08 +07:00
committed by GitHub
parent 42639662c3
commit 8adfc30da8
5 changed files with 36 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ Supported networks:
- `base`
- `linea-sepolia`
- `linea`
- `scroll-sepolia`
## 🛠 Install

View File

@@ -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"
}
}
]
},

View File

@@ -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")

View File

@@ -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
}
]
}
]

View File

@@ -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"
}
}