@maci-protocol/coordinator 0.0.0-ci.4bfa285 → 0.0.0-ci.4d0e3a3

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +224 -0
  2. package/README.md +60 -24
  3. package/build/hardhat.config.cjs +10 -8
  4. package/build/hardhat.config.cjs.map +1 -1
  5. package/build/hardhat.config.d.cts +6 -8
  6. package/build/hardhat.config.d.cts.map +1 -1
  7. package/build/tests/e2e.deploy.test.js +6 -6
  8. package/build/tests/e2e.deploy.test.js.map +1 -1
  9. package/build/ts/common/http.d.ts +6 -0
  10. package/build/ts/common/http.d.ts.map +1 -0
  11. package/build/ts/common/http.js +49 -0
  12. package/build/ts/common/http.js.map +1 -0
  13. package/build/ts/common/index.d.ts +1 -0
  14. package/build/ts/common/index.d.ts.map +1 -1
  15. package/build/ts/common/index.js +1 -0
  16. package/build/ts/common/index.js.map +1 -1
  17. package/build/ts/common/types.d.ts +2 -2
  18. package/build/ts/common/types.d.ts.map +1 -1
  19. package/build/ts/deployer/__tests__/deployer.service.test.js +2 -0
  20. package/build/ts/deployer/__tests__/deployer.service.test.js.map +1 -1
  21. package/build/ts/deployer/__tests__/utils.d.ts.map +1 -1
  22. package/build/ts/deployer/__tests__/utils.js +1 -8
  23. package/build/ts/deployer/__tests__/utils.js.map +1 -1
  24. package/build/ts/deployer/deployer.controller.d.ts.map +1 -1
  25. package/build/ts/deployer/deployer.controller.js +19 -6
  26. package/build/ts/deployer/deployer.controller.js.map +1 -1
  27. package/build/ts/deployer/deployer.service.d.ts.map +1 -1
  28. package/build/ts/deployer/deployer.service.js +9 -10
  29. package/build/ts/deployer/deployer.service.js.map +1 -1
  30. package/build/ts/deployer/types.d.ts +1 -1
  31. package/build/ts/deployer/types.d.ts.map +1 -1
  32. package/build/ts/main.js +1 -1
  33. package/build/ts/proof/__tests__/proof.controller.test.js +2 -2
  34. package/build/ts/proof/__tests__/proof.controller.test.js.map +1 -1
  35. package/build/ts/proof/proof.controller.d.ts.map +1 -1
  36. package/build/ts/proof/proof.controller.js +37 -11
  37. package/build/ts/proof/proof.controller.js.map +1 -1
  38. package/build/ts/scheduler/__tests__/scheduler.controller.test.js +3 -3
  39. package/build/ts/scheduler/__tests__/scheduler.controller.test.js.map +1 -1
  40. package/build/ts/scheduler/scheduler.controller.d.ts.map +1 -1
  41. package/build/ts/scheduler/scheduler.controller.js +13 -6
  42. package/build/ts/scheduler/scheduler.controller.js.map +1 -1
  43. package/build/ts/sessionKeys/provider/KernelEIP1193Provider.d.ts +1 -1
  44. package/build/ts/sessionKeys/provider/KernelEIP1193Provider.d.ts.map +1 -1
  45. package/build/ts/subgraph/__tests__/subgraph.controller.test.js +1 -1
  46. package/build/ts/subgraph/__tests__/subgraph.controller.test.js.map +1 -1
  47. package/build/ts/subgraph/subgraph.controller.d.ts.map +1 -1
  48. package/build/ts/subgraph/subgraph.controller.js +8 -3
  49. package/build/ts/subgraph/subgraph.controller.js.map +1 -1
  50. package/build/ts/subgraph/types.d.ts +1 -1
  51. package/build/ts/subgraph/types.d.ts.map +1 -1
  52. package/build/tsconfig.build.tsbuildinfo +1 -1
  53. package/package.json +15 -15
package/CHANGELOG.md CHANGED
@@ -3,6 +3,230 @@
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
+ ## 1.0.0 (2026-06-12)
7
+
8
+ * 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)
9
+ * chore: bump zerodev dependencies ([0e4caa8](https://github.com/privacy-scaling-explorations/maci/commit/0e4caa8))
10
+ * chore: cleanup config files and package.json ([25c22dc](https://github.com/privacy-scaling-explorations/maci/commit/25c22dc))
11
+ * chore: explicity define packages as not private ([1736fec](https://github.com/privacy-scaling-explorations/maci/commit/1736fec))
12
+ * chore: move e2e tests for coordinator to nightly jobs ([c43fb8f](https://github.com/privacy-scaling-explorations/maci/commit/c43fb8f))
13
+ * 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)
14
+ * chore: remove private packages ([6d7801d](https://github.com/privacy-scaling-explorations/maci/commit/6d7801d))
15
+ * chore: sync nestjs dependencies versions ([9c66b33](https://github.com/privacy-scaling-explorations/maci/commit/9c66b33))
16
+ * chore: use type imports ([9da523a](https://github.com/privacy-scaling-explorations/maci/commit/9da523a))
17
+ * chore(deps-dev): bump @nestjs packages ([a17c5e7](https://github.com/privacy-scaling-explorations/maci/commit/a17c5e7))
18
+ * chore(deps-dev): bump @nestjs/cli from 11.0.4 to 11.0.5 ([159c4d3](https://github.com/privacy-scaling-explorations/maci/commit/159c4d3))
19
+ * chore(deps-dev): bump @nestjs/cli from 11.0.5 to 11.0.6 ([e985a16](https://github.com/privacy-scaling-explorations/maci/commit/e985a16))
20
+ * chore(deps-dev): bump @nestjs/cli from 11.0.6 to 11.0.7 ([6ff8616](https://github.com/privacy-scaling-explorations/maci/commit/6ff8616))
21
+ * chore(deps-dev): bump @nestjs/schematics from 11.0.1 to 11.0.2 ([25d7e15](https://github.com/privacy-scaling-explorations/maci/commit/25d7e15))
22
+ * chore(deps-dev): bump @nestjs/schematics from 11.0.2 to 11.0.3 ([0fd3f7a](https://github.com/privacy-scaling-explorations/maci/commit/0fd3f7a))
23
+ * chore(deps-dev): bump @nestjs/schematics from 11.0.3 to 11.0.4 ([4743d9a](https://github.com/privacy-scaling-explorations/maci/commit/4743d9a))
24
+ * chore(deps-dev): bump @nestjs/schematics from 11.0.4 to 11.0.5 ([bb3364e](https://github.com/privacy-scaling-explorations/maci/commit/bb3364e))
25
+ * chore(deps-dev): bump @nestjs/testing from 10.4.15 to 11.0.11 ([63bb589](https://github.com/privacy-scaling-explorations/maci/commit/63bb589))
26
+ * chore(deps-dev): bump @nestjs/testing from 11.0.12 to 11.0.13 ([df80da8](https://github.com/privacy-scaling-explorations/maci/commit/df80da8))
27
+ * chore(deps-dev): bump @nestjs/testing from 11.0.13 to 11.0.17 ([82dd78b](https://github.com/privacy-scaling-explorations/maci/commit/82dd78b))
28
+ * chore(deps-dev): bump @nestjs/testing from 11.0.17 to 11.0.19 ([a2df507](https://github.com/privacy-scaling-explorations/maci/commit/a2df507))
29
+ * chore(deps-dev): bump @nestjs/testing from 11.0.19 to 11.0.20 ([691fca4](https://github.com/privacy-scaling-explorations/maci/commit/691fca4))
30
+ * chore(deps-dev): bump @nestjs/testing from 11.0.20 to 11.1.0 ([2b9e063](https://github.com/privacy-scaling-explorations/maci/commit/2b9e063))
31
+ * chore(deps-dev): bump @nestjs/testing from 11.1.0 to 11.1.3 (#2526) ([6a4db66](https://github.com/privacy-scaling-explorations/maci/commit/6a4db66)), closes [#2526](https://github.com/privacy-scaling-explorations/maci/issues/2526)
32
+ * chore(deps-dev): bump @nestjs/testing from 11.1.3 to 11.1.5 ([01ee5cc](https://github.com/privacy-scaling-explorations/maci/commit/01ee5cc))
33
+ * chore(deps-dev): bump @types/express from 4.17.21 to 5.0.0 ([8b2d43a](https://github.com/privacy-scaling-explorations/maci/commit/8b2d43a))
34
+ * chore(deps-dev): bump @types/express from 5.0.0 to 5.0.1 (#2291) ([a0011c5](https://github.com/privacy-scaling-explorations/maci/commit/a0011c5)), closes [#2291](https://github.com/privacy-scaling-explorations/maci/issues/2291)
35
+ * chore(deps-dev): bump @types/express from 5.0.1 to 5.0.3 ([b81af04](https://github.com/privacy-scaling-explorations/maci/commit/b81af04))
36
+ * chore(deps-dev): bump @types/jest from 29.5.14 to 30.0.0 ([16f466f](https://github.com/privacy-scaling-explorations/maci/commit/16f466f))
37
+ * chore(deps-dev): bump @types/node from 20.17.19 to 22.13.9 ([aa7c356](https://github.com/privacy-scaling-explorations/maci/commit/aa7c356))
38
+ * chore(deps-dev): bump @types/node from 22.13.17 to 22.14.0 ([3434168](https://github.com/privacy-scaling-explorations/maci/commit/3434168))
39
+ * 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)
40
+ * chore(deps-dev): bump @types/node from 22.14.0 to 22.14.1 ([38f0947](https://github.com/privacy-scaling-explorations/maci/commit/38f0947))
41
+ * chore(deps-dev): bump @types/node from 22.14.1 to 22.15.3 ([430d214](https://github.com/privacy-scaling-explorations/maci/commit/430d214))
42
+ * chore(deps-dev): bump @types/node from 22.15.17 to 24.0.1 ([33485a5](https://github.com/privacy-scaling-explorations/maci/commit/33485a5))
43
+ * chore(deps-dev): bump @types/node from 22.15.8 to 22.15.17 ([b144ca2](https://github.com/privacy-scaling-explorations/maci/commit/b144ca2))
44
+ * chore(deps-dev): bump @types/node from 24.0.1 to 24.0.3 ([834943a](https://github.com/privacy-scaling-explorations/maci/commit/834943a))
45
+ * chore(deps-dev): bump @types/node from 24.0.12 to 24.0.13 ([f85b4b1](https://github.com/privacy-scaling-explorations/maci/commit/f85b4b1))
46
+ * 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)
47
+ * chore(deps-dev): bump @types/node from 24.0.3 to 24.0.4 ([a00ce55](https://github.com/privacy-scaling-explorations/maci/commit/a00ce55))
48
+ * chore(deps-dev): bump @types/node from 24.0.4 to 24.0.7 ([fbbe0a7](https://github.com/privacy-scaling-explorations/maci/commit/fbbe0a7))
49
+ * 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)
50
+ * chore(deps-dev): bump fast-check from 3.23.2 to 4.0.0 ([266738d](https://github.com/privacy-scaling-explorations/maci/commit/266738d))
51
+ * chore(deps-dev): bump fast-check from 4.0.1 to 4.1.0 ([a224917](https://github.com/privacy-scaling-explorations/maci/commit/a224917))
52
+ * chore(deps-dev): bump fast-check from 4.1.0 to 4.1.1 ([e1fcaee](https://github.com/privacy-scaling-explorations/maci/commit/e1fcaee))
53
+ * chore(deps-dev): bump fast-check from 4.1.1 to 4.2.0 ([b222ed8](https://github.com/privacy-scaling-explorations/maci/commit/b222ed8))
54
+ * chore(deps-dev): bump jest from 29.7.0 to 30.0.0 ([7fd6037](https://github.com/privacy-scaling-explorations/maci/commit/7fd6037))
55
+ * chore(deps-dev): bump jest from 30.0.0 to 30.0.3 ([cfc7238](https://github.com/privacy-scaling-explorations/maci/commit/cfc7238))
56
+ * 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)
57
+ * chore(deps-dev): bump jest from 30.0.4 to 30.2.0 ([b020e46](https://github.com/privacy-scaling-explorations/maci/commit/b020e46))
58
+ * chore(deps-dev): bump supertest from 7.1.0 to 7.1.1 ([17f099e](https://github.com/privacy-scaling-explorations/maci/commit/17f099e))
59
+ * chore(deps-dev): bump supertest from 7.1.1 to 7.1.3 (#2625) ([6c2ffeb](https://github.com/privacy-scaling-explorations/maci/commit/6c2ffeb)), closes [#2625](https://github.com/privacy-scaling-explorations/maci/issues/2625)
60
+ * chore(deps-dev): bump supertest from 7.1.3 to 7.1.4 ([f211173](https://github.com/privacy-scaling-explorations/maci/commit/f211173))
61
+ * chore(deps-dev): bump ts-jest from 29.2.5 to 29.2.6 ([aaf7978](https://github.com/privacy-scaling-explorations/maci/commit/aaf7978))
62
+ * 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)
63
+ * chore(deps-dev): bump ts-jest from 29.3.1 to 29.3.2 ([2e4cf7e](https://github.com/privacy-scaling-explorations/maci/commit/2e4cf7e))
64
+ * chore(deps-dev): bump ts-jest from 29.3.2 to 29.3.4 ([ff66a03](https://github.com/privacy-scaling-explorations/maci/commit/ff66a03))
65
+ * chore(deps-dev): bump ts-jest from 29.3.4 to 29.4.0 ([0bf8810](https://github.com/privacy-scaling-explorations/maci/commit/0bf8810))
66
+ * chore(deps-dev): bump ts-jest from 29.4.0 to 29.4.1 ([7ce80f9](https://github.com/privacy-scaling-explorations/maci/commit/7ce80f9))
67
+ * chore(deps-dev): bump typescript from 5.7.3 to 5.8.2 ([e37f1bf](https://github.com/privacy-scaling-explorations/maci/commit/e37f1bf))
68
+ * chore(deps-dev): bump typescript from 5.8.2 to 5.8.3 ([048cefc](https://github.com/privacy-scaling-explorations/maci/commit/048cefc))
69
+ * chore(deps-dev): bump typescript from 5.8.3 to 5.9.2 ([17e4a70](https://github.com/privacy-scaling-explorations/maci/commit/17e4a70))
70
+ * chore(deps): bump @graphprotocol/graph-cli from 0.79.2 to 0.96.0 ([b782da5](https://github.com/privacy-scaling-explorations/maci/commit/b782da5))
71
+ * chore(deps): bump @graphprotocol/graph-cli from 0.96.0 to 0.97.0 ([b3f22af](https://github.com/privacy-scaling-explorations/maci/commit/b3f22af))
72
+ * chore(deps): bump @graphprotocol/graph-cli from 0.97.0 to 0.97.1 ([8f6952e](https://github.com/privacy-scaling-explorations/maci/commit/8f6952e))
73
+ * chore(deps): bump @nestjs/common from 10.4.15 to 11.0.11 ([1a1256d](https://github.com/privacy-scaling-explorations/maci/commit/1a1256d))
74
+ * chore(deps): bump @nestjs/common from 11.0.11 to 11.0.12 ([79f3f53](https://github.com/privacy-scaling-explorations/maci/commit/79f3f53))
75
+ * chore(deps): bump @nestjs/common from 11.0.12 to 11.0.13 ([e790c27](https://github.com/privacy-scaling-explorations/maci/commit/e790c27))
76
+ * chore(deps): bump @nestjs/common from 11.0.16 to 11.0.17 ([02563ea](https://github.com/privacy-scaling-explorations/maci/commit/02563ea))
77
+ * chore(deps): bump @nestjs/common from 11.0.17 to 11.0.20 ([b09c91b](https://github.com/privacy-scaling-explorations/maci/commit/b09c91b))
78
+ * chore(deps): bump @nestjs/common from 11.0.20 to 11.1.0 ([6871839](https://github.com/privacy-scaling-explorations/maci/commit/6871839))
79
+ * chore(deps): bump @nestjs/common from 11.1.0 to 11.1.3 (#2530) ([16017f7](https://github.com/privacy-scaling-explorations/maci/commit/16017f7)), closes [#2530](https://github.com/privacy-scaling-explorations/maci/issues/2530)
80
+ * chore(deps): bump @nestjs/common from 11.1.3 to 11.1.5 (#2660) ([66f9b31](https://github.com/privacy-scaling-explorations/maci/commit/66f9b31)), closes [#2660](https://github.com/privacy-scaling-explorations/maci/issues/2660)
81
+ * chore(deps): bump @nestjs/core from 10.4.15 to 11.0.11 ([061c778](https://github.com/privacy-scaling-explorations/maci/commit/061c778))
82
+ * chore(deps): bump @nestjs/core from 11.0.12 to 11.0.13 ([d928ede](https://github.com/privacy-scaling-explorations/maci/commit/d928ede))
83
+ * chore(deps): bump @nestjs/core from 11.0.13 to 11.0.17 ([84ffa4c](https://github.com/privacy-scaling-explorations/maci/commit/84ffa4c))
84
+ * chore(deps): bump @nestjs/core from 11.0.17 to 11.0.19 ([52ec7c3](https://github.com/privacy-scaling-explorations/maci/commit/52ec7c3))
85
+ * chore(deps): bump @nestjs/core from 11.0.19 to 11.0.20 ([162480f](https://github.com/privacy-scaling-explorations/maci/commit/162480f))
86
+ * chore(deps): bump @nestjs/core from 11.0.20 to 11.1.0 ([2e40b41](https://github.com/privacy-scaling-explorations/maci/commit/2e40b41))
87
+ * chore(deps): bump @nestjs/core from 11.1.0 to 11.1.3 (#2531) ([efbbb42](https://github.com/privacy-scaling-explorations/maci/commit/efbbb42)), closes [#2531](https://github.com/privacy-scaling-explorations/maci/issues/2531)
88
+ * chore(deps): bump @nestjs/platform-express from 10.4.15 to 11.0.11 ([12fb1d4](https://github.com/privacy-scaling-explorations/maci/commit/12fb1d4))
89
+ * chore(deps): bump @nestjs/platform-express from 11.0.11 to 11.0.12 (#2290) ([5a311bc](https://github.com/privacy-scaling-explorations/maci/commit/5a311bc)), closes [#2290](https://github.com/privacy-scaling-explorations/maci/issues/2290)
90
+ * chore(deps): bump @nestjs/platform-express from 11.0.12 to 11.0.13 ([84efdbe](https://github.com/privacy-scaling-explorations/maci/commit/84efdbe))
91
+ * chore(deps): bump @nestjs/platform-express from 11.0.13 to 11.0.19 ([e330198](https://github.com/privacy-scaling-explorations/maci/commit/e330198))
92
+ * chore(deps): bump @nestjs/platform-express from 11.0.19 to 11.0.20 ([22243d4](https://github.com/privacy-scaling-explorations/maci/commit/22243d4))
93
+ * chore(deps): bump @nestjs/platform-express from 11.0.20 to 11.1.0 ([5c43ea2](https://github.com/privacy-scaling-explorations/maci/commit/5c43ea2))
94
+ * chore(deps): bump @nestjs/platform-express from 11.1.0 to 11.1.1 ([e55ce30](https://github.com/privacy-scaling-explorations/maci/commit/e55ce30))
95
+ * chore(deps): bump @nestjs/platform-express from 11.1.1 to 11.1.2 ([021c702](https://github.com/privacy-scaling-explorations/maci/commit/021c702))
96
+ * chore(deps): bump @nestjs/platform-express from 11.1.2 to 11.1.3 ([ff9e5be](https://github.com/privacy-scaling-explorations/maci/commit/ff9e5be))
97
+ * chore(deps): bump @nestjs/platform-express from 11.1.5 to 11.1.6 ([ebabca9](https://github.com/privacy-scaling-explorations/maci/commit/ebabca9))
98
+ * chore(deps): bump @nestjs/platform-socket.io from 10.4.15 to 11.0.11 ([23ff1f2](https://github.com/privacy-scaling-explorations/maci/commit/23ff1f2))
99
+ * chore(deps): bump @nestjs/platform-socket.io from 11.0.12 to 11.0.13 ([be96a25](https://github.com/privacy-scaling-explorations/maci/commit/be96a25))
100
+ * chore(deps): bump @nestjs/platform-socket.io from 11.0.13 to 11.0.17 ([7f11eb8](https://github.com/privacy-scaling-explorations/maci/commit/7f11eb8))
101
+ * chore(deps): bump @nestjs/platform-socket.io from 11.0.17 to 11.0.20 ([2760456](https://github.com/privacy-scaling-explorations/maci/commit/2760456))
102
+ * chore(deps): bump @nestjs/platform-socket.io from 11.0.20 to 11.1.0 ([8302a2e](https://github.com/privacy-scaling-explorations/maci/commit/8302a2e))
103
+ * chore(deps): bump @nestjs/platform-socket.io from 11.1.0 to 11.1.3 ([b850f38](https://github.com/privacy-scaling-explorations/maci/commit/b850f38))
104
+ * chore(deps): bump @nestjs/platform-socket.io from 11.1.5 to 11.1.6 ([b6736f7](https://github.com/privacy-scaling-explorations/maci/commit/b6736f7))
105
+ * chore(deps): bump @nestjs/swagger from 11.1.0 to 11.1.1 ([7fc6d73](https://github.com/privacy-scaling-explorations/maci/commit/7fc6d73))
106
+ * chore(deps): bump @nestjs/swagger from 11.1.1 to 11.1.3 ([535687d](https://github.com/privacy-scaling-explorations/maci/commit/535687d))
107
+ * chore(deps): bump @nestjs/swagger from 11.1.3 to 11.1.4 ([a488d6e](https://github.com/privacy-scaling-explorations/maci/commit/a488d6e))
108
+ * chore(deps): bump @nestjs/swagger from 11.1.4 to 11.1.5 ([e2e735c](https://github.com/privacy-scaling-explorations/maci/commit/e2e735c))
109
+ * chore(deps): bump @nestjs/swagger from 11.1.5 to 11.2.0 ([7fed6f4](https://github.com/privacy-scaling-explorations/maci/commit/7fed6f4))
110
+ * chore(deps): bump @nestjs/swagger from 8.1.1 to 11.0.6 ([4e8aca9](https://github.com/privacy-scaling-explorations/maci/commit/4e8aca9))
111
+ * chore(deps): bump @nestjs/websockets from 11.0.12 to 11.0.13 ([8ffaa34](https://github.com/privacy-scaling-explorations/maci/commit/8ffaa34))
112
+ * chore(deps): bump @nestjs/websockets from 11.0.13 to 11.0.17 ([69f736f](https://github.com/privacy-scaling-explorations/maci/commit/69f736f))
113
+ * chore(deps): bump @nestjs/websockets from 11.0.17 to 11.0.20 ([14942c2](https://github.com/privacy-scaling-explorations/maci/commit/14942c2))
114
+ * chore(deps): bump @nestjs/websockets from 11.0.20 to 11.1.0 ([d9d7d6c](https://github.com/privacy-scaling-explorations/maci/commit/d9d7d6c))
115
+ * chore(deps): bump @nestjs/websockets from 11.1.0 to 11.1.2 ([950486a](https://github.com/privacy-scaling-explorations/maci/commit/950486a))
116
+ * chore(deps): bump @nestjs/websockets from 11.1.2 to 11.1.3 ([6011c54](https://github.com/privacy-scaling-explorations/maci/commit/6011c54))
117
+ * chore(deps): bump @nestjs/websockets from 11.1.5 to 11.1.6 (#2751) ([17f017c](https://github.com/privacy-scaling-explorations/maci/commit/17f017c)), closes [#2751](https://github.com/privacy-scaling-explorations/maci/issues/2751)
118
+ * chore(deps): bump @nomicfoundation/hardhat-ethers from 3.0.8 to 3.0.9 (#2529) ([4946891](https://github.com/privacy-scaling-explorations/maci/commit/4946891)), closes [#2529](https://github.com/privacy-scaling-explorations/maci/issues/2529)
119
+ * chore(deps): bump @nomicfoundation/hardhat-ethers from 3.0.9 to 3.1.0 ([a1ac5d8](https://github.com/privacy-scaling-explorations/maci/commit/a1ac5d8))
120
+ * chore(deps): bump @nomicfoundation/hardhat-toolbox from 5.0.0 to 6.0.0 ([efc5e53](https://github.com/privacy-scaling-explorations/maci/commit/efc5e53))
121
+ * chore(deps): bump @nomicfoundation/hardhat-toolbox from 6.0.0 to 6.1.0 ([30d53d5](https://github.com/privacy-scaling-explorations/maci/commit/30d53d5))
122
+ * chore(deps): bump @redis/client from 5.6.0 to 5.8.2 (#2750) ([9819a21](https://github.com/privacy-scaling-explorations/maci/commit/9819a21)), closes [#2750](https://github.com/privacy-scaling-explorations/maci/issues/2750)
123
+ * chore(deps): bump @redis/client from 5.8.2 to 5.8.3 ([6686f71](https://github.com/privacy-scaling-explorations/maci/commit/6686f71))
124
+ * chore(deps): bump @types/node to 24.11.0 ([36f727b](https://github.com/privacy-scaling-explorations/maci/commit/36f727b))
125
+ * chore(deps): bump @vercel/blob from 0.27.1 to 0.27.2 ([67a6ab8](https://github.com/privacy-scaling-explorations/maci/commit/67a6ab8))
126
+ * chore(deps): bump @zerodev/ecdsa-validator from 5.4.4 to 5.4.5 ([db407eb](https://github.com/privacy-scaling-explorations/maci/commit/db407eb))
127
+ * chore(deps): bump @zerodev/ecdsa-validator from 5.4.5 to 5.4.8 ([88854c2](https://github.com/privacy-scaling-explorations/maci/commit/88854c2))
128
+ * chore(deps): bump @zerodev/permissions from 5.5.10 to 5.5.11 ([9c915f5](https://github.com/privacy-scaling-explorations/maci/commit/9c915f5))
129
+ * chore(deps): bump @zerodev/permissions from 5.5.11 to 5.5.12 ([477acb0](https://github.com/privacy-scaling-explorations/maci/commit/477acb0))
130
+ * chore(deps): bump @zerodev/permissions from 5.5.12 to 5.5.14 (#2694) ([02439c0](https://github.com/privacy-scaling-explorations/maci/commit/02439c0)), closes [#2694](https://github.com/privacy-scaling-explorations/maci/issues/2694)
131
+ * chore(deps): bump @zerodev/permissions from 5.5.2 to 5.5.3 ([bff258f](https://github.com/privacy-scaling-explorations/maci/commit/bff258f))
132
+ * chore(deps): bump @zerodev/permissions from 5.5.3 to 5.5.4 ([1c6dfa2](https://github.com/privacy-scaling-explorations/maci/commit/1c6dfa2))
133
+ * chore(deps): bump @zerodev/permissions from 5.5.5 to 5.5.8 ([7e7cb95](https://github.com/privacy-scaling-explorations/maci/commit/7e7cb95))
134
+ * chore(deps): bump @zerodev/permissions from 5.5.8 to 5.5.9 ([5a13357](https://github.com/privacy-scaling-explorations/maci/commit/5a13357))
135
+ * chore(deps): bump @zerodev/permissions from 5.5.9 to 5.5.10 ([d0ed756](https://github.com/privacy-scaling-explorations/maci/commit/d0ed756))
136
+ * chore(deps): bump @zerodev/sdk from 5.4.26 to 5.4.34 ([7954466](https://github.com/privacy-scaling-explorations/maci/commit/7954466))
137
+ * chore(deps): bump @zerodev/sdk from 5.4.34 to 5.4.36 ([8ad68c7](https://github.com/privacy-scaling-explorations/maci/commit/8ad68c7))
138
+ * chore(deps): bump @zerodev/sdk from 5.4.36 to 5.4.39 ([2319be7](https://github.com/privacy-scaling-explorations/maci/commit/2319be7))
139
+ * chore(deps): bump @zerodev/sdk from 5.4.39 to 5.4.40 ([a5e032c](https://github.com/privacy-scaling-explorations/maci/commit/a5e032c))
140
+ * chore(deps): bump @zerodev/sdk from 5.4.40 to 5.4.41 ([ca39a60](https://github.com/privacy-scaling-explorations/maci/commit/ca39a60))
141
+ * chore(deps): bump class-validator from 0.14.1 to 0.14.2 ([18d26a9](https://github.com/privacy-scaling-explorations/maci/commit/18d26a9))
142
+ * chore(deps): bump dotenv from 16.4.7 to 16.5.0 ([5a51cba](https://github.com/privacy-scaling-explorations/maci/commit/5a51cba))
143
+ * chore(deps): bump dotenv from 16.5.0 to 17.0.0 ([4a0cb2e](https://github.com/privacy-scaling-explorations/maci/commit/4a0cb2e))
144
+ * chore(deps): bump dotenv from 17.0.0 to 17.0.1 ([d8f0253](https://github.com/privacy-scaling-explorations/maci/commit/d8f0253))
145
+ * chore(deps): bump dotenv from 17.1.0 to 17.2.0 ([baaf672](https://github.com/privacy-scaling-explorations/maci/commit/baaf672))
146
+ * chore(deps): bump dotenv from 17.2.0 to 17.2.2 ([7bd56d2](https://github.com/privacy-scaling-explorations/maci/commit/7bd56d2))
147
+ * chore(deps): bump ethers from 6.13.5 to 6.13.7 ([ea37135](https://github.com/privacy-scaling-explorations/maci/commit/ea37135))
148
+ * chore(deps): bump ethers from 6.13.7 to 6.14.0 ([e806553](https://github.com/privacy-scaling-explorations/maci/commit/e806553))
149
+ * chore(deps): bump ethers from 6.14.0 to 6.14.3 ([05118f4](https://github.com/privacy-scaling-explorations/maci/commit/05118f4))
150
+ * chore(deps): bump ethers from 6.14.3 to 6.14.4 ([00bccaa](https://github.com/privacy-scaling-explorations/maci/commit/00bccaa))
151
+ * chore(deps): bump ethers from 6.14.4 to 6.15.0 ([525ff51](https://github.com/privacy-scaling-explorations/maci/commit/525ff51))
152
+ * chore(deps): bump hardhat from 2.22.18 to 2.22.19 ([49af291](https://github.com/privacy-scaling-explorations/maci/commit/49af291))
153
+ * chore(deps): bump hardhat from 2.22.19 to 2.23.0 ([38bc36f](https://github.com/privacy-scaling-explorations/maci/commit/38bc36f))
154
+ * chore(deps): bump hardhat from 2.23.0 to 2.24.0 ([37f2b85](https://github.com/privacy-scaling-explorations/maci/commit/37f2b85))
155
+ * chore(deps): bump hardhat from 2.24.1 to 2.24.3 ([3727b4e](https://github.com/privacy-scaling-explorations/maci/commit/3727b4e))
156
+ * chore(deps): bump hardhat from 2.24.3 to 2.25.0 ([333297e](https://github.com/privacy-scaling-explorations/maci/commit/333297e))
157
+ * chore(deps): bump helmet from 8.0.0 to 8.1.0 ([9e544e2](https://github.com/privacy-scaling-explorations/maci/commit/9e544e2))
158
+ * chore(deps): bump rxjs from 7.8.1 to 7.8.2 ([e683e9e](https://github.com/privacy-scaling-explorations/maci/commit/e683e9e))
159
+ * chore(deps): bump tar from 7.4.3 to 7.5.1 ([a3a9b1b](https://github.com/privacy-scaling-explorations/maci/commit/a3a9b1b))
160
+ * chore(deps): bump viem from 2.23.2 to 2.23.5 ([d19cb50](https://github.com/privacy-scaling-explorations/maci/commit/d19cb50))
161
+ * chore(deps): bump viem from 2.23.5 to 2.23.6 ([63d15a0](https://github.com/privacy-scaling-explorations/maci/commit/63d15a0))
162
+ * chore(deps): bump viem from 2.23.6 to 2.23.9 (#2239) ([64eb1e0](https://github.com/privacy-scaling-explorations/maci/commit/64eb1e0)), closes [#2239](https://github.com/privacy-scaling-explorations/maci/issues/2239)
163
+ * chore(deps): bump viem from 2.23.9 to 2.23.12 ([d055307](https://github.com/privacy-scaling-explorations/maci/commit/d055307))
164
+ * chore(deps): bump viem from 2.24.3 to 2.25.0 ([c1f0d4f](https://github.com/privacy-scaling-explorations/maci/commit/c1f0d4f))
165
+ * chore(deps): bump viem from 2.25.0 to 2.26.0 ([0bb6d26](https://github.com/privacy-scaling-explorations/maci/commit/0bb6d26))
166
+ * chore(deps): bump viem from 2.26.0 to 2.27.0 ([7870562](https://github.com/privacy-scaling-explorations/maci/commit/7870562))
167
+ * chore(deps): bump viem from 2.27.0 to 2.29.1 ([e103f9f](https://github.com/privacy-scaling-explorations/maci/commit/e103f9f))
168
+ * chore(deps): bump viem from 2.29.1 to 2.29.2 ([d2860cd](https://github.com/privacy-scaling-explorations/maci/commit/d2860cd))
169
+ * chore(deps): bump viem from 2.29.2 to 2.31.0 ([9d45d02](https://github.com/privacy-scaling-explorations/maci/commit/9d45d02))
170
+ * chore(deps): bump viem from 2.31.2 to 2.31.3 ([f065412](https://github.com/privacy-scaling-explorations/maci/commit/f065412))
171
+ * chore(deps): bump viem from 2.31.3 to 2.31.4 ([d97452c](https://github.com/privacy-scaling-explorations/maci/commit/d97452c))
172
+ * chore(deps): bump viem from 2.31.4 to 2.31.6 ([8f03a39](https://github.com/privacy-scaling-explorations/maci/commit/8f03a39))
173
+ * chore(deps): bump viem from 2.31.6 to 2.31.7 ([a00c326](https://github.com/privacy-scaling-explorations/maci/commit/a00c326))
174
+ * chore(deps): bump viem from 2.31.7 to 2.33.2 (#2698) ([01abbc7](https://github.com/privacy-scaling-explorations/maci/commit/01abbc7)), closes [#2698](https://github.com/privacy-scaling-explorations/maci/issues/2698)
175
+ * chore(website): coordinator docs and blog ([d8d79a3](https://github.com/privacy-scaling-explorations/maci/commit/d8d79a3))
176
+ * 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)
177
+ * refactor: expand shorthand variables to full names ([75547c0](https://github.com/privacy-scaling-explorations/maci/commit/75547c0))
178
+ * refactor: rename from short to full names ([120cffa](https://github.com/privacy-scaling-explorations/maci/commit/120cffa))
179
+ * 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)
180
+ * refactor(circuits): rename circuits signal inputs and move templates ([c2f4e36](https://github.com/privacy-scaling-explorations/maci/commit/c2f4e36))
181
+ * 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)
182
+ * fix: coordinator workflow for dependabot and external collaborators ([713963e](https://github.com/privacy-scaling-explorations/maci/commit/713963e))
183
+ * fix: nightly workflows ([0729bfd](https://github.com/privacy-scaling-explorations/maci/commit/0729bfd))
184
+ * fix: nightly workflows and coordinator e2e ([45931d0](https://github.com/privacy-scaling-explorations/maci/commit/45931d0))
185
+ * fix: set default port to 3001 ([e9dbefd](https://github.com/privacy-scaling-explorations/maci/commit/e9dbefd))
186
+ * fix: typos for crate-ci/typos ([a052103](https://github.com/privacy-scaling-explorations/maci/commit/a052103))
187
+ * fix(coordinator): allow reuse of poseidon addresses ([87c3d60](https://github.com/privacy-scaling-explorations/maci/commit/87c3d60))
188
+ * fix(coordinator): modify getAll to return keys and values ([5c51e71](https://github.com/privacy-scaling-explorations/maci/commit/5c51e71))
189
+ * fix(coordinator): remove permissionless dependency (#2416) ([85bba2d](https://github.com/privacy-scaling-explorations/maci/commit/85bba2d)), closes [#2416](https://github.com/privacy-scaling-explorations/maci/issues/2416)
190
+ * fix(coordinator): support local run for e2e tests ([92f5615](https://github.com/privacy-scaling-explorations/maci/commit/92f5615))
191
+ * fix(coordinator): use appropriate HTTP status codes across endpoints ([fef4e1c](https://github.com/privacy-scaling-explorations/maci/commit/fef4e1c))
192
+ * fix(sdk): remove stateIndex from joinPoll + verify in ETH sepolia ([c48f9f6](https://github.com/privacy-scaling-explorations/maci/commit/c48f9f6))
193
+ * feat: add erc20Votes policy deployment ([77e3a65](https://github.com/privacy-scaling-explorations/maci/commit/77e3a65))
194
+ * feat: add message processor for full voice credits mode ([d7f4240](https://github.com/privacy-scaling-explorations/maci/commit/d7f4240))
195
+ * feat: add poll state tree depth ([3d74d4b](https://github.com/privacy-scaling-explorations/maci/commit/3d74d4b))
196
+ * feat: deploy initial voice credit proxy factory with maci tasks ([3b5aa65](https://github.com/privacy-scaling-explorations/maci/commit/3b5aa65))
197
+ * feat: make ESupportedChains exportable so apps can use it ([b474a0c](https://github.com/privacy-scaling-explorations/maci/commit/b474a0c))
198
+ * feat: use excubiae policies instead of gatekeepers ([a2319b1](https://github.com/privacy-scaling-explorations/maci/commit/a2319b1))
199
+ * 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)
200
+ * feat(contracts): add checker and deployment for proxy gatekeepers ([87f6d3b](https://github.com/privacy-scaling-explorations/maci/commit/87f6d3b))
201
+ * feat(contracts): add eas gatekeeper checker ([6e90591](https://github.com/privacy-scaling-explorations/maci/commit/6e90591))
202
+ * feat(contracts): add hats gatekeeper checker ([8ba97ae](https://github.com/privacy-scaling-explorations/maci/commit/8ba97ae))
203
+ * feat(contracts): add proxy clone for initial voice credit proxy ([52d5c0d](https://github.com/privacy-scaling-explorations/maci/commit/52d5c0d))
204
+ * feat(contracts): integrate erc20 policy ([28d7bfc](https://github.com/privacy-scaling-explorations/maci/commit/28d7bfc))
205
+ * feat(contracts): integrate excubiae for gatekeepers ([fae260b](https://github.com/privacy-scaling-explorations/maci/commit/fae260b))
206
+ * feat(contracts): store verifier and verifying keys in maci contract ([f3de633](https://github.com/privacy-scaling-explorations/maci/commit/f3de633))
207
+ * feat(contracts): support etherscan v2 ([b419b9b](https://github.com/privacy-scaling-explorations/maci/commit/b419b9b))
208
+ * feat(coordinator): add redis module ([a943051](https://github.com/privacy-scaling-explorations/maci/commit/a943051))
209
+ * feat(coordinator): add workflow + health check ([6009fca](https://github.com/privacy-scaling-explorations/maci/commit/6009fca))
210
+ * feat(coordinator): changes to use it with Aragon UI ([15a0b9e](https://github.com/privacy-scaling-explorations/maci/commit/15a0b9e))
211
+ * feat(coordinator): finalize function in scheduler ([0196976](https://github.com/privacy-scaling-explorations/maci/commit/0196976))
212
+ * feat(coordinator): scheduler module ([4dbcc36](https://github.com/privacy-scaling-explorations/maci/commit/4dbcc36))
213
+ * feat(coordinator): submit on chain using SDK ([a8fac26](https://github.com/privacy-scaling-explorations/maci/commit/a8fac26))
214
+ * feat(coordinator): update function in redis + adapt tests and utils ([963fc9e](https://github.com/privacy-scaling-explorations/maci/commit/963fc9e))
215
+ * feat(coordinator): workflow + fixed tests + reuse factories ([0b0bd93](https://github.com/privacy-scaling-explorations/maci/commit/0b0bd93))
216
+ * feat(deployer): add service in maci repo ([3cbf167](https://github.com/privacy-scaling-explorations/maci/commit/3cbf167))
217
+ * feat(sdk): setVerifyingKeys for multiple modes ([cd55263](https://github.com/privacy-scaling-explorations/maci/commit/cd55263))
218
+ * test: add stress tests for all the modes ([f7e8c46](https://github.com/privacy-scaling-explorations/maci/commit/f7e8c46))
219
+ * test(coordinator): use mocks and run unit tests locally ([a699a4b](https://github.com/privacy-scaling-explorations/maci/commit/a699a4b))
220
+ * docs: add entries for coordinator and relayer services ([737e673](https://github.com/privacy-scaling-explorations/maci/commit/737e673))
221
+ * docs: add full credits information ([e65476e](https://github.com/privacy-scaling-explorations/maci/commit/e65476e))
222
+ * docs: update README links (#2352) ([533e19d](https://github.com/privacy-scaling-explorations/maci/commit/533e19d)), closes [#2352](https://github.com/privacy-scaling-explorations/maci/issues/2352)
223
+ * 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)
224
+ * docs: update v3 docs with policy contracts ([914c51c](https://github.com/privacy-scaling-explorations/maci/commit/914c51c))
225
+
226
+
227
+
228
+
229
+
6
230
  ## [3.0.0](https://github.com/privacy-scaling-explorations/maci/compare/v2.5.0...v3.0.0) (2025-03-28)
7
231
 
8
232
 
package/README.md CHANGED
@@ -7,45 +7,53 @@ Please refer to [Offchain relayer service documentation](https://maci.pse.dev/do
7
7
  1. [Node.js](https://nodejs.org/en) version 20.0.0.
8
8
  2. [pnpm](https://pnpm.io/installation) package manager.
9
9
  3. [rapidsnark](https://github.com/iden3/rapidsnark) program.
10
+ 4. (Optional) [Redis](https://redis.io/docs/latest/operate/oss_and_stack/install/archive/install-redis/) database if you want to use the scheduler module.
10
11
 
11
- ## Instructions
12
+ - Please note that the build process might fail in a Windows environment. If you are using Windows, it is recommended to use Windows Subsystem for Linux (WSL) or a virtual machine with a Linux distribution.
12
13
 
13
- 1. Add `.env` file (see `.env.example`).
14
- 2. Remember to set up the rapidsnark file variable.
15
- 3. Generate RSA key pair with `pnpm run generate-keypair`.
16
- 4. Download zkey files using `pnpm run download-zkeys:{type}` (only test type is available for now).
17
- 5. Make sure you copied RSA public key to your application. This will be needed for encrypting `Authorization` header and coordinator private key for proof generation. Also it can be accessed through API method `GET v1/proof/publicKey`.
18
- 6. Run `pnpm run start` to run the service.
19
- 7. All API calls must be called with `Authorization` header, where the value is encrypted with RSA public key you generated before. Header value contains message signature and message digest created by `COORDINATOR_ADDRESSES`. The format is `publicEncrypt({signature}:{digest})`.
20
- Make sure you set `COORDINATOR_ADDRESSES` env variable and sign any message with the addresses from your application (see [AccountSignatureGuard](./ts/auth/AccountSignatureGuard.service.ts)).
21
- 8. Proofs can be generated with `POST v1/proof/generate` API method or with Websockets (see [dto spec](./ts/proof/dto.ts), [controller](./ts/app.controller.ts) and [wsgateway](./ts/events/events.gateway.ts)).
14
+ ## Install and build it from source
22
15
 
23
- ## Subgraph deployment
16
+ 1. Install dependencies and build the project
24
17
 
25
- It is possible to deploy subgraph using coordinator service.
18
+ ```bash
19
+ pnpm install
20
+ pnpm run build
21
+ ```
26
22
 
27
- First, you need to setup subgraph and create a project. [Subgraph dashboard](https://thegraph.com/studio/).
23
+ 2. Install Redis database (if the scheduler module is going to be used) using [the official guide](https://redis.io/docs/latest/operate/oss_and_stack/install/archive/install-redis/)
28
24
 
29
- Then, set env variables:
25
+ 3. Download the zkeys
30
26
 
27
+ ```bash
28
+ pnpm run download-zkeys:test
29
+ # for production zkeys
30
+ # pnpm run download-zkeys:ceremony
31
31
  ```
32
- # Subgraph name
33
- SUBGRAPH_NAME="maci-subgraph"
34
32
 
35
- # Subgraph provider url
36
- SUBGRAPH_PROVIDER_URL=https://api.studio.thegraph.com/deploy/
33
+ 4. Move to the coordinator service directory
37
34
 
38
- # Subgraph deploy key
39
- SUBGRAPH_DEPLOY_KEY=*******
35
+ ```bash
36
+ cd apps/coordinator
37
+ ```
40
38
 
41
- # Subgraph project folder
42
- SUBGRAPH_FOLDER=../subgraph
39
+ 5. Generate the RSA key pair to encrypt values throughout the communication workflow
40
+
41
+ ```bash
42
+ pnpm run generate-keypair
43
43
  ```
44
44
 
45
- After deployment, subgraph url will be available in studio dashboard and you can use this type of url to get latest deployed version in your application:
45
+ 6. Setup .env file (see `.env.example` for reference)
46
46
 
47
+ ```bash
48
+ cp .env.example .env
47
49
  ```
48
- https://api.studio.thegraph.com/.../{SUBGRAPH_NAME}/version/latest
50
+
51
+ 7. Run the NestJS application
52
+
53
+ ```bash
54
+ pnpm run start
55
+ # or
56
+ pnpm run start:prod
49
57
  ```
50
58
 
51
59
  ## Docker
@@ -65,3 +73,31 @@ docker compose -f apps/coordinator/docker-compose.yml exec coordinator-service /
65
73
  # Stop container
66
74
  docker compose -f apps/coordinator/docker-compose.yml down
67
75
  ```
76
+
77
+ ## Subgraph deployment
78
+
79
+ It is possible to deploy subgraph using coordinator service.
80
+
81
+ First, you need to setup subgraph and create a project. [Subgraph dashboard](https://thegraph.com/studio/).
82
+
83
+ Then, set env variables:
84
+
85
+ ```
86
+ # Subgraph name
87
+ SUBGRAPH_NAME="maci-subgraph"
88
+
89
+ # Subgraph provider url
90
+ SUBGRAPH_PROVIDER_URL=https://api.studio.thegraph.com/deploy/
91
+
92
+ # Subgraph deploy key
93
+ SUBGRAPH_DEPLOY_KEY=*******
94
+
95
+ # Subgraph project folder
96
+ SUBGRAPH_FOLDER=../subgraph
97
+ ```
98
+
99
+ After deployment, subgraph url will be available in studio dashboard and you can use this type of url to get latest deployed version in your application:
100
+
101
+ ```
102
+ https://api.studio.thegraph.com/.../{SUBGRAPH_NAME}/version/latest
103
+ ```
@@ -11,18 +11,20 @@ module.exports = {
11
11
  networks: {
12
12
  localhost: {
13
13
  url: process.env.COORDINATOR_RPC_URL || "http://localhost:8545",
14
- accounts: {
15
- mnemonic: TEST_MNEMONIC,
16
- path: "m/44'/60'/0'/0",
17
- initialIndex: 0,
18
- count: 20,
19
- },
14
+ accounts: process.env.PRIVATE_KEY
15
+ ? [process.env.PRIVATE_KEY]
16
+ : {
17
+ mnemonic: process.env.MNEMONIC || TEST_MNEMONIC,
18
+ path: "m/44'/60'/0'/0",
19
+ initialIndex: process.env.INITIAL_INDEX ? Number(process.env.INITIAL_INDEX) : 0,
20
+ count: 20,
21
+ },
20
22
  },
21
23
  hardhat: {
22
24
  loggingEnabled: false,
23
25
  mining: {
24
- auto: true,
25
- interval: 200,
26
+ auto: false,
27
+ interval: 5000,
26
28
  },
27
29
  },
28
30
  },
@@ -1 +1 @@
1
- {"version":3,"file":"hardhat.config.cjs","sourceRoot":"","sources":["../hardhat.config.cjs"],"names":[],"mappings":";AAAA,uDAAuD;AACvD,OAAO,CAAC,kCAAkC,CAAC,CAAC;AAC5C,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEjC,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,SAAS,GAAG,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AAC1D,MAAM,aAAa,GAAG,6DAA6D,CAAC;AAEpF,MAAM,CAAC,OAAO,GAAG;IACf,cAAc,EAAE,WAAW;IAC3B,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,GAAG,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,WAAW,CAAC;gBAC3B,CAAC,CAAC;oBACE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,aAAa;oBAC/C,IAAI,EAAE,gBAAgB;oBACtB,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;oBAC/E,KAAK,EAAE,EAAE;iBACV;SACN;QACD,OAAO,EAAE;YACP,cAAc,EAAE,KAAK;YACrB,MAAM,EAAE;gBACN,IAAI,EAAE,KAAK;gBACX,QAAQ,EAAE,IAAI;aACf;SACF;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,QAAQ;KAClB;IACD,KAAK,EAAE;QACL,OAAO,EAAE,IAAI,CAAC,OAAO,CACnB,SAAS,EACT,SAAS,EACT,mFAAmF,CACpF;QACD,SAAS,EAAE,IAAI,CAAC,OAAO,CACrB,SAAS,EACT,SAAS,EACT,mFAAmF,CACpF;KACF;CACF,CAAC"}
@@ -1,14 +1,13 @@
1
- declare const TEST_MNEMONIC: "test test test test test test test test test test test junk";
2
1
  export let defaultNetwork: string;
3
2
  export namespace networks {
4
3
  namespace localhost {
5
4
  let url: string;
6
- namespace accounts {
7
- export { TEST_MNEMONIC as mnemonic };
8
- export let path: string;
9
- export let initialIndex: number;
10
- export let count: number;
11
- }
5
+ let accounts: string[] | {
6
+ mnemonic: string;
7
+ path: string;
8
+ initialIndex: number;
9
+ count: number;
10
+ };
12
11
  }
13
12
  namespace hardhat {
14
13
  let loggingEnabled: boolean;
@@ -25,5 +24,4 @@ export namespace paths {
25
24
  let sources: string;
26
25
  let artifacts: string;
27
26
  }
28
- export {};
29
27
  //# sourceMappingURL=hardhat.config.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hardhat.config.d.cts","sourceRoot":"","sources":["../hardhat.config.cjs"],"names":[],"mappings":"AASA,6BAAsB,6DAA6D,CAAC"}
1
+ {"version":3,"file":"hardhat.config.d.cts","sourceRoot":"","sources":["../hardhat.config.cjs"],"names":[],"mappings":""}
@@ -17,7 +17,7 @@ import { pollJoiningTestZkeyPath, testPollJoiningWasmPath, testPollJoiningWitnes
17
17
  import { getAuthorizationHeader } from "./utils";
18
18
  dotenv.config();
19
19
  jest.setTimeout(700000); // Sets timeout to 700 seconds
20
- const PORT = process.env.COORDINATOR_PORT || 3000;
20
+ const PORT = process.env.COORDINATOR_PORT || 3001;
21
21
  const TEST_URL = `http://localhost:${PORT}/v1`;
22
22
  const CHAIN = ESupportedChains.Localhost;
23
23
  const REGEX_SUBGRAPH = /^https:\/\/api\.studio\.thegraph\.com\/query\/\d+\/maci-subgraph\/v0\.0\.\d+$/;
@@ -26,6 +26,7 @@ const VOTE_OPTIONS = {
26
26
  "0": 0,
27
27
  "1": 0,
28
28
  };
29
+ const useWasm = isArm();
29
30
  describe("E2E Deployment Tests", () => {
30
31
  let signer;
31
32
  let encryptedHeader;
@@ -163,8 +164,8 @@ describe("E2E Deployment Tests", () => {
163
164
  privateKey: userPrivateKey,
164
165
  pollId: BigInt(pollId),
165
166
  pollJoiningZkey: pollJoiningTestZkeyPath,
166
- useWasm: true,
167
- pollWasm: testPollJoiningWasmPath,
167
+ useWasm,
168
+ pollJoiningWasm: testPollJoiningWasmPath,
168
169
  pollWitnessGenerator: testPollJoiningWitnessPath,
169
170
  rapidsnark: testRapidsnarkPath,
170
171
  sgDataArg: zeroUint256Encoded,
@@ -185,7 +186,7 @@ describe("E2E Deployment Tests", () => {
185
186
  startBlock: Number(maciCreatedAt),
186
187
  network: ESupportedChains.OptimismSepolia,
187
188
  name: process.env.SUBGRAPH_NAME,
188
- tag: `v0.0.${maciCreatedAt}`, // different versions per test using block number
189
+ tag: `v0.0.${+new Date()}`, // different versions per test using timestamp
189
190
  }),
190
191
  });
191
192
  const body = await response.json();
@@ -203,7 +204,7 @@ describe("E2E Deployment Tests", () => {
203
204
  expect(REGEX_SUBGRAPH.test(url)).toBe(true);
204
205
  });
205
206
  test("should merge correctly", async () => {
206
- await sleepUntil((testPollDeploymentConfig.endDate + 5) * 1000); // 5 seconds of grace time after the poll end date
207
+ await sleepUntil((testPollDeploymentConfig.endDate + 13) * 1000); // 13 seconds of grace time after the poll end date
207
208
  const response = await fetch(`${TEST_URL}/proof/merge`, {
208
209
  method: "POST",
209
210
  headers: {
@@ -219,7 +220,6 @@ describe("E2E Deployment Tests", () => {
219
220
  expect(response.status).toBe(201);
220
221
  });
221
222
  test("should generate proofs correctly", async () => {
222
- const useWasm = isArm(); // Use WASM on ARM devices, otherwise use rapidsnark
223
223
  const response = await fetch(`${TEST_URL}/proof/generate`, {
224
224
  method: "POST",
225
225
  headers: {
@@ -1 +1 @@
1
- {"version":3,"file":"e2e.deploy.test.js","sourceRoot":"","sources":["../../tests/e2e.deploy.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC5G,OAAO,EAAE,cAAc,EAAyB,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAe,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAY,WAAW,EAAE,MAAM,MAAM,CAAC;AAE7C,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EACL,YAAY,EACZ,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAA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AC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;QAC1D,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,QAAQ,eAAe,EAAE;YACvD,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,aAAa,EAAE,eAAe;gBAC9B,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACnB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;gBACtB,mBAAmB,EAAE,WAAW;gBAChC,KAAK,EAAE,KAAK;aACb,CAAC;SACH,CAAC,CAAC;QAEH,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { HttpStatus } from "@nestjs/common";
2
+ /**
3
+ * Map a thrown error (usually containing ErrorCodes) to an appropriate HTTP status
4
+ */
5
+ export declare function mapErrorToHttpStatus(error: Error): HttpStatus;
6
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../ts/common/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAI5C;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,KAAK,GAAG,UAAU,CAiD7D"}
@@ -0,0 +1,49 @@
1
+ import { HttpStatus } from "@nestjs/common";
2
+ import { ErrorCodes } from "./errors";
3
+ /**
4
+ * Map a thrown error (usually containing ErrorCodes) to an appropriate HTTP status
5
+ */
6
+ export function mapErrorToHttpStatus(error) {
7
+ const { message } = error;
8
+ switch (message) {
9
+ case ErrorCodes.UNSUPPORTED_NETWORK.toString():
10
+ case ErrorCodes.UNSUPPORTED_VOICE_CREDIT_PROXY_FACTORY.toString():
11
+ case ErrorCodes.UNSUPPORTED_VOICE_CREDIT_PROXY.toString():
12
+ case ErrorCodes.UNSUPPORTED_POLICY.toString():
13
+ return HttpStatus.BAD_REQUEST;
14
+ case ErrorCodes.INVALID_APPROVAL.toString():
15
+ return HttpStatus.FORBIDDEN;
16
+ case ErrorCodes.SESSION_KEY_NOT_FOUND.toString():
17
+ case ErrorCodes.POLL_NOT_FOUND.toString():
18
+ return HttpStatus.NOT_FOUND;
19
+ case ErrorCodes.POLL_ALREADY_SCHEDULED.toString():
20
+ case ErrorCodes.POLL_ALREADY_TALLIED.toString():
21
+ case ErrorCodes.NOT_MERGED_STATE_TREE.toString():
22
+ case ErrorCodes.NOT_MERGED_MESSAGE_TREE.toString():
23
+ return HttpStatus.CONFLICT;
24
+ case ErrorCodes.MACI_NOT_DEPLOYED.toString():
25
+ case ErrorCodes.VERIFIER_NOT_DEPLOYED.toString():
26
+ case ErrorCodes.VERIFYING_KEYS_REGISTRY_NOT_DEPLOYED.toString():
27
+ return HttpStatus.PRECONDITION_FAILED;
28
+ case ErrorCodes.FILE_NOT_FOUND.toString():
29
+ case ErrorCodes.SUBGRAPH_DEPLOY_KEY_NOT_FOUND.toString():
30
+ case ErrorCodes.SUBGRAPH_DEPLOY.toString():
31
+ case ErrorCodes.PRIVATE_KEY_MISMATCH.toString():
32
+ case ErrorCodes.DECRYPTION.toString():
33
+ case ErrorCodes.ENCRYPTION.toString():
34
+ case ErrorCodes.COORDINATOR_RPC_URL_NOT_SET.toString():
35
+ case ErrorCodes.FAILED_TO_MERGE_STATE_TREE.toString():
36
+ case ErrorCodes.FAILED_TO_MERGE_MESSAGE_SUBTREES.toString():
37
+ case ErrorCodes.FAILED_TO_MERGE_MESSAGE_TREE.toString():
38
+ case ErrorCodes.FAILED_TO_SET_VERIFYING_KEYS.toString():
39
+ case ErrorCodes.FAILED_TO_DEPLOY_CONTRACT.toString():
40
+ case ErrorCodes.FAILED_TO_SET_MACI_INSTANCE_ON_POLICY.toString():
41
+ case ErrorCodes.FAILED_TO_DEPLOY_MACI.toString():
42
+ case ErrorCodes.FAILED_TO_DEPLOY_POLL.toString():
43
+ case ErrorCodes.FAILED_TO_UPDATE_SCHEDULED_POLL.toString():
44
+ return HttpStatus.INTERNAL_SERVER_ERROR;
45
+ default:
46
+ return HttpStatus.INTERNAL_SERVER_ERROR;
47
+ }
48
+ }
49
+ //# sourceMappingURL=http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.js","sourceRoot":"","sources":["../../../ts/common/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAY;IAC/C,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE1B,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,UAAU,CAAC,mBAAmB,CAAC,QAAQ,EAAE,CAAC;QAC/C,KAAK,UAAU,CAAC,sCAAsC,CAAC,QAAQ,EAAE,CAAC;QAClE,KAAK,UAAU,CAAC,8BAA8B,CAAC,QAAQ,EAAE,CAAC;QAC1D,KAAK,UAAU,CAAC,kBAAkB,CAAC,QAAQ,EAAE;YAC3C,OAAO,UAAU,CAAC,WAAW,CAAC;QAEhC,KAAK,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE;YACzC,OAAO,UAAU,CAAC,SAAS,CAAC;QAE9B,KAAK,UAAU,CAAC,qBAAqB,CAAC,QAAQ,EAAE,CAAC;QACjD,KAAK,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE;YACvC,OAAO,UAAU,CAAC,SAAS,CAAC;QAE9B,KAAK,UAAU,CAAC,sBAAsB,CAAC,QAAQ,EAAE,CAAC;QAClD,KAAK,UAAU,CAAC,oBAAoB,CAAC,QAAQ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