@harmoniclabs/plu-ts-offchain
Advanced tools
Comparing version 0.1.13-dev0 to 0.1.13-dev1
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
243729
4511