@locuschain/lib 0.1.15 → 0.1.16
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/chunks/{rpc-DOi-T9r1.cjs → rpc-B-oxYRJv.cjs} +7 -8
- package/dist/chunks/{rpc-B-NAr0YS.js → rpc-COK4dpN3.js} +7 -8
- package/dist/chunks/{rpc-B9QRnlfN.js → rpc-SqBwqHbM.js} +8 -8
- package/dist/index.amd.js +1 -2
- package/dist/index.cjs.cjs +1 -2
- package/dist/index.esm.js +2 -2
- package/dist/support/index.amd.js +1 -1
- package/dist/support/index.cjs.cjs +1 -1
- package/dist/support/index.esm.js +1 -1
- package/dist/utils/index.amd.js +2799 -2848
- package/dist/utils/index.cjs.cjs +2761 -2826
- package/dist/utils/index.d.cts +1 -4
- package/dist/utils/index.d.mts +1 -4
- package/dist/utils/index.esm.js +2762 -2827
- package/dist/utils/lclib.d.mts +0 -1
- package/dist/utils/locus-wasm-bridge.d.mts +1 -1
- package/dist/web3/index.amd.js +1 -1
- package/dist/web3/index.cjs.cjs +1 -1
- package/dist/web3/index.esm.js +1 -1
- package/package.json +88 -88
|
@@ -634,13 +634,13 @@ if (globalThis[LCLIB_SEQ_KEY] === undefined) {
|
|
|
634
634
|
globalThis[LCLIB_SEQ_KEY] += 1;
|
|
635
635
|
const namespace = `wallet_${globalThis[LCLIB_SEQ_KEY]}`;
|
|
636
636
|
const lclibWasmConfig = { namespace };
|
|
637
|
-
function loadSync() {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
}
|
|
637
|
+
// function loadSync() {
|
|
638
|
+
// globalThis.__LCLIB_WASM_CONFIG__ = lclibWasmConfig;
|
|
639
|
+
// const module = new WebAssembly.Module(wasm);
|
|
640
|
+
// const instance = new WebAssembly.Instance(module, go.importObject);
|
|
641
|
+
// go.run(instance);
|
|
642
|
+
// delete globalThis.__LCLIB_WASM_CONFIG__;
|
|
643
|
+
// }
|
|
644
644
|
function load() {
|
|
645
645
|
return new Promise((resolve, reject) => {
|
|
646
646
|
WebAssembly.instantiate(wasm, go.importObject)
|
|
@@ -1317,7 +1317,6 @@ exports.isGrantConsumingTx = isGrantConsumingTx;
|
|
|
1317
1317
|
exports.load = load;
|
|
1318
1318
|
exports.loadMasterKeystore = loadMasterKeystore;
|
|
1319
1319
|
exports.loadNormalKeystore = loadNormalKeystore;
|
|
1320
|
-
exports.loadSync = loadSync;
|
|
1321
1320
|
exports.makeCurrency = makeCurrency;
|
|
1322
1321
|
exports.sign = sign;
|
|
1323
1322
|
exports.signByMasterKey = signByMasterKey;
|
|
@@ -634,13 +634,13 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
634
634
|
globalThis[LCLIB_SEQ_KEY] += 1;
|
|
635
635
|
const namespace = `wallet_${globalThis[LCLIB_SEQ_KEY]}`;
|
|
636
636
|
const lclibWasmConfig = { namespace };
|
|
637
|
-
function loadSync() {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
}
|
|
637
|
+
// function loadSync() {
|
|
638
|
+
// globalThis.__LCLIB_WASM_CONFIG__ = lclibWasmConfig;
|
|
639
|
+
// const module = new WebAssembly.Module(wasm);
|
|
640
|
+
// const instance = new WebAssembly.Instance(module, go.importObject);
|
|
641
|
+
// go.run(instance);
|
|
642
|
+
// delete globalThis.__LCLIB_WASM_CONFIG__;
|
|
643
|
+
// }
|
|
644
644
|
function load() {
|
|
645
645
|
return new Promise((resolve, reject) => {
|
|
646
646
|
WebAssembly.instantiate(wasm, go.importObject)
|
|
@@ -1317,7 +1317,6 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
1317
1317
|
exports.load = load;
|
|
1318
1318
|
exports.loadMasterKeystore = loadMasterKeystore;
|
|
1319
1319
|
exports.loadNormalKeystore = loadNormalKeystore;
|
|
1320
|
-
exports.loadSync = loadSync;
|
|
1321
1320
|
exports.makeCurrency = makeCurrency;
|
|
1322
1321
|
exports.sign = sign;
|
|
1323
1322
|
exports.signByMasterKey = signByMasterKey;
|
|
@@ -632,13 +632,13 @@ if (globalThis[LCLIB_SEQ_KEY] === undefined) {
|
|
|
632
632
|
globalThis[LCLIB_SEQ_KEY] += 1;
|
|
633
633
|
const namespace = `wallet_${globalThis[LCLIB_SEQ_KEY]}`;
|
|
634
634
|
const lclibWasmConfig = { namespace };
|
|
635
|
-
function loadSync() {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
}
|
|
635
|
+
// function loadSync() {
|
|
636
|
+
// globalThis.__LCLIB_WASM_CONFIG__ = lclibWasmConfig;
|
|
637
|
+
// const module = new WebAssembly.Module(wasm);
|
|
638
|
+
// const instance = new WebAssembly.Instance(module, go.importObject);
|
|
639
|
+
// go.run(instance);
|
|
640
|
+
// delete globalThis.__LCLIB_WASM_CONFIG__;
|
|
641
|
+
// }
|
|
642
642
|
function load() {
|
|
643
643
|
return new Promise((resolve, reject) => {
|
|
644
644
|
WebAssembly.instantiate(wasm, go.importObject)
|
|
@@ -1275,4 +1275,4 @@ class Rpc {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
|
-
export { generateMnemonic as A, generateMnemonicBySeed as B, getDefFromCoreScript as C, getHomeShard as D, getLibraryVersions as E, gzipAndEncode as F, hash as G, isGrantConsumingTx as H, loadMasterKeystore as I, loadNormalKeystore as J, makeCurrency as K, sign as L, signByMasterKey as M, testCoreScript as N, verify as O, verifyByMasterKey as P, verifyMerkleProof as Q, Rpc as R, verifyTx as S, TX_CREATION_RPC_LIST as T, load as U,
|
|
1278
|
+
export { generateMnemonic as A, generateMnemonicBySeed as B, getDefFromCoreScript as C, getHomeShard as D, getLibraryVersions as E, gzipAndEncode as F, hash as G, isGrantConsumingTx as H, loadMasterKeystore as I, loadNormalKeystore as J, makeCurrency as K, sign as L, signByMasterKey as M, testCoreScript as N, verify as O, verifyByMasterKey as P, verifyMerkleProof as Q, Rpc as R, verifyTx as S, TX_CREATION_RPC_LIST as T, load as U, __awaiter as _, compileCoreScript as a, convertAddressToData as b, calculateTxLinkHash as c, convertAddressToHex as d, convertBase32ToData as e, convertBase32ToHex as f, convertCurrency as g, convertDataTo as h, convertDataToAddress as i, convertDataToBase32 as j, convertDataToHex as k, convertDataToString as l, convertHexToAddress as m, convertHexToBase32 as n, convertHexToData as o, convertStringToData as p, convertToData as q, createAccountAndKeystore as r, createMasterKeystore as s, createNormalKey as t, createNormalKeystore as u, decodeTxs as v, deriveKeysFromMnemonic as w, disCompileCoreScript as x, encodeTxCurrency as y, encodeTxNumber as z };
|
package/dist/index.amd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', './constant/index.amd', './utils/index.amd', './web3/index.amd', './chunks/rpc-
|
|
1
|
+
define(['exports', './constant/index.amd', './utils/index.amd', './web3/index.amd', './chunks/rpc-COK4dpN3', './chunks/address-class-Dp7aNQb2', './chunks/tx-type-BeeK7Ci3', 'lodash'], (function (exports, constant, utils, web3, rpc, addressClass, txType, _) { 'use strict';
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -15,7 +15,6 @@ define(['exports', './constant/index.amd', './utils/index.amd', './web3/index.am
|
|
|
15
15
|
exports.isSystemToken = utils.isSystemToken;
|
|
16
16
|
exports.isToken = utils.isToken;
|
|
17
17
|
exports.loadLocusWasm = utils.loadLocusWasm;
|
|
18
|
-
exports.loadLocusWasmSync = utils.loadLocusWasmSync;
|
|
19
18
|
exports.txValidator = utils.txValidator;
|
|
20
19
|
exports.verifyTxParams = utils.verifyTxParams;
|
|
21
20
|
exports.Account = web3.Account;
|
package/dist/index.cjs.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var constant = require('./constant/index.cjs.cjs');
|
|
4
4
|
var utils = require('./utils/index.cjs.cjs');
|
|
5
5
|
var web3 = require('./web3/index.cjs.cjs');
|
|
6
|
-
var rpc = require('./chunks/rpc-
|
|
6
|
+
var rpc = require('./chunks/rpc-B-oxYRJv.cjs');
|
|
7
7
|
require('./chunks/address-class-Cjy48Uqk.cjs');
|
|
8
8
|
require('./chunks/tx-type-jR5Owltc.cjs');
|
|
9
9
|
require('lodash');
|
|
@@ -23,7 +23,6 @@ exports.isContract = utils.isContract;
|
|
|
23
23
|
exports.isSystemToken = utils.isSystemToken;
|
|
24
24
|
exports.isToken = utils.isToken;
|
|
25
25
|
exports.loadLocusWasm = utils.loadLocusWasm;
|
|
26
|
-
exports.loadLocusWasmSync = utils.loadLocusWasmSync;
|
|
27
26
|
exports.txValidator = utils.txValidator;
|
|
28
27
|
exports.verifyTxParams = utils.verifyTxParams;
|
|
29
28
|
exports.Account = web3.Account;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, MaxVMRewardsCount, TxType, TxTypes } from './constant/index.esm.js';
|
|
2
|
-
export { checkAddressType, isAccount, isContract, isSystemToken, isToken, loadLocusWasm,
|
|
2
|
+
export { checkAddressType, isAccount, isContract, isSystemToken, isToken, loadLocusWasm, txValidator, verifyTxParams } from './utils/index.esm.js';
|
|
3
3
|
export { Account, AccountProvider, HttpRpcProvider, RpcProvider, Web3 } from './web3/index.esm.js';
|
|
4
|
-
export { R as Rpc, T as TX_CREATION_RPC_LIST, c as calculateTxLinkHash, a as compileCoreScript, b as convertAddressToData, d as convertAddressToHex, e as convertBase32ToData, f as convertBase32ToHex, g as convertCurrency, h as convertDataTo, i as convertDataToAddress, j as convertDataToBase32, k as convertDataToHex, l as convertDataToString, m as convertHexToAddress, n as convertHexToBase32, o as convertHexToData, p as convertStringToData, q as convertToData, r as createAccountAndKeystore, s as createMasterKeystore, t as createNormalKey, u as createNormalKeystore, v as decodeTxs, w as deriveKeysFromMnemonic, x as disCompileCoreScript, y as encodeTxCurrency, z as encodeTxNumber, A as generateMnemonic, B as generateMnemonicBySeed, C as getDefFromCoreScript, D as getHomeShard, E as getLibraryVersions, F as gzipAndEncode, G as hash, H as isGrantConsumingTx, I as loadMasterKeystore, J as loadNormalKeystore, K as makeCurrency, L as sign, M as signByMasterKey, N as testCoreScript, O as verify, P as verifyByMasterKey, Q as verifyMerkleProof, S as verifyTx } from './chunks/rpc-
|
|
4
|
+
export { R as Rpc, T as TX_CREATION_RPC_LIST, c as calculateTxLinkHash, a as compileCoreScript, b as convertAddressToData, d as convertAddressToHex, e as convertBase32ToData, f as convertBase32ToHex, g as convertCurrency, h as convertDataTo, i as convertDataToAddress, j as convertDataToBase32, k as convertDataToHex, l as convertDataToString, m as convertHexToAddress, n as convertHexToBase32, o as convertHexToData, p as convertStringToData, q as convertToData, r as createAccountAndKeystore, s as createMasterKeystore, t as createNormalKey, u as createNormalKeystore, v as decodeTxs, w as deriveKeysFromMnemonic, x as disCompileCoreScript, y as encodeTxCurrency, z as encodeTxNumber, A as generateMnemonic, B as generateMnemonicBySeed, C as getDefFromCoreScript, D as getHomeShard, E as getLibraryVersions, F as gzipAndEncode, G as hash, H as isGrantConsumingTx, I as loadMasterKeystore, J as loadNormalKeystore, K as makeCurrency, L as sign, M as signByMasterKey, N as testCoreScript, O as verify, P as verifyByMasterKey, Q as verifyMerkleProof, S as verifyTx } from './chunks/rpc-SqBwqHbM.js';
|
|
5
5
|
import './chunks/address-class-CHAZYhdZ.js';
|
|
6
6
|
import './chunks/tx-type-nyLU5xv5.js';
|
|
7
7
|
import 'lodash';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', '../utils/index.amd', '../chunks/rpc-
|
|
1
|
+
define(['exports', '../utils/index.amd', '../chunks/rpc-COK4dpN3', 'lodash', '../chunks/address-class-Dp7aNQb2'], (function (exports, utils$2, rpc, _, addressClass) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopNamespaceDefault(e) {
|
|
4
4
|
var n = Object.create(null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../utils/index.esm.js';
|
|
2
|
-
import { k as convertDataToHex, m as convertHexToAddress, d as convertAddressToHex, o as convertHexToData, _ as __awaiter } from '../chunks/rpc-
|
|
2
|
+
import { k as convertDataToHex, m as convertHexToAddress, d as convertAddressToHex, o as convertHexToData, _ as __awaiter } from '../chunks/rpc-SqBwqHbM.js';
|
|
3
3
|
import * as _ from 'lodash';
|
|
4
4
|
import '../chunks/address-class-CHAZYhdZ.js';
|
|
5
5
|
|