@solana-program/stake
v0.7.2
Published
JavaScript client for the Stake program
Readme
JavaScript client
A generated JavaScript library for the Stake program.
Getting started
The JS client tests use LiteSVM in-process, so no local validator is needed. To build and test your JavaScript client from the root of the repository, you may use the following command.
make test-js-clients-jsThis installs dependencies, builds the client, and runs the test suite.
Available client scripts.
Alternatively, you can go into the client directory and run the tests directly.
# Build the program `.so` that LiteSVM loads.
make build-sbf-program
# Go into the client directory and run the tests.
cd clients/js
pnpm install
pnpm build
pnpm testYou may also use the following make targets from the root of the repository to lint and format your JavaScript client:
make lint-js-clients-js
make format-check-js-clients-js