-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
132 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity 0.8.22; | ||
|
||
import { DisputeHandlerFacet } from "../protocol/facets/DisputeHandlerFacet.sol"; | ||
|
||
/** | ||
* @title TestDisputeHandlerFacet | ||
* | ||
* @notice Extended DisputeHandlerFacet with additional external functions for testing | ||
*/ | ||
contract TestDisputeHandlerFacet is DisputeHandlerFacet { | ||
/** | ||
* @notice Test function to test invalid final dispute state | ||
* | ||
* @param _exchangeId - the id of the associated exchange | ||
* @param _targetState - target final state | ||
*/ | ||
function finalizeDispute(uint256 _exchangeId, DisputeState _targetState) external { | ||
(, Exchange storage exchange) = fetchExchange(_exchangeId); | ||
(, Dispute storage dispute, DisputeDates storage disputeDates) = fetchDispute(_exchangeId); | ||
finalizeDispute(_exchangeId, exchange, dispute, disputeDates, _targetState, 1000); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters