IZeroToken
Inherits: IEpochBasedVoteToken
Author: M^0 Labs
Functions
mint
Mints amount
token to recipient
.
Parameters
recipient
address
The address of the account receiving minted token.
amount
uint256
The amount of token to mint.
pastBalancesOf
Returns an array of token balances of account
between startEpoch
and endEpoch
past inclusive clocks.
Parameters
account
address
The address of some account.
startEpoch
uint256
The starting epoch number as a clock value.
endEpoch
uint256
The ending epoch number as a clock value.
Returns
<none>
uint256[]
An array of token balances, each relating to an epoch in the inclusive range.
pastTotalSupplies
Returns an array of total token supplies between startEpoch
and endEpoch
clocks inclusively.
Parameters
startEpoch
uint256
The starting epoch number as a clock value.
endEpoch
uint256
The ending epoch number as a clock value.
Returns
<none>
uint256[]
An array of total supplies, each relating to an epoch in the inclusive range.
standardGovernor
Returns the address of the Standard Governor.
standardGovernorDeployer
Returns the address of the Standard Governor Deployer.
Errors
ArrayLengthMismatch
Revert message when the length of some accounts array does not equal the length of some balances array.
Parameters
accountsLength
uint256
The length of the accounts array.
balancesLength
uint256
The length of the balances array.
InvalidStandardGovernorDeployerAddress
Revert message when the Standard Governor Deployer specified in the constructor is address(0).
NotStandardGovernor
Revert message when the caller is not the Standard Governor.
StartEpochAfterEndEpoch
Revert message when the start of an inclusive range query is larger than the end.