feat(scenarios): add support for Kamino programs - #5
Open
bakasura980 wants to merge 2 commits into
Open
Conversation
failfmi
reviewed
Aug 12, 2026
failfmi
reviewed
Aug 12, 2026
bakasura980
force-pushed
the
feat/kamino-protocol-support
branch
from
August 13, 2026 08:52
4aad28f to
557102b
Compare
bakasura980
force-pushed
the
feat/kamino-protocol-support
branch
from
August 13, 2026 09:32
557102b to
982f031
Compare
…y slot Addresses two review comments. A persisted override was re-queued with fetch_before_use intact, so every following slot pulled the whole account from mainnet again: one RPC per slot per override, and any field the override does not write was reset to mainnet's value, discarding what local transactions had written to it. fetch_before_use is now cleared on the re-queue, but only after the write succeeds, so a failed apply still retries next slot with the fetch. The re-queue replaces a copy of itself already queued for that slot instead of bailing out, which keeps one entry per id. persist also gains the ts-bindings attribute its sibling fetch_before_use already had, and the regenerated OverrideInstance.ts exposes it - the field was previously absent from the TS SDK entirely.
Collaborator
|
The persisted re-fetch issue is fixed, but two different |
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.
Greptile Summary
The PR expands native scenario support across six Kamino programs and adds persistent overrides, indexed array paths, fixtures, templates, documentation, and an example liquidation scenario.
persistis enabled.Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart LR A[Scenario override] --> B[Resolve template and account] B --> C[Resolve nested IDL path] C --> D[Convert JSON using terminal IDL type] D --> E[Mutate decoded account] E --> F[Borsh re-encode account] F --> G[Apply once or persist across slots]Reviews (6): Last reviewed commit: "fix(scenarios): stop persisted overrides..." | Re-trigger Greptile