VaultSpec

Documentation for eth_defi.vault.base.VaultSpec Python class.

class VaultSpec[source]

Unique id for a vault.

  • Each vault can be identified by smart contract address by one of the contracts, related to its deployment. Usually this contract is vault contract itself.

  • We need both chain and address to specify vault we mean.

Attributes summary

chain_id

Ethereum chain id

vault_address

Vault smart contract address or whatever is the primary address for unravelling a vault deployment for a vault protocol

Methods summary

__init__(chain_id, vault_address)

chain_id: int

Ethereum chain id

vault_address: eth_typing.evm.HexAddress

Vault smart contract address or whatever is the primary address for unravelling a vault deployment for a vault protocol

__init__(chain_id, vault_address)
Parameters
Return type

None