feat: add Solana token risk check plugin#125
Open
fengyangxxx wants to merge 4 commits into
Open
Conversation
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.
Summary
token-risk-checkWASM component for canonical Solana mintswasm32-wasip2WIT v0 shimSafety and configuration
The tool schema accepts only
mint; callers cannot choose RPC methods or endpoints. The jailed host config requiresrpc_urland may optionally provideliquidity_url. Without the optional key, the plugin reads the fixed DexScreener token endpoint directly. The optional endpoint is for operators whose WASI HTTP egress cannot reach the public provider: it must be public HTTPS, receives only the canonical mint path suffix, and must return the unmodified DexScreener response. The component still performs all parsing and risk classification locally.The manifest grants only
http_clientandconfig_read. There is no private-key, signing, transaction, trading, filesystem, process, socket, or WebSocket path. Indexed liquidity is not represented as LP lock, burn, ownership, sellability, or price-impact evidence.Validation
cargo test --locked: 158 passed, 0 failed, 0 ignoredwasm32-wasip2release clippy with-D warnings: passedcargo build --locked --target wasm32-wasip2 --release: passedtools/ci/validate_components.sh token-risk-check: passed with natural exit 0Scope
This PR adds only
plugins/token-risk-check/. The README documents configuration, custody tier, threat model, worked output, prompt-injection regression transcript, build/run steps, WASI friction, evidence limitations, and next steps.