solana/sdk
Joe C 25460f76e7
Bank: Add function to replace empty account with upgradeable program on feature activation (#32783)
* replace program account

* modify for all cases

* remove non-data swap

* address tests & conditional feedback

* get the rent involved

* mix in owner & executable

* feature-related cases

* stripped back to feature-specific case only

* added feature

* address initial feedback

* added more lamport checks

* condense tests

* using test_case

* add fail cases to tests

* more cleanup

* add verifiably built program

* update program account state

* cleaned up serializing logic

* use full word capitalization

* rename old & new to dst & src

* swap src and dst in parameters

* add warnings and errors

* rename feature to programify

* test suite description clarity

* remove strings from datapoints

* spell out source and destination

* more verbose comments in account replace functions

* move lamport calculation

* swap lamport check for state check

* move replace functions to helper module

* make replace_account methods fallible

* refactor error handling

* add test for source program state
2023-10-04 19:54:59 +02: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 chore(bpf): remove unused deps (#33435) 2023-09-28 11:16:16 +00:00
cargo-build-sbf Update version to v1.18.0 (#33487) 2023-10-03 10:20:24 -05:00
cargo-test-bpf chore(bpf): remove unused deps (#33435) 2023-09-28 11:16:16 +00: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 Manually add lookup table addresses instead of sanitizing (#33273) 2023-10-04 08:04:43 -07:00
sbf Feat(syscall): add altbn128 g1 & g2 compression (#32870) 2023-09-25 05:43:34 -07:00
src Bank: Add function to replace empty account with upgradeable program on feature activation (#32783) 2023-10-04 19:54:59 +02:00
tests fix: renamed the internal wasm_bindgen init function to avoid collision 2022-03-10 11:33:24 -08:00
.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