Go to file
2020-06-18 10:55:07 +02:00
.circleci Run browser test in CI 2020-06-08 10:22:47 +02:00
docs Rename packages @cosmwasm/* to @cosmjs/* 2020-06-04 19:53:58 +02:00
packages Increase tolerance for slow block creation in "gets height via last block" 2020-06-18 10:55:07 +02:00
scripts Rename packages @cosmwasm/* to @cosmjs/* 2020-06-04 19:53:58 +02:00
.editorconfig Set up format and lint configs 2020-01-22 22:24:22 +01:00
.eslintignore Add some code snippets 2020-02-06 17:46:47 +01:00
.eslintrc.js Bring back no-bitwise 2020-02-19 09:42:20 +01:00
.gitignore Update helpers to modern api, demo net 2020-03-20 12:25:23 +01:00
.prettierrc.json Set up format and lint configs 2020-01-22 22:24:22 +01:00
jasmine-spec-reporter.config.json Deduplicate copies of jasmine-spec-reporter.config.json 2020-02-06 15:53:56 +01:00
lerna.json v0.20.0 2020-06-10 15:08:24 +02:00
LICENSE Use an unmodified copy of Apache-2.0 2020-01-23 18:32:43 +01:00
NOTICE Add @cosmjs/encoding and @cosmjs/math 2020-06-09 17:46:03 +02:00
package.json Replace cosmwasm-js with cosmjs 2020-06-09 15:01:13 +01:00
README.md Update README.md 2020-06-10 17:26:25 +02:00
tsconfig.json Bump ts target to es2017 2020-02-18 17:49:30 +01:00
yarn.lock Remove BCP package 2020-06-10 15:43:54 +02:00

CosmJS

This is a JavaScript/TypeScript client-side binding to wasmd, a sample blockchain for the cosmwasm smart contracting platform.

Development

Requires Node 10+. For best results, use yarn. The basic commands are:

# 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.

./scripts/wasmd/start.sh
./scripts/wasmd/init.sh
WASMD_ENABLED=1 yarn test
./scripts/wasmd/stop.sh