@semaphore-protocol/utils 4.0.0-beta.15 → 4.0.0-beta.17

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