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

@helios-lang/uplc

Package Overview
Dependencies
Maintainers
0
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@helios-lang/uplc - npm Package Compare versions

Comparing version 0.1.36 to 0.1.37

src/program/restore.js

2

package.json
{
"name": "@helios-lang/uplc",
"version": "0.1.36",
"version": "0.1.37",
"description": "Cardano Untyped Plutus Core utility library",

@@ -5,0 +5,0 @@ "main": "src/index.js",

export { UplcProgramV1 } from "./UplcProgramV1.js"
export { UplcProgramV2 } from "./UplcProgramV2.js"
export { restoreUplcProgram } from "./restore.js"

@@ -4,0 +5,0 @@ /**

@@ -25,5 +25,6 @@ import { decodeBytes, encodeBytes, isBytes } from "@helios-lang/cbor"

* @typedef {{
* uplcVersion: UplcVersion
* alt: Option<UplcProgram>
* plutusVersion: PlutusVersion
* plutusVersionTag: PlutusVersionTag
* uplcVersion: UplcVersion
* eval: (args: undefined | UplcValue[]) => CekResult

@@ -34,2 +35,3 @@ * hash: () => number[]

* toString: () => string
* withAlt: (alt: UplcProgram) => UplcProgram
* }} UplcProgram

@@ -36,0 +38,0 @@ */

@@ -40,3 +40,3 @@ import { None } from "@helios-lang/type-utils"

* @readonly
* @type {Option<UplcProgramV1>}
* @type {Option<UplcProgram>}
*/

@@ -52,3 +52,3 @@ alt

* @param {UplcTerm} expr
* @param {Option<UplcProgramV1>} alt
* @param {Option<UplcProgram>} alt
*/

@@ -174,3 +174,3 @@ constructor(expr, alt = None) {

/**
* @param {UplcProgramV1} alt
* @param {UplcProgram} alt
* @returns {UplcProgramV1}

@@ -177,0 +177,0 @@ */

@@ -20,3 +20,3 @@ import { None } from "@helios-lang/type-utils"

* @typedef {import("../values/index.js").UplcValue} UplcValue
* @typedef {import("./UplcProgram.js").UplcProgram} UplcProgramI
* @typedef {import("./UplcProgram.js").UplcProgram} UplcProgram
*/

@@ -29,3 +29,3 @@

/**
* @implements {UplcProgramI}
* @implements {UplcProgram}
*/

@@ -41,3 +41,3 @@ export class UplcProgramV2 {

* @readonly
* @type {Option<UplcProgramV2>}
* @type {Option<UplcProgram>}
*/

@@ -53,3 +53,3 @@ alt

* @param {UplcTerm} expr
* @param {Option<UplcProgramV2>} alt
* @param {Option<UplcProgram>} alt
*/

@@ -166,3 +166,3 @@ constructor(expr, alt = None) {

/**
* @param {UplcProgramV2} alt
* @param {UplcProgram} alt
* @returns {UplcProgramV2}

@@ -169,0 +169,0 @@ */

export { UplcProgramV1 } from "./UplcProgramV1.js";
export { UplcProgramV2 } from "./UplcProgramV2.js";
export { restoreUplcProgram } from "./restore.js";
export type PlutusVersion = import("./UplcProgram.js").PlutusVersion;
export type UplcProgram = import("./UplcProgram.js").UplcProgram;
//# sourceMappingURL=index.d.ts.map

@@ -15,5 +15,6 @@ /**

* @typedef {{
* uplcVersion: UplcVersion
* alt: Option<UplcProgram>
* plutusVersion: PlutusVersion
* plutusVersionTag: PlutusVersionTag
* uplcVersion: UplcVersion
* eval: (args: undefined | UplcValue[]) => CekResult

@@ -24,2 +25,3 @@ * hash: () => number[]

* toString: () => string
* withAlt: (alt: UplcProgram) => UplcProgram
* }} UplcProgram

@@ -74,5 +76,6 @@ */

export type UplcProgram = {
uplcVersion: UplcVersion;
alt: Option<UplcProgram>;
plutusVersion: PlutusVersion;
plutusVersionTag: PlutusVersionTag;
uplcVersion: UplcVersion;
eval: (args: undefined | UplcValue[]) => CekResult;

@@ -83,4 +86,5 @@ hash: () => number[];

toString: () => string;
withAlt: (alt: UplcProgram) => UplcProgram;
};
import { CostModel } from "../costmodel/index.js";
//# sourceMappingURL=UplcProgram.d.ts.map

@@ -22,5 +22,5 @@ /**

* @param {UplcTerm} expr
* @param {Option<UplcProgramV1>} alt
* @param {Option<UplcProgram>} alt
*/
constructor(expr: UplcTerm, alt?: Option<UplcProgramV1>);
constructor(expr: UplcTerm, alt?: Option<UplcProgram>);
/**

@@ -33,5 +33,5 @@ * @readonly

* @readonly
* @type {Option<UplcProgramV1>}
* @type {Option<UplcProgram>}
*/
readonly alt: Option<UplcProgramV1>;
readonly alt: Option<UplcProgram>;
/**

@@ -89,6 +89,6 @@ * Script version, determines the available builtins and the shape of the ScriptContext

/**
* @param {UplcProgramV1} alt
* @param {UplcProgram} alt
* @returns {UplcProgramV1}
*/
withAlt(alt: UplcProgramV1): UplcProgramV1;
withAlt(alt: UplcProgram): UplcProgramV1;
#private;

@@ -95,0 +95,0 @@ }

/**
* @implements {UplcProgramI}
* @implements {UplcProgram}
*/
export class UplcProgramV2 implements UplcProgramI {
export class UplcProgramV2 implements UplcProgram {
/**

@@ -22,5 +22,5 @@ * @param {number[]} bytes

* @param {UplcTerm} expr
* @param {Option<UplcProgramV2>} alt
* @param {Option<UplcProgram>} alt
*/
constructor(expr: UplcTerm, alt?: Option<UplcProgramV2>);
constructor(expr: UplcTerm, alt?: Option<UplcProgram>);
/**

@@ -33,5 +33,5 @@ * @readonly

* @readonly
* @type {Option<UplcProgramV2>}
* @type {Option<UplcProgram>}
*/
readonly alt: Option<UplcProgramV2>;
readonly alt: Option<UplcProgram>;
/**

@@ -118,2 +118,6 @@ * @type {typeof PLUTUS_VERSION}

"encodeUtf8-cpu-arguments-intercept": number;
/**
* @param {undefined | UplcValue[]} args - if undefined, eval the root term without any applications, if empy: apply a force to the root term
* @returns {CekResult}
*/
"encodeUtf8-cpu-arguments-slope": number;

@@ -139,5 +143,3 @@ "encodeUtf8-memory-arguments-intercept": number;

"headList-cpu-arguments": number;
"headList-memory-arguments": number; /**
* @returns {string}
*/
"headList-memory-arguments": number;
"iData-cpu-arguments": number;

@@ -260,6 +262,6 @@ "iData-memory-arguments": number;

/**
* @param {UplcProgramV2} alt
* @param {UplcProgram} alt
* @returns {UplcProgramV2}
*/
withAlt(alt: UplcProgramV2): UplcProgramV2;
withAlt(alt: UplcProgram): UplcProgramV2;
#private;

@@ -271,3 +273,3 @@ }

export type UplcValue = import("../values/index.js").UplcValue;
export type UplcProgramI = import("./UplcProgram.js").UplcProgram;
export type UplcProgram = import("./UplcProgram.js").UplcProgram;
//# sourceMappingURL=UplcProgramV2.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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