New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mutants/cardano

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mutants/cardano - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

5

dist/utils/utxos.js

@@ -95,3 +95,3 @@ "use strict";

if ((adaUtxos === null || adaUtxos === void 0 ? void 0 : adaUtxos.bestCase) || // In case we already found a single utxo for this transaction
(ignoreUtxos === null || ignoreUtxos === void 0 ? void 0 : ignoreUtxos.some(function (ignoredUtxo) { return utxo.transaction.hash === ignoredUtxo; })) ||
(ignoreUtxos === null || ignoreUtxos === void 0 ? void 0 : ignoreUtxos.some(function (ignoredUtxo) { return "" + utxo.transaction.hash + utxo.transaction.index === ignoredUtxo; })) ||
getAvailableCoinFromUTXO(utxo) <= COLLATERAL_VALUE // TODO: confirm if this is really an issue - Some UTXOs with 5000000 total coin value keep throwing 'BadInputs'

@@ -232,3 +232,4 @@ )

(totalCoin / tokens.length) % 1 === 0 &&
totalCoin / tokens.length > 2000000) {
totalCoin / tokens.length > 50000000 // at least 50 ADA per utxo
) {
newOutputs = tokens.map(function (token) {

@@ -235,0 +236,0 @@ var _a, _b;

2

package.json
{
"name": "@mutants/cardano",
"version": "1.4.0",
"version": "1.4.1",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -93,3 +93,3 @@ import { TransactionOutput } from "../builders/transaction.builder";

ignoreUtxos?.some(
(ignoredUtxo) => utxo.transaction.hash === ignoredUtxo
(ignoredUtxo) => `${utxo.transaction.hash}${utxo.transaction.index}` === ignoredUtxo
) ||

@@ -293,3 +293,3 @@ getAvailableCoinFromUTXO(utxo) <= COLLATERAL_VALUE // TODO: confirm if this is really an issue - Some UTXOs with 5000000 total coin value keep throwing 'BadInputs'

(totalCoin / tokens.length) % 1 === 0 &&
totalCoin / tokens.length > 2000000
totalCoin / tokens.length > 50000000 // at least 50 ADA per utxo
) {

@@ -296,0 +296,0 @@ newOutputs = tokens.map((token) => {

Sorry, the diff of this file is not supported yet

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