ethereum-optimism/superchain-registry

validation: remove dependency on `op-bindings`

Closed this issue · 1 comments

These have actually been removed from the monorepo, so depending on them blocks us from updating the validation->optimism dependency.

We can move bindings that we need into the validation package itself, or adopt a more lightweight "cast call" approach to scraping data from chain.

Longer term we can

  • strip down the bindings to only the necessary bits of code
  • use a lighter-weight approach to scraping data from contracts:
    e.g. create some more helpers like this:

func getAddress(method string, contractAddress Address, client *ethclient.Client) (Address, error) {
addr := (common.Address(contractAddress))