I am looking for a way to automate the execution of a function.
Here is a very simple example of a function that will change the state of a boolean variable.
pragma solidity ^0.8.2;
contract Test{
bool public myVar = false;
function setBool(bool setVarBool) public
{
myVar = setVarBool;
}
}
So I'm looking for a way to automate the execution of this function, so that tomorrow for example, the state of this variable changes. I searched on Google, I saw that it was necessary to use Oracles. However I didn't understand how to implement them.
Could someone here who has already worked with Oracle / Planners please help me?