mellow.flow

Documentation for eth_defi.mellow.flow Python module.

Mellow Core Vault flow manager stubs.

Mellow deposits and redemptions are asynchronous and queue based. The initial adapter intentionally does not expose flow accounting until the queue event ABI and queue-to-vault mapping tests are pinned.

Classes

MellowVaultFlowManager

Unsupported Mellow flow reader placeholder.

class MellowVaultFlowManager

Bases: eth_defi.vault.base.VaultFlowManager

Unsupported Mellow flow reader placeholder.

fetch_pending_redemption(block_identifier)

Fetch pending redemption amount.

Mellow redemption requests are emitted by RedeemQueue contracts. Queue event scanning is not part of the first adapter slice.

Parameters

block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, int]) – Block number or tag.

Returns

Never returns until queue scanning is implemented.

Return type

decimal.Decimal

fetch_pending_deposit(block_identifier)

Fetch pending deposit amount.

Mellow deposit requests are emitted by DepositQueue contracts. Queue event scanning is not part of the first adapter slice.

Parameters

block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, int]) – Block number or tag.

Returns

Never returns until queue scanning is implemented.

Return type

decimal.Decimal

fetch_pending_deposit_events(range)

Read pending deposit events.

Parameters

range (Tuple[eth_typing.evm.BlockNumber, eth_typing.evm.BlockNumber]) – Block range to read.

Return type

None

fetch_pending_redemption_event(range)

Read pending redemption events.

Parameters

range (Tuple[eth_typing.evm.BlockNumber, eth_typing.evm.BlockNumber]) – Block range to read.

Return type

None

fetch_processed_deposit_event(range)

Read processed deposit events.

Parameters

range (Tuple[eth_typing.evm.BlockNumber, eth_typing.evm.BlockNumber]) – Block range to read.

Return type

None

fetch_processed_redemption_event(vault, range)

Read processed redemption events.

Parameters
Return type

None