solana/runtime
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 move AccountInfo to its own file (#21784) 2021-12-11 11:47:05 -06:00
src Refactor: Remove `KeyedAccount` from program runtime (#22226) 2022-01-03 23:30:56 +01:00
store-tool Bump version to v1.10.0 2021-12-04 20:17:54 +00:00
tests Reformat imports to a consistent style for imports 2021-12-03 09:19:13 -08:00
.gitignore
Cargo.toml Bump serde from 1.0.132 to 1.0.133 (#22233) 2022-01-03 22:19:39 +00:00
build.rs Remove frozen ABI modules from solana-sdk 2020-10-20 16:11:30 -07:00