@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.
- 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,2 +1,59 @@
|
|
|
1
1
|
export declare const MIN_DEPTH = 1;
|
|
2
2
|
export declare const MAX_DEPTH = 32;
|
|
3
|
+
export declare const SemaphoreABI: ({
|
|
4
|
+
inputs: {
|
|
5
|
+
internalType: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
}[];
|
|
9
|
+
stateMutability: string;
|
|
10
|
+
type: string;
|
|
11
|
+
name?: undefined;
|
|
12
|
+
anonymous?: undefined;
|
|
13
|
+
outputs?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
inputs: never[];
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
stateMutability?: undefined;
|
|
19
|
+
anonymous?: undefined;
|
|
20
|
+
outputs?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
anonymous: boolean;
|
|
23
|
+
inputs: {
|
|
24
|
+
indexed: boolean;
|
|
25
|
+
internalType: string;
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
}[];
|
|
29
|
+
name: string;
|
|
30
|
+
type: string;
|
|
31
|
+
stateMutability?: undefined;
|
|
32
|
+
outputs?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
inputs: ({
|
|
35
|
+
internalType: string;
|
|
36
|
+
name: string;
|
|
37
|
+
type: string;
|
|
38
|
+
components?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
components: {
|
|
41
|
+
internalType: string;
|
|
42
|
+
name: string;
|
|
43
|
+
type: string;
|
|
44
|
+
}[];
|
|
45
|
+
internalType: string;
|
|
46
|
+
name: string;
|
|
47
|
+
type: string;
|
|
48
|
+
})[];
|
|
49
|
+
name: string;
|
|
50
|
+
outputs: {
|
|
51
|
+
internalType: string;
|
|
52
|
+
name: string;
|
|
53
|
+
type: string;
|
|
54
|
+
}[];
|
|
55
|
+
stateMutability: string;
|
|
56
|
+
type: string;
|
|
57
|
+
anonymous?: undefined;
|
|
58
|
+
})[];
|
|
59
|
+
export declare const SemaphoreBytecode: string;
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import _interface from "./semaphore-interface.json"
|
|
2
|
+
|
|
1
3
|
// Minimum supported tree depth.
|
|
2
4
|
export const MIN_DEPTH = 1
|
|
3
5
|
|
|
4
6
|
// Maximum supported tree depth.
|
|
5
7
|
export const MAX_DEPTH = 32
|
|
8
|
+
|
|
9
|
+
export const SemaphoreABI = _interface.abi
|
|
10
|
+
export const SemaphoreBytecode = _interface.bytecode
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
"contracts": [
|
|
5
5
|
{
|
|
6
6
|
"name": "SemaphoreVerifier",
|
|
7
|
-
"address": "
|
|
8
|
-
"startBlock":
|
|
7
|
+
"address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
8
|
+
"startBlock": 6333999
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"name": "PoseidonT3",
|
|
12
|
-
"address": "
|
|
13
|
-
"startBlock":
|
|
12
|
+
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
13
|
+
"startBlock": 6333999
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "Semaphore",
|
|
17
|
-
"address": "
|
|
18
|
-
"startBlock":
|
|
17
|
+
"address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
18
|
+
"startBlock": 6333999
|
|
19
19
|
}
|
|
20
20
|
]
|
|
21
21
|
},
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"contracts": [
|
|
25
25
|
{
|
|
26
26
|
"name": "SemaphoreVerifier",
|
|
27
|
-
"address": "
|
|
28
|
-
"startBlock":
|
|
27
|
+
"address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
28
|
+
"startBlock": 64798522
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"name": "PoseidonT3",
|
|
32
|
-
"address": "
|
|
33
|
-
"startBlock":
|
|
32
|
+
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
33
|
+
"startBlock": 64798522
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "Semaphore",
|
|
37
|
-
"address": "
|
|
38
|
-
"startBlock":
|
|
37
|
+
"address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
38
|
+
"startBlock": 64798522
|
|
39
39
|
}
|
|
40
40
|
]
|
|
41
41
|
},
|
|
@@ -44,18 +44,18 @@
|
|
|
44
44
|
"contracts": [
|
|
45
45
|
{
|
|
46
46
|
"name": "SemaphoreVerifier",
|
|
47
|
-
"address": "
|
|
48
|
-
"startBlock":
|
|
47
|
+
"address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
48
|
+
"startBlock": 14757931
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"name": "PoseidonT3",
|
|
52
|
-
"address": "
|
|
53
|
-
"startBlock":
|
|
52
|
+
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
53
|
+
"startBlock": 14757931
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"name": "Semaphore",
|
|
57
|
-
"address": "
|
|
58
|
-
"startBlock":
|
|
57
|
+
"address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
58
|
+
"startBlock": 14757931
|
|
59
59
|
}
|
|
60
60
|
]
|
|
61
61
|
},
|
|
@@ -64,18 +64,18 @@
|
|
|
64
64
|
"contracts": [
|
|
65
65
|
{
|
|
66
66
|
"name": "SemaphoreVerifier",
|
|
67
|
-
"address": "
|
|
68
|
-
"startBlock":
|
|
67
|
+
"address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
68
|
+
"startBlock": 9636193
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"name": "PoseidonT3",
|
|
72
|
-
"address": "
|
|
73
|
-
"startBlock":
|
|
72
|
+
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
73
|
+
"startBlock": 9636193
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"name": "Semaphore",
|
|
77
|
-
"address": "
|
|
78
|
-
"startBlock":
|
|
77
|
+
"address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
78
|
+
"startBlock": 9636193
|
|
79
79
|
}
|
|
80
80
|
]
|
|
81
81
|
}
|