Skip to content

Commit 799dad1

Browse files
committed
chore: clean up
1 parent 8a5fbbd commit 799dad1

22 files changed

+135
-2462
lines changed

contracts/deploy/00-home-chain-arbitration-v2-neo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { deployUpgradable } from "./utils/deployUpgradable";
55
import { HomeChains, isSkipped, isDevnet, PNK, ETH } from "./utils";
66
import { getContractOrDeploy, getContractOrDeployUpgradable } from "./utils/getContractOrDeploy";
77
import { deployERC20AndFaucet, deployERC721 } from "./utils/deployTokens";
8-
import { ChainlinkRNG, DisputeKitClassic, KlerosCoreXNeo, StakeControllerNeo, VaultNeo } from "../typechain-types";
8+
import { ChainlinkRNG, DisputeKitClassic, KlerosCoreNeo, StakeControllerNeo, VaultNeo } from "../typechain-types";
99

1010
const deployArbitrationV2Neo: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
1111
const { ethers, deployments, getNamedAccounts, getChainId } = hre;
@@ -53,7 +53,7 @@ const deployArbitrationV2Neo: DeployFunction = async (hre: HardhatRuntimeEnviron
5353
console.log(`core.changeArbitrableWhitelist(${resolver.address}, true)`);
5454
await core.changeArbitrableWhitelist(resolver.address, true);
5555

56-
await deploy("KlerosCoreXNeoSnapshotProxy", {
56+
await deploy("KlerosCoreNeoSnapshotProxy", {
5757
from: deployer,
5858
contract: "KlerosCoreSnapshotProxy",
5959
args: [deployer, core.target],
@@ -65,7 +65,7 @@ const deployArbitrationV2Neo: DeployFunction = async (hre: HardhatRuntimeEnviron
6565
console.log(`🎫 stPNKNeo: ${stPNK.address}`);
6666
console.log(`🎯 SortitionSumTreeNeo: ${sortitionModuleV2Neo.address}`);
6767
console.log(`🎮 StakeControllerNeo: ${stakeControllerNeo.target}`);
68-
console.log(`⚖️ KlerosCoreXNeo: ${klerosCoreV2Neo.target}`);
68+
console.log(`⚖️ KlerosCoreNeo: ${klerosCoreV2Neo.target}`);
6969
console.log(`🎨 JurorNFT: ${nft.target}`);
7070
console.log(`🔐 DisputeResolver: ${resolver.address}`);
7171
};

contracts/deploy/00-home-chain-arbitration-v2.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { deployUpgradable } from "./utils/deployUpgradable";
55
import { HomeChains, isSkipped, isDevnet, PNK, ETH } from "./utils";
66
import { getContractOrDeploy, getContractOrDeployUpgradable } from "./utils/getContractOrDeploy";
77
import { deployERC20AndFaucet } from "./utils/deployTokens";
8-
import { ChainlinkRNG, DisputeKitClassic, KlerosCoreX, StakeController, Vault } from "../typechain-types";
8+
import { ChainlinkRNG, DisputeKitClassic, KlerosCore, StakeController, Vault } from "../typechain-types";
99
import { changeCurrencyRate } from "./utils/klerosCoreHelper";
1010

1111
const deployArbitrationV2: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
@@ -34,7 +34,7 @@ const deployArbitrationV2: DeployFunction = async (hre: HardhatRuntimeEnvironmen
3434
contract: "DisputeKitClassic",
3535
args: [
3636
deployer,
37-
ZeroAddress, // Placeholder for KlerosCoreX address, configured later
37+
ZeroAddress, // Placeholder for KlerosCore address, configured later
3838
],
3939
log: true,
4040
});
@@ -49,7 +49,7 @@ const deployArbitrationV2: DeployFunction = async (hre: HardhatRuntimeEnvironmen
4949
console.log("calculated future StakeController address for nonce %d: %s", nonce + 5, stakeControllerAddress);
5050

5151
const klerosCoreAddress = getContractAddress(deployer, nonce + 7); // deployed on the 8th tx (nonce+7): Vault Impl tx, Vault Proxy tx, SortitionModule Impl tx, SortitionModule Proxy tx, StakeController Impl tx, StakeController Proxy tx, KlerosCore Impl tx, KlerosCore Proxy tx
52-
console.log("calculated future KlerosCoreX address for nonce %d: %s", nonce + 7, klerosCoreAddress);
52+
console.log("calculated future KlerosCore address for nonce %d: %s", nonce + 7, klerosCoreAddress);
5353

5454
const vault = await deployUpgradable(deployments, "Vault", {
5555
from: deployer,
@@ -89,8 +89,8 @@ const deployArbitrationV2: DeployFunction = async (hre: HardhatRuntimeEnvironmen
8989
const feeForJuror = ETH(0.1);
9090
const jurorsForCourtJump = 256;
9191

92-
// Deploy KlerosCoreX (only if not already deployed)
93-
const klerosCoreV2 = await deployUpgradable(deployments, "KlerosCoreX", {
92+
// Deploy KlerosCore (only if not already deployed)
93+
const klerosCoreV2 = await deployUpgradable(deployments, "KlerosCore", {
9494
from: deployer,
9595
args: [
9696
deployer,
@@ -126,7 +126,7 @@ const deployArbitrationV2: DeployFunction = async (hre: HardhatRuntimeEnvironmen
126126
await rng.changeSortitionModule(stakeController.address);
127127
}
128128

129-
const core = (await hre.ethers.getContract("KlerosCoreX")) as KlerosCoreX;
129+
const core = (await hre.ethers.getContract("KlerosCore")) as KlerosCore;
130130
try {
131131
await changeCurrencyRate(core, await pnk.getAddress(), true, 12225583, 12);
132132
await changeCurrencyRate(core, await dai.getAddress(), true, 60327783, 11);
@@ -135,7 +135,7 @@ const deployArbitrationV2: DeployFunction = async (hre: HardhatRuntimeEnvironmen
135135
console.error("failed to change currency rates:", e);
136136
}
137137

138-
await deploy("KlerosCoreXSnapshotProxy", {
138+
await deploy("KlerosCoreSnapshotProxy", {
139139
from: deployer,
140140
contract: "KlerosCoreSnapshotProxy",
141141
args: [deployer, core.target],
@@ -146,7 +146,7 @@ const deployArbitrationV2: DeployFunction = async (hre: HardhatRuntimeEnvironmen
146146
console.log(`📦 Vault: ${vault.address}`);
147147
console.log(`🎯 SortitionSumTree: ${sortitionModuleV2.address}`);
148148
console.log(`🎮 StakeController: ${stakeController.address}`);
149-
console.log(`⚖️ KlerosCoreX: ${klerosCoreV2.address}`);
149+
console.log(`⚖️ KlerosCore: ${klerosCoreV2.address}`);
150150
};
151151

152152
deployArbitrationV2.tags = ["ArbitrationV2"];

contracts/deploy/utils/klerosCoreHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { KlerosCore, KlerosCoreNeo, KlerosCoreRuler, KlerosCoreUniversity, KlerosCoreX } from "../../typechain-types";
1+
import { KlerosCore, KlerosCoreNeo, KlerosCoreRuler, KlerosCoreUniversity, KlerosCore } from "../../typechain-types";
22
import { BigNumberish, toBigInt } from "ethers";
33

44
export const changeCurrencyRate = async (
5-
core: KlerosCore | KlerosCoreNeo | KlerosCoreRuler | KlerosCoreUniversity | KlerosCoreX,
5+
core: KlerosCore | KlerosCoreNeo | KlerosCoreRuler | KlerosCoreUniversity | KlerosCore,
66
erc20: string,
77
accepted: boolean,
88
rateInEth: BigNumberish,

contracts/src/arbitration/KlerosCoreX.sol renamed to contracts/src/arbitration/KlerosCore.sol

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

33
pragma solidity 0.8.24;
44

5-
import "./KlerosCoreXBase.sol";
5+
import "./KlerosCoreBase.sol";
66

7-
/// @title KlerosCoreX
7+
/// @title KlerosCore
88
/// @notice KlerosCore implementation with new StakeController architecture for testing environments
9-
contract KlerosCoreX is KlerosCoreXBase {
9+
contract KlerosCore is KlerosCoreBase {
1010
/// @notice Version of the implementation contract
1111
string public constant override version = "0.0.1";
1212

@@ -42,7 +42,7 @@ contract KlerosCoreX is KlerosCoreXBase {
4242
IStakeController _stakeController,
4343
IVault _vault
4444
) external initializer {
45-
__KlerosCoreXBase_initialize(
45+
__KlerosCoreBase_initialize(
4646
_governor,
4747
_guardian,
4848
_jurorProsecutionModule,

0 commit comments

Comments
 (0)