Ok so recently, i’ve set in New Owner of my contract Chef, the Timelock. But my question is, how can I interact with my first contract (I’m the owner of Timelock who are the owner of Masterchef)
Because, others platforms can interact with Chef and execute function, but how can I do the same thing ?
Generally speaking, there will be another contract Governance.sol, it can vote for proposals.
So for your timelock contract, I think it should be wait for some time -> queue() -> wait for some time -> execute(), but this all depends on your parameters.
I’m sorry I missed your message, just like I said above, generally speaking, there will be a Goverance.sol contract to control this TImelock.sol contract, but I think it is ok, you can interact with Timelock.sol contract directly.
But before you call executeTransaction(), you should call queueTransaction() at first, as for parameters, I think it should be
target ------->>> masterchef contract address
value -------->>> 0(no eth transfer)
signature ---->>> "add(uint256,address,bool)"
data -------->>> web3.eth.abi.encodeParameters([uint256,address,bool],YOUR_PARA1,YOUR_PARA2,YOUR_PARA3)
eta -------->>> `eta` should be greater than `getBlockTimestamp().add(delay)`