@lifi/data-types 6.21.0 → 6.22.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 +1 -1
- package/src/_cjs/chains/supportedChains.evm.js +22 -0
- package/src/_cjs/chains/supportedChains.evm.js.map +1 -1
- package/src/_cjs/coins/coins.js +41 -0
- package/src/_cjs/coins/coins.js.map +1 -1
- package/src/_cjs/multicall.js +1 -0
- package/src/_cjs/multicall.js.map +1 -1
- package/src/_esm/chains/supportedChains.evm.js +22 -0
- package/src/_esm/chains/supportedChains.evm.js.map +1 -1
- package/src/_esm/coins/coins.js +42 -0
- 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/supportedChains.evm.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/supportedChains.evm.ts +25 -0
- package/src/coins/coins.ts +46 -0
- package/src/multicall.ts +1 -0
package/src/coins/coins.ts
CHANGED
|
@@ -964,6 +964,10 @@ export const basicCoins: BasicCoin[] = [
|
|
|
964
964
|
address: '0x796Ea11Fa2dD751eD01b53C372fFDB4AAa8f00F9',
|
|
965
965
|
decimals: 6,
|
|
966
966
|
},
|
|
967
|
+
[ChainId.RON]: {
|
|
968
|
+
address: '0x0b7007c13325c48911f73a2dad5fa5dcbf808adc',
|
|
969
|
+
decimals: 6,
|
|
970
|
+
},
|
|
967
971
|
},
|
|
968
972
|
},
|
|
969
973
|
// USDC.e
|
|
@@ -1758,6 +1762,10 @@ export const basicCoins: BasicCoin[] = [
|
|
|
1758
1762
|
address: '0xcdA5b77E2E2268D9E09c874c1b9A4c3F07b37555',
|
|
1759
1763
|
decimals: 18,
|
|
1760
1764
|
},
|
|
1765
|
+
[ChainId.RON]: {
|
|
1766
|
+
address: '0xc99a6a985ed2cac1ef41640596c5a5f9f4e19ef5',
|
|
1767
|
+
decimals: 18,
|
|
1768
|
+
},
|
|
1761
1769
|
},
|
|
1762
1770
|
},
|
|
1763
1771
|
|
|
@@ -2580,6 +2588,34 @@ export const basicCoins: BasicCoin[] = [
|
|
|
2580
2588
|
},
|
|
2581
2589
|
},
|
|
2582
2590
|
|
|
2591
|
+
// Ronin
|
|
2592
|
+
{
|
|
2593
|
+
key: CoinKey.RON,
|
|
2594
|
+
name: 'Ronin',
|
|
2595
|
+
logoURI:
|
|
2596
|
+
'https://static.debank.com/image/ron_token/logo_url/0xe514d9deb7966c8be0ca922de8a064264ea6bcd4/f65d4fdc17d5533c59ebcd6eb1f47320.png',
|
|
2597
|
+
verified: true,
|
|
2598
|
+
chains: {
|
|
2599
|
+
[ChainId.RON]: {
|
|
2600
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
2601
|
+
decimals: 18,
|
|
2602
|
+
},
|
|
2603
|
+
},
|
|
2604
|
+
},
|
|
2605
|
+
{
|
|
2606
|
+
key: CoinKey.WRON,
|
|
2607
|
+
name: 'Wrapped Ronin',
|
|
2608
|
+
logoURI:
|
|
2609
|
+
'https://static.debank.com/image/ron_token/logo_url/0xe514d9deb7966c8be0ca922de8a064264ea6bcd4/f65d4fdc17d5533c59ebcd6eb1f47320.png',
|
|
2610
|
+
verified: true,
|
|
2611
|
+
chains: {
|
|
2612
|
+
[ChainId.NIB]: {
|
|
2613
|
+
address: '0xe514d9deb7966c8be0ca922de8a064264ea6bcd4',
|
|
2614
|
+
decimals: 18,
|
|
2615
|
+
},
|
|
2616
|
+
},
|
|
2617
|
+
},
|
|
2618
|
+
|
|
2583
2619
|
// > Bitcoin
|
|
2584
2620
|
{
|
|
2585
2621
|
key: CoinKey.BTC,
|
|
@@ -3281,6 +3317,16 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
|
|
|
3281
3317
|
logoURI:
|
|
3282
3318
|
'https://imgproxy-mainnet.routescan.io/YdqQPP3gmq7jNmVn_eGpqsyDfw1V2DQw5-pR6CUe3oU/pr:thumb_32/aHR0cHM6Ly9jbXMtY2RuLmF2YXNjYW4uY29tL2NtczIvMDAwX25pYmlydS1ldm0uZDA4NTQzZjg4Mjg0LnBuZw',
|
|
3283
3319
|
},
|
|
3320
|
+
[ChainId.RON]: {
|
|
3321
|
+
address: '0xe514d9deb7966c8be0ca922de8a064264ea6bcd4',
|
|
3322
|
+
symbol: CoinKey.WRON,
|
|
3323
|
+
decimals: 18,
|
|
3324
|
+
chainId: ChainId.RON,
|
|
3325
|
+
coinKey: CoinKey.WRON,
|
|
3326
|
+
name: 'Wrapped Ronin',
|
|
3327
|
+
logoURI:
|
|
3328
|
+
'https://static.debank.com/image/ron_token/logo_url/0xe514d9deb7966c8be0ca922de8a064264ea6bcd4/f65d4fdc17d5533c59ebcd6eb1f47320.png',
|
|
3329
|
+
},
|
|
3284
3330
|
}
|
|
3285
3331
|
export const findDefaultCoin = (coinKey: CoinKey): Coin => {
|
|
3286
3332
|
const coin = defaultCoins.find((coin) => coin.key === coinKey)
|
package/src/multicall.ts
CHANGED
|
@@ -69,6 +69,7 @@ export const multicallAddresses: { [ChainId: number]: string } = {
|
|
|
69
69
|
[ChainId.KAT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
70
70
|
[ChainId.VAN]: '0xD8d2dFca27E8797fd779F8547166A2d3B29d360E',
|
|
71
71
|
[ChainId.NIB]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
72
|
+
[ChainId.RON]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
72
73
|
|
|
73
74
|
// TODO
|
|
74
75
|
// [ChainId.EXP]: '', // TODO
|