add-vault-abi-methods
БесплатноБез исполняемых скриптовНе проверенExpose vault smart contract ABI methods in the vault class
Об этом скилле
Add vault ABI methods
This is a skill description to add smart contract
If the task also changes public vault descriptions or notes, read and follow the shared description writing style. The guide applies to public copy; keep method and ABI details in technical documentation.
Inputs
- Vault protocol name
- Smart contract address and a blockchain as a blockchain explorer link
- What methods to cover
Vault classes
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.
Smart contracts
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.
Step 1) Identify the proxy class
Identify the proxy class used for the vault protocol.
- Identify the proxy class under
eth_defi/erc_4626/vault_protocolfolder. - The protocol might not have a proxy class. In this case report this and abort.
Step 2) Identify ABI file
Identify ABI file we should use for the task.
- Check folder
eth_defi/abifor already downloded ABI files - Check if the ABI files we are similar. If they are not, summarise the differences and ask the user how to proceed, then stop.
Step 3) Add a ABI file loading to the vault protocol proxy class
See YearnV3Vault.vault_contract property as an example.
Step 4) Find methods relevant for the task
- Read ABI file
- Read protocol documentation
- Identify relevant smart contract methods
Step 5) Create accessor methods
See IPORVault.get_performance_fee() method as an example.
- How to call the smart contract
- How to interpret the result
Step 6) Write test case
See test_ipor_fee test case as an example.
- Write the test using Anvil mainnet fork based method
- Use the latest block number for the named chain, use
get-block-numberskill if needed for the test case - Run it
- Fix potential issues
Step 7) Check regression
See 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
Step 8) Report results to back
Finish with clean-up-for-pr at the outermost task's review handoff.
- Findings on how the smart contract functions operate and how the results are translated
- Created files
- Created accessor methods
Установить add-vault-abi-methods в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл add-vault-abi-methods?
Expose vault smart contract ABI methods in the vault class
Как установить скилл add-vault-abi-methods?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл add-vault-abi-methods запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic