From 5b7fff646bec9b904d6d2a323bafd0131c02cd23 Mon Sep 17 00:00:00 2001 From: murat <155527010+kejan2514@users.noreply.github.com> Date: Fri, 18 Sep 2026 13:03:19 +0300 Subject: [PATCH 1/4] feat: add Arc mainnet network profile --- src/lib/arc-network.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/arc-network.ts b/src/lib/arc-network.ts index 76fe527..f0010fe 100644 --- a/src/lib/arc-network.ts +++ b/src/lib/arc-network.ts @@ -1,17 +1,17 @@ const configuredChainId = Number( - process.env.NEXT_PUBLIC_ARC_CHAIN_ID ?? "5042002", + process.env.NEXT_PUBLIC_ARC_CHAIN_ID ?? "5042", ); export const ARC_NETWORK = { chainId: configuredChainId, chainIdHex: `0x${configuredChainId.toString(16)}`, - chainName: process.env.NEXT_PUBLIC_ARC_CHAIN_NAME ?? "Arc Testnet", + chainName: process.env.NEXT_PUBLIC_ARC_CHAIN_NAME ?? "Arc Mainnet", rpcUrl: process.env.NEXT_PUBLIC_ARC_RPC_URL ?? - "https://rpc.testnet.arc.network", + "https://rpc.mainnet.arc.io", explorerUrl: process.env.NEXT_PUBLIC_ARC_EXPLORER_URL ?? - "https://testnet.arcscan.app", + "https://explorer.arc.io", nativeCurrency: { name: "USDC", symbol: "USDC", From 7318974e52bca7734d6d480be667eb22b0690ef8 Mon Sep 17 00:00:00 2001 From: murat <155527010+kejan2514@users.noreply.github.com> Date: Fri, 18 Sep 2026 13:03:24 +0300 Subject: [PATCH 2/4] docs: add Arc mainnet environment profile --- .env.example | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.env.example b/.env.example index fd3f088..ae1f8f2 100644 --- a/.env.example +++ b/.env.example @@ -7,13 +7,20 @@ CIRCLE_WALLET_SET_ID= CIRCLE_WALLET_ID= CIRCLE_WALLET_ADDRESS= -# ERC-8004 on Arc Testnet. ArcPay defaults to the official Arc Identity Registry -# below; only set ERC8004_AGENT_ID after ArcPay has actually been registered. -ERC8004_IDENTITY_REGISTRY_ADDRESS=0x8004A818BFB912233c491871b3d84c89A494BD9e -ERC8004_REPUTATION_REGISTRY_ADDRESS=0x8004B663056A597Dffe9eCcC1965A193B7388713 -ERC8004_VALIDATION_REGISTRY_ADDRESS=0x8004Cb1BF31DAf7788923b405b754f57acEB4272 +# Arc Mainnet public network profile. +# Verify the RPC returns chain ID 5042 before any funded transaction. +NEXT_PUBLIC_ARC_CHAIN_ID=5042 +NEXT_PUBLIC_ARC_CHAIN_NAME=Arc Mainnet +NEXT_PUBLIC_ARC_RPC_URL=https://rpc.mainnet.arc.io +NEXT_PUBLIC_ARC_EXPLORER_URL=https://explorer.arc.io +ARC_MAINNET_RPC_URL=https://rpc.mainnet.arc.io + +# ERC-8004 addresses below were configured for Arc Testnet. +# Do not reuse them for production until the mainnet registry addresses are verified. +ERC8004_IDENTITY_REGISTRY_ADDRESS= +ERC8004_REPUTATION_REGISTRY_ADDRESS= +ERC8004_VALIDATION_REGISTRY_ADDRESS= ERC8004_AGENT_ID= -# Server RPC for telemetry and independent payment-proof verification. -# Must return Arc Testnet chain ID 5042002; other chains are rejected. +# Legacy testnet RPC retained only for explicit test/staging use. ARC_TESTNET_RPC_URL=https://rpc.testnet.arc.network From b63cb92f3c56fd551dd6797575e079fafe30433d Mon Sep 17 00:00:00 2001 From: murat <155527010+kejan2514@users.noreply.github.com> Date: Fri, 18 Sep 2026 13:09:02 +0300 Subject: [PATCH 3/4] test: keep checkout e2e on Arc testnet --- playwright.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 3f8e90e..80945d7 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -6,6 +6,6 @@ export default defineConfig({ webServer: [ { command: "node tests/e2e/rpc-fixture.mjs", url: "http://127.0.0.1:4319", reuseExistingServer: false }, { command: "npm run start -- --port 4318 --hostname 127.0.0.1", url: "http://127.0.0.1:4318", reuseExistingServer: false, timeout: 120_000, - env: { ARC_TESTNET_RPC_URL: "http://127.0.0.1:4319", CIRCLE_API_KEY: "", CIRCLE_ENTITY_SECRET: "" } }, + env: { NEXT_PUBLIC_ARC_CHAIN_ID: "5042002", NEXT_PUBLIC_ARC_CHAIN_NAME: "Arc Testnet", NEXT_PUBLIC_ARC_RPC_URL: "http://127.0.0.1:4319", NEXT_PUBLIC_ARC_EXPLORER_URL: "https://testnet.arcscan.app", ARC_TESTNET_RPC_URL: "http://127.0.0.1:4319", CIRCLE_API_KEY: "", CIRCLE_ENTITY_SECRET: "" } }, ], }); From c675ae82232696330f450b214b330e3a9e566be4 Mon Sep 17 00:00:00 2001 From: murat <155527010+kejan2514@users.noreply.github.com> Date: Fri, 18 Sep 2026 13:20:08 +0300 Subject: [PATCH 4/4] test: build e2e app with explicit Arc testnet profile --- playwright.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 80945d7..ff1ea87 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -5,7 +5,7 @@ export default defineConfig({ projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }], webServer: [ { command: "node tests/e2e/rpc-fixture.mjs", url: "http://127.0.0.1:4319", reuseExistingServer: false }, - { command: "npm run start -- --port 4318 --hostname 127.0.0.1", url: "http://127.0.0.1:4318", reuseExistingServer: false, timeout: 120_000, + { command: "NEXT_PUBLIC_ARC_CHAIN_ID=5042002 NEXT_PUBLIC_ARC_CHAIN_NAME=\"Arc Testnet\" NEXT_PUBLIC_ARC_RPC_URL=http://127.0.0.1:4319 NEXT_PUBLIC_ARC_EXPLORER_URL=https://testnet.arcscan.app npm run build && npm run start -- --port 4318 --hostname 127.0.0.1", url: "http://127.0.0.1:4318", reuseExistingServer: false, timeout: 120_000, env: { NEXT_PUBLIC_ARC_CHAIN_ID: "5042002", NEXT_PUBLIC_ARC_CHAIN_NAME: "Arc Testnet", NEXT_PUBLIC_ARC_RPC_URL: "http://127.0.0.1:4319", NEXT_PUBLIC_ARC_EXPLORER_URL: "https://testnet.arcscan.app", ARC_TESTNET_RPC_URL: "http://127.0.0.1:4319", CIRCLE_API_KEY: "", CIRCLE_ENTITY_SECRET: "" } }, ], });