locuschain-lib 1.1.9 → 1.1.11
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/lclib-amd.js +3 -0
- package/dist/lclib-cjs.d.ts +2 -1
- package/dist/lclib-cjs.js +3 -0
- package/dist/lclib-esm.js +3 -0
- package/dist/lclib.json +1 -1
- package/package.json +1 -1
package/dist/lclib-amd.js
CHANGED
|
@@ -856,6 +856,9 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
856
856
|
static DeriveKeysFromMnemonic(mnemonic, path) {
|
|
857
857
|
return LocusLib.callWasm("DeriveKeysFromMnemonic", { mnemonic, path });
|
|
858
858
|
}
|
|
859
|
+
static TxHash(jsonTx) {
|
|
860
|
+
return LocusLib.callWasm("TxHash", jsonTx);
|
|
861
|
+
}
|
|
859
862
|
}
|
|
860
863
|
LocusLib.sleep = (ms) => new Promise((resolve) => setTimeout(() => resolve(true), ms));
|
|
861
864
|
|
package/dist/lclib-cjs.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { LibraryVersions, MerkleProof, ParamTxData } from "./types.ts";
|
|
|
2
2
|
export declare class LocusLib {
|
|
3
3
|
static callWasm(wasmCmd: string, wasmParams: any): any;
|
|
4
4
|
static sleep: (ms: number) => Promise<unknown>;
|
|
5
|
-
static GetLibInfo():
|
|
5
|
+
static GetLibInfo(): any;
|
|
6
6
|
static GetLibraryVersions(): LibraryVersions;
|
|
7
7
|
static CreateAccountAndKeystore(passwordMaster: string, passwordNormal: string, mkeyAlgoNormal: string, nkeyAlgoNormal: string): string;
|
|
8
8
|
static CreateNormalKey(addrStr: any, keyAlgo: string): string;
|
|
@@ -41,4 +41,5 @@ export declare class LocusLib {
|
|
|
41
41
|
static GzipAndEncode(str: string): string;
|
|
42
42
|
static GenerateMnemonic(entropyBit?: number): string;
|
|
43
43
|
static DeriveKeysFromMnemonic(mnemonic: string, path: string): string;
|
|
44
|
+
static TxHash(jsonTx: string): string;
|
|
44
45
|
}
|
package/dist/lclib-cjs.js
CHANGED
|
@@ -856,6 +856,9 @@ class LocusLib {
|
|
|
856
856
|
static DeriveKeysFromMnemonic(mnemonic, path) {
|
|
857
857
|
return LocusLib.callWasm("DeriveKeysFromMnemonic", { mnemonic, path });
|
|
858
858
|
}
|
|
859
|
+
static TxHash(jsonTx) {
|
|
860
|
+
return LocusLib.callWasm("TxHash", jsonTx);
|
|
861
|
+
}
|
|
859
862
|
}
|
|
860
863
|
LocusLib.sleep = (ms) => new Promise((resolve) => setTimeout(() => resolve(true), ms));
|
|
861
864
|
|
package/dist/lclib-esm.js
CHANGED
|
@@ -854,6 +854,9 @@ class LocusLib {
|
|
|
854
854
|
static DeriveKeysFromMnemonic(mnemonic, path) {
|
|
855
855
|
return LocusLib.callWasm("DeriveKeysFromMnemonic", { mnemonic, path });
|
|
856
856
|
}
|
|
857
|
+
static TxHash(jsonTx) {
|
|
858
|
+
return LocusLib.callWasm("TxHash", jsonTx);
|
|
859
|
+
}
|
|
857
860
|
}
|
|
858
861
|
LocusLib.sleep = (ms) => new Promise((resolve) => setTimeout(() => resolve(true), ms));
|
|
859
862
|
|