@keplr-wallet/types 0.9.12 → 0.9.18-rc.0
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 +2 -2
- package/package.json +2 -2
- package/src/wallet/keplr.ts +1 -6
package/build/wallet/keplr.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChainInfo } from "../chain-info";
|
|
2
|
-
import { BroadcastMode, AminoSignResponse, StdSignDoc,
|
|
2
|
+
import { BroadcastMode, AminoSignResponse, StdSignDoc, 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";
|
|
@@ -43,7 +43,7 @@ export interface Keplr {
|
|
|
43
43
|
/** SignDoc accountNumber */
|
|
44
44
|
accountNumber?: Long | null;
|
|
45
45
|
}, signOptions?: KeplrSignOptions): Promise<DirectSignResponse>;
|
|
46
|
-
sendTx(chainId: string, tx:
|
|
46
|
+
sendTx(chainId: string, tx: Uint8Array, mode: BroadcastMode): Promise<Uint8Array>;
|
|
47
47
|
signArbitrary(chainId: string, signer: string, data: string | Uint8Array): Promise<StdSignature>;
|
|
48
48
|
verifyArbitrary(chainId: string, signer: string, data: string | Uint8Array, signature: StdSignature): Promise<boolean>;
|
|
49
49
|
getOfflineSigner(chainId: string): 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.18-rc.0",
|
|
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": "516d9115a614f9b851ed4521b060cbbdad1677d0"
|
|
27
27
|
}
|
package/src/wallet/keplr.ts
CHANGED
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
BroadcastMode,
|
|
4
4
|
AminoSignResponse,
|
|
5
5
|
StdSignDoc,
|
|
6
|
-
StdTx,
|
|
7
6
|
OfflineSigner,
|
|
8
7
|
StdSignature,
|
|
9
8
|
} from "@cosmjs/launchpad";
|
|
@@ -76,11 +75,7 @@ export interface Keplr {
|
|
|
76
75
|
): Promise<DirectSignResponse>;
|
|
77
76
|
sendTx(
|
|
78
77
|
chainId: string,
|
|
79
|
-
|
|
80
|
-
If the type is `StdTx`, it is considered as legacy stdTx.
|
|
81
|
-
If the type is `Uint8Array`, it is considered as proto tx.
|
|
82
|
-
*/
|
|
83
|
-
tx: StdTx | Uint8Array,
|
|
78
|
+
tx: Uint8Array,
|
|
84
79
|
mode: BroadcastMode
|
|
85
80
|
): Promise<Uint8Array>;
|
|
86
81
|
|