This is a variation of the Helios time-lock smart contract.
The Helios code is in validator.hl.
The validator.js file compiles Helios and generates the final artifacts.
The Helios library is pure JavaScript 🎉
Install dependencies with either npm install
or yarn
.
It has been tested with NodeJS version 19.4.0
but it should work with other recent versions as well.
To generate all the artifacts needed to interact with the smart contract, run the following:
$ npm run compile
The artifacts should be generated on the dist
folder.
$ tree dist
dist
├── datum.json
├── validator.addr
└── validator.json