bump readme
This commit is contained in:
parent
9851b6ceda
commit
b37cbd062b
39
README.md
39
README.md
|
@ -1,29 +1,34 @@
|
||||||
# Tx elm
|
# tx-elm
|
||||||
|
|
||||||
> Subbit.xyz tx builder using elm-cardano
|
Exploration of elm and elm-cardano with view of tx building for Subbit.xyz and
|
||||||
|
others.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
This repo is using nix flakes.
|
### Dev env
|
||||||
|
|
||||||
The "right" way to package elm with nix is not known to the author.
|
This repo is using nix flakes and has a devshell. Otherwise dependencies are
|
||||||
|
`elm`, `nodejs` and `just`.
|
||||||
|
|
||||||
- Maybe [elm2nix](https://github.com/cachix/elm2nix)
|
The "right" way to package elm with nix is not known to the author. Maybe
|
||||||
|
[elm2nix](https://github.com/cachix/elm2nix). But we can revisit this later.
|
||||||
|
|
||||||
## CLi
|
### Install
|
||||||
|
|
||||||
The way elm works seems to be rather sneaky. It adds `Elm` to the global js
|
Using `just`, `just setup`
|
||||||
scope. In typical use this is then picked up by some script embedded in the page
|
|
||||||
:
|
|
||||||
|
|
||||||
```js
|
### Build & Run
|
||||||
var app = Elm.Main.init({ node: document.getElementById("elm"), flags : ... });
|
|
||||||
|
```
|
||||||
|
just dev <args>
|
||||||
```
|
```
|
||||||
|
|
||||||
Instead we want to call it with node. Appending the output file with
|
## Todo
|
||||||
|
|
||||||
```js
|
- [ ] L1 provider interface
|
||||||
this.Elm.Cli.init({ flags: process.argv });
|
- [ ] Pretty print json to stdout
|
||||||
```
|
- [ ] Read env vars
|
||||||
|
- [ ] Read and write files
|
||||||
Does the job. But there must be a better way ...
|
- [ ] Use model to iterate on state
|
||||||
|
- [ ] Use wallet
|
||||||
|
- [ ] Tx builder interface
|
||||||
|
|
Loading…
Reference in New Issue