feat: add BisonFi override templates - #8
bakasura980 wants to merge 6 commits into
Conversation
686cf07 to
f71abb8
Compare
c40c4ea to
794b8e8
Compare
|
Tests couldn’t run because Rustup attempted to write outside the permitted workspace. No other actionable issues found. |
|
|
|
Tests could not run because Rustup attempted to write outside the permitted filesystem. |
9af2fc5 to
61a9091
Compare
…ain/surfpool into feat/bisonfi-support
…ain/surfpool into feat/bisonfi-support
BisonFi publishes no IDL and is not an Anchor program, so this adds a raw byte-layout write path guarded by account size and magic, plus four templates on it: price, depth, spread and freshness.
Also introduces optional IDLs on templates, so a program without one no longer needs a reconstructed IDL in the repo.
The PR appears safe to merge because no blocking failure remains within the eligible follow-up review scope.
Summary
The PR adds four BisonFi v3 scenario templates backed by guarded raw byte-layout writes, allowing account overrides without an Anchor IDL.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR Scenario[Scenario override] --> Registry[Template registry] Registry --> Template[BisonFi raw-layout template] Template --> Guard{Size, magic, and version valid?} Guard -->|No| Reject[Reject override] Guard -->|Yes| Encode[Encode configured fields at byte offsets] Encode --> Account[Updated pool account] Account --> SVM[Later SVM transactions observe override]Reviews (18) · Last reviewed commit: "Merge branch 'feat/scenarios/raw-layout'..."