7 releases (stable)

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

#1904 in Magic Beans

Download history 35/week @ 2024-01-10 82/week @ 2024-01-17 108/week @ 2024-01-24 61/week @ 2024-01-31 106/week @ 2024-02-07 212/week @ 2024-02-14 127/week @ 2024-02-21 92/week @ 2024-02-28 189/week @ 2024-03-06 190/week @ 2024-03-13 65/week @ 2024-03-20 39/week @ 2024-03-27 60/week @ 2024-04-03 84/week @ 2024-04-10 92/week @ 2024-04-17 127/week @ 2024-04-24

381 downloads per month
Used in 2 crates

MIT/Apache

280KB
6.5K SLoC

Smart contract for managing CronCats agents

Agents contract queries:

Query Description
GetAgent Get an agent by specified account_id, returns AgentInfo if found
GetAgentIds Gets the id list of agents, pagination is supported
GetAgentTasks Gets the id list of agents, pagination is supported
Config Gets the agent contract configuration

Agents contract actions:

Execute Description
RegisterAgent Action registers new agent
UpdateAgent Action for updating agents
CheckInAgent Action moves agent from pending to active list
UnregisterAgent Actions for removing agent from the system
UpdateConfig Action for updating agent contract configuration

Dependencies

~6–14MB
~169K SLoC