agent0.ethpy.hyperdrive.state.pool_state

Functions for storing Hyperdrive state.

Classes

PoolState

A collection of stateful variables for deployed Hyperdrive and Yield contracts.

Module Contents

class agent0.ethpy.hyperdrive.state.pool_state.PoolState

A collection of stateful variables for deployed Hyperdrive and Yield contracts.

block: web3.types.BlockData
pool_config: hyperdrivetypes.PoolConfigFP
pool_info: hyperdrivetypes.PoolInfoFP
checkpoint_time: int
checkpoint: hyperdrivetypes.CheckpointFP
exposure: fixedpointmath.FixedPoint
vault_shares: fixedpointmath.FixedPoint
total_supply_withdrawal_shares: fixedpointmath.FixedPoint
hyperdrive_base_balance: fixedpointmath.FixedPoint
hyperdrive_eth_balance: fixedpointmath.FixedPoint
gov_fees_accrued: fixedpointmath.FixedPoint
property pool_info_to_dict: dict[str, Any]

Get the pool_info property.

property pool_config_to_dict: dict[str, Any]

Get the pool_config property.

property checkpoint_to_dict: dict[str, Any]

Get the checkpoint property.