OmnichainGovernanceExecutor
Executes the proposal transactions sent from the main chain
enum ProposalType {
NORMAL,
FASTTRACK,
CRITICAL
}
struct Proposal {
uint256 id;
uint256 eta;
address[] targets;
uint256[] values;
string[] signatures;
bytes[] calldatas;
bool canceled;
bool executed;
uint8 proposalType;
}
A privileged role that can cancel any proposal
Stores BNB chain layerzero endpoint id
lastProposalReceived
Last proposal count received
The official record of all proposals ever proposed
proposalTimelocks
Mapping containing Timelock addresses for each proposal type
Represents queue state of proposal
Update source layerzero endpoint id
Parameters
The new source chain id to be set
📅 Events
Emit SetSrcChainId with old and new source id
⛔️ Access Requirements
Sets the new executor guardian
Parameters
The address of the new guardian
📅 Events
Emit NewGuardian with old and new guardian address
⛔️ Access Requirements
Must be call by guardian or owner
Add timelocks to the ProposalTimelocks mapping
Parameters
Array of addresses of all 3 timelocks
📅 Events
Emits TimelockAdded with old and new timelock and route type
⛔️ Access Requirements
Executes a queued proposal if eta has passed
Parameters
Id of proposal that is to be executed
📅 Events
Emits ProposalExecuted with proposal id of executed proposal
Cancels a proposal only if sender is the guardian and proposal is not executed
Parameters
Id of proposal that is to be canceled
📅 Events
Emits ProposalCanceled with proposal id of the canceled proposal
⛔️ Access Requirements
Sender must be the guardian
setTimelockPendingAdmin
Sets the new pending admin of the Timelock
Parameters
Address of new pending admin
📅 Events
Emits SetTimelockPendingAdmin with new pending admin and proposal type
⛔️ Access Requirements
Resends a previously failed message
Parameters
Source address => local app address + remote app address
Nonce to identify failed message
The payload of the message to be retried
⛔️ Access Requirements
Gets the state of a proposal
Parameters
Return Values
enum OmnichainGovernanceExecutor.ProposalState
Last updated