@lifi/data-types 6.62.0 → 6.63.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 +2 -2
- package/src/_cjs/chains/index.js.map +1 -1
- package/src/_cjs/chains/supportedChains.js +1 -1
- package/src/_cjs/chains/supportedChains.js.map +1 -1
- package/src/_cjs/chains/supportedChains.svm.int.spec.js +1 -1
- package/src/_cjs/chains/supportedChains.svm.int.spec.js.map +1 -1
- package/src/_cjs/chains/supportedChains.svm.js +24 -3
- package/src/_cjs/chains/supportedChains.svm.js.map +1 -1
- package/src/_cjs/coins/coins.js +48 -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 -1
- package/src/_esm/chains/index.js.map +1 -1
- package/src/_esm/chains/supportedChains.js +2 -2
- package/src/_esm/chains/supportedChains.js.map +1 -1
- package/src/_esm/chains/supportedChains.svm.int.spec.js +2 -2
- package/src/_esm/chains/supportedChains.svm.int.spec.js.map +1 -1
- package/src/_esm/chains/supportedChains.svm.js +23 -2
- package/src/_esm/chains/supportedChains.svm.js.map +1 -1
- package/src/_esm/coins/coins.js +49 -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 -1
- package/src/_types/chains/index.d.ts.map +1 -1
- package/src/_types/chains/supportedChains.svm.d.ts +2 -2
- package/src/_types/chains/supportedChains.svm.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 -1
- package/src/chains/supportedChains.svm.int.spec.ts +2 -2
- package/src/chains/supportedChains.svm.ts +25 -3
- package/src/chains/supportedChains.ts +2 -2
- package/src/coins/coins.ts +53 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const
|
|
1
|
+
import type { SVMChain } from '@lifi/types';
|
|
2
|
+
export declare const supportedSVMChains: SVMChain[];
|
|
3
3
|
//# sourceMappingURL=supportedChains.svm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportedChains.svm.d.ts","sourceRoot":"","sources":["../../chains/supportedChains.svm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"supportedChains.svm.d.ts","sourceRoot":"","sources":["../../chains/supportedChains.svm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAG3C,eAAO,MAAM,kBAAkB,EAAE,QAAQ,EAoDxC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coins.d.ts","sourceRoot":"","sources":["../../coins/coins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,EAAE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAE3E,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,KAAK,SAAS,GAAG;IACf,GAAG,EAAE,OAAO,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAC1B,CAAA;CACF,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"coins.d.ts","sourceRoot":"","sources":["../../coins/coins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,EAAE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAE3E,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,KAAK,SAAS,GAAG;IACf,GAAG,EAAE,OAAO,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAC1B,CAAA;CACF,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,SAAS,EAsyGjC,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,IAAI,CAsBnC,CAAA;AAGF,eAAO,MAAM,aAAa,EAAE;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAA;CA4wB3D,CAAA;AACD,eAAO,MAAM,eAAe,GAAI,SAAS,OAAO,KAAG,IAMlD,CAAA;AACD,eAAO,MAAM,gBAAgB,GAC3B,SAAS,OAAO,EAChB,SAAS,OAAO,KACf,WAOF,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,SAAS,OAAO,KAAG,WAMxD,CAAA;AAED,eAAO,MAAM,4BAA4B,GACvC,SAAS,MAAM,EACf,cAAc,MAAM,KACnB,WAAW,GAAG,IAUhB,CAAA"}
|
package/src/chains/foundry.ts
CHANGED
|
@@ -87,6 +87,7 @@ export const foundryChainNameMap: Record<ChainId, string> = {
|
|
|
87
87
|
[ChainId.HPL]: 'hyperliquid',
|
|
88
88
|
[ChainId.OAS]: 'oasis',
|
|
89
89
|
[ChainId.SOL]: 'solana',
|
|
90
|
+
[ChainId.FOG]: 'fogo',
|
|
90
91
|
[ChainId.TER]: 'terra',
|
|
91
92
|
[ChainId.BTC]: 'bitcoin',
|
|
92
93
|
[ChainId.BCH]: 'bitcoin-cash',
|
package/src/chains/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { supportedEVMChains } from './supportedChains.evm.js'
|
|
2
2
|
export * from './supportedChains.js'
|
|
3
3
|
export { supportedMVMChains } from './supportedChains.mvm.js'
|
|
4
|
-
export {
|
|
4
|
+
export { supportedSVMChains } from './supportedChains.svm.js'
|
|
5
5
|
export { supportedTVMChains } from './supportedChains.tvm.js'
|
|
6
6
|
export { supportedUXTOChains } from './supportedChains.utxo.js'
|
|
7
7
|
export { foundryChainNameMap } from './foundry.js'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Connection, PublicKey } from '@solana/web3.js'
|
|
2
2
|
import { describe, expect, test } from 'vitest'
|
|
3
|
-
import {
|
|
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 =
|
|
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 {
|
|
1
|
+
import type { SVMChain } from '@lifi/types'
|
|
2
2
|
import { ChainId, ChainKey, ChainType, CoinKey } from '@lifi/types'
|
|
3
3
|
|
|
4
|
-
export const
|
|
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: [
|
|
14
|
+
faucetUrls: [],
|
|
15
15
|
metamask: {
|
|
16
16
|
chainId: ChainId.SOL.toString(),
|
|
17
17
|
blockExplorerUrls: [
|
|
@@ -31,4 +31,26 @@ 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:
|
|
42
|
+
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/fogo.svg',
|
|
43
|
+
faucetUrls: [],
|
|
44
|
+
metamask: {
|
|
45
|
+
chainId: ChainId.FOG.toString(),
|
|
46
|
+
blockExplorerUrls: ['https://fogoscan.com/'],
|
|
47
|
+
chainName: 'Fogo',
|
|
48
|
+
nativeCurrency: {
|
|
49
|
+
name: 'FOGO',
|
|
50
|
+
symbol: 'FOGO',
|
|
51
|
+
decimals: 9,
|
|
52
|
+
},
|
|
53
|
+
rpcUrls: ['https://fluxrpc.com/'],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
34
56
|
]
|
|
@@ -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 {
|
|
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
|
-
...
|
|
13
|
+
...supportedSVMChains,
|
|
14
14
|
...supportedMVMChains,
|
|
15
15
|
...supportedUXTOChains,
|
|
16
16
|
...supportedTVMChains,
|
package/src/coins/coins.ts
CHANGED
|
@@ -627,6 +627,49 @@ export const basicCoins: BasicCoin[] = [
|
|
|
627
627
|
},
|
|
628
628
|
},
|
|
629
629
|
},
|
|
630
|
+
// > Fogo
|
|
631
|
+
{
|
|
632
|
+
key: CoinKey.FOGO,
|
|
633
|
+
name: CoinKey.FOGO,
|
|
634
|
+
logoURI:
|
|
635
|
+
'https://lifinance.github.io/types/src/assets/icons/chains/fogo.svg',
|
|
636
|
+
verified: true,
|
|
637
|
+
chains: {
|
|
638
|
+
[ChainId.FOG]: {
|
|
639
|
+
address: '11111111111111111111111111111111',
|
|
640
|
+
decimals: 9,
|
|
641
|
+
},
|
|
642
|
+
},
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
key: CoinKey.WFOGO,
|
|
646
|
+
name: CoinKey.WFOGO,
|
|
647
|
+
logoURI:
|
|
648
|
+
'https://lifinance.github.io/types/src/assets/icons/chains/fogo.svg',
|
|
649
|
+
verified: true,
|
|
650
|
+
chains: {
|
|
651
|
+
[ChainId.FOG]: {
|
|
652
|
+
address: 'So11111111111111111111111111111111111111112',
|
|
653
|
+
decimals: 9,
|
|
654
|
+
name: 'wFOGO',
|
|
655
|
+
},
|
|
656
|
+
},
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
key: CoinKey.USDCs,
|
|
660
|
+
name: CoinKey.USDCs,
|
|
661
|
+
logoURI:
|
|
662
|
+
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
663
|
+
verified: true,
|
|
664
|
+
chains: {
|
|
665
|
+
[ChainId.FOG]: {
|
|
666
|
+
address: 'uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG',
|
|
667
|
+
decimals: 6,
|
|
668
|
+
name: 'Bridged USDC',
|
|
669
|
+
symbol: 'USDC.s',
|
|
670
|
+
},
|
|
671
|
+
},
|
|
672
|
+
},
|
|
630
673
|
|
|
631
674
|
// OTHER STABLECOINS
|
|
632
675
|
// USDT
|
|
@@ -3389,6 +3432,16 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
|
|
|
3389
3432
|
logoURI:
|
|
3390
3433
|
'https://assets.coingecko.com/coins/images/4128/standard/solana.png',
|
|
3391
3434
|
},
|
|
3435
|
+
[ChainId.FOG]: {
|
|
3436
|
+
address: 'So11111111111111111111111111111111111111112',
|
|
3437
|
+
symbol: 'wFOGO',
|
|
3438
|
+
decimals: 9,
|
|
3439
|
+
chainId: ChainId.FOG,
|
|
3440
|
+
coinKey: CoinKey.WFOGO,
|
|
3441
|
+
name: 'wFOGO',
|
|
3442
|
+
logoURI:
|
|
3443
|
+
'https://lifinance.github.io/types/src/assets/icons/chains/fogo.svg',
|
|
3444
|
+
},
|
|
3392
3445
|
[ChainId.BSC]: {
|
|
3393
3446
|
// https://bscscan.com/token/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
|
|
3394
3447
|
address: '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c',
|