locuschain-lib 1.1.3 → 1.1.4
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 +775 -699
- package/dist/lclib-cjs.d.ts +5 -1
- package/dist/lclib-cjs.js +775 -699
- package/dist/lclib-esm.js +775 -699
- package/dist/lclib.d.mts +2 -0
- package/dist/lclib.json +7 -7
- package/package.json +29 -29
package/dist/lclib-cjs.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { MerkleProof, ParamTxData } from
|
|
1
|
+
import { MerkleProof, ParamTxData } from "./types.ts";
|
|
2
2
|
export declare class LocusLib {
|
|
3
3
|
static callWasm(wasmCmd: string, wasmParams: any): Promise<unknown>;
|
|
4
|
+
static sleep: (ms: number) => Promise<unknown>;
|
|
5
|
+
static GetLibInfo(): any;
|
|
4
6
|
static GetLibraryVersions(): Promise<unknown>;
|
|
5
7
|
static CreateAccountAndKeystore(passwordMaster: string, passwordNormal: string, mkeyAlgoNormal: string, nkeyAlgoNormal: string): Promise<unknown>;
|
|
6
8
|
static CreateNormalKey(addrStr: any, keyAlgo: string): Promise<unknown>;
|
|
@@ -37,4 +39,6 @@ export declare class LocusLib {
|
|
|
37
39
|
static CalculateTxLinkHash(Tx: string): Promise<unknown>;
|
|
38
40
|
static DecodeTxs(Txs: string[]): Promise<unknown>;
|
|
39
41
|
static GzipAndEncode(str: string): Promise<unknown>;
|
|
42
|
+
static GenerateMnemonic(entropyBit?: number): Promise<unknown>;
|
|
43
|
+
static DeriveKeysFromMnemonic(mnemonic: string, path: string): Promise<unknown>;
|
|
40
44
|
}
|