solana/sdk
Alexander Meißner 73e6038986
Refactor: Remove `KeyedAccount` from program runtime (#22226)
* Makes error handling in BorrowedAccount optional.
Adds BorrowedAccount ::get_rent_epoch().
Exposes InstructionContext::get_index_in_transaction().
Turns accounts and account_keys into pinned boxed slices.

* Introduces "unsafe" to InvokeContext::push().

* Turns &TransactionContext into &mut TransactionContext in InvokeContext.

* Push and pop InstructionContext in InvokeContext.
Makes test_process_cross_program and test_native_invoke symmetric.
Removes the borrow check from test_invoke_context_verify.

* Removes keyed_accounts from prepare_instruction()

* Removes usage of invoke_stack.

* Removes keyed_accounts from program-test.

* Removes caller_write_privileges.

* Removes keyed_accounts from BPF parameter (de-)serialization.
2022-01-03 23:30:56 +01:00
..
benches Clean up demote program write lock feature (#21949) 2021-12-16 17:27:22 -05:00
bpf cargo-build-bpf: Add Windows support (#20276) 2021-12-28 18:37:35 -05:00
cargo-build-bpf cargo-build-bpf: Add Windows support (#20276) 2021-12-28 18:37:35 -05:00
cargo-test-bpf Bump version to v1.10.0 2021-12-04 20:17:54 +00:00
docker-solana Fix solana docker image 2021-10-09 20:35:39 +01:00
macro Add wasm bindings for `Pubkey` and `Keypair` 2021-12-09 15:53:58 -08:00
program Refactor: cleanup solana_transaction_status crate (#22230) 2022-01-03 15:45:18 +00:00
src Refactor: Remove `KeyedAccount` from program runtime (#22226) 2022-01-03 23:30:56 +01:00
tests Add initial wasm bindings for `Instruction`, `SystemProgram` and `Transaction` 2021-12-09 15:53:58 -08:00
.gitignore Add wasm bindings for `Pubkey` and `Keypair` 2021-12-09 15:53:58 -08:00
Cargo.toml Bump serde from 1.0.132 to 1.0.133 (#22233) 2022-01-03 22:19:39 +00:00
README.md
Xargo.toml
build.rs
package.json Add wasm bindings for `Pubkey` and `Keypair` 2021-12-09 15:53:58 -08:00

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 Discord