Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@harmoniclabs/plu-ts-offchain

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmoniclabs/plu-ts-offchain - npm Package Compare versions

Comparing version 0.1.10 to 0.1.11

dist/toOnChain/getSpendingPurposeData.d.ts

5

dist/toOnChain/getTxInfos.js

@@ -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

3

dist/TxBuilder/TxBuilder.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc