@keplr-wallet/types 0.9.4 → 0.9.9
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/build/wallet/keplr.d.ts +8 -0
- package/package.json +3 -3
- package/src/wallet/keplr.ts +10 -0
package/build/wallet/keplr.d.ts
CHANGED
|
@@ -11,15 +11,23 @@ export interface Key {
|
|
|
11
11
|
readonly bech32Address: string;
|
|
12
12
|
readonly isNanoLedger: boolean;
|
|
13
13
|
}
|
|
14
|
+
export declare type KeplrMode = "core" | "extension" | "mobile-web" | "walletconnect";
|
|
14
15
|
export interface KeplrIntereactionOptions {
|
|
15
16
|
readonly sign?: KeplrSignOptions;
|
|
16
17
|
}
|
|
17
18
|
export interface KeplrSignOptions {
|
|
18
19
|
readonly preferNoSetFee?: boolean;
|
|
19
20
|
readonly preferNoSetMemo?: boolean;
|
|
21
|
+
readonly disableBalanceCheck?: boolean;
|
|
20
22
|
}
|
|
21
23
|
export interface Keplr {
|
|
22
24
|
readonly version: string;
|
|
25
|
+
/**
|
|
26
|
+
* mode means that how Keplr is connected.
|
|
27
|
+
* If the connected Keplr is browser's extension, the mode should be "extension".
|
|
28
|
+
* If the connected Keplr is on the mobile app with the embeded web browser, the mode should be "mobile-web".
|
|
29
|
+
*/
|
|
30
|
+
readonly mode: KeplrMode;
|
|
23
31
|
defaultOptions: KeplrIntereactionOptions;
|
|
24
32
|
experimentalSuggestChain(chainInfo: ChainInfo): Promise<void>;
|
|
25
33
|
enable(chainIds: string | string[]): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keplr-wallet/types",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.9",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"author": "chainapsis",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@cosmjs/proto-signing": "^0.24.0-alpha.25",
|
|
22
22
|
"axios": "^0.21.0",
|
|
23
23
|
"long": "^4.0.0",
|
|
24
|
-
"secretjs": "^0.
|
|
24
|
+
"secretjs": "^0.17.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "ead06cf2f414219770f0e27a8ab69d166a392b27"
|
|
27
27
|
}
|
package/src/wallet/keplr.ts
CHANGED
|
@@ -23,6 +23,8 @@ export interface Key {
|
|
|
23
23
|
readonly isNanoLedger: boolean;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
export type KeplrMode = "core" | "extension" | "mobile-web" | "walletconnect";
|
|
27
|
+
|
|
26
28
|
export interface KeplrIntereactionOptions {
|
|
27
29
|
readonly sign?: KeplrSignOptions;
|
|
28
30
|
}
|
|
@@ -30,10 +32,18 @@ export interface KeplrIntereactionOptions {
|
|
|
30
32
|
export interface KeplrSignOptions {
|
|
31
33
|
readonly preferNoSetFee?: boolean;
|
|
32
34
|
readonly preferNoSetMemo?: boolean;
|
|
35
|
+
|
|
36
|
+
readonly disableBalanceCheck?: boolean;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
export interface Keplr {
|
|
36
40
|
readonly version: string;
|
|
41
|
+
/**
|
|
42
|
+
* mode means that how Keplr is connected.
|
|
43
|
+
* If the connected Keplr is browser's extension, the mode should be "extension".
|
|
44
|
+
* If the connected Keplr is on the mobile app with the embeded web browser, the mode should be "mobile-web".
|
|
45
|
+
*/
|
|
46
|
+
readonly mode: KeplrMode;
|
|
37
47
|
defaultOptions: KeplrIntereactionOptions;
|
|
38
48
|
|
|
39
49
|
experimentalSuggestChain(chainInfo: ChainInfo): Promise<void>;
|