kleros-interaction icon indicating copy to clipboard operation
kleros-interaction copied to clipboard

Make a Standard About Action Callbacks

Open clesaege opened this issue 7 years ago • 8 comments

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.

clesaege avatar Dec 27 '17 16:12 clesaege

By the way, for now it seems we have to use bytes (or do some ugly stuff with the ABI), but we may get something cleaner and backward compatible when https://github.com/ethereum/solidity/issues/1707 will be implemented.

clesaege avatar Dec 28 '17 13:12 clesaege

For now, we'll have to make some sort of "hack", we can come back to standardizing when the required tools will be developed in solidity.

clesaege avatar Jan 03 '18 00:01 clesaege

As discussed in the slack, we can make a standard even without any hack.

"Call Function of Contract with Args when calling it would not revert". We could also specify an interval between each test calls and a maxtime after which we stop calling.

clesaege avatar Jan 05 '18 16:01 clesaege

The link http://1corp.io/snow/docs is broken (I don't find the new link).

n1c01a5 avatar Jun 21 '18 12:06 n1c01a5

I warned Zack about it. They may have abandoned the project.

clesaege avatar Jun 25 '18 17:06 clesaege

No answer, the project seems to be dead, let's not rely on it.

clesaege avatar Jul 27 '18 17:07 clesaege

By the way, for now it seems we have to use bytes (or do some ugly stuff with the ABI)

What for?

epiqueras avatar Sep 14 '18 13:09 epiqueras

Is this still relevant? @satello @clesaege

0xferit avatar Jun 16 '19 15:06 0xferit