-
Notifications
You must be signed in to change notification settings - Fork 0
/
yieldscan.config.js
69 lines (65 loc) · 1.62 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
57
58
59
60
61
62
63
64
65
66
67
68
69
// Selected network
// const selectedNetwork = `Polkadot`;
const selectedNetwork = `Kusama`;
// const selectedNetwork = `Westend`;
// Substrate networks
export const networks = [
{
id: "polkadot-cc1",
name: "Polkadot",
network: "polkadot",
isTestNetwork: false,
denom: "DOT",
coinGeckoDenom: "polkadot",
decimalPlaces: 10,
twitterUrl: "@Polkadot",
addressPrefix: 0,
nodeWs: "wss://rpc.polkadot.io",
erasPerDay: 1,
lockUpPeriod: 28,
minAmount: 1,
recommendedAdditionalAmount: 50,
about: "Polkadot is a heterogeneous multi‑chain technology.",
},
{
id: "kusama-cc3",
name: "Kusama",
network: "kusama",
isTestNetwork: false,
denom: "KSM",
twitterUrl: "@kusamanetwork",
coinGeckoDenom: "kusama",
decimalPlaces: 12,
addressPrefix: 2,
nodeWs: "wss://kusama-rpc.polkadot.io",
erasPerDay: 4,
lockUpPeriod: 7,
minAmount: 0.1,
recommendedAdditionalAmount: 0.5,
about: "Kusama is an early, unaudited, and unrefined release of Polkadot.",
},
{
id: "westend",
name: "Westend",
network: "westend",
isTestNetwork: true,
denom: "WND",
twitterUrl: "@westend",
coinGeckoDenom: undefined,
decimalPlaces: 12,
addressPrefix: 42,
nodeWs: "wss://westend-rpc.polkadot.io",
erasPerDay: 4,
lockUpPeriod: 7,
minAmount: 0.1,
recommendedAdditionalAmount: 0.5,
about: "Westend is one of the test networks for polkadot ecosystem.",
},
];
export const getNetworkInfo = (networkName) => {
return networks.find(({ name }) => name === networkName);
};
export const getAllNetworksInfo = () => {
return networks;
};
export const network = networks.find(({ name }) => name === selectedNetwork);