gnosisguild / zodiac-module-reality

A Zodiac module that uses Reality.eth as an oracle for triggering execution on a Safe.
GNU Lesser General Public License v3.0
102 stars 52 forks source link

Add Gnosis Safe Fallback Handler for minimal arbitration support #19

Open rmeissner opened 3 years ago

rmeissner commented 3 years ago

Currently the DAO module uses the connected DAO (normally a Safe) as the arbitrator. The Realitio interface expects the arbitrator to expose some information via on-chain function calls. A fallback handler should be provided that can be set on the DAO safe to return this required information.

Required methods:

rmeissner commented 3 years ago

Comment from realitio team

The right way to do this is probably not to implement the arbitration methods like getDisputeFee (if you don't want them to be used) but just to implement a metadata() function which will return some information about how arbitration is supposed to work - eg for the kleros special case we made it return {"foreignProxy": "something"} and the app could use that to handle the behaviour and show helpful messages to the user about what's going on.