Life-cycle of a Transaction
Last updated
Last updated
The diagram below illustrates a typical scenario for the MMA protocol (click on the image to see an enlarged version). The Uniswap DAO wants to send a governance action message to a remote chain for execution. An example of such a message could be changing fee parameters on the Uniswap deployment on the destination chain.
The life cycle of a cross-chain governance transaction proceeds as follows, once it has passed the standard process of on-chain voting and time-lock queue on the governance chain (Ethereum):
The governance message is sent from the Uniswap V2 Timelock contract to the MultiBridgeMessageSender
contract
The MultiBridgeMessageSender
sends the message to all available AMB sender adapters (a caller could choose to exclude one or more AMBs in this process)
The AMB sender adapters (IMessageSenderAdapter
) send the message to AMB-specific components to relay the message to the intended destination
AMB receiver adapters receive the message from off-chain components (e.g. bridge validators or relayers) and forward them to the MultiBridgeMessageReceiver
Once enough AMBs have relayed a specific message (i.e. a quorum has been achieved), anyone can call scheduleMessageExecution()
on the MultiBridgeMessageReceiver
which then queues the message for execution on the governance timelock.
Once a configured delay period has elapsed on the governance timelock, anyone can execute a time-locked message, which performs the intended execution on the target contract on the destination chain.