@openocean.finance/wallet 0.1.3 → 0.1.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.
- package/lib/Wallets/CloverWallet.d.ts +7 -3
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -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 CloverWallet 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 Clover 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 metamask and get wallet address
|
|
16
|
+
* @param chainId specific chainId,throw error when not match
|
|
17
|
+
*/
|
|
18
|
+
requestSolanaConnect(): Promise<string>;
|
|
15
19
|
}
|
|
16
20
|
export default CloverWallet;
|