ERC4262VaultDetection

Documentation for eth_defi.erc_4626.core.ERC4262VaultDetection Python class.

class ERC4262VaultDetection

Bases: object

A ERC-4626 detection.

Attributes summary

chain

Chain

address

Vault contract address

first_seen_at_block

When this vault was first seen

first_seen_at

When this vault was first seen

features

Detected features fo this vault

updated_at

When this entry was scanned on chain

deposit_count

Number of on-chain deposit events observed.

redeem_count

Number of on-chain redeem events observed.

configuration_count

Number of vault configuration events observed.

Methods summary

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

get_spec()

Chain id/address tuple identifying this vault.

is_erc_7540()

Are we asynchronous vault

is_erc_7575()

Are we asynchronous vault

is_protocol_identifiable()

Did we correctly identify the protocol?

chain: int

Chain

address: eth_typing.evm.HexAddress

Vault contract address

first_seen_at_block: int

When this vault was first seen

first_seen_at: datetime.datetime

When this vault was first seen

features: set[eth_defi.erc_4626.core.ERC4626Feature]

Detected features fo this vault

updated_at: datetime.datetime

When this entry was scanned on chain

deposit_count: int

Number of on-chain deposit events observed.

Zero for native protocols (GRVT, Lighter, Hibachi) that do not support on-chain deposit/redeem event tracking.

redeem_count: int

Number of on-chain redeem events observed.

Zero for native protocols that do not support on-chain event tracking.

configuration_count: int

Number of vault configuration events observed.

Used by T3tris migration-pool vaults, which may never emit vault-local deposit events. getattr access in activity filtering keeps old persisted detections compatible after this slot was added.

get_spec()

Chain id/address tuple identifying this vault.

Return type

eth_defi.vault.base.VaultSpec

is_protocol_identifiable()

Did we correctly identify the protocol?

Return type

bool

is_erc_7540()

Are we asynchronous vault

Return type

bool

is_erc_7575()

Are we asynchronous vault

Return type

bool

__init__(chain, address, first_seen_at_block, first_seen_at, features, updated_at, deposit_count, redeem_count, configuration_count=0)
Parameters
Return type

None