What it offers
- createTask: Create an automated task for scheduled execution
- cancelTask: Cancel an existing automated task
Notes
- Same address across all 7 chains
- Supports time-based triggers, event-based triggers, and custom resolver conditions
- Gelato bots execute tasks when conditions are met, paid via prepaid balance or task fee
- moduleData configures when the task should execute (time interval, resolver function, etc.)
- feeToken: use address(0) for ETH, or an ERC-20 address for token payment
- Module types: 0=Resolver (custom check), 1=Time (interval), 2=Proxy, 3=SingleExec
- args[] contains encoded config for each module
Its names in a program
On Ethereum,Gelato is a namespace: its contracts need no import.
Deployments
ABI
GelatoAutomateABI
import GelatoAutomateABI from "./protocols/gelato/GelatoAutomateABI.json"; Speaks for: automate.
createTask(address execAddress, bytes execDataOrSelector, (uint8[] modules, bytes[] args) moduleData, address feeToken) returns (bytes32 taskId)cancelTask(bytes32 taskId)
Next steps
- Protocols: the other protocols, by what they do.
- Protocols and tokens: calling a contract by its namespace, or through its ABI.
- Glossary: the words these pages use, in plain terms.
