const ARC_TESTNET = {
name: "Arc Testnet",
evmChainId: "5042002" as const,
nativeTokenSymbol: "USDC",
logoUrl:
"<YOUR_ARC_LOGO_URL>", // Replace with your Arc logo URL
rpcUrl: "https://rpc.testnet.arc.network",
explorer: {
name: "ArcScan Testnet Explorer",
url: "https://testnet.arcscan.app",
txUrlFormat:
"https://testnet.arcscan.app/tx/{HASH}",
},
isTestnet: true,
};
export function ParaProvider({ children }: { children: React.ReactNode }) {
return (
<ParaSDKProvider
paraClientConfig={{
apiKey: API_KEY,
env: ENVIRONMENT,
}}
externalWalletConfig={{
wallets: ["METAMASK", "WALLETCONNECT"],
includeWalletVerification: true,
evmConnector: {
config: {
chains: [ARC_TESTNET],
},
},
walletConnect: {
projectId:
process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID || "",
},
}}
config={{
appName: "Para Modal + EVM Wallets Example",
}}
paraModalConfig={{
balances: {
displayType: "AGGREGATED",
requestType: "MAINNET_AND_TESTNET",
additionalAssets: [
{
name: "USDC",
symbol: "USDC",
logoUrl:
"<YOUR_ARC_LOGO_URL>", // Replace with your Arc logo URL
implementations: [
{
network: ARC_TESTNET,
},
],
},
],
},
disableEmailLogin: false,
disablePhoneLogin: false,
authLayout: ["AUTH:FULL", "EXTERNAL:FULL"],
oAuthMethods: ["GOOGLE"],
onRampTestMode: true,
theme: {
foregroundColor: "#222222",
backgroundColor: "#FFFFFF",
accentColor: "#888888",
darkForegroundColor: "#EEEEEE",
darkBackgroundColor: "#111111",
darkAccentColor: "#AAAAAA",
mode: "light",
borderRadius: "none",
font: "Inter",
},
logo: "/para.svg",
recoverySecretStepEnabled: true,
twoFactorAuthEnabled: false,
}}
>
{children}
</ParaSDKProvider>
);
}