File tree Expand file tree Collapse file tree 7 files changed +26
-2
lines changed Expand file tree Collapse file tree 7 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import Spinner from "./spinner.js"
14
14
const packagePath = `${ dirname ( fileURLToPath ( import . meta. url ) ) } /..`
15
15
const { description, version } = JSON . parse ( readFileSync ( `${ packagePath } /package.json` , "utf8" ) )
16
16
17
- const supportedNetworks = [ "goerli" , "arbitrum" ]
17
+ const supportedNetworks = [ "goerli" , "mumbai" , " arbitrum"]
18
18
19
19
program
20
20
. name ( "semaphore" )
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ If you want to deploy your contract in a specific network you can set up the `DE
112
112
``` bash
113
113
yarn deploy:semaphore --network goerli
114
114
yarn deploy:semaphore --network sepolia
115
+ yarn deploy:semaphore --network mumbai
115
116
yarn deploy:semaphore --network arbitrum
116
117
```
117
118
Original file line number Diff line number Diff line change
1
+ {
2
+ "Pairing" : " 0x3d3df6CFc6BFf68d9693e097F32bF4a9903E77a5" ,
3
+ "SemaphoreVerifier" : " 0x5f4edC58142f4395D1D536e793137A0252dA5a49" ,
4
+ "Poseidon" : " 0x181B7f34538cE3BceC68597d4A212aB3f7881648" ,
5
+ "IncrementalBinaryTree" : " 0x220fBdB6F996827b1Cf12f0C181E8d5e6de3a36F" ,
6
+ "Semaphore" : " 0xF864ABa335073e01234c9a88888BfFfa965650bD"
7
+ }
Original file line number Diff line number Diff line change @@ -35,8 +35,13 @@ function getNetworks(): NetworksUserConfig {
35
35
chainId : 11155111 ,
36
36
accounts
37
37
} ,
38
+ mumbai : {
39
+ url : `https://polygon-mumbai.infura.io/v3/${ infuraApiKey } ` ,
40
+ chainId : 80001 ,
41
+ accounts
42
+ } ,
38
43
arbitrum : {
39
- url : " https://arb1. arbitrum. io/rpc" ,
44
+ url : ` https://arbitrum-mainnet.infura. io/v3/ ${ infuraApiKey } ` ,
40
45
chainId : 42161 ,
41
46
accounts
42
47
}
Original file line number Diff line number Diff line change @@ -37,11 +37,19 @@ export default class SemaphoreEthers {
37
37
checkParameter ( options . apiKey , "apiKey" , "string" )
38
38
}
39
39
40
+ if ( networkOrEthereumURL === "matic" ) {
41
+ networkOrEthereumURL = "maticmum"
42
+ }
43
+
40
44
switch ( networkOrEthereumURL ) {
41
45
case "arbitrum" :
42
46
options . address = "0x72dca3c971136bf47BACF16A141f0fcfAC925aeC"
43
47
options . startBlock = 54934350
44
48
break
49
+ case "maticmum" :
50
+ options . address = "0xF864ABa335073e01234c9a88888BfFfa965650bD"
51
+ options . startBlock = 32902215
52
+ break
45
53
case "goerli" :
46
54
options . address = "0x89490c95eD199D980Cdb4FF8Bac9977EDb41A7E7"
47
55
options . startBlock = 8255063
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ export default function getURL(network: Network): string {
9
9
switch ( network ) {
10
10
case "goerli" :
11
11
return `https://api.studio.thegraph.com/query/14377/semaphore-goerli/v3.2.0`
12
+ case "mumbai" :
13
+ return `https://api.studio.thegraph.com/query/14377/semaphore-mumbai/v3.2.0`
12
14
case "arbitrum" :
13
15
return `https://api.studio.thegraph.com/query/14377/semaphore-arbitrum/v3.2.0`
14
16
default :
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ export type Network =
4
4
| "goerli"
5
5
| "arbitrum"
6
6
| "maticmum"
7
+ | "mumbai"
7
8
| "arbitrum-goerli"
8
9
| "optimism"
9
10
| "optimism-goerli"
You can’t perform that action at this time.
0 commit comments