@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,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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/utils",
3
- "version": "4.0.0-beta.16",
3
+ "version": "4.0.0-beta.18",
4
4
  "description": "A library to provide utility functions to the other Semaphore packages.",
5
5
  "type": "module",
6
6
  "license": "MIT",
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": "0x521fCd9d3049DEc8a893A422f57C155ddB30BB45",
8
- "startBlock": 6198270
7
+ "address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
8
+ "startBlock": 6333999
9
9
  },
10
10
  {
11
11
  "name": "PoseidonT3",
12
- "address": "0x4EFfF6a6a7BB31cdAd9Ee742b0faAA6Bb9BF096B",
13
- "startBlock": 6198270
12
+ "address": "0xB43122Ecb241DD50062641f089876679fd06599a",
13
+ "startBlock": 6333999
14
14
  },
15
15
  {
16
16
  "name": "Semaphore",
17
- "address": "0x42C0e6780B60E18E44B3AB031B216B6360009baB",
18
- "startBlock": 6198270
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": "0xF864ABa335073e01234c9a88888BfFfa965650bD",
28
- "startBlock": 58900259
27
+ "address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
28
+ "startBlock": 64798522
29
29
  },
30
30
  {
31
31
  "name": "PoseidonT3",
32
- "address": "0x181B7f34538cE3BceC68597d4A212aB3f7881648",
33
- "startBlock": 58900259
32
+ "address": "0xB43122Ecb241DD50062641f089876679fd06599a",
33
+ "startBlock": 64798522
34
34
  },
35
35
  {
36
36
  "name": "Semaphore",
37
- "address": "0xE5269ae1E996C6FEEf6E832c7032401E73087568",
38
- "startBlock": 58900259
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": "0x220fBdB6F996827b1Cf12f0C181E8d5e6de3a36F",
48
- "startBlock": 13847620
47
+ "address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
48
+ "startBlock": 14757931
49
49
  },
50
50
  {
51
51
  "name": "PoseidonT3",
52
- "address": "0x5f4edC58142f4395D1D536e793137A0252dA5a49",
53
- "startBlock": 13847620
52
+ "address": "0xB43122Ecb241DD50062641f089876679fd06599a",
53
+ "startBlock": 14757931
54
54
  },
55
55
  {
56
56
  "name": "Semaphore",
57
- "address": "0xF864ABa335073e01234c9a88888BfFfa965650bD",
58
- "startBlock": 13847620
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": "0xEFD83f827FA5B0496359D817c6CD8a5AA5D2aCe5",
68
- "startBlock": 8788886
67
+ "address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
68
+ "startBlock": 9636193
69
69
  },
70
70
  {
71
71
  "name": "PoseidonT3",
72
- "address": "0x3d3df6CFc6BFf68d9693e097F32bF4a9903E77a5",
73
- "startBlock": 8788886
72
+ "address": "0xB43122Ecb241DD50062641f089876679fd06599a",
73
+ "startBlock": 9636193
74
74
  },
75
75
  {
76
76
  "name": "Semaphore",
77
- "address": "0x5f4edC58142f4395D1D536e793137A0252dA5a49",
78
- "startBlock": 8788886
77
+ "address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
78
+ "startBlock": 9636193
79
79
  }
80
80
  ]
81
81
  }