@devtion/devcli 0.0.0-9c50f66 → 0.0.0-9d46256

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 (42) hide show
  1. package/README.md +2 -2
  2. package/dist/.env +55 -0
  3. package/dist/index.js +559 -124
  4. package/dist/public/mini-semaphore.wasm +0 -0
  5. package/dist/public/mini-semaphore.zkey +0 -0
  6. package/dist/types/commands/authBandada.d.ts +2 -0
  7. package/dist/types/commands/authSIWE.d.ts +7 -0
  8. package/dist/types/commands/ceremony/index.d.ts +3 -0
  9. package/dist/types/commands/ceremony/listParticipants.d.ts +2 -0
  10. package/dist/types/commands/contribute.d.ts +1 -1
  11. package/dist/types/commands/finalize.d.ts +4 -3
  12. package/dist/types/commands/index.d.ts +2 -0
  13. package/dist/types/commands/observe.d.ts +1 -1
  14. package/dist/types/commands/setup.d.ts +4 -4
  15. package/dist/types/lib/bandada.d.ts +6 -0
  16. package/dist/types/lib/files.d.ts +1 -0
  17. package/dist/types/lib/localConfigs.d.ts +38 -0
  18. package/dist/types/lib/prompts.d.ts +7 -7
  19. package/dist/types/lib/utils.d.ts +3 -2
  20. package/dist/types/types/index.d.ts +69 -0
  21. package/package.json +10 -3
  22. package/src/commands/auth.ts +32 -11
  23. package/src/commands/authBandada.ts +120 -0
  24. package/src/commands/authSIWE.ts +185 -0
  25. package/src/commands/ceremony/index.ts +20 -0
  26. package/src/commands/ceremony/listParticipants.ts +56 -0
  27. package/src/commands/contribute.ts +56 -29
  28. package/src/commands/finalize.ts +27 -14
  29. package/src/commands/index.ts +3 -1
  30. package/src/commands/listCeremonies.ts +2 -3
  31. package/src/commands/logout.ts +3 -1
  32. package/src/commands/observe.ts +8 -4
  33. package/src/commands/setup.ts +60 -48
  34. package/src/commands/validate.ts +2 -3
  35. package/src/index.ts +35 -13
  36. package/src/lib/bandada.ts +51 -0
  37. package/src/lib/errors.ts +2 -2
  38. package/src/lib/localConfigs.ts +55 -1
  39. package/src/lib/prompts.ts +23 -26
  40. package/src/lib/services.ts +39 -16
  41. package/src/lib/utils.ts +53 -15
  42. package/src/types/index.ts +75 -0
package/README.md CHANGED
@@ -67,7 +67,7 @@ npx @p0tion/phase2cli contribute
67
67
 
68
68
  ### Local Development
69
69
 
70
- **Prerequisities**
70
+ **Prerequisites**
71
71
 
72
72
  - Node.js version 16.0 or higher.
73
73
  - Yarn version 3.5.0 or higher.
@@ -97,7 +97,7 @@ Commands:
97
97
  auth authenticate yourself using your Github Account (Device Flow OAuth 2.0)
98
98
  contribute compute contributions for a Phase2 Trusted Setup ceremony circuits
99
99
  clean clean up output generated by commands from the current working directory
100
- logout sign out from Firebae Auth service and delete Github OAuth 2.0 token from your machine
100
+ logout sign out from Firebase Auth service and delete Github OAuth 2.0 token from your machine
101
101
  coordinate special subset of commands for coordinating a ceremony (coordinator only)
102
102
  help [command] display help for command
103
103
  ```
package/dist/.env ADDED
@@ -0,0 +1,55 @@
1
+ ### FIREBASE ###
2
+ ### These configs are related to the configuration of the Firebase services.
3
+
4
+
5
+ # The Firebase Application API key for making request against the services.
6
+ # nb. this is going to be auto-generated when creating a new application.
7
+ FIREBASE_API_KEY=AIzaSyDVAu8U4zBpM3FFLPyktSjZnCmg1IR73Cg
8
+ # The URL to Firebase Authentication service (should point to default).
9
+ # nb. this is going to be auto-generated when creating a new application.
10
+ FIREBASE_AUTH_DOMAIN=p0tion-ci-environment.firebaseapp.com
11
+ # The Firebase Application project id (should match with application name).
12
+ FIREBASE_PROJECT_ID=p0tion-ci-environment
13
+ # The Firebase unique message sender identifier (to recognize the application user).
14
+ # nb. this is going to be auto-generated when creating a new application.
15
+ FIREBASE_MESSAGING_SENDER_ID=22680510841
16
+ # The Firebase unique identifier for your application.
17
+ # nb. this is going to be auto-generated when creating a new application.
18
+ FIREBASE_APP_ID=1:22680510841:web:529a664e73dbabd1c7cfa8
19
+ FIREBASE_CF_URL_VERIFY_CONTRIBUTION=https://verifycontribution-mq4aqokliq-ew.a.run.app
20
+
21
+ ### AUTHENTICATION ###
22
+ ### These configs are related to the authentication of users.
23
+
24
+ # The unique identifier for the Github client associated to the OAuth Application.
25
+ AUTH_GITHUB_CLIENT_ID=e9f8a5fabdfe0d95618c
26
+ ### BANDADA AUTHENTICATION ###
27
+ # The Bandada API URL to be used for authentication.
28
+ BANDADA_API_URL=https://api.bandada.pse.dev/
29
+ # The Bandada group id that will be used for the credentials criteria (e.g. GH followers)
30
+ BANDADA_GROUP_ID=40887196405294111455930028907236
31
+ # The Bandada dashboard URL to administrate the groups
32
+ BANDADA_DASHBOARD_URL=https://bandada.pse.dev/
33
+
34
+ ### AWS S3 STORAGE ###
35
+ ### These configs are related to the configuration of the interaction with the
36
+ ### AWS S3 bucket used as storage for ceremony artifacts.
37
+
38
+ # The chunk size to be used when executing multi-part upload or downloads.
39
+ # default 25 MBs.
40
+ # (e.g. a 200 MB file setting a stream chunk size of 25 MB is going to be splitted and uploaded/downloaded in 4 chunks).
41
+ CONFIG_STREAM_CHUNK_SIZE_IN_MB=25
42
+ # The postfix string for each ceremony bucket.
43
+ # default -ph2-ceremony
44
+ CONFIG_CEREMONY_BUCKET_POSTFIX=-p0tion-development-environment
45
+ # The amount of time in seconds which indicates the duration about the validity of a pre-signed URL.
46
+ # default: 7200 seconds = 2 hours.
47
+ CONFIG_PRESIGNED_URL_EXPIRATION_IN_SECONDS=7200
48
+
49
+
50
+ # Sign In With Ethereum
51
+ # Auth0 client id
52
+ AUTH_SIWE_CLIENT_ID=tRuFnJNoPTJtKr1RynYfty6uJ16QzHXA
53
+ # The Auth0 application url that support SIWE + Device Flow Authentication
54
+ AUTH0_APPLICATION_URL=https://dev-l0tyk1agsmopw1xa.us.auth0.com
55
+