Skip to content
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

feat(versioning-proxy): implement a versioning proxy standard and derive an Arbitrator proxy #20

Merged
merged 8 commits into from
Mar 3, 2018

Conversation

epiqueras
Copy link
Contributor

@epiqueras epiqueras commented Feb 21, 2018

Closes #19

@epiqueras epiqueras force-pushed the feat/versioning-proxy branch from e3269ea to 739a55c Compare February 22, 2018 01:22
@clesaege
Copy link
Member

Could you make the proxy a general Arbitrator proxy and not Kleros specific?
Also it seems that some part of the code is not required, let's try make it as small as possible to lower attack surface and audit/bounty costs.

@epiqueras
Copy link
Contributor Author

@clesaege OK.

@epiqueras epiqueras changed the title feat(versioning-proxy): implement a versioning proxy standard and derive an Arbitrator proxy (WIP) feat(versioning-proxy): implement a versioning proxy standard and derive an Arbitrator proxy Mar 2, 2018
return _disputeID;
}

function appeal(uint256 _disputeID, bytes _extraData) public payable onlyIfDisputeExists(_disputeID) returns(uint256 _newDisputeID) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appeal does not return anything, see ethereum/EIPs#792
So in case the appeals goes to a new arbitrator you have to deal with the fact that disputeID are not gonna be the same for the proxy and the arbitratrator. A possible implementation would be to have a mapping:
disputeID->(arbitrator,disputeIDinThisArbitrator).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid incorrect implementation of the standard, you could make it inherit from Arbitrator.

@clesaege clesaege merged commit 245d6b4 into master Mar 3, 2018
@epiqueras epiqueras deleted the feat/versioning-proxy branch March 4, 2018 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants