Skip to content

Commit

Permalink
Chore/mainnet deployments (#869)
Browse files Browse the repository at this point in the history
* chore(contracts): deploy semaphore contracts on base

re #865

* chore(contracts): deploy semaphore contracts on linea

re #865

* refactor(data): add types for new networks

re #865
  • Loading branch information
cedoor authored Oct 3, 2024
1 parent 49a1663 commit 28684fd
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/subgraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ Supported networks:
- `matic`
- `polygon-amoy`
- `base-sepolia`
- `base`
- `linea-sepolia`
- `linea`

## 🛠 Install

Expand Down
10 changes: 9 additions & 1 deletion packages/contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ const hardhatConfig: HardhatUserConfig = {
chainId: 59141,
urls: {
apiURL: "https://api-sepolia.lineascan.build/api",
browserURL: "https://sepolia.lineascan.build/address"
browserURL: "https://sepolia.lineascan.build"
}
},
{
network: "linea",
chainId: 59144,
urls: {
apiURL: "https://api.lineascan.build/api",
browserURL: "https://lineascan.build"
}
}
]
Expand Down
4 changes: 4 additions & 0 deletions packages/data/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ export type EthersNetwork =
| "arbitrum-sepolia"
| "optimism"
| "optimism-sepolia"
| "base"
| "base-sepolia"
| "linea"
| "linea-sepolia"

export type GroupOptions = {
members?: boolean
Expand Down
40 changes: 40 additions & 0 deletions packages/utils/src/networks/deployed-contracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,45 @@
"startBlock": 3928632
}
]
},
{
"network": "base",
"contracts": [
{
"name": "SemaphoreVerifier",
"address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
"startBlock": 20553357
},
{
"name": "PoseidonT3",
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
"startBlock": 20553357
},
{
"name": "Semaphore",
"address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
"startBlock": 20553357
}
]
},
{
"network": "linea",
"contracts": [
{
"name": "SemaphoreVerifier",
"address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
"startBlock": 10235849
},
{
"name": "PoseidonT3",
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
"startBlock": 10235849
},
{
"name": "Semaphore",
"address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
"startBlock": 10235849
}
]
}
]
12 changes: 12 additions & 0 deletions packages/utils/src/networks/supported-networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,22 @@ export default {
chainId: 84532,
explorer: "https://sepolia.basescan.org"
},
base: {
name: "Base",
url: "https://mainnet.base.org",
chainId: 8453,
explorer: "https://basescan.org"
},
"linea-sepolia": {
name: "Linea Sepolia",
url: "https://rpc.sepolia.linea.build",
chainId: 59141,
explorer: "https://sepolia.lineascan.build"
},
linea: {
name: "Linea",
url: "https://rpc.linea.build",
chainId: 59144,
explorer: "https://lineascan.build"
}
}

0 comments on commit 28684fd

Please sign in to comment.