2020-06-10 17:26:25 +02:00
# CosmJS
2020-01-22 09:41:48 +01:00
2020-02-06 10:03:34 +01:00
This is a JavaScript/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
2020-01-22 22:24:09 +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
2020-02-17 15:31:07 +01:00
./scripts/wasmd/start.sh
./scripts/wasmd/init.sh
2020-02-17 15:35:29 +01:00
WASMD_ENABLED=1 yarn test
2020-02-17 15:31:07 +01:00
./scripts/wasmd/stop.sh
2020-01-22 22:24:09 +01:00
```