-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ts
More file actions
38 lines (36 loc) · 1.15 KB
/
config.ts
File metadata and controls
38 lines (36 loc) · 1.15 KB
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
export type ConfigType = {
UPLOADER_URL: string;
UPLOADER_ACCOUNT: string;
INFURA_ID: string;
WALLET_CONNECT_PROJECT_ID: string;
magicApiKey: string;
githubRepo: string;
chainId: number;
rpcUrl: string;
oceanNetwork: {
contract: string;
networkDecimals: number;
};
};
const config: ConfigType = {
UPLOADER_URL: process.env.NEXT_PUBLIC_UPLOADER_URL || 'https://api.uploader.oceanprotocol.com',
UPLOADER_ACCOUNT:
process.env.NEXT_PUBLIC_UPLOADER_ACCOUNT ||
'0x21F2B4d705aC448c9Ff96694Dd9e5901F79f1Ab2',
INFURA_ID: process.env.NEXT_PUBLIC_INFURA_ID || '',
WALLET_CONNECT_PROJECT_ID:
process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID || '',
magicApiKey:
process.env.NEXT_PUBLIC_MAGIC_API_KEY || 'pk_live_3EA01B119E287F11',
githubRepo: 'https://github.com/oceanprotocol/uploader-ui',
chainId: parseInt(process.env.NEXT_PUBLIC_CHAIN_ID || '', 10) || 137,
rpcUrl:
process.env.NEXT_PUBLIC_RPC_URL || 'https://polygon-rpc.com/',
oceanNetwork: {
contract:
process.env.EXPO_PUBLIC_OCEAN_CONTRACT ||
'0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8',
networkDecimals: 18,
},
};
export default config;