testing
For testing with Light Protocol programs and clients on localnet, devnet, and mainnet validation.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- testing
- author
- Light Protocol
- license
- MIT
- version
- 1.0.0
- metadata
- { "source": "https://github.com/Lightprotocol/skills", "openclaw": { "requires": { "env": [ "HELIUS_API_KEY" ], "bins": [ "node", "solana", "anchor", "cargo", "light" ] } }, "documentation": "https://www.zkcompression.com" }
- description
- For testing with Light Protocol programs and clients on localnet, devnet, and mainnet validation.
02 资源文件 4
- 参考文档references/accounts.md1.5 KB
- 参考文档references/addresses.md1.4 KB
- 参考文档references/devnet.md1.7 KB
- 参考文档references/local.md2.5 KB
03 SKILL.md 正文
Light Protocol testing
Workflow
- Clarify intent
- Recommend plan mode, if it's not activated
- Use
AskUserQuestionto resolve blind spots - All questions must be resolved before execution
- Identify references and skills
- Match task to test references below
- Locate relevant documentation and examples
- Write plan file (YAML task format)
- Use
AskUserQuestionfor anything unclear — never guess or assume - Identify blockers: permissions, dependencies, unknowns
- Plan must be complete before execution begins
- Use
- Execute
- Use
Tasktool with subagents for parallel research - Subagents load skills via
Skilltool - Track progress with
TodoWrite
- Use
- When stuck: ask to spawn a read-only subagent with
Read,Glob,Grep, and DeepWiki MCP access, loadingskills/ask-mcp. Scope reads to skill references, example repos, and docs.
Routing
| Task | Reference |
|---|---|
| Start local validator | references/local.md |
| Test on devnet | references/devnet.md |
| Test Pinocchio programs | cargo test-sbf -p <program-name> (no Anchor required) |
Program addresses
These addresses are identical on devnet and mainnet.
| Program | Address |
|---|---|
| Light System | SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7 |
| Compressed Token | cTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m |
| Account Compression | compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq |
| Light Registry | Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX |
Pre-initialized accounts
See references/accounts.md for state trees, address trees, and protocol PDAs.
See references/addresses.md for devnet-specific addresses and lookup tables.
SDK references
| Package | Link |
|---|---|
light-program-test |
docs.rs |
@lightprotocol/stateless.js |
API docs |
light-client |
docs.rs |
Security
This skill provides test patterns and configuration references only.
- Declared dependencies. Devnet testing requires
HELIUS_API_KEY(RPC provider key). Localnet testing needs no credentials. In production, load from a secrets manager. - Subagent scope. When stuck, the skill asks to spawn a read-only subagent with
Read,Glob,Grepscoped to skill references, example repos, and docs. - Install source.
npx skills add Lightprotocol/skillsfrom Lightprotocol/skills. - Audited protocol. Light Protocol smart contracts are independently audited. Reports are published at github.com/Lightprotocol/light-protocol/tree/main/audits.
04 同仓库更多 Skills
youtube-clipper
YouTube 视频智能剪辑工具。下载视频和字幕,AI 分析生成精细章节(几分钟级别), 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频,并生成总结文案。 使用场景:当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词:视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video
viem-integration
Integrate EVM blockchains using viem. Use when user says "read blockchain data", "send transaction", "interact with smart contract", "connect to Ethereum", "use viem", "use wagmi", "wallet integration", "viem setup", or mentions blockchain/EVM development with TypeScript.
v4-security-foundations
Security-first Uniswap v4 hook development. Use when user mentions "v4 hooks", "hook security", "PoolManager", "beforeSwap", "afterSwap", or asks about V4 hook best practices, vulnerabilities, or audit requirements.
v4-sdk-integration
App-layer SDK guide for building swap and liquidity experiences directly with the Uniswap v4 SDK. Use when user asks about "v4 sdk", "uniswap v4", "v4 swap", "v4 liquidity", "PoolManager", "V4Planner", "StateView", "PositionManager", "pool state", "v4 position", "uniswap sdk", or when building swap/liquidity UX directly with SDKs rather than via the Trading API.
v4-hook-generator
Generate Uniswap v4 hook contracts via OpenZeppelin MCP. Use when building custom swap logic, async swaps, hook-owned liquidity, custom curves, dynamic fees, MEV protection, limit orders, or oracle hooks.
swap-planner
This skill should be used when the user asks to "swap tokens", "trade ETH for USDC", "exchange tokens on Uniswap", "buy tokens", "sell tokens", "convert ETH to stablecoins", "find memecoins", "discover tokens", "research tokens", "tokens to buy", "find tokens to swap", "what should I buy", or mentions swapping, trading, researching, discovering, buying, or exchanging tokens on any Uniswap-supported chain. Supports both known token swaps and token discovery workflows (discovery uses keyword search and web search — there is no live "trending" feed). Generates deep links to execute swaps in the Uniswap interface.