7 releases (stable)

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

#6 in #pending


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–13MB
~170K SLoC