YieldBasisContextPrefillResult

Documentation for eth_defi.yield_basis.historical_context.YieldBasisContextPrefillResult Python class.

class YieldBasisContextPrefillResult

Bases: object

Summarise one context prefill operation.

Attributes summary

chain_id

Chain whose context was scanned.

start_block

Inclusive first requested block.

end_block

Exclusive last requested block.

observations_fetched

Valid observations returned by historical state calls.

observations_inserted

New observations inserted after deduplication.

Methods summary

__init__(chain_id, start_block, end_block, ...)

chain_id: int

Chain whose context was scanned.

start_block: int

Inclusive first requested block.

end_block: int

Exclusive last requested block.

observations_fetched: int

Valid observations returned by historical state calls.

observations_inserted: int

New observations inserted after deduplication.

__init__(chain_id, start_block, end_block, observations_fetched, observations_inserted)
Parameters
  • chain_id (int) –

  • start_block (int) –

  • end_block (int) –

  • observations_fetched (int) –

  • observations_inserted (int) –

Return type

None