-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.ts
42 lines (42 loc) · 1.43 KB
/
config.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
export type EnvironmentConfig = {
[key: string]: string;
};
const rpc_port = '7777';
const sse_port = '9999';
const rpc_port_localhost = '11101';
const protocol = window.location.protocol;
const currentPort = window?.location?.port || (protocol === "https:" ? "443" : "80");
const sse_port_localhost = currentPort || '18101';
const localhost = "http://localhost";
const launcherhost = localhost;
const default_node_localhost = [localhost, rpc_port_localhost].join(':');
const default_node_launcher = [launcherhost, rpc_port].join(':');
const default_node_testnet = "https://rpc.testnet.casperlabs.io";
const default_node_integration = "https://rpc.integration.casperlabs.io";
const default_node_mainnet = "https://rpc.mainnet.casperlabs.io";
const events_main_suffix = '/events/main';
export const config: EnvironmentConfig = {
localhost,
api_prefix: "/api/",
rpc_port,
sse_port,
sse_port_localhost,
events_main_suffix,
eventsUrl_localhost: [localhost, sse_port_localhost].join(':'),
eventsUrl_default: events_main_suffix,
default_node_localhost,
default_node_launcher,
default_node_testnet,
default_node_integration,
default_node_mainnet,
chain_name_testnet: "casper-test",
chain_name_localhost: "casper-net-1",
chain_name_integration: "integration-test",
chain_name_mainnet: "casper",
path_sep: "/",
gasFee: '1500000000',
minimumTransfer: '2500000000',
TTL: '30m',
idMax: '100000000',
gasFeeTransfer: '10000'
};