A JavaScript/TypeScript wrapper for Ligo
WARNING: This project is in active development and things might change or break at a short notice.
- For Windows or Mac please install DOCKER before installing this.
- For Windows enable support for Linux containers
npm i @tzconnect/ligojs
or
yarn add @tzconnect/ligojs
build
to build the package indist
folder.test
to run the testslint
to run the lintersize-limit
to see the size of the packageanalyze
to show the deps and source size in browserprepare
npm prepare hook that executesbuild
postinstall
npm post install hook to setup necessary env for Ligo to work.
Checks if the platform is one of 3: win32
, darwin
or linux
.
- If
linux
then installs the linux binary. - If
win32
ordarwin
then pulls the latest ligo docker image.
- compile-contract =>
compileContract
- compile-storage =>
compileStorage
- compile-parameter =>
compileParameter
- compile-expression =>
compileExpression
- dry-run =>
dryRun
- evaluate-expr
- evaluate-call
- measure-contract