@semaphore-protocol/utils 4.0.0-beta.8 → 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,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.0-beta.8
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
@@ -8,9 +8,16 @@
8
8
  */
9
9
  'use strict';
10
10
 
11
- // TODO: Support all tree depths after trusted-setup. MAX_DEPTH would be 32.
11
+ var semaphoreInterface = require('./semaphore-interface.json.cjs');
12
+
13
+ // Minimum supported tree depth.
12
14
  const MIN_DEPTH = 1;
13
- const MAX_DEPTH = 12;
15
+ // Maximum supported tree depth.
16
+ const MAX_DEPTH = 32;
17
+ const SemaphoreABI = semaphoreInterface.default.abi;
18
+ const SemaphoreBytecode = semaphoreInterface.default.bytecode;
14
19
 
15
20
  exports.MAX_DEPTH = MAX_DEPTH;
16
21
  exports.MIN_DEPTH = MIN_DEPTH;
22
+ exports.SemaphoreABI = SemaphoreABI;
23
+ exports.SemaphoreBytecode = SemaphoreBytecode;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.0-beta.8
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.8
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.8
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
@@ -14,18 +14,18 @@ var deployedContracts = [
14
14
  contracts: [
15
15
  {
16
16
  name: "SemaphoreVerifier",
17
- address: "0x58AD7a4389E0F5d814815E5D5A3Ab903dAE9284a",
18
- startBlock: 5539276
17
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
18
+ startBlock: 6333999
19
19
  },
20
20
  {
21
21
  name: "PoseidonT3",
22
- address: "0x4EFfF6a6a7BB31cdAd9Ee742b0faAA6Bb9BF096B",
23
- startBlock: 5539276
22
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
23
+ startBlock: 6333999
24
24
  },
25
25
  {
26
26
  name: "Semaphore",
27
- address: "0x0A09FB3f63c13F1C54F2fA41AFB1e7a98cffc774",
28
- startBlock: 5539276
27
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
28
+ startBlock: 6333999
29
29
  }
30
30
  ]
31
31
  },
@@ -34,18 +34,18 @@ var deployedContracts = [
34
34
  contracts: [
35
35
  {
36
36
  name: "SemaphoreVerifier",
37
- address: "0x5f4edC58142f4395D1D536e793137A0252dA5a49",
38
- startBlock: 25837653
37
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
38
+ startBlock: 64798522
39
39
  },
40
40
  {
41
41
  name: "PoseidonT3",
42
- address: "0x181B7f34538cE3BceC68597d4A212aB3f7881648",
43
- startBlock: 25837653
42
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
43
+ startBlock: 64798522
44
44
  },
45
45
  {
46
46
  name: "Semaphore",
47
- address: "0x220fBdB6F996827b1Cf12f0C181E8d5e6de3a36F",
48
- startBlock: 25837653
47
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
48
+ startBlock: 64798522
49
49
  }
50
50
  ]
51
51
  },
@@ -54,38 +54,38 @@ var deployedContracts = [
54
54
  contracts: [
55
55
  {
56
56
  name: "SemaphoreVerifier",
57
- address: "0x3d3df6CFc6BFf68d9693e097F32bF4a9903E77a5",
58
- startBlock: 9663266
57
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
58
+ startBlock: 14757931
59
59
  },
60
60
  {
61
61
  name: "PoseidonT3",
62
- address: "0x5f4edC58142f4395D1D536e793137A0252dA5a49",
63
- startBlock: 9663266
62
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
63
+ startBlock: 14757931
64
64
  },
65
65
  {
66
66
  name: "Semaphore",
67
- address: "0x181B7f34538cE3BceC68597d4A212aB3f7881648",
68
- startBlock: 9663266
67
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
68
+ startBlock: 14757931
69
69
  }
70
70
  ]
71
71
  },
72
72
  {
73
- network: "matic-mumbai",
73
+ network: "matic-amoy",
74
74
  contracts: [
75
75
  {
76
76
  name: "SemaphoreVerifier",
77
- address: "0xE5269ae1E996C6FEEf6E832c7032401E73087568",
78
- startBlock: 47356015
77
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
78
+ startBlock: 9636193
79
79
  },
80
80
  {
81
81
  name: "PoseidonT3",
82
- address: "0xC0ae1a8D3505B2bE9DCe0e826abd722Afd13F1c9",
83
- startBlock: 47356015
82
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
83
+ startBlock: 9636193
84
84
  },
85
85
  {
86
86
  name: "Semaphore",
87
- address: "0x346a936b19071b2f619200848B8ADbb938D72250",
88
- startBlock: 47356015
87
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
88
+ startBlock: 9636193
89
89
  }
90
90
  ]
91
91
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.0-beta.8
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.8
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
@@ -27,11 +27,11 @@ var supportedNetworks = {
27
27
  chainId: 11155420,
28
28
  explorer: "https://sepolia-optimism.etherscan.io"
29
29
  },
30
- "matic-mumbai": {
31
- name: "Matic Mumbai",
32
- url: "https://rpc-mumbai.polygon.technology",
33
- chainId: 80001,
34
- explorer: "https://mumbai.polygonscan.com"
30
+ "matic-amoy": {
31
+ name: "Matic Amoy",
32
+ url: "https://rpc-amoy.polygon.technology",
33
+ chainId: 80002,
34
+ explorer: "https://amoy.polygonscan.com"
35
35
  }
36
36
  };
37
37