Expand description
An upgradeable BPF loader native program.
The upgradeable BPF loader is responsible for deploying, upgrading, and
executing BPF programs. The upgradeable loader allows a program’s authority
to update the program at any time. This ability break’s the “code is law”
contract the usually enforces the policy that once a program is on-chain it
becomes immutable. Because of this, care should be taken before executing
upgradeable programs which still have a functioning authority. For more
information refer to the loader_upgradeable_instruction
module.
The cbe program deploy
CLI command uses the
upgradeable BPF loader. Calling cbe program deploy --final
deploys a
program that cannot be upgraded, but it does so by revoking the authority to
upgrade, not by using the non-upgradeable loader.
Enums§
- Upgradeable
Loader State - Upgradeable loader account states
Statics§
- ID
- The static program ID.
Functions§
- check_
id - Returns
true
if given pubkey is the program ID. - close
- Returns the instructions required to close a buffer account
- close_
any - Returns the instructions required to close program, buffer, or uninitialized account
- create_
buffer - Returns the instructions required to initialize a Buffer account.
- deploy_
with_ max_ program_ len - Returns the instructions required to deploy a program with a specified maximum program length. The maximum length must be large enough to accommodate any future upgrades.
- extend_
program - Returns the instruction required to extend the size of a program’s executable data account
- id
- Returns the program ID.
- is_
close_ instruction - is_
set_ authority_ checked_ instruction - is_
set_ authority_ instruction - is_
upgrade_ instruction - set_
buffer_ authority - Returns the instructions required to set a buffers’s authority.
- set_
buffer_ authority_ checked - Returns the instructions required to set a buffers’s authority. If using this instruction, the new authority must sign.
- set_
upgrade_ authority - Returns the instructions required to set a program’s authority.
- set_
upgrade_ authority_ checked - Returns the instructions required to set a program’s authority. If using this instruction, the new authority must sign.
- upgrade
- Returns the instructions required to upgrade a program.
- write
- Returns the instructions required to write a chunk of program data to a buffer account.