Add read-only Solana token risk plugin#134
Open
guoqiangliu-ocean wants to merge 1 commit into
Open
Conversation
guoqiangliu-ocean
marked this pull request as ready for review
July 22, 2026 17:03
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.
What changed
token-risk-check, a single-tool Solana WIT componentwasi:httpshimWhy
Autonomous agents need a read-only safety check before payment or swap tooling. This plugin provides that check without a private key, signing path, transaction builder, or raw RPC payload in the model context.
Safety
This is custody tier T0. The only tool argument is a base58 mint that must decode to 32 bytes. Endpoints come from the plugin's jailed operator config and must use HTTPS. Missing or malformed source data cannot produce a green result.
Validation
cargo fmt --manifest-path plugins/token-risk-check/Cargo.toml --all -- --checkcargo metadata --manifest-path plugins/token-risk-check/Cargo.toml --locked --no-deps --format-version 1python tools/build-registry.py --source-plugins plugins --check-metadata registry.jsongetAccountInfoand DEX Screener's documented/token-pairs/v1/solana/{tokenAddress}endpointwasm32-wasip2release builds, registry packaging dry run, and the required validation gate all passed: https://github.com/guoqiangliu-ocean/zeroclaw-plugins/actions/runs/29940249752The upstream run is awaiting the repository's standard first-time-contributor workflow approval; the identical workflow completed successfully on the fork.