import { type Address, defineChain } from "viem" import { privateKeyToAccount } from "viem/accounts" // if ( // !process.env.ACCOUNT_PRIVATE_KEY || // !process.env.SEPOLIA_BUNDLER_URL || // !process.env.CAB_PAYMASTER_URL // ) { // throw new Error(".env is not set") // } export const testErc20Address: Address = "0x3870419Ba2BBf0127060bCB37f69A1b1C090992B" export const testErc20VaultAddress: Address = "0xdCE76Da5c1F1706E4fA2a806c0507f1bb4BC3Bf6" export const accountWallet = privateKeyToAccount( process.env.ACCOUNT_PRIVATE_KEY as `0x${string}` ) export const opBundlerUrl = process.env.OP_BUNDLER_URL export const bundlerUrl = process.env.SEPOLIA_BUNDLER_URL export const opSepoliaBundlerUrl = process.env.OP_SEPOLIA_BUNDLER_URL export const newtonSepoliaBundlerUrl = process.env.NEWTON_SEPOLIA_BUNDLER_URL export const cabPaymasterUrl = process.env.CAB_PAYMASTER_URL export const rpcUrl = process.env.SEPOLIA_RPC_URL export const magicNewton = defineChain({ id: 720380884, name: "MagicNewton", network: "magic-newton", nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { default: { http: ["https://newton-sepolia-rpc.eu-north-2.gateway.fm"] } }, blockExplorers: { default: { name: "MagicNewton", url: "https://explorer.testnet.magicnewton.com/" } }, testnet: true })