IPauseRules.sol
IPauseRules
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
Parameters
Name | Type | Description |
---|---|---|
_pauseStart | uint64 | pause window start timestamp |
_pauseStop | uint64 | pause window stop timestamp |
removePauseRule
Remove the pause rule from the account. Restricted to the owner
Parameters
Name | Type | Description |
---|---|---|
_pauseStart | uint64 | pause window start timestamp |
_pauseStop | uint64 | pause window stop timestamp |
cleanOutdatedRules
Cleans up outdated pause rules by removing them from the mapping
getPauseRules
Get the pauseRules data for a given tokenName.
Returns
Name | Type | Description |
---|---|---|
<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
Returns
Name | Type | Description |
---|---|---|
<none> | bool | true if empty |