@devtion/devcli 0.0.0-4088679 → 0.0.0-477457c
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/README.md +2 -2
- package/dist/.env +17 -3
- package/dist/index.js +544 -106
- package/dist/public/mini-semaphore.wasm +0 -0
- package/dist/public/mini-semaphore.zkey +0 -0
- package/dist/types/commands/authBandada.d.ts +2 -0
- package/dist/types/commands/authSIWE.d.ts +7 -0
- package/dist/types/commands/ceremony/index.d.ts +3 -0
- package/dist/types/commands/ceremony/listParticipants.d.ts +2 -0
- package/dist/types/commands/finalize.d.ts +2 -1
- package/dist/types/commands/index.d.ts +2 -0
- package/dist/types/commands/setup.d.ts +3 -3
- package/dist/types/lib/bandada.d.ts +6 -0
- package/dist/types/lib/files.d.ts +0 -1
- package/dist/types/lib/localConfigs.d.ts +38 -0
- package/dist/types/lib/prompts.d.ts +6 -6
- package/dist/types/lib/utils.d.ts +2 -1
- package/dist/types/types/index.d.ts +69 -0
- package/package.json +12 -5
- package/src/commands/auth.ts +32 -11
- package/src/commands/authBandada.ts +120 -0
- package/src/commands/authSIWE.ts +185 -0
- package/src/commands/ceremony/index.ts +20 -0
- package/src/commands/ceremony/listParticipants.ts +56 -0
- package/src/commands/contribute.ts +51 -25
- package/src/commands/finalize.ts +21 -9
- package/src/commands/index.ts +3 -1
- package/src/commands/listCeremonies.ts +1 -2
- package/src/commands/logout.ts +3 -1
- package/src/commands/observe.ts +7 -3
- package/src/commands/setup.ts +63 -28
- package/src/commands/validate.ts +1 -2
- package/src/index.ts +33 -13
- package/src/lib/bandada.ts +51 -0
- package/src/lib/errors.ts +2 -2
- package/src/lib/localConfigs.ts +54 -0
- package/src/lib/prompts.ts +22 -25
- package/src/lib/services.ts +38 -15
- package/src/lib/utils.ts +51 -13
- 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
|
-
**
|
|
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
|
|
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
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
|
|
33
|
-
# (e.g. a 200 MB file setting a stream chunk size of
|
|
34
|
-
CONFIG_STREAM_CHUNK_SIZE_IN_MB=
|
|
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
|
|