Skip to content

Commit

Permalink
interop: add L2ToL2CrossDomainMessenger predeploy invariants (#469)
Browse files Browse the repository at this point in the history
* chore: add missing invariants

* chore: address review comment

* chore: run fix lint
  • Loading branch information
hexshire authored Dec 3, 2024
1 parent 8637f50 commit 3abc17a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions specs/interop/predeploys.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- [`Identifier` Getters](#identifier-getters)
- [L2ToL2CrossDomainMessenger](#l2tol2crossdomainmessenger)
- [`relayMessage` Invariants](#relaymessage-invariants)
- [`sendMessage` Invariants](#sendmessage-invariants)
- [Message Versioning](#message-versioning)
- [No Native Support for Cross Chain Ether Sends](#no-native-support-for-cross-chain-ether-sends)
- [Interfaces](#interfaces)
Expand Down Expand Up @@ -277,6 +278,12 @@ as well as domain binding, ie the executing transaction can only be valid on a s

- The `Identifier.origin` MUST be `address(L2ToL2CrossDomainMessenger)`
- The `_destination` chain id MUST be equal to the local chain id
- Messages MUST NOT be relayed more than once

### `sendMessage` Invariants

- Sent Messages MUST be uniquely identifiable
- It must emit the `SentMessage` event

### Message Versioning

Expand Down

0 comments on commit 3abc17a

Please sign in to comment.