diff --git a/apps/delta/ponder.config.ts b/apps/delta/ponder.config.ts index 554a93c3..b0162a11 100644 --- a/apps/delta/ponder.config.ts +++ b/apps/delta/ponder.config.ts @@ -1,6 +1,6 @@ import { createConfig } from '@ponder/core' import { addresses, idRegistryABI, postGatewayABI } from 'scrypt' -import { http } from 'viem' +import { Hex, http } from 'viem' export default createConfig({ networks: { @@ -23,7 +23,7 @@ export default createConfig({ PostGateway: { network: 'arbitrumNova', abi: postGatewayABI, - address: addresses.postGateway.nova, + address: process.env.NEXT_PUBLIC_POSTGATEWAY as Hex, startBlock: 45799650, // River genesis }, }, diff --git a/apps/site/.env.example b/apps/site/.env.example index ca0699f5..e22a1368 100644 --- a/apps/site/.env.example +++ b/apps/site/.env.example @@ -1,9 +1,39 @@ +################################### +################################### +# PRODUCTION VARIABLES # +################################### +################################### + # Browser + +# NEXT_PUBLIC_GRAPHQL_API= NEXT_PUBLIC_GRAPHQL_API= -NEXT_PUBLIC_PRIVY_APP_ID +NEXT_PUBLIC_PRIVY_APP_ID= NEXT_PUBLIC_METADATA_SERVER_URL= +NEXT_PUBLIC_USERNAME_SERVICE= +NEXT_PUBLIC_POSTGATEWAY # Server -RPC_URL= -PRIVATE_KEY= +NEXT_PUBLIC_NOVA_RPC_URL= +NEXT_PUBLIC_OPTIMISM_RPC_URL= + +# Metadata server + +KV_URL= +KV_REST_API_URL= +KV_REST_API_TOKEN= +KV_REST_API_READ_ONLY_TOKEN= + +################################### +################################### +# DEFENDER VARIABLES # +################################### +################################### + +# Defender + +NONCE_API_UNO= +NONCE_SECRET_UNO= +IDREGISTRY_API_UNO= +IDREGISTRY_SECRET_UNO= diff --git a/apps/site/app/api/post/route.ts b/apps/site/app/api/post/route.ts index 7b0b9524..4b1e71ce 100644 --- a/apps/site/app/api/post/route.ts +++ b/apps/site/app/api/post/route.ts @@ -21,7 +21,7 @@ export async function POST(req: NextRequest) { }) const postGateway = new ethers.Contract( - addresses.postGateway.nova, + process.env.NEXT_PUBLIC_POSTGATEWAY as Hex, postGatewayABI, signer as unknown as ethers.Signer, ) diff --git a/apps/site/app/api/postBatch/route.ts b/apps/site/app/api/postBatch/route.ts index 4a21bc94..08b49dcb 100644 --- a/apps/site/app/api/postBatch/route.ts +++ b/apps/site/app/api/postBatch/route.ts @@ -22,7 +22,7 @@ export async function POST(req: NextRequest) { }) const postGateway = new ethers.Contract( - addresses.postGateway.nova, + process.env.NEXT_PUBLIC_POSTGATEWAY as Hex, postGatewayABI, signer as unknown as ethers.Signer, )