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