solana/sdk
Tyera bca41edf20
Make active stake consistent in split (#33295)
* Add feature gate

* Add helper fn

* Require split destination to be rent-exempt if it is active

* Update cli to prefund split accounts

* cli: require rent param with sign-only

* Update tokens to prefund split accounts

* Update split tests with sysvar accounts

* Fix test_split_to_account_with_rent_exempt_reserve

* Fix test_staked_split_destination_minimum_balance

* Fix test_split_more_than_staked

* Fix test_split_minimum_stake_delegation and remove misleading StakeState::Initialized case

* Fix test_split_from_larger_sized_account

* Add test for pre-/post-activation behavior splitting some or all of stake account

* Assert active stake

* Fix runtime test

* Ignore stake-pool downstream

* Review comments

* Feature gate sysvar reads
2023-09-20 06:00:51 +00:00
..
benches Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
bpf Add alt_bn128 syscall tests (and fix related issues) (#31436) 2023-05-22 14:05:10 -07:00
cargo-build-bpf Fix cargo-build-bpf removing a wrong command line option (#30848) 2023-03-22 09:37:33 -07:00
cargo-build-sbf check source_path before delete it (#33255) 2023-09-14 18:44:12 +00:00
cargo-test-bpf Update references to platform-tools (#30764) 2023-03-22 07:41:40 -07:00
cargo-test-sbf Fix - Upcoming `arithmetic_side_effects` lints (#33000) 2023-08-29 20:58:53 +02:00
docker-solana repurposes tvu_forwards socket for TVU over QUIC (#32737) 2023-08-07 22:02:41 +00:00
gen-headers Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
macro stake: deprecate on chain warmup/cooldown rate and config (#32723) 2023-08-07 13:23:24 -07:00
program program: move array-bytes to dev-dependencies (#33277) 2023-09-19 09:07:35 -07:00
sbf sdk, programs/bpf_loader: add sol_remaining_compute_units syscall (#31640) 2023-09-13 08:57:08 -06:00
src Make active stake consistent in split (#33295) 2023-09-20 06:00:51 +00:00
tests
.gitignore
Cargo.toml sdk: put AccountSharedData::set_data() behind feature="dev-context-only-utils" (#33086) 2023-09-01 21:02:14 +07:00
README.md Update discord invite links (#30909) 2023-03-29 09:14:22 -07:00
build.rs
package.json

README.md

Solana

Solana SDK

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

More information about Solana is available in the Solana documentation.

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

Still have questions? Ask us on Stack Exchange