Repository navigation
Expand file tree
/
Copy pathconfig.js
More file actions
51 lines (46 loc) · 1.3 KB
/
Copy pathconfig.js
File metadata and controls
51 lines (46 loc) · 1.3 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
39
40
41
42
43
44
45
46
47
48
49
50
51
// Read-only network config for the phone viewer.
// Shadownet is the default. Mainnet is present so a deployment can be
// inspected later; it ships with no contract address and the page never
// calls it until one is set here. This file holds no keys.
export const TIP = {
name: "bioid.tez",
address: "tz1Tm5drMq3zueTpSonJ2FE7P3MBZN9RBNta",
url: "https://tzkt.io/tz1Tm5drMq3zueTpSonJ2FE7P3MBZN9RBNta",
};
export const DEFAULT_NETWORK = "shadownet";
export const NETWORKS = {
shadownet: {
id: "shadownet",
label: "Shadownet",
readOnly: true,
demo: true,
api: "https://api.shadownet.tzkt.io/v1",
explorer: "https://shadownet.tzkt.io",
contract: "KT1HpDatoa5tHDctAQDY7wQgVEnrWJ9S3vix",
},
mainnet: {
id: "mainnet",
label: "Mainnet",
readOnly: true,
demo: false,
api: "https://api.tzkt.io/v1",
explorer: "https://tzkt.io",
contract: "",
},
};
// Tube codes on the synthetic Shadownet pilot. The label page uses these
// when TzKT cannot be reached. Live reads prefer the on-chain code index.
export const PILOT_CODES = [
"SY00000201",
"SY00000202",
"SY00000203",
"SY00000211",
"SY00000212",
"SY00000221",
"SY00000222",
"SY00000231",
"SY00000241",
];
export function networkById(id) {
return NETWORKS[id] || NETWORKS[DEFAULT_NETWORK];
}