Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
Loading