solana/programs
Alessandro Decina bee24a81b8
Refactor CPI, add tests and sprinkle some comments (#28544)
* bpf_loader: cpi: split account update code to update_caller_account and add tests

* bpf_loader: cpi: set CallerAccount::original_data_len earlier

* cpi: add CallerAccount::from_account_info and CallerAccount::from_sol_account_info

* cpi: refactor common account info translation code in translate_account_infos

* update_caller docs

* cpi: rename translate_accounts to translate_and_update_accounts

* cpi: refactor pre-cpi account update code into update_callee_account

* cpi: add tests for CallerAccount::from_account_info

* cpi: add test for SyscallInvokeSignedRust::translate_accounts

* cpi: fix lints

* cpi: add test for translate_instruction()

* cpi: add test for translate_signers

* cpi: fix lint

* cpi: review fixups round 1

* cpi: more review fixups

Replace ugly MockInvokeContext with a macro

* cpi: more review fixes

replace get_callee with macro

* cpi: more review fixes

Add MockAccountInfo::new

* Fix rebase mistake
2022-11-23 23:22:50 +11:00
..
address-lookup-table RPC: Support versioned txs in getFeeForMessage API (#28217) 2022-10-05 00:00:34 +08:00
address-lookup-table-tests Whickey/version v1.15 (#27739) 2022-09-13 09:06:15 -05:00
bpf-loader-tests Cap accounts data a transaction can load by its requested limit (#27840) 2022-11-14 10:29:35 -06:00
bpf_loader Refactor CPI, add tests and sprinkle some comments (#28544) 2022-11-23 23:22:50 +11:00
compute-budget Whickey/version v1.15 (#27739) 2022-09-13 09:06:15 -05:00
config Whickey/version v1.15 (#27739) 2022-09-13 09:06:15 -05:00
ed25519-tests Whickey/version v1.15 (#27739) 2022-09-13 09:06:15 -05:00
sbf added alt_bn syscalls (#27961) 2022-11-21 17:43:06 +01:00
stake remove unused deps from solana-stake-program (#27929) 2022-10-11 07:39:02 -07:00
vote clippy for rust 1.65.0 (#28765) 2022-11-09 19:39:38 +00:00
zk-token-proof Bump solana_rbpf to 0.2.36 (#28794) 2022-11-15 15:21:11 +01:00