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

@harmoniclabs/blockfrost-pluts

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmoniclabs/blockfrost-pluts - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

25

dist/BlockfrostPluts/utils/evaluatePlutusCosts.js
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __values = (this && this.__values) || function(o) {

@@ -103,2 +92,3 @@ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;

var rdmrs = ((_b = tx.witnesses.redeemers) !== null && _b !== void 0 ? _b : []).slice();
var result = new Array(rdmrs.length);
var _loop_1 = function (tag, index, exunits) {

@@ -109,3 +99,8 @@ var idx = rdmrs.findIndex(function (rdmr) { return rdmr.tag === tag && rdmr.index === index; });

var rdmr = rdmrs[idx];
rdmrs[idx] = new cardano_ledger_ts_1.TxRedeemer(__assign(__assign({}, rdmr), { execUnits: new plutus_machine_1.ExBudget(exunits) }));
result[idx] = new cardano_ledger_ts_1.TxRedeemer({
tag: rdmr.tag,
index: rdmr.index,
data: rdmr.data.clone(),
execUnits: new plutus_machine_1.ExBudget(exunits)
});
};

@@ -125,3 +120,7 @@ try {

}
return rdmrs;
for (var i = 0; i < result.length; i++) {
if (result[i] === undefined)
result[i] = rdmrs[i].clone();
}
return result;
}

@@ -128,0 +127,0 @@ function getRealTxRedeemers(tx, response) {

{
"name": "@harmoniclabs/blockfrost-pluts",
"version": "0.1.8",
"version": "0.1.9",
"description": "@blockfrost/blockfrost-js extension based on plu-ts types",

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