@semaphore-protocol/utils 4.0.0-beta.16 → 4.0.0-beta.18

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.16
3
+ * @version 4.0.0-beta.18
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,10 +8,16 @@
8
8
  */
9
9
  'use strict';
10
10
 
11
+ var semaphoreInterface = require('./semaphore-interface.json.cjs');
12
+
11
13
  // Minimum supported tree depth.
12
14
  const MIN_DEPTH = 1;
13
15
  // Maximum supported tree depth.
14
16
  const MAX_DEPTH = 32;
17
+ const SemaphoreABI = semaphoreInterface.default.abi;
18
+ const SemaphoreBytecode = semaphoreInterface.default.bytecode;
15
19
 
16
20
  exports.MAX_DEPTH = MAX_DEPTH;
17
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.16
3
+ * @version 4.0.0-beta.18
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.16
3
+ * @version 4.0.0-beta.18
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.16
3
+ * @version 4.0.0-beta.18
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: "0x521fCd9d3049DEc8a893A422f57C155ddB30BB45",
18
- startBlock: 6198270
17
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
18
+ startBlock: 6333999
19
19
  },
20
20
  {
21
21
  name: "PoseidonT3",
22
- address: "0x4EFfF6a6a7BB31cdAd9Ee742b0faAA6Bb9BF096B",
23
- startBlock: 6198270
22
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
23
+ startBlock: 6333999
24
24
  },
25
25
  {
26
26
  name: "Semaphore",
27
- address: "0x42C0e6780B60E18E44B3AB031B216B6360009baB",
28
- startBlock: 6198270
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: "0xF864ABa335073e01234c9a88888BfFfa965650bD",
38
- startBlock: 58900259
37
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
38
+ startBlock: 64798522
39
39
  },
40
40
  {
41
41
  name: "PoseidonT3",
42
- address: "0x181B7f34538cE3BceC68597d4A212aB3f7881648",
43
- startBlock: 58900259
42
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
43
+ startBlock: 64798522
44
44
  },
45
45
  {
46
46
  name: "Semaphore",
47
- address: "0xE5269ae1E996C6FEEf6E832c7032401E73087568",
48
- startBlock: 58900259
47
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
48
+ startBlock: 64798522
49
49
  }
50
50
  ]
51
51
  },
@@ -54,18 +54,18 @@ var deployedContracts = [
54
54
  contracts: [
55
55
  {
56
56
  name: "SemaphoreVerifier",
57
- address: "0x220fBdB6F996827b1Cf12f0C181E8d5e6de3a36F",
58
- startBlock: 13847620
57
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
58
+ startBlock: 14757931
59
59
  },
60
60
  {
61
61
  name: "PoseidonT3",
62
- address: "0x5f4edC58142f4395D1D536e793137A0252dA5a49",
63
- startBlock: 13847620
62
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
63
+ startBlock: 14757931
64
64
  },
65
65
  {
66
66
  name: "Semaphore",
67
- address: "0xF864ABa335073e01234c9a88888BfFfa965650bD",
68
- startBlock: 13847620
67
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
68
+ startBlock: 14757931
69
69
  }
70
70
  ]
71
71
  },
@@ -74,18 +74,18 @@ var deployedContracts = [
74
74
  contracts: [
75
75
  {
76
76
  name: "SemaphoreVerifier",
77
- address: "0xEFD83f827FA5B0496359D817c6CD8a5AA5D2aCe5",
78
- startBlock: 8788886
77
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
78
+ startBlock: 9636193
79
79
  },
80
80
  {
81
81
  name: "PoseidonT3",
82
- address: "0x3d3df6CFc6BFf68d9693e097F32bF4a9903E77a5",
83
- startBlock: 8788886
82
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
83
+ startBlock: 9636193
84
84
  },
85
85
  {
86
86
  name: "Semaphore",
87
- address: "0x5f4edC58142f4395D1D536e793137A0252dA5a49",
88
- startBlock: 8788886
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.16
3
+ * @version 4.0.0-beta.18
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.16
3
+ * @version 4.0.0-beta.18
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT