@lifi/data-types 5.27.0 → 5.28.0-beta.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.
@@ -143,6 +143,10 @@ export const basicCoins: BasicCoin[] = [
143
143
  address: '0x0000000000000000000000000000000000000000',
144
144
  decimals: 18,
145
145
  },
146
+ [ChainId.UNI]: {
147
+ address: '0x0000000000000000000000000000000000000000',
148
+ decimals: 18,
149
+ },
146
150
  },
147
151
  },
148
152
  // > MATIC
@@ -359,6 +363,10 @@ export const basicCoins: BasicCoin[] = [
359
363
  address: '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4',
360
364
  decimals: 18,
361
365
  },
366
+ [ChainId.UNI]: {
367
+ address: '0x20CAb320A855b39F724131C69424240519573f81',
368
+ decimals: 18,
369
+ },
362
370
  },
363
371
  },
364
372
  // > FTM
@@ -672,6 +680,10 @@ export const basicCoins: BasicCoin[] = [
672
680
  address: '0x0709F39376dEEe2A2dfC94A58EdEb2Eb9DF012bD',
673
681
  decimals: 6,
674
682
  },
683
+ [ChainId.SON]: {
684
+ address: '0x6047828dc181963ba44974801FF68e538dA5eaF9',
685
+ decimals: 6,
686
+ },
675
687
  },
676
688
  },
677
689
 
@@ -824,6 +836,10 @@ export const basicCoins: BasicCoin[] = [
824
836
  address: '0x74b7f16337b8972027f6196a17a631ac6de26d22',
825
837
  decimals: 6,
826
838
  },
839
+ [ChainId.UNI]: {
840
+ address: '0x078D782b760474a361dDA0AF3839290b0EF57AD6',
841
+ decimals: 6,
842
+ },
827
843
  },
828
844
  },
829
845
  // USDC.e
@@ -919,6 +935,12 @@ export const basicCoins: BasicCoin[] = [
919
935
  name: 'Bridged USD (Stargate)',
920
936
  symbol: 'USDC.e',
921
937
  },
938
+ [ChainId.SON]: {
939
+ address: '0x29219dd400f2Bf60E5a23d13Be72B486D4038894',
940
+ decimals: 6,
941
+ name: 'Bridged USDC (Sonic Labs)',
942
+ symbol: 'USDC.e',
943
+ },
922
944
  },
923
945
  },
924
946
  // axlUSDC
@@ -1238,6 +1260,10 @@ export const basicCoins: BasicCoin[] = [
1238
1260
  address: '0x0555E30da8f98308EdB960aa94C0Db47230d2B9c',
1239
1261
  decimals: 8,
1240
1262
  },
1263
+ [ChainId.SON]: {
1264
+ address: '0x0555E30da8f98308EdB960aa94C0Db47230d2B9c',
1265
+ decimals: 8,
1266
+ },
1241
1267
  },
1242
1268
  },
1243
1269
 
@@ -1398,6 +1424,14 @@ export const basicCoins: BasicCoin[] = [
1398
1424
  address: '0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590',
1399
1425
  decimals: 18,
1400
1426
  },
1427
+ [ChainId.SON]: {
1428
+ address: '0x50c42dEAcD8Fc9773493ED674b675bE577f2634b',
1429
+ decimals: 18,
1430
+ },
1431
+ [ChainId.UNI]: {
1432
+ address: '0x4200000000000000000000000000000000000006',
1433
+ decimals: 18,
1434
+ },
1401
1435
  },
1402
1436
  },
1403
1437
 
@@ -2015,6 +2049,21 @@ export const basicCoins: BasicCoin[] = [
2015
2049
  },
2016
2050
  },
2017
2051
 
2052
+ // Sonic
2053
+ {
2054
+ key: CoinKey.S,
2055
+ name: CoinKey.S,
2056
+ logoURI:
2057
+ 'https://static.debank.com/image/sonic_token/logo_url/0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38/b4cc70d040518a88adac18d906fcbfff.png',
2058
+ verified: true,
2059
+ chains: {
2060
+ [ChainId.SON]: {
2061
+ address: '0x0000000000000000000000000000000000000000',
2062
+ decimals: 18,
2063
+ },
2064
+ },
2065
+ },
2066
+
2018
2067
  // > Bitcoin
2019
2068
  {
2020
2069
  key: CoinKey.BTC,
@@ -2103,7 +2152,7 @@ export const defaultCoins: Array<Coin> = basicCoins.map((coin) => {
2103
2152
  // Wrapped version of gas on chain
2104
2153
  export const wrappedTokens: { [ChainId: string]: StaticToken } = {
2105
2154
  [ChainId.ETH]: {
2106
- // https://ww7.etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
2155
+ // https://etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
2107
2156
  address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
2108
2157
  symbol: 'WETH',
2109
2158
  decimals: 18,
@@ -2533,6 +2582,28 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
2533
2582
  logoURI:
2534
2583
  'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/tokens/wbera.svg',
2535
2584
  },
2585
+ [ChainId.SON]: {
2586
+ // https://sonicscan.org/token/0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38
2587
+ address: '0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38',
2588
+ symbol: 'wS',
2589
+ decimals: 18,
2590
+ chainId: ChainId.SON,
2591
+ coinKey: CoinKey.wS,
2592
+ name: 'Wrapped Sonic',
2593
+ logoURI:
2594
+ 'https://static.debank.com/image/sonic_token/logo_url/0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38/b4cc70d040518a88adac18d906fcbfff.png',
2595
+ },
2596
+ [ChainId.UNI]: {
2597
+ // https://uniscan.xyz/token/0x4200000000000000000000000000000000000006
2598
+ address: '0x4200000000000000000000000000000000000006',
2599
+ symbol: 'WETH',
2600
+ decimals: 18,
2601
+ chainId: ChainId.UNI,
2602
+ coinKey: CoinKey.WETH,
2603
+ name: 'WETH',
2604
+ logoURI:
2605
+ 'https://static.debank.com/image/eth_token/logo_url/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/61844453e63cf81301f845d7864236f6.png',
2606
+ },
2536
2607
  }
2537
2608
  export const findDefaultCoin = (coinKey: CoinKey): Coin => {
2538
2609
  const coin = defaultCoins.find((coin) => coin.key === coinKey)
package/src/multicall.ts CHANGED
@@ -51,6 +51,8 @@ export const multicallAddresses: { [ChainId: number]: string } = {
51
51
  [ChainId.LSK]: '0xcA11bde05977b3631167028862bE2a173976CA11',
52
52
  [ChainId.ABS]: '0xAa4De41dba0Ca5dCBb288b7cC6b708F3aaC759E7',
53
53
  [ChainId.BER]: '0xcA11bde05977b3631167028862bE2a173976CA11',
54
+ [ChainId.SON]: '0xcA11bde05977b3631167028862bE2a173976CA11',
55
+ [ChainId.UNI]: '0xcA11bde05977b3631167028862bE2a173976CA11',
54
56
 
55
57
  // TODO
56
58
  // [ChainId.EXP]: '', // TODO