Governor contract deployed on sidechain that receives governance actions from Ethereum.
constructor(contract ChildMessengerInterface _messengerAddress) (public)
processMessageFromParent(bytes data) (public)
Executes governance transaction created on Ethereum.
Can only called by ChildMessenger contract that wants to execute governance action on this child chain that originated from DVM voters on root chain. ChildMessenger should only receive communication from ParentMessenger on mainnet.
- data: Contains the target address and the encoded function selector + ABI encoded params to include in delegated transaction.
ExecutedGovernanceTransaction(address to, bytes data)
Prevents a contract from calling itself, directly or indirectly.
nonReentrant function from another
nonReentrant function is not supported. It is possible to
prevent this from happening by making the
nonReentrant function external, and making it call a
function that does the actual state modification.
Designed to prevent a view-only method from being re-entered during a call to a
nonReentrant() state-changing method.