Defining function inputs
If the function you are automating accepts arguments you have two alternative ways that you can define the arguments.
Pre-define inputs (No resolver)
Pre-defining the function arguments would mean that every time Gelato calls the function, it would be using the same argument.
Dynamic inputs via Resolver
By using a resolver, you can dynamically encode the arguments of the function you are automating.
Here is an example:
This is the function we are automating. increaseCount
increases a counter on the smart contract by amount
which is the argument.
This resolver returns the data to the function call increaseCount
.
The increment on each execution is different every time as countToIncrease
is different after every execution.
Last updated