Skip to content

Commit 56b7b34

Browse files
committed
fix: proxy versions, KlerosCoreSnapshotProxy
1 parent cb7d9b4 commit 56b7b34

File tree

8 files changed

+10
-11
lines changed

8 files changed

+10
-11
lines changed

contracts/src/arbitration/KlerosCore.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import "./KlerosCoreBase.sol";
88
/// @notice KlerosCore implementation with new StakeController architecture for testing environments
99
contract KlerosCore is KlerosCoreBase {
1010
/// @notice Version of the implementation contract
11-
string public constant override version = "0.0.1";
11+
string public constant override version = "0.10.0";
1212

1313
// ************************************* //
1414
// * Constructor * //

contracts/src/arbitration/KlerosCoreBase.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ abstract contract KlerosCoreBase is IArbitratorV2, Initializable, UUPSProxiable
10711071
emit DisputeKitEnabled(_courtID, _disputeKitID, _enable);
10721072
}
10731073

1074-
/// @dev If called only once then set _onError to Revert, otherwise for batch staking set it to Return
1074+
/// @dev It may revert if the stake change in invalid.
10751075
/// @param _account The account to set the stake for.
10761076
/// @param _courtID The ID of the court to set the stake for.
10771077
/// @param _newStake The new stake.

contracts/src/arbitration/KlerosCoreNeo.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
pragma solidity 0.8.24;
44

55
import "./KlerosCoreBase.sol";
6-
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
76

87
/// @title KlerosCoreNeo
98
/// @notice KlerosCore with whitelisted arbitrables
109
contract KlerosCoreNeo is KlerosCoreBase {
11-
string public constant override version = "0.0.1";
10+
string public constant override version = "0.10.0";
1211

1312
// ************************************* //
1413
// * Storage * //

contracts/src/arbitration/SortitionSumTree.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import "../libraries/Constants.sol";
1313
/// @notice Responsible for sortition operations
1414
/// @dev Contains only tree management and drawing logic, no phase management or token operations
1515
contract SortitionSumTree is ISortitionSumTree, Initializable, UUPSProxiable {
16-
string public constant override version = "2.0.0";
16+
string public constant override version = "0.9.0";
1717

1818
// ************************************* //
1919
// * Enums / Structs * //

contracts/src/arbitration/StakeController.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import "../libraries/Constants.sol";
1616
/// @notice Responsible for coordinating between Vault and SortitionSumTree
1717
/// @dev Manages phases, delayed stakes, and coordination logic
1818
contract StakeController is IStakeController, Initializable, UUPSProxiable {
19-
string public constant override version = "1.0.0";
19+
string public constant override version = "0.9.0";
2020

2121
// ************************************* //
2222
// * Enums / Structs * //

contracts/src/arbitration/Vault.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {VaultBase, IERC20} from "./VaultBase.sol";
88
/// @notice PNK Vault for handling deposits, withdrawals, locks, and penalties
99
/// @dev Follows the same pattern as KlerosCore for upgradeable contracts
1010
contract Vault is VaultBase {
11-
string public constant override version = "1.0.0";
11+
string public constant override version = "0.1.0";
1212

1313
// ************************************* //
1414
// * Constructor * //

contracts/src/arbitration/VaultNeo.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
1212
contract VaultNeo is VaultBase {
1313
using SafeERC20 for IERC20;
1414

15-
string public constant override version = "1.0.0";
15+
string public constant override version = "0.1.0";
1616

1717
// ************************************* //
1818
// * Storage * //

contracts/src/arbitration/view/KlerosCoreSnapshotProxy.sol

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

33
pragma solidity 0.8.24;
44

5-
import {ISortitionModule} from "../interfaces/ISortitionModule.sol";
5+
import {IStakeController} from "../interfaces/IStakeController.sol";
66

77
interface IKlerosCore {
8-
function sortitionModule() external view returns (ISortitionModule);
8+
function stakeController() external view returns (IStakeController);
99
}
1010

1111
/// @title KlerosCoreSnapshotProxy
@@ -67,6 +67,6 @@ contract KlerosCoreSnapshotProxy {
6767
/// @param _account The address to query.
6868
/// @return totalStaked Total amount staked in V2 by the address.
6969
function balanceOf(address _account) external view returns (uint256 totalStaked) {
70-
(totalStaked, , , ) = core.sortitionModule().getJurorBalance(_account, 0);
70+
(, , , totalStaked, , ) = core.stakeController().getJurorBalance(_account, 0);
7171
}
7272
}

0 commit comments

Comments
 (0)