Skip to content

update: migrate quasar programs to latest API#8

Open
jim4067 wants to merge 7 commits intoquiknode-labs:mainfrom
jim4067:jimii/quasar-api-migration
Open

update: migrate quasar programs to latest API#8
jim4067 wants to merge 7 commits intoquiknode-labs:mainfrom
jim4067:jimii/quasar-api-migration

Conversation

@jim4067
Copy link
Copy Markdown

@jim4067 jim4067 commented Apr 22, 2026

Note

Medium Risk
Medium risk due to broad, cross-cutting API migration across many on-chain examples (account context types, PDA seeds, and CPI call signatures), which could break compilation or subtly change account validation if mismatched.

Overview
Updates all Quasar examples to depend on upstream quasar-lang (and quasar-spl where used) from Git, and refactors instruction #[derive(Accounts)] contexts to the new owned account types (dropping 'info lifetimes) with handlers now consistently taking &mut accounts.

Adds #[seeds(...)] annotations to state structs and updates PDA constraints to use generated Type::seeds(...)/*_seeds(...) helpers (plus set_inner where required), while adjusting CPI helpers to pass account references and updating a few small utilities (e.g., name matchers) to match new APIs. Also ignores .claude in .gitignore.

Reviewed by Cursor Bugbot for commit a65c134. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown
Collaborator

@mikemaccana mikemaccana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work and thanks - just remove the impl and let the instruction handlers and account constraints be seperate and we can get this in!

Comment thread basics/account-data/quasar/src/instructions/create.rs Outdated
@jim4067 jim4067 marked this pull request as ready for review April 22, 2026 17:09
Comment thread tokens/escrow/quasar/src/lib.rs Outdated
Comment thread basics/account-data/quasar/src/lib.rs Outdated
Comment thread basics/counter/quasar/src/lib.rs Outdated
Comment thread .gitignore Outdated
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 116230f. Configure here.

Comment thread basics/cross-program-invocation/quasar/hand/src/lib.rs Outdated
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.

2 participants