用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tradingstrategy-ai/web3-ethereum-defi --skill add-vault-abi-methods命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Categorise a DeFi vault's investment strategy from its address, link, name, and published strategy context. Use when adding or reviewing StrategyTag classifications for VaultBase adapters or native perpetual DEX vault exports, including their maintained tags.py mappings.
Add support for a new ERC-4626 vault protocol. Use when the user wants to integrate a new vault protocol like IPOR, Plutus, Morpho, etc. Requires vault smart contract address, protocol name, and protocol slug as inputs.
Add a new vault curator to feed metadata and curator detection. Use when the user wants to add a verified curator, protocol-managed curator, or curator alias discovered from vault data.
基于 SOC 职业分类
正在显示 SKILL.md
| name | add-vault-abi-methods |
| description | Expose vault smart contract ABI methods in the vault class |
This is a skill description to add smart contract
Vault protocol classes can be found in eth_defi/erc_4626/vault_protocol folder. Each vault protocol has its own class. There are 40+ protocols. Some protocol share classes and extend other protocols.
Each vault class wraps a JSON-RPC calls to an Ethereum smart contract. These smart contracts are described by ABI files in eth_defi/abi folder.
Identify the proxy class used for the vault protocol.
eth_defi/erc_4626/vault_protocol folder.Identify ABI file we should use for the task.
eth_defi/abi for already downloded ABI filesSee YearnV3Vault.vault_contract property as an example.
See IPORVault.get_performance_fee() method as an example.
See test_ipor_fee test case as an example.
get-block-number skill if needed for the test caseSee we did not break anything by accident.
Run all vault tests with the command:
source .local-test.env && poetry run pytest -n auto -k vault_protocol