@medibloc/panacea-js v2.2.1
Panacea Javascript SDK
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.
Usage
Installation
yarn add @medibloc/panacea-js \
@cosmjs/proto-signing@0.32.3 \
@cosmjs/stargate@0.32.3 \
cosmjs-types@0.9.0Examples
A list of examples can be found at the example.md.
Contribution
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.
License
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago