Go to file
waalge 9851b6ceda init cli 2025-03-01 16:23:30 +00:00
src init cli 2025-03-01 16:23:30 +00:00
static init cli 2025-03-01 16:23:30 +00:00
.envrc init cli 2025-03-01 16:23:30 +00:00
.gitignore init cli 2025-03-01 16:23:30 +00:00
.pre-commit-config.yaml init cli 2025-03-01 16:23:30 +00:00
README.md init cli 2025-03-01 16:23:30 +00:00
elm-cardano.json init cli 2025-03-01 16:23:30 +00:00
elm-git.json init cli 2025-03-01 16:23:30 +00:00
elm.json init cli 2025-03-01 16:23:30 +00:00
flake.lock init cli 2025-03-01 16:23:30 +00:00
flake.nix init cli 2025-03-01 16:23:30 +00:00
justfile init cli 2025-03-01 16:23:30 +00:00
package.json init cli 2025-03-01 16:23:30 +00:00
pnpm-lock.yaml init cli 2025-03-01 16:23:30 +00:00

README.md

Tx elm

Subbit.xyz tx builder using elm-cardano

Setup

This repo is using nix flakes.

The "right" way to package elm with nix is not known to the author.

CLi

The way elm works seems to be rather sneaky. It adds Elm to the global js scope. In typical use this is then picked up by some script embedded in the page :

  var app = Elm.Main.init({ node: document.getElementById("elm"), flags : ... });

Instead we want to call it with node. Appending the output file with

this.Elm.Cli.init({ flags: process.argv });

Does the job. But there must be a better way ...