@lifi/data-types 5.15.3 → 5.15.5
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 +1 -1
- package/src/_cjs/chains/index.js +8 -8
- package/src/_cjs/chains/index.js.map +1 -1
- package/src/_cjs/chains/supportedChains.evm.int.spec.js +3 -3
- package/src/_cjs/chains/supportedChains.evm.int.spec.js.map +1 -1
- package/src/_cjs/chains/supportedChains.evm.js +78 -78
- package/src/_cjs/chains/supportedChains.evm.js.map +1 -1
- package/src/_cjs/chains/supportedChains.js +6 -6
- package/src/_cjs/chains/supportedChains.js.map +1 -1
- package/src/_cjs/chains/supportedChains.svm.int.spec.js +3 -3
- package/src/_cjs/chains/supportedChains.svm.int.spec.js.map +1 -1
- package/src/_cjs/chains/supportedChains.unit.spec.js +14 -14
- package/src/_cjs/chains/supportedChains.unit.spec.js.map +1 -1
- package/src/_cjs/chains/supportedChains.utxo.int.spec.js +3 -3
- package/src/_cjs/chains/supportedChains.utxo.int.spec.js.map +1 -1
- package/src/_cjs/coins/coins.int.spec.js +3 -3
- package/src/_cjs/coins/coins.int.spec.js.map +1 -1
- package/src/_cjs/coins/index.js +1 -1
- package/src/_cjs/coins/index.js.map +1 -1
- package/src/_cjs/index.js +3 -3
- package/src/_cjs/index.js.map +1 -1
- package/src/_esm/chains/index.js +5 -5
- package/src/_esm/chains/index.js.map +1 -1
- package/src/_esm/chains/supportedChains.evm.int.spec.js +1 -1
- package/src/_esm/chains/supportedChains.evm.int.spec.js.map +1 -1
- package/src/_esm/chains/supportedChains.evm.js +2 -2
- package/src/_esm/chains/supportedChains.evm.js.map +1 -1
- package/src/_esm/chains/supportedChains.js +3 -3
- package/src/_esm/chains/supportedChains.js.map +1 -1
- package/src/_esm/chains/supportedChains.svm.int.spec.js +1 -1
- package/src/_esm/chains/supportedChains.svm.int.spec.js.map +1 -1
- package/src/_esm/chains/supportedChains.unit.spec.js +4 -4
- package/src/_esm/chains/supportedChains.unit.spec.js.map +1 -1
- package/src/_esm/chains/supportedChains.utxo.int.spec.js +1 -1
- package/src/_esm/chains/supportedChains.utxo.int.spec.js.map +1 -1
- package/src/_esm/coins/coins.int.spec.js +1 -1
- package/src/_esm/coins/coins.int.spec.js.map +1 -1
- package/src/_esm/coins/index.js +1 -1
- package/src/_esm/coins/index.js.map +1 -1
- package/src/_esm/index.js +3 -3
- package/src/_esm/index.js.map +1 -1
- package/src/_types/chains/index.d.ts +5 -5
- package/src/_types/chains/index.d.ts.map +1 -1
- package/src/_types/coins/index.d.ts +1 -1
- package/src/_types/coins/index.d.ts.map +1 -1
- package/src/_types/index.d.ts +3 -3
- package/src/_types/index.d.ts.map +1 -1
- package/src/chains/index.ts +5 -5
- package/src/chains/supportedChains.evm.int.spec.ts +1 -1
- package/src/chains/supportedChains.evm.ts +2 -2
- package/src/chains/supportedChains.svm.int.spec.ts +1 -1
- package/src/chains/supportedChains.ts +3 -3
- package/src/chains/supportedChains.unit.spec.ts +8 -4
- package/src/chains/supportedChains.utxo.int.spec.ts +1 -1
- package/src/coins/coins.int.spec.ts +1 -1
- package/src/coins/index.ts +1 -1
- package/src/index.ts +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
|
package/src/chains/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { supportedEVMChains } from './supportedChains.evm'
|
|
2
|
-
export { supportedSolanaChains } from './supportedChains.svm'
|
|
3
|
-
export { supportedUXTOChains } from './supportedChains.utxo'
|
|
4
|
-
export * from './supportedChains'
|
|
5
|
-
export * from './utils'
|
|
1
|
+
export { supportedEVMChains } from './supportedChains.evm.js'
|
|
2
|
+
export { supportedSolanaChains } from './supportedChains.svm.js'
|
|
3
|
+
export { supportedUXTOChains } from './supportedChains.utxo.js'
|
|
4
|
+
export * from './supportedChains.js'
|
|
5
|
+
export * from './utils.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createPublicClient, http } from 'viem'
|
|
2
2
|
import { describe, expect, test } from 'vitest'
|
|
3
|
-
import { supportedEVMChains } from './supportedChains.evm'
|
|
3
|
+
import { supportedEVMChains } from './supportedChains.evm.js'
|
|
4
4
|
|
|
5
5
|
describe.concurrent('EVM chains RPC check', () => {
|
|
6
6
|
const rpcUrls = supportedEVMChains.flatMap((chain) =>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EVMChain } from '@lifi/types'
|
|
2
2
|
import { ChainId, ChainKey, ChainType, CoinKey } from '@lifi/types'
|
|
3
|
-
import { multicallAddresses } from '../multicall'
|
|
4
|
-
import { prefixChainId } from './utils'
|
|
3
|
+
import { multicallAddresses } from '../multicall.js'
|
|
4
|
+
import { prefixChainId } from './utils.js'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* ChainNames aligned with https://github.com/ethereum-lists/chains/tree/master/_data/chains
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Connection, PublicKey } from '@solana/web3.js'
|
|
2
2
|
import { describe, expect, test } from 'vitest'
|
|
3
|
-
import { supportedSolanaChains } from './supportedChains.svm'
|
|
3
|
+
import { supportedSolanaChains } from './supportedChains.svm.js'
|
|
4
4
|
|
|
5
5
|
const TokenProgramAddress = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'
|
|
6
6
|
const WalletAddress = '6AUWsSCRFSCbrHKH9s84wfzJXtD6mNzAHs11x6pGEcmJ'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Chain, ChainKey } from '@lifi/types'
|
|
2
|
-
import { supportedEVMChains } from './supportedChains.evm'
|
|
3
|
-
import { supportedSolanaChains } from './supportedChains.svm'
|
|
4
|
-
import { supportedUXTOChains } from './supportedChains.utxo'
|
|
2
|
+
import { supportedEVMChains } from './supportedChains.evm.js'
|
|
3
|
+
import { supportedSolanaChains } from './supportedChains.svm.js'
|
|
4
|
+
import { supportedUXTOChains } from './supportedChains.utxo.js'
|
|
5
5
|
|
|
6
6
|
// This assignment is required to avoid breaking
|
|
7
7
|
// changes with the new non EVM support types release
|
|
@@ -4,10 +4,14 @@ import {
|
|
|
4
4
|
findDefaultToken,
|
|
5
5
|
findTokenByChainIdAndAddress,
|
|
6
6
|
findWrappedGasOnChain,
|
|
7
|
-
} from '../coins'
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
} from '../coins/index.js'
|
|
8
|
+
import {
|
|
9
|
+
getChainById,
|
|
10
|
+
getChainByKey,
|
|
11
|
+
supportedChains,
|
|
12
|
+
} from './supportedChains.js'
|
|
13
|
+
import { supportedEVMChains } from './supportedChains.evm.js'
|
|
14
|
+
import { prefixChainId } from './utils.js'
|
|
11
15
|
|
|
12
16
|
test('getChainById', () => {
|
|
13
17
|
expect(getChainById(ChainId.ETH)).toBeDefined()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, test } from 'vitest'
|
|
2
|
-
import { supportedUXTOChains } from './supportedChains.utxo'
|
|
2
|
+
import { supportedUXTOChains } from './supportedChains.utxo.js'
|
|
3
3
|
|
|
4
4
|
describe.concurrent('UTXO chains RPC check', () => {
|
|
5
5
|
const rpcUrls = supportedUXTOChains.flatMap((chain) =>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StaticToken } from '@lifi/types'
|
|
2
2
|
import { describe, expect, test } from 'vitest'
|
|
3
|
-
import { defaultCoins, wrappedTokens } from './coins'
|
|
3
|
+
import { defaultCoins, wrappedTokens } from './coins.js'
|
|
4
4
|
|
|
5
5
|
describe.concurrent('Coin logo test', { timeout: 30_000 }, () => {
|
|
6
6
|
const allImages: string[] = []
|
package/src/coins/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './coins'
|
|
1
|
+
export * from './coins.js'
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './chains'
|
|
2
|
-
export * from './coins'
|
|
3
|
-
export * from './multicall'
|
|
1
|
+
export * from './chains/index.js'
|
|
2
|
+
export * from './coins/index.js'
|
|
3
|
+
export * from './multicall.js'
|