Module.PROXY
& Module.WEB3_FUNCTION
as modules in ModuleData
_web3FunctionModuleArg
to encode arguments for WEB3_FUNCTION
module.
web3FunctionArgsHex
.
In this example, the Web3Function has 2 arguments, counterW3fAddress
& count
.
schema.json
.
AutomateTaskCreator
_createTask()
execAddress
- Address of the contract which Gelato will callexecDataOrSelector
- Signature of function which Gelato will call / execution data (If Resolver Module is not used. More about modules below)moduleData
- Modules that are enabled for the task. (More about ModuleData below)feeToken
- Use address(0) if using Gelato Gas Tank. Use 0xeeeeee… for ETH or native tokens.ModuleData
RESOLVER
- Define dynamic conditions and execution dataTIME
- Repeated execution at a specific time and interval. (in ms)PROXY
- Your function will be called by a dedicated msg.senderSINGLE_EXEC
- Task is cancelled after one executionWEB3_FUNCTION
- Define a Typescript function to get off-chain execution dataTRIGGER
- Define your execution trigger (Time interval, Event, every block, …)Module.Proxy
in moduleData
is mandatory, otherwise task creation will fail.ModuleData
will look like this if we want to create a task which utilise RESOLVER
, PROXY
& SINGLE_EXEC
Module.
Module[]
must follow the order RESOLVER
, PROXY
, SINGLE_EXEC
, WEB3_FUNCTION
, TRIGGER
_cancelTask()
onlyDedicatedMsgSender
_depositFunds1Balance()
_depositFunds1Balance
method is only available on Polygon