light-godwoken
v0.3.4
Published
An Godwoken SDK written in TypeScript.
Downloads
4
Readme
LightGodwoken
An Godwoken SDK written in TypeScript.
LightGodwoken provides convenient functions that allow us to make specific transactions on Godwoken layer 2, for example deposit from Nervos layer 1 to Godwoken layer 2, or withdrawal from layer 2 to layer 1.
Installation
# Install via NPM
$ npm install light-godwoken
# Install via Yarn
$ yarn add light-godwoken
# Install via PNPM
$ pnpm add light-godwokenLocal development
You can
The light-godwoken package works under the light-godwoken-workspaces monorepo. To get it working, we recommend you to setup the local development environment for the monorepo first.
Setup development environment
$ yarn install
$ yarn run prepareBuild for production
Work as a monorepo:
$ yarn workspace light-godwoken run buildWork in packages/light-godwoken directly:
$ yarn run buildTest & coverage
Work as a monorepo:
# test only
$ yarn workspace light-godwoken run test
# test and generate coverage report
$ yarn workspace light-godwoken run test:coverageWork in packages/light-godwoken directly:
# test only
$ yarn run test
# test and generate coverage report
$ yarn run test:coverage