-
Notifications
You must be signed in to change notification settings - Fork 5
/
yieldscan.config.js
56 lines (53 loc) · 1.33 KB
/
yieldscan.config.js
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
// Selected network
// const selectedNetwork = `Polkadot`;
const selectedNetwork = `Kusama`;
// const selectedNetwork = `Westend`;
// Substrate networks
export const networks = [
{
id: "polkadot-cc1",
name: "Polkadot",
denom: "DOT",
coinGeckoDenom: "polkadot",
decimalPlaces: 10,
twitterUrl: "@Polkadot",
addressPrefix: 0,
nodeWs: "wss://rpc.polkadot.io",
erasPerDay: 1,
lockUpPeriod: 28,
minAmount: 1,
about: "Polkadot is a heterogeneous multi‑chain technology.",
},
{
id: "kusama-cc3",
name: "Kusama",
denom: "KSM",
twitterUrl: "@kusamanetwork",
coinGeckoDenom: "kusama",
decimalPlaces: 12,
addressPrefix: 2,
nodeWs: "wss://kusama-rpc.polkadot.io",
erasPerDay: 4,
lockUpPeriod: 7,
minAmount: 0.1,
about: "Kusama is an early, unaudited, and unrefined release of Polkadot.",
},
{
id: "westend",
name: "Westend",
denom: "WND",
coinGeckoDenom: undefined,
decimalPlaces: 12,
addressPrefix: 42,
nodeWs: "wss://westend-rpc.polkadot.io",
backendWs: "wss://westend.polkastats.io/api/v3",
backendHttp: "http://westend.polkastats.io/api/v3",
erasPerDay: 4,
lockUpPeriod: 7,
validator: undefined,
},
];
export const getNetworkInfo = (networkName) => {
return networks.find(({ name }) => name === networkName);
};
export const network = networks.find(({ name }) => name === selectedNetwork);