Skip to main content

ScheduledTasksOps

Asset Tokenization Studio Team

ScheduledTasksOps - Orchestrator for scheduled-task triggering

Deployed once as a separate contract. Facets and storage wrappers call via DELEGATECALL, keeping their bytecode out of the 24 KB EIP-170 limit. The body of ScheduledTasksStorageWrapper.triggerScheduledCrossOrderedTasks (a fat loop) is inlined here exactly once.

Replaces the legacy ScheduledTasksStorageWrapper.callTriggerPendingScheduledCrossOrderedTasks self-CALL helper. The selector-based self-CALL added one diamond fallback dispatch per invocation (~2700 gas); DELEGATECALL via the orchestrator address is ~700 gas and bypasses the dispatch while preserving msg.sender.

Errors​

IsPaused​

error IsPaused()

Thrown when an operation that requires the token to be unpaused is attempted while the token is paused (own flag or any external pause contract).

UnexpectedError​

error UnexpectedError(bytes4 _errorId)

Reverts when an unreachable validation state is detected.

Replaces assertions for defensive handling of logically impossible states.

Parameters​

NameTypeDescription
_errorIdbytes4Identifier of the unexpected validation condition.