@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.
- package/dist/chunks/{index-CJj3uzpS.js → index--uv-mkfw.js} +363 -365
- package/dist/chunks/{index-DH-gBPD3.cjs → index-DOXYSS9J.cjs} +362 -365
- package/dist/chunks/{index-dKo4dwic.js → index-DTkgh-Wa.js} +362 -365
- package/dist/index.amd.js +1 -2
- package/dist/index.cjs.cjs +1 -2
- package/dist/index.esm.js +1 -1
- package/dist/libs/ethers.js-5.5.4-24bytes-addr/ethers.esm.min.d.ts +1307 -0
- 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 +1 -2
- package/dist/utils/index.cjs.cjs +1 -2
- package/dist/utils/index.d.cts +2 -3
- package/dist/utils/index.d.mts +2 -3
- package/dist/utils/index.esm.js +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 +5 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', '../chunks/index-
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { l as convertDataToHex, n as convertHexToAddress, e as convertAddressToHex, p as convertHexToData,
|
|
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
|
|
package/dist/utils/index.amd.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
define(['exports', '../chunks/address-class-Dp7aNQb2', '../chunks/index-
|
|
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;
|
package/dist/utils/index.cjs.cjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunks/address-class-Cjy48Uqk.cjs');
|
|
4
|
-
var utils = require('../chunks/index-
|
|
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;
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -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;
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -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;
|
package/dist/utils/index.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../chunks/address-class-CHAZYhdZ.js';
|
|
2
|
-
export {
|
|
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';
|
package/dist/web3/index.amd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', '../chunks/index-
|
|
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 }) {
|
package/dist/web3/index.cjs.cjs
CHANGED
package/dist/web3/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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
|
-
"
|
|
12
|
-
"
|
|
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
|
|
81
|
+
"@locuschain/errors": "1.1.0"
|
|
81
82
|
},
|
|
82
83
|
"scripts": {
|
|
83
84
|
"generate-code": "generate-code.sh",
|