Skip to content

Commit

Permalink
Sequence diagram for delegation
Browse files Browse the repository at this point in the history
  • Loading branch information
corydickson committed Aug 1, 2024
1 parent 4653566 commit 24613f5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions governance/delegation-interop.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,21 @@ The new storage values will be used to keep track of both the voting power that
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
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.

```mermaid
sequenceDiagram
participant delegate
participant GovernanceDelegationA as GovernanceDelegation (Chain A)
participant GovernanceDelegationB as GovernanceDelegation (Chain B)
participant Inbox as CrossL2Inbox
participant Messenger_A as L2ToL2CrossDomainMessenger (Chain A)
participant Messenger_B as L2ToL2CrossDomainMessenger (Chain B)
delegate->>GovernanceDelegationA: delegate(delegatee)
GovernanceDelegationA->>GovernanceDelegationA: announcePastVotes(delegatee, blockNumber)
AlligatorSuperChain->>Messenger_A: sendMessage(nativeChainId, message)
Messenger_A->>Inbox: executeMessage()
Inbox->>Messenger_B: relayMessage()
Messenger_B->>GovernanceDelegationB: getPastVotes(delegate, blockNumber, chainId)
```

## Invariants

Expand Down

0 comments on commit 24613f5

Please sign in to comment.