Skip to content

Commit

Permalink
Chore/new testnets (#864)
Browse files Browse the repository at this point in the history
* chore(contracts): deploy contracts on base sepolia

re #863

* chore(contracts): deploy contracts on linea sepolia

re #863
  • Loading branch information
cedoor authored Oct 1, 2024
1 parent 4c8d297 commit a3d9779
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 6 deletions.
2 changes: 2 additions & 0 deletions apps/subgraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Supported networks:
- `arbitrum-sepolia`
- `matic`
- `polygon-amoy`
- `base-sepolia`
- `linea-sepolia`

## 🛠 Install

Expand Down
2 changes: 1 addition & 1 deletion apps/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
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 @@ -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"
}
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion packages/data/src/getURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
}
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 @@ -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
}
]
}
]
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 @@ -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"
}
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit a3d9779

Please sign in to comment.