Add Editing Quasar Programs section#9
Open
mikemaccana wants to merge 1 commit into
Open
Conversation
69fede4 to
970e29e
Compare
Capture the Quasar rules learned from porting asset-leasing. Quasar is the lower-level framework used for performance-sensitive ports of Anchor programs; most of the surface looks like Anchor but several conveniences are missing or different (no realloc, no close, no CpiContext, account state numeric fields are Pod-wrapped, log() takes static strings only, account structs need explicit lifetimes). Use the same program ID across the Anchor and Quasar binaries so off-chain tooling that derives PDAs works against either build with no changes.
970e29e to
63635df
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Capture the Quasar rules learned from porting asset-leasing. Quasar is the lower-level framework used for performance-sensitive ports of Anchor programs; most of the surface looks like Anchor but several conveniences are missing or different (no realloc, no close, no CpiContext, account state numeric fields are Pod-wrapped, log() takes static strings only, account structs need explicit lifetimes).
Use the same program ID across the Anchor and Quasar binaries so off-chain tooling that derives PDAs works against either build with no changes.
Note
Low Risk
Documentation-only changes; no runtime, build, or security-sensitive code is modified.
Overview
Updates the skill docs to explicitly cover Quasar alongside Anchor, including refreshed
README.md/frontmatter wording so the skill is invoked for both frameworks and their configs (e.g.,Quasar.toml).Adds a new "Editing Quasar Programs" section to
SKILL.mddocumenting Quasar-specific constraints and gotchas (shared program ID with Anchor for PDA derivations, Pod-wrapped numeric fields,log()static-string limitation, explicit lifetimes, and lack ofrealloc/closeconstraints andCpiContext).Reviewed by Cursor Bugbot for commit 63635df. Bugbot is set up for automated code reviews on this repo. Configure here.