@maci-protocol/core 0.0.0-ci.de6bbd5 → 0.0.0-ci.df324d0
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/README.md +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ contracts in discrete components which are easy to test.
|
|
|
15
15
|
|
|
16
16
|
To this end, this submodule exposes a `MaciState` class and a `Poll` class.
|
|
17
17
|
Developers should instantiate objects from these classes to test MACI. For
|
|
18
|
-
instance, [`MACI.test.ts`](https://github.com/privacy-scaling-explorations/maci/blob/
|
|
18
|
+
instance, [`MACI.test.ts`](https://github.com/privacy-scaling-explorations/maci/blob/main/packages/contracts/tests/MACI.test.ts) creates a
|
|
19
19
|
`MaciState` object and every time it interacts with the MACI smart contract, it
|
|
20
20
|
mirrors said interaction on the `MaciState` and `Poll`. As such, the developer
|
|
21
21
|
can then use their helper functions like `maciState.signUp()`,
|
|
@@ -34,8 +34,8 @@ In testing, whenever a test suite submits a `signUp()` transaction, it should
|
|
|
34
34
|
call `maciState.signUp()` as well, so that the off-chain representation of MACI
|
|
35
35
|
is kept up to date.
|
|
36
36
|
|
|
37
|
-
In production, `
|
|
38
|
-
[`
|
|
37
|
+
In production, `generateMaciStateFromContract()` in
|
|
38
|
+
[`generateMaciState.ts`](https://github.com/privacy-scaling-explorations/maci/blob/main/packages/contracts/ts/generateMaciState.ts) uses this function when it
|
|
39
39
|
scans a MACI contract's event log for signups, so as to bring its `MaciState`
|
|
40
40
|
instance up to date.
|
|
41
41
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maci-protocol/core",
|
|
3
|
-
"version": "0.0.0-ci.
|
|
3
|
+
"version": "0.0.0-ci.df324d0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The MACI state machine implemented in TypeScript",
|
|
6
6
|
"main": "build/ts/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"docs": "typedoc --plugin typedoc-plugin-markdown --options ./typedoc.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@maci-protocol/crypto": "0.0.0-ci.
|
|
30
|
-
"@maci-protocol/domainobjs": "0.0.0-ci.
|
|
29
|
+
"@maci-protocol/crypto": "0.0.0-ci.df324d0",
|
|
30
|
+
"@maci-protocol/domainobjs": "0.0.0-ci.df324d0",
|
|
31
31
|
"@zk-kit/lean-imt": "^2.2.3",
|
|
32
32
|
"lodash": "^4.17.21"
|
|
33
33
|
},
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"statements": ">90%",
|
|
67
67
|
"check-coverage": true
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "ef306008c7607d428a62acf1296d480fd29248e6"
|
|
70
70
|
}
|