Git Source

Inherits: IPauseRuleErrors

Author: @ShaneDuncan602, @oscarsernarosero, @TJ-Everett

Contains data structure for a pause rule and the interface

Contains Pause Rule Storage and retrieval function definitions

Functions

addPauseRule

Add the pause rule to the account. Restricted to the owner

function addPauseRule(uint64 _pauseStart, uint64 _pauseStop) external;

Parameters

NameTypeDescription
_pauseStartuint64pause window start timestamp
_pauseStopuint64pause window stop timestamp

removePauseRule

Remove the pause rule from the account. Restricted to the owner

function removePauseRule(uint64 _pauseStart, uint64 _pauseStop) external;

Parameters

NameTypeDescription
_pauseStartuint64pause window start timestamp
_pauseStopuint64pause window stop timestamp

cleanOutdatedRules

Cleans up outdated pause rules by removing them from the mapping

function cleanOutdatedRules() external;

getPauseRules

Get the pauseRules data for a given tokenName.

function getPauseRules() external view returns (PauseRule[] memory);

Returns

NameTypeDescription
<none>PauseRule[]pauseRules all the pause rules for the token

isPauseRulesEmpty

return true if pause rules is empty and return false if array contains rules

Return a bool for if the PauseRule array is empty

function isPauseRulesEmpty() external view returns (bool);

Returns

NameTypeDescription
<none>booltrue if empty