@devtion/backend 0.0.0-c1f4cbe → 0.0.0-e22d20d
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/dist/src/functions/index.js +313 -307
- package/dist/src/functions/index.mjs +314 -308
- package/dist/types/functions/circuit.d.ts.map +1 -1
- package/dist/types/functions/timeout.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/functions/ceremony.ts +4 -4
- package/src/functions/circuit.ts +373 -369
- package/src/functions/participant.ts +7 -7
- package/src/functions/siwe.ts +1 -1
- package/src/functions/storage.ts +6 -6
- package/src/functions/timeout.ts +4 -3
- package/src/functions/user.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circuit.d.ts","sourceRoot":"","sources":["../../../src/functions/circuit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,uBAAuB,CAAA;AACpD,OAAO,KAAK,WAAW,MAAM,uBAAuB,CAAA;AA2CpD,OAAO,EAAuB,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AAwP5E;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,6BAA6B,4FAoGpC,CAAA;AAwBN;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"circuit.d.ts","sourceRoot":"","sources":["../../../src/functions/circuit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,uBAAuB,CAAA;AACpD,OAAO,KAAK,WAAW,MAAM,uBAAuB,CAAA;AA2CpD,OAAO,EAAuB,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AAwP5E;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,6BAA6B,4FAoGpC,CAAA;AAwBN;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,kBAAkB,0EAka9B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,+CAA+C,wEA4EtD,CAAA;AAEN;;;;GAIG;AACH,eAAO,MAAM,eAAe,uDA8EtB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeout.d.ts","sourceRoot":"","sources":["../../../src/functions/timeout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAuB/C;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iCAAiC,
|
|
1
|
+
{"version":3,"file":"timeout.d.ts","sourceRoot":"","sources":["../../../src/functions/timeout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAuB/C;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iCAAiC,kCA8MxC,CAAA;AAEN;;;GAGG;AACH,eAAO,MAAM,wCAAwC,mDA0C/C,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devtion/backend",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-e22d20d",
|
|
4
4
|
"description": "MPC Phase 2 backend for Firebase services management",
|
|
5
5
|
"repository": "git@github.com:privacy-scaling-explorations/p0tion.git",
|
|
6
6
|
"homepage": "https://github.com/privacy-scaling-explorations/p0tion",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "815d3cb9bab3a8a184e3daedbe80306e514d5aba"
|
|
90
90
|
}
|
|
@@ -46,7 +46,7 @@ dotenv.config()
|
|
|
46
46
|
export const startCeremony = functions
|
|
47
47
|
.region("europe-west1")
|
|
48
48
|
.runWith({
|
|
49
|
-
memory: "
|
|
49
|
+
memory: "1GB"
|
|
50
50
|
})
|
|
51
51
|
.pubsub.schedule(`every 30 minutes`)
|
|
52
52
|
.onRun(async () => {
|
|
@@ -71,7 +71,7 @@ export const startCeremony = functions
|
|
|
71
71
|
export const stopCeremony = functions
|
|
72
72
|
.region("europe-west1")
|
|
73
73
|
.runWith({
|
|
74
|
-
memory: "
|
|
74
|
+
memory: "1GB"
|
|
75
75
|
})
|
|
76
76
|
.pubsub.schedule(`every 30 minutes`)
|
|
77
77
|
.onRun(async () => {
|
|
@@ -96,7 +96,7 @@ export const stopCeremony = functions
|
|
|
96
96
|
export const setupCeremony = functions
|
|
97
97
|
.region("europe-west1")
|
|
98
98
|
.runWith({
|
|
99
|
-
memory: "
|
|
99
|
+
memory: "1GB"
|
|
100
100
|
})
|
|
101
101
|
.https.onCall(async (data: SetupCeremonyData, context: functions.https.CallableContext): Promise<any> => {
|
|
102
102
|
// Check if the user has the coordinator claim.
|
|
@@ -273,7 +273,7 @@ export const initEmptyWaitingQueueForCircuit = functions
|
|
|
273
273
|
export const finalizeCeremony = functions
|
|
274
274
|
.region("europe-west1")
|
|
275
275
|
.runWith({
|
|
276
|
-
memory: "
|
|
276
|
+
memory: "1GB"
|
|
277
277
|
})
|
|
278
278
|
.https.onCall(async (data: { ceremonyId: string }, context: functions.https.CallableContext): Promise<any> => {
|
|
279
279
|
if (!context.auth || !context.auth.token.coordinator) logAndThrowError(COMMON_ERRORS.CM_NOT_COORDINATOR_ROLE)
|