-
Notifications
You must be signed in to change notification settings - Fork 4
/
constants.ts
111 lines (97 loc) · 2.48 KB
/
constants.ts
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
export class Chain_Ethereum {
"name": "Ethereum"
"chainType": "Evm"
"native": null
"stable": null
"endpoint": "https://rinkeby.infura.io/v3/6d61e7957c1c489ea8141e947447405b"
"network": null
}
export class Chain_Khala {
"name": "Khala"
"chainType": "Sub"
"native": null
"stable": null
"endpoint": "wss://khala-api.phala.network/ws"
"network": null
}
export class Chain_Karura {
"name": "Karura"
"chainType": "Sub"
"native": null
"stable": null
"endpoint": "wss://karura-rpc-0.aca-api.network"
"network": null
}
export class Asset_Pha_Ethereum {
"name": "Phala Token"
"symbol": "PHA"
"decimals": 18
"location": "0x6c5ba91642f10282b576d91922ae6448c9d52f4e"
}
export class Asset_Weth_Ethereum {
"name": "Wrapped Ether"
"symbol": "WETH"
"decimals": 18
"location": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
}
export class Asset_Pha_Khala {
"name": "Phala Token"
"symbol": "PHA"
"decimals": 12
// Encode of MultiLocation: (1, X1(Parachain(2004)))
"location": "0x010100511f"
}
export class Asset_Pha_Karura {
"name": "Phala Token"
"symbol": "PHA"
"decimals": 12
// Encode of MultiLocation: (1, X1(Parachain(2004)))
"location": "0x010100511f"
}
export class Asset_Kar_Karura {
"name": "Karura"
"symbol": "KAR"
"decimals": 12
// Encode of MultiLocation: (1, X2(Parachain(2000), GeneralKey(0x0080)))
"location": "0x010200411f06080080"
}
export class Asset_Kusd_Karura {
"name": "Karura USD"
"symbol": "kUSD"
"decimals": 12
// Encode of MultiLocation: (1, X2(Parachain(2000), GeneralKey(0x0081)))
"location": "0x010200411f06080081"
}
export class Bridge_Ethereum2Khala_Pha {
asset0: Asset_Pha_Ethereum
asset1: Asset_Pha_Khala
}
export class Bridge_Khala2Ethereum_Pha {
asset0: Asset_Pha_Khala
asset1: Asset_Pha_Ethereum
}
export class Bridge_Khala2Karura_Pha {
asset0: Asset_Pha_Khala
asset1: Asset_Pha_Karura
}
export class Dex_UniswapV2_Pha_Weth_Ethereum {
id: "0x8867f20c1c63baccec7617626254a060eeb0e61e"
asset0: Asset_Pha_Ethereum
asset1: Asset_Weth_Ethereum
swap_fee: 0
dev_fee: 0
}
export class Dex_KaruraSwap_Kar_Kusd_Karura {
id: "lp://KAR/KUSD"
asset0: Asset_Kar_Karura
asset1: Asset_Kusd_Karura
swap_fee: 0
dev_fee: 0
}
export class Dex_KaruraSwap_Kusd_Pha_Karura {
id: "lp://KUSD/PHA"
asset0: Asset_Kar_Karura
asset1: Asset_Pha_Karura
swap_fee: 0
dev_fee: 0
}