locuschain-lib 1.3.0 → 1.3.1
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 +3 -3
- package/dist/lclib-cjs.js +3 -3
- package/dist/lclib-esm.js +3 -3
- package/dist/lclib.json +1 -1
- package/dist/tx-integrity-checker.d.mts +1 -1
- package/package.json +1 -1
package/dist/lclib-amd.js
CHANGED
|
@@ -17998,7 +17998,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
17998
17998
|
class TxIntegrityChecker {
|
|
17999
17999
|
static verifyIntegrity(tx, params, options) {
|
|
18000
18000
|
try {
|
|
18001
|
-
if (options.
|
|
18001
|
+
if (options.targetTxHash && options.targetTxHash !== LocusLib.VerifyTx(tx)) {
|
|
18002
18002
|
console.warn(`[TxnIntegrityChecker] LocusLib.VerifyTx failed`);
|
|
18003
18003
|
return { result: false, reason: 'tx verify fail' };
|
|
18004
18004
|
}
|
|
@@ -18088,10 +18088,10 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
18088
18088
|
checks.push(() => this.checkFields(params, tx, { account: 'Addr', pk: 'Key' }));
|
|
18089
18089
|
// Special checks that don't fit the pattern
|
|
18090
18090
|
if (!isEmpty(params.sender)) {
|
|
18091
|
-
checks.push(() => this.checkFields(params, tx, { sender: '
|
|
18091
|
+
checks.push(() => this.checkFields(params, tx, { sender: 'RefLink.Addr' }));
|
|
18092
18092
|
}
|
|
18093
18093
|
if (!isEmpty(params.index)) {
|
|
18094
|
-
checks.push(() => this.checkFields(params, tx, { index: '
|
|
18094
|
+
checks.push(() => this.checkFields(params, tx, { index: 'RefLink.Index' }));
|
|
18095
18095
|
}
|
|
18096
18096
|
break;
|
|
18097
18097
|
case 'TX_PROVIDE_SCRIPT':
|
package/dist/lclib-cjs.js
CHANGED
|
@@ -17998,7 +17998,7 @@ const isEmpty = (str) => {
|
|
|
17998
17998
|
class TxIntegrityChecker {
|
|
17999
17999
|
static verifyIntegrity(tx, params, options) {
|
|
18000
18000
|
try {
|
|
18001
|
-
if (options.
|
|
18001
|
+
if (options.targetTxHash && options.targetTxHash !== LocusLib.VerifyTx(tx)) {
|
|
18002
18002
|
console.warn(`[TxnIntegrityChecker] LocusLib.VerifyTx failed`);
|
|
18003
18003
|
return { result: false, reason: 'tx verify fail' };
|
|
18004
18004
|
}
|
|
@@ -18088,10 +18088,10 @@ class TxIntegrityChecker {
|
|
|
18088
18088
|
checks.push(() => this.checkFields(params, tx, { account: 'Addr', pk: 'Key' }));
|
|
18089
18089
|
// Special checks that don't fit the pattern
|
|
18090
18090
|
if (!isEmpty(params.sender)) {
|
|
18091
|
-
checks.push(() => this.checkFields(params, tx, { sender: '
|
|
18091
|
+
checks.push(() => this.checkFields(params, tx, { sender: 'RefLink.Addr' }));
|
|
18092
18092
|
}
|
|
18093
18093
|
if (!isEmpty(params.index)) {
|
|
18094
|
-
checks.push(() => this.checkFields(params, tx, { index: '
|
|
18094
|
+
checks.push(() => this.checkFields(params, tx, { index: 'RefLink.Index' }));
|
|
18095
18095
|
}
|
|
18096
18096
|
break;
|
|
18097
18097
|
case 'TX_PROVIDE_SCRIPT':
|
package/dist/lclib-esm.js
CHANGED
|
@@ -17996,7 +17996,7 @@ const isEmpty = (str) => {
|
|
|
17996
17996
|
class TxIntegrityChecker {
|
|
17997
17997
|
static verifyIntegrity(tx, params, options) {
|
|
17998
17998
|
try {
|
|
17999
|
-
if (options.
|
|
17999
|
+
if (options.targetTxHash && options.targetTxHash !== LocusLib.VerifyTx(tx)) {
|
|
18000
18000
|
console.warn(`[TxnIntegrityChecker] LocusLib.VerifyTx failed`);
|
|
18001
18001
|
return { result: false, reason: 'tx verify fail' };
|
|
18002
18002
|
}
|
|
@@ -18086,10 +18086,10 @@ class TxIntegrityChecker {
|
|
|
18086
18086
|
checks.push(() => this.checkFields(params, tx, { account: 'Addr', pk: 'Key' }));
|
|
18087
18087
|
// Special checks that don't fit the pattern
|
|
18088
18088
|
if (!isEmpty(params.sender)) {
|
|
18089
|
-
checks.push(() => this.checkFields(params, tx, { sender: '
|
|
18089
|
+
checks.push(() => this.checkFields(params, tx, { sender: 'RefLink.Addr' }));
|
|
18090
18090
|
}
|
|
18091
18091
|
if (!isEmpty(params.index)) {
|
|
18092
|
-
checks.push(() => this.checkFields(params, tx, { index: '
|
|
18092
|
+
checks.push(() => this.checkFields(params, tx, { index: 'RefLink.Index' }));
|
|
18093
18093
|
}
|
|
18094
18094
|
break;
|
|
18095
18095
|
case 'TX_PROVIDE_SCRIPT':
|