Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jawndiego committed Jun 16, 2024
1 parent c52826a commit 97ef2e5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 15 deletions.
3 changes: 1 addition & 2 deletions apps/site/app/api/post/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { addresses, postGatewayABI } from 'scrypt'
import type { Hex } from 'viem'
import { waitUntilTx, authToken } from '@/lib'


export const maxDuration = 30 // This function can run for a maximum of 30 seconds

export async function POST(req: NextRequest) {
Expand Down Expand Up @@ -66,4 +65,4 @@ export async function POST(req: NextRequest) {
},
)
}
}
}
2 changes: 1 addition & 1 deletion apps/site/app/api/postBatch/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ export async function POST(req: NextRequest) {
},
)
}
}
}
16 changes: 7 additions & 9 deletions apps/site/app/api/registerFor/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import { type Hex, decodeAbiParameters } from 'viem'
import {
syndicateClient,
generateIdRegistryInput,
projectId
projectId,
} from '@/config/syndicateClient'
import { waitUntilTx, authToken } from '@/lib'


export const maxDuration = 30 // This function can run for a maximum of 30 seconds

export async function POST(req: NextRequest) {
Expand Down Expand Up @@ -40,12 +39,11 @@ export async function POST(req: NextRequest) {
generateIdRegistryInput({ to, recovery, deadline, sig }),
)

const successfulTxHash = await waitUntilTx({
projectID: projectId as string,
txID: registerTx.transactionId,
authToken: authToken as string,
})

const successfulTxHash = await waitUntilTx({
projectID: projectId as string,
txID: registerTx.transactionId,
authToken: authToken as string,
})

const [rid] = decodeAbiParameters(
[
Expand Down Expand Up @@ -89,4 +87,4 @@ export async function POST(req: NextRequest) {
},
)
}
}
}
2 changes: 1 addition & 1 deletion apps/site/config/publicClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export const optimismPubClient = createPublicClient({
export const novaPubClient = createPublicClient({
chain: arbitrumNova,
transport: http(process.env.NEXT_PUBLIC_NOVA_RPC_URL),
})
})
2 changes: 1 addition & 1 deletion apps/site/config/syndicateClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ if (!projectId || !apiKey) {
throw new Error(
'Missing SYNDICATE_PROJECT_ID_POSTGATEWAY or SYNDICATE_API_KEY in environment variables.',
)
}
}
2 changes: 1 addition & 1 deletion apps/site/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,4 @@ export async function uploadToMux(body: string) {
console.error('Upload to Mux failed', error)
throw error
}
}
}

0 comments on commit 97ef2e5

Please sign in to comment.