Skip to content

Commit

Permalink
Merge pull request #291 from privacy-scaling-explorations/chore/incre…
Browse files Browse the repository at this point in the history
…ase-memory
  • Loading branch information
glamperd authored Apr 17, 2024
2 parents 49bcf39 + 6415890 commit f88bcee
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
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

0 comments on commit f88bcee

Please sign in to comment.