@lifi/data-types 6.55.2 → 6.56.0-beta.1

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 (37) 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 +2 -2
  5. package/src/_cjs/chains/index.js.map +1 -1
  6. package/src/_cjs/chains/supportedChains.js +1 -1
  7. package/src/_cjs/chains/supportedChains.js.map +1 -1
  8. package/src/_cjs/chains/supportedChains.svm.int.spec.js +1 -1
  9. package/src/_cjs/chains/supportedChains.svm.int.spec.js.map +1 -1
  10. package/src/_cjs/chains/supportedChains.svm.js +24 -3
  11. package/src/_cjs/chains/supportedChains.svm.js.map +1 -1
  12. package/src/_cjs/coins/coins.js +48 -0
  13. package/src/_cjs/coins/coins.js.map +1 -1
  14. package/src/_esm/chains/foundry.js +1 -0
  15. package/src/_esm/chains/foundry.js.map +1 -1
  16. package/src/_esm/chains/index.js +1 -1
  17. package/src/_esm/chains/index.js.map +1 -1
  18. package/src/_esm/chains/supportedChains.js +2 -2
  19. package/src/_esm/chains/supportedChains.js.map +1 -1
  20. package/src/_esm/chains/supportedChains.svm.int.spec.js +2 -2
  21. package/src/_esm/chains/supportedChains.svm.int.spec.js.map +1 -1
  22. package/src/_esm/chains/supportedChains.svm.js +23 -2
  23. package/src/_esm/chains/supportedChains.svm.js.map +1 -1
  24. package/src/_esm/coins/coins.js +49 -0
  25. package/src/_esm/coins/coins.js.map +1 -1
  26. package/src/_types/chains/foundry.d.ts.map +1 -1
  27. package/src/_types/chains/index.d.ts +1 -1
  28. package/src/_types/chains/index.d.ts.map +1 -1
  29. package/src/_types/chains/supportedChains.svm.d.ts +2 -2
  30. package/src/_types/chains/supportedChains.svm.d.ts.map +1 -1
  31. package/src/_types/coins/coins.d.ts.map +1 -1
  32. package/src/chains/foundry.ts +1 -0
  33. package/src/chains/index.ts +1 -1
  34. package/src/chains/supportedChains.svm.int.spec.ts +2 -2
  35. package/src/chains/supportedChains.svm.ts +24 -3
  36. package/src/chains/supportedChains.ts +2 -2
  37. package/src/coins/coins.ts +53 -0
@@ -1,12 +1,12 @@
1
1
  import { Connection, PublicKey } from '@solana/web3.js'
2
2
  import { describe, expect, test } from 'vitest'
3
- import { supportedSolanaChains } from './supportedChains.svm.js'
3
+ import { supportedSVMChains } from './supportedChains.svm.js'
4
4
 
5
5
  const TokenProgramAddress = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'
6
6
  const WalletAddress = '6AUWsSCRFSCbrHKH9s84wfzJXtD6mNzAHs11x6pGEcmJ'
7
7
 
8
8
  describe.concurrent('SVM chains RPC check', () => {
9
- const rpcUrls = supportedSolanaChains.flatMap((chain) =>
9
+ const rpcUrls = supportedSVMChains.flatMap((chain) =>
10
10
  chain.metamask.rpcUrls.map((rpcUrl) => ({
11
11
  rpcUrl: rpcUrl,
12
12
  chainId: chain.id,
@@ -1,7 +1,7 @@
1
- import type { SolanaChain } from '@lifi/types'
1
+ import type { SVMChain } from '@lifi/types'
2
2
  import { ChainId, ChainKey, ChainType, CoinKey } from '@lifi/types'
3
3
 
4
- export const supportedSolanaChains: SolanaChain[] = [
4
+ export const supportedSVMChains: SVMChain[] = [
5
5
  {
6
6
  key: ChainKey.SOL,
7
7
  chainType: ChainType.SVM,
@@ -11,7 +11,7 @@ export const supportedSolanaChains: SolanaChain[] = [
11
11
  mainnet: true,
12
12
  logoURI:
13
13
  'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/solana.svg',
14
- faucetUrls: ['https://stakely.io/faucet/solana-sol'],
14
+ faucetUrls: [],
15
15
  metamask: {
16
16
  chainId: ChainId.SOL.toString(),
17
17
  blockExplorerUrls: [
@@ -31,4 +31,25 @@ export const supportedSolanaChains: SolanaChain[] = [
31
31
  ],
32
32
  },
33
33
  },
34
+ {
35
+ key: ChainKey.FOG,
36
+ chainType: ChainType.SVM,
37
+ name: 'Fogo',
38
+ coin: CoinKey.FOGO,
39
+ id: ChainId.FOG,
40
+ mainnet: true,
41
+ logoURI: '', // TODO
42
+ faucetUrls: [],
43
+ metamask: {
44
+ chainId: ChainId.FOG.toString(),
45
+ blockExplorerUrls: ['https://fogoscan.com/'],
46
+ chainName: 'Fogo',
47
+ nativeCurrency: {
48
+ name: 'FOGO',
49
+ symbol: 'FOGO',
50
+ decimals: 9,
51
+ },
52
+ rpcUrls: ['https://fluxrpc.com/'],
53
+ },
54
+ },
34
55
  ]
@@ -1,7 +1,7 @@
1
1
  import type { Chain, ChainKey } from '@lifi/types'
2
2
  import { supportedEVMChains } from './supportedChains.evm.js'
3
3
  import { supportedMVMChains } from './supportedChains.mvm.js'
4
- import { supportedSolanaChains } from './supportedChains.svm.js'
4
+ import { supportedSVMChains } from './supportedChains.svm.js'
5
5
  import { supportedUXTOChains } from './supportedChains.utxo.js'
6
6
  import { supportedTVMChains } from './supportedChains.tvm.js'
7
7
 
@@ -10,7 +10,7 @@ import { supportedTVMChains } from './supportedChains.tvm.js'
10
10
  // This will be removed in the future
11
11
  export const supportedChains = [
12
12
  ...supportedEVMChains,
13
- ...supportedSolanaChains,
13
+ ...supportedSVMChains,
14
14
  ...supportedMVMChains,
15
15
  ...supportedUXTOChains,
16
16
  ...supportedTVMChains,
@@ -611,6 +611,49 @@ export const basicCoins: BasicCoin[] = [
611
611
  },
612
612
  },
613
613
  },
614
+ // > Fogo
615
+ {
616
+ key: CoinKey.FOGO,
617
+ name: CoinKey.FOGO,
618
+ logoURI:
619
+ 'https://lifinance.github.io/types/src/assets/icons/chains/fogo.svg',
620
+ verified: true,
621
+ chains: {
622
+ [ChainId.FOG]: {
623
+ address: '11111111111111111111111111111111',
624
+ decimals: 9,
625
+ },
626
+ },
627
+ },
628
+ {
629
+ key: CoinKey.WFOGO,
630
+ name: CoinKey.WFOGO,
631
+ logoURI:
632
+ 'https://lifinance.github.io/types/src/assets/icons/chains/fogo.svg',
633
+ verified: true,
634
+ chains: {
635
+ [ChainId.FOG]: {
636
+ address: 'So11111111111111111111111111111111111111112',
637
+ decimals: 9,
638
+ name: 'wFOGO',
639
+ },
640
+ },
641
+ },
642
+ {
643
+ key: CoinKey.USDCs,
644
+ name: CoinKey.USDCs,
645
+ logoURI:
646
+ 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
647
+ verified: true,
648
+ chains: {
649
+ [ChainId.FOG]: {
650
+ address: 'uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG',
651
+ decimals: 6,
652
+ name: 'Bridged USDC',
653
+ symbol: 'USDC.s',
654
+ },
655
+ },
656
+ },
614
657
 
615
658
  // OTHER STABLECOINS
616
659
  // USDT
@@ -3222,6 +3265,16 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
3222
3265
  logoURI:
3223
3266
  'https://assets.coingecko.com/coins/images/4128/standard/solana.png',
3224
3267
  },
3268
+ [ChainId.FOG]: {
3269
+ address: 'So11111111111111111111111111111111111111112',
3270
+ symbol: 'wFOGO',
3271
+ decimals: 9,
3272
+ chainId: ChainId.FOG,
3273
+ coinKey: CoinKey.WFOGO,
3274
+ name: 'wFOGO',
3275
+ logoURI:
3276
+ 'https://lifinance.github.io/types/src/assets/icons/chains/fogo.svg',
3277
+ },
3225
3278
  [ChainId.BSC]: {
3226
3279
  // https://bscscan.com/token/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
3227
3280
  address: '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c',