@devtion/devcli 0.0.0-bfc9ee4 → 0.0.0-c1f4cbe

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 +3 -1
  2. package/dist/.env +17 -3
  3. package/dist/index.js +503 -106
  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 +2 -2
  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 +6 -6
  19. package/dist/types/lib/utils.d.ts +3 -2
  20. package/dist/types/types/index.d.ts +63 -0
  21. package/package.json +12 -4
  22. package/src/commands/auth.ts +24 -8
  23. package/src/commands/authBandada.ts +120 -0
  24. package/src/commands/authSIWE.ts +178 -0
  25. package/src/commands/ceremony/index.ts +20 -0
  26. package/src/commands/ceremony/listParticipants.ts +30 -0
  27. package/src/commands/contribute.ts +27 -18
  28. package/src/commands/finalize.ts +22 -13
  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 +3 -3
  33. package/src/commands/setup.ts +56 -45
  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 +1 -1
  38. package/src/lib/localConfigs.ts +55 -1
  39. package/src/lib/prompts.ts +20 -20
  40. package/src/lib/services.ts +39 -16
  41. package/src/lib/utils.ts +45 -10
  42. package/src/types/index.ts +68 -0
package/README.md CHANGED
@@ -61,11 +61,13 @@ or run specific commands with `npx`:
61
61
  npx @p0tion/phase2cli contribute
62
62
  ```
63
63
 
64
+ > Please note that phase2cli only runs on Linux or Mac systems. If a Windows user, please install [WSL2](https://learn.microsoft.com/en-us/windows/wsl/install) first.
65
+
64
66
  ## 📜 Usage
65
67
 
66
68
  ### Local Development
67
69
 
68
- **Prerequisities**
70
+ **Prerequisites**
69
71
 
70
72
  - Node.js version 16.0 or higher.
71
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