Skip to content

feat: add kamino-lend - Kamino Lend integration#1

Open
GeoGu360 wants to merge 6 commits intomainfrom
feat/kamino-lend
Open

feat: add kamino-lend - Kamino Lend integration#1
GeoGu360 wants to merge 6 commits intomainfrom
feat/kamino-lend

Conversation

@GeoGu360
Copy link
Copy Markdown
Owner

@GeoGu360 GeoGu360 commented Apr 5, 2026

Summary

  • 接入 Kamino Lend,Solana 上最大的借贷协议(TVL $3B+)
  • 支持操作:markets(市场利率)、positions(持仓)、supply(存款)、withdraw(提款)、borrow(借款,dry-run)、repay(还款,dry-run)
  • 支持链:Solana mainnet (501)
  • 类型:Skill + Binary (Rust)
  • 所有链上操作走 onchainos wallet contract-call --chain 501 --unsigned-tx (base58) --force

Plugin Structure

submissions/kamino-lend/
├── plugin.yaml
├── skills/kamino-lend/SKILL.md
├── src/
│   ├── main.rs
│   ├── api.rs
│   ├── config.rs
│   ├── onchainos.rs
│   └── commands/
├── Cargo.toml
├── LICENSE
└── README.md

Checklist

  • plugin-store lint 通过(0 errors)
  • 所有链上操作走 onchainos CLI
  • SKILL.md 包含完整命令文档
  • plugin.yaml api_calls 已声明
  • 测试用例全部通过(10/10)
  • 支持 --dry-run 模式

Test Results

🤖 Generated with Claude Code

Amos and others added 3 commits April 5, 2026 17:35
- Support: markets, positions, supply, withdraw, borrow (dry-run), repay (dry-run)
- Chains: Solana (501)
- Type: Skill + Binary (Rust)
- All on-chain operations via onchainos CLI

Coauthored by Claude
Update source_commit to reflect audit fixes:
- Corrected source_repo field
- Fixed clippy warnings (is_multiple_of, dead_code)
- Fixed doc comment style in config.rs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 6, 2026

📋 Phase 3: AI Code Review Report — Score: N/A/100

Plugin: kamino-lend | Recommendation: 👤 Manual review required

🔗 Reviewed against latest onchainos source code (live from main branch) | Model: unavailable via Anthropic API | Cost: N/A

This is an advisory report. It does NOT block merging. Final decision is made by human reviewers.


AI review FAILED (HTTP 401): x-api-key header is required. Request size: 671133 bytes, plugin content: 6666 bytes.


Generated by Claude AI via Anthropic API — review the full report before approving.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 6, 2026

Phase 4: Summary + Pre-flight for kamino-lend

Review below. AI Code Review is in a separate check.


Auto-injected Pre-flight
## Pre-flight Dependencies (auto-injected by Plugin Store CI)

> Run once per session before first use. These checks ensure required tools are installed.

### Install onchainos CLI (auto-injected)

```bash
onchainos --version 2>/dev/null || curl -fsSL https://raw.githubusercontent.com/okx/onchainos-skills/main/install.sh | sh

Install kamino-lend binary (auto-injected)

if ! command -v kamino-lend >/dev/null 2>&1; then
  OS=$(uname -s | tr A-Z a-z)
  ARCH=$(uname -m)
  case "${OS}_${ARCH}" in
    darwin_arm64)  TARGET="aarch64-apple-darwin" ;;
    darwin_x86_64) TARGET="x86_64-apple-darwin" ;;
    linux_x86_64)  TARGET="x86_64-unknown-linux-gnu" ;;
    linux_aarch64) TARGET="aarch64-unknown-linux-gnu" ;;
  esac
  curl -fsSL "https://github.com/okx/plugin-store-community/releases/download/plugins/kamino-lend@0.1.0/kamino-lend-${TARGET}" -o ~/.local/bin/kamino-lend
  chmod +x ~/.local/bin/kamino-lend
fi


</details>

---
*Generated by Plugin Store CI after maintainer approval.*

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 6, 2026

🔨 Phase 2: Build Verification — ✅ PASSED

Plugin: kamino-lend | Language: rust
Source: GeoGu360/onchainos-plugins@866b8a55

Compiled from developer source code by our CI. Users install our build artifacts.

Build succeeded. Compiled artifact uploaded as workflow artifact.


Source integrity: commit SHA 866b8a5550e4c3f0bf74b5874ea652025ddd564c is the content fingerprint.

@GeoGu360 GeoGu360 deployed to ai-review April 6, 2026 05:25 — with GitHub Actions Active
@GeoGu360 GeoGu360 deployed to summary-generation April 6, 2026 05:25 — with GitHub Actions Active
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 6, 2026

✅ Phase 1: Structure Validation — PASSED

Linting submissions/kamino-lend...

  ⚠️  [W100] suspicious pattern: 'base64' — contains base64 reference — may embed hidden content
  ⚠️  [W100] suspicious pattern: 'curl ' — contains curl command — external network request

✓ Plugin 'kamino-lend' passed with 2 warning(s)

→ Proceeding to Phase 2: Build Verification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant