IEpochBasedVoteToken
Inherits: IERC5805, IERC20Extended
Author: M^0 Labs
Functions
delegateBySig
Changes the voting power delegation for account
to delegatee
.
Parameters
Name | Type | Description |
---|---|---|
|
| The purported address of the signing account. |
|
| The address the voting power of |
|
| The nonce used for the signature. |
|
| The timestamp until which the signature is still valid. |
|
| A byte array signature. |
getDelegationDigest
Returns the digest to be signed, via EIP-712, given an internal digest (i.e. hash struct).
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the delegatee to delegate to. |
|
| The nonce of the account delegating. |
|
| The timestamp until which the signature is still valid. |
Returns
Name | Type | Description |
---|---|---|
|
| The digest to be signed. |
pastBalanceOf
Returns the token balance of account
at a past clock value epoch
.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of some account. |
|
| The epoch number as a clock value. |
Returns
Name | Type | Description |
---|---|---|
|
| The token balance |
pastDelegates
Returns the delegatee of account
at a past clock value epoch
.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of some account. |
|
| The epoch number as a clock value. |
Returns
Name | Type | Description |
---|---|---|
|
| The delegatee of the voting power of |
pastTotalSupply
Returns the total token supply at a past clock value epoch
.
Parameters
Name | Type | Description |
---|---|---|
|
| The epoch number as a clock value. |
Returns
Name | Type | Description |
---|---|---|
|
| The total token supply at |
Errors
EpochZero
Revert message when the provided epoch is zero.