@lifi/data-types 3.1.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -145,30 +145,6 @@ export const supportedEVMChains = [
|
|
|
145
145
|
rpcUrls: ['https://rpc.ftm.tools/', 'https://rpcapi.fantom.network'],
|
|
146
146
|
},
|
|
147
147
|
},
|
|
148
|
-
// 66 - OKXChain
|
|
149
|
-
{
|
|
150
|
-
key: ChainKey.OKT,
|
|
151
|
-
chainType: ChainType.EVM,
|
|
152
|
-
name: 'OKXChain',
|
|
153
|
-
coin: CoinKey.OKT,
|
|
154
|
-
id: 66,
|
|
155
|
-
mainnet: true,
|
|
156
|
-
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/okx.svg',
|
|
157
|
-
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/okex.json',
|
|
158
|
-
multicallAddress: multicallAddresses[ChainId.OKT],
|
|
159
|
-
// https://okc-docs.readthedocs.io/en/latest/developers/quick-start-for-mainnet.html
|
|
160
|
-
metamask: {
|
|
161
|
-
chainId: prefixChainId(66),
|
|
162
|
-
blockExplorerUrls: ['https://www.oklink.com/en/okc/'],
|
|
163
|
-
chainName: 'OKXChain Mainnet',
|
|
164
|
-
nativeCurrency: {
|
|
165
|
-
name: 'OKT',
|
|
166
|
-
symbol: 'OKT',
|
|
167
|
-
decimals: 18,
|
|
168
|
-
},
|
|
169
|
-
rpcUrls: ['https://exchainrpc.okex.org'],
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
148
|
// 43114 - Avalanche
|
|
173
149
|
{
|
|
174
150
|
key: ChainKey.AVA,
|
|
@@ -148,30 +148,6 @@ exports.supportedEVMChains = [
|
|
|
148
148
|
rpcUrls: ['https://rpc.ftm.tools/', 'https://rpcapi.fantom.network'],
|
|
149
149
|
},
|
|
150
150
|
},
|
|
151
|
-
// 66 - OKXChain
|
|
152
|
-
{
|
|
153
|
-
key: types_1.ChainKey.OKT,
|
|
154
|
-
chainType: types_1.ChainType.EVM,
|
|
155
|
-
name: 'OKXChain',
|
|
156
|
-
coin: types_1.CoinKey.OKT,
|
|
157
|
-
id: 66,
|
|
158
|
-
mainnet: true,
|
|
159
|
-
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/okx.svg',
|
|
160
|
-
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/okex.json',
|
|
161
|
-
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.OKT],
|
|
162
|
-
// https://okc-docs.readthedocs.io/en/latest/developers/quick-start-for-mainnet.html
|
|
163
|
-
metamask: {
|
|
164
|
-
chainId: (0, utils_1.prefixChainId)(66),
|
|
165
|
-
blockExplorerUrls: ['https://www.oklink.com/en/okc/'],
|
|
166
|
-
chainName: 'OKXChain Mainnet',
|
|
167
|
-
nativeCurrency: {
|
|
168
|
-
name: 'OKT',
|
|
169
|
-
symbol: 'OKT',
|
|
170
|
-
decimals: 18,
|
|
171
|
-
},
|
|
172
|
-
rpcUrls: ['https://exchainrpc.okex.org'],
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
151
|
// 43114 - Avalanche
|
|
176
152
|
{
|
|
177
153
|
key: types_1.ChainKey.AVA,
|
package/dist/cjs/coins/coins.js
CHANGED
|
@@ -81,12 +81,6 @@ exports.basicCoins = [
|
|
|
81
81
|
decimals: 18,
|
|
82
82
|
name: 'Heco-Peg ETH Token',
|
|
83
83
|
},
|
|
84
|
-
[types_1.ChainId.OKT]: {
|
|
85
|
-
address: '0xef71ca2ee68f45b9ad6f72fbdb33d707b872315c',
|
|
86
|
-
decimals: 18,
|
|
87
|
-
symbol: 'ETHK',
|
|
88
|
-
name: 'ETHK',
|
|
89
|
-
},
|
|
90
84
|
[types_1.ChainId.BOB]: {
|
|
91
85
|
address: '0x0000000000000000000000000000000000000000',
|
|
92
86
|
decimals: 18,
|
|
@@ -300,11 +294,6 @@ exports.basicCoins = [
|
|
|
300
294
|
address: '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
|
|
301
295
|
decimals: 18,
|
|
302
296
|
},
|
|
303
|
-
[types_1.ChainId.OKT]: {
|
|
304
|
-
address: '0x21cde7e32a6caf4742d00d44b07279e7596d26b9',
|
|
305
|
-
decimals: 18,
|
|
306
|
-
symbol: 'DAIK',
|
|
307
|
-
},
|
|
308
297
|
[types_1.ChainId.CRO]: {
|
|
309
298
|
address: '0xf2001b145b43032aaf5ee2884e456ccd805f677d',
|
|
310
299
|
decimals: 18,
|
|
@@ -371,19 +360,6 @@ exports.basicCoins = [
|
|
|
371
360
|
},
|
|
372
361
|
},
|
|
373
362
|
},
|
|
374
|
-
// > OKT
|
|
375
|
-
{
|
|
376
|
-
key: types_1.CoinKey.OKT,
|
|
377
|
-
name: types_1.CoinKey.OKT,
|
|
378
|
-
logoURI: 'https://static.debank.com/image/okt_token/logo_url/okt/1228cd92320b3d33769bd08eecfb5391.png',
|
|
379
|
-
verified: true,
|
|
380
|
-
chains: {
|
|
381
|
-
[types_1.ChainId.OKT]: {
|
|
382
|
-
address: '0x0000000000000000000000000000000000000000',
|
|
383
|
-
decimals: 18,
|
|
384
|
-
},
|
|
385
|
-
},
|
|
386
|
-
},
|
|
387
363
|
// > AVAX
|
|
388
364
|
{
|
|
389
365
|
key: types_1.CoinKey.AVAX,
|
|
@@ -532,10 +508,6 @@ exports.basicCoins = [
|
|
|
532
508
|
address: '0xb44a9b6905af7c801311e8f4e76932ee959c663c',
|
|
533
509
|
decimals: 6,
|
|
534
510
|
},
|
|
535
|
-
[types_1.ChainId.OKT]: {
|
|
536
|
-
address: '0x382bb369d343125bfb2117af9c149795c6c65c50',
|
|
537
|
-
decimals: 18,
|
|
538
|
-
},
|
|
539
511
|
[types_1.ChainId.CRO]: {
|
|
540
512
|
address: '0x66e428c3f67a68878562e79a0234c1f83c208770',
|
|
541
513
|
decimals: 6,
|
|
@@ -804,10 +776,6 @@ exports.basicCoins = [
|
|
|
804
776
|
address: '0x9362bbef4b8313a8aa9f0c9808b80577aa26b73b',
|
|
805
777
|
decimals: 6,
|
|
806
778
|
},
|
|
807
|
-
[types_1.ChainId.OKT]: {
|
|
808
|
-
address: '0xc946daf81b08146b1c7a8da2a851ddf2b3eaaf85',
|
|
809
|
-
decimals: 18,
|
|
810
|
-
},
|
|
811
779
|
[types_1.ChainId.CRO]: {
|
|
812
780
|
address: '0xc21223249ca28397b4b6541dffaecc539bff0c59',
|
|
813
781
|
decimals: 6,
|
|
@@ -1048,10 +1016,6 @@ exports.basicCoins = [
|
|
|
1048
1016
|
address: '0xe6a991ffa8cfe62b0bf6bf72959a3d4f11b2e0f5',
|
|
1049
1017
|
decimals: 8,
|
|
1050
1018
|
},
|
|
1051
|
-
[types_1.ChainId.OKT]: {
|
|
1052
|
-
address: '0x506f731f7656e2fb34b587b912808f2a7ab640bd',
|
|
1053
|
-
decimals: 18,
|
|
1054
|
-
},
|
|
1055
1019
|
[types_1.ChainId.CRO]: {
|
|
1056
1020
|
address: '0x062e66477faf219f25d27dced647bf57c3107d52',
|
|
1057
1021
|
decimals: 8,
|
|
@@ -1256,10 +1220,6 @@ exports.basicCoins = [
|
|
|
1256
1220
|
address: '0xf390830df829cf22c53c8840554b98eafc5dcbc2',
|
|
1257
1221
|
decimals: 18,
|
|
1258
1222
|
},
|
|
1259
|
-
[types_1.ChainId.OKT]: {
|
|
1260
|
-
address: '0x2218e0d5e0173769f5b4939a3ae423f7e5e4eab7',
|
|
1261
|
-
decimals: 18,
|
|
1262
|
-
},
|
|
1263
1223
|
[types_1.ChainId.HEC]: {
|
|
1264
1224
|
address: '0x52e00b2da5bd7940ffe26b609a42f957f31118d5',
|
|
1265
1225
|
decimals: 18,
|
|
@@ -1724,15 +1684,6 @@ exports.wrappedTokens = {
|
|
|
1724
1684
|
name: 'WMOVR',
|
|
1725
1685
|
logoURI: 'https://assets.coingecko.com/coins/images/17984/small/9285.png',
|
|
1726
1686
|
},
|
|
1727
|
-
[types_1.ChainId.OKT]: {
|
|
1728
|
-
address: '0x8f8526dbfd6e38e3d8307702ca8469bae6c56c15',
|
|
1729
|
-
symbol: 'wOKT',
|
|
1730
|
-
decimals: 18,
|
|
1731
|
-
chainId: types_1.ChainId.OKT,
|
|
1732
|
-
coinKey: 'wOKT',
|
|
1733
|
-
name: 'wOKT',
|
|
1734
|
-
logoURI: 'https://static.debank.com/image/okt_token/logo_url/okt/1228cd92320b3d33769bd08eecfb5391.png',
|
|
1735
|
-
},
|
|
1736
1687
|
[types_1.ChainId.HEC]: {
|
|
1737
1688
|
address: '0x5545153ccfca01fbd7dd11c0b23ba694d9509a6f',
|
|
1738
1689
|
symbol: 'wHT',
|
package/dist/cjs/multicall.js
CHANGED
|
@@ -15,7 +15,6 @@ exports.multicallAddresses = {
|
|
|
15
15
|
[types_1.ChainId.POL]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
16
16
|
[types_1.ChainId.BSC]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
17
17
|
[types_1.ChainId.DAI]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
18
|
-
[types_1.ChainId.OKT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
19
18
|
[types_1.ChainId.FTM]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
20
19
|
[types_1.ChainId.AVA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
21
20
|
[types_1.ChainId.ARB]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
package/dist/coins/coins.js
CHANGED
|
@@ -78,12 +78,6 @@ export const basicCoins = [
|
|
|
78
78
|
decimals: 18,
|
|
79
79
|
name: 'Heco-Peg ETH Token',
|
|
80
80
|
},
|
|
81
|
-
[ChainId.OKT]: {
|
|
82
|
-
address: '0xef71ca2ee68f45b9ad6f72fbdb33d707b872315c',
|
|
83
|
-
decimals: 18,
|
|
84
|
-
symbol: 'ETHK',
|
|
85
|
-
name: 'ETHK',
|
|
86
|
-
},
|
|
87
81
|
[ChainId.BOB]: {
|
|
88
82
|
address: '0x0000000000000000000000000000000000000000',
|
|
89
83
|
decimals: 18,
|
|
@@ -297,11 +291,6 @@ export const basicCoins = [
|
|
|
297
291
|
address: '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
|
|
298
292
|
decimals: 18,
|
|
299
293
|
},
|
|
300
|
-
[ChainId.OKT]: {
|
|
301
|
-
address: '0x21cde7e32a6caf4742d00d44b07279e7596d26b9',
|
|
302
|
-
decimals: 18,
|
|
303
|
-
symbol: 'DAIK',
|
|
304
|
-
},
|
|
305
294
|
[ChainId.CRO]: {
|
|
306
295
|
address: '0xf2001b145b43032aaf5ee2884e456ccd805f677d',
|
|
307
296
|
decimals: 18,
|
|
@@ -368,19 +357,6 @@ export const basicCoins = [
|
|
|
368
357
|
},
|
|
369
358
|
},
|
|
370
359
|
},
|
|
371
|
-
// > OKT
|
|
372
|
-
{
|
|
373
|
-
key: CoinKey.OKT,
|
|
374
|
-
name: CoinKey.OKT,
|
|
375
|
-
logoURI: 'https://static.debank.com/image/okt_token/logo_url/okt/1228cd92320b3d33769bd08eecfb5391.png',
|
|
376
|
-
verified: true,
|
|
377
|
-
chains: {
|
|
378
|
-
[ChainId.OKT]: {
|
|
379
|
-
address: '0x0000000000000000000000000000000000000000',
|
|
380
|
-
decimals: 18,
|
|
381
|
-
},
|
|
382
|
-
},
|
|
383
|
-
},
|
|
384
360
|
// > AVAX
|
|
385
361
|
{
|
|
386
362
|
key: CoinKey.AVAX,
|
|
@@ -529,10 +505,6 @@ export const basicCoins = [
|
|
|
529
505
|
address: '0xb44a9b6905af7c801311e8f4e76932ee959c663c',
|
|
530
506
|
decimals: 6,
|
|
531
507
|
},
|
|
532
|
-
[ChainId.OKT]: {
|
|
533
|
-
address: '0x382bb369d343125bfb2117af9c149795c6c65c50',
|
|
534
|
-
decimals: 18,
|
|
535
|
-
},
|
|
536
508
|
[ChainId.CRO]: {
|
|
537
509
|
address: '0x66e428c3f67a68878562e79a0234c1f83c208770',
|
|
538
510
|
decimals: 6,
|
|
@@ -801,10 +773,6 @@ export const basicCoins = [
|
|
|
801
773
|
address: '0x9362bbef4b8313a8aa9f0c9808b80577aa26b73b',
|
|
802
774
|
decimals: 6,
|
|
803
775
|
},
|
|
804
|
-
[ChainId.OKT]: {
|
|
805
|
-
address: '0xc946daf81b08146b1c7a8da2a851ddf2b3eaaf85',
|
|
806
|
-
decimals: 18,
|
|
807
|
-
},
|
|
808
776
|
[ChainId.CRO]: {
|
|
809
777
|
address: '0xc21223249ca28397b4b6541dffaecc539bff0c59',
|
|
810
778
|
decimals: 6,
|
|
@@ -1045,10 +1013,6 @@ export const basicCoins = [
|
|
|
1045
1013
|
address: '0xe6a991ffa8cfe62b0bf6bf72959a3d4f11b2e0f5',
|
|
1046
1014
|
decimals: 8,
|
|
1047
1015
|
},
|
|
1048
|
-
[ChainId.OKT]: {
|
|
1049
|
-
address: '0x506f731f7656e2fb34b587b912808f2a7ab640bd',
|
|
1050
|
-
decimals: 18,
|
|
1051
|
-
},
|
|
1052
1016
|
[ChainId.CRO]: {
|
|
1053
1017
|
address: '0x062e66477faf219f25d27dced647bf57c3107d52',
|
|
1054
1018
|
decimals: 8,
|
|
@@ -1253,10 +1217,6 @@ export const basicCoins = [
|
|
|
1253
1217
|
address: '0xf390830df829cf22c53c8840554b98eafc5dcbc2',
|
|
1254
1218
|
decimals: 18,
|
|
1255
1219
|
},
|
|
1256
|
-
[ChainId.OKT]: {
|
|
1257
|
-
address: '0x2218e0d5e0173769f5b4939a3ae423f7e5e4eab7',
|
|
1258
|
-
decimals: 18,
|
|
1259
|
-
},
|
|
1260
1220
|
[ChainId.HEC]: {
|
|
1261
1221
|
address: '0x52e00b2da5bd7940ffe26b609a42f957f31118d5',
|
|
1262
1222
|
decimals: 18,
|
|
@@ -1721,15 +1681,6 @@ export const wrappedTokens = {
|
|
|
1721
1681
|
name: 'WMOVR',
|
|
1722
1682
|
logoURI: 'https://assets.coingecko.com/coins/images/17984/small/9285.png',
|
|
1723
1683
|
},
|
|
1724
|
-
[ChainId.OKT]: {
|
|
1725
|
-
address: '0x8f8526dbfd6e38e3d8307702ca8469bae6c56c15',
|
|
1726
|
-
symbol: 'wOKT',
|
|
1727
|
-
decimals: 18,
|
|
1728
|
-
chainId: ChainId.OKT,
|
|
1729
|
-
coinKey: 'wOKT',
|
|
1730
|
-
name: 'wOKT',
|
|
1731
|
-
logoURI: 'https://static.debank.com/image/okt_token/logo_url/okt/1228cd92320b3d33769bd08eecfb5391.png',
|
|
1732
|
-
},
|
|
1733
1684
|
[ChainId.HEC]: {
|
|
1734
1685
|
address: '0x5545153ccfca01fbd7dd11c0b23ba694d9509a6f',
|
|
1735
1686
|
symbol: 'wHT',
|
package/dist/multicall.js
CHANGED
|
@@ -12,7 +12,6 @@ export const multicallAddresses = {
|
|
|
12
12
|
[ChainId.POL]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
13
13
|
[ChainId.BSC]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
14
14
|
[ChainId.DAI]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
15
|
-
[ChainId.OKT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
16
15
|
[ChainId.FTM]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
17
16
|
[ChainId.AVA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
18
17
|
[ChainId.ARB]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/data-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Data types for the LI.FI stack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sdk",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@lifi/types": "^
|
|
66
|
+
"@lifi/types": "^13.0.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@commitlint/cli": "^17.7.1",
|