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

Initial implementation of multi-target CCIP read #28

Open clowestab opened 7 months ago

clowestab commented 7 months ago

This is my initial implementation of multi-target CCIP read. I've had a play with a few APIs/architectures and settled on this one.

The crux new API additions being:

Added tests to demonstrate functionality in the context of two contracts deployed on L1.

Open to feedback, suggestions, and discussion.

Arachnid commented 7 months ago

This is a straightforward way to implement multi-target fetches, but I wonder if there's a tidier option that works by extending the VM; something like this:

WDYT?

clowestab commented 6 months ago

I'm not averse to that option and its a good opportunity for my to keep playing with low-level code. I have some bandwidth so I'll have a play and report back