Hi @drgorilla.eth, I like the ERC design as it is pretty minimal!
We’ve been working on ERC-7786 (crosschain messaging gateways) to define a minimal standard to simply “get a message to another chain”. I tried to implement ERC-7802 on top of ERC-7786. Here’s the code (WIP). We’re planning to include it in the community version of OpenZeppelin Contracts
The idea to combine these 2 standards is because ERC-7802 defines an interface where a bridge address can mint or burn, but I would argue that it would be better if ERC-7802 depends on ERC-7786 to make the crosschain token its messaging gateway. This way, the bridge integration is abstracted away and the ERC20 can expose a crosschainTransfer
that burns tokens on the source chain and relays a mint instruction to the destination chain.
EDIT: I’m rethinking the crosschainTransfer
idea since I see the reasoning behind offloading the logic from the token. Still, we appreciate feedback, we’re planning to put this into the library pretty soon