Skip to content

Commit fae3c88

Browse files
committed
refactor: folder structure
1 parent dede020 commit fae3c88

22 files changed

+20
-24
lines changed

contracts/src/arbitration/CentralizedArbitrator.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
pragma solidity 0.8.18;
44

5-
import {IArbitrableV2, IArbitratorV2} from "./IArbitratorV2.sol";
5+
import {IArbitrableV2, IArbitratorV2} from "./interfaces/IArbitratorV2.sol";
66

77
/// @title Centralized Arbitrator
88
/// @dev This is a centralized arbitrator deciding alone on the result of disputes. It illustrates how IArbitratorV2 interface can be implemented.

contracts/src/arbitration/KlerosCore.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
pragma solidity 0.8.18;
1010

11-
import {IArbitrableV2, IArbitratorV2} from "./IArbitratorV2.sol";
12-
import "./IDisputeKit.sol";
13-
import "./ISortitionModule.sol";
11+
import {IArbitrableV2, IArbitratorV2} from "./interfaces/IArbitratorV2.sol";
12+
import "./interfaces/IDisputeKit.sol";
13+
import "./interfaces/ISortitionModule.sol";
1414
import "../libraries/SafeERC20.sol";
1515

1616
/// @title KlerosCore

contracts/src/arbitration/KlerosGovernor.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
pragma solidity 0.8.18;
99

10-
import {IArbitrableV2, IArbitratorV2} from "./IArbitrableV2.sol";
10+
import {IArbitrableV2, IArbitratorV2} from "./interfaces/IArbitrableV2.sol";
1111
import "../libraries/CappedMath.sol";
1212

1313
/// @title KlerosGovernor for V2. Note that appeal functionality and evidence submission will be handled by the court.

contracts/src/arbitration/SortitionModule.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
pragma solidity 0.8.18;
1212

13-
import "../arbitration/KlerosCore.sol";
14-
import "./ISortitionModule.sol";
15-
import "../arbitration/IDisputeKit.sol";
13+
import "./KlerosCore.sol";
14+
import "./interfaces/ISortitionModule.sol";
15+
import "./interfaces/IDisputeKit.sol";
1616
import "../rng/RNG.sol";
1717

1818
/// @title SortitionModule

contracts/src/arbitration/arbitrables/ArbitrableExample.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
pragma solidity 0.8.18;
44

5-
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
6-
import "../IArbitrable.sol";
7-
import "../../evidence/IMetaEvidence.sol";
5+
import {IArbitrableV2, IArbitratorV2} from "../interfaces/IArbitrableV2.sol";
86

97
/// @title ArbitrableExample
108
/// An example of an arbitrable contract which connects to the arbitator that implements the updated interface.

contracts/src/arbitration/arbitrables/DisputeResolver.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/// @custom:auditors: []
66
/// @custom:bounties: []
77

8-
import "../IArbitrableV2.sol";
8+
import "../interfaces/IArbitrableV2.sol";
99

1010
pragma solidity 0.8.18;
1111

contracts/src/arbitration/dispute-kits/BaseDisputeKit.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
pragma solidity 0.8.18;
1010

11-
import "../IDisputeKit.sol";
11+
import "../interfaces/IDisputeKit.sol";
1212
import "../KlerosCore.sol";
1313

1414
/// @title BaseDisputeKit

contracts/src/arbitration/dispute-kits/DisputeKitClassic.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
pragma solidity 0.8.18;
1010

1111
import "./BaseDisputeKit.sol";
12-
import "../../evidence/IEvidence.sol";
12+
import "../interfaces/IEvidence.sol";
1313

1414
/// @title DisputeKitClassic
1515
/// Dispute kit implementation of the Kleros v1 features including:

contracts/src/arbitration/dispute-kits/DisputeKitSybilResistant.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
pragma solidity 0.8.18;
1010

1111
import "./BaseDisputeKit.sol";
12-
import "../../evidence/IEvidence.sol";
12+
import "../interfaces//IEvidence.sol";
1313

1414
interface IProofOfHumanity {
1515
/// @dev Return true if the submission is registered and not expired.

contracts/src/evidence/EvidenceModule.sol renamed to contracts/src/arbitration/evidence/EvidenceModule.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
pragma solidity 0.8.18;
1111

1212
// TODO: standard interfaces should be placed in a separated repo (?)
13-
import "../arbitration/IArbitratorV2.sol";
13+
import "../interfaces/IArbitratorV2.sol";
1414

1515
/// @title Implementation of the Evidence Standard for cross-chain submissions
1616
contract EvidenceModule {

0 commit comments

Comments
 (0)