harb/web-app/src/config.ts

49 lines
1.8 KiB
TypeScript
Raw Normal View History

2025-09-23 19:24:05 +02:00
const LOCAL_PONDER_URL = "http://127.0.0.1:42069/graphql";
2025-09-23 21:16:15 +02:00
const LOCAL_TXNBOT_URL = "http://127.0.0.1:43069";
2025-09-23 19:24:05 +02:00
export const DEFAULT_CHAIN_ID = Number(import.meta.env.VITE_DEFAULT_CHAIN_ID ?? 84532);
2025-09-23 14:18:04 +02:00
export const chainsData = [
{
2025-09-23 19:24:05 +02:00
// sepolia
2025-09-23 14:18:04 +02:00
id: 11155111,
2025-09-23 19:24:05 +02:00
graphql: import.meta.env.VITE_PONDER_SEPOLIA ?? "",
2025-09-23 14:18:04 +02:00
path: "sepolia",
stake: "0xCd21a41a137BCAf8743E47D048F57D92398f7Da9",
harb: "0x087F256D11fe533b0c7d372e44Ee0F9e47C89dF9",
2025-09-23 21:16:15 +02:00
uniswap: "https://app.uniswap.org/swap?chain=mainnet&inputCurrency=NATIVE",
cheats: null
2025-09-23 14:18:04 +02:00
}, {
2025-09-23 19:24:05 +02:00
// base-sepolia (local dev default)
2025-09-23 14:18:04 +02:00
id: 84532,
2025-09-23 19:24:05 +02:00
graphql: import.meta.env.VITE_PONDER_BASE_SEPOLIA_LOCAL_FORK ?? LOCAL_PONDER_URL,
2025-09-23 14:18:04 +02:00
path: "sepoliabase",
stake: "0xe28020BCdEeAf2779dd47c670A8eFC2973316EE2",
harb: "0x22c264Ecf8D4E49D1E3CabD8DD39b7C4Ab51C1B8",
2025-09-23 21:16:15 +02:00
uniswap: "https://app.uniswap.org/swap?chain=mainnet&inputCurrency=NATIVE",
cheats: {
weth: "0x4200000000000000000000000000000000000006",
swapRouter: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
txnBot: import.meta.env.VITE_TXNBOT_BASE_SEPOLIA_LOCAL_FORK ?? LOCAL_TXNBOT_URL
}
2025-09-23 14:18:04 +02:00
},
{
2025-09-23 19:24:05 +02:00
// base mainnet
2025-09-23 14:18:04 +02:00
id: 8453,
2025-09-23 19:24:05 +02:00
graphql: import.meta.env.VITE_PONDER_BASE ?? "",
2025-09-23 14:18:04 +02:00
path: "base",
stake: "0xed70707fab05d973ad41eae8d17e2bcd36192cfc",
harb: "0x45caa5929f6ee038039984205bdecf968b954820",
2025-09-23 21:16:15 +02:00
uniswap: "https://app.uniswap.org/swap?chain=mainnet&inputCurrency=NATIVE",
cheats: {
weth: "0x4200000000000000000000000000000000000006",
swapRouter: "",
txnBot: import.meta.env.VITE_TXNBOT_BASE ?? ""
}
2025-09-23 14:18:04 +02:00
},
2025-09-23 19:24:05 +02:00
];
2025-09-23 14:18:04 +02:00
export function getChain(id:number){
return chainsData.find((obj) => obj.id === id)
}