@@ -5,7 +5,7 @@ import { deployUpgradable } from "./utils/deployUpgradable";
55import { HomeChains , isSkipped , isDevnet , PNK , ETH } from "./utils" ;
66import { getContractOrDeploy , getContractOrDeployUpgradable } from "./utils/getContractOrDeploy" ;
77import { deployERC20AndFaucet } from "./utils/deployTokens" ;
8- import { ChainlinkRNG , DisputeKitClassic , KlerosCoreX , StakeController , Vault } from "../typechain-types" ;
8+ import { ChainlinkRNG , DisputeKitClassic , KlerosCore , StakeController , Vault } from "../typechain-types" ;
99import { changeCurrencyRate } from "./utils/klerosCoreHelper" ;
1010
1111const 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
152152deployArbitrationV2 . tags = [ "ArbitrationV2" ] ;
0 commit comments