@openocean.finance/wallet 0.2.4 → 0.2.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.
@@ -0,0 +1,15 @@
1
+ import { EnumChains, EnumWalletName, EnumWalletType } from "../types";
2
+ import BaseWallet from "./BaseWallet";
3
+ declare class KeplrWallet extends BaseWallet {
4
+ name: EnumWalletName;
5
+ icon: any;
6
+ supportChains: EnumChains[];
7
+ type: EnumWalletType;
8
+ sdk: any;
9
+ /**
10
+ * connect metamask and get wallet address
11
+ * @param chainId specific chainId,throw error when not match
12
+ */
13
+ requestCosmosConnect(chainId?: string): Promise<string>;
14
+ }
15
+ export default KeplrWallet;
@@ -1,6 +1,6 @@
1
1
  import { EnumChains, EnumWalletName, EnumWalletType } from "../types";
2
2
  import BaseWallet from "./BaseWallet";
3
- import Web3 from 'web3';
3
+ import Web3 from "web3";
4
4
  declare class MetaMask extends BaseWallet {
5
5
  name: EnumWalletName;
6
6
  icon: any;
@@ -1,6 +1,6 @@
1
1
  import { EnumChains, EnumWalletName, EnumWalletType } from "../types";
2
2
  import BaseWallet from "./BaseWallet";
3
- import Web3 from 'web3';
3
+ import Web3 from "web3";
4
4
  declare class SafePalWallet extends BaseWallet {
5
5
  name: EnumWalletName;
6
6
  icon: any;
@@ -1,6 +1,6 @@
1
1
  import { EnumChains, EnumWalletName, EnumWalletType } from "../types";
2
2
  import BaseWallet from "./BaseWallet";
3
- import Web3 from 'web3';
3
+ import Web3 from "web3";
4
4
  declare class TrustWallet extends BaseWallet {
5
5
  name: EnumWalletName;
6
6
  icon: any;
@@ -1,6 +1,6 @@
1
1
  import { EnumChains, EnumWalletName, EnumWalletType } from "../types";
2
2
  import BaseWallet from "./BaseWallet";
3
- import Web3 from 'web3';
3
+ import Web3 from "web3";
4
4
  declare class WalletConnect extends BaseWallet {
5
5
  name: EnumWalletName;
6
6
  icon: any;
package/lib/index.d.ts CHANGED
@@ -29,6 +29,7 @@ import XDEFIWallet from "./Wallets/XDEFIWallet";
29
29
  import SlopeWallet from "./Wallets/SlopeWallet";
30
30
  import SolflareWallet from "./Wallets/SolflareWallet";
31
31
  import MetaXWallet from "./Wallets/MetaXWallet";
32
+ import KeplrWallet from "./Wallets/KeplrWallet";
32
33
  import { EnumChains } from "./types";
33
34
  export default WalletManager;
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 };
35
+ 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, KeplrWallet };