@locuschain/lib 0.0.16-beta.9 → 0.1.0

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.
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/index-dKo4dwic', 'lodash', '../chunks/address-class-Dp7aNQb2'], (function (exports, utils$2, _, addressClass) { 'use strict';
1
+ define(['exports', '../chunks/index-DTkgh-Wa', 'lodash', '../chunks/address-class-Dp7aNQb2'], (function (exports, utils$2, _, addressClass) { 'use strict';
2
2
 
3
3
  function _interopNamespaceDefault(e) {
4
4
  var n = Object.create(null);
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var utils$2 = require('../chunks/index-DH-gBPD3.cjs');
3
+ var utils$2 = require('../chunks/index-DOXYSS9J.cjs');
4
4
  var _ = require('lodash');
5
5
  require('../chunks/address-class-Cjy48Uqk.cjs');
6
6
 
@@ -1,4 +1,4 @@
1
- import { l as convertDataToHex, n as convertHexToAddress, e as convertAddressToHex, p as convertHexToData, a2 as __awaiter } from '../chunks/index-CJj3uzpS.js';
1
+ import { l as convertDataToHex, n as convertHexToAddress, e as convertAddressToHex, p as convertHexToData, a1 as __awaiter } from '../chunks/index--uv-mkfw.js';
2
2
  import * as _ from 'lodash';
3
3
  import '../chunks/address-class-CHAZYhdZ.js';
4
4
 
@@ -1,8 +1,7 @@
1
- define(['exports', '../chunks/address-class-Dp7aNQb2', '../chunks/index-dKo4dwic', 'lodash'], (function (exports, addressClass, utils, _) { 'use strict';
1
+ define(['exports', '../chunks/address-class-Dp7aNQb2', '../chunks/index-DTkgh-Wa', 'lodash'], (function (exports, addressClass, utils, _) { 'use strict';
2
2
 
3
3
 
4
4
 
5
- exports.LCLIB_NAMESPACE = utils.LCLIB_NAMESPACE;
6
5
  exports.Rpc = utils.Rpc;
7
6
  exports.TX_CREATION_RPC_LIST = utils.TX_CREATION_RPC_LIST;
8
7
  exports.calculateTxLinkHash = utils.calculateTxLinkHash;
@@ -1,12 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunks/address-class-Cjy48Uqk.cjs');
4
- var utils = require('../chunks/index-DH-gBPD3.cjs');
4
+ var utils = require('../chunks/index-DOXYSS9J.cjs');
5
5
  require('lodash');
6
6
 
7
7
 
8
8
 
9
- exports.LCLIB_NAMESPACE = utils.LCLIB_NAMESPACE;
10
9
  exports.Rpc = utils.Rpc;
11
10
  exports.TX_CREATION_RPC_LIST = utils.TX_CREATION_RPC_LIST;
12
11
  exports.calculateTxLinkHash = utils.calculateTxLinkHash;
@@ -1,10 +1,9 @@
1
- import { load, loadSync } from './lclib.mjs';
2
- import { TxValidator } from './tx-validator.mjs';
3
1
  export * from '../autogen/wasm.mjs';
4
2
  export * from '../autogen/rpc.mjs';
3
+ import { load, loadSync } from './lclib.mjs';
4
+ import { TxValidator } from './tx-validator.mjs';
5
5
  export declare const loadLocusWasm: typeof load;
6
6
  export declare const loadLocusWasmSync: typeof loadSync;
7
- export declare const LCLIB_NAMESPACE: string;
8
7
  export declare const txValidator: TxValidator;
9
8
  export declare const verifyTxParams: (rpcResult: {
10
9
  hash: string;
@@ -1,10 +1,9 @@
1
- import { load, loadSync } from './lclib.mjs';
2
- import { TxValidator } from './tx-validator.mjs';
3
1
  export * from '../autogen/wasm.mjs';
4
2
  export * from '../autogen/rpc.mjs';
3
+ import { load, loadSync } from './lclib.mjs';
4
+ import { TxValidator } from './tx-validator.mjs';
5
5
  export declare const loadLocusWasm: typeof load;
6
6
  export declare const loadLocusWasmSync: typeof loadSync;
7
- export declare const LCLIB_NAMESPACE: string;
8
7
  export declare const txValidator: TxValidator;
9
8
  export declare const verifyTxParams: (rpcResult: {
10
9
  hash: string;
@@ -1,3 +1,3 @@
1
1
  import '../chunks/address-class-CHAZYhdZ.js';
2
- export { L as LCLIB_NAMESPACE, R as Rpc, T as TX_CREATION_RPC_LIST, c as calculateTxLinkHash, a as checkAddressType, b as compileCoreScript, d as convertAddressToData, e as convertAddressToHex, f as convertBase32ToData, g as convertBase32ToHex, h as convertCurrency, i as convertDataTo, j as convertDataToAddress, k as convertDataToBase32, l as convertDataToHex, m as convertDataToString, n as convertHexToAddress, o as convertHexToBase32, p as convertHexToData, q as convertStringToData, r as convertToData, s as createAccountAndKeystore, t as createMasterKeystore, u as createNormalKey, v as createNormalKeystore, w as decodeTxs, x as deriveKeysFromMnemonic, y as disCompileCoreScript, z as encodeTxCurrency, A as encodeTxNumber, B as generateMnemonic, C as generateMnemonicBySeed, D as getDefFromCoreScript, E as getHomeShard, F as getLibraryVersions, G as gzipAndEncode, H as hash, I as isAccount, J as isContract, K as isGrantConsumingTx, M as isSystemToken, N as isToken, O as loadLocusWasm, P as loadLocusWasmSync, Q as loadMasterKeystore, S as loadNormalKeystore, U as makeCurrency, V as sign, W as signByMasterKey, X as testCoreScript, Y as txValidator, Z as verify, _ as verifyByMasterKey, $ as verifyMerkleProof, a0 as verifyTx, a1 as verifyTxParams } from '../chunks/index-CJj3uzpS.js';
2
+ export { R as Rpc, T as TX_CREATION_RPC_LIST, c as calculateTxLinkHash, a as checkAddressType, b as compileCoreScript, d as convertAddressToData, e as convertAddressToHex, f as convertBase32ToData, g as convertBase32ToHex, h as convertCurrency, i as convertDataTo, j as convertDataToAddress, k as convertDataToBase32, l as convertDataToHex, m as convertDataToString, n as convertHexToAddress, o as convertHexToBase32, p as convertHexToData, q as convertStringToData, r as convertToData, s as createAccountAndKeystore, t as createMasterKeystore, u as createNormalKey, v as createNormalKeystore, w as decodeTxs, x as deriveKeysFromMnemonic, y as disCompileCoreScript, z as encodeTxCurrency, A as encodeTxNumber, B as generateMnemonic, C as generateMnemonicBySeed, D as getDefFromCoreScript, E as getHomeShard, F as getLibraryVersions, G as gzipAndEncode, H as hash, I as isAccount, J as isContract, K as isGrantConsumingTx, L as isSystemToken, M as isToken, N as loadLocusWasm, O as loadLocusWasmSync, P as loadMasterKeystore, Q as loadNormalKeystore, S as makeCurrency, U as sign, V as signByMasterKey, W as testCoreScript, X as txValidator, Y as verify, Z as verifyByMasterKey, _ as verifyMerkleProof, $ as verifyTx, a0 as verifyTxParams } from '../chunks/index--uv-mkfw.js';
3
3
  import 'lodash';
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/index-dKo4dwic', '../chunks/tx-type-BeeK7Ci3', '../chunks/address-class-Dp7aNQb2', 'lodash'], (function (exports, utils, txType, addressClass, _) { 'use strict';
1
+ define(['exports', '../chunks/index-DTkgh-Wa', '../chunks/tx-type-BeeK7Ci3', '../chunks/address-class-Dp7aNQb2', 'lodash'], (function (exports, utils, txType, addressClass, _) { 'use strict';
2
2
 
3
3
  class Account {
4
4
  constructor({ address, nsk }) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var utils = require('../chunks/index-DH-gBPD3.cjs');
3
+ var utils = require('../chunks/index-DOXYSS9J.cjs');
4
4
  var txType = require('../chunks/tx-type-jR5Owltc.cjs');
5
5
  require('../chunks/address-class-Cjy48Uqk.cjs');
6
6
  require('lodash');
@@ -1,4 +1,4 @@
1
- import { V as sign, a2 as __awaiter, a1 as verifyTxParams, R as Rpc, T as TX_CREATION_RPC_LIST } from '../chunks/index-CJj3uzpS.js';
1
+ import { U as sign, a1 as __awaiter, a0 as verifyTxParams, R as Rpc, T as TX_CREATION_RPC_LIST } from '../chunks/index--uv-mkfw.js';
2
2
  import { T as TxType } from '../chunks/tx-type-nyLU5xv5.js';
3
3
  import '../chunks/address-class-CHAZYhdZ.js';
4
4
  import 'lodash';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locuschain/lib",
3
- "version": "0.0.16-beta.9",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "author": "bloomtechnology",
6
6
  "license": "MIT",
@@ -8,8 +8,9 @@
8
8
  "engines": {
9
9
  "node": "~22.19.0"
10
10
  },
11
- "module": "./dist/index.esm.js",
12
- "types": "./dist/index.d.cjs",
11
+ "main": "./dist/index.cjs.cjs",
12
+ "module": "./dist/index.amd.js",
13
+ "types": "./dist/index.d.mts",
13
14
  "exports": {
14
15
  ".": {
15
16
  "types": {
@@ -77,7 +78,7 @@
77
78
  "dependencies": {
78
79
  "lodash": "^4.17.21",
79
80
  "wasm-opt": "^1.4.0",
80
- "@locuschain/errors": "1.0.12-beta.9"
81
+ "@locuschain/errors": "1.1.0"
81
82
  },
82
83
  "scripts": {
83
84
  "generate-code": "generate-code.sh",