JavaScript client for the Stake program
npm install @solana-program/stakeA generated JavaScript library for the Stake program.
To build and test your JavaScript client from the root of the repository, you may use the following command.
``sh`
make test-js-clients-js
This will start a new local validator, if one is not already running, and run the tests for your JavaScript client.
Alternatively, you can go into the client directory and run the tests directly.
`shBuild your programs and start the validator.
make build-sbf-program
./scripts/restart-test-validator.sh
You may also use the following
make targets from the root of the repository to lint and format your JavaScript client:`sh
make lint-js-clients-js
make format-check-js-clients-js
``