Step-by-step instructions for using the Cron module through governance
MsgAddSchedule
message contains:
authority
: Address of the governance authorityname
: Unique identifier for the scheduleperiod
: Number of blocks between executionsmsgs
: Array of contract messages to execute
contract
: Address of the contract to callmsg
: JSON string of the message to sendexecution_stage
: When to execute (EXECUTION_STAGE_BEGIN_BLOCKER
or EXECUTION_STAGE_END_BLOCKER
)remove_schedule
proposals for emergency situations:
Issue | Possible Cause | Solution |
---|---|---|
Proposal rejected | Insufficient community support | Engage with community, revise proposal |
Schedule not executing | Execution failures or limit reached | Check contract logic, monitor events |
Execution failures | Invalid message format or contract errors | Test messages manually, check contract state |
Schedule not found | Governance proposal failed | Verify proposal passed and was executed |