@vleap/warps-adapter-evm 0.2.0-beta.61 → 0.2.0-beta.63
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.js +28 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -192,7 +192,13 @@ var _PrivateKeyWalletProvider = class _PrivateKeyWalletProvider {
|
|
|
192
192
|
return this.getWallet();
|
|
193
193
|
}
|
|
194
194
|
create(mnemonic) {
|
|
195
|
-
|
|
195
|
+
const wallet = import_ethers.ethers.Wallet.fromPhrase(mnemonic);
|
|
196
|
+
return {
|
|
197
|
+
provider: _PrivateKeyWalletProvider.PROVIDER_NAME,
|
|
198
|
+
address: wallet.address,
|
|
199
|
+
privateKey: wallet.privateKey,
|
|
200
|
+
mnemonic: null
|
|
201
|
+
};
|
|
196
202
|
}
|
|
197
203
|
generate() {
|
|
198
204
|
const wallet = import_ethers.ethers.Wallet.createRandom();
|
|
@@ -735,7 +741,7 @@ var WarpEvmDataLoader = class {
|
|
|
735
741
|
name: token.name,
|
|
736
742
|
symbol: token.symbol,
|
|
737
743
|
decimals: token.decimals || 18,
|
|
738
|
-
logoUrl: token.
|
|
744
|
+
logoUrl: (0, import_warps11.getWarpChainAssetLogoUrl)(token, this.config) || ""
|
|
739
745
|
}));
|
|
740
746
|
}
|
|
741
747
|
async getTokenBalance(address, tokenAddress) {
|
|
@@ -1799,7 +1805,10 @@ var NativeTokenBase = {
|
|
|
1799
1805
|
name: "Ether",
|
|
1800
1806
|
symbol: "ETH",
|
|
1801
1807
|
decimals: 18,
|
|
1802
|
-
logoUrl:
|
|
1808
|
+
logoUrl: {
|
|
1809
|
+
light: "https://joai.ai/images/tokens/eth-white.svg",
|
|
1810
|
+
dark: "https://joai.ai/images/tokens/eth-black.svg"
|
|
1811
|
+
}
|
|
1803
1812
|
};
|
|
1804
1813
|
var BaseAdapter = createEvmAdapter(import_warps17.WarpChainName.Base, {
|
|
1805
1814
|
mainnet: {
|
|
@@ -1809,7 +1818,10 @@ var BaseAdapter = createEvmAdapter(import_warps17.WarpChainName.Base, {
|
|
|
1809
1818
|
blockTime: 2e3,
|
|
1810
1819
|
addressHrp: "0x",
|
|
1811
1820
|
defaultApiUrl: "https://mainnet.base.org",
|
|
1812
|
-
logoUrl:
|
|
1821
|
+
logoUrl: {
|
|
1822
|
+
light: "https://joai.ai/images/chains/base-white.svg",
|
|
1823
|
+
dark: "https://joai.ai/images/chains/base-black.svg"
|
|
1824
|
+
},
|
|
1813
1825
|
nativeToken: NativeTokenBase
|
|
1814
1826
|
},
|
|
1815
1827
|
testnet: {
|
|
@@ -1819,7 +1831,10 @@ var BaseAdapter = createEvmAdapter(import_warps17.WarpChainName.Base, {
|
|
|
1819
1831
|
blockTime: 2e3,
|
|
1820
1832
|
addressHrp: "0x",
|
|
1821
1833
|
defaultApiUrl: "https://sepolia.base.org",
|
|
1822
|
-
logoUrl:
|
|
1834
|
+
logoUrl: {
|
|
1835
|
+
light: "https://joai.ai/images/chains/base-white.svg",
|
|
1836
|
+
dark: "https://joai.ai/images/chains/base-black.svg"
|
|
1837
|
+
},
|
|
1823
1838
|
nativeToken: NativeTokenBase
|
|
1824
1839
|
},
|
|
1825
1840
|
devnet: {
|
|
@@ -1829,7 +1844,10 @@ var BaseAdapter = createEvmAdapter(import_warps17.WarpChainName.Base, {
|
|
|
1829
1844
|
blockTime: 2e3,
|
|
1830
1845
|
addressHrp: "0x",
|
|
1831
1846
|
defaultApiUrl: "https://sepolia.base.org",
|
|
1832
|
-
logoUrl:
|
|
1847
|
+
logoUrl: {
|
|
1848
|
+
light: "https://joai.ai/images/chains/base-white.svg",
|
|
1849
|
+
dark: "https://joai.ai/images/chains/base-black.svg"
|
|
1850
|
+
},
|
|
1833
1851
|
nativeToken: NativeTokenBase
|
|
1834
1852
|
}
|
|
1835
1853
|
});
|
|
@@ -1851,7 +1869,10 @@ var NativeTokenEth = {
|
|
|
1851
1869
|
symbol: "ETH",
|
|
1852
1870
|
name: "Ether",
|
|
1853
1871
|
decimals: 18,
|
|
1854
|
-
logoUrl:
|
|
1872
|
+
logoUrl: {
|
|
1873
|
+
light: "https://joai.ai/images/tokens/eth-white.svg",
|
|
1874
|
+
dark: "https://joai.ai/images/tokens/eth-black.svg"
|
|
1875
|
+
}
|
|
1855
1876
|
};
|
|
1856
1877
|
var EthereumAdapter = createEvmAdapter(import_warps19.WarpChainName.Ethereum, {
|
|
1857
1878
|
mainnet: {
|