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.3 to 0.1.4

19

dist/TxBuilder/TxBuilder.js

@@ -361,4 +361,19 @@ "use strict";

var scriptsToExec = [];
/**
* needed in `getScriptDataHash` to understand whoich cost model to transform in language view
*/
var _hasV1Scripts = false;
/**
* needed in `getScriptDataHash` to understand whoich cost model to transform in language view
*/
var _hasV2Scripts = false;
function pushScriptToExec(idx, tag, script, datum) {
if (script.type !== cardano_ledger_ts_1.ScriptType.NativeScript) {
// keep track of exsisting csript versions
if (!_hasV1Scripts && script.type === "PlutusScriptV1") {
_hasV1Scripts = true;
}
if (!_hasV2Scripts && script.type === "PlutusScriptV2") {
_hasV2Scripts = true;
}
scriptsToExec.push({

@@ -576,4 +591,4 @@ index: idx,

var languageViews = (0, cardano_costmodels_ts_1.costModelsToLanguageViewCbor)(this.protocolParamters.costModels, {
mustHaveV1: plutusV1ScriptsWitnesses.length > 0,
mustHaveV2: plutusV2ScriptsWitnesses.length > 0
mustHaveV1: _hasV1Scripts,
mustHaveV2: _hasV2Scripts
}).toBuffer();

@@ -580,0 +595,0 @@ invalidBefore = invalidBefore === undef ? undef : (0, ints_1.forceBigUInt)(invalidBefore);

2

package.json
{
"name": "@harmoniclabs/plu-ts-offchain",
"version": "0.1.3",
"version": "0.1.4",
"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