The panacea-js is the official Panacea Javascript SDK written in Typescript, powered by CosmJS.
The panacea-js extends the CosmJS in order to provide Panacea-specific features (AOL, DID, PNFT).
So, it exposes CosmJS basic functions as they are, such as connectWithSigner and sendTokens.
yarn add @medibloc/panacea-js \
@cosmjs/[email protected] \
@cosmjs/[email protected] \
[email protected]A list of examples can be found at the example.md.
Install dependencies and build the project.
yarn install
yarn buildTo run simple unit tests,
yarn testTo run integration tests with panacea-core, start a panacea-core daemon first.
docker run --rm -d \
-e CHAIN_ID="chain-1" \
-e MNEMONIC="..." \
-p 26657:26657 \
-v $(pwd)/scripts:/root/scripts \
--name core \
ghcr.io/medibloc/panacea-core:v2.2.0 \
bash /root/scripts/panacea-core/init.shThen, the integration tests can be run with the following environment variables.
PANACEAD_ENABLED=true \
TENDERMINT_URL="http://localhost:26657" \
CHAIN_ID="chain-1" \
MNEMONIC="..." \
yarn testFor more details, please see the CI script.