T
T
Threshold Network T token
By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it requires users to delegate to themselves to activate checkpoints and have their voting power tracked.
DELEGATION_TYPEHASH
The EIP-712 typehash for the delegation struct used by delegateBySig
.
constructor
delegateBySig
Delegates votes from signatory to delegatee
Parameters
signatory
address
delegatee
address
The address to delegate votes to
deadline
uint256
The time at which to expire the signature
v
uint8
The recovery byte of the signature
r
bytes32
Half of the ECDSA signature pair
s
bytes32
Half of the ECDSA signature pair
delegate
Delegate votes from msg.sender
to delegatee
.
Parameters
delegatee
address
The address to delegate votes to
beforeTokenTransfer
Hook that is called before any transfer of tokens. This includes minting and burning.
Calling conditions:
when
from
andto
are both non-zero,amount
offrom
's tokens will be to transferred toto
.when
from
is zero,amount
tokens will be minted forto
.when
to
is zero,amount
offrom
's tokens will be burned.from
andto
are never both zero.
delegate
Change delegation for delegator
to delegatee
.
Last updated