Skip to content

Commit f083966

Browse files
committed
Sequence diagram for delegation
Edit diagram
1 parent 4653566 commit f083966

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

governance/delegation-interop.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,21 @@ The new storage values will be used to keep track of both the voting power that
4646
non-migrated tokens. Indexers will now need to be aware of the events being emitted on both OP mainnet and the other L2's that implement the `GovToken` to show checkpoints that have yet
4747
to be processed on the mainnet contract. Each L2 will now have the total cumulative voting power for every partial delegation. Vote retrieval on mainnet will take in a parameter that specifies the height of the latest block it cares about of a given L2 chain.
4848

49+
```mermaid
50+
sequenceDiagram
51+
participant delegate
52+
participant GovernanceDelegationA as GovernanceDelegation (Chain A)
53+
participant GovernanceDelegationB as GovernanceDelegation (Chain B)
54+
participant Inbox as CrossL2Inbox
55+
participant Messenger_A as L2ToL2CrossDomainMessenger (Chain A)
56+
participant Messenger_B as L2ToL2CrossDomainMessenger (Chain B)
57+
delegate->>GovernanceDelegationA: delegate(delegatee)
58+
GovernanceDelegationA->>GovernanceDelegationA: announcePastVotes(delegatee, blockNumber)
59+
GovernanceDelegationA->>Messenger_A: sendMessage(nativeChainId, message)
60+
Messenger_A->>Inbox: executeMessage()
61+
Inbox->>Messenger_B: relayMessage()
62+
Messenger_B->>GovernanceDelegationB: getPastVotes(delegate, blockNumber, chainId)
63+
```
4964

5065
## Invariants
5166

0 commit comments

Comments
 (0)