@keplr-wallet/types 0.12.171 → 0.12.172

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,37 @@
1
+ import { OfflineAminoSigner, OfflineDirectSigner } from "./cosmjs";
2
+ export interface IBBNProvider {
3
+ /**
4
+ * Connects to the wallet and returns the instance of the wallet provider.
5
+ * @returns A promise that resolves to an instance of the wrapper wallet provider.
6
+ * @throws An error if the wallet is not installed or if connection fails.
7
+ */
8
+ connectWallet(): Promise<void>;
9
+ /**
10
+ * Gets the address of the connected wallet.
11
+ * @returns A promise that resolves to the address of the connected wallet.
12
+ */
13
+ getAddress(): Promise<string>;
14
+ /**
15
+ * Gets the public key of the connected wallet.
16
+ * @returns A promise that resolves to the public key of the connected wallet.
17
+ */
18
+ getPublicKeyHex(): Promise<string>;
19
+ /**
20
+ * Gets the name of the wallet provider.
21
+ * @returns A promise that resolves to the name of the wallet provider.
22
+ */
23
+ getWalletProviderName(): Promise<string>;
24
+ /**
25
+ * Gets the icon of the wallet provider.
26
+ * @returns A promise that resolves to the icon of the wallet provider.
27
+ */
28
+ getWalletProviderIcon(): Promise<string>;
29
+ /**
30
+ * Retrieves an offline signer that supports both Amino and Direct signing methods.
31
+ * This signer is used for signing transactions offline before broadcasting them to the network.
32
+ *
33
+ * @returns {Promise<OfflineAminoSigner & OfflineDirectSigner>} A promise that resolves to a signer supporting both Amino and Direct signing
34
+ * @throws {Error} If wallet connection is not established or signer cannot be retrieved
35
+ */
36
+ getOfflineSigner(): Promise<OfflineAminoSigner & OfflineDirectSigner>;
37
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=babylon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"babylon.js","sourceRoot":"","sources":["../src/babylon.ts"],"names":[],"mappings":""}
package/build/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export * from "./cosmjs";
9
9
  export * from "./cosmjs-alt";
10
10
  export * from "./secretjs";
11
11
  export * from "./settled";
12
+ export * from "./babylon";
package/build/index.js CHANGED
@@ -25,4 +25,5 @@ __exportStar(require("./cosmjs"), exports);
25
25
  __exportStar(require("./cosmjs-alt"), exports);
26
26
  __exportStar(require("./secretjs"), exports);
27
27
  __exportStar(require("./settled"), exports);
28
+ __exportStar(require("./babylon"), exports);
28
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,2CAAyB;AACzB,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,2CAAyB;AACzB,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B;AAC1B,4CAA0B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keplr-wallet/types",
3
- "version": "0.12.171",
3
+ "version": "0.12.172",
4
4
  "main": "build/index.js",
5
5
  "author": "chainapsis",
6
6
  "license": "Apache-2.0",
@@ -21,5 +21,5 @@
21
21
  "peerDependencies": {
22
22
  "starknet": "^6"
23
23
  },
24
- "gitHead": "838ea6b37fbfafe252f6ee6e4a92e736c6747405"
24
+ "gitHead": "1b7dddf1a48eb9ea3cf39e61279e051ac513140f"
25
25
  }
package/src/babylon.ts ADDED
@@ -0,0 +1,43 @@
1
+ import { OfflineAminoSigner, OfflineDirectSigner } from "./cosmjs";
2
+
3
+ export interface IBBNProvider {
4
+ /**
5
+ * Connects to the wallet and returns the instance of the wallet provider.
6
+ * @returns A promise that resolves to an instance of the wrapper wallet provider.
7
+ * @throws An error if the wallet is not installed or if connection fails.
8
+ */
9
+ connectWallet(): Promise<void>;
10
+
11
+ /**
12
+ * Gets the address of the connected wallet.
13
+ * @returns A promise that resolves to the address of the connected wallet.
14
+ */
15
+ getAddress(): Promise<string>;
16
+
17
+ /**
18
+ * Gets the public key of the connected wallet.
19
+ * @returns A promise that resolves to the public key of the connected wallet.
20
+ */
21
+ getPublicKeyHex(): Promise<string>;
22
+
23
+ /**
24
+ * Gets the name of the wallet provider.
25
+ * @returns A promise that resolves to the name of the wallet provider.
26
+ */
27
+ getWalletProviderName(): Promise<string>;
28
+
29
+ /**
30
+ * Gets the icon of the wallet provider.
31
+ * @returns A promise that resolves to the icon of the wallet provider.
32
+ */
33
+ getWalletProviderIcon(): Promise<string>;
34
+
35
+ /**
36
+ * Retrieves an offline signer that supports both Amino and Direct signing methods.
37
+ * This signer is used for signing transactions offline before broadcasting them to the network.
38
+ *
39
+ * @returns {Promise<OfflineAminoSigner & OfflineDirectSigner>} A promise that resolves to a signer supporting both Amino and Direct signing
40
+ * @throws {Error} If wallet connection is not established or signer cannot be retrieved
41
+ */
42
+ getOfflineSigner(): Promise<OfflineAminoSigner & OfflineDirectSigner>;
43
+ }
package/src/index.ts CHANGED
@@ -9,3 +9,4 @@ export * from "./cosmjs";
9
9
  export * from "./cosmjs-alt";
10
10
  export * from "./secretjs";
11
11
  export * from "./settled";
12
+ export * from "./babylon";