@lifi/data-types 6.27.2 → 6.28.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/supportedChains.evm.js +22 -0
- package/src/_cjs/chains/supportedChains.evm.js.map +1 -1
- package/src/_cjs/coins/coins.js +53 -13
- 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 +54 -14
- 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 +58 -15
- package/src/multicall.ts +1 -0
package/src/coins/coins.ts
CHANGED
|
@@ -282,6 +282,10 @@ export const basicCoins: BasicCoin[] = [
|
|
|
282
282
|
address: '0xf5C6825015280CdfD0b56903F9F8B5A2233476F5',
|
|
283
283
|
decimals: 18,
|
|
284
284
|
},
|
|
285
|
+
[ChainId.SOP]: {
|
|
286
|
+
address: '0x24cd1762978Ed41920d3194dC3A945C50B9a2F5E',
|
|
287
|
+
decimals: 18,
|
|
288
|
+
},
|
|
285
289
|
},
|
|
286
290
|
},
|
|
287
291
|
// > DAI
|
|
@@ -394,6 +398,10 @@ export const basicCoins: BasicCoin[] = [
|
|
|
394
398
|
address: '0x20CAb320A855b39F724131C69424240519573f81',
|
|
395
399
|
decimals: 18,
|
|
396
400
|
},
|
|
401
|
+
[ChainId.SOP]: {
|
|
402
|
+
address: '0x88171a5BbAcd92ca5e25575c5904581C80B025Dd',
|
|
403
|
+
decimals: 18,
|
|
404
|
+
},
|
|
397
405
|
},
|
|
398
406
|
},
|
|
399
407
|
// > FTM
|
|
@@ -800,6 +808,10 @@ export const basicCoins: BasicCoin[] = [
|
|
|
800
808
|
decimals: 6,
|
|
801
809
|
name: 'Bridged USDT (Stargate)',
|
|
802
810
|
},
|
|
811
|
+
[ChainId.SOP]: {
|
|
812
|
+
address: '0x6386dA73545ae4E2B2E0393688fA8B65Bb9a7169',
|
|
813
|
+
decimals: 6,
|
|
814
|
+
},
|
|
803
815
|
},
|
|
804
816
|
},
|
|
805
817
|
|
|
@@ -977,6 +989,10 @@ export const basicCoins: BasicCoin[] = [
|
|
|
977
989
|
address: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
|
|
978
990
|
decimals: 6,
|
|
979
991
|
},
|
|
992
|
+
[ChainId.SOP]: {
|
|
993
|
+
address: '0x9Aa0F72392B5784Ad86c6f3E899bCc053D00Db4F',
|
|
994
|
+
decimals: 6,
|
|
995
|
+
},
|
|
980
996
|
},
|
|
981
997
|
},
|
|
982
998
|
// USDC.e
|
|
@@ -1135,21 +1151,6 @@ export const basicCoins: BasicCoin[] = [
|
|
|
1135
1151
|
},
|
|
1136
1152
|
},
|
|
1137
1153
|
},
|
|
1138
|
-
// USDC.n
|
|
1139
|
-
{
|
|
1140
|
-
key: CoinKey.USDCn,
|
|
1141
|
-
name: 'USDC via Noble',
|
|
1142
|
-
logoURI:
|
|
1143
|
-
'https://static.debank.com/image/eth_token/logo_url/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48/fffcd27b9efff5a86ab942084c05924d.png',
|
|
1144
|
-
verified: true,
|
|
1145
|
-
chains: {
|
|
1146
|
-
[ChainId.SEI]: {
|
|
1147
|
-
address: '0x3894085ef7ff0f0aedf52e2a2704928d1ec074f1',
|
|
1148
|
-
decimals: 6,
|
|
1149
|
-
symbol: 'USDC.n',
|
|
1150
|
-
},
|
|
1151
|
-
},
|
|
1152
|
-
},
|
|
1153
1154
|
// axlUSDC
|
|
1154
1155
|
// axlUSDC is a wrapped, multi-chain representation of USDC, a dollar stablecoin.
|
|
1155
1156
|
{
|
|
@@ -1575,6 +1576,10 @@ export const basicCoins: BasicCoin[] = [
|
|
|
1575
1576
|
address: '0x0913DA6Da4b42f538B445599b46Bb4622342Cf52',
|
|
1576
1577
|
decimals: 8,
|
|
1577
1578
|
},
|
|
1579
|
+
[ChainId.SOP]: {
|
|
1580
|
+
address: '0xF1f9E08a0818594FDe4713AE0Db1E46672Ca960E',
|
|
1581
|
+
decimals: 8,
|
|
1582
|
+
},
|
|
1578
1583
|
},
|
|
1579
1584
|
},
|
|
1580
1585
|
|
|
@@ -2681,6 +2686,34 @@ export const basicCoins: BasicCoin[] = [
|
|
|
2681
2686
|
},
|
|
2682
2687
|
},
|
|
2683
2688
|
|
|
2689
|
+
// Sophon
|
|
2690
|
+
{
|
|
2691
|
+
key: CoinKey.SOPH,
|
|
2692
|
+
name: 'Sophon',
|
|
2693
|
+
logoURI:
|
|
2694
|
+
'https://static.debank.com/image/sophon_token/logo_url/sophon/b81ad042ee3060050e01af4ce4ff9217.png',
|
|
2695
|
+
verified: true,
|
|
2696
|
+
chains: {
|
|
2697
|
+
[ChainId.SOP]: {
|
|
2698
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
2699
|
+
decimals: 18,
|
|
2700
|
+
},
|
|
2701
|
+
},
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
key: CoinKey.WSOPH,
|
|
2705
|
+
name: 'Wrapped Sophon',
|
|
2706
|
+
logoURI:
|
|
2707
|
+
'https://static.debank.com/image/sophon_token/logo_url/0x2b1a859de6a55c553520d7780bc5805712b128f9/b81ad042ee3060050e01af4ce4ff9217.png',
|
|
2708
|
+
verified: true,
|
|
2709
|
+
chains: {
|
|
2710
|
+
[ChainId.SOP]: {
|
|
2711
|
+
address: '0x2b1a859de6a55c553520d7780bc5805712b128f9',
|
|
2712
|
+
decimals: 18,
|
|
2713
|
+
},
|
|
2714
|
+
},
|
|
2715
|
+
},
|
|
2716
|
+
|
|
2684
2717
|
// USDT0
|
|
2685
2718
|
{
|
|
2686
2719
|
key: CoinKey.USDT0,
|
|
@@ -3466,6 +3499,16 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
|
|
|
3466
3499
|
logoURI:
|
|
3467
3500
|
'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
3468
3501
|
},
|
|
3502
|
+
[ChainId.SOP]: {
|
|
3503
|
+
address: '0x2b1a859de6a55c553520d7780bc5805712b128f9',
|
|
3504
|
+
name: 'Wrapped Sophon',
|
|
3505
|
+
symbol: CoinKey.WSOPH,
|
|
3506
|
+
coinKey: CoinKey.WSOPH,
|
|
3507
|
+
chainId: ChainId.SOP,
|
|
3508
|
+
decimals: 18,
|
|
3509
|
+
logoURI:
|
|
3510
|
+
'https://static.debank.com/image/sophon_token/logo_url/0x2b1a859de6a55c553520d7780bc5805712b128f9/b81ad042ee3060050e01af4ce4ff9217.png',
|
|
3511
|
+
},
|
|
3469
3512
|
}
|
|
3470
3513
|
export const findDefaultCoin = (coinKey: CoinKey): Coin => {
|
|
3471
3514
|
const coin = defaultCoins.find((coin) => coin.key === coinKey)
|
package/src/multicall.ts
CHANGED
|
@@ -71,6 +71,7 @@ export const multicallAddresses: { [ChainId: number]: string } = {
|
|
|
71
71
|
[ChainId.NIB]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
72
72
|
[ChainId.RON]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
73
73
|
[ChainId.PLU]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
74
|
+
[ChainId.SOP]: '0x5f4867441d2416cA88B1b3fd38f21811680CD2C8',
|
|
74
75
|
|
|
75
76
|
// TODO
|
|
76
77
|
// [ChainId.EXP]: '', // TODO
|