pub fn bpf_loader_upgradeable_program_accounts(
program_id: &Pubkey,
elf: &[u8],
rent: &Rent,
) -> [(Pubkey, Account); 2]👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Expand description
Returns two tuples (Pubkey, Account) for a BPF upgradeable program.
The first tuple is the program account. It contains the provided program ID
and an account with a pointer to its program data account.
The second tuple is the program data account. It contains the program data
address and an account with the program data - a valid BPF Loader Upgradeable
program data account containing the ELF.