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.13-dev0 to 0.1.13-dev1

4

dist/txBuild/ScriptWithRedeemer.js

@@ -5,5 +5,5 @@ "use strict";

var cardano_ledger_ts_1 = require("@harmoniclabs/cardano-ledger-ts");
var plu_ts_offchain_1 = require("@harmoniclabs/plu-ts-offchain");
var CanBeData_1 = require("../utils/CanBeData.js");
function normalizeIScriptWithRedeemer(script) {
var redeemer = (0, plu_ts_offchain_1.forceData)(script.redeemer);
var redeemer = (0, CanBeData_1.forceData)(script.redeemer);
return (0, cardano_ledger_ts_1.isIUTxO)(script.ref) ? {

@@ -10,0 +10,0 @@ ref: new cardano_ledger_ts_1.UTxO(script.ref),

@@ -9,3 +9,2 @@ "use strict";

var plutus_machine_1 = require("@harmoniclabs/plutus-machine");
var uplc_1 = require("@harmoniclabs/uplc");
function cloneCanBeData(stuff) {

@@ -19,3 +18,3 @@ if (typeof stuff === "string")

var result = plutus_machine_1.Machine.evalSimple(stuff.toUPLC());
if (!(result instanceof uplc_1.UPLCConst)) {
if (!(result instanceof plutus_machine_1.CEKConst)) {
throw new Error("`CanBeData` object that implements `ToUPLC` did not evaluated to a constant");

@@ -54,3 +53,3 @@ }

var uplcData = plutus_machine_1.Machine.evalSimple(data.toUPLC());
if (!(uplcData instanceof uplc_1.UPLCConst)) {
if (!(uplcData instanceof plutus_machine_1.CEKConst)) {
throw new Error("term passed as 'datum' field evaluated to an error");

@@ -57,0 +56,0 @@ }

{
"name": "@harmoniclabs/plu-ts-offchain",
"version": "0.1.13-dev0",
"version": "0.1.13-dev1",
"description": "An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript",

@@ -67,5 +67,5 @@ "main": "./dist/index.js",

"@harmoniclabs/cardano-costmodels-ts": "^1.1.0",
"@harmoniclabs/plutus-machine": "^1.1.2",
"@harmoniclabs/plutus-machine": "^2.0.0-dev1",
"@harmoniclabs/uplc": "^1.2.3",
"@harmoniclabs/cardano-ledger-ts": "^0.2.0-dev5"
"@harmoniclabs/cardano-ledger-ts": "^0.2.0-dev6"
},

@@ -72,0 +72,0 @@ "devDependencies": {

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