Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hyperionbt/helios

Package Overview
Dependencies
Maintainers
2
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperionbt/helios - npm Package Compare versions

Comparing version 0.13.32 to 0.13.33

2

package.json
{
"name": "@hyperionbt/helios",
"type": "module",
"version": "0.13.32",
"version": "0.13.33",
"description": "Helios is a Domain Specific Language that compiles to Plutus-Core (i.e. Cardano on-chain validator scripts). Helios is a non-Haskell alternative to Plutus. With this library you can compile Helios scripts and build Cardano transactions, all you need to build 100% client-side dApps for Cardano.",

@@ -6,0 +6,0 @@ "main": "helios.js",

@@ -17,3 +17,3 @@ //@ts-check

/**
* @typedef {import("./utils.js").Transferable} Transferable
* @typedef {import("./utils.js").TransferUplcAst} TransferUplcAst
*/

@@ -51,3 +51,3 @@

*
* @param {Transferable} other
* @param {TransferUplcAst} other
*/

@@ -54,0 +54,0 @@ transfer(other) {

@@ -17,3 +17,3 @@ //@ts-check

/**
* @typedef {import("./utils.js").Transferable} Transferable
* @typedef {import("./utils.js").TransferUplcAst} TransferUplcAst
*/

@@ -103,3 +103,3 @@

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -317,3 +317,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -800,3 +800,3 @@ */

* Should never be part of the uplc ast
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -938,3 +938,3 @@ */

* Should never be part of ast
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -1028,3 +1028,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -1261,3 +1261,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -1388,3 +1388,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -1474,3 +1474,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -1559,3 +1559,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -1666,3 +1666,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -1781,3 +1781,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -1885,3 +1885,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -1985,3 +1985,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -2036,3 +2036,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
*/

@@ -2090,3 +2090,3 @@ transfer(other) {

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -2147,3 +2147,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -2208,3 +2208,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -2271,3 +2271,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -2331,3 +2331,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -2386,3 +2386,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -2439,3 +2439,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -2442,0 +2442,0 @@ */

@@ -11,3 +11,3 @@ //@ts-check

/**
* @typedef {import("./utils.js").Transferable} Transferable
* @typedef {import("./utils.js").TransferUplcAst} TransferUplcAst
*/

@@ -39,3 +39,3 @@

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -170,3 +170,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -281,3 +281,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -417,3 +417,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
*/

@@ -512,3 +512,3 @@ transfer(other) {

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -617,3 +617,3 @@ */

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -620,0 +620,0 @@ */

@@ -17,3 +17,3 @@ //@ts-check

/**
* @typedef {import("./utils.js").Transferable} Transferable
* @typedef {import("./utils.js").TransferUplcAst} TransferUplcAst
*/

@@ -135,5 +135,6 @@

* The constructor returns 'any' because it is an instance of TransferableUplcProgram, and the instance methods don't need to be defined here
* @template TInstance
* @typedef {{
* new: (expr: any, properties: ProgramProperties, version: any[]) => any,
* transferFunctions: Transferable
* transferUplcProgram: (expr: any, properties: ProgramProperties, version: any[]) => TInstance,
* transferUplcAst: TransferUplcAst
* }} TransferableUplcProgram

@@ -162,19 +163,2 @@ */

/**
* Intended for transfer only
* @param {any} expr
* @param {ProgramProperties} properties
* @param {any[]} version
* @returns {any}
*/
static new(expr, properties, version) {
if (!(expr instanceof UplcTerm)) {
throw new Error("program expr not transferred correctly");
} else if (!version.every(v => v instanceof UplcInt)) {
throw new Error("program version ints not transferred correctly");
} else {
return new UplcProgram(expr, properties, version);
}
}
/**
* @type {UplcTerm}

@@ -209,12 +193,12 @@ */

/**
* @template {TransferableUplcProgram} T
* @param {T} other
* @returns {any}
* @template TInstance
* @param {TransferableUplcProgram<TInstance>} other
* @returns {TInstance}
*/
transfer(other) {
return other.new(
this.#expr.transfer(other.transferFunctions),
return other.transferUplcProgram(
this.#expr.transfer(other.transferUplcAst),
this.#properties,
this.#version.map(i => i.transfer(other.transferFunctions))
)
this.#version.map(i => i.transfer(other.transferUplcAst))
);
}

@@ -578,6 +562,24 @@

/**
* @type {Transferable}
* Intended for transfer only
* @param {any} expr
* @param {ProgramProperties} properties
* @param {any[]} version
* @returns {UplcProgram}
*/
static get transferFunctions() {
static transferUplcProgram(expr, properties, version) {
if (!(expr instanceof UplcTerm)) {
throw new Error("program expr not transferred correctly");
} else if (!version.every(v => v instanceof UplcInt)) {
throw new Error("program version ints not transferred correctly");
} else {
return new UplcProgram(expr, properties, version);
}
}
/**
* @type {TransferUplcAst}
*/
static get transferUplcAst() {
return {

@@ -584,0 +586,0 @@ transferByteArrayData: (bytes) => new ByteArrayData(bytes),

@@ -33,3 +33,3 @@ //@ts-check

* transferUplcVariable: (site: any, index: any) => any
* }} Transferable
* }} TransferUplcAst
*/

@@ -681,3 +681,3 @@

/**
* @param {Transferable} other
* @param {TransferUplcAst} other
* @returns {any}

@@ -684,0 +684,0 @@ */

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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