Uniswap Governor Bravo
Ethereum0x53a328f4086d7c0f1fa19e594c9b842125263026
Solidity v0.5.16+commit.9c3226ce
Admin & Risk
Who can change the rules?
Detected upgradeable controls from the verified ABI.
Current controls
- Admin
- 0x0000000000000000000000000000000000000000 (none)
- Implementation
- 0x0000000000000000000000000000000000000000 (none)
Overview
Read Functions
Block #25,170,748 · just nowReturns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Gets actions of a proposal
Parameters
| Name | Type | Description |
|---|---|---|
| proposalId | uint256 | the id of the proposal |
Returns
| Name | Type | Description |
|---|---|---|
| targets | address[] | Targets, values, signatures, and calldatas of the proposal actions |
| values | uint256[] | |
| signatures | string[] | |
| calldatas | bytes[] |
Gets the receipt for a voter on a given proposal
Parameters
| Name | Type | Description |
|---|---|---|
| proposalId | uint256 | the id of proposal |
| voter | address | The address of the voter |
Returns
| Name | Type | Description |
|---|---|---|
| — | tuple | The voting receipt |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
The total number of proposals
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| id | uint256 | |
| proposer | address | |
| eta | uint256 | |
| startBlock | uint256 | |
| endBlock | uint256 | |
| forVotes | uint256 | |
| againstVotes | uint256 | |
| abstainVotes | uint256 | |
| canceled | bool | |
| executed | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Gets the state of a proposal
Parameters
| Name | Type | Description |
|---|---|---|
| proposalId | uint256 | The id of the proposal |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 | Proposal state |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Write Functions
Accepts transfer of admin rights. msg.sender must be pendingAdmin
Initiate the GovernorBravo contract
Parameters
| Name | Type | Description |
|---|---|---|
| proposalCount | uint256 | proposal id to initialize from |
Begins transfer of admin rights. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.
Parameters
| Name | Type | Description |
|---|---|---|
| newPendingAdmin | address | New pending admin. |
Admin function for setting the proposal threshold
Parameters
| Name | Type | Description |
|---|---|---|
| newProposalThreshold | uint256 | new proposal threshold |
Admin function for setting the voting delay
Parameters
| Name | Type | Description |
|---|---|---|
| newVotingDelay | uint256 | new voting delay, in blocks |
Admin function for setting the voting period
Parameters
| Name | Type | Description |
|---|---|---|
| newVotingPeriod | uint256 | new voting period, in blocks |
Cancels a proposal only if sender is the proposer, or proposer delegates dropped below proposal threshold
Parameters
| Name | Type | Description |
|---|---|---|
| proposalId | uint256 | The id of the proposal to cancel |
Cast a vote for a proposal
Parameters
| Name | Type | Description |
|---|---|---|
| proposalId | uint256 | The id of the proposal to vote on |
| support | uint8 | The support value for the vote. 0=against, 1=for, 2=abstain |
Cast a vote for a proposal by signature
Parameters
| Name | Type | Description |
|---|---|---|
| proposalId | uint256 | |
| support | uint8 | |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
Cast a vote for a proposal with a reason
Parameters
| Name | Type | Description |
|---|---|---|
| proposalId | uint256 | The id of the proposal to vote on |
| support | uint8 | The support value for the vote. 0=against, 1=for, 2=abstain |
| reason | string | The reason given for the vote by the voter |
Executes a queued proposal if eta has passed
Parameters
| Name | Type | Description |
|---|---|---|
| proposalId | uint256 | The id of the proposal to execute |
Used to initialize the contract during delegator contructor
Parameters
| Name | Type | Description |
|---|---|---|
| timelock_ | address | The address of the Timelock |
| uni_ | address | The address of the Uni token |
| votingPeriod_ | uint256 | The initial voting period |
| votingDelay_ | uint256 | The initial voting delay |
| proposalThreshold_ | uint256 | The initial proposal threshold |
Function used to propose a new proposal. Sender must have delegates above the proposal threshold
Parameters
| Name | Type | Description |
|---|---|---|
| targets | address[] | Target addresses for proposal calls |
| values | uint256[] | Eth values for proposal calls |
| signatures | string[] | Function signatures for proposal calls |
| calldatas | bytes[] | Calldatas for proposal calls |
| description | string | String description of the proposal |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Proposal id of new proposal |
Queues a proposal of state succeeded
Parameters
| Name | Type | Description |
|---|---|---|
| proposalId | uint256 | The id of the proposal to queue |
Events
Emitted when pendingAdmin is accepted, which means admin is updated
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldAdmin | address | ||
| newAdmin | address |
Emitted when implementation is changed
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldImplementation | address | ||
| newImplementation | address |
Emitted when pendingAdmin is changed
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldPendingAdmin | address | ||
| newPendingAdmin | address |
An event emitted when a proposal has been canceled
| Name | Type | Indexed | Description |
|---|---|---|---|
| id | uint256 |
An event emitted when a new proposal is created
| Name | Type | Indexed | Description |
|---|---|---|---|
| id | uint256 | ||
| proposer | address | ||
| targets | address[] | ||
| values | uint256[] | ||
| signatures | string[] | ||
| calldatas | bytes[] | ||
| startBlock | uint256 | ||
| endBlock | uint256 | ||
| description | string |
An event emitted when a proposal has been executed in the Timelock
| Name | Type | Indexed | Description |
|---|---|---|---|
| id | uint256 |
An event emitted when a proposal has been queued in the Timelock
| Name | Type | Indexed | Description |
|---|---|---|---|
| id | uint256 | ||
| eta | uint256 |
Emitted when proposal threshold is set
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldProposalThreshold | uint256 | ||
| newProposalThreshold | uint256 |
An event emitted when a vote has been cast on a proposal
| Name | Type | Indexed | Description |
|---|---|---|---|
| voter | address | ✓ | The address which casted a vote |
| proposalId | uint256 | The proposal id which was voted on | |
| support | uint8 | Support value for the vote. 0=against, 1=for, 2=abstain | |
| votes | uint256 | Number of votes which were cast by the voter | |
| reason | string | The reason given for the vote by the voter |
An event emitted when the voting delay is set
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldVotingDelay | uint256 | ||
| newVotingDelay | uint256 |
An event emitted when the voting period is set
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldVotingPeriod | uint256 | ||
| newVotingPeriod | uint256 |