-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathconst.ts
More file actions
22 lines (19 loc) · 1.1 KB
/
const.ts
File metadata and controls
22 lines (19 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { SupportedChainId } from '@cowprotocol/cow-sdk'
import { join } from 'node:path'
import { env } from 'node:process'
// CoW protocol contract address. Could be any address in theory for checking the token is permittable
export const SPENDER_ADDRESS = '0xC92E8bdf79f0507f65a392b0ab4667716BFE0110'
export const DEFAULT_RPC_URLS: Record<SupportedChainId, string> = {
[SupportedChainId.MAINNET]: 'https://mainnet.infura.io/v3/' + env.INFURA_API_KEY,
[SupportedChainId.ARBITRUM_ONE]: 'https://arbitrum.meowrpc.com',
[SupportedChainId.BASE]: 'https://mainnet.base.org',
[SupportedChainId.GNOSIS_CHAIN]: 'https://rpc.gnosischain.com',
[SupportedChainId.SEPOLIA]: 'https://ethereum-sepolia.publicnode.com',
[SupportedChainId.AVALANCHE]: 'https://api.avax.network/ext/bc/C/rpc',
[SupportedChainId.POLYGON]: 'https://polygon-rpc.com',
[SupportedChainId.BNB]: 'https://bsc-dataseed.binance.org',
[SupportedChainId.LINEA]: 'https://rpc.linea.build',
[SupportedChainId.PLASMA]: 'https://rpc.plasma.to',
[SupportedChainId.INK]: 'https://rpc-ten.inkonchain.com',
}
export const BASE_PATH = join('..', 'public')