forked from vechain/token-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst.js
More file actions
37 lines (34 loc) · 814 Bytes
/
const.js
File metadata and controls
37 lines (34 loc) · 814 Bytes
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
const z = require("zod");
const NET_FOLDERS = {
main: "main",
test: "test",
};
const NODES = {
main: "https://sync-mainnet.vechain.org",
test: "https://sync-testnet.vechain.org",
};
const additionalSchema = z.object({
website: z.string().url().optional(),
whitePaper: z.string().url().optional(),
links: z
.object({
twitter: z.string().url().optional(),
telegram: z.string().url().optional(),
facebook: z.string().url().optional(),
medium: z.string().url().optional(),
github: z.string().url().optional(),
slack: z.string().url().optional(),
})
.optional(),
crossChainProvider: z
.object({
name: z.string(),
url: z.string().url(),
})
.optional(),
});
module.exports = {
NETS: NET_FOLDERS,
NODES,
additionalSchema,
};