Skip to content

Commit aae6752

Browse files
committed
chore: merge dev
2 parents 068c649 + aeecb23 commit aae6752

File tree

174 files changed

+3015
-2501
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+3015
-2501
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ web_modules/
8383
.env.test
8484
.env.production
8585

86-
# parcel-bundler cache (https://parceljs.org/)
87-
.cache
88-
.parcel-cache
89-
9086
# Next.js build output
9187
.next
9288
out

contracts/.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ typings/
9696
.env
9797
.env.test
9898

99-
# parcel-bundler cache (https://parceljs.org/)
100-
.cache
101-
10299
# Next.js build output
103100
.next
104101

contracts/hardhat.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dotenv.config();
2121

2222
const config: HardhatUserConfig = {
2323
solidity: {
24-
version: "0.8.18",
24+
version: "0.8.24",
2525
settings: {
2626
optimizer: {
2727
enabled: true,

contracts/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@
6464
"@nomicfoundation/hardhat-chai-matchers": "^2.0.0",
6565
"@nomicfoundation/hardhat-ethers": "^3.0.0",
6666
"@nomiclabs/hardhat-solhint": "^3.0.1",
67-
"@openzeppelin/contracts": "^4.9.5",
67+
"@openzeppelin/contracts": "^5.0.2",
6868
"@typechain/ethers-v6": "^0.5.0",
6969
"@typechain/hardhat": "^9.1.0",
7070
"@types/chai": "^4.3.11",
7171
"@types/mocha": "^10.0.6",
7272
"@types/node": "^20.11.3",
73-
"@wagmi/cli": "^1.5.2",
73+
"@wagmi/cli": "^2.0.3",
7474
"abitype": "^0.10.3",
7575
"chai": "^4.4.1",
7676
"dotenv": "^16.3.1",
@@ -98,6 +98,6 @@
9898
"typescript": "^5.3.3"
9999
},
100100
"dependencies": {
101-
"@kleros/vea-contracts": "^0.3.2"
101+
"@kleros/vea-contracts": "^0.4.0"
102102
}
103103
}

contracts/src/arbitration/CentralizedArbitrator.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
pragma solidity 0.8.18;
3+
pragma solidity 0.8.24;
44

55
import {IArbitrableV2, IArbitratorV2, IERC20} from "./interfaces/IArbitratorV2.sol";
66

@@ -29,9 +29,9 @@ contract CentralizedArbitrator is IArbitratorV2 {
2929
}
3030

3131
struct Round {
32-
mapping(uint256 => uint256) paidFees; // Tracks the fees paid for each choice in this round.
33-
mapping(uint256 => bool) hasPaid; // True if this choice was fully funded, false otherwise.
34-
mapping(address => mapping(uint256 => uint256)) contributions; // Maps contributors to their contributions for each choice.
32+
mapping(uint256 choiceId => uint256) paidFees; // Tracks the fees paid for each choice in this round.
33+
mapping(uint256 choiceId => bool) hasPaid; // True if this choice was fully funded, false otherwise.
34+
mapping(address account => mapping(uint256 choiceId => uint256)) contributions; // Maps contributors to their contributions for each choice.
3535
uint256 feeRewards; // Sum of reimbursable appeal fees available to the parties that made contributions to the ruling that ultimately wins a dispute.
3636
uint256[] fundedChoices; // Stores the choices that are fully funded.
3737
}

contracts/src/arbitration/DisputeTemplateRegistry.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity 0.8.18;
2+
pragma solidity 0.8.24;
33

44
import "../proxy/UUPSProxiable.sol";
55
import "../proxy/Initializable.sol";

contracts/src/arbitration/KlerosCore.sol

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

9-
pragma solidity 0.8.18;
9+
pragma solidity 0.8.24;
1010

1111
import "./KlerosCoreBase.sol";
1212
import {UUPSProxiable} from "../proxy/UUPSProxiable.sol";

contracts/src/arbitration/KlerosCoreBase.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/// @custom:bounties: []
77
/// @custom:deployments: []
88

9-
pragma solidity 0.8.18;
9+
pragma solidity 0.8.24;
1010

1111
import {IArbitrableV2, IArbitratorV2} from "./interfaces/IArbitratorV2.sol";
1212
import {IDisputeKit} from "./interfaces/IDisputeKit.sol";
@@ -41,7 +41,7 @@ abstract contract KlerosCoreBase is IArbitratorV2 {
4141
uint256 feeForJuror; // Arbitration fee paid per juror.
4242
uint256 jurorsForCourtJump; // The appeal after the one that reaches this number of jurors will go to the parent court if any.
4343
uint256[4] timesPerPeriod; // The time allotted to each dispute period in the form `timesPerPeriod[period]`.
44-
mapping(uint256 => bool) supportedDisputeKits; // True if DK with this ID is supported by the court. Note that each court must support classic dispute kit.
44+
mapping(uint256 disputeKitId => bool) supportedDisputeKits; // True if DK with this ID is supported by the court. Note that each court must support classic dispute kit.
4545
bool disabled; // True if the court is disabled. Unused for now, will be implemented later.
4646
}
4747

contracts/src/arbitration/KlerosCoreNeo.sol

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

9-
pragma solidity 0.8.18;
9+
pragma solidity 0.8.24;
1010

1111
import "./KlerosCoreBase.sol";
1212
import {UUPSProxiable} from "../proxy/UUPSProxiable.sol";

contracts/src/arbitration/KlerosGovernor.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/// @custom:auditors: []
66
/// @custom:deployments: []
77

8-
pragma solidity 0.8.18;
8+
pragma solidity 0.8.24;
99

1010
import {IArbitrableV2, IArbitratorV2} from "./interfaces/IArbitrableV2.sol";
1111
import "./interfaces/IDisputeTemplateRegistry.sol";
@@ -31,7 +31,7 @@ contract KlerosGovernor is IArbitrableV2 {
3131
uint256[] submittedLists; // Tracks all lists that were submitted in a session in the form submittedLists[submissionID].
3232
uint256 sumDeposit; // Sum of all submission deposits in a session (minus arbitration fees). This is used to calculate the reward.
3333
Status status; // Status of a session.
34-
mapping(bytes32 => bool) alreadySubmitted; // Indicates whether or not the transaction list was already submitted in order to catch duplicates in the form alreadySubmitted[listHash].
34+
mapping(bytes32 listHash => bool) alreadySubmitted; // Indicates whether or not the transaction list was already submitted in order to catch duplicates in the form alreadySubmitted[listHash].
3535
uint256 durationOffset; // Time in seconds that prolongs the submission period after the first submission, to give other submitters time to react.
3636
}
3737

0 commit comments

Comments
 (0)