@@ -63,14 +63,14 @@ const deployForeignGateway: DeployFunction = async (hre: HardhatRuntimeEnvironme
6363 nonce += 1 ; // HomeGatewayToEthereum deploy tx will the third tx after this on its home network, so we add two to the current nonce.
6464 }
6565 const { deposit, epochPeriod, homeChainId, arbInbox, genesis } = paramsByChainId [ chainId ] ;
66- const bridgeAlpha = 5000 ;
6766 const homeChainIdAsBytes32 = hexZeroPad ( homeChainId , 32 ) ;
6867 const chainIdAsBytes32 = hexZeroPad ( "0x" + chainId . toString ( 16 ) , 32 ) ;
6968
7069 const homeGatewayAddress = getContractAddress ( deployer , nonce ) ;
7170 console . log ( "calculated future HomeGatewayToEthereum address for nonce %d: %s" , nonce , homeGatewayAddress ) ;
72- nonce -= 1 ;
73- const fastBridgeSenderAddress = getContractAddress ( deployer , nonce ) ;
71+ const homeGatewayCentralizedArbitratorAddress = getContractAddress ( deployer , nonce + 1 ) ;
72+ console . log ( "calculated future HomeGatewayToEthereum address for nonce %d: %s" , nonce , homeGatewayAddress ) ;
73+ const fastBridgeSenderAddress = getContractAddress ( deployer , nonce - 1 ) ;
7474 console . log ( "calculated future fastBridgeSender address for nonce %d: %s" , nonce , fastBridgeSenderAddress ) ;
7575
7676 const fastBridgeReceiver = await deploy ( "FastBridgeReceiverOnEthereum" , {
@@ -80,13 +80,14 @@ const deployForeignGateway: DeployFunction = async (hre: HardhatRuntimeEnvironme
8080 deposit ,
8181 epochPeriod ,
8282 fastBridgeSenderAddress ,
83- genesis // sample genesis time
83+ genesis
8484 ] ,
8585 log : true ,
8686 } ) ;
8787
8888 const foreignGateway = await deploy ( "ForeignGatewayOnEthereum" , {
8989 from : deployer ,
90+ contract : "ForeignGatewayOnEthereum" ,
9091 args : [
9192 deployer ,
9293 fastBridgeReceiver . address ,
@@ -98,13 +99,34 @@ const deployForeignGateway: DeployFunction = async (hre: HardhatRuntimeEnvironme
9899 log : true ,
99100 } ) ;
100101
102+ const foreignGatewayCentralizedArbitrator = await deploy ( "ForeignGatewayOnEthereumCentralizedArbitrator" , {
103+ from : deployer ,
104+ contract : "ForeignGatewayOnEthereum" ,
105+ args : [
106+ deployer ,
107+ fastBridgeReceiver . address ,
108+ [ ethers . BigNumber . from ( 10 ) . pow ( 17 ) ] ,
109+ homeGatewayCentralizedArbitratorAddress ,
110+ homeChainIdAsBytes32 ,
111+ chainIdAsBytes32
112+ ] ,
113+ log : true ,
114+ } ) ;
115+
101116 const metaEvidenceUri =
102117 "https://raw.githubusercontent.com/kleros/kleros-v2/master/contracts/deployments/rinkeby/MetaEvidence_ArbitrableExample.json" ;
103118 const arbitrable = await deploy ( "ArbitrableExample" , {
104119 from : deployer ,
105120 args : [ foreignGateway . address , metaEvidenceUri ] ,
106121 log : true ,
107122 } ) ;
123+
124+ const arbitrableCentralizedArbitrator = await deploy ( "ArbitrableExampleCentralizedArbitrator" , {
125+ from : deployer ,
126+ contract : "ArbitrableExample" ,
127+ args : [ foreignGateway . address , metaEvidenceUri ] ,
128+ log : true ,
129+ } ) ;
108130} ;
109131
110132deployForeignGateway . tags = [ "ForeignChain" , "ForeignGateway" ] ;
0 commit comments