feat(scenarios): add Tessera state preparation - #11
Open
92Infinitus92 wants to merge 1 commit into
Open
Conversation
|
92Infinitus92
force-pushed
the
feat/tessera-support
branch
from
September 1, 2026 13:38
26dd7ea to
8539d42
Compare
|
No actionable findings in the reviewed diff. The previously reported RPC-target issue is fixed at Tests could not run because Rustup attempted to write outside the permitted workspace. |
Tessera is a proprietary market maker with no IDL, so its market accounts are written through the raw byte layout the BisonFi work introduced. Eight templates cover price, depth, curve, halt, staleness and freshness. The market catalog lists all 26 live markets with their mints, decimals and freshness limit, so the UI constrains the choice and a model can resolve one through search_constant_options. One builder exists, for the only thing a template cannot express: turning a human price into the pair of reciprocal atomic ratios, which needs both mints' decimals.
92Infinitus92
force-pushed
the
feat/tessera-support
branch
from
September 1, 2026 14:48
8539d42 to
c6449f5
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.
Stacked on #8 — Tessera is the same mechanism class as BisonFi (PMM, no IDL) and reuses the raw-layout engine it introduced.
create_tessera_fair_value_scenario, on the generic scenario path. No protocol HTTP endpoints.monitoring.yamlis documentation only: the program-upgrade fingerprint and the catalog refresh procedure.Greptile Summary
Adds declarative Tessera market-state preparation and exposes fair-value scenario creation through MCP.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains; the previously reported RPC-target issue is fixed because both Tessera account-fetch stages use the caller-selected Surfnet port.
Important Files Changed
Sequence Diagram
sequenceDiagram participant Client as MCP client participant Tool as Tessera MCP tool participant Surfnet as Selected Surfnet RPC participant Builder as Fair-value builder participant Studio as Scenario API Client->>Tool: market, price, surfnet_port Tool->>Surfnet: Read market account Surfnet-->>Tool: Market bytes Tool->>Surfnet: Read base and quote mints Surfnet-->>Tool: Mint decimals Tool->>Builder: Validated market and human price Builder-->>Tool: Price and freshness overrides Tool->>Studio: Stage scenario Studio-->>Client: Editor URLReviews (3): Last reviewed commit: "feat(scenarios): add Tessera state prepa..." | Re-trigger Greptile
Context used (3)