-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: programId replacement style optional accounts (#94)
* fix prettier command * optional support * fix unit test * remove accidental code addition * use explicit style instead of coercion * chore: rename defaultOptionalsToProgramId to defaultOptionalAccounts to match shank - also put the relevant test into `.only` mode * fix stuff a bit before refactor * refactored optional stuff * added optional integration test * made renderAccountMetaArray a bit more generic * Revert "made renderAccountMetaArray a bit more generic" This reverts commit 884eedf. That last commit made things more complex and harder to understand. The previous version is much cleaner. * chore: first step at sorting things out and renaming for clarity - separated utility functions that are used in different places and don't access the InstruciontRenderer instance - separated account key rendering into sections depending on optional account strategy used * chore: splitting methods for clarity * chore: prep isOptional adaption * test: adding integration test covering both optional account strategies * chore: include info about optional accounts in instruction doc Co-authored-by: Thorsten Lorenz <[email protected]>
- Loading branch information
Showing
9 changed files
with
515 additions
and
47 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
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
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.