keymaster-api-protocol 0.1.1 → 0.1.3
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/dist/types.gen.d.ts +1 -1
- package/dist/ws.d.ts +1 -1
- package/dist/ws.js +2 -2
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
package/dist/ws.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export declare class KmWSClient {
|
|
|
94
94
|
connectionPause(authorizationId: string): Promise<unknown>;
|
|
95
95
|
connectExec(params: unknown): Promise<unknown>;
|
|
96
96
|
walletCreate(password: string, network: string): Promise<unknown>;
|
|
97
|
-
walletImport(
|
|
97
|
+
walletImport(keyMaterial: string, network: "test" | "main"): Promise<unknown>;
|
|
98
98
|
private onMessage;
|
|
99
99
|
private failAll;
|
|
100
100
|
}
|
package/dist/ws.js
CHANGED
|
@@ -504,8 +504,8 @@ export class KmWSClient {
|
|
|
504
504
|
async walletCreate(password, network) {
|
|
505
505
|
return this.call(undefined, "wallet.create", { password, network });
|
|
506
506
|
}
|
|
507
|
-
async walletImport(
|
|
508
|
-
return this.call(undefined, "wallet.import", {
|
|
507
|
+
async walletImport(keyMaterial, network) {
|
|
508
|
+
return this.call(undefined, "wallet.import", { keyMaterial, network });
|
|
509
509
|
}
|
|
510
510
|
onMessage(ev) {
|
|
511
511
|
const data = ev.data;
|