Copyright 2024 M^0 Foundation
Inherits: IBatchGovernor
Author: M^0 Labs
Sends the proposal fee for proposal proposalId
to the vault, if it is Defeated or Expired.
Parameters
Name | Type | Description |
---|---|---|
Set the cash token and proposal fee to be used to create proposals going forward.
Parameters
Name | Type | Description |
---|---|---|
One of the valid proposals. Adds account
to list
at the Registrar.
Parameters
One of the valid proposals. Removes account
to list
at the Registrar.
Parameters
One of the valid proposals. Removes accountToRemove
and adds accountToAdd
to list
at the Registrar.
Parameters
One of the valid proposals. Sets key
to value
at the Registrar.
Parameters
One of the valid proposals. Sets the proposal fee of the Standard Governor.
Parameters
Returns the required amount of cashToken it costs an account to create a proposal.
Returns all the proposal details for a proposal with identifier proposalId
.
Parameters
Returns
Returns the proposal fee information.
Parameters
Returns
Returns the maximum amount of Zero Token that can be rewarded to all vote casters per active epoch.
Returns the number of proposals at epoch epoch
.
Parameters
Returns
Returns the number of proposals that were voted on at epoch
.
Parameters
Returns
Returns whether voter
has voted on all proposals in epoch
.
Parameters
Returns
Returns the address of the Cash Token.
Returns the address of the Emergency Governor.
Returns the address of the Registrar.
Returns the address of the Vault.
Returns the address of the Zero Governor.
Returns the address of the Zero Token.
Emitted when the cash token is set to cashToken
.
Parameters
Emitted when voter
has voted on all the proposals in the current epoch currentEpoch
.
Parameters
Emitted when the proposal fee for the proposal, with identifier proposalFee
, is sent to the vault.
Parameters
Emitted when the proposal fee is set to proposalFee
.
Parameters
Revert message when the proposal fee for a yet defeated or yet expired proposal is trying to be moved.
Parameters
Revert message when the Cash Token specified in the constructor is address(0).
Revert message when the Emergency Governor specified in the constructor is address(0).
Revert message when the Registrar specified in the constructor is address(0).
Revert message when the Vault specified in the constructor is address(0).
Revert message when the Zero Governor specified in the constructor is address(0).
Revert message when the Zero Token specified in the constructor is address(0).
Revert message when proposal fee trying to be moved to the vault is 0.
Revert message when the caller is not this contract itself nor the Emergency Governor.
Revert message when the caller is not the Zero Governor.
Revert message when a token transfer, from this contract, fails.
Revert message when a token transferFrom fails.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
proposalId
uint256
The unique identifier of the proposal.
newCashToken
address
The address of the new cash token.
newProposalFee
uint256
The amount of cash token required onwards to create proposals.
list
bytes32
The key for some list.
account
address
The address of some account to be added.
list
bytes32
The key for some list.
account
address
The address of some account to be removed.
list
bytes32
The key for some list.
accountToRemove
address
The address of some account to be removed.
accountToAdd
address
The address of some account to be added.
key
bytes32
Some key.
value
bytes32
Some value.
newProposalFee
uint256
The new proposal fee.
proposalId
uint256
The unique identifier of the proposal.
voteStart
uint48
The first clock value when voting on the proposal is allowed.
voteEnd
uint48
The last clock value when voting on the proposal is allowed.
state
ProposalState
The state of the proposal.
noVotes
uint256
The amount of votes cast against the proposal.
yesVotes
uint256
The amount of votes cast for the proposal.
proposer
address
The address of the account that created the proposal.
quorum
uint256
The number of votes required to meet quorum.
proposalId
uint256
The unique identifier of the proposal.
cashToken
address
The address of the cash token for this particular proposal fee.
amount
uint256
The amount of cash token of the proposal fee.
epoch
uint256
The epoch as a clock value.
<none>
uint256
The number of proposals at epoch epoch
.
voter
address
The address of some account.
epoch
uint256
The epoch as a clock value.
<none>
uint256
The number of proposals at epoch
.
voter
address
The address of some account.
epoch
uint256
The epoch as a clock value.
<none>
bool
Whether voter
has voted on all proposals in epoch
.
cashToken
address
The address of the cash token taking effect.
voter
address
The address of the account voting.
currentEpoch
uint256
The current epoch number as a clock value.
proposalId
uint256
The unique identifier of the proposal.
cashToken
address
The address of the cash token for this particular proposal fee.
amount
uint256
The amount of cash token of the proposal fee.
proposalFee
uint256
The amount of cash token required onwards to create proposals.
state
ProposalState
The current state of the proposal.