IZeroToken
Inherits: IEpochBasedVoteToken
Author: M^0 Labs
Functions
mint
Mints amount
token to recipient
.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the account receiving minted token. |
|
| The amount of token to mint. |
pastBalancesOf
Returns an array of token balances of account
between startEpoch
and endEpoch
past inclusive clocks.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of some account. |
|
| The starting epoch number as a clock value. |
|
| The ending epoch number as a clock value. |
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 |
---|---|---|
|
| The starting epoch number as a clock value. |
|
| The ending epoch number as a clock value. |
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.
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
Name | Type | Description |
---|---|---|
|
| The length of the accounts array. |
|
| 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.