Documentation Index
Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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
| 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
function removePauseRule(uint64 _pauseStart, uint64 _pauseStop) external;
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
function cleanOutdatedRules() external;
getPauseRules
Get the pauseRules data for a given tokenName.
function getPauseRules() external view returns (PauseRule[] memory);
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
function isPauseRulesEmpty() external view returns (bool);
Returns
| Name | Type | Description |
|---|
<none> | bool | true if empty |