@@ -5,7 +5,7 @@ import { deployUpgradable } from "./utils/deployUpgradable";
5
5
import { HomeChains , isSkipped , isDevnet , PNK , ETH } from "./utils" ;
6
6
import { getContractOrDeploy , getContractOrDeployUpgradable } from "./utils/getContractOrDeploy" ;
7
7
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" ;
9
9
import { changeCurrencyRate } from "./utils/klerosCoreHelper" ;
10
10
11
11
const deployArbitrationV2 : DeployFunction = async ( hre : HardhatRuntimeEnvironment ) => {
@@ -34,7 +34,7 @@ const deployArbitrationV2: DeployFunction = async (hre: HardhatRuntimeEnvironmen
34
34
contract : "DisputeKitClassic" ,
35
35
args : [
36
36
deployer ,
37
- ZeroAddress , // Placeholder for KlerosCoreX address, configured later
37
+ ZeroAddress , // Placeholder for KlerosCore address, configured later
38
38
] ,
39
39
log : true ,
40
40
} ) ;
@@ -49,7 +49,7 @@ const deployArbitrationV2: DeployFunction = async (hre: HardhatRuntimeEnvironmen
49
49
console . log ( "calculated future StakeController address for nonce %d: %s" , nonce + 5 , stakeControllerAddress ) ;
50
50
51
51
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 ) ;
53
53
54
54
const vault = await deployUpgradable ( deployments , "Vault" , {
55
55
from : deployer ,
@@ -89,8 +89,8 @@ const deployArbitrationV2: DeployFunction = async (hre: HardhatRuntimeEnvironmen
89
89
const feeForJuror = ETH ( 0.1 ) ;
90
90
const jurorsForCourtJump = 256 ;
91
91
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 " , {
94
94
from : deployer ,
95
95
args : [
96
96
deployer ,
@@ -126,7 +126,7 @@ const deployArbitrationV2: DeployFunction = async (hre: HardhatRuntimeEnvironmen
126
126
await rng . changeSortitionModule ( stakeController . address ) ;
127
127
}
128
128
129
- const core = ( await hre . ethers . getContract ( "KlerosCoreX " ) ) as KlerosCoreX ;
129
+ const core = ( await hre . ethers . getContract ( "KlerosCore " ) ) as KlerosCore ;
130
130
try {
131
131
await changeCurrencyRate ( core , await pnk . getAddress ( ) , true , 12225583 , 12 ) ;
132
132
await changeCurrencyRate ( core , await dai . getAddress ( ) , true , 60327783 , 11 ) ;
@@ -135,7 +135,7 @@ const deployArbitrationV2: DeployFunction = async (hre: HardhatRuntimeEnvironmen
135
135
console . error ( "failed to change currency rates:" , e ) ;
136
136
}
137
137
138
- await deploy ( "KlerosCoreXSnapshotProxy " , {
138
+ await deploy ( "KlerosCoreSnapshotProxy " , {
139
139
from : deployer ,
140
140
contract : "KlerosCoreSnapshotProxy" ,
141
141
args : [ deployer , core . target ] ,
@@ -146,7 +146,7 @@ const deployArbitrationV2: DeployFunction = async (hre: HardhatRuntimeEnvironmen
146
146
console . log ( `📦 Vault: ${ vault . address } ` ) ;
147
147
console . log ( `🎯 SortitionSumTree: ${ sortitionModuleV2 . address } ` ) ;
148
148
console . log ( `🎮 StakeController: ${ stakeController . address } ` ) ;
149
- console . log ( `⚖️ KlerosCoreX : ${ klerosCoreV2 . address } ` ) ;
149
+ console . log ( `⚖️ KlerosCore : ${ klerosCoreV2 . address } ` ) ;
150
150
} ;
151
151
152
152
deployArbitrationV2 . tags = [ "ArbitrationV2" ] ;
0 commit comments