@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.
Files changed (62) hide show
  1. package/package.json +2 -2
  2. package/src/_cjs/chains/foundry.js +1 -0
  3. package/src/_cjs/chains/foundry.js.map +1 -1
  4. package/src/_cjs/chains/index.js +3 -1
  5. package/src/_cjs/chains/index.js.map +1 -1
  6. package/src/_cjs/chains/supportedChains.evm.js +3 -8
  7. package/src/_cjs/chains/supportedChains.evm.js.map +1 -1
  8. package/src/_cjs/chains/supportedChains.js +2 -0
  9. package/src/_cjs/chains/supportedChains.js.map +1 -1
  10. package/src/_cjs/chains/supportedChains.stl.int.spec.js +48 -0
  11. package/src/_cjs/chains/supportedChains.stl.int.spec.js.map +1 -0
  12. package/src/_cjs/chains/supportedChains.stl.js +35 -0
  13. package/src/_cjs/chains/supportedChains.stl.js.map +1 -0
  14. package/src/_cjs/chains/supportedChains.svm.js +1 -1
  15. package/src/_cjs/chains/supportedChains.svm.js.map +1 -1
  16. package/src/_cjs/chains/supportedChains.unit.spec.js +1 -0
  17. package/src/_cjs/chains/supportedChains.unit.spec.js.map +1 -1
  18. package/src/_cjs/chains/supportedChains.utxo.js +4 -7
  19. package/src/_cjs/chains/supportedChains.utxo.js.map +1 -1
  20. package/src/_cjs/coins/coins.js +29 -0
  21. package/src/_cjs/coins/coins.js.map +1 -1
  22. package/src/_esm/chains/foundry.js +1 -0
  23. package/src/_esm/chains/foundry.js.map +1 -1
  24. package/src/_esm/chains/index.js +1 -0
  25. package/src/_esm/chains/index.js.map +1 -1
  26. package/src/_esm/chains/supportedChains.evm.js +3 -8
  27. package/src/_esm/chains/supportedChains.evm.js.map +1 -1
  28. package/src/_esm/chains/supportedChains.js +2 -0
  29. package/src/_esm/chains/supportedChains.js.map +1 -1
  30. package/src/_esm/chains/supportedChains.stl.int.spec.js +46 -0
  31. package/src/_esm/chains/supportedChains.stl.int.spec.js.map +1 -0
  32. package/src/_esm/chains/supportedChains.stl.js +32 -0
  33. package/src/_esm/chains/supportedChains.stl.js.map +1 -0
  34. package/src/_esm/chains/supportedChains.svm.js +1 -1
  35. package/src/_esm/chains/supportedChains.svm.js.map +1 -1
  36. package/src/_esm/chains/supportedChains.unit.spec.js +1 -0
  37. package/src/_esm/chains/supportedChains.unit.spec.js.map +1 -1
  38. package/src/_esm/chains/supportedChains.utxo.js +4 -7
  39. package/src/_esm/chains/supportedChains.utxo.js.map +1 -1
  40. package/src/_esm/coins/coins.js +30 -0
  41. package/src/_esm/coins/coins.js.map +1 -1
  42. package/src/_types/chains/foundry.d.ts.map +1 -1
  43. package/src/_types/chains/index.d.ts +1 -0
  44. package/src/_types/chains/index.d.ts.map +1 -1
  45. package/src/_types/chains/supportedChains.d.ts.map +1 -1
  46. package/src/_types/chains/supportedChains.evm.d.ts.map +1 -1
  47. package/src/_types/chains/supportedChains.stl.d.ts +3 -0
  48. package/src/_types/chains/supportedChains.stl.d.ts.map +1 -0
  49. package/src/_types/chains/supportedChains.stl.int.spec.d.ts +2 -0
  50. package/src/_types/chains/supportedChains.stl.int.spec.d.ts.map +1 -0
  51. package/src/_types/chains/supportedChains.utxo.d.ts.map +1 -1
  52. package/src/_types/coins/coins.d.ts.map +1 -1
  53. package/src/chains/foundry.ts +1 -0
  54. package/src/chains/index.ts +1 -0
  55. package/src/chains/supportedChains.evm.ts +3 -8
  56. package/src/chains/supportedChains.stl.int.spec.ts +58 -0
  57. package/src/chains/supportedChains.stl.ts +34 -0
  58. package/src/chains/supportedChains.svm.ts +1 -1
  59. package/src/chains/supportedChains.ts +2 -0
  60. package/src/chains/supportedChains.unit.spec.ts +1 -0
  61. package/src/chains/supportedChains.utxo.ts +4 -7
  62. package/src/coins/coins.ts +32 -0
@@ -50,7 +50,7 @@ export const supportedSVMChains: SVMChain[] = [
50
50
  symbol: 'FOGO',
51
51
  decimals: 9,
52
52
  },
53
- rpcUrls: ['https://fluxrpc.com/'],
53
+ rpcUrls: ['https://mainnet.fogo.io'],
54
54
  },
55
55
  },
56
56
  ]
@@ -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 => {
@@ -30,6 +30,7 @@ test('native and wrapped token defined for all chains', () => {
30
30
  ChainId.BCH,
31
31
  ChainId.LTC,
32
32
  ChainId.DGE,
33
+ ChainId.ZEC,
33
34
  ChainId.SUI,
34
35
  ChainId.HPL,
35
36
  ]
@@ -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: ['https://node-router.thorswap.net/bitcoin-cash'],
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: ['https://node-router.thorswap.net/litecoin'],
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://node-router.thorswap.net/dogecoin'],
96
+ rpcUrls: ['https://dogecoin.drpc.org'],
100
97
  },
101
98
  },
102
99
  {
@@ -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',