@keplr-wallet/types 0.12.170 → 0.12.172
Sign up to get free protection for your applications and to get access to all the features.
- package/build/babylon.d.ts +37 -0
- package/build/babylon.js +3 -0
- package/build/babylon.js.map +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- package/src/babylon.ts +43 -0
- package/src/index.ts +1 -0
@@ -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
|
+
}
|
package/build/babylon.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"babylon.js","sourceRoot":"","sources":["../src/babylon.ts"],"names":[],"mappings":""}
|
package/build/index.d.ts
CHANGED
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
|
package/build/index.js.map
CHANGED
@@ -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.
|
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": "
|
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