@lifi/data-types 6.69.0 → 6.70.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.
- package/package.json +2 -2
- package/src/_cjs/chains/foundry.js +1 -0
- package/src/_cjs/chains/foundry.js.map +1 -1
- package/src/_cjs/chains/index.js +3 -1
- package/src/_cjs/chains/index.js.map +1 -1
- package/src/_cjs/chains/supportedChains.evm.js +3 -8
- package/src/_cjs/chains/supportedChains.evm.js.map +1 -1
- package/src/_cjs/chains/supportedChains.js +2 -0
- package/src/_cjs/chains/supportedChains.js.map +1 -1
- package/src/_cjs/chains/supportedChains.stl.int.spec.js +48 -0
- package/src/_cjs/chains/supportedChains.stl.int.spec.js.map +1 -0
- package/src/_cjs/chains/supportedChains.stl.js +35 -0
- package/src/_cjs/chains/supportedChains.stl.js.map +1 -0
- package/src/_cjs/chains/supportedChains.svm.js +1 -1
- package/src/_cjs/chains/supportedChains.svm.js.map +1 -1
- package/src/_cjs/chains/supportedChains.unit.spec.js +1 -0
- package/src/_cjs/chains/supportedChains.unit.spec.js.map +1 -1
- package/src/_cjs/chains/supportedChains.utxo.js +4 -7
- package/src/_cjs/chains/supportedChains.utxo.js.map +1 -1
- package/src/_cjs/coins/coins.js +29 -0
- package/src/_cjs/coins/coins.js.map +1 -1
- package/src/_esm/chains/foundry.js +1 -0
- package/src/_esm/chains/foundry.js.map +1 -1
- package/src/_esm/chains/index.js +1 -0
- package/src/_esm/chains/index.js.map +1 -1
- package/src/_esm/chains/supportedChains.evm.js +3 -8
- package/src/_esm/chains/supportedChains.evm.js.map +1 -1
- package/src/_esm/chains/supportedChains.js +2 -0
- package/src/_esm/chains/supportedChains.js.map +1 -1
- package/src/_esm/chains/supportedChains.stl.int.spec.js +46 -0
- package/src/_esm/chains/supportedChains.stl.int.spec.js.map +1 -0
- package/src/_esm/chains/supportedChains.stl.js +32 -0
- package/src/_esm/chains/supportedChains.stl.js.map +1 -0
- package/src/_esm/chains/supportedChains.svm.js +1 -1
- package/src/_esm/chains/supportedChains.svm.js.map +1 -1
- package/src/_esm/chains/supportedChains.unit.spec.js +1 -0
- package/src/_esm/chains/supportedChains.unit.spec.js.map +1 -1
- package/src/_esm/chains/supportedChains.utxo.js +4 -7
- package/src/_esm/chains/supportedChains.utxo.js.map +1 -1
- package/src/_esm/coins/coins.js +30 -0
- package/src/_esm/coins/coins.js.map +1 -1
- package/src/_types/chains/foundry.d.ts.map +1 -1
- package/src/_types/chains/index.d.ts +1 -0
- package/src/_types/chains/index.d.ts.map +1 -1
- package/src/_types/chains/supportedChains.d.ts.map +1 -1
- package/src/_types/chains/supportedChains.evm.d.ts.map +1 -1
- package/src/_types/chains/supportedChains.stl.d.ts +3 -0
- package/src/_types/chains/supportedChains.stl.d.ts.map +1 -0
- package/src/_types/chains/supportedChains.stl.int.spec.d.ts +2 -0
- package/src/_types/chains/supportedChains.stl.int.spec.d.ts.map +1 -0
- package/src/_types/chains/supportedChains.utxo.d.ts.map +1 -1
- package/src/_types/coins/coins.d.ts.map +1 -1
- package/src/chains/foundry.ts +1 -0
- package/src/chains/index.ts +1 -0
- package/src/chains/supportedChains.evm.ts +3 -8
- package/src/chains/supportedChains.stl.int.spec.ts +58 -0
- package/src/chains/supportedChains.stl.ts +34 -0
- package/src/chains/supportedChains.svm.ts +1 -1
- package/src/chains/supportedChains.ts +2 -0
- package/src/chains/supportedChains.unit.spec.ts +1 -0
- package/src/chains/supportedChains.utxo.ts +4 -7
- package/src/coins/coins.ts +32 -0
|
@@ -4,6 +4,7 @@ import { supportedMVMChains } from './supportedChains.mvm.js'
|
|
|
4
4
|
import { supportedSVMChains } from './supportedChains.svm.js'
|
|
5
5
|
import { supportedUXTOChains } from './supportedChains.utxo.js'
|
|
6
6
|
import { supportedTVMChains } from './supportedChains.tvm.js'
|
|
7
|
+
import { supportedSTLChains } from './supportedChains.stl.js'
|
|
7
8
|
|
|
8
9
|
// This assignment is required to avoid breaking
|
|
9
10
|
// changes with the new non EVM support types release
|
|
@@ -14,6 +15,7 @@ export const supportedChains = [
|
|
|
14
15
|
...supportedMVMChains,
|
|
15
16
|
...supportedUXTOChains,
|
|
16
17
|
...supportedTVMChains,
|
|
18
|
+
...supportedSTLChains,
|
|
17
19
|
]
|
|
18
20
|
|
|
19
21
|
export const getChainByKey = (chainKey: ChainKey): Chain => {
|
|
@@ -25,10 +25,7 @@ export const supportedUXTOChains: UTXOChain[] = [
|
|
|
25
25
|
symbol: 'BTC',
|
|
26
26
|
decimals: 8,
|
|
27
27
|
},
|
|
28
|
-
rpcUrls: [
|
|
29
|
-
'https://node-router.thorswap.net/bitcoin',
|
|
30
|
-
'https://bitcoin-rpc.publicnode.com',
|
|
31
|
-
],
|
|
28
|
+
rpcUrls: ['https://bitcoin-rpc.publicnode.com'],
|
|
32
29
|
},
|
|
33
30
|
},
|
|
34
31
|
{
|
|
@@ -52,7 +49,7 @@ export const supportedUXTOChains: UTXOChain[] = [
|
|
|
52
49
|
symbol: 'BCH',
|
|
53
50
|
decimals: 8,
|
|
54
51
|
},
|
|
55
|
-
rpcUrls: [
|
|
52
|
+
rpcUrls: [],
|
|
56
53
|
},
|
|
57
54
|
},
|
|
58
55
|
{
|
|
@@ -74,7 +71,7 @@ export const supportedUXTOChains: UTXOChain[] = [
|
|
|
74
71
|
symbol: 'LTC',
|
|
75
72
|
decimals: 8,
|
|
76
73
|
},
|
|
77
|
-
rpcUrls: [
|
|
74
|
+
rpcUrls: [],
|
|
78
75
|
},
|
|
79
76
|
},
|
|
80
77
|
{
|
|
@@ -96,7 +93,7 @@ export const supportedUXTOChains: UTXOChain[] = [
|
|
|
96
93
|
symbol: 'DOGE',
|
|
97
94
|
decimals: 8,
|
|
98
95
|
},
|
|
99
|
-
rpcUrls: ['https://
|
|
96
|
+
rpcUrls: ['https://dogecoin.drpc.org'],
|
|
100
97
|
},
|
|
101
98
|
},
|
|
102
99
|
{
|
package/src/coins/coins.ts
CHANGED
|
@@ -627,6 +627,20 @@ export const basicCoins: BasicCoin[] = [
|
|
|
627
627
|
},
|
|
628
628
|
},
|
|
629
629
|
},
|
|
630
|
+
// > XLM
|
|
631
|
+
{
|
|
632
|
+
key: CoinKey.XLM,
|
|
633
|
+
name: CoinKey.XLM,
|
|
634
|
+
logoURI:
|
|
635
|
+
'https://lifinance.github.io/types/src/assets/icons/chains/stellar.svg',
|
|
636
|
+
verified: true,
|
|
637
|
+
chains: {
|
|
638
|
+
[ChainId.XLM]: {
|
|
639
|
+
address: 'CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA',
|
|
640
|
+
decimals: 7,
|
|
641
|
+
},
|
|
642
|
+
},
|
|
643
|
+
},
|
|
630
644
|
// > Fogo
|
|
631
645
|
{
|
|
632
646
|
key: CoinKey.FOGO,
|
|
@@ -1126,6 +1140,10 @@ export const basicCoins: BasicCoin[] = [
|
|
|
1126
1140
|
address: '0x3600000000000000000000000000000000000000',
|
|
1127
1141
|
decimals: 6,
|
|
1128
1142
|
},
|
|
1143
|
+
[ChainId.XLM]: {
|
|
1144
|
+
address: 'CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75',
|
|
1145
|
+
decimals: 7,
|
|
1146
|
+
},
|
|
1129
1147
|
},
|
|
1130
1148
|
},
|
|
1131
1149
|
// USDC.e
|
|
@@ -3428,6 +3446,10 @@ export const basicCoins: BasicCoin[] = [
|
|
|
3428
3446
|
address: '0xe715cba7b5ccb33790cebff1436809d36cb17e57',
|
|
3429
3447
|
decimals: 6,
|
|
3430
3448
|
},
|
|
3449
|
+
[ChainId.XLM]: {
|
|
3450
|
+
address: 'CDTKPWPLOURQA2SGTKTUQOWRCBZEORB4BWBOMJ3D3ZTQQSGE5F6JBQLV',
|
|
3451
|
+
decimals: 7,
|
|
3452
|
+
},
|
|
3431
3453
|
},
|
|
3432
3454
|
},
|
|
3433
3455
|
|
|
@@ -4211,6 +4233,16 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
|
|
|
4211
4233
|
logoURI:
|
|
4212
4234
|
'https://lifinance.github.io/types/src/assets/icons/chains/tron.svg',
|
|
4213
4235
|
},
|
|
4236
|
+
[ChainId.XLM]: {
|
|
4237
|
+
address: 'CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA',
|
|
4238
|
+
name: 'Stellar',
|
|
4239
|
+
symbol: CoinKey.XLM,
|
|
4240
|
+
coinKey: CoinKey.XLM,
|
|
4241
|
+
chainId: ChainId.XLM,
|
|
4242
|
+
decimals: 7,
|
|
4243
|
+
logoURI:
|
|
4244
|
+
'https://lifinance.github.io/types/src/assets/icons/chains/stellar.svg',
|
|
4245
|
+
},
|
|
4214
4246
|
[ChainId.PLA]: {
|
|
4215
4247
|
// https://plasmascan.to/address/0x6100E367285b01F48D07953803A2d8dCA5D19873
|
|
4216
4248
|
address: '0x6100E367285b01F48D07953803A2d8dCA5D19873',
|