8 releases (5 stable)

1.0.4 Sep 25, 2023
1.0.3 May 30, 2023
0.1.6-rc.1 Apr 21, 2023

#3 in #cron-cat

Download history 47/week @ 2024-06-16 68/week @ 2024-06-23 146/week @ 2024-06-30 126/week @ 2024-07-07 114/week @ 2024-07-14 111/week @ 2024-07-21 126/week @ 2024-07-28 25/week @ 2024-08-04 102/week @ 2024-08-11 3/week @ 2024-08-18 36/week @ 2024-08-25 87/week @ 2024-09-01 19/week @ 2024-09-08 16/week @ 2024-09-15 11/week @ 2024-09-22 26/week @ 2024-09-29

73 downloads per month
Used in 2 crates

MIT/Apache

360KB
9K SLoC

CronCats tasks contract

Tasks contract queries:

Query Description
Config Gets the tasks contract configuration
CurrentTaskInfo Gets current task information
TasksWithQueriesTotal Get the total amount of tasks with queries
Tasks Get list of active tasks, without queries
TasksWithQueries Get list of active tasks, with queries
Task Simulate task_hash by the given task
SlotHashes Get slot hashes by given slot
SlotIds Get active slots
CurrentTask Get next task to be done
CurrentTaskWithQueries Get task with queries if it's ready
TasksByOwner Get tasks created by the given address

Tasks contract actions:

Execute Description
UpdateConfig Updates the tasks contract config
CreateTask Allows any user or contract to pay for future txns based on a specific schedule contract
RemoveTask Deletes a task in its entirety, returning any remaining balance to task owner
RemoveTaskByManager Remove task, used by the manager if task reached it's stop condition
RescheduleTask Try to reschedule a task, if possible, used by the manager

Dependencies

~6–13MB
~170K SLoC