Skip to content

feat: block production #69

Open
Open
@mds1

Description

@mds1

Initial ideas below

Block Times

Fetch the latest block number, and fetch the latest n blocks.

  • If block time deltas are the same, assume that delta is a constant block time.
  • If block times are the same mod x, assume x is the block time (e.g. some blocks may have been missed, like on mainnet)
  • If block times vary, take the median value.
  • For some chains the JSON files will change every time bun fetch-data is run. We will need to add handling for this expected difference to avoid the hourly CI checks from constantly reporting diffs.

Gas Limits and Targets

For OP Stack chains we can get the gas limit from the L1 SystemConfig contract, but there's no way to automatically discover that contract address without adding it as an additional input. Unsure how to do this for other chains.

Metadata

Metadata

Assignees

No one assigned

    Labels

    data updateAdd or modify data fetched for chains

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions