@lifi/data-types 6.24.0-beta.2 → 6.24.0-beta.4

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.
@@ -1 +1 @@
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;CAsF3D,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;CAqF3D,CAAA"}
@@ -1685,22 +1685,17 @@ export const supportedEVMChains: EVMChain[] = [
1685
1685
  mainnet: true,
1686
1686
  logoURI:
1687
1687
  'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/hyperliquid.svg',
1688
- multicallAddress: multicallAddresses[ChainId.HPL],
1689
1688
  relayerSupported: false,
1690
1689
  metamask: {
1691
1690
  chainId: prefixChainId(ChainId.ARB),
1692
1691
  blockExplorerUrls: ['https://app.hyperliquid.xyz/explorer/'],
1693
1692
  chainName: 'Hyperliquid',
1694
1693
  nativeCurrency: {
1695
- name: CoinKey.ETH,
1696
- symbol: CoinKey.ETH,
1697
- decimals: 18,
1694
+ name: CoinKey.USDC,
1695
+ symbol: CoinKey.USDC,
1696
+ decimals: 6,
1698
1697
  },
1699
- rpcUrls: [
1700
- 'https://arb1.arbitrum.io/rpc',
1701
- 'https://arbitrum-one-rpc.publicnode.com',
1702
- 'https://arbitrum.drpc.org',
1703
- ],
1698
+ rpcUrls: [],
1704
1699
  },
1705
1700
  },
1706
1701
  ]
@@ -87,8 +87,13 @@ describe('findTokenByChainIdAndAddress', () => {
87
87
  })
88
88
 
89
89
  describe('validate chains', () => {
90
+ const ignoredChains = [ChainId.HPL]
90
91
  supportedEVMChains.forEach((chain) => {
91
92
  it(`validate chain ${chain.name}`, () => {
93
+ if (ignoredChains.includes(chain.id)) {
94
+ return
95
+ }
96
+
92
97
  // blockExplorerUrls
93
98
  expect(chain.metamask.blockExplorerUrls.length).toBeGreaterThan(0)
94
99
  chain.metamask.blockExplorerUrls.forEach((blockExplorerUrl) => {
@@ -174,10 +174,6 @@ export const basicCoins: BasicCoin[] = [
174
174
  address: '0x0000000000000000000000000000000000000000',
175
175
  decimals: 18,
176
176
  },
177
- [ChainId.HPL]: {
178
- address: '0x0000000000000000000000000000000000000000',
179
- decimals: 18,
180
- },
181
177
  },
182
178
  },
183
179
  // > MATIC
@@ -3387,6 +3383,16 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
3387
3383
  logoURI:
3388
3384
  'https://static.debank.com/image/plume_token/logo_url/plume/20ecb01558edaac59ad4cd20b9ccc51d.png',
3389
3385
  },
3386
+ [ChainId.HPL]: {
3387
+ name: 'USD Coin',
3388
+ address: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
3389
+ symbol: CoinKey.USDC,
3390
+ coinKey: CoinKey.USDC,
3391
+ chainId: ChainId.HPL,
3392
+ decimals: 6,
3393
+ logoURI:
3394
+ 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
3395
+ },
3390
3396
  }
3391
3397
  export const findDefaultCoin = (coinKey: CoinKey): Coin => {
3392
3398
  const coin = defaultCoins.find((coin) => coin.key === coinKey)
package/src/multicall.ts CHANGED
@@ -71,7 +71,6 @@ export const multicallAddresses: { [ChainId: number]: string } = {
71
71
  [ChainId.NIB]: '0xcA11bde05977b3631167028862bE2a173976CA11',
72
72
  [ChainId.RON]: '0xcA11bde05977b3631167028862bE2a173976CA11',
73
73
  [ChainId.PLU]: '0xcA11bde05977b3631167028862bE2a173976CA11',
74
- [ChainId.HPL]: '0xcA11bde05977b3631167028862bE2a173976CA11',
75
74
 
76
75
  // TODO
77
76
  // [ChainId.EXP]: '', // TODO