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