ZeroToken
Inherits: IZeroToken, EpochBasedVoteToken
Author: M^0 Labs
State Variables
standardGovernorDeployer
Returns the address of the Standard Governor Deployer.
Functions
onlyStandardGovernor
Revert if the caller is not the Standard Governor.
constructor
Constructs a new ZeroToken contract.
Parameters
standardGovernorDeployer_
address
The address of the StandardGovernorDeployer contract.
initialAccounts_
address[]
The addresses of the accounts to mint tokens to.
initialBalances_
uint256[]
The amounts of tokens to mint to the accounts.
mint
Mints amount
token to recipient
.
Parameters
recipient_
address
amount_
uint256
pastBalancesOf
Returns an array of token balances of account
between startEpoch
and endEpoch
past inclusive clocks.
Parameters
account_
address
startEpoch_
uint256
endEpoch_
uint256
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
endEpoch_
uint256
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.
_getValuesBetween
Returns the values of amountSnaps_
between startEpoch_
and endEpoch_
.
Parameters
amountSnaps_
AmountSnap[]
The array of AmountSnaps to query.
startEpoch_
uint16
The epoch from which to start querying.
endEpoch_
uint16
The epoch at which to stop querying.
Returns
values_
uint256[]
The values of amountSnaps_
between startEpoch_
and endEpoch_
.