Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull metaplex-solita upstream changes #1

Open
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

Nagaprasadvr
Copy link

Pull updated master

thlorenz and others added 30 commits September 20, 2022 13:58
* test: add sets integration test

* typemapper: add set support

* deps: upgrade to latest beet supporting sets
* feat: propagate IDL gen exit code and printing warning message if non-zero

* chore: printing handler error in red
* fix: IdlAccountsCollection included

* lint:fix, test:integration, some fixes

* comment changes

* chore: move accounts collection guard to where the other guards are

* chore: improve naming of account collection items

- adding collection name as prefix makes it easier to discover
  collection items via intellisense, i.e. `sourceMarketItemCoinVault`
  as well as making clear where each account item originated from

* chore: remove unused import

* chore: fix fixture name

Co-authored-by: ricardocr987 <[email protected]>
* 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]>
…stbin

Fix: use solita rustbin config in shank
…-accounts-after-optional-accounts

Allow required accounts after optional accounts when rendering instruction keys
* Add support for isOptional instruction account attribute

* Fix lint

---------

Co-authored-by: febo <[email protected]>
As the new shank version will assume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants