@harmoniclabs/buildooor 0.1.29 → 0.1.30
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.
|
@@ -384,7 +384,7 @@ var TxBuilder = /** @class */ (function () {
|
|
|
384
384
|
_isScriptValid = onEvaluationResult(i, totExBudget, rdmr, result, budgetSpent, logs, isV2OrLess ? [
|
|
385
385
|
rdmrData,
|
|
386
386
|
ctxData
|
|
387
|
-
] : [ctxData], rdmrs, script.hash.toString(), onScriptResult, onScriptInvalid);
|
|
387
|
+
] : [ctxData], rdmrs, script.hash.toString(), tx, onScriptResult, onScriptInvalid);
|
|
388
388
|
};
|
|
389
389
|
if (tag === cardano_ledger_ts_1.TxRedeemerTag.Spend) {
|
|
390
390
|
var entry = spendScriptsToExec.find(function (_a) {
|
|
@@ -408,7 +408,7 @@ var TxBuilder = /** @class */ (function () {
|
|
|
408
408
|
datum,
|
|
409
409
|
rdmrData,
|
|
410
410
|
ctxData
|
|
411
|
-
] : [ctxData], rdmrs, script.hash.toString(), onScriptResult, onScriptInvalid);
|
|
411
|
+
] : [ctxData], rdmrs, script.hash.toString(), tx, onScriptResult, onScriptInvalid);
|
|
412
412
|
}
|
|
413
413
|
else if (tag === cardano_ledger_ts_1.TxRedeemerTag.Mint)
|
|
414
414
|
onlyRedeemerArg(mintScriptsToExec);
|
|
@@ -1243,17 +1243,17 @@ function getCtx(scriptType, spendingPurpose, scriptInfo, redeemerData, txInfosV1
|
|
|
1243
1243
|
else
|
|
1244
1244
|
throw new Error("unexpected native script execution");
|
|
1245
1245
|
}
|
|
1246
|
-
function onEvaluationResult(i, totExBudget, rdmr, result, budgetSpent, logs, callArgs, rdmrs, scritHashStr, onScriptResult, onScriptInvalid) {
|
|
1246
|
+
function onEvaluationResult(i, totExBudget, rdmr, result, budgetSpent, logs, callArgs, rdmrs, scritHashStr, tx, onScriptResult, onScriptInvalid) {
|
|
1247
1247
|
var _isScriptValid = true;
|
|
1248
1248
|
if (typeof onScriptResult === "function")
|
|
1249
|
-
onScriptResult(rdmr.clone(), result, budgetSpent.clone(), logs.slice(), callArgs.map(function (d) { return d.clone(); }), scritHashStr);
|
|
1249
|
+
onScriptResult(rdmr.clone(), result, budgetSpent.clone(), logs.slice(), callArgs.map(function (d) { return d.clone(); }), scritHashStr, tx);
|
|
1250
1250
|
if (result instanceof uplc_1.ErrorUPLC ||
|
|
1251
1251
|
(function (resultKeys) {
|
|
1252
1252
|
return resultKeys.includes("msg") &&
|
|
1253
1253
|
resultKeys.includes("addInfos");
|
|
1254
1254
|
})(Object.keys(result))) {
|
|
1255
1255
|
if (typeof onScriptInvalid === "function") {
|
|
1256
|
-
onScriptInvalid(rdmr.clone(), logs.slice(), callArgs.map(function (d) { return d.clone(); }));
|
|
1256
|
+
onScriptInvalid(rdmr.clone(), logs.slice(), callArgs.map(function (d) { return d.clone(); }), tx);
|
|
1257
1257
|
// _isScriptValid = false;
|
|
1258
1258
|
}
|
|
1259
1259
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harmoniclabs/buildooor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"description": "Cardano transaction builder in typescript",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -45,25 +45,25 @@
|
|
|
45
45
|
"homepage": "https://github.com/HarmonicLabs/plu-ts#readme",
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@harmoniclabs/bigint-utils": "^1.0.0",
|
|
48
|
-
"@harmoniclabs/crypto": "^0.3.0",
|
|
49
|
-
"@harmoniclabs/obj-utils": "^1.0.0",
|
|
50
|
-
"@harmoniclabs/uint8array-utils": "^1.0.4",
|
|
51
48
|
"@harmoniclabs/bip32_ed25519": "^0.1.3",
|
|
52
49
|
"@harmoniclabs/bytestring": "^1.0.0",
|
|
53
50
|
"@harmoniclabs/cardano-costmodels-ts": "^1.3.0",
|
|
54
|
-
"@harmoniclabs/cardano-ledger-ts": "^0.4.
|
|
51
|
+
"@harmoniclabs/cardano-ledger-ts": "^0.4.8",
|
|
55
52
|
"@harmoniclabs/cbor": "^1.6.6",
|
|
53
|
+
"@harmoniclabs/crypto": "^0.3.0",
|
|
54
|
+
"@harmoniclabs/obj-utils": "^1.0.0",
|
|
56
55
|
"@harmoniclabs/pair": "^1.0.0",
|
|
57
56
|
"@harmoniclabs/plutus-data": "^1.2.6",
|
|
58
|
-
"@harmoniclabs/plutus-machine": "^2.1.
|
|
57
|
+
"@harmoniclabs/plutus-machine": "^2.1.3",
|
|
58
|
+
"@harmoniclabs/uint8array-utils": "^1.0.4",
|
|
59
59
|
"@harmoniclabs/uplc": "^1.4.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@babel/preset-env": "^7.18.6",
|
|
63
63
|
"@babel/preset-typescript": "^7.18.6",
|
|
64
|
-
"@types/jest": "^
|
|
64
|
+
"@types/jest": "^30.0.0",
|
|
65
65
|
"@types/node": "^18.14.6",
|
|
66
|
-
"jest": "^
|
|
66
|
+
"jest": "^30.2.0",
|
|
67
67
|
"jest-environment-jsdom": "^29.4.3",
|
|
68
68
|
"tsc-alias": "^1.7.1",
|
|
69
69
|
"typescript": "^4.6.3"
|