relevant tag icon
Cross-chain Oracle L1 Governor Hub
copy icon
UMA
• version 1.0.0
Governor
Oracle
Hub
Cross-Chain
Audited

Cross-chain Oracle L1 Governor Hub

Audited

Governance relayer contract to be deployed on Ethereum that receives messages from the owner (Governor) and sends them to spoke contracts on child chains.

*Visit desktop site to download or deploy

Version

1.0.0

Creator

UMA

Last Publish

11/5/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
setMessenger(uint256) :
This function allows the owner of the contract to set a ParentMessengerInterface messenger for a given chainId. The function is declared as public and nonReentrant, meaning that it can only be called once and that it is accessible to anyone. The function also emits an event, SetParentMessenger, which logs the chainId and the address of the messenger. (autogenerated documentation)
relayGovernance(uint256) :
This function is used to relay governance requests from the parent chain to a child chain. It takes in a chain ID and an array of GovernorSpoke.Call objects as parameters. It then encodes the calls into a byte array and sends it to the child chain using the messenger associated with the chain ID. Finally, it emits an event with the chain ID, messenger address, calls, and data sent to the child chain. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i uma-governor-hub
copy icon

Last Publish

11/5/2022

Version

1.0.0

Creator

UMA

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.