fix(kamino-liquidity-plugin): sync to okx v0.1.3 + biz-type/strategy attribution (v0.1.4)#85
Conversation
…attribution (v0.1.4)
Brings mig-pre/main from v0.1.2 to v0.1.4 — sync of v0.1.2 → v0.1.3
already on okx/main, plus biz-type/strategy attribution.
== New in v0.1.4 ==
Add `--biz-type dapp --strategy kamino-liquidity-plugin` to the onchainos
`wallet contract-call --unsigned-tx` invocation in the Solana wrapper
`wallet_contract_call_solana`. Solana plugins use the same
`wallet contract-call` subcommand as EVM, just with `--unsigned-tx`
instead of `--input-data`.
`env!("CARGO_PKG_NAME")` keeps the strategy name in sync with Cargo.toml.
Also add a plugin-level `.gitignore` so cargo build artifacts don't
leak into git diff.
EVM-012 sweep deferred to a follow-up PR.
Version bump: mig-pre v0.1.2 → v0.1.4 (PATCH).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🔨 Phase 2: Build Verification — ✅ PASSED
Build succeeded. Compiled artifact uploaded as workflow artifact. Source integrity: commit SHA `` is the content fingerprint. |
📋 Phase 3: AI Code Review Report — Score: 88/100
1. Plugin Overview
Summary: This plugin enables users to interact with Kamino Liquidity KVault earn vaults on Solana — depositing tokens to earn yield, withdrawing shares, and tracking positions. It builds unsigned transactions via Kamino's API and submits them through the onchainos wallet for TEE-based signing. Target Users: Solana DeFi users seeking automated yield optimization through Kamino KVaults, who use the OKX Agentic Wallet ecosystem. 2. Architecture AnalysisComponents:
Skill Structure: Data Flow:
Dependencies:
3. Auto-Detected Permissionsonchainos Commands Used
All commands verified against the source reference. Wallet Operations
External APIs / URLs
Chains Operated OnSolana (chainIndex 501) only — explicitly enforced in every command via Overall Permission SummaryThis plugin can read wallet balances on Solana and submit signed transactions to Kamino's KVault program ( 4. onchainos API ComplianceDoes this plugin use onchainos CLI for all on-chain write operations?Yes — fully compliant. All transaction signing/broadcasting goes through On-Chain Write Operations (MUST use onchainos)
Data Queries (allowed to use external sources)
External APIs / Libraries Detected
Verdict: ✅ Fully Compliant5. Security AssessmentStatic Rule Scan (C01-C09, H01-H09, M01-M08, L01-L02)
No other static rules matched. No hardcoded secrets, no curl|sh, no obfuscation, no prompt injection patterns, no persistence, no sensitive path access. LLM Judge Analysis (L-PINJ, L-MALI, L-MEMA, L-IINJ, L-AEXE, L-FINA, L-FISO)
Toxic Flow Detection (TF001-TF006)No toxic flows detected. M07/M08 do not trigger (boundary declaration present), so TF006 doesn't apply. Prompt Injection ScanNo instruction override, identity manipulation, hidden behavior, or encoded payloads detected. Result: ✅ Clean Dangerous Operations CheckPlugin involves transfers/contract calls on Solana. SKILL.md explicitly requires:
Result: ✅ Safe Data Exfiltration RiskNo environment variables read, no file system access for credentials, no outbound HTTP except Kamino API. Wallet addresses sent to Kamino API are public on-chain data. Result: ✅ No Risk Overall Security Rating: 🟢 Low Risk6. Source Code SecurityLanguage & Build Config
Dependency AnalysisAll dependencies are standard, well-maintained crates:
No suspicious or unmaintained crates. Cargo.lock present — pinned versions. Code Safety Audit
Notable safety practice: Does SKILL.md accurately describe what the source code does?Yes. SKILL.md commands (quickstart, vaults, positions, deposit, withdraw) all match the implementation in Verdict: ✅ Source Safe7. Code ReviewQuality Score: 88/100
Strengths
Issues Found
8. Language Check
9. SUMMARY.md Review
11. Recommendations
12. Reviewer SummaryOne-line verdict: A well-structured, security-conscious Solana DeFi plugin that correctly delegates all signing to onchainos TEE; no critical issues found. Merge recommendation: ✅ Ready to merge Blockers: No blockers found. Non-blocking improvements:
Generated by Claude AI via Anthropic API — review the full report before approving. |
✅ Phase 4: Publish CompletePlugins:
Published by Plugin Store CI |
Brings mig-pre v0.1.2 → v0.1.4. Sync of v0.1.2 → v0.1.3 already on okx/main + biz-type/strategy attribution on Solana wallet_contract_call_solana wrapper. Also added plugin-level .gitignore to prevent target/ leakage. EVM-012 sweep deferred.