Expand description
Program + official ABI deploys in one Multicall transaction.
The Public Manager and the ABI Manager both read their new contents from uploader buffers. These builders put the program change and the official ABI change into a single Multicall instruction so both land or neither does. The authority is always the fee payer (account index 0), which the callee programs treat as authorized.
Structs§
- Program
AbiAccounts - Accounts touched by a program + official ABI deploy.
- Program
AbiDigests - SHA-256 of the new program image and of the new ABI content. Each manager instruction commits to its digest and installs only buffer bytes that hash to it, so the buffers cannot be swapped after the transaction (or a multisig request) is built.
- Program
AbiSizes - Sizes used to size the deploy’s state-unit budget.
Enums§
- AbiStep
- What happens to the program’s official ABI.
- Program
Step - What happens to the managed program.
Constants§
- PROGRAM_
ABI_ COMPUTE_ UNITS - Compute budget for a combined deploy (both managers copy buffers).
- PROGRAM_
ABI_ MEMORY_ UNITS - Memory budget for a combined deploy, matching the TypeScript SDK.
Functions§
- build_
multicall_ instruction - Encode Multicall instruction data: a u16 call count, then for each call the u16 account index of the callee program, the u64 length of its instruction data, and the data itself (all little-endian).
- build_
program_ abi_ calls - Build the Multicall instruction calls for a program + official ABI
deploy against
idx, which maps each account to its transaction index.authority_idxis the index of the program authority (0 when the fee payer signs directly). - build_
program_ abi_ transaction - Build a fee-payer-signed transaction that creates or upgrades a managed program and creates or upgrades its official ABI in one Multicall.
- program_
abi_ account_ access - Which accounts the deploy writes and which it only reads.
- program_
abi_ state_ units - State units the deploy needs: new pages for created accounts, and the page growth of upgraded accounts.