forked from balancer/frontend-v2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.ts
94 lines (89 loc) · 2 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import { Network } from '@ape.swap/swap-v2-sdk';
import { USE_DUMMY } from '@/constants/env';
import bsc from './bsc.json';
import bscDummy from './bsc-dummy.json';
import bscTestnet from './bsc-testnet.json';
import docker from './docker.json';
export interface Config {
key: string;
chainId: Network | 12345 | 17;
chainName: string;
name: string;
shortName: string;
network: string;
portisNetwork?: string;
unknown: boolean;
rpc: string;
publicRpc?: string;
ws: string;
loggingRpc: string;
explorer: string;
explorerName: string;
subgraph: string;
poolsUrlV2: string;
subgraphs: {
aave: string;
gauge: string;
};
supportsEIP1559: boolean;
supportsElementPools: boolean;
nativeAsset: {
name: string;
address: string;
symbol: string;
decimals: number;
deeplinkId: string;
logoURI: string;
minTransactionBuffer: string;
};
addresses: {
merkleRedeem: string;
merkleOrchard: string;
multicall: string;
vault: string;
weightedPoolFactory: string;
stablePoolFactory: string;
weth: string;
stETH: string;
wstETH: string;
lidoRelayer: string;
balancerHelpers: string;
batchRelayer: string;
veBAL: string;
gaugeController: string;
gaugeFactory: string;
balancerMinter: string;
tokenAdmin: string;
veDelegationProxy: string;
veBALHelpers: string;
feeDistributor: string;
};
keys: {
infura: string;
alchemy: string;
};
strategies: Record<
string,
{
type: string;
name: string;
}
>;
gauges: {
type: number;
weight: number;
};
}
const config: Record<Network | number, Config> = {
[Network.BSC]: USE_DUMMY ? bscDummy : bsc,
[Network.BSC_TESTNET]: bscTestnet,
// NOTE: ApeSwap Update: Remove default Balancer configs:
// [Network.MAINNET]: homestead,
// [Network.KOVAN]: kovan,
// [Network.RINKEBY]: rinkeby,
// [Network.POLYGON]: polygon,
// [Network.ARBITRUM]: arbitrum,
// @ts-ignore
17: docker
};
export default config;