HolderDirections
Source: contracts/peripherals/HolderDirections.sol
Functions that change state
Function
Who can call
Also
execute(bytes32 id)Checked inside the function
open(uint8 kind, uint256 subject, bytes32 directionHash)Anyone
sign(bytes32 id, address holder, uint256[] bondIds, bytes sig)Anyone
tally(bytes32 id, uint256 maxCount)Anyone
Read functions
Anyone can call these; they change nothing.
Function
Returns
agent()address
BLOCK_REPLACEMENT()uint8
controls()address
COST_APPROVAL()uint8
counted(bytes32, uint256)bool
DIRECTION_TYPEHASH()bytes32
direction(bytes32 id)(uint8,bool,bool,uint32,uint64,uint256,bytes32,uint256,uint256,uint256)
directionDigest(bytes32 id, uint256[] bondIds)bytes32
eip712Domain()bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions
EXCLUDED_HOLDER_ROLE()bytes32
register()address
REQUIRED_BPS()uint256
signed(bytes32, address)bool
Events
Event
DirectionExecuted(bytes32 id indexed, uint256 signedValue, uint256 totalValue)DirectionOpened(bytes32 id indexed, uint8 kind, uint256 subject, bytes32 directionHash, uint64 recordTime)DirectionSigned(bytes32 id indexed, address holder indexed, uint256[] bondIds, uint256 value, uint256 signedValue)DirectionTallied(bytes32 id indexed, uint256 cursor, uint256 totalValue, bool complete)EIP712DomainChanged()Errors
Error
AccretionOutOfRange(uint256 yieldBps, uint256 daysLeft)HolderDirectionsBadSignature()HolderDirectionsBond(uint256 bondId)HolderDirectionsInvalid()HolderDirectionsNotReached(uint256 signedValue, uint256 totalValue)InvalidShortString()StringTooLong(string str)