-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsupported-chains.ts
More file actions
94 lines (86 loc) · 2.15 KB
/
supported-chains.ts
File metadata and controls
94 lines (86 loc) · 2.15 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import type { Chain } from "./chains"
export type Assign<T, U> = {
[K in keyof T]: K extends keyof U ? U[K] : T[K]
}
const createChain = <const chain extends Chain>(chain: chain) => {
return chain as Assign<Chain, chain>
}
export const polkadotChain = createChain({
id: "polkadot",
name: "Polkadot",
specName: "polkadot",
wsUrls: ["wss://polkadot-rpc.n.dwellir.com"],
relay: "polkadot",
type: "relay",
chainId: 0,
blockExplorerUrl: "https://polkadot.subscan.io",
prefix: 0,
decimals: 10,
symbol: "DOT"
})
export const polkadotAssetHubChain = createChain({
id: "polkadot_asset_hub",
name: "AssetHubPolkadot",
specName: "asset-hub-polkadot",
wsUrls: ["wss://polkadot-asset-hub-rpc.polkadot.io/"],
relay: "polkadot",
type: "system",
chainId: 1000,
blockExplorerUrl: "https://assethub-polkadot.subscan.io",
prefix: 0,
decimals: 10,
symbol: "DOT"
})
export const westendChain = createChain({
id: "west",
name: "Westend",
specName: "westend",
wsUrls: ["wss://westend-rpc.polkadot.io"],
relay: "west",
type: "relay",
chainId: 0,
blockExplorerUrl: "https://westend.subscan.io",
xcmExtrinsic: "limited_teleport_assets",
prefix: 42, // default
decimals: 12,
symbol: "WND"
})
export const westendAssetHubChain = createChain({
id: "west_asset_hub",
name: "AssetHubWestend",
specName: "asset-hub-westend",
wsUrls: ["wss://westend-asset-hub-rpc.polkadot.io"],
relay: "west",
type: "system",
chainId: 1000,
blockExplorerUrl: "https://assethub-westend.subscan.io",
prefix: 42, // default
decimals: 12,
symbol: "WND"
})
export const hydraChain = createChain({
id: "hydra",
name: "Hydration",
specName: "hydra",
wsUrls: ["wss://hydration-rpc.n.dwellir.com"],
relay: "polkadot",
type: "para",
chainId: null,
blockExplorerUrl: "https://hydration.subscan.io",
prefix: 42,
decimals: 12,
symbol: "HDX"
})
export const paseoChain = createChain({
id: "paseo",
name: "Paseo",
specName: "paseo-testnet",
wsUrls: ["wss://paseo.dotters.network"],
relay: "paseo",
type: "relay",
chainId: null,
blockExplorerUrl: "https://paseo.subscan.io",
prefix: 0,
decimals: 10,
symbol: "PAS"
})