@vleap/warps-adapter-evm 0.2.0-beta.62 → 0.2.0-beta.64

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/dist/index.mjs CHANGED
@@ -5,6 +5,7 @@ import { WarpChainName as WarpChainName7 } from "@vleap/warps";
5
5
  import {
6
6
  CacheTtl as CacheTtl2,
7
7
  getProviderConfig,
8
+ getWarpChainAssetLogoUrl,
8
9
  WarpCache as WarpCache2,
9
10
  WarpCacheKey
10
11
  } from "@vleap/warps";
@@ -694,7 +695,7 @@ var WarpEvmDataLoader = class {
694
695
  name: token.name,
695
696
  symbol: token.symbol,
696
697
  decimals: token.decimals || 18,
697
- logoUrl: token.logoUrl || ""
698
+ logoUrl: getWarpChainAssetLogoUrl(token, this.config) || ""
698
699
  }));
699
700
  }
700
701
  async getTokenBalance(address, tokenAddress) {
@@ -1780,7 +1781,10 @@ var NativeTokenBase = {
1780
1781
  name: "Ether",
1781
1782
  symbol: "ETH",
1782
1783
  decimals: 18,
1783
- logoUrl: "https://joai.ai/images/tokens/eth.svg"
1784
+ logoUrl: {
1785
+ light: "https://joai.ai/images/tokens/eth-white.svg",
1786
+ dark: "https://joai.ai/images/tokens/eth-black.svg"
1787
+ }
1784
1788
  };
1785
1789
  var BaseAdapter = createEvmAdapter(WarpChainName8.Base, {
1786
1790
  mainnet: {
@@ -1790,7 +1794,10 @@ var BaseAdapter = createEvmAdapter(WarpChainName8.Base, {
1790
1794
  blockTime: 2e3,
1791
1795
  addressHrp: "0x",
1792
1796
  defaultApiUrl: "https://mainnet.base.org",
1793
- logoUrl: "https://joai.ai/images/chains/base.svg",
1797
+ logoUrl: {
1798
+ light: "https://joai.ai/images/chains/base-white.svg",
1799
+ dark: "https://joai.ai/images/chains/base-black.svg"
1800
+ },
1794
1801
  nativeToken: NativeTokenBase
1795
1802
  },
1796
1803
  testnet: {
@@ -1800,7 +1807,10 @@ var BaseAdapter = createEvmAdapter(WarpChainName8.Base, {
1800
1807
  blockTime: 2e3,
1801
1808
  addressHrp: "0x",
1802
1809
  defaultApiUrl: "https://sepolia.base.org",
1803
- logoUrl: "https://joai.ai/images/chains/base.svg",
1810
+ logoUrl: {
1811
+ light: "https://joai.ai/images/chains/base-white.svg",
1812
+ dark: "https://joai.ai/images/chains/base-black.svg"
1813
+ },
1804
1814
  nativeToken: NativeTokenBase
1805
1815
  },
1806
1816
  devnet: {
@@ -1810,7 +1820,10 @@ var BaseAdapter = createEvmAdapter(WarpChainName8.Base, {
1810
1820
  blockTime: 2e3,
1811
1821
  addressHrp: "0x",
1812
1822
  defaultApiUrl: "https://sepolia.base.org",
1813
- logoUrl: "https://joai.ai/images/chains/base.svg",
1823
+ logoUrl: {
1824
+ light: "https://joai.ai/images/chains/base-white.svg",
1825
+ dark: "https://joai.ai/images/chains/base-black.svg"
1826
+ },
1814
1827
  nativeToken: NativeTokenBase
1815
1828
  }
1816
1829
  });
@@ -1832,7 +1845,10 @@ var NativeTokenEth = {
1832
1845
  symbol: "ETH",
1833
1846
  name: "Ether",
1834
1847
  decimals: 18,
1835
- logoUrl: "https://joai.ai/images/tokens/eth.svg"
1848
+ logoUrl: {
1849
+ light: "https://joai.ai/images/tokens/eth-white.svg",
1850
+ dark: "https://joai.ai/images/tokens/eth-black.svg"
1851
+ }
1836
1852
  };
1837
1853
  var EthereumAdapter = createEvmAdapter(WarpChainName10.Ethereum, {
1838
1854
  mainnet: {
@@ -1842,7 +1858,10 @@ var EthereumAdapter = createEvmAdapter(WarpChainName10.Ethereum, {
1842
1858
  blockTime: 12e3,
1843
1859
  addressHrp: "0x",
1844
1860
  defaultApiUrl: "https://ethereum-rpc.publicnode.com",
1845
- logoUrl: "https://joai.ai/images/chains/ethereum.svg",
1861
+ logoUrl: {
1862
+ light: "https://joai.ai/images/chains/ethereum-white.svg",
1863
+ dark: "https://joai.ai/images/chains/ethereum-black.svg"
1864
+ },
1846
1865
  nativeToken: NativeTokenEth
1847
1866
  },
1848
1867
  testnet: {
@@ -1852,7 +1871,10 @@ var EthereumAdapter = createEvmAdapter(WarpChainName10.Ethereum, {
1852
1871
  blockTime: 12e3,
1853
1872
  addressHrp: "0x",
1854
1873
  defaultApiUrl: "https://ethereum-sepolia-rpc.publicnode.com",
1855
- logoUrl: "https://joai.ai/images/chains/ethereum.svg",
1874
+ logoUrl: {
1875
+ light: "https://joai.ai/images/chains/ethereum-white.svg",
1876
+ dark: "https://joai.ai/images/chains/ethereum-black.svg"
1877
+ },
1856
1878
  nativeToken: NativeTokenEth
1857
1879
  },
1858
1880
  devnet: {
@@ -1862,7 +1884,10 @@ var EthereumAdapter = createEvmAdapter(WarpChainName10.Ethereum, {
1862
1884
  blockTime: 12e3,
1863
1885
  addressHrp: "0x",
1864
1886
  defaultApiUrl: "https://ethereum-sepolia-rpc.publicnode.com",
1865
- logoUrl: "https://joai.ai/images/chains/ethereum.svg",
1887
+ logoUrl: {
1888
+ light: "https://joai.ai/images/chains/ethereum-white.svg",
1889
+ dark: "https://joai.ai/images/chains/ethereum-black.svg"
1890
+ },
1866
1891
  nativeToken: NativeTokenEth
1867
1892
  }
1868
1893
  });