-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MultiOffRamp - family-agnostic messages (#1117)
## Motivation The Multi-OffRamp can be converted to be family agnostic by using more generic `Any2EVM` structures and breaking the reliance on abi hashing ## Solution * Remove `metadataHash` and use an implicit metadata hash composed of `(prefix, srcChainSelector, destChainSelector, onRampAddress)` * Convert `EVM2EVMMessage` to `Any2EVMRampMessage`, which uses a generic `bytes sender` * Decouple `messageId` from `hash(message)` * Out-of-scope: EVM2Any OnRamp changes Sample on why hashes between Any2X and X2Any are no longer equivalent: ``` Solana: - messageId: hash(Sol2AnyMessage msg) - (Sol2Any message could contain some extra fields that are SOL-specific) Off-chain: - Sol2AnyMessage -> Any2AnyMessage -> Any2EVMMessage - Route SOL -> Ethereum Ethereum: - messageId: hash(Any2EVMMessage msg) - (Any2EVMMessage will contain some EVM-specific fields, but not the SOL specific fields) hash(Sol2AnyMessage) != hash(Any2EVMMessage) ``` --------- Co-authored-by: Makram <[email protected]>
- Loading branch information
1 parent
2713d42
commit 5ca3364
Showing
17 changed files
with
1,243 additions
and
1,170 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.