Update ERC-7786: Add `requestRelay`
Questions:
- Should this functionality be in a contract separate from the gateway?
- Should we define a quoting/estimation mechanism for gas price?
- Should it be possible to pay with a different token?
✅ All reviewers have approved.
- Should it be possible to pay with a different token?
I don't think this should be part of the standard. I think gas services will implement this, but it shouldn't be required.
- Should we define a quoting/estimation mechanism for gas price?
I think so. I think more generally there should just be an estimate fee mechanism, that returns exactly what the user should pay to get the message delivered and executed. So it would also include any sort of fixed costs, in addition to the gas price.
- Should this functionality be in a contract separate from the gateway?
I think the gateway should include these functions, so that way everything a user needs to send a cross chain message is encapsulated in one contract. But it should be possible for a separate contract to implement just the gas service part of the interface, so that way users can use a different gas service than whatever is tied to the gateway.
This PR now builds on https://github.com/ethereum/ERCs/pull/1050 so until that PR is merged the diff in the Files tab is not helpful. I recommend looking at the diff here instead.
The commit 86036fdfc646cfc19527ce2ba50c9c2ed17c16ef (as a parent of 74d561298fe87aa3f89b959275b284e9d4dcddad) contains errors. Please inspect the Run Summary for details.
Will propose as separate ERC in the future.