Skip to content

solana-program/compute-budget

Repository files navigation

Compute Budget

A JavaScript and Rust client for the Compute Budget program.

Clients

Developing

This repository uses a Makefile as its command surface. Cross-cutting tasks run via make <target> from the repository root, while per-package work can be run with pnpm <task> inside clients/js or cargo <task> inside clients/rust. Running make targets locally requires toml-cli (cargo install toml-cli).

Generate the clients from the IDL (idl.json at the repository root):

make generate-clients

Format, lint and test the JS client:

make format-check-js-clients-js
make lint-js-clients-js
make test-js-clients-js

The JS client tests run in-process against LiteSVM, so no local validator is required.

Format, lint and test the Rust client:

make format-check-clients-rust
make clippy-clients-rust
make test-clients-rust

About

The Solana Compute Budget program and its clients

Resources

License

Stars

10 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors