Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
Merge pull request #31 from kleros/feat/arbitration-block
Browse files Browse the repository at this point in the history
feat(ForeignProxy): store dispute block
  • Loading branch information
unknownunknown1 authored Oct 18, 2024
2 parents 3d84eb9 + 4efe538 commit 54a7072
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/src/zkRealitioForeignProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ contract zkRealitioForeignProxy is IForeignArbitrationProxy, IDisputeResolver {
mapping(address => mapping(uint256 => DisputeDetails)) public arbitratorDisputeIDToDisputeDetails; // Maps external dispute ids from a particular arbitrator to local arbitration ID and requester who was able to complete the arbitration request.
mapping(uint256 => bool) public arbitrationIDToDisputeExists; // Whether a dispute has already been created for the given arbitration ID or not.
mapping(uint256 => address) public arbitrationIDToRequester; // Maps arbitration ID to the requester who was able to complete the arbitration request.

mapping(uint256 => uint256) public arbitrationCreatedBlock; // Block of dispute creation.
mapping(uint256 => mapping(uint256 => bool)) public isL2ToL1MessageProcessed; // Is used to indicate that zkSync L2 to L1 message was already processed. isL2ToL1MessageProcessed[l2BlockNumber][messageNumber]

/**
Expand Down Expand Up @@ -343,6 +343,7 @@ contract zkRealitioForeignProxy is IForeignArbitrationProxy, IDisputeResolver {

arbitrationIDToDisputeExists[arbitrationID] = true;
arbitrationIDToRequester[arbitrationID] = _requester;
arbitrationCreatedBlock[disputeID] = block.number;

// At this point, arbitration.deposit is guaranteed to be greater than or equal to the arbitration cost.
uint256 remainder = arbitration.deposit - arbitrationCost;
Expand Down

0 comments on commit 54a7072

Please sign in to comment.