solana-with-rpc-optimizations/sdk/program
Tyera 2470b45468
Check EpochRewards::active within the Stake Program (#617)
* Add new StakeError variant

* Add closure to return error if EpochRewards::active

* Use error_during_epoch_rewards for Instructions that mutate stake accounts

* Use try instead of manually matching Ok/Err

* Consolidate error_during_epoch_rewards check

* Add new test helper

* Add test demonstrating which ix return StakeError::EpochRewardsActive

* Remove single-use fn
2024-04-09 17:29:50 -06:00
..
src Check EpochRewards::active within the Stake Program (#617) 2024-04-09 17:29:50 -06:00
tests
.gitignore
Cargo.toml Bump platform tools version (#35330) 2024-02-27 17:58:26 -03:00
README.md [docs] updated readme and fix links (#34565) 2024-01-03 09:06:06 -05:00
build.rs
package.json

README.md

Solana

Solana Program

Use the Solana Program Crate to write on-chain programs in Rust. If writing client-side applications, use the Solana SDK Crate instead.

More information about Solana is available in the Solana documentation.

Solana Program Library provides examples of how to use this crate.

Still have questions? Ask us on Stack Exchange