Skip to content

Implement prestate loading from superchain-registry standard-prestates #742

Description

@maurelian

Description

Currently the OPCMV200 template hardcodes prestates into the config.toml file. This is error prone
especially when multiple copies of the runbook are needed.

Proposed Changes

  1. Update the config.toml format to specify the key to use for look up in standard-prestates:
absolutePrestates = [
    {absolutePrestate = "prestates.1.5.0-rc.4", chainId = 10},
    {absolutePrestate = "prestates.1.5.0-rc.4", chainId = 1868},
    {absolutePrestate = "prestates.1.5.0-rc.4", chainId = 57073}
]
  1. Update the prestate reading logic to look up the prestate in standard-prestates.toml.
  2. Validation should sanity check that the prestate is 32 bytes long, beginning with 0x03.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions