Skip to main content

GovernorBravoDelegator

Git Source

Inherits: GovernorBravoDelegatorStorage, IGovernorBravoEventsAndErrors

Functions​

constructor​

constructor(
address timelock_,
address gohm_,
address kernel_,
address vetoGuardian_,
address implementation_,
uint256 votingPeriod_,
uint256 votingDelay_,
uint256 activationGracePeriod_,
uint256 proposalThreshold_
) ;

_setImplementation​

Called by the admin to update the implementation of the delegator

function _setImplementation(address implementation_) public;

Parameters

NameTypeDescription
implementation_addressThe address of the new implementation for delegation

delegateTo​

Internal method to delegate execution to another contract

It returns to the external caller whatever the implementation returns or forwards reverts

function delegateTo(address callee, bytes memory data) internal;

Parameters

NameTypeDescription
calleeaddressThe contract to delegatecall
databytesThe raw data to delegatecall

fallback​

Delegates execution to an implementation contract. It returns to the external caller whatever the implementation returns or forwards reverts.

fallback() external payable;