@keplr-wallet/types 0.9.6 → 0.9.10
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 +4 -1
- package/package.json +2 -2
- package/src/wallet/keplr.ts +15 -0
package/build/wallet/keplr.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChainInfo } from "../chain-info";
|
|
2
|
-
import { BroadcastMode, AminoSignResponse, StdSignDoc, StdTx, OfflineSigner } from "@cosmjs/launchpad";
|
|
2
|
+
import { BroadcastMode, AminoSignResponse, StdSignDoc, StdTx, OfflineSigner, StdSignature } from "@cosmjs/launchpad";
|
|
3
3
|
import { DirectSignResponse, OfflineDirectSigner } from "@cosmjs/proto-signing";
|
|
4
4
|
import { SecretUtils } from "secretjs/types/enigmautils";
|
|
5
5
|
import Long from "long";
|
|
@@ -18,6 +18,7 @@ export interface KeplrIntereactionOptions {
|
|
|
18
18
|
export interface KeplrSignOptions {
|
|
19
19
|
readonly preferNoSetFee?: boolean;
|
|
20
20
|
readonly preferNoSetMemo?: boolean;
|
|
21
|
+
readonly disableBalanceCheck?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export interface Keplr {
|
|
23
24
|
readonly version: string;
|
|
@@ -43,6 +44,8 @@ export interface Keplr {
|
|
|
43
44
|
accountNumber?: Long | null;
|
|
44
45
|
}, signOptions?: KeplrSignOptions): Promise<DirectSignResponse>;
|
|
45
46
|
sendTx(chainId: string, tx: StdTx | Uint8Array, mode: BroadcastMode): Promise<Uint8Array>;
|
|
47
|
+
signArbitrary(chainId: string, signer: string, data: string | Uint8Array): Promise<StdSignature>;
|
|
48
|
+
verifyArbitrary(chainId: string, signer: string, data: string | Uint8Array, signature: StdSignature): Promise<boolean>;
|
|
46
49
|
getOfflineSigner(chainId: string): OfflineSigner & OfflineDirectSigner;
|
|
47
50
|
getOfflineSignerOnlyAmino(chainId: string): OfflineSigner;
|
|
48
51
|
getOfflineSignerAuto(chainId: string): Promise<OfflineSigner | OfflineDirectSigner>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keplr-wallet/types",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.10",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"author": "chainapsis",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"long": "^4.0.0",
|
|
24
24
|
"secretjs": "^0.17.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "05efb7b77a6e0bffee7533db91e7c83b7b777da6"
|
|
27
27
|
}
|
package/src/wallet/keplr.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
StdSignDoc,
|
|
6
6
|
StdTx,
|
|
7
7
|
OfflineSigner,
|
|
8
|
+
StdSignature,
|
|
8
9
|
} from "@cosmjs/launchpad";
|
|
9
10
|
import { DirectSignResponse, OfflineDirectSigner } from "@cosmjs/proto-signing";
|
|
10
11
|
import { SecretUtils } from "secretjs/types/enigmautils";
|
|
@@ -32,6 +33,8 @@ export interface KeplrIntereactionOptions {
|
|
|
32
33
|
export interface KeplrSignOptions {
|
|
33
34
|
readonly preferNoSetFee?: boolean;
|
|
34
35
|
readonly preferNoSetMemo?: boolean;
|
|
36
|
+
|
|
37
|
+
readonly disableBalanceCheck?: boolean;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
export interface Keplr {
|
|
@@ -81,6 +84,18 @@ export interface Keplr {
|
|
|
81
84
|
mode: BroadcastMode
|
|
82
85
|
): Promise<Uint8Array>;
|
|
83
86
|
|
|
87
|
+
signArbitrary(
|
|
88
|
+
chainId: string,
|
|
89
|
+
signer: string,
|
|
90
|
+
data: string | Uint8Array
|
|
91
|
+
): Promise<StdSignature>;
|
|
92
|
+
verifyArbitrary(
|
|
93
|
+
chainId: string,
|
|
94
|
+
signer: string,
|
|
95
|
+
data: string | Uint8Array,
|
|
96
|
+
signature: StdSignature
|
|
97
|
+
): Promise<boolean>;
|
|
98
|
+
|
|
84
99
|
getOfflineSigner(chainId: string): OfflineSigner & OfflineDirectSigner;
|
|
85
100
|
getOfflineSignerOnlyAmino(chainId: string): OfflineSigner;
|
|
86
101
|
getOfflineSignerAuto(
|