Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge staging to dev #292

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/backend/src/functions/ceremony.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dotenv.config()
export const startCeremony = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.pubsub.schedule(`every 30 minutes`)
.onRun(async () => {
Expand All @@ -71,7 +71,7 @@ export const startCeremony = functions
export const stopCeremony = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.pubsub.schedule(`every 30 minutes`)
.onRun(async () => {
Expand All @@ -96,7 +96,7 @@ export const stopCeremony = functions
export const setupCeremony = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(async (data: SetupCeremonyData, context: functions.https.CallableContext): Promise<any> => {
// Check if the user has the coordinator claim.
Expand Down
6 changes: 3 additions & 3 deletions packages/backend/src/functions/circuit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ const waitForVMCommandExecution = (ssm: SSMClient, vmInstanceId: string, command
export const coordinateCeremonyParticipant = functionsV1
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.firestore.document(
`${commonTerms.collections.ceremonies.name}/{ceremonyId}/${commonTerms.collections.participants.name}/{participantId}`
Expand Down Expand Up @@ -883,7 +883,7 @@ export const verifycontribution = functionsV2.https.onCall(
export const refreshParticipantAfterContributionVerification = functionsV1
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.firestore.document(
`/${commonTerms.collections.ceremonies.name}/{ceremony}/${commonTerms.collections.circuits.name}/{circuit}/${commonTerms.collections.contributions.name}/{contributions}`
Expand Down Expand Up @@ -966,7 +966,7 @@ export const refreshParticipantAfterContributionVerification = functionsV1
export const finalizeCircuit = functionsV1
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(async (data: FinalizeCircuitData, context: functionsV1.https.CallableContext) => {
if (!context.auth || !context.auth.token.coordinator) logAndThrowError(COMMON_ERRORS.CM_NOT_COORDINATOR_ROLE)
Expand Down
14 changes: 7 additions & 7 deletions packages/backend/src/functions/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dotenv.config()
export const checkParticipantForCeremony = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(async (data: { ceremonyId: string }, context: functions.https.CallableContext) => {
if (!context.auth || (!context.auth.token.participant && !context.auth.token.coordinator))
Expand Down Expand Up @@ -177,7 +177,7 @@ export const checkParticipantForCeremony = functions
export const progressToNextCircuitForContribution = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(async (data: { ceremonyId: string }, context: functions.https.CallableContext): Promise<void> => {
if (!context.auth || (!context.auth.token.participant && !context.auth.token.coordinator))
Expand Down Expand Up @@ -235,7 +235,7 @@ export const progressToNextCircuitForContribution = functions
export const progressToNextContributionStep = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(async (data: { ceremonyId: string }, context: functions.https.CallableContext) => {
if (!context.auth || (!context.auth.token.participant && !context.auth.token.coordinator))
Expand Down Expand Up @@ -298,7 +298,7 @@ export const progressToNextContributionStep = functions
export const permanentlyStoreCurrentContributionTimeAndHash = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(
async (data: PermanentlyStoreCurrentContributionTimeAndHash, context: functions.https.CallableContext) => {
Expand Down Expand Up @@ -357,7 +357,7 @@ export const permanentlyStoreCurrentContributionTimeAndHash = functions
export const temporaryStoreCurrentContributionMultiPartUploadId = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(
async (data: TemporaryStoreCurrentContributionMultiPartUploadId, context: functions.https.CallableContext) => {
Expand Down Expand Up @@ -411,7 +411,7 @@ export const temporaryStoreCurrentContributionMultiPartUploadId = functions
export const temporaryStoreCurrentContributionUploadedChunkData = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(
async (data: TemporaryStoreCurrentContributionUploadedChunkData, context: functions.https.CallableContext) => {
Expand Down Expand Up @@ -471,7 +471,7 @@ export const temporaryStoreCurrentContributionUploadedChunkData = functions
export const checkAndPrepareCoordinatorForFinalization = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(async (data: { ceremonyId: string }, context: functions.https.CallableContext): Promise<boolean> => {
if (!context.auth || !context.auth.token.coordinator) logAndThrowError(COMMON_ERRORS.CM_NOT_COORDINATOR_ROLE)
Expand Down
8 changes: 4 additions & 4 deletions packages/backend/src/functions/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const checkIfBucketIsDedicatedToCeremony = async (bucketName: string) => {
export const createBucket = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(async (data: CreateBucketData, context: functions.https.CallableContext) => {
// Check if the user has the coordinator claim.
Expand Down Expand Up @@ -238,7 +238,7 @@ export const createBucket = functions
export const checkIfObjectExist = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(async (data: BucketAndObjectKeyData, context: functions.https.CallableContext): Promise<boolean> => {
// Check if the user has the coordinator claim.
Expand Down Expand Up @@ -294,7 +294,7 @@ export const checkIfObjectExist = functions
export const generateGetObjectPreSignedUrl = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(async (data: BucketAndObjectKeyData, context: functions.https.CallableContext): Promise<any> => {
if (!context.auth) logAndThrowError(COMMON_ERRORS.CM_NOT_AUTHENTICATED)
Expand Down Expand Up @@ -409,7 +409,7 @@ export const startMultiPartUpload = functions
export const generatePreSignedUrlsParts = functions
.region("europe-west1")
.runWith({
memory: "512MB",
memory: "1GB",
timeoutSeconds: 300
})
.https.onCall(
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/functions/timeout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dotenv.config()
export const checkAndRemoveBlockingContributor = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.pubsub.schedule("every 1 minutes")
.onRun(async () => {
Expand Down Expand Up @@ -253,7 +253,7 @@ export const checkAndRemoveBlockingContributor = functions
export const resumeContributionAfterTimeoutExpiration = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(async (data: { ceremonyId: string }, context: functions.https.CallableContext): Promise<void> => {
if (!context.auth || (!context.auth.token.participant && !context.auth.token.coordinator))
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/functions/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config()
export const registerAuthUser = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.auth.user()
.onCreate(async (user: UserRecord) => {
Expand Down Expand Up @@ -136,7 +136,7 @@ export const registerAuthUser = functions
export const processSignUpWithCustomClaims = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.auth.user()
.onCreate(async (user: UserRecord) => {
Expand Down
Loading