@semaphore-protocol/utils 4.0.0-beta.9 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,18 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.0-beta.9
3
+ * @version 4.0.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
7
7
  * @see [Github]{@link https://github.com/semaphore-protocol/semaphore/tree/main/packages/utils}
8
8
  */
9
- // TODO: Support all tree depths after trusted-setup. MAX_DEPTH would be 32.
9
+ import _interface from './semaphore-interface.json.js';
10
+
11
+ // Minimum supported tree depth.
10
12
  const MIN_DEPTH = 1;
11
- const MAX_DEPTH = 12;
13
+ // Maximum supported tree depth.
14
+ const MAX_DEPTH = 32;
15
+ const SemaphoreABI = _interface.abi;
16
+ const SemaphoreBytecode = _interface.bytecode;
12
17
 
13
- export { MAX_DEPTH, MIN_DEPTH };
18
+ export { MAX_DEPTH, MIN_DEPTH, SemaphoreABI, SemaphoreBytecode };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.0-beta.9
3
+ * @version 4.0.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.0-beta.9
3
+ * @version 4.0.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.0-beta.9
3
+ * @version 4.0.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -12,18 +12,18 @@ var deployedContracts = [
12
12
  contracts: [
13
13
  {
14
14
  name: "SemaphoreVerifier",
15
- address: "0x58AD7a4389E0F5d814815E5D5A3Ab903dAE9284a",
16
- startBlock: 5539276
15
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
16
+ startBlock: 6333999
17
17
  },
18
18
  {
19
19
  name: "PoseidonT3",
20
- address: "0x4EFfF6a6a7BB31cdAd9Ee742b0faAA6Bb9BF096B",
21
- startBlock: 5539276
20
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
21
+ startBlock: 6333999
22
22
  },
23
23
  {
24
24
  name: "Semaphore",
25
- address: "0x0A09FB3f63c13F1C54F2fA41AFB1e7a98cffc774",
26
- startBlock: 5539276
25
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
26
+ startBlock: 6333999
27
27
  }
28
28
  ]
29
29
  },
@@ -32,18 +32,18 @@ var deployedContracts = [
32
32
  contracts: [
33
33
  {
34
34
  name: "SemaphoreVerifier",
35
- address: "0x5f4edC58142f4395D1D536e793137A0252dA5a49",
36
- startBlock: 25837653
35
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
36
+ startBlock: 64798522
37
37
  },
38
38
  {
39
39
  name: "PoseidonT3",
40
- address: "0x181B7f34538cE3BceC68597d4A212aB3f7881648",
41
- startBlock: 25837653
40
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
41
+ startBlock: 64798522
42
42
  },
43
43
  {
44
44
  name: "Semaphore",
45
- address: "0x220fBdB6F996827b1Cf12f0C181E8d5e6de3a36F",
46
- startBlock: 25837653
45
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
46
+ startBlock: 64798522
47
47
  }
48
48
  ]
49
49
  },
@@ -52,38 +52,38 @@ var deployedContracts = [
52
52
  contracts: [
53
53
  {
54
54
  name: "SemaphoreVerifier",
55
- address: "0x3d3df6CFc6BFf68d9693e097F32bF4a9903E77a5",
56
- startBlock: 9663266
55
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
56
+ startBlock: 14757931
57
57
  },
58
58
  {
59
59
  name: "PoseidonT3",
60
- address: "0x5f4edC58142f4395D1D536e793137A0252dA5a49",
61
- startBlock: 9663266
60
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
61
+ startBlock: 14757931
62
62
  },
63
63
  {
64
64
  name: "Semaphore",
65
- address: "0x181B7f34538cE3BceC68597d4A212aB3f7881648",
66
- startBlock: 9663266
65
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
66
+ startBlock: 14757931
67
67
  }
68
68
  ]
69
69
  },
70
70
  {
71
- network: "matic-mumbai",
71
+ network: "matic-amoy",
72
72
  contracts: [
73
73
  {
74
74
  name: "SemaphoreVerifier",
75
- address: "0xE5269ae1E996C6FEEf6E832c7032401E73087568",
76
- startBlock: 47356015
75
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
76
+ startBlock: 9636193
77
77
  },
78
78
  {
79
79
  name: "PoseidonT3",
80
- address: "0xC0ae1a8D3505B2bE9DCe0e826abd722Afd13F1c9",
81
- startBlock: 47356015
80
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
81
+ startBlock: 9636193
82
82
  },
83
83
  {
84
84
  name: "Semaphore",
85
- address: "0x346a936b19071b2f619200848B8ADbb938D72250",
86
- startBlock: 47356015
85
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
86
+ startBlock: 9636193
87
87
  }
88
88
  ]
89
89
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.0-beta.9
3
+ * @version 4.0.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.0-beta.9
3
+ * @version 4.0.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -25,11 +25,11 @@ var supportedNetworks = {
25
25
  chainId: 11155420,
26
26
  explorer: "https://sepolia-optimism.etherscan.io"
27
27
  },
28
- "matic-mumbai": {
29
- name: "Matic Mumbai",
30
- url: "https://rpc-mumbai.polygon.technology",
31
- chainId: 80001,
32
- explorer: "https://mumbai.polygonscan.com"
28
+ "matic-amoy": {
29
+ name: "Matic Amoy",
30
+ url: "https://rpc-amoy.polygon.technology",
31
+ chainId: 80002,
32
+ explorer: "https://amoy.polygonscan.com"
33
33
  }
34
34
  };
35
35