@devtion/devcli 0.0.0-9614e0c → 0.0.0-9843891

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 (40) hide show
  1. package/README.md +1 -1
  2. package/dist/.env +17 -3
  3. package/dist/index.js +543 -101
  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/finalize.d.ts +3 -2
  11. package/dist/types/commands/index.d.ts +2 -0
  12. package/dist/types/commands/setup.d.ts +1 -1
  13. package/dist/types/lib/bandada.d.ts +6 -0
  14. package/dist/types/lib/files.d.ts +1 -0
  15. package/dist/types/lib/localConfigs.d.ts +38 -0
  16. package/dist/types/lib/prompts.d.ts +6 -6
  17. package/dist/types/lib/utils.d.ts +2 -1
  18. package/dist/types/types/index.d.ts +69 -0
  19. package/package.json +10 -3
  20. package/src/commands/auth.ts +25 -9
  21. package/src/commands/authBandada.ts +120 -0
  22. package/src/commands/authSIWE.ts +185 -0
  23. package/src/commands/ceremony/index.ts +20 -0
  24. package/src/commands/ceremony/listParticipants.ts +56 -0
  25. package/src/commands/contribute.ts +55 -28
  26. package/src/commands/finalize.ts +26 -13
  27. package/src/commands/index.ts +3 -1
  28. package/src/commands/listCeremonies.ts +1 -2
  29. package/src/commands/logout.ts +3 -1
  30. package/src/commands/observe.ts +7 -3
  31. package/src/commands/setup.ts +59 -27
  32. package/src/commands/validate.ts +1 -2
  33. package/src/index.ts +35 -13
  34. package/src/lib/bandada.ts +51 -0
  35. package/src/lib/errors.ts +1 -1
  36. package/src/lib/localConfigs.ts +54 -0
  37. package/src/lib/prompts.ts +22 -25
  38. package/src/lib/services.ts +38 -15
  39. package/src/lib/utils.ts +44 -9
  40. 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.
package/dist/.env CHANGED
@@ -23,19 +23,33 @@ FIREBASE_CF_URL_VERIFY_CONTRIBUTION=https://verifycontribution-mq4aqokliq-ew.a.r
23
23
 
24
24
  # The unique identifier for the Github client associated to the OAuth Application.
25
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/
26
33
 
27
34
  ### AWS S3 STORAGE ###
28
35
  ### These configs are related to the configuration of the interaction with the
29
36
  ### AWS S3 bucket used as storage for ceremony artifacts.
30
37
 
31
38
  # The chunk size to be used when executing multi-part upload or downloads.
32
- # default 50 MBs.
33
- # (e.g. a 200 MB file setting a stream chunk size of 50 MB is going to be splitted and uploaded/downloaded in 4 chunks).
34
- CONFIG_STREAM_CHUNK_SIZE_IN_MB=50
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
35
42
  # The postfix string for each ceremony bucket.
36
43
  # default -ph2-ceremony
37
44
  CONFIG_CEREMONY_BUCKET_POSTFIX=-p0tion-development-environment
38
45
  # The amount of time in seconds which indicates the duration about the validity of a pre-signed URL.
39
46
  # default: 7200 seconds = 2 hours.
40
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
41
55