@openocean.finance/wallet 0.1.6 → 0.1.7
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/lib/Wallets/MetaXWallet.d.ts +16 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +1 -1
- package/lib/types.d.ts +4 -2
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EnumChains, EnumWalletName, EnumWalletType } from "../types";
|
|
2
|
+
import BaseWallet from "./BaseWallet";
|
|
3
|
+
import Web3 from 'web3';
|
|
4
|
+
declare class MetaXWallet extends BaseWallet {
|
|
5
|
+
name: EnumWalletName;
|
|
6
|
+
icon: any;
|
|
7
|
+
supportChains: EnumChains[];
|
|
8
|
+
type: EnumWalletType;
|
|
9
|
+
sdk: Web3 | null;
|
|
10
|
+
/**
|
|
11
|
+
* connect TrustWallet and get wallet address
|
|
12
|
+
* @param chainId specific chainId,throw error when not match
|
|
13
|
+
*/
|
|
14
|
+
requestConnect(chainId?: number): Promise<string>;
|
|
15
|
+
}
|
|
16
|
+
export default MetaXWallet;
|
package/lib/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import CloverWallet from "./Wallets/CloverWallet";
|
|
|
28
28
|
import XDEFIWallet from "./Wallets/XDEFIWallet";
|
|
29
29
|
import SlopeWallet from "./Wallets/SlopeWallet";
|
|
30
30
|
import SolflareWallet from "./Wallets/SolflareWallet";
|
|
31
|
+
import MetaXWallet from "./Wallets/MetaXWallet";
|
|
31
32
|
import { EnumChains } from "./types";
|
|
32
33
|
export default WalletManager;
|
|
33
|
-
export { WalletManager, MetaMask, BscWallet, Cyano, TronLink, EnumChains, Sollet, SolletIo, OntoMobile, WalletConnect, MathWallet, OntoWallet, SafePalWallet, ImTokenWallet, TokenPocket, TrustWallet, Coin98, Phantom, OKExWallet, TerraStation, CoinbaseWallet, CloverWallet, XDEFIWallet, SlopeWallet, SolflareWallet };
|
|
34
|
+
export { WalletManager, MetaMask, BscWallet, Cyano, TronLink, EnumChains, Sollet, SolletIo, OntoMobile, WalletConnect, MathWallet, OntoWallet, SafePalWallet, ImTokenWallet, TokenPocket, TrustWallet, Coin98, Phantom, OKExWallet, TerraStation, CoinbaseWallet, CloverWallet, XDEFIWallet, SlopeWallet, SolflareWallet, MetaXWallet };
|