Socket
Socket
Sign inDemoInstall

@hyperionbt/helios-cli

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperionbt/helios-cli - npm Package Compare versions

Comparing version 0.16.6-2 to 0.16.6-3

2

dist/bundle.js

@@ -46,3 +46,3 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";

const w = new Writer();
bundle.writeDefs(w, isIncluded, !(stageConfig.isMainnet ?? false), config.extraDatumTypes ?? {});
bundle.writeDefs(w, isIncluded, !(stageConfig.isMainnet ?? false), config.extraDatumTypes ?? {}, stageConfig.define ?? {});
writeFileSync(`dist/${key}/index.js`, w.toString());

@@ -49,0 +49,0 @@ }

@@ -174,3 +174,3 @@ import process from "node:process";

}
compileExtraDatumCheck(props) {
compileExtraDatumCheck(props, define) {
const modules = this.#modules.items.slice();

@@ -188,5 +188,6 @@ // TODO: allow resolution via module

});
program.parameters = define;
return program.compile(false);
}
writeValidatorDefs(w, isIncluded, extraDatumTypes) {
writeValidatorDefs(w, isIncluded, extraDatumTypes, define) {
w.write(`\nconst validators = {`);

@@ -231,3 +232,3 @@ w.indent();

for (let datumType of (extraDatumTypes[v.name] ?? [])) {
datumChecks.push(this.compileExtraDatumCheck(datumType));
datumChecks.push(this.compileExtraDatumCheck(datumType, define));
}

@@ -326,3 +327,3 @@ w.write(`

}
writeContractDefs(w, isIncluded) {
writeContractDefs(w, isIncluded, define) {
w.write(`\nexport default class Contract {`);

@@ -659,3 +660,3 @@ w.indent();

if (isIncluded(e.name)) {
e.writeDef(w, codeMapFileIndices);
e.writeDef(w, codeMapFileIndices, define);
}

@@ -666,9 +667,9 @@ });

}
writeDefs(w, isIncluded, isTestnet, extraDatumTypes) {
writeDefs(w, isIncluded, isTestnet, extraDatumTypes, define) {
this.writePreamble(w, isTestnet);
this.writeValidatorDefs(w, isIncluded, extraDatumTypes);
this.writeValidatorDefs(w, isIncluded, extraDatumTypes, define);
this.writeUnsimplifiedValidatorDefs(w, isIncluded);
this.writeCodeMapSource(w, isIncluded);
this.writeUtils(w);
this.writeContractDefs(w, isIncluded);
this.writeContractDefs(w, isIncluded, define);
}

@@ -675,0 +676,0 @@ writeLock() {

@@ -43,3 +43,3 @@ import { IR, IRProgram, Program, ToIRContext, bytesToHex } from "helios";

compile() {
const program = Program.newInternal(this.src, this.moduleSrcs, this.scriptTypes);
const program = this.program;
const extra = new Map();

@@ -57,3 +57,3 @@ for (let scriptName in this.scriptTypes) {

}
writeDef(w, codeMapFileIndices) {
writeDef(w, codeMapFileIndices, define) {
w.write(`\nasync ${this.name}(${this.argNames.slice(0, this.nArgs - 1).join(", ")}) {`);

@@ -60,0 +60,0 @@ w.indent();

{
"name": "@hyperionbt/helios-cli",
"version": "0.16.6-2",
"version": "0.16.6-3",
"description": "CLI tool for compiling Cardano smart contracts written in Helios, and building Cardano transactions.",

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc