From afd00ae7b893d497e110cb1efd98fbd88dd22b7c Mon Sep 17 00:00:00 2001 From: unknownunknown1 Date: Tue, 5 Nov 2024 02:35:44 +1000 Subject: [PATCH] feat(ForeignProxyAppeals): store dispute block --- contracts/src/RealitioForeignArbitrationProxyWithAppeals.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contracts/src/RealitioForeignArbitrationProxyWithAppeals.sol b/contracts/src/RealitioForeignArbitrationProxyWithAppeals.sol index debcb30..de72bea 100644 --- a/contracts/src/RealitioForeignArbitrationProxyWithAppeals.sol +++ b/contracts/src/RealitioForeignArbitrationProxyWithAppeals.sol @@ -78,6 +78,7 @@ contract RealitioForeignArbitrationProxyWithAppeals is IForeignArbitrationProxy, mapping(uint256 => DisputeDetails) public disputeIDToDisputeDetails; // Maps external dispute ids 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. arbitrationCreatedBlock[disputeID] /* Modifiers */ @@ -182,6 +183,7 @@ contract RealitioForeignArbitrationProxyWithAppeals is IForeignArbitrationProxy, 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;