Skip to content

Commit d05d783

Browse files
authored
chore:deploy contracts (#980)
* chore: update semaphore contract address re #978 * feat: add ethereum as a supported network re #977 * feat: add ethereum subgraph and deploy subgraphs re #978, #977
1 parent 993e46a commit d05d783

File tree

7 files changed

+88
-57
lines changed

7 files changed

+88
-57
lines changed

apps/subgraph/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ You can access any subgraph supported by Semaphore with the following URL: `http
4747
Supported networks:
4848

4949
- `sepolia`
50+
- `ethereum`
5051
- `optimism`
5152
- `optimism-sepolia`
5253
- `arbitrum`

apps/subgraph/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"codegen:sepolia": "yarn codegen sepolia",
1010
"build": "graph build",
1111
"build:sepolia": "yarn codegen:sepolia && graph build",
12-
"auth": "graph auth --studio",
13-
"deploy": "graph deploy --studio ${0}",
12+
"auth": "graph auth",
13+
"deploy": "graph deploy ${0}",
1414
"start-ipfs": "node scripts/start-ipfs.js",
1515
"create-local": "graph create --node http://localhost:8020/ semaphore",
1616
"remove-local": "graph remove --node http://localhost:8020/ semaphore",

apps/subgraph/scripts/generate-subgraph.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ function mapNetwork(n) {
1515
return "arbitrum-one"
1616
}
1717

18+
if (n === "ethereum") {
19+
return "mainnet"
20+
}
21+
1822
return network
1923
}
2024

packages/data/src/getURL.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ export default function getURL(supportedNetwork: SupportedNetwork): string {
1212
throw new TypeError(`Network '${supportedNetwork}' is not supported`)
1313
}
1414

15-
return `https://api.studio.thegraph.com/query/14377/semaphore-${supportedNetwork}/v4.2.0`
15+
return `https://api.studio.thegraph.com/query/14377/semaphore-${supportedNetwork}/v4.3.0`
1616
}

packages/utils/src/networks/deployed-contracts.json

Lines changed: 68 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,37 @@
55
{
66
"name": "SemaphoreVerifier",
77
"address": "0x6C42599435B82121794D835263C846384869502d",
8-
"startBlock": 6983614
8+
"startBlock": 8263690
99
},
1010
{
1111
"name": "PoseidonT3",
1212
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
13-
"startBlock": 6983614
13+
"startBlock": 8263690
1414
},
1515
{
1616
"name": "Semaphore",
17-
"address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E",
18-
"startBlock": 6983614
17+
"address": "0x697c80d1F2654e88d52B16154929EB976568DB04",
18+
"startBlock": 8263690
19+
}
20+
]
21+
},
22+
{
23+
"network": "ethereum",
24+
"contracts": [
25+
{
26+
"name": "SemaphoreVerifier",
27+
"address": "0x6C42599435B82121794D835263C846384869502d",
28+
"startBlock": 22424592
29+
},
30+
{
31+
"name": "PoseidonT3",
32+
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
33+
"startBlock": 22424592
34+
},
35+
{
36+
"name": "Semaphore",
37+
"address": "0x697c80d1F2654e88d52B16154929EB976568DB04",
38+
"startBlock": 22424592
1939
}
2040
]
2141
},
@@ -25,17 +45,17 @@
2545
{
2646
"name": "SemaphoreVerifier",
2747
"address": "0x6C42599435B82121794D835263C846384869502d",
28-
"startBlock": 93258221
48+
"startBlock": 149903019
2949
},
3050
{
3151
"name": "PoseidonT3",
3252
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
33-
"startBlock": 93258221
53+
"startBlock": 149903019
3454
},
3555
{
3656
"name": "Semaphore",
37-
"address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E",
38-
"startBlock": 93258221
57+
"address": "0x697c80d1F2654e88d52B16154929EB976568DB04",
58+
"startBlock": 149903019
3959
}
4060
]
4161
},
@@ -45,17 +65,17 @@
4565
{
4666
"name": "SemaphoreVerifier",
4767
"address": "0x6C42599435B82121794D835263C846384869502d",
48-
"startBlock": 19289434
68+
"startBlock": 27341051
4969
},
5070
{
5171
"name": "PoseidonT3",
5272
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
53-
"startBlock": 19289434
73+
"startBlock": 27341051
5474
},
5575
{
5676
"name": "Semaphore",
57-
"address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E",
58-
"startBlock": 19289434
77+
"address": "0x697c80d1F2654e88d52B16154929EB976568DB04",
78+
"startBlock": 27341051
5979
}
6080
]
6181
},
@@ -65,17 +85,17 @@
6585
{
6686
"name": "SemaphoreVerifier",
6787
"address": "0x6C42599435B82121794D835263C846384869502d",
68-
"startBlock": 13850778
88+
"startBlock": 21308099
6989
},
7090
{
7191
"name": "PoseidonT3",
7292
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
73-
"startBlock": 13850778
93+
"startBlock": 21308099
7494
},
7595
{
7696
"name": "Semaphore",
77-
"address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E",
78-
"startBlock": 13850778
97+
"address": "0x697c80d1F2654e88d52B16154929EB976568DB04",
98+
"startBlock": 21308099
7999
}
80100
]
81101
},
@@ -85,17 +105,17 @@
85105
{
86106
"name": "SemaphoreVerifier",
87107
"address": "0x6C42599435B82121794D835263C846384869502d",
88-
"startBlock": 269586534
108+
"startBlock": 333645515
89109
},
90110
{
91111
"name": "PoseidonT3",
92112
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
93-
"startBlock": 269586534
113+
"startBlock": 333645515
94114
},
95115
{
96116
"name": "Semaphore",
97-
"address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E",
98-
"startBlock": 269586534
117+
"address": "0x697c80d1F2654e88d52B16154929EB976568DB04",
118+
"startBlock": 333645515
99119
}
100120
]
101121
},
@@ -105,17 +125,17 @@
105125
{
106126
"name": "SemaphoreVerifier",
107127
"address": "0x6C42599435B82121794D835263C846384869502d",
108-
"startBlock": 63715311
128+
"startBlock": 71158898
109129
},
110130
{
111131
"name": "PoseidonT3",
112132
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
113-
"startBlock": 63715311
133+
"startBlock": 71158898
114134
},
115135
{
116136
"name": "Semaphore",
117-
"address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E",
118-
"startBlock": 63715311
137+
"address": "0x697c80d1F2654e88d52B16154929EB976568DB04",
138+
"startBlock": 71158898
119139
}
120140
]
121141
},
@@ -125,17 +145,17 @@
125145
{
126146
"name": "SemaphoreVerifier",
127147
"address": "0x6C42599435B82121794D835263C846384869502d",
128-
"startBlock": 127391657
148+
"startBlock": 135443119
129149
},
130150
{
131151
"name": "PoseidonT3",
132152
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
133-
"startBlock": 127391657
153+
"startBlock": 135443119
134154
},
135155
{
136156
"name": "Semaphore",
137-
"address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E",
138-
"startBlock": 127391657
157+
"address": "0x697c80d1F2654e88d52B16154929EB976568DB04",
158+
"startBlock": 135443119
139159
}
140160
]
141161
},
@@ -145,17 +165,17 @@
145165
{
146166
"name": "SemaphoreVerifier",
147167
"address": "0x6C42599435B82121794D835263C846384869502d",
148-
"startBlock": 17307202
168+
"startBlock": 25358716
149169
},
150170
{
151171
"name": "PoseidonT3",
152172
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
153-
"startBlock": 17307202
173+
"startBlock": 25358716
154174
},
155175
{
156176
"name": "Semaphore",
157-
"address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E",
158-
"startBlock": 17307202
177+
"address": "0x697c80d1F2654e88d52B16154929EB976568DB04",
178+
"startBlock": 25358716
159179
}
160180
]
161181
},
@@ -165,17 +185,17 @@
165185
{
166186
"name": "SemaphoreVerifier",
167187
"address": "0x6C42599435B82121794D835263C846384869502d",
168-
"startBlock": 5225214
188+
"startBlock": 12757656
169189
},
170190
{
171191
"name": "PoseidonT3",
172192
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
173-
"startBlock": 5225214
193+
"startBlock": 12757656
174194
},
175195
{
176196
"name": "Semaphore",
177-
"address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E",
178-
"startBlock": 5225214
197+
"address": "0x697c80d1F2654e88d52B16154929EB976568DB04",
198+
"startBlock": 12757656
179199
}
180200
]
181201
},
@@ -185,17 +205,17 @@
185205
{
186206
"name": "SemaphoreVerifier",
187207
"address": "0x6C42599435B82121794D835263C846384869502d",
188-
"startBlock": 21796660
208+
"startBlock": 29848242
189209
},
190210
{
191211
"name": "PoseidonT3",
192212
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
193-
"startBlock": 21796660
213+
"startBlock": 29848242
194214
},
195215
{
196216
"name": "Semaphore",
197-
"address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E",
198-
"startBlock": 21796660
217+
"address": "0x697c80d1F2654e88d52B16154929EB976568DB04",
218+
"startBlock": 29848242
199219
}
200220
]
201221
},
@@ -205,17 +225,17 @@
205225
{
206226
"name": "SemaphoreVerifier",
207227
"address": "0x6C42599435B82121794D835263C846384869502d",
208-
"startBlock": 11459722
228+
"startBlock": 18707811
209229
},
210230
{
211231
"name": "PoseidonT3",
212232
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
213-
"startBlock": 11459722
233+
"startBlock": 18707811
214234
},
215235
{
216236
"name": "Semaphore",
217-
"address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E",
218-
"startBlock": 11459722
237+
"address": "0x697c80d1F2654e88d52B16154929EB976568DB04",
238+
"startBlock": 18707811
219239
}
220240
]
221241
},
@@ -225,17 +245,17 @@
225245
{
226246
"name": "SemaphoreVerifier",
227247
"address": "0x6C42599435B82121794D835263C846384869502d",
228-
"startBlock": 7397758
248+
"startBlock": 9604960
229249
},
230250
{
231251
"name": "PoseidonT3",
232252
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
233-
"startBlock": 7397758
253+
"startBlock": 9604960
234254
},
235255
{
236256
"name": "Semaphore",
237-
"address": "0x06d1530c829366A7fff0069e77c5af6A6FA7db2E",
238-
"startBlock": 7397758
257+
"address": "0x697c80d1F2654e88d52B16154929EB976568DB04",
258+
"startBlock": 9604960
239259
}
240260
]
241261
}

packages/utils/src/networks/supported-networks.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ export default {
55
chainId: 11155111,
66
explorer: "https://sepolia.etherscan.io"
77
},
8+
ethereum: {
9+
name: "Ethereum",
10+
url: "https://eth-mainnet.g.alchemy.com/v2/<your-api-key>",
11+
chainId: 1,
12+
explorer: "https://etherscan.io"
13+
},
814
"arbitrum-sepolia": {
915
name: "Arbitrum Sepolia",
1016
url: "https://sepolia-rollup.arbitrum.io/rpc",

0 commit comments

Comments
 (0)