@lifi/data-types 6.34.0 → 6.35.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.
- package/package.json +2 -2
- package/src/_cjs/chains/index.js +3 -1
- package/src/_cjs/chains/index.js.map +1 -1
- package/src/_cjs/chains/supportedChains.evm.js +4 -11
- 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.svm.js +1 -1
- package/src/_cjs/chains/supportedChains.svm.js.map +1 -1
- package/src/_cjs/chains/supportedChains.tvm.int.spec.js +38 -0
- package/src/_cjs/chains/supportedChains.tvm.int.spec.js.map +1 -0
- package/src/_cjs/chains/supportedChains.tvm.js +28 -0
- package/src/_cjs/chains/supportedChains.tvm.js.map +1 -0
- package/src/_cjs/chains/supportedChains.unit.spec.js +16 -7
- package/src/_cjs/chains/supportedChains.unit.spec.js.map +1 -1
- package/src/_cjs/chains/supportedChains.utxo.js +5 -4
- package/src/_cjs/chains/supportedChains.utxo.js.map +1 -1
- package/src/_cjs/coins/coins.js +33 -2
- package/src/_cjs/coins/coins.js.map +1 -1
- package/src/_cjs/multicall.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 +4 -11
- 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.svm.js +1 -1
- package/src/_esm/chains/supportedChains.svm.js.map +1 -1
- package/src/_esm/chains/supportedChains.tvm.int.spec.js +36 -0
- package/src/_esm/chains/supportedChains.tvm.int.spec.js.map +1 -0
- package/src/_esm/chains/supportedChains.tvm.js +25 -0
- package/src/_esm/chains/supportedChains.tvm.js.map +1 -0
- package/src/_esm/chains/supportedChains.unit.spec.js +21 -8
- package/src/_esm/chains/supportedChains.unit.spec.js.map +1 -1
- package/src/_esm/chains/supportedChains.utxo.js +5 -4
- package/src/_esm/chains/supportedChains.utxo.js.map +1 -1
- package/src/_esm/coins/coins.js +34 -2
- package/src/_esm/coins/coins.js.map +1 -1
- package/src/_esm/multicall.js +1 -0
- package/src/_esm/multicall.js.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.tvm.d.ts +3 -0
- package/src/_types/chains/supportedChains.tvm.d.ts.map +1 -0
- package/src/_types/chains/supportedChains.tvm.int.spec.d.ts +2 -0
- package/src/_types/chains/supportedChains.tvm.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/_types/multicall.d.ts.map +1 -1
- package/src/chains/index.ts +1 -0
- package/src/chains/supportedChains.evm.ts +4 -11
- package/src/chains/supportedChains.svm.ts +1 -1
- package/src/chains/supportedChains.ts +2 -0
- package/src/chains/supportedChains.tvm.int.spec.ts +49 -0
- package/src/chains/supportedChains.tvm.ts +27 -0
- package/src/chains/supportedChains.unit.spec.ts +31 -9
- package/src/chains/supportedChains.utxo.ts +5 -4
- package/src/coins/coins.ts +36 -2
- package/src/multicall.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multicall.js","sourceRoot":"","sources":["../multicall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,YAAY;AACZ,gFAAgF;AAChF,kDAAkD;AAClD,2FAA2F;AAC3F,4EAA4E;AAC5E,wEAAwE;AACxE,+DAA+D;AAC/D,MAAM,CAAC,MAAM,kBAAkB,GAAkC;IAC/D,UAAU;IACV,CAAC,OAAO,CAAC,GAAG,CA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,OAAO,CAAC,GAAG,CAAC,EAAE,4CAA4C;IAC3D,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,4CAA4C;IAE3D,OAAO;IACP,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;IAC7B,gEAAgE;IAChE,iEAAiE;IAEjE,WAAW;IACX,mCAAmC;IACnC,mCAAmC;IACnC,mCAAmC;IACnC,oCAAoC;IACpC,oCAAoC;IACpC,oCAAoC;IACpC,mCAAmC;IACnC,mCAAmC;CACpC,CAAA"}
|
|
@@ -2,6 +2,7 @@ export { supportedEVMChains } from './supportedChains.evm.js';
|
|
|
2
2
|
export * from './supportedChains.js';
|
|
3
3
|
export { supportedMVMChains } from './supportedChains.mvm.js';
|
|
4
4
|
export { supportedSolanaChains } from './supportedChains.svm.js';
|
|
5
|
+
export { supportedTVMChains } from './supportedChains.tvm.js';
|
|
5
6
|
export { supportedUXTOChains } from './supportedChains.utxo.js';
|
|
6
7
|
export * from './utils.js';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../chains/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,cAAc,sBAAsB,CAAA;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../chains/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,cAAc,sBAAsB,CAAA;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,cAAc,YAAY,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportedChains.d.ts","sourceRoot":"","sources":["../../chains/supportedChains.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"supportedChains.d.ts","sourceRoot":"","sources":["../../chains/supportedChains.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAUlD,eAAO,MAAM,eAAe,kCAM3B,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,UAAU,QAAQ,KAAG,KAMlD,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,KAAG,KAM9C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportedChains.evm.d.ts","sourceRoot":"","sources":["../../chains/supportedChains.evm.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,QAAQ,EACd,MAAM,aAAa,CAAA;AAIpB;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"supportedChains.evm.d.ts","sourceRoot":"","sources":["../../chains/supportedChains.evm.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,QAAQ,EACd,MAAM,aAAa,CAAA;AAIpB;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,QAAQ,EAmqDxC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportedChains.tvm.d.ts","sourceRoot":"","sources":["../../chains/supportedChains.tvm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAG3C,eAAO,MAAM,kBAAkB,EAAE,QAAQ,EAuBxC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportedChains.tvm.int.spec.d.ts","sourceRoot":"","sources":["../../chains/supportedChains.tvm.int.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportedChains.utxo.d.ts","sourceRoot":"","sources":["../../chains/supportedChains.utxo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAG5C,eAAO,MAAM,mBAAmB,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"supportedChains.utxo.d.ts","sourceRoot":"","sources":["../../chains/supportedChains.utxo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAG5C,eAAO,MAAM,mBAAmB,EAAE,SAAS,EAgG1C,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,CAA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
-
{"version":3,"file":"multicall.d.ts","sourceRoot":"","sources":["../multicall.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,kBAAkB,EAAE;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"multicall.d.ts","sourceRoot":"","sources":["../multicall.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,kBAAkB,EAAE;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;CAuF3D,CAAA"}
|
package/src/chains/index.ts
CHANGED
|
@@ -2,5 +2,6 @@ export { supportedEVMChains } from './supportedChains.evm.js'
|
|
|
2
2
|
export * from './supportedChains.js'
|
|
3
3
|
export { supportedMVMChains } from './supportedChains.mvm.js'
|
|
4
4
|
export { supportedSolanaChains } from './supportedChains.svm.js'
|
|
5
|
+
export { supportedTVMChains } from './supportedChains.tvm.js'
|
|
5
6
|
export { supportedUXTOChains } from './supportedChains.utxo.js'
|
|
6
7
|
export * from './utils.js'
|
|
@@ -155,7 +155,7 @@ export const supportedEVMChains: EVMChain[] = [
|
|
|
155
155
|
// https://docs.fantom.foundation/tutorials/set-up-metamask
|
|
156
156
|
metamask: {
|
|
157
157
|
chainId: prefixChainId(250),
|
|
158
|
-
blockExplorerUrls: ['https://
|
|
158
|
+
blockExplorerUrls: ['https://explorer.fantom.network/'],
|
|
159
159
|
chainName: 'Fantom Opera',
|
|
160
160
|
nativeCurrency: {
|
|
161
161
|
name: 'FTM',
|
|
@@ -912,11 +912,7 @@ export const supportedEVMChains: EVMChain[] = [
|
|
|
912
912
|
symbol: 'ETH',
|
|
913
913
|
decimals: 18,
|
|
914
914
|
},
|
|
915
|
-
rpcUrls: [
|
|
916
|
-
'https://rpc.mainnet.taiko.xyz',
|
|
917
|
-
'https://rpc.taiko.xyz',
|
|
918
|
-
'https://rpc.taiko.tools',
|
|
919
|
-
],
|
|
915
|
+
rpcUrls: ['https://rpc.mainnet.taiko.xyz', 'https://rpc.taiko.xyz'],
|
|
920
916
|
},
|
|
921
917
|
},
|
|
922
918
|
|
|
@@ -986,7 +982,7 @@ export const supportedEVMChains: EVMChain[] = [
|
|
|
986
982
|
|
|
987
983
|
metamask: {
|
|
988
984
|
chainId: prefixChainId(8217),
|
|
989
|
-
blockExplorerUrls: ['https://kaiascan.io/'
|
|
985
|
+
blockExplorerUrls: ['https://kaiascan.io/'],
|
|
990
986
|
chainName: 'Kaia Mainnet',
|
|
991
987
|
nativeCurrency: {
|
|
992
988
|
name: 'KAIA',
|
|
@@ -1560,10 +1556,7 @@ export const supportedEVMChains: EVMChain[] = [
|
|
|
1560
1556
|
|
|
1561
1557
|
metamask: {
|
|
1562
1558
|
chainId: prefixChainId(ChainId.KAT),
|
|
1563
|
-
blockExplorerUrls: [
|
|
1564
|
-
'https://katanascan.com/',
|
|
1565
|
-
'https://explorer.katana.network/',
|
|
1566
|
-
],
|
|
1559
|
+
blockExplorerUrls: ['https://katanascan.com/'],
|
|
1567
1560
|
chainName: 'Katana',
|
|
1568
1561
|
nativeCurrency: {
|
|
1569
1562
|
name: CoinKey.ETH,
|
|
@@ -15,9 +15,9 @@ export const supportedSolanaChains: SolanaChain[] = [
|
|
|
15
15
|
metamask: {
|
|
16
16
|
chainId: ChainId.SOL.toString(),
|
|
17
17
|
blockExplorerUrls: [
|
|
18
|
+
'https://solscan.io/',
|
|
18
19
|
'https://solana.fm/',
|
|
19
20
|
'https://explorer.solana.com/',
|
|
20
|
-
'https://solscan.io/',
|
|
21
21
|
],
|
|
22
22
|
chainName: 'Solana',
|
|
23
23
|
nativeCurrency: {
|
|
@@ -3,6 +3,7 @@ import { supportedEVMChains } from './supportedChains.evm.js'
|
|
|
3
3
|
import { supportedMVMChains } from './supportedChains.mvm.js'
|
|
4
4
|
import { supportedSolanaChains } from './supportedChains.svm.js'
|
|
5
5
|
import { supportedUXTOChains } from './supportedChains.utxo.js'
|
|
6
|
+
import { supportedTVMChains } from './supportedChains.tvm.js'
|
|
6
7
|
|
|
7
8
|
// This assignment is required to avoid breaking
|
|
8
9
|
// changes with the new non EVM support types release
|
|
@@ -12,6 +13,7 @@ export const supportedChains = [
|
|
|
12
13
|
...supportedSolanaChains,
|
|
13
14
|
...supportedMVMChains,
|
|
14
15
|
...supportedUXTOChains,
|
|
16
|
+
...supportedTVMChains,
|
|
15
17
|
]
|
|
16
18
|
|
|
17
19
|
export const getChainByKey = (chainKey: ChainKey): Chain => {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest'
|
|
2
|
+
import { supportedTVMChains } from './supportedChains.tvm'
|
|
3
|
+
import { TronWeb } from 'tronweb'
|
|
4
|
+
|
|
5
|
+
const WalletAddress = 'TJRabPrwbZy45sbavfcjinPJC18kjpRTv8'
|
|
6
|
+
const TestContractAddress = 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t'
|
|
7
|
+
|
|
8
|
+
describe.concurrent('TVM chains RPC check', () => {
|
|
9
|
+
const rpcUrls = supportedTVMChains.flatMap((chain) =>
|
|
10
|
+
chain.metamask.rpcUrls.map((rpcUrl) => ({
|
|
11
|
+
rpcUrl: rpcUrl,
|
|
12
|
+
chainId: chain.id,
|
|
13
|
+
chainName: chain.name,
|
|
14
|
+
}))
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
test.for(rpcUrls)(
|
|
18
|
+
`should successfully get chain ID from $chainName - $chainId RPC: $rpcUrl`,
|
|
19
|
+
{ timeout: 10_000, retry: 3 },
|
|
20
|
+
async ({ rpcUrl }) => {
|
|
21
|
+
const tronWeb = new TronWeb({
|
|
22
|
+
fullHost: rpcUrl,
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
const [blockNumber, chainId, accountInfo, contractInfo] =
|
|
26
|
+
await Promise.allSettled([
|
|
27
|
+
tronWeb.trx.getCurrentBlock(),
|
|
28
|
+
tronWeb.trx.getChainParameters(),
|
|
29
|
+
tronWeb.trx.getAccount(WalletAddress),
|
|
30
|
+
tronWeb.trx.getContract(TestContractAddress),
|
|
31
|
+
])
|
|
32
|
+
|
|
33
|
+
expect(blockNumber.status).toBe('fulfilled')
|
|
34
|
+
expect(chainId.status).toBe('fulfilled')
|
|
35
|
+
expect(accountInfo.status).toBe('fulfilled')
|
|
36
|
+
expect(contractInfo.status).toBe('fulfilled')
|
|
37
|
+
|
|
38
|
+
if (blockNumber.status === 'fulfilled') {
|
|
39
|
+
expect(blockNumber.value).toBeDefined()
|
|
40
|
+
expect(typeof blockNumber.value.block_header).toBe('object')
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (chainId.status === 'fulfilled') {
|
|
44
|
+
expect(chainId.value).toBeDefined()
|
|
45
|
+
expect(Array.isArray(chainId.value)).toBe(true)
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { TVMChain } from '@lifi/types'
|
|
2
|
+
import { ChainId, ChainKey, ChainType, CoinKey } from '@lifi/types'
|
|
3
|
+
|
|
4
|
+
export const supportedTVMChains: TVMChain[] = [
|
|
5
|
+
{
|
|
6
|
+
key: ChainKey.TRN,
|
|
7
|
+
chainType: ChainType.TVM,
|
|
8
|
+
name: 'Tron',
|
|
9
|
+
coin: CoinKey.TRX,
|
|
10
|
+
id: ChainId.TRN,
|
|
11
|
+
mainnet: true,
|
|
12
|
+
logoURI:
|
|
13
|
+
'https://lifinance.github.io/types/src/assets/icons/chains/tron.svg',
|
|
14
|
+
faucetUrls: [],
|
|
15
|
+
metamask: {
|
|
16
|
+
chainId: ChainId.TRN.toString(),
|
|
17
|
+
blockExplorerUrls: ['https://tronscan.org/'],
|
|
18
|
+
chainName: 'Tron',
|
|
19
|
+
nativeCurrency: {
|
|
20
|
+
name: 'Tron',
|
|
21
|
+
symbol: 'TRX',
|
|
22
|
+
decimals: 6,
|
|
23
|
+
},
|
|
24
|
+
rpcUrls: ['https://tron-rpc.publicnode.com'],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
]
|
|
@@ -21,7 +21,7 @@ test('getChainByKey', () => {
|
|
|
21
21
|
expect(getChainByKey(ChainKey.ETH)).toBeDefined()
|
|
22
22
|
})
|
|
23
23
|
|
|
24
|
-
test('native token defined for all chains', () => {
|
|
24
|
+
test('native and wrapped token defined for all chains', () => {
|
|
25
25
|
// currently unused chains
|
|
26
26
|
const ignoredChainsForNativeToken = [ChainId.FSN, ChainId.TLO, ChainId.RSK]
|
|
27
27
|
const ignoredChainsForWrappedToken = [
|
|
@@ -94,14 +94,6 @@ describe('validate chains', () => {
|
|
|
94
94
|
return
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
// blockExplorerUrls
|
|
98
|
-
expect(chain.metamask.blockExplorerUrls.length).toBeGreaterThan(0)
|
|
99
|
-
chain.metamask.blockExplorerUrls.forEach((blockExplorerUrl) => {
|
|
100
|
-
expect(blockExplorerUrl.startsWith('https://')).toBeTruthy()
|
|
101
|
-
expect(blockExplorerUrl.endsWith('/')).toBeTruthy()
|
|
102
|
-
expect(new URL(blockExplorerUrl)).toBeDefined()
|
|
103
|
-
})
|
|
104
|
-
|
|
105
97
|
const chainId = prefixChainId(chain.id)
|
|
106
98
|
|
|
107
99
|
// chain ids match
|
|
@@ -112,3 +104,33 @@ describe('validate chains', () => {
|
|
|
112
104
|
})
|
|
113
105
|
})
|
|
114
106
|
})
|
|
107
|
+
|
|
108
|
+
// This public explorer test works for all supported chains (EVM and non-EVM) because
|
|
109
|
+
// all chains share a `metamask` object structured the same way, if that's to change
|
|
110
|
+
// this test will have to be adapted per VM like the RPC tests.
|
|
111
|
+
describe.concurrent('validate blockchain explorers', () => {
|
|
112
|
+
supportedChains.forEach((chain) => {
|
|
113
|
+
expect(chain.metamask.blockExplorerUrls.length).toBeGreaterThan(0)
|
|
114
|
+
})
|
|
115
|
+
|
|
116
|
+
const explorerUrls = supportedChains.flatMap((chain) =>
|
|
117
|
+
chain.metamask.blockExplorerUrls.map((blockExplorerUrl) => ({
|
|
118
|
+
blockExplorerUrl,
|
|
119
|
+
chainKey: chain.key,
|
|
120
|
+
}))
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
test.for(explorerUrls)(
|
|
124
|
+
'should get a valid response from $chainKey explorer: $blockExplorerUrl',
|
|
125
|
+
{ timeout: 10_000, retry: 3 },
|
|
126
|
+
async ({ blockExplorerUrl }) => {
|
|
127
|
+
const response = await fetch(blockExplorerUrl, {
|
|
128
|
+
method: 'GET',
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
// some explorers have advanced bot protections, best we can do is
|
|
132
|
+
// check for any valid TCP response before timeout
|
|
133
|
+
expect(response).toBeDefined()
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
})
|
|
@@ -16,7 +16,8 @@ export const supportedUXTOChains: UTXOChain[] = [
|
|
|
16
16
|
chainId: ChainId.BTC.toString(),
|
|
17
17
|
blockExplorerUrls: [
|
|
18
18
|
'https://mempool.space/',
|
|
19
|
-
'https://
|
|
19
|
+
'https://blockstream.info/',
|
|
20
|
+
'https://www.blockchain.com/explorer/assets/btc',
|
|
20
21
|
],
|
|
21
22
|
chainName: 'Bitcoin',
|
|
22
23
|
nativeCurrency: {
|
|
@@ -42,7 +43,7 @@ export const supportedUXTOChains: UTXOChain[] = [
|
|
|
42
43
|
faucetUrls: [],
|
|
43
44
|
metamask: {
|
|
44
45
|
chainId: ChainId.BCH.toString(),
|
|
45
|
-
blockExplorerUrls: ['https://
|
|
46
|
+
blockExplorerUrls: ['https://www.blockchain.com/explorer/assets/bch'],
|
|
46
47
|
chainName: 'Bitcoin Cash',
|
|
47
48
|
nativeCurrency: {
|
|
48
49
|
name: 'BCH',
|
|
@@ -64,7 +65,7 @@ export const supportedUXTOChains: UTXOChain[] = [
|
|
|
64
65
|
faucetUrls: [],
|
|
65
66
|
metamask: {
|
|
66
67
|
chainId: ChainId.LTC.toString(),
|
|
67
|
-
blockExplorerUrls: ['https://
|
|
68
|
+
blockExplorerUrls: ['https://litecoinspace.org/'],
|
|
68
69
|
chainName: 'Litecoin',
|
|
69
70
|
nativeCurrency: {
|
|
70
71
|
name: 'LTC',
|
|
@@ -86,7 +87,7 @@ export const supportedUXTOChains: UTXOChain[] = [
|
|
|
86
87
|
faucetUrls: [],
|
|
87
88
|
metamask: {
|
|
88
89
|
chainId: ChainId.DGE.toString(),
|
|
89
|
-
blockExplorerUrls: ['https://
|
|
90
|
+
blockExplorerUrls: ['https://blockexplorer.one/dogecoin/mainnet/'],
|
|
90
91
|
chainName: 'Dogecoin',
|
|
91
92
|
nativeCurrency: {
|
|
92
93
|
name: 'DODGE',
|
package/src/coins/coins.ts
CHANGED
|
@@ -585,6 +585,20 @@ export const basicCoins: BasicCoin[] = [
|
|
|
585
585
|
},
|
|
586
586
|
},
|
|
587
587
|
},
|
|
588
|
+
// > TRX
|
|
589
|
+
{
|
|
590
|
+
key: CoinKey.TRX,
|
|
591
|
+
name: CoinKey.TRX,
|
|
592
|
+
logoURI:
|
|
593
|
+
'https://lifinance.github.io/types/src/assets/icons/chains/tron.svg',
|
|
594
|
+
verified: true,
|
|
595
|
+
chains: {
|
|
596
|
+
[ChainId.TRN]: {
|
|
597
|
+
address: 'T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb', // Tron system contract / burn address
|
|
598
|
+
decimals: 6,
|
|
599
|
+
},
|
|
600
|
+
},
|
|
601
|
+
},
|
|
588
602
|
|
|
589
603
|
// OTHER STABLECOINS
|
|
590
604
|
// USDT
|
|
@@ -812,6 +826,10 @@ export const basicCoins: BasicCoin[] = [
|
|
|
812
826
|
address: '0x6386dA73545ae4E2B2E0393688fA8B65Bb9a7169',
|
|
813
827
|
decimals: 6,
|
|
814
828
|
},
|
|
829
|
+
[ChainId.TRN]: {
|
|
830
|
+
address: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
|
|
831
|
+
decimals: 6,
|
|
832
|
+
},
|
|
815
833
|
},
|
|
816
834
|
},
|
|
817
835
|
|
|
@@ -988,11 +1006,17 @@ export const basicCoins: BasicCoin[] = [
|
|
|
988
1006
|
[ChainId.HPL]: {
|
|
989
1007
|
address: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
|
|
990
1008
|
decimals: 6,
|
|
1009
|
+
name: 'USD Coin (Perps)',
|
|
991
1010
|
},
|
|
992
1011
|
[ChainId.SOP]: {
|
|
993
1012
|
address: '0x9Aa0F72392B5784Ad86c6f3E899bCc053D00Db4F',
|
|
994
1013
|
decimals: 6,
|
|
995
1014
|
},
|
|
1015
|
+
[ChainId.TRN]: {
|
|
1016
|
+
address: 'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8',
|
|
1017
|
+
decimals: 6,
|
|
1018
|
+
name: 'USDC',
|
|
1019
|
+
},
|
|
996
1020
|
},
|
|
997
1021
|
},
|
|
998
1022
|
// USDC.e
|
|
@@ -2476,7 +2500,7 @@ export const basicCoins: BasicCoin[] = [
|
|
|
2476
2500
|
key: CoinKey.BYUSD,
|
|
2477
2501
|
name: CoinKey.BYUSD,
|
|
2478
2502
|
logoURI:
|
|
2479
|
-
'https://
|
|
2503
|
+
'https://assets.coingecko.com/coins/images/67819/standard/byusd.png?1753942382',
|
|
2480
2504
|
verified: true,
|
|
2481
2505
|
chains: {
|
|
2482
2506
|
[ChainId.BER]: {
|
|
@@ -3501,7 +3525,7 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
|
|
|
3501
3525
|
'https://static.debank.com/image/plume_token/logo_url/plume/20ecb01558edaac59ad4cd20b9ccc51d.png',
|
|
3502
3526
|
},
|
|
3503
3527
|
[ChainId.HPL]: {
|
|
3504
|
-
name: 'USD Coin',
|
|
3528
|
+
name: 'USD Coin (Perps)',
|
|
3505
3529
|
address: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
|
|
3506
3530
|
symbol: CoinKey.USDC,
|
|
3507
3531
|
coinKey: CoinKey.USDC,
|
|
@@ -3520,6 +3544,16 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
|
|
|
3520
3544
|
logoURI:
|
|
3521
3545
|
'https://static.debank.com/image/sophon_token/logo_url/0x2b1a859de6a55c553520d7780bc5805712b128f9/b81ad042ee3060050e01af4ce4ff9217.png',
|
|
3522
3546
|
},
|
|
3547
|
+
[ChainId.TRN]: {
|
|
3548
|
+
address: 'TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR',
|
|
3549
|
+
name: 'Wrapped TRX',
|
|
3550
|
+
symbol: CoinKey.WTRX,
|
|
3551
|
+
coinKey: CoinKey.WTRX,
|
|
3552
|
+
chainId: ChainId.TRN,
|
|
3553
|
+
decimals: 6,
|
|
3554
|
+
logoURI:
|
|
3555
|
+
'https://lifinance.github.io/types/src/assets/icons/chains/tron.svg',
|
|
3556
|
+
},
|
|
3523
3557
|
}
|
|
3524
3558
|
export const findDefaultCoin = (coinKey: CoinKey): Coin => {
|
|
3525
3559
|
const coin = defaultCoins.find((coin) => coin.key === coinKey)
|