@harmoniclabs/plu-ts-offchain
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -7,2 +7,3 @@ "use strict"; | ||
var cardano_ledger_ts_1 = require("@harmoniclabs/cardano-ledger-ts"); | ||
var getSpendingPurposeData_1 = require("./getSpendingPurposeData.js"); | ||
function getTxInfos(transaction, genesisInfos) { | ||
@@ -12,3 +13,3 @@ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; | ||
function redeemerToDataPair(rdmr) { | ||
return new plutus_data_1.DataPair(rdmr.toSpendingPurposeData(tx), rdmr.data.clone()); | ||
return new plutus_data_1.DataPair((0, getSpendingPurposeData_1.getSpendingPurposeData)(rdmr, tx), rdmr.data.clone()); | ||
} | ||
@@ -59,3 +60,3 @@ var feeData = cardano_ledger_ts_1.Value.lovelaces(tx.fee).toData(); | ||
new plutus_data_1.DataList(tx.inputs.map(function (input) { return input.toData("v2"); })), | ||
// refInouts | ||
// refInputs | ||
new plutus_data_1.DataList((_l = (_k = tx.refInputs) === null || _k === void 0 ? void 0 : _k.map(function (refIn) { return refIn.toData("v2"); })) !== null && _l !== void 0 ? _l : []), | ||
@@ -62,0 +63,0 @@ // outputs |
@@ -93,2 +93,3 @@ "use strict"; | ||
var CanBeData_1 = require("../utils/CanBeData.js"); | ||
var getSpendingPurposeData_1 = require("../toOnChain/getSpendingPurposeData.js"); | ||
var scriptCache = {}; | ||
@@ -267,3 +268,3 @@ function getScriptLikeUplc(scriptLike) { | ||
var index = rdmr_idx + (tag === cardano_ledger_ts_1.TxRedeemerTag.Mint ? 1 : 0); | ||
var spendingPurpose = rdmr.toSpendingPurposeData(tx.body); | ||
var spendingPurpose = (0, getSpendingPurposeData_1.getSpendingPurposeData)(rdmr, tx.body); | ||
var onlyRedeemerArg = function (purposeScriptsToExec) { | ||
@@ -270,0 +271,0 @@ var _a; |
{ | ||
"name": "@harmoniclabs/plu-ts-offchain", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175960
56
3256