@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.
- package/dist/index.cjs +950 -28
- package/dist/index.js +948 -26
- package/dist/lib.commonjs/constants.cjs +7 -1
- package/dist/lib.commonjs/decode-message.cjs +1 -1
- package/dist/lib.commonjs/index.cjs +1 -1
- package/dist/lib.commonjs/networks/deployed-contracts.json.cjs +25 -25
- package/dist/lib.commonjs/networks/index.cjs +1 -1
- package/dist/lib.commonjs/networks/supported-networks.cjs +1 -1
- package/dist/lib.commonjs/semaphore-interface.json.cjs +939 -0
- package/dist/lib.esm/constants.js +6 -2
- package/dist/lib.esm/decode-message.js +1 -1
- package/dist/lib.esm/index.js +1 -1
- package/dist/lib.esm/networks/deployed-contracts.json.js +25 -25
- package/dist/lib.esm/networks/index.js +1 -1
- package/dist/lib.esm/networks/supported-networks.js +1 -1
- package/dist/lib.esm/semaphore-interface.json.js +927 -0
- package/dist/types/constants.d.ts +57 -0
- package/package.json +1 -1
- package/src/constants.ts +5 -0
- package/src/networks/deployed-contracts.json +24 -24
- package/src/semaphore-abi.json +884 -0
- package/src/semaphore-interface.json +884 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.0.0-beta.
|
|
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.
|
|
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: "
|
|
18
|
-
startBlock:
|
|
17
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
18
|
+
startBlock: 6333999
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
name: "PoseidonT3",
|
|
22
|
-
address: "
|
|
23
|
-
startBlock:
|
|
22
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
23
|
+
startBlock: 6333999
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
name: "Semaphore",
|
|
27
|
-
address: "
|
|
28
|
-
startBlock:
|
|
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: "
|
|
38
|
-
startBlock:
|
|
37
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
38
|
+
startBlock: 64798522
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
name: "PoseidonT3",
|
|
42
|
-
address: "
|
|
43
|
-
startBlock:
|
|
42
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
43
|
+
startBlock: 64798522
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
name: "Semaphore",
|
|
47
|
-
address: "
|
|
48
|
-
startBlock:
|
|
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: "
|
|
58
|
-
startBlock:
|
|
57
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
58
|
+
startBlock: 14757931
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
name: "PoseidonT3",
|
|
62
|
-
address: "
|
|
63
|
-
startBlock:
|
|
62
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
63
|
+
startBlock: 14757931
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
name: "Semaphore",
|
|
67
|
-
address: "
|
|
68
|
-
startBlock:
|
|
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: "
|
|
78
|
-
startBlock:
|
|
77
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
78
|
+
startBlock: 9636193
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
name: "PoseidonT3",
|
|
82
|
-
address: "
|
|
83
|
-
startBlock:
|
|
82
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
83
|
+
startBlock: 9636193
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
name: "Semaphore",
|
|
87
|
-
address: "
|
|
88
|
-
startBlock:
|
|
87
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
88
|
+
startBlock: 9636193
|
|
89
89
|
}
|
|
90
90
|
]
|
|
91
91
|
}
|