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
Name | Type | Description |
---|---|---|
|
| The address of the StandardGovernorDeployer contract. |
|
| The addresses of the accounts to mint tokens to. |
|
| The amounts of tokens to mint to the accounts. |
mint
Mints amount
token to recipient
.
Parameters
Name | Type | Description |
---|---|---|
|
| |
|
|
pastBalancesOf
Returns an array of token balances of account
between startEpoch
and endEpoch
past inclusive clocks.
Parameters
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
|
Returns
Name | Type | Description |
---|---|---|
|
| 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
Name | Type | Description |
---|---|---|
|
| |
|
|
Returns
Name | Type | Description |
---|---|---|
|
| 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
Name | Type | Description |
---|---|---|
|
| The array of AmountSnaps to query. |
|
| The epoch from which to start querying. |
|
| The epoch at which to stop querying. |
Returns
Name | Type | Description |
---|---|---|
|
| The values of |