ChainlinkBundleReport

Documentation for eth_defi.chainlink.bundle_aggregator.ChainlinkBundleReport Python class.

class ChainlinkBundleReport

Bases: object

A historical Chainlink BundleReportUpdated event.

Attributes summary

aggregator_address

DataFeedsCache contract that emitted the event.

data_id

Feed-specific Chainlink data identifier.

updated_at

Chainlink report timestamp as Unix seconds.

bundle

Feed-specific opaque bundle payload.

block_number

Block containing the accepted report.

block_timestamp

Naive UTC timestamp of the containing block, when returned by Hypersync.

transaction_hash

Transaction hash containing the report.

log_index

Event position in the transaction receipt.

update_time

Return the report timestamp as a naive UTC datetime.

Methods summary

__init__(aggregator_address, data_id, ...)

decode_decimal(index, decimals, *[, signed])

Decode a feed-specific numeric bundle field.

aggregator_address: eth_typing.evm.HexAddress

DataFeedsCache contract that emitted the event.

data_id: bytes

Feed-specific Chainlink data identifier.

updated_at: int

Chainlink report timestamp as Unix seconds.

bundle: bytes

Feed-specific opaque bundle payload.

block_number: int

Block containing the accepted report.

block_timestamp: Optional[datetime.datetime]

Naive UTC timestamp of the containing block, when returned by Hypersync.

transaction_hash: str

Transaction hash containing the report.

log_index: int

Event position in the transaction receipt.

property update_time: datetime.datetime

Return the report timestamp as a naive UTC datetime.

decode_decimal(index, decimals, *, signed=False)

Decode a feed-specific numeric bundle field.

Parameters
  • index (int) – Zero-based bundle field index.

  • decimals (int) – Feed-specific decimal scale for this field.

  • signed (bool) – Decode a signed integer field.

Returns

Human-readable decimal value.

Return type

decimal.Decimal

__init__(aggregator_address, data_id, updated_at, bundle, block_number, block_timestamp, transaction_hash, log_index)
Parameters
Return type

None