cosmjs/README.md

30 lines
770 B
Markdown
Raw Normal View History

2020-01-22 09:41:48 +01:00
# @iov/cosmos
[![npm version](https://img.shields.io/npm/v/cosm-js.svg)](https://www.npmjs.com/package/cosm-js)
2020-01-22 09:41:48 +01:00
This is a Typescript client-side binding to [wasmd](https://github.com/cosmwasm/wasmd), a sample blockchain for the [cosmwasm](https://github.com/confio/cosmwasm) smart contracting platform.
2020-01-22 09:41:48 +01:00
## Development
Requires Node 10+. For best results, use yarn. The basic commands are:
```sh
# compile the code
yarn build
# run unit tests
yarn test
# format and lint the code
yarn format && yarn lint
```
### Integration tests
To run the entire test suite, you need to run a local blockchain to test against. This should work on any Linux/OSX system with docker installed.
```sh
./scripts/cosm/start.sh
COSMOS_ENABLED=1 yarn test
./scripts/cosm/stop.sh
```