VaultDepositManagerCapability

Documentation for eth_defi.vault.deposit_redeem.VaultDepositManagerCapability Python class.

class VaultDepositManagerCapability

Bases: object

Static public integration capability of a vault deposit manager.

This describes support implemented by eth_defi, rather than the vault’s live cap, pause, allow-list, token balance, or liquidity state. A historical probe cannot establish future acceptance: consumers must make the request against current chain state and handle a current-state revert.

Parameters
  • can_deposit – Whether a complete public deposit lifecycle is implemented.

  • can_redeem – Whether a complete public redemption lifecycle is implemented.

  • deposit_flow – Request lifecycle for deposits when supported.

  • redemption_flow – Request lifecycle for redemptions when supported.

Attributes summary

can_deposit

can_redeem

deposit_flow

redemption_flow

Methods summary

__init__(can_deposit, can_redeem[, ...])

as_dict()

Convert the capability to JSON-compatible primitives.

as_initial_public_schema()

Return the initial public schema or fail closed for partial support.

as_dict()

Convert the capability to JSON-compatible primitives.

Returns

Directional capability object suitable for internal persistence.

Return type

dict[str, bool | str]

as_initial_public_schema()

Return the initial public schema or fail closed for partial support.

The first export version intentionally advertises only two-way manager support. Keeping the internal representation directional leaves room for a future schema revision without making a partial manager look depositable today.

Returns

Two-way public capability object, or None for partial support.

Return type

Optional[dict[str, bool | str]]

__init__(can_deposit, can_redeem, deposit_flow=None, redemption_flow=None)
Parameters
Return type

None