0x53a328f4086d7c0f1fa19e594c9b842125263026
Solidity v0.5.16+commit.9c3226ce
管理与风险
谁能修改规则?
Detected upgradeable controls from the verified ABI.
当前控制
- Admin
- 0x0000000000000000000000000000000000000000 (无)
- Implementation
- 0x0000000000000000000000000000000000000000 (无)
概览
读取函数
Block #25,495,057 · just nowReturns the EIP-712 ballot type hash used to build vote signatures.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 type hash used to encode ballot structs for EIP-712 signing.✨ AI |
Returns the EIP-712 domain typehash used by the governor for signature verification.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The EIP-712 domain typehash as a bytes32 value used when hashing and verifying typed signatures.✨ AI |
Returns the maximum allowed proposal threshold used to determine eligibility to create a governance proposal.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Maximum proposal threshold (uint256): the highest allowed voting power required to create a proposal.✨ AI |
Returns the maximum allowed voting delay for proposals.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Maximum allowed voting delay, in blocks.✨ AI |
Provides the maximum allowed voting period for proposals.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Maximum voting period for proposals, expressed in blocks.✨ AI |
Returns the minimum number of votes required to create a proposal.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The minimum vote threshold (uint256) required to submit a proposal.✨ AI |
Returns the protocol's minimum voting delay in blocks.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Minimum voting delay expressed as a number of blocks before voting on a proposal can start.✨ AI |
Returns the minimum number of blocks a proposal must remain open for voting.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Minimum voting period expressed in number of blocks.✨ AI |
Return the current admin address of the GovernorBravoDelegate contract.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address that holds administrative privileges for governance (can perform upgrades and admin actions).✨ AI |
Gets actions of a proposal
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| proposalId | uint256 | the id of the proposal |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| 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
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| proposalId | uint256 | the id of proposal |
| voter | address | The address of the voter |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | tuple | The voting receipt |
Return the current implementation address used by this governor contract.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The current implementation contract address that this delegate forwards calls to.✨ AI |
Return the initial proposal id used to assign proposal identifiers.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The initial proposal id as a uint256 value representing the starting proposal identifier.✨ AI |
Return the id of the latest proposal created by the given proposer.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Latest proposal id created by the address (0 if none).✨ AI |
Returns the governor contract's name.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The human-readable name of the governor contract.✨ AI |
View the address currently designated to become the contract admin but not yet accepted.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address proposed as pending admin; this account can accept the admin role.✨ AI |
The total number of proposals
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
Returns the maximum number of operations allowed in a single proposal.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Maximum number of operations (actions) permitted in a single proposal as a uint256.✨ AI |
Return the current proposal threshold — the minimum votes required to create a proposal.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The proposal threshold as a uint256: minimum number of votes required to submit a proposal.✨ AI |
Returns the stored proposal details for the specified proposal id.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| id | uint256 | The proposal's unique identifier.✨ AI |
| proposer | address | Address of the account that created the proposal.✨ AI |
| eta | uint256 | ETA timestamp when the queued proposal becomes executable (0 if not queued).✨ AI |
| startBlock | uint256 | Block number when voting on the proposal begins.✨ AI |
| endBlock | uint256 | Block number when voting on the proposal ends.✨ AI |
| forVotes | uint256 | Total number of votes in favor.✨ AI |
| againstVotes | uint256 | Total number of votes against.✨ AI |
| abstainVotes | uint256 | Total number of abstain votes.✨ AI |
| canceled | bool | True if the proposal has been canceled.✨ AI |
| executed | bool | True if the proposal has been executed.✨ AI |
Returns the current number of votes required for a proposal to reach quorum.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The minimum number of votes required for a proposal to reach quorum, expressed in raw voting units (uint256).✨ AI |
Gets the state of a proposal
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| proposalId | uint256 | The id of the proposal |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | Proposal state |
Returns the address of the timelock contract that the governor uses to execute delayed actions.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The timelock contract address used to schedule and execute governance transactions.✨ AI |
Returns the address of the UNI token contract tracked by the governor.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The UNI token contract address used by the GovernorBravoDelegate for governance operations.✨ AI |
Returns the number of blocks that must elapse before voting starts on a proposal.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The voting delay expressed as a number of blocks before voting begins.✨ AI |
Returns the current voting period length in blocks.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The voting period duration expressed as a number of blocks.✨ AI |
写入函数
Accepts transfer of admin rights. msg.sender must be pendingAdmin
Initiate the GovernorBravo contract
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| proposalCount | uint256 | proposal id to initialize from |
Begins transfer of admin rights. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newPendingAdmin | address | New pending admin. |
Admin function for setting the proposal threshold
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newProposalThreshold | uint256 | new proposal threshold |
Admin function for setting the voting delay
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newVotingDelay | uint256 | new voting delay, in blocks |
Admin function for setting the voting period
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newVotingPeriod | uint256 | new voting period, in blocks |
Cancels a proposal only if sender is the proposer, or proposer delegates dropped below proposal threshold
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| proposalId | uint256 | The id of the proposal to cancel |
Cast a vote for a proposal
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| proposalId | uint256 | |
| support | uint8 | |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
Cast a vote for a proposal with a reason
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| proposalId | uint256 | The id of the proposal to execute |
Used to initialize the contract during delegator contructor
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Proposal id of new proposal |
Queues a proposal of state succeeded
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| proposalId | uint256 | The id of the proposal to queue |
事件
Emitted when pendingAdmin is accepted, which means admin is updated
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldAdmin | address | ||
| newAdmin | address |
Emitted when implementation is changed
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldImplementation | address | ||
| newImplementation | address |
Emitted when pendingAdmin is changed
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldPendingAdmin | address | ||
| newPendingAdmin | address |
An event emitted when a proposal has been canceled
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| id | uint256 |
An event emitted when a new proposal is created
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| 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
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| id | uint256 |
An event emitted when a proposal has been queued in the Timelock
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| id | uint256 | ||
| eta | uint256 |
Emitted when proposal threshold is set
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldProposalThreshold | uint256 | ||
| newProposalThreshold | uint256 |
An event emitted when a vote has been cast on a proposal
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| 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
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldVotingDelay | uint256 | ||
| newVotingDelay | uint256 |
An event emitted when the voting period is set
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldVotingPeriod | uint256 | ||
| newVotingPeriod | uint256 |