Skip to content

IVPContractEvents#

Events interface for vote-power related operations.

Events#

Delegate#

Defined in IVPContractEvents (Docs, Source).

event Delegate(
    address from,
    address to,
    uint256 priorVotePower,
    uint256 newVotePower
)

Emitted when the amount of vote power delegated from one account to another changes.

Note: This event is always emitted from VPToken's writeVotePowerContract.

Parameters Type Description
from address The account that has changed the amount of vote power it is delegating.
to address The account whose received vote power has changed.
priorVotePower uint256 The vote power originally delegated.
newVotePower uint256 The new vote power that triggered this event. It can be 0 if the delegation is completely canceled.

Revoke#

Defined in IVPContractEvents (Docs, Source).

event Revoke(
    address delegator,
    address delegatee,
    uint256 votePower,
    uint256 blockNumber
)

Emitted when an account revokes its vote power delegation to another account for a single current or past block (typically the current vote block).

Note: This event is always emitted from VPToken's writeVotePowerContract or readVotePowerContract.

See revokeDelegationAt in IVPToken.

Parameters Type Description
delegator address The account that revoked the delegation.
delegatee address The account that has been revoked.
votePower uint256 The revoked vote power.
blockNumber uint256 The block number at which the delegation has been revoked.