-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interfaces v2 #541
Interfaces v2 #541
Conversation
❌ Deploy Preview for kleros-v2 failed.
|
Code Climate has analyzed commit 52239c3e and detected 65 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
2754f39
to
5332653
Compare
Kudos, SonarCloud Quality Gate passed! |
IArbitrableV2 indexed _arbitrator, | ||
uint256 indexed _disputeID, | ||
uint256 _externalDisputeID, | ||
string _disputeContextUri |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In defense of MetaEvidence
event (or equivalent DisputeContext
), if you emit this separately, and then you reference it with an ID, that's much cheaper.
What should I assume the arbitrator do in this instance, store the _disputeContextUri
in storage? Then every challenge will require loading this string from storage (which could be ~6 cold SLOAD or 12k gas when making a challenge).
If you instead were to have the event DisputeContext
and you just pass a _disputeContextID
to Dispute
, then, that's just 1 cold SLOAD.
c53b023
to
7b1c2bf
Compare
Kudos, SonarCloud Quality Gate passed!
|
✅ Deploy Preview for kleros-v2-contracts ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
5eb5055
to
d3470ad
Compare
cb66246
to
4078d04
Compare
…folder And removed intermediate interfaces
Kudos, SonarCloud Quality Gate passed!
|
Supersedes #511