harb/web-app/src/config.ts

37 lines
1.3 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";
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",
uniswap: "https://app.uniswap.org/swap?chain=mainnet&inputCurrency=NATIVE"
}, {
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",
uniswap: "https://app.uniswap.org/swap?chain=mainnet&inputCurrency=NATIVE"
},
{
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",
uniswap: "https://app.uniswap.org/swap?chain=mainnet&inputCurrency=NATIVE"
},
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)
}