UNPKG

@harmoniclabs/plu-ts-onchain

Version:

An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript

11 lines (10 loc) 727 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ptraceData = exports.pshowData = void 0; var type_system_1 = require("../../type_system/index.js"); var builtins_1 = require("../builtins/index.js"); var phoist_1 = require("../phoist.js"); var plam_1 = require("../plam.js"); var bs_1 = require("./bs.js"); exports.pshowData = (0, phoist_1.phoist)((0, plam_1.plam)(type_system_1.data, type_system_1.bs)(function (d) { return bs_1.pbsToHex.$(builtins_1.pserialiseData.$(d)); })); exports.ptraceData = (0, phoist_1.phoist)((0, plam_1.plam)(type_system_1.data, type_system_1.data)(function (d) { return (0, builtins_1.ptrace)(type_system_1.data).$(exports.pshowData.$(d).utf8Decoded).$(d); }));