Module onchain

Source
Expand description

On-chain program invoke helper to perform on-chain execute with correct accounts

Functionsยง

add_extra_accounts_for_execute_cpi
Helper to add accounts required for an ExecuteInstruction on-chain, looking through the additional account infos to add the proper accounts.
invoke_execute
Helper to CPI into a transfer-hook program on-chain, looking through the additional account infos to create the proper instruction