@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.
@@ -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
- 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
- }
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
- 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
- }
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
- 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
- }
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, loadSync as V, __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 };
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-B-NAr0YS', './chunks/address-class-Dp7aNQb2', './chunks/tx-type-BeeK7Ci3', 'lodash'], (function (exports, constant, utils, web3, rpc, addressClass, txType, _) { 'use strict';
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;
@@ -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-DOi-T9r1.cjs');
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, loadLocusWasmSync, txValidator, verifyTxParams } from './utils/index.esm.js';
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-B9QRnlfN.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-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-B-NAr0YS', 'lodash', '../chunks/address-class-Dp7aNQb2'], (function (exports, utils$2, rpc, _, addressClass) { 'use strict';
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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  require('../utils/index.cjs.cjs');
4
- var rpc = require('../chunks/rpc-DOi-T9r1.cjs');
4
+ var rpc = require('../chunks/rpc-B-oxYRJv.cjs');
5
5
  var _ = require('lodash');
6
6
  require('../chunks/address-class-Cjy48Uqk.cjs');
7
7
 
@@ -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-B9QRnlfN.js';
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