PotentialVaultMatch

Documentation for eth_defi.erc_4626.discovery_base.PotentialVaultMatch Python class.

class PotentialVaultMatch

Bases: object

Categorise contracts that emit vault discovery events.

Attributes summary

chain

address

first_seen_at_block

first_seen_at

deposit_count

withdrawal_count

configuration_count

Protocol-specific vault configuration events.

mellow_factory_candidate

Mellow Factory.Created metadata when this lead came from a Mellow factory event instead of vault-local deposit/withdraw events.

enzyme_factory_candidate

Enzyme Onyx SharesFactory.ProxyDeployed metadata when a lead was created by the protocol factory rather than a vault-local flow event.

enzyme_active_deposit_handlers

Active Onyx deposit handlers reconstructed from Shares events.

enzyme_blue_factory_candidate

Enzyme Blue Dispatcher.VaultProxyDeployed metadata.

Methods summary

__init__(chain, address, ...[, ...])

is_candidate()

configuration_count: int

Protocol-specific vault configuration events.

mellow_factory_candidate: MellowFactoryCandidate | None

Mellow Factory.Created metadata when this lead came from a Mellow factory event instead of vault-local deposit/withdraw events.

Mellow Core Vault user flow events are emitted by queue contracts, not by the canonical Vault. Keep this metadata on the normal lead object so the discovery path can still use one lead map and one feature-probe loop.

enzyme_factory_candidate: EnzymeVaultFactoryCandidate | None

Enzyme Onyx SharesFactory.ProxyDeployed metadata when a lead was created by the protocol factory rather than a vault-local flow event.

enzyme_active_deposit_handlers: Optional[tuple[eth_typing.evm.HexAddress, ...]]

Active Onyx deposit handlers reconstructed from Shares events. None means an older incremental lead has no complete event history; an empty tuple conclusively means that deposits currently have no authorised handler.

enzyme_blue_factory_candidate: EnzymeBlueVaultFactoryCandidate | None

Enzyme Blue Dispatcher.VaultProxyDeployed metadata. Blue’s VaultProxy is not ERC-4626, so this direct protocol lead bypasses the generic feature probe just like an Onyx Shares lead.

__init__(chain, address, first_seen_at_block, first_seen_at, deposit_count=0, withdrawal_count=0, configuration_count=0, mellow_factory_candidate=None, enzyme_factory_candidate=None, enzyme_active_deposit_handlers=None, enzyme_blue_factory_candidate=None)
Parameters
Return type

None