Skip to content

Add Anchor-free instruction builders to marginfi-type-crate - #650

Open
IMEF-FEMI wants to merge 7 commits into
0.1.10-mainfrom
type-crate-ix-builders
Open

Add Anchor-free instruction builders to marginfi-type-crate#650
IMEF-FEMI wants to merge 7 commits into
0.1.10-mainfrom
type-crate-ix-builders

Conversation

@IMEF-FEMI

Copy link
Copy Markdown
Contributor

Summary

Turns the type crate into a standalone Rust integration SDK. Consumers can now construct nearly every marginfi instruction without depending on the marginfi program crate or Anchor.

Why

The existing Rust integration path relies on Anchor-generated marginfi::accounts::* and marginfi::instruction::* types, coupling integrators to marginfi’s Anchor version. This creates friction for projects using a different Anchor version, Pinocchio, or native Solana crates.

The builders also provide a canonical interface for constructing marginfi instructions, reducing the risk of incorrect discriminators, account ordering, or argument serialization. When an instruction introduces a breaking change, integrators can identify the affected builder and update their integration accordingly.

@IMEF-FEMI IMEF-FEMI changed the title Anchor-free instruction builders for marginfi-type-crate Add Anchor-free instruction builders to marginfi-type-crate Aug 20, 2026
@IMEF-FEMI
IMEF-FEMI marked this pull request as ready for review August 24, 2026 09:03
@IMEF-FEMI
IMEF-FEMI requested a review from jgur-psyops as a code owner August 24, 2026 09:03
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.

1 participant