Skip to content

feat(mcms/analyzer): add Solana native programs to decoder registry#942

Merged
gustavogama-cll merged 4 commits intomainfrom
ggama/fix/solana-decoder
Apr 24, 2026
Merged

feat(mcms/analyzer): add Solana native programs to decoder registry#942
gustavogama-cll merged 4 commits intomainfrom
ggama/fix/solana-decoder

Conversation

@gustavogama-cll
Copy link
Copy Markdown
Contributor

@gustavogama-cll gustavogama-cll commented Apr 18, 2026

This pull request enhances the Solana analyzer by adding support for native Solana programs and improving instruction decoding capabilities. It introduces a registry for Solana native programs, ensures their decoders are registered by default, and adds comprehensive support for Anchor IDL instruction decoding.

It also adds Go bindings for some native programs that are not available by default in the gagliardetto/solana-go library to the experimental/analyzer/solana/programs package.


OPT-486

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 18, 2026

🦋 Changeset detected

Latest commit: efdeb86

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This comment was marked as resolved.

@gustavogama-cll gustavogama-cll force-pushed the ggama/fix/solana-decoder branch 2 times, most recently from a494b62 to fb2e31b Compare April 23, 2026 05:10
@gustavogama-cll gustavogama-cll requested a review from Copilot April 23, 2026 05:10
@gustavogama-cll gustavogama-cll changed the title [wip] support native programs in Solana decoder feat(mcms/analyzer): add Solana native programs to registry Apr 23, 2026
@gustavogama-cll gustavogama-cll changed the title feat(mcms/analyzer): add Solana native programs to registry feat(mcms/analyzer): add Solana native programs to decoder registry Apr 23, 2026

This comment was marked as resolved.

Additionally, added a few custom Go bindings for native programs
that are not available in the default solana-go module:

* [otter verify](https://github.com/otter-sec/otter-verify)
* [loader v3](https://github.com/solana-program/loader-v3)
* [anchor idl](https://github.com/solana-foundation/anchor/tree/master/idl)
@gustavogama-cll gustavogama-cll force-pushed the ggama/fix/solana-decoder branch from fb2e31b to 94da931 Compare April 23, 2026 05:22
@gustavogama-cll gustavogama-cll marked this pull request as ready for review April 23, 2026 05:33
@gustavogama-cll gustavogama-cll requested a review from a team as a code owner April 23, 2026 05:33
Copilot AI review requested due to automatic review settings April 23, 2026 05:33

This comment was marked as low quality.

Comment thread experimental/analyzer/solana/programs/bpfloader/instructions.go Outdated
Comment thread experimental/analyzer/solana/programs/idl/instructions.go
Comment thread experimental/analyzer/solana/programs/loaderv3/accounts.go
Comment thread experimental/analyzer/registry_solana.go
Comment thread experimental/analyzer/registry_solana.go
Copilot AI review requested due to automatic review settings April 24, 2026 03:58

This comment was marked as resolved.

@gustavogama-cll gustavogama-cll force-pushed the ggama/fix/solana-decoder branch from b49a3e4 to efdeb86 Compare April 24, 2026 04:38
@cl-sonarqube-production
Copy link
Copy Markdown

@gustavogama-cll gustavogama-cll added this pull request to the merge queue Apr 24, 2026
Merged via the queue into main with commit 1bd6d2d Apr 24, 2026
26 checks passed
@gustavogama-cll gustavogama-cll deleted the ggama/fix/solana-decoder branch April 24, 2026 05:24
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.

5 participants