-
Notifications
You must be signed in to change notification settings - Fork 62
Description
See the example of should-refill in http://1corp.io/snow/docs
-Function with the prefix should_ and the same parameters.
-Return True if need to call.
Ideally the standard should allow to do:
When function1 with args1 of contract1 returns true, call function2 with args2 of contract.
A deamon could watch the blockchain, calling function1 with args1 of contract1 at repeated interval. When it returns true. It should call function2 with args2 of contract2. Incentives could be made with a protocol like snow, the ethereum alarm clock (https://github.com/ethereum-alarm-clock/ethereum-alarm-clock) or another incentive system.
The goal is to be able to have deamon executing some functions of a smart contract which can be called by anyone (like passPeriod, executeRuling and oneShotTokenRepartition in https://github.com/kleros/kleros/blob/master/contracts/KlerosPOC.sol).
This would greatly increase the user experience while using dapps.