ensdomains / evmgateway

This repository implements a generic CCIP-Read gateway for fetching state proofs of data on other EVM chains. The intended use is for contracts on L1 to be able to fetch and verify data from contracts on L2 in a read context.
MIT License
128 stars 28 forks source link

Add checking that the block is the right age. #47

Open makoto opened 3 months ago

makoto commented 3 months ago

https://github.com/ensdomains/evmgateway/pull/42#discussion_r1599671232

One possible implementation is

  1. Contract returns min and max block as part of extradata on OffchainData error
  2. Callback function checks if the fetched data is within the boundary