feat: add idl interaction and parsing to devtools#41
Merged
stevesarmiento merged 9 commits intomainfrom Mar 15, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📊 Coverage ReportConnectorKit Packages Test Results Coverage reports have been generated for all packages. 📁 View Coverage ArtifactsCoverage reports have been generated for all packages:
|
Co-Authored-By: Cursor <cursoragent@cursor.com>
Made-with: Cursor
Greptile SummaryThis PR adds a full IDL interaction and parsing experience to the devtools package, along with transaction simulation, flow visualization, and several supporting features.
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
subgraph IDL_Plugin["IDL Plugin"]
A[User enters Program ID] --> B{IDL Source?}
B -->|Program Metadata| C[Fetch IDL from chain]
B -->|Paste JSON| D[Parse pasted JSON]
B -->|File Upload| E[Read local file]
C --> F[Parse & validate Anchor IDL]
D --> F
E --> F
F --> G[List instructions]
G --> H[Select instruction]
H --> I[Auto-fill accounts & args]
I --> J[Compute PDAs]
J --> K[Build Anchor instruction]
K --> L{Mainnet?}
L -->|Yes| M[Confirm dialog]
L -->|No| N[Sign & Send via Wallet]
M -->|OK| N
N --> O[Emit transaction events]
end
subgraph Tx_Simulation["Transaction Simulation"]
P[Wire transaction bytes] --> Q[Decode & decompile message]
Q --> R[Fetch pre-state snapshots]
R --> S[simulateTransaction RPC]
S --> T[Compute balance changes]
T --> U[Detect warnings]
U --> V[Render simulation panel]
end
subgraph Tx_Flow["Transaction Flow Viz"]
W[RPC transaction details] --> X[Build account nodes]
X --> Y[Build instruction nodes]
Y --> Z[Build program nodes]
Z --> AA[Render SVG graph]
end
O --> P
O --> W
Last reviewed commit: 170f8e7 |
packages/devtools/src/plugins/transactions/render-simulation.ts
Outdated
Show resolved
Hide resolved
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.
No description provided.