0.0.2 • Published 4 years ago
@tzconnect/ligojs v0.0.2
Ligo.js
A JavaScript/TypeScript wrapper for Ligo
WARNING: This project is in active development and things might change or break at a short notice.
Prerequisite
- For Windows or Mac please install DOCKER before installing this.
- For Windows enable support for Linux containers
Install
npm i @tzconnect/ligojs
or
yarn add @tzconnect/ligojsAvailable Scripts
buildto build the package indistfolder.testto run the testslintto run the lintersize-limitto see the size of the packageanalyzeto show the deps and source size in browserpreparenpm prepare hook that executesbuildpostinstallnpm post install hook to setup necessary env for Ligo to work.
How postinstall works
Checks if the platform is one of 3: win32, darwin or linux.
- If
linuxthen installs the linux binary. - If
win32ordarwinthen pulls the latest ligo docker image.
Available Methods
- compile-contract =>
compileContract - compile-storage =>
compileStorage - compile-parameter =>
compileParameter - compile-expression =>
compileExpression - dry-run =>
dryRun - evaluate-expr
- evaluate-call
- measure-contract