@maci-protocol/sdk 0.0.0-ci.ffb9e52 → 3.0.0
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/CHANGELOG.md +155 -0
- package/build/package.json +9 -9
- package/build/ts/browser/index.d.ts +2 -1
- package/build/ts/browser/index.d.ts.map +1 -1
- package/build/ts/browser/index.js +1 -0
- package/build/ts/browser/index.js.map +1 -1
- package/build/ts/browser/joinPoll.d.ts +1 -1
- package/build/ts/browser/joinPoll.d.ts.map +1 -1
- package/build/ts/browser/joinPoll.js +2 -2
- package/build/ts/browser/joinPoll.js.map +1 -1
- package/build/ts/deploy/maci.d.ts +1 -1
- package/build/ts/deploy/maci.d.ts.map +1 -1
- package/build/ts/deploy/maci.js +17 -7
- package/build/ts/deploy/maci.js.map +1 -1
- package/build/ts/deploy/poll.d.ts +1 -1
- package/build/ts/deploy/poll.d.ts.map +1 -1
- package/build/ts/deploy/poll.js +5 -7
- package/build/ts/deploy/poll.js.map +1 -1
- package/build/ts/deploy/types.d.ts +21 -13
- package/build/ts/deploy/types.d.ts.map +1 -1
- package/build/ts/index.d.ts +2 -2
- package/build/ts/index.d.ts.map +1 -1
- package/build/ts/index.js +6 -4
- package/build/ts/index.js.map +1 -1
- package/build/ts/maciKeys/types.d.ts +1 -1
- package/build/ts/maciKeys/types.d.ts.map +1 -1
- package/build/ts/poll/poll.d.ts.map +1 -1
- package/build/ts/poll/poll.js +8 -2
- package/build/ts/poll/poll.js.map +1 -1
- package/build/ts/poll/types.d.ts +4 -0
- package/build/ts/poll/types.d.ts.map +1 -1
- package/build/ts/proof/__tests__/download.test.js +1 -1
- package/build/ts/proof/__tests__/download.test.js.map +1 -1
- package/build/ts/proof/generate.js +2 -2
- package/build/ts/proof/generate.js.map +1 -1
- package/build/ts/proof/prove.d.ts +1 -1
- package/build/ts/proof/prove.d.ts.map +1 -1
- package/build/ts/proof/prove.js +13 -3
- package/build/ts/proof/prove.js.map +1 -1
- package/build/ts/proof/types.d.ts +4 -0
- package/build/ts/proof/types.d.ts.map +1 -1
- package/build/ts/subgraph/maciSubgraph.d.ts +1 -1
- package/build/ts/subgraph/maciSubgraph.d.ts.map +1 -1
- package/build/ts/subgraph/maciSubgraph.js +5 -3
- package/build/ts/subgraph/maciSubgraph.js.map +1 -1
- package/build/ts/trees/stateTree.d.ts.map +1 -1
- package/build/ts/trees/stateTree.js.map +1 -1
- package/build/ts/user/joinPoll.d.ts +1 -1
- package/build/ts/user/joinPoll.d.ts.map +1 -1
- package/build/ts/user/joinPoll.js +2 -2
- package/build/ts/user/joinPoll.js.map +1 -1
- package/build/ts/user/signup.js.map +1 -1
- package/build/ts/user/types.d.ts +3 -3
- package/build/ts/user/types.d.ts.map +1 -1
- package/build/ts/user/utils.d.ts +9 -1
- package/build/ts/user/utils.d.ts.map +1 -1
- package/build/ts/user/utils.js +17 -17
- package/build/ts/user/utils.js.map +1 -1
- package/build/ts/utils/index.d.ts +1 -1
- package/build/ts/utils/index.d.ts.map +1 -1
- package/build/ts/utils/index.js +2 -1
- package/build/ts/utils/index.js.map +1 -1
- package/build/ts/utils/utils.d.ts +5 -0
- package/build/ts/utils/utils.d.ts.map +1 -1
- package/build/ts/utils/utils.js +13 -1
- package/build/ts/utils/utils.js.map +1 -1
- package/build/ts/verifyingKeys/setVerifyingKeys.d.ts +1 -1
- package/build/ts/verifyingKeys/setVerifyingKeys.d.ts.map +1 -1
- package/build/ts/verifyingKeys/setVerifyingKeys.js +51 -27
- package/build/ts/verifyingKeys/setVerifyingKeys.js.map +1 -1
- package/build/ts/verifyingKeys/types.d.ts +6 -6
- package/build/ts/verifyingKeys/types.d.ts.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,161 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 3.0.0 (2026-06-12)
|
|
7
|
+
|
|
8
|
+
* chore: add logger for contract helpers ([a688400](https://github.com/privacy-scaling-explorations/maci/commit/a688400))
|
|
9
|
+
* chore: add more exports from contracts ([91d946d](https://github.com/privacy-scaling-explorations/maci/commit/91d946d))
|
|
10
|
+
* chore: add publishConfig (#2308) ([26f28d6](https://github.com/privacy-scaling-explorations/maci/commit/26f28d6)), closes [#2308](https://github.com/privacy-scaling-explorations/maci/issues/2308)
|
|
11
|
+
* chore: change assert import ([bf59c7a](https://github.com/privacy-scaling-explorations/maci/commit/bf59c7a))
|
|
12
|
+
* chore: explicity define packages as not private ([1736fec](https://github.com/privacy-scaling-explorations/maci/commit/1736fec))
|
|
13
|
+
* chore: expose sdk function invalidateVotes ([eeab56a](https://github.com/privacy-scaling-explorations/maci/commit/eeab56a))
|
|
14
|
+
* chore: fix multiformat version for sdk ([b765391](https://github.com/privacy-scaling-explorations/maci/commit/b765391))
|
|
15
|
+
* chore: move packages to @maci org (#2286) ([7275509](https://github.com/privacy-scaling-explorations/maci/commit/7275509)), closes [#2286](https://github.com/privacy-scaling-explorations/maci/issues/2286)
|
|
16
|
+
* chore: use type imports ([9da523a](https://github.com/privacy-scaling-explorations/maci/commit/9da523a))
|
|
17
|
+
* chore(deps-dev): bump @types/jest from 29.5.14 to 30.0.0 ([16f466f](https://github.com/privacy-scaling-explorations/maci/commit/16f466f))
|
|
18
|
+
* chore(deps-dev): bump @types/node from 20.17.19 to 22.13.9 ([aa7c356](https://github.com/privacy-scaling-explorations/maci/commit/aa7c356))
|
|
19
|
+
* chore(deps-dev): bump @types/node from 22.10.7 to 22.12.0 (#2073) ([1dcb28e](https://github.com/privacy-scaling-explorations/maci/commit/1dcb28e)), closes [#2073](https://github.com/privacy-scaling-explorations/maci/issues/2073)
|
|
20
|
+
* chore(deps-dev): bump @types/node from 22.12.0 to 22.13.1 ([5f06af0](https://github.com/privacy-scaling-explorations/maci/commit/5f06af0))
|
|
21
|
+
* chore(deps-dev): bump @types/node from 22.13.1 to 22.13.4 ([dba94f4](https://github.com/privacy-scaling-explorations/maci/commit/dba94f4))
|
|
22
|
+
* chore(deps-dev): bump @types/node from 22.13.17 to 22.14.0 ([3434168](https://github.com/privacy-scaling-explorations/maci/commit/3434168))
|
|
23
|
+
* chore(deps-dev): bump @types/node from 22.13.9 to 22.13.10 (#2241) ([3f50bb6](https://github.com/privacy-scaling-explorations/maci/commit/3f50bb6)), closes [#2241](https://github.com/privacy-scaling-explorations/maci/issues/2241)
|
|
24
|
+
* chore(deps-dev): bump @types/node from 22.14.0 to 22.14.1 ([38f0947](https://github.com/privacy-scaling-explorations/maci/commit/38f0947))
|
|
25
|
+
* chore(deps-dev): bump @types/node from 22.14.1 to 22.15.3 ([430d214](https://github.com/privacy-scaling-explorations/maci/commit/430d214))
|
|
26
|
+
* chore(deps-dev): bump @types/node from 22.15.17 to 24.0.1 ([33485a5](https://github.com/privacy-scaling-explorations/maci/commit/33485a5))
|
|
27
|
+
* chore(deps-dev): bump @types/node from 22.15.8 to 22.15.17 ([b144ca2](https://github.com/privacy-scaling-explorations/maci/commit/b144ca2))
|
|
28
|
+
* chore(deps-dev): bump @types/node from 24.0.1 to 24.0.3 ([834943a](https://github.com/privacy-scaling-explorations/maci/commit/834943a))
|
|
29
|
+
* chore(deps-dev): bump @types/node from 24.0.12 to 24.0.13 ([f85b4b1](https://github.com/privacy-scaling-explorations/maci/commit/f85b4b1))
|
|
30
|
+
* chore(deps-dev): bump @types/node from 24.0.13 to 24.2.0 (#2697) ([35e2fb7](https://github.com/privacy-scaling-explorations/maci/commit/35e2fb7)), closes [#2697](https://github.com/privacy-scaling-explorations/maci/issues/2697)
|
|
31
|
+
* chore(deps-dev): bump @types/node from 24.0.3 to 24.0.4 ([a00ce55](https://github.com/privacy-scaling-explorations/maci/commit/a00ce55))
|
|
32
|
+
* chore(deps-dev): bump @types/node from 24.0.4 to 24.0.7 ([fbbe0a7](https://github.com/privacy-scaling-explorations/maci/commit/fbbe0a7))
|
|
33
|
+
* chore(deps-dev): bump @types/node from 24.0.7 to 24.0.12 (#2626) ([5975ca0](https://github.com/privacy-scaling-explorations/maci/commit/5975ca0)), closes [#2626](https://github.com/privacy-scaling-explorations/maci/issues/2626)
|
|
34
|
+
* chore(deps-dev): bump jest from 29.7.0 to 30.0.0 ([7fd6037](https://github.com/privacy-scaling-explorations/maci/commit/7fd6037))
|
|
35
|
+
* chore(deps-dev): bump jest from 30.0.0 to 30.0.3 ([cfc7238](https://github.com/privacy-scaling-explorations/maci/commit/cfc7238))
|
|
36
|
+
* chore(deps-dev): bump jest from 30.0.3 to 30.0.4 (#2615) ([e94886c](https://github.com/privacy-scaling-explorations/maci/commit/e94886c)), closes [#2615](https://github.com/privacy-scaling-explorations/maci/issues/2615)
|
|
37
|
+
* chore(deps-dev): bump jest from 30.0.4 to 30.2.0 ([b020e46](https://github.com/privacy-scaling-explorations/maci/commit/b020e46))
|
|
38
|
+
* chore(deps-dev): bump mocha from 10.8.2 to 11.1.0 ([f524a07](https://github.com/privacy-scaling-explorations/maci/commit/f524a07))
|
|
39
|
+
* chore(deps-dev): bump mocha from 11.1.0 to 11.2.2 ([044ad2e](https://github.com/privacy-scaling-explorations/maci/commit/044ad2e))
|
|
40
|
+
* chore(deps-dev): bump mocha from 11.2.2 to 11.4.0 ([09929d2](https://github.com/privacy-scaling-explorations/maci/commit/09929d2))
|
|
41
|
+
* chore(deps-dev): bump mocha from 11.4.0 to 11.6.0 (#2546) ([54823d2](https://github.com/privacy-scaling-explorations/maci/commit/54823d2)), closes [#2546](https://github.com/privacy-scaling-explorations/maci/issues/2546)
|
|
42
|
+
* chore(deps-dev): bump mocha from 11.6.0 to 11.7.0 ([739b4e5](https://github.com/privacy-scaling-explorations/maci/commit/739b4e5))
|
|
43
|
+
* chore(deps-dev): bump mocha from 11.7.1 to 11.7.2 ([5646026](https://github.com/privacy-scaling-explorations/maci/commit/5646026))
|
|
44
|
+
* chore(deps-dev): bump ts-jest from 29.2.5 to 29.2.6 ([aaf7978](https://github.com/privacy-scaling-explorations/maci/commit/aaf7978))
|
|
45
|
+
* chore(deps-dev): bump ts-jest from 29.2.6 to 29.3.0 (#2293) ([d24dcc5](https://github.com/privacy-scaling-explorations/maci/commit/d24dcc5)), closes [#2293](https://github.com/privacy-scaling-explorations/maci/issues/2293)
|
|
46
|
+
* chore(deps-dev): bump ts-jest from 29.3.1 to 29.3.2 ([2e4cf7e](https://github.com/privacy-scaling-explorations/maci/commit/2e4cf7e))
|
|
47
|
+
* chore(deps-dev): bump ts-jest from 29.3.2 to 29.3.4 ([ff66a03](https://github.com/privacy-scaling-explorations/maci/commit/ff66a03))
|
|
48
|
+
* chore(deps-dev): bump ts-jest from 29.3.4 to 29.4.0 ([0bf8810](https://github.com/privacy-scaling-explorations/maci/commit/0bf8810))
|
|
49
|
+
* chore(deps-dev): bump ts-jest from 29.4.0 to 29.4.1 ([7ce80f9](https://github.com/privacy-scaling-explorations/maci/commit/7ce80f9))
|
|
50
|
+
* chore(deps-dev): bump typescript from 5.7.3 to 5.8.2 ([e37f1bf](https://github.com/privacy-scaling-explorations/maci/commit/e37f1bf))
|
|
51
|
+
* chore(deps-dev): bump typescript from 5.8.2 to 5.8.3 ([048cefc](https://github.com/privacy-scaling-explorations/maci/commit/048cefc))
|
|
52
|
+
* chore(deps-dev): bump typescript from 5.8.3 to 5.9.2 ([17e4a70](https://github.com/privacy-scaling-explorations/maci/commit/17e4a70))
|
|
53
|
+
* chore(deps): bump @types/node to 24.11.0 ([36f727b](https://github.com/privacy-scaling-explorations/maci/commit/36f727b))
|
|
54
|
+
* chore(deps): bump @zk-kit/lean-imt from 2.2.2 to 2.2.3 ([a269d5c](https://github.com/privacy-scaling-explorations/maci/commit/a269d5c))
|
|
55
|
+
* chore(deps): bump @zk-kit/lean-imt from 2.2.3 to 2.2.4 ([cccd882](https://github.com/privacy-scaling-explorations/maci/commit/cccd882))
|
|
56
|
+
* chore(deps): bump ethers from 6.13.5 to 6.13.7 ([ea37135](https://github.com/privacy-scaling-explorations/maci/commit/ea37135))
|
|
57
|
+
* chore(deps): bump ethers from 6.13.7 to 6.14.0 ([e806553](https://github.com/privacy-scaling-explorations/maci/commit/e806553))
|
|
58
|
+
* chore(deps): bump ethers from 6.14.0 to 6.14.3 ([05118f4](https://github.com/privacy-scaling-explorations/maci/commit/05118f4))
|
|
59
|
+
* chore(deps): bump ethers from 6.14.3 to 6.14.4 ([00bccaa](https://github.com/privacy-scaling-explorations/maci/commit/00bccaa))
|
|
60
|
+
* chore(deps): bump ethers from 6.14.4 to 6.15.0 ([525ff51](https://github.com/privacy-scaling-explorations/maci/commit/525ff51))
|
|
61
|
+
* chore(deps): bump multiformats from 9.9.0 to 13.3.2 ([4a9853f](https://github.com/privacy-scaling-explorations/maci/commit/4a9853f))
|
|
62
|
+
* chore(sdk): sort out types for browser export ([0d04a73](https://github.com/privacy-scaling-explorations/maci/commit/0d04a73))
|
|
63
|
+
* feat(sdk,cli): add isOpen status to poll data and improve CLI output ([409e410](https://github.com/privacy-scaling-explorations/maci/commit/409e410))
|
|
64
|
+
* fix: add export without deploy functions (#2284) ([2252806](https://github.com/privacy-scaling-explorations/maci/commit/2252806)), closes [#2284](https://github.com/privacy-scaling-explorations/maci/issues/2284)
|
|
65
|
+
* fix: ensure browser sdk does not import maci-contracts ([c4dc113](https://github.com/privacy-scaling-explorations/maci/commit/c4dc113))
|
|
66
|
+
* fix: ensure invalidVotes uses the correct nonce ([30df559](https://github.com/privacy-scaling-explorations/maci/commit/30df559))
|
|
67
|
+
* fix: ensure is-tallied and totalSignups are correct (#2503) ([6380833](https://github.com/privacy-scaling-explorations/maci/commit/6380833)), closes [#2503](https://github.com/privacy-scaling-explorations/maci/issues/2503)
|
|
68
|
+
* fix: nightly workflows ([0729bfd](https://github.com/privacy-scaling-explorations/maci/commit/0729bfd))
|
|
69
|
+
* fix: nightly workflows ([66a1261](https://github.com/privacy-scaling-explorations/maci/commit/66a1261))
|
|
70
|
+
* fix: under-constrained bug in BinaryMerkleRoot ([4fe3cec](https://github.com/privacy-scaling-explorations/maci/commit/4fe3cec))
|
|
71
|
+
* fix(contracts): poll finalization ([0bd1c78](https://github.com/privacy-scaling-explorations/maci/commit/0bd1c78))
|
|
72
|
+
* fix(sdk): add padKey to array of retrieved MACI public keys ([ffa7055](https://github.com/privacy-scaling-explorations/maci/commit/ffa7055))
|
|
73
|
+
* fix(sdk): remove stateIndex from joinPoll + verify in ETH sepolia ([c48f9f6](https://github.com/privacy-scaling-explorations/maci/commit/c48f9f6))
|
|
74
|
+
* fix(sdk): sort users by creation date in subgraph query (#2664) ([dc8c564](https://github.com/privacy-scaling-explorations/maci/commit/dc8c564)), closes [#2664](https://github.com/privacy-scaling-explorations/maci/issues/2664)
|
|
75
|
+
* fix(sdk): start block before fetching events ([01af3e3](https://github.com/privacy-scaling-explorations/maci/commit/01af3e3))
|
|
76
|
+
* fix(sdk): use full import paths ([d87fb50](https://github.com/privacy-scaling-explorations/maci/commit/d87fb50))
|
|
77
|
+
* fix(sdk): use full path import for sdk users functions (#2354) ([e3476db](https://github.com/privacy-scaling-explorations/maci/commit/e3476db)), closes [#2354](https://github.com/privacy-scaling-explorations/maci/issues/2354)
|
|
78
|
+
* refactor: circuit structure (#2485) ([2cf83db](https://github.com/privacy-scaling-explorations/maci/commit/2cf83db)), closes [#2485](https://github.com/privacy-scaling-explorations/maci/issues/2485)
|
|
79
|
+
* refactor: contract imports and proofs (#2074) ([66dfab7](https://github.com/privacy-scaling-explorations/maci/commit/66dfab7)), closes [#2074](https://github.com/privacy-scaling-explorations/maci/issues/2074)
|
|
80
|
+
* refactor: deploy maci command ([3eb6915](https://github.com/privacy-scaling-explorations/maci/commit/3eb6915))
|
|
81
|
+
* refactor: expand shorthand variables to full names ([75547c0](https://github.com/privacy-scaling-explorations/maci/commit/75547c0))
|
|
82
|
+
* refactor: gen proofs ([7bba1c5](https://github.com/privacy-scaling-explorations/maci/commit/7bba1c5))
|
|
83
|
+
* refactor: join poll sdk ([52607a7](https://github.com/privacy-scaling-explorations/maci/commit/52607a7))
|
|
84
|
+
* refactor: make separate testing package (#2229) ([bd07a7f](https://github.com/privacy-scaling-explorations/maci/commit/bd07a7f)), closes [#2229](https://github.com/privacy-scaling-explorations/maci/issues/2229)
|
|
85
|
+
* refactor: poll deploy sdk (#2189) ([da1b785](https://github.com/privacy-scaling-explorations/maci/commit/da1b785)), closes [#2189](https://github.com/privacy-scaling-explorations/maci/issues/2189)
|
|
86
|
+
* refactor: remove redundant param (#2161) ([2cc986f](https://github.com/privacy-scaling-explorations/maci/commit/2cc986f)), closes [#2161](https://github.com/privacy-scaling-explorations/maci/issues/2161)
|
|
87
|
+
* refactor: rename from short to full names ([120cffa](https://github.com/privacy-scaling-explorations/maci/commit/120cffa))
|
|
88
|
+
* refactor: setVerifyingKeys ([8ce195b](https://github.com/privacy-scaling-explorations/maci/commit/8ce195b))
|
|
89
|
+
* refactor: test suite cleanup (#2233) (#2232) ([0d42bb0](https://github.com/privacy-scaling-explorations/maci/commit/0d42bb0)), closes [#2233](https://github.com/privacy-scaling-explorations/maci/issues/2233) [#2232](https://github.com/privacy-scaling-explorations/maci/issues/2232)
|
|
90
|
+
* refactor: user sdk (#2064) ([aac1ce7](https://github.com/privacy-scaling-explorations/maci/commit/aac1ce7)), closes [#2064](https://github.com/privacy-scaling-explorations/maci/issues/2064)
|
|
91
|
+
* refactor: verifying keys sdk (#2070) ([44c9e1e](https://github.com/privacy-scaling-explorations/maci/commit/44c9e1e)), closes [#2070](https://github.com/privacy-scaling-explorations/maci/issues/2070)
|
|
92
|
+
* refactor: vote sdk (#2089) ([fed0e25](https://github.com/privacy-scaling-explorations/maci/commit/fed0e25)), closes [#2089](https://github.com/privacy-scaling-explorations/maci/issues/2089)
|
|
93
|
+
* refactor: vote submission ([a66da9e](https://github.com/privacy-scaling-explorations/maci/commit/a66da9e))
|
|
94
|
+
* refactor(circuits): rename circuits signal inputs and move templates ([c2f4e36](https://github.com/privacy-scaling-explorations/maci/commit/c2f4e36))
|
|
95
|
+
* refactor(cli): cleanup signup command ([601269c](https://github.com/privacy-scaling-explorations/maci/commit/601269c))
|
|
96
|
+
* refactor(cli): move deploy vk registry and testing commands to sdk ([bcd8d12](https://github.com/privacy-scaling-explorations/maci/commit/bcd8d12))
|
|
97
|
+
* refactor(cli): move key generation commands to sdk ([08634a1](https://github.com/privacy-scaling-explorations/maci/commit/08634a1))
|
|
98
|
+
* refactor(cli): move maci state generation to sdk ([f922298](https://github.com/privacy-scaling-explorations/maci/commit/f922298))
|
|
99
|
+
* refactor(cli): move proof generation and poll deploy to sdk ([31922b2](https://github.com/privacy-scaling-explorations/maci/commit/31922b2))
|
|
100
|
+
* refactor(cli): move prove onchain to sdk ([452a68a](https://github.com/privacy-scaling-explorations/maci/commit/452a68a))
|
|
101
|
+
* refactor(cli): move publish commands to sdk ([aa16343](https://github.com/privacy-scaling-explorations/maci/commit/aa16343))
|
|
102
|
+
* refactor(cli): move signups merging to sdk ([36a8d6d](https://github.com/privacy-scaling-explorations/maci/commit/36a8d6d))
|
|
103
|
+
* refactor(cli): move vk commands to sdk ([1f2a81e](https://github.com/privacy-scaling-explorations/maci/commit/1f2a81e))
|
|
104
|
+
* refactor(cli): use contract storage for cli ([b417ee7](https://github.com/privacy-scaling-explorations/maci/commit/b417ee7))
|
|
105
|
+
* refactor(sdk): change sdk package structure ([3255909](https://github.com/privacy-scaling-explorations/maci/commit/3255909))
|
|
106
|
+
* refactor(sdk): rename pollWasm param to pollJoiningZkey for consistency ([d4aae1f](https://github.com/privacy-scaling-explorations/maci/commit/d4aae1f)), closes [#2568](https://github.com/privacy-scaling-explorations/maci/issues/2568)
|
|
107
|
+
* refactor(sdk): separate keys functions ([e22cb16](https://github.com/privacy-scaling-explorations/maci/commit/e22cb16))
|
|
108
|
+
* refactor(user): get signUp data from contract call instead of events (#2464) ([063ef62](https://github.com/privacy-scaling-explorations/maci/commit/063ef62)), closes [#2464](https://github.com/privacy-scaling-explorations/maci/issues/2464)
|
|
109
|
+
* feat: add invalidate votes function (#2219) ([6531fee](https://github.com/privacy-scaling-explorations/maci/commit/6531fee)), closes [#2219](https://github.com/privacy-scaling-explorations/maci/issues/2219)
|
|
110
|
+
* feat: add logs output option for debugging and auditing ([d638fb6](https://github.com/privacy-scaling-explorations/maci/commit/d638fb6))
|
|
111
|
+
* feat: add message processor for full voice credits mode ([d7f4240](https://github.com/privacy-scaling-explorations/maci/commit/d7f4240))
|
|
112
|
+
* feat: add poll state tree depth ([3d74d4b](https://github.com/privacy-scaling-explorations/maci/commit/3d74d4b))
|
|
113
|
+
* feat: add start and end timestmap for poll ([cf67b53](https://github.com/privacy-scaling-explorations/maci/commit/cf67b53))
|
|
114
|
+
* feat: allow to download artifacts on browser ([58a163f](https://github.com/privacy-scaling-explorations/maci/commit/58a163f))
|
|
115
|
+
* feat: check if a user is registered (#2278) ([6c0a2d9](https://github.com/privacy-scaling-explorations/maci/commit/6c0a2d9)), closes [#2278](https://github.com/privacy-scaling-explorations/maci/issues/2278)
|
|
116
|
+
* feat: deploy initial voice credit proxy factory with maci tasks ([3b5aa65](https://github.com/privacy-scaling-explorations/maci/commit/3b5aa65))
|
|
117
|
+
* feat: make ESupportedChains exportable so apps can use it ([b474a0c](https://github.com/privacy-scaling-explorations/maci/commit/b474a0c))
|
|
118
|
+
* feat: use excubiae policies instead of gatekeepers ([a2319b1](https://github.com/privacy-scaling-explorations/maci/commit/a2319b1))
|
|
119
|
+
* feat(circuits): add partial support for full spent voting mode ([8c06abb](https://github.com/privacy-scaling-explorations/maci/commit/8c06abb))
|
|
120
|
+
* feat(circuits): remove timestamp from state leaf ([831e00d](https://github.com/privacy-scaling-explorations/maci/commit/831e00d))
|
|
121
|
+
* feat(circuits): reuse tally non-qv for full spent mode (#2437) ([ae1d978](https://github.com/privacy-scaling-explorations/maci/commit/ae1d978)), closes [#2437](https://github.com/privacy-scaling-explorations/maci/issues/2437)
|
|
122
|
+
* feat(contracts): add anon aadhaar gatekeeper checker ([13f14b0](https://github.com/privacy-scaling-explorations/maci/commit/13f14b0))
|
|
123
|
+
* feat(contracts): add checker and deployment for proxy gatekeepers ([87f6d3b](https://github.com/privacy-scaling-explorations/maci/commit/87f6d3b))
|
|
124
|
+
* feat(contracts): add eas gatekeeper checker ([6e90591](https://github.com/privacy-scaling-explorations/maci/commit/6e90591))
|
|
125
|
+
* feat(contracts): add hats gatekeeper checker ([8ba97ae](https://github.com/privacy-scaling-explorations/maci/commit/8ba97ae))
|
|
126
|
+
* feat(contracts): add merkle proof gatekeeper checker ([e386f91](https://github.com/privacy-scaling-explorations/maci/commit/e386f91))
|
|
127
|
+
* feat(contracts): add proxy clone for initial voice credit proxy ([52d5c0d](https://github.com/privacy-scaling-explorations/maci/commit/52d5c0d))
|
|
128
|
+
* feat(contracts): add semaphore gatekeeper checker ([b7419c9](https://github.com/privacy-scaling-explorations/maci/commit/b7419c9))
|
|
129
|
+
* feat(contracts): add zupass gatekeeper checker ([d69702b](https://github.com/privacy-scaling-explorations/maci/commit/d69702b))
|
|
130
|
+
* feat(contracts): enhance ITally interface as per Tally.sol, remove mockTally.sol ([ba940a7](https://github.com/privacy-scaling-explorations/maci/commit/ba940a7))
|
|
131
|
+
* feat(contracts): integrate erc20 policy ([28d7bfc](https://github.com/privacy-scaling-explorations/maci/commit/28d7bfc))
|
|
132
|
+
* feat(contracts): integrate excubiae for gatekeepers ([fae260b](https://github.com/privacy-scaling-explorations/maci/commit/fae260b))
|
|
133
|
+
* feat(contracts): reuse policy proxies factories for deployment ([ed918ea](https://github.com/privacy-scaling-explorations/maci/commit/ed918ea))
|
|
134
|
+
* feat(contracts): store verifier and verifying keys in maci contract ([f3de633](https://github.com/privacy-scaling-explorations/maci/commit/f3de633))
|
|
135
|
+
* feat(contracts): support etherscan v2 ([b419b9b](https://github.com/privacy-scaling-explorations/maci/commit/b419b9b))
|
|
136
|
+
* feat(contracts): update excubiae package ([321b9bb](https://github.com/privacy-scaling-explorations/maci/commit/321b9bb))
|
|
137
|
+
* feat(coordinator): changes to use it with Aragon UI ([15a0b9e](https://github.com/privacy-scaling-explorations/maci/commit/15a0b9e))
|
|
138
|
+
* feat(coordinator): submit on chain using SDK ([a8fac26](https://github.com/privacy-scaling-explorations/maci/commit/a8fac26))
|
|
139
|
+
* feat(coordinator): workflow + fixed tests + reuse factories ([0b0bd93](https://github.com/privacy-scaling-explorations/maci/commit/0b0bd93))
|
|
140
|
+
* feat(sdk): add relayer functions ([6273ef8](https://github.com/privacy-scaling-explorations/maci/commit/6273ef8))
|
|
141
|
+
* feat(sdk): add set flag to tally result ([6afe368](https://github.com/privacy-scaling-explorations/maci/commit/6afe368))
|
|
142
|
+
* feat(sdk): add stateTreeDepth param to download client artifacts (#2419) ([45905e9](https://github.com/privacy-scaling-explorations/maci/commit/45905e9)), closes [#2419](https://github.com/privacy-scaling-explorations/maci/issues/2419)
|
|
143
|
+
* feat(sdk): allow to reuse inclusion proof for joinPoll ([be08c2c](https://github.com/privacy-scaling-explorations/maci/commit/be08c2c))
|
|
144
|
+
* feat(sdk): export EMode + user types ([5048c01](https://github.com/privacy-scaling-explorations/maci/commit/5048c01))
|
|
145
|
+
* feat(sdk): get results from tally contract (#2415) ([df71430](https://github.com/privacy-scaling-explorations/maci/commit/df71430)), closes [#2415](https://github.com/privacy-scaling-explorations/maci/issues/2415)
|
|
146
|
+
* feat(sdk): implement Subgraph fetcher for signup tree (#2479) ([f6c2b7f](https://github.com/privacy-scaling-explorations/maci/commit/f6c2b7f)), closes [#2479](https://github.com/privacy-scaling-explorations/maci/issues/2479)
|
|
147
|
+
* feat(sdk): return processProofs, tallyProofs and tallyData in generateProofs (#2193) ([dfbc410](https://github.com/privacy-scaling-explorations/maci/commit/dfbc410)), closes [#2193](https://github.com/privacy-scaling-explorations/maci/issues/2193)
|
|
148
|
+
* feat(sdk): setVerifyingKeys for multiple modes ([cd55263](https://github.com/privacy-scaling-explorations/maci/commit/cd55263))
|
|
149
|
+
* test: add stress tests for all the modes ([f7e8c46](https://github.com/privacy-scaling-explorations/maci/commit/f7e8c46))
|
|
150
|
+
* test: move tests over to testing package ([fad40c3](https://github.com/privacy-scaling-explorations/maci/commit/fad40c3))
|
|
151
|
+
* test(coordinator): use mocks and run unit tests locally ([a699a4b](https://github.com/privacy-scaling-explorations/maci/commit/a699a4b))
|
|
152
|
+
* test(relayer): add checks for onchain publishing ([a25f4bd](https://github.com/privacy-scaling-explorations/maci/commit/a25f4bd))
|
|
153
|
+
* test(relayer): add more e2e tests ([0cbfc40](https://github.com/privacy-scaling-explorations/maci/commit/0cbfc40))
|
|
154
|
+
* docs: add full credits information ([e65476e](https://github.com/privacy-scaling-explorations/maci/commit/e65476e))
|
|
155
|
+
* docs: update the readme (#2242) ([ffdceee](https://github.com/privacy-scaling-explorations/maci/commit/ffdceee)), closes [#2242](https://github.com/privacy-scaling-explorations/maci/issues/2242)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
6
161
|
## [3.0.0](https://github.com/privacy-scaling-explorations/maci/compare/v2.5.0...v3.0.0) (2025-03-28)
|
|
7
162
|
|
|
8
163
|
|
package/build/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maci-protocol/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "MACI's SDK",
|
|
6
6
|
"main": "build/ts/index.js",
|
|
@@ -36,30 +36,30 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"watch": "tsc --watch",
|
|
38
38
|
"build": "tsc -p tsconfig.build.json",
|
|
39
|
-
"postbuild": "cp package.json ./build
|
|
39
|
+
"postbuild": "cp package.json ./build",
|
|
40
40
|
"types": "tsc -p tsconfig.json --noEmit",
|
|
41
41
|
"test": "jest",
|
|
42
42
|
"test:coverage": "pnpm run test --coverage",
|
|
43
43
|
"docs": "typedoc --plugin typedoc-plugin-markdown --options ./typedoc.json"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@zk-kit/lean-imt": "^2.2.3",
|
|
47
|
-
"ethers": "^6.14.4",
|
|
48
46
|
"@maci-protocol/contracts": "^3.0.0",
|
|
49
47
|
"@maci-protocol/core": "^3.0.0",
|
|
50
48
|
"@maci-protocol/crypto": "^3.0.0",
|
|
51
49
|
"@maci-protocol/domainobjs": "^3.0.0",
|
|
50
|
+
"@zk-kit/lean-imt": "^2.2.4",
|
|
51
|
+
"ethers": "^6.15.0",
|
|
52
52
|
"multiformats": "9.9.0",
|
|
53
53
|
"snarkjs": "^0.7.5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/jest": "^30.0.0",
|
|
57
|
-
"@types/node": "^24.0
|
|
57
|
+
"@types/node": "^24.11.0",
|
|
58
58
|
"@types/snarkjs": "^0.7.9",
|
|
59
|
-
"jest": "^30.
|
|
60
|
-
"mocha": "^11.
|
|
59
|
+
"jest": "^30.2.0",
|
|
60
|
+
"mocha": "^11.7.2",
|
|
61
61
|
"nyc": "^17.1.0",
|
|
62
|
-
"ts-jest": "^29.4.
|
|
63
|
-
"typescript": "^5.
|
|
62
|
+
"ts-jest": "^29.4.1",
|
|
63
|
+
"typescript": "^5.9.2"
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -6,9 +6,10 @@ export * from "../trees";
|
|
|
6
6
|
export * from "../vote";
|
|
7
7
|
export * from "../maciKeys";
|
|
8
8
|
export * from "../subgraph";
|
|
9
|
+
export * from "../user/types";
|
|
9
10
|
export { getSignedupUserData, signup, hasUserSignedUp } from "../user/signup";
|
|
10
11
|
export { getJoinedUserData, hasUserJoinedPoll, generateMaciStateTree, getPollJoiningCircuitEvents, joiningCircuitInputs, generateMaciStateTreeWithEndKey, } from "../user/utils";
|
|
11
12
|
export * from "./joinPoll";
|
|
12
|
-
export type { FullProveResult, IDeployParams, IMergeParams, IProveParams, IVerifyingKeyStruct, SnarkProof, IIpfsMessage, } from "@maci-protocol/contracts";
|
|
13
|
+
export type { EMode, FullProveResult, IDeployParams, IMergeParams, IProveParams, IVerifyingKeyStruct, SnarkProof, IIpfsMessage, } from "@maci-protocol/contracts";
|
|
13
14
|
export * from "@maci-protocol/contracts/typechain-types";
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ts/browser/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EACpB,+BAA+B,GAChC,MAAM,eAAe,CAAC;AAEvB,cAAc,YAAY,CAAC;AAE3B,YAAY,EACV,eAAe,EACf,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,UAAU,EACV,YAAY,GACb,MAAM,0BAA0B,CAAC;AAElC,cAAc,0CAA0C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ts/browser/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EACpB,+BAA+B,GAChC,MAAM,eAAe,CAAC;AAEvB,cAAc,YAAY,CAAC;AAE3B,YAAY,EACV,KAAK,EACL,eAAe,EACf,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,UAAU,EACV,YAAY,GACb,MAAM,0BAA0B,CAAC;AAElC,cAAc,0CAA0C,CAAC"}
|
|
@@ -23,6 +23,7 @@ __exportStar(require("../trees"), exports);
|
|
|
23
23
|
__exportStar(require("../vote"), exports);
|
|
24
24
|
__exportStar(require("../maciKeys"), exports);
|
|
25
25
|
__exportStar(require("../subgraph"), exports);
|
|
26
|
+
__exportStar(require("../user/types"), exports);
|
|
26
27
|
var signup_1 = require("../user/signup");
|
|
27
28
|
Object.defineProperty(exports, "getSignedupUserData", { enumerable: true, get: function () { return signup_1.getSignedupUserData; } });
|
|
28
29
|
Object.defineProperty(exports, "signup", { enumerable: true, get: function () { return signup_1.signup; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ts/browser/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,oDAAkC;AAClC,iDAA+B;AAC/B,2CAAyB;AACzB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,8CAA4B;AAC5B,yCAA8E;AAArE,6GAAA,mBAAmB,OAAA;AAAE,gGAAA,MAAM,OAAA;AAAE,yGAAA,eAAe,OAAA;AACrD,uCAOuB;AANrB,0GAAA,iBAAiB,OAAA;AACjB,0GAAA,iBAAiB,OAAA;AACjB,8GAAA,qBAAqB,OAAA;AACrB,oHAAA,2BAA2B,OAAA;AAC3B,6GAAA,oBAAoB,OAAA;AACpB,wHAAA,+BAA+B,OAAA;AAGjC,6CAA2B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ts/browser/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,oDAAkC;AAClC,iDAA+B;AAC/B,2CAAyB;AACzB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,8CAA4B;AAC5B,gDAA8B;AAC9B,yCAA8E;AAArE,6GAAA,mBAAmB,OAAA;AAAE,gGAAA,MAAM,OAAA;AAAE,yGAAA,eAAe,OAAA;AACrD,uCAOuB;AANrB,0GAAA,iBAAiB,OAAA;AACjB,0GAAA,iBAAiB,OAAA;AACjB,8GAAA,qBAAqB,OAAA;AACrB,oHAAA,2BAA2B,OAAA;AAC3B,6GAAA,oBAAoB,OAAA;AACpB,wHAAA,+BAA+B,OAAA;AAGjC,6CAA2B;AAa3B,2EAAyD"}
|
|
@@ -6,5 +6,5 @@ import type { IJoinPollBrowserArgs, IJoinPollData } from "../user/types";
|
|
|
6
6
|
* @param {IJoinPollArgs} args - The arguments for the join poll command
|
|
7
7
|
* @returns {IJoinPollData} The poll state index of the joined user and transaction hash
|
|
8
8
|
*/
|
|
9
|
-
export declare const joinPoll: ({ maciAddress, privateKey, pollId, signer, startBlock, endBlock, blocksPerBatch, pollJoiningZkey,
|
|
9
|
+
export declare const joinPoll: ({ maciAddress, privateKey, pollId, signer, startBlock, endBlock, blocksPerBatch, pollJoiningZkey, pollJoiningWasm, sgDataArg, ivcpDataArg, inclusionProof, useLatestStateIndex, }: IJoinPollBrowserArgs) => Promise<IJoinPollData>;
|
|
10
10
|
//# sourceMappingURL=joinPoll.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joinPoll.d.ts","sourceRoot":"","sources":["../../../ts/browser/joinPoll.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAQzE;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAU,
|
|
1
|
+
{"version":3,"file":"joinPoll.d.ts","sourceRoot":"","sources":["../../../ts/browser/joinPoll.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAQzE;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAU,mLAc5B,oBAAoB,KAAG,OAAO,CAAC,aAAa,CA+F9C,CAAC"}
|
|
@@ -15,7 +15,7 @@ const utils_2 = require("./utils");
|
|
|
15
15
|
* @param {IJoinPollArgs} args - The arguments for the join poll command
|
|
16
16
|
* @returns {IJoinPollData} The poll state index of the joined user and transaction hash
|
|
17
17
|
*/
|
|
18
|
-
const joinPoll = async ({ maciAddress, privateKey, pollId, signer, startBlock, endBlock, blocksPerBatch, pollJoiningZkey,
|
|
18
|
+
const joinPoll = async ({ maciAddress, privateKey, pollId, signer, startBlock, endBlock, blocksPerBatch, pollJoiningZkey, pollJoiningWasm, sgDataArg, ivcpDataArg, inclusionProof, useLatestStateIndex, }) => {
|
|
19
19
|
const validContract = await (0, contracts_1.contractExists)(signer.provider, maciAddress);
|
|
20
20
|
if (!validContract) {
|
|
21
21
|
throw new Error("MACI contract does not exist");
|
|
@@ -68,7 +68,7 @@ const joinPoll = async ({ maciAddress, privateKey, pollId, signer, startBlock, e
|
|
|
68
68
|
const { proof } = await (0, utils_2.generateProofSnarkjs)({
|
|
69
69
|
inputs: circuitInputs,
|
|
70
70
|
zkeyPath: pollJoiningZkey,
|
|
71
|
-
wasmPath:
|
|
71
|
+
wasmPath: pollJoiningWasm,
|
|
72
72
|
});
|
|
73
73
|
// submit the message onchain as well as the encryption public key
|
|
74
74
|
const tx = await pollContract.joinPoll(nullifier, userMaciPublicKey.asContractParam(), stateRootIndex, (0, utils_2.formatProofForVerifierContract)(proof), sgDataArg, ivcpDataArg);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joinPoll.js","sourceRoot":"","sources":["../../../ts/browser/joinPoll.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,8EAAsH;AACtH,kDAAiD;AACjD,0DAAgE;AAKhE,yCAAqG;AACrG,kDAAoD;AAEpD,mCAA+E;AAE/E;;;;;;GAMG;AACI,MAAM,QAAQ,GAAG,KAAK,EAAE,EAC7B,WAAW,EACX,UAAU,EACV,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,cAAc,EACd,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"joinPoll.js","sourceRoot":"","sources":["../../../ts/browser/joinPoll.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,8EAAsH;AACtH,kDAAiD;AACjD,0DAAgE;AAKhE,yCAAqG;AACrG,kDAAoD;AAEpD,mCAA+E;AAE/E;;;;;;GAMG;AACI,MAAM,QAAQ,GAAG,KAAK,EAAE,EAC7B,WAAW,EACX,UAAU,EACV,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,cAAc,EACd,eAAe,EACf,eAAe,EACf,SAAS,EACT,WAAW,EACX,cAAc,EACd,mBAAmB,GACE,EAA0B,EAAE;IACjD,MAAM,aAAa,GAAG,MAAM,IAAA,0BAAc,EAAC,MAAM,CAAC,QAAS,EAAE,WAAW,CAAC,CAAC;IAE1E,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAClD,CAAC;IAED,IAAI,CAAC,uBAAU,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC9C,CAAC;IAED,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrC,CAAC;IAED,MAAM,kBAAkB,GAAG,uBAAU,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC9D,MAAM,iBAAiB,GAAG,IAAI,oBAAO,CAAC,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the MACI contracts deployment
|
|
5
5
|
* @returns The deployed MACI contracts
|
|
6
6
|
*/
|
|
7
|
-
export declare const deployMaci: ({ stateTreeDepth, signupPolicyAddress, pollFactoryAddress, messageProcessorFactoryAddress, tallyFactoryAddress, signer, poseidonAddresses, }: IDeployMaciArgs) => Promise<IMaciContracts>;
|
|
7
|
+
export declare const deployMaci: ({ stateTreeDepth, signupPolicyAddress, pollFactoryAddress, messageProcessorFactoryAddress, tallyFactoryAddress, signer, poseidonAddresses, verifier, }: IDeployMaciArgs) => Promise<IMaciContracts>;
|
|
8
8
|
//# sourceMappingURL=maci.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maci.d.ts","sourceRoot":"","sources":["../../../ts/deploy/maci.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"maci.d.ts","sourceRoot":"","sources":["../../../ts/deploy/maci.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK/D;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAU,wJAS9B,eAAe,KAAG,OAAO,CAAC,cAAc,CA8F1C,CAAC"}
|
package/build/ts/deploy/maci.js
CHANGED
|
@@ -3,12 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deployMaci = void 0;
|
|
4
4
|
const contracts_1 = require("@maci-protocol/contracts");
|
|
5
5
|
const utils_1 = require("./utils");
|
|
6
|
+
const verifyingKeysRegistry_1 = require("./verifyingKeysRegistry");
|
|
6
7
|
/**
|
|
7
8
|
* Deploy the MACI contracts
|
|
8
9
|
* @param args - The arguments for the MACI contracts deployment
|
|
9
10
|
* @returns The deployed MACI contracts
|
|
10
11
|
*/
|
|
11
|
-
const deployMaci = async ({ stateTreeDepth, signupPolicyAddress, pollFactoryAddress, messageProcessorFactoryAddress, tallyFactoryAddress, signer, poseidonAddresses, }) => {
|
|
12
|
+
const deployMaci = async ({ stateTreeDepth, signupPolicyAddress, pollFactoryAddress, messageProcessorFactoryAddress, tallyFactoryAddress, signer, poseidonAddresses, verifier, }) => {
|
|
12
13
|
const emptyBallotRoots = (0, contracts_1.generateEmptyBallotRoots)(stateTreeDepth);
|
|
13
14
|
const { PoseidonT3Contract, PoseidonT4Contract, PoseidonT5Contract, PoseidonT6Contract } = await (0, contracts_1.deployPoseidonContracts)(signer, poseidonAddresses, true);
|
|
14
15
|
const poseidonAddrs = await Promise.all([
|
|
@@ -55,6 +56,9 @@ const deployMaci = async ({ stateTreeDepth, signupPolicyAddress, pollFactoryAddr
|
|
|
55
56
|
}),
|
|
56
57
|
signer,
|
|
57
58
|
});
|
|
59
|
+
const verifierContract = verifier || (await (0, contracts_1.deployVerifier)(signer, true));
|
|
60
|
+
const verifierContractAddress = await verifierContract.getAddress();
|
|
61
|
+
const verifyingKeysRegistryContractAddress = await (0, verifyingKeysRegistry_1.deployVerifyingKeysRegistryContract)({ signer });
|
|
58
62
|
const maciContractAddress = await (0, utils_1.deployFactoryWithLinkedLibraries)({
|
|
59
63
|
abi: contracts_1.MACI__factory.abi,
|
|
60
64
|
bytecode: contracts_1.MACI__factory.linkBytecode({
|
|
@@ -65,12 +69,16 @@ const deployMaci = async ({ stateTreeDepth, signupPolicyAddress, pollFactoryAddr
|
|
|
65
69
|
}),
|
|
66
70
|
signer,
|
|
67
71
|
args: [
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
{
|
|
73
|
+
pollFactory: pollFactoryContractAddress,
|
|
74
|
+
messageProcessorFactory: messageProcessorFactoryContractAddress,
|
|
75
|
+
tallyFactory: tallyFactoryContractAddress,
|
|
76
|
+
signUpPolicy: signupPolicyAddress,
|
|
77
|
+
verifier: verifierContractAddress,
|
|
78
|
+
verifyingKeysRegistry: verifyingKeysRegistryContractAddress,
|
|
79
|
+
stateTreeDepth,
|
|
80
|
+
emptyBallotRoots,
|
|
81
|
+
},
|
|
74
82
|
],
|
|
75
83
|
});
|
|
76
84
|
const policy = contracts_1.IBasePolicy__factory.connect(signupPolicyAddress, signer);
|
|
@@ -81,6 +89,8 @@ const deployMaci = async ({ stateTreeDepth, signupPolicyAddress, pollFactoryAddr
|
|
|
81
89
|
messageProcessorFactoryContractAddress,
|
|
82
90
|
tallyFactoryContractAddress,
|
|
83
91
|
poseidonAddresses: poseidonAddrs,
|
|
92
|
+
verifierContractAddress,
|
|
93
|
+
verifyingKeysRegistryContractAddress,
|
|
84
94
|
};
|
|
85
95
|
};
|
|
86
96
|
exports.deployMaci = deployMaci;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maci.js","sourceRoot":"","sources":["../../../ts/deploy/maci.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"maci.js","sourceRoot":"","sources":["../../../ts/deploy/maci.ts"],"names":[],"mappings":";;;AAAA,wDASkC;AAIlC,mCAA2D;AAC3D,mEAA8E;AAE9E;;;;GAIG;AACI,MAAM,UAAU,GAAG,KAAK,EAAE,EAC/B,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,8BAA8B,EAC9B,mBAAmB,EACnB,MAAM,EACN,iBAAiB,EACjB,QAAQ,GACQ,EAA2B,EAAE;IAC7C,MAAM,gBAAgB,GAAG,IAAA,oCAAwB,EAAC,cAAc,CAAC,CAAC;IAElE,MAAM,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,GACtF,MAAM,IAAA,mCAAuB,EAAC,MAAM,EAAE,iBAAiB,EAAE,IAAI,CAAC,CAAC;IAEjE,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACtC,kBAAkB,CAAC,UAAU,EAAE;QAC/B,kBAAkB,CAAC,UAAU,EAAE;QAC/B,kBAAkB,CAAC,UAAU,EAAE;QAC/B,kBAAkB,CAAC,UAAU,EAAE;KAChC,CAAC,CAAC,IAAI,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|
|
@@ -4,5 +4,5 @@ import type { IDeployPollArgs, IPollContractsData } from "./types";
|
|
|
4
4
|
* @param args - The arguments for the deploy poll command
|
|
5
5
|
* @returns The addresses of the deployed contracts
|
|
6
6
|
*/
|
|
7
|
-
export declare const deployPoll: ({ maciAddress, pollStartTimestamp, pollEndTimestamp, tallyProcessingStateTreeDepth, voteOptionTreeDepth, messageBatchSize, stateTreeDepth, coordinatorPublicKey,
|
|
7
|
+
export declare const deployPoll: ({ maciAddress, pollStartTimestamp, pollEndTimestamp, tallyProcessingStateTreeDepth, voteOptionTreeDepth, messageBatchSize, stateTreeDepth, coordinatorPublicKey, mode, policyContractAddress, initialVoiceCreditProxyContractAddress, relayers, voteOptions, initialVoiceCredits, freeForAllCheckerFactoryAddress, freeForAllPolicyFactoryAddress, initialVoiceCreditProxyFactoryAddress, signer, }: IDeployPollArgs) => Promise<IPollContractsData>;
|
|
8
8
|
//# sourceMappingURL=poll.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../../ts/deploy/poll.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../../ts/deploy/poll.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAMnE;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAU,qYAmB9B,eAAe,KAAG,OAAO,CAAC,kBAAkB,CAkI9C,CAAC"}
|
package/build/ts/deploy/poll.js
CHANGED
|
@@ -11,10 +11,7 @@ const utils_1 = require("./utils");
|
|
|
11
11
|
* @param args - The arguments for the deploy poll command
|
|
12
12
|
* @returns The addresses of the deployed contracts
|
|
13
13
|
*/
|
|
14
|
-
const deployPoll = async ({ maciAddress, pollStartTimestamp, pollEndTimestamp, tallyProcessingStateTreeDepth, voteOptionTreeDepth, messageBatchSize, stateTreeDepth, coordinatorPublicKey,
|
|
15
|
-
if (!verifyingKeysRegistryContractAddress) {
|
|
16
|
-
throw new Error("Please provide a VerifyingKeysRegistry contract address");
|
|
17
|
-
}
|
|
14
|
+
const deployPoll = async ({ maciAddress, pollStartTimestamp, pollEndTimestamp, tallyProcessingStateTreeDepth, voteOptionTreeDepth, messageBatchSize, stateTreeDepth, coordinatorPublicKey, mode, policyContractAddress, initialVoiceCreditProxyContractAddress, relayers, voteOptions, initialVoiceCredits, freeForAllCheckerFactoryAddress, freeForAllPolicyFactoryAddress, initialVoiceCreditProxyFactoryAddress, signer, }) => {
|
|
18
15
|
if (!maciAddress) {
|
|
19
16
|
throw new Error("Please provide a MACI contract address");
|
|
20
17
|
}
|
|
@@ -37,7 +34,10 @@ const deployPoll = async ({ maciAddress, pollStartTimestamp, pollEndTimestamp, t
|
|
|
37
34
|
}
|
|
38
35
|
let initialVoiceCreditProxyAddress = initialVoiceCreditProxyContractAddress;
|
|
39
36
|
if (!initialVoiceCreditProxyAddress) {
|
|
40
|
-
const
|
|
37
|
+
const constantInitialVoiceCreditProxyFactory = initialVoiceCreditProxyFactoryAddress
|
|
38
|
+
? contracts_1.ConstantInitialVoiceCreditProxyFactory__factory.connect(initialVoiceCreditProxyFactoryAddress, signer)
|
|
39
|
+
: await (0, contracts_1.deployConstantInitialVoiceCreditProxyFactory)(signer, true);
|
|
40
|
+
const contract = await (0, contracts_1.deployConstantInitialVoiceCreditProxy)({ amount: initialVoiceCredits ?? utils_1.DEFAULT_INITIAL_VOICE_CREDITS }, constantInitialVoiceCreditProxyFactory, signer);
|
|
41
41
|
initialVoiceCreditProxyAddress = await contract.getAddress();
|
|
42
42
|
}
|
|
43
43
|
// required arg -> poll duration
|
|
@@ -78,8 +78,6 @@ const deployPoll = async ({ maciAddress, pollStartTimestamp, pollEndTimestamp, t
|
|
|
78
78
|
},
|
|
79
79
|
messageBatchSize,
|
|
80
80
|
coordinatorPublicKey: coordinatorPublicKey.asContractParam(),
|
|
81
|
-
verifier: verifierContractAddress,
|
|
82
|
-
verifyingKeysRegistry: verifyingKeysRegistryContractAddress,
|
|
83
81
|
mode,
|
|
84
82
|
policy: signupPolicyContractAddress,
|
|
85
83
|
initialVoiceCreditProxy: initialVoiceCreditProxyAddress,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poll.js","sourceRoot":"","sources":["../../../ts/deploy/poll.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"poll.js","sourceRoot":"","sources":["../../../ts/deploy/poll.ts"],"names":[],"mappings":";;;AAAA,wDASkC;AAClC,8CAA6D;AAC7D,0DAAsD;AAItD,kDAAoD;AAEpD,mCAAwD;AAExD;;;;GAIG;AACI,MAAM,UAAU,GAAG,KAAK,EAAE,EAC/B,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,6BAA6B,EAC7B,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,IAAI,EACJ,qBAAqB,EACrB,sCAAsC,EACtC,QAAQ,EACR,WAAW,EACX,mBAAmB,EACnB,+BAA+B,EAC/B,8BAA8B,EAC9B,qCAAqC,EACrC,MAAM,GACU,EAA+B,EAAE;IACjD,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,IAAA,0BAAc,EAAC,MAAM,CAAC,QAAS,EAAE,WAAW,CAAC,CAAC;IAEzE,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,YAAY,GAAG,yBAAW,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAE9D,oEAAoE;IACpE,IAAI,2BAA2B,GAAG,qBAAqB,CAAC;IAExD,IAAI,CAAC,2BAA2B,EAAE,CAAC;QACjC,MAAM,cAAc,GAAG,+BAA+B;YACpD,CAA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,YAAY,CAAC,WAAW,CAC3C,YAAY,CAAC,OAAO,CAAC,UAAU,EAC/B,OAAO,CAAC,WAAW,EACnB,OAAO,CAAC,WAAW,CACpB,CAAC;IACF,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAEtC,gDAAgD;IAChD,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC;IAChC,MAAM,aAAa,GAAG,MAAM,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACzD,MAAM,mBAAmB,GAAG,aAAa,CAAC,IAAI,CAAC;IAC/C,MAAM,+BAA+B,GAAG,aAAa,CAAC,gBAAgB,CAAC;IACvE,MAAM,oBAAoB,GAAG,aAAa,CAAC,KAAK,CAAC;IAEjD,MAAM,cAAc,GAAG,gCAAmB,CAAC,OAAO,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC;IACxF,MAAM,cAAc,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;IAE5E,OAAO;QACL,MAAM;QACN,mBAAmB;QACnB,+BAA+B;QAC/B,oBAAoB;QACpB,qBAAqB,EAAE,2BAA2B;QAClD,sCAAsC,EAAE,8BAA8B;KACvE,CAAC;AACJ,CAAC,CAAC;AArJW,QAAA,UAAU,cAqJrB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TAbi } from "@maci-protocol/contracts";
|
|
2
|
-
import { EMode } from "@maci-protocol/core";
|
|
3
|
-
import { PublicKey } from "@maci-protocol/domainobjs";
|
|
1
|
+
import { type Verifier, type TAbi } from "@maci-protocol/contracts";
|
|
2
|
+
import { type EMode } from "@maci-protocol/core";
|
|
3
|
+
import { type PublicKey } from "@maci-protocol/domainobjs";
|
|
4
4
|
import type { Signer } from "ethers";
|
|
5
5
|
/**
|
|
6
6
|
* The arguments for the deploy poll command
|
|
@@ -38,14 +38,6 @@ export interface IDeployPollArgs {
|
|
|
38
38
|
* The coordinator public key
|
|
39
39
|
*/
|
|
40
40
|
coordinatorPublicKey: PublicKey;
|
|
41
|
-
/**
|
|
42
|
-
* The address of the verifier contract
|
|
43
|
-
*/
|
|
44
|
-
verifierContractAddress: string;
|
|
45
|
-
/**
|
|
46
|
-
* The address of the verifying keys registry contract
|
|
47
|
-
*/
|
|
48
|
-
verifyingKeysRegistryContractAddress: string;
|
|
49
41
|
/**
|
|
50
42
|
* The mode of the poll
|
|
51
43
|
*/
|
|
@@ -71,13 +63,17 @@ export interface IDeployPollArgs {
|
|
|
71
63
|
*/
|
|
72
64
|
initialVoiceCredits?: number;
|
|
73
65
|
/**
|
|
74
|
-
* Free for all checker factory address (
|
|
66
|
+
* Free for all checker factory address (use for deployment optimization if there is no signup policy)
|
|
75
67
|
*/
|
|
76
68
|
freeForAllCheckerFactoryAddress?: string;
|
|
77
69
|
/**
|
|
78
|
-
* Free for all policy factory address (
|
|
70
|
+
* Free for all policy factory address (use for deployment optimization if there is no signup policy)
|
|
79
71
|
*/
|
|
80
72
|
freeForAllPolicyFactoryAddress?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The address of the initial voice credit proxy factory contract (use for deployment optimization if there is no initial voice credit proxy)
|
|
75
|
+
*/
|
|
76
|
+
initialVoiceCreditProxyFactoryAddress?: string;
|
|
81
77
|
/**
|
|
82
78
|
* The signer
|
|
83
79
|
*/
|
|
@@ -149,6 +145,10 @@ export interface IDeployMaciArgs {
|
|
|
149
145
|
poseidonT5: string;
|
|
150
146
|
poseidonT6: string;
|
|
151
147
|
}>;
|
|
148
|
+
/**
|
|
149
|
+
* Verifier address if is already deployed
|
|
150
|
+
*/
|
|
151
|
+
verifier?: Verifier;
|
|
152
152
|
}
|
|
153
153
|
/**
|
|
154
154
|
* An interface that represents the deployed MACI contracts.
|
|
@@ -179,6 +179,14 @@ export interface IMaciContracts {
|
|
|
179
179
|
poseidonT5: string;
|
|
180
180
|
poseidonT6: string;
|
|
181
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* The address of the Verifier contract
|
|
184
|
+
*/
|
|
185
|
+
verifierContractAddress: string;
|
|
186
|
+
/**
|
|
187
|
+
* The address of the VerifyingKeysRegistry contract
|
|
188
|
+
*/
|
|
189
|
+
verifyingKeysRegistryContractAddress: string;
|
|
182
190
|
}
|
|
183
191
|
/**
|
|
184
192
|
* Interface for the arguments to the DeployVerifyingKeyRegistry command
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../ts/deploy/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../ts/deploy/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,6BAA6B,EAAE,MAAM,CAAC;IAEtC;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,oBAAoB,EAAE,SAAS,CAAC;IAEhC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;I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EAAE,MAAM,CAAC;KACpB,CAAC,CAAC;IAEH;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,0BAA0B,EAAE,MAAM,CAAC;IAEnC;;OAEG;IACH,sCAAsC,EAAE,MAAM,CAAC;IAE/C;;OAEG;IACH,2BAA2B,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,iBAAiB,EAAE;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACH,oCAAoC,EAAE,MAAM,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,GAAG,EAAE,IAAI,CAAC;IAEV;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
package/build/ts/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export * from "./user";
|
|
|
11
11
|
export * from "./deploy";
|
|
12
12
|
export * from "./maciKeys";
|
|
13
13
|
export * from "./subgraph";
|
|
14
|
-
export { EMode, EContracts, ECheckerFactories, ECheckers, EPolicies, EPolicyFactories, EInitialVoiceCreditProxies, EInitialVoiceCreditProxiesFactories, EDeploySteps, Deployment, ContractStorage, ProofGenerator, TreeMerger, Prover, extractVerifyingKey, generateProofRapidSnark, generateProofSnarkjs, formatProofForVerifierContract, verifyProof, linkPoseidonLibraries, deployConstantInitialVoiceCreditProxy, deployMockVerifier, deployVerifyingKeysRegistry, deployVerifier, generateMaciStateFromContract, deployPoseidonContracts, deployERC20VotesPolicy, deployAnonAadhaarPolicy, deployEASSignUpPolicy, deployGitcoinPassportPolicy, deployMerkleProofPolicy, deploySemaphoreSignupPolicy, deployZupassSignUpPolicy, deployFreeForAllSignUpPolicy, deploySignupTokenPolicy, deployHatsSignupPolicy, deployContract, deployContractWithLinkedLibraries, getDefaultSigner, cleanThreads, unlinkFile, getBlockTimestamp, logGreen, logMagenta, logRed, logYellow, info, success, warning, error, generateEmptyBallotRoots,
|
|
15
|
-
export type { FullProveResult, IGenerateProofsOptions, IGenerateProofsBatchData, IDeployParams, IMergeParams, IProveParams, IVerifyingKeyStruct, SnarkProof, IIpfsMessage, IDeployCloneArgs,
|
|
14
|
+
export { EMode, EContracts, ECheckerFactories, ECheckers, EPolicies, EPolicyFactories, EInitialVoiceCreditProxies, EInitialVoiceCreditProxiesFactories, EDeploySteps, ESupportedChains, EChainId, Deployment, ContractStorage, ProofGenerator, TreeMerger, Prover, extractVerifyingKey, generateProofRapidSnark, generateProofSnarkjs, formatProofForVerifierContract, verifyProof, linkPoseidonLibraries, deployConstantInitialVoiceCreditProxyFactory, deployConstantInitialVoiceCreditProxy, deployMockVerifier, deployVerifyingKeysRegistry, deployVerifier, generateMaciStateFromContract, deployPoseidonContracts, deployERC20VotesPolicy, deployAnonAadhaarPolicy, deployEASSignUpPolicy, deployGitcoinPassportPolicy, deployMerkleProofPolicy, deploySemaphoreSignupPolicy, deployZupassSignUpPolicy, deployFreeForAllSignUpPolicy, deploySignupTokenPolicy, deployHatsSignupPolicy, deployContract, deployContractWithLinkedLibraries, getDeployedPolicyProxyFactories, getDefaultSigner, cleanThreads, unlinkFile, getBlockTimestamp, logGreen, logMagenta, logRed, logYellow, info, success, warning, error, generateEmptyBallotRoots, } from "@maci-protocol/contracts";
|
|
15
|
+
export type { FullProveResult, IGenerateProofsOptions, IGenerateProofsBatchData, IDeployParams, IMergeParams, IProveParams, IVerifyingKeyStruct, SnarkProof, IIpfsMessage, IDeployCloneArgs, } from "@maci-protocol/contracts";
|
|
16
16
|
export * from "@maci-protocol/contracts/typechain-types";
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
package/build/ts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,OAAO,EACL,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,0BAA0B,EAC1B,mCAAmC,EACnC,YAAY,EACZ,UAAU,EACV,eAAe,EACf,cAAc,EACd,UAAU,EACV,MAAM,EACN,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,8BAA8B,EAC9B,WAAW,EACX,qBAAqB,EACrB,qCAAqC,EACrC,kBAAkB,EAClB,2BAA2B,EAC3B,cAAc,EACd,6BAA6B,EAC7B,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,EACtB,cAAc,EACd,iCAAiC,EACjC,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,QAAQ,EACR,UAAU,EACV,MAAM,EACN,SAAS,EACT,IAAI,EACJ,OAAO,EACP,OAAO,EACP,KAAK,EACL,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,OAAO,EACL,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,0BAA0B,EAC1B,mCAAmC,EACnC,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,eAAe,EACf,cAAc,EACd,UAAU,EACV,MAAM,EACN,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,8BAA8B,EAC9B,WAAW,EACX,qBAAqB,EACrB,4CAA4C,EAC5C,qCAAqC,EACrC,kBAAkB,EAClB,2BAA2B,EAC3B,cAAc,EACd,6BAA6B,EAC7B,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,EACtB,cAAc,EACd,iCAAiC,EACjC,+BAA+B,EAC/B,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,QAAQ,EACR,UAAU,EACV,MAAM,EACN,SAAS,EACT,IAAI,EACJ,OAAO,EACP,O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