@tzconnect/ligojs
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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.

CircleCI codecov npm (scoped)

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/ligojs

Available Scripts

  • build to build the package in dist folder.
  • test to run the tests
  • lint to run the linter
  • size-limit to see the size of the package
  • analyze to show the deps and source size in browser
  • prepare npm prepare hook that executes build
  • postinstall npm 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 linux then installs the linux binary.
  • If win32 or darwin then pulls the latest ligo docker image.

Available Methods

  • [x] compile-contract => compileContract
  • [x] compile-storage => compileStorage
  • [x] compile-parameter => compileParameter
  • [x] compile-expression => compileExpression
  • [x] dry-run => dryRun
  • [ ] evaluate-expr
  • [ ] evaluate-call
  • [ ] measure-contract

Readme

Keywords

none

Package Sidebar

Install

npm i @tzconnect/ligojs

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

264 kB

Total Files

37

Last publish

Collaborators

  • rklompuu
  • justinc