-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add helpers for each compressed account action
Remove the necessity of constructing `InstructionDataInvokeCpi` manually by adding utility functions for each type of singular account action: - **Create** (no inputs, only output) - `new_compressed_account` - creates an output compressed account - `create_cpi_inputs_for_new_account` - **Update** (input with old data, output with new data) - `input_compressed_account` - `output_compressed_accoint` - `create_cpi_inputs_for_account_update` - **Delete** (input with data to delete, no output) - `input_compressed_account` - `create_cpi_inputs_for_account_deletion` While this abstraction doesn't fully hide the UTXO model full yet, it aims to make it clear which kind of inputs and outputs are needed for each action.
- Loading branch information
1 parent
3a99b01
commit 14f1554
Showing
4 changed files
with
266 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.