You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have created a custom Display Interface for kleros arbitration with our dApp.
In the custom Display Interface i need to have access to the case Variables like disputeID and arbitrable contract address.
Roughly: it gets the evidenceDisplayInterfaceURI value from the MetaEvidence and pass the parameters as a URL-encoded JSON-stringified object as the src attribute of an <iframe>:
You can find and example of this parameter being consumed here.
The code above is React-centric, but it boils down to:
// .slice(1) is to remove the `?` character from the searchconstqueryString=decodeURIComponent(window.location.search).slice(1);const{ disputeID, arbitrableContractAddress, arbitratorContractAddress }=JSON.parse(queryString);
Unfortunately we don't plan add support to an alternative method in the near future.
Please let me know if we can help you make it work with the current state of affairs.
Hello,
i have created a custom Display Interface for kleros arbitration with our dApp.
In the custom Display Interface i need to have access to the case Variables like disputeID and arbitrable contract address.
In the evidence Standard (ethereum/EIPs#1497) at the end there is an example for the implementation of the Evidence Display Interface (https://github.com/kleros/kleros-juror-front/blob/cca73c85c8532115d64c8a2cbb2844f1ce4edcc1/src/components/iframes/doges-on-trial-evidence/index.js).
There the variables are retrieved by using onmessage and postMessage.
But this seems to be outdated. I couldn't receive the message like that.
I couldn't find anything with postMessage in the code for the court. So i think this is not implemented. Can you please implement that?
Regards
Sneaker
The text was updated successfully, but these errors were encountered: