|
| 1 | +module.exports = async ({ getNamedAccounts, deployments }) => { |
| 2 | + const { deploy } = deployments; |
| 3 | + const { deployer, governor } = await getNamedAccounts(); |
| 4 | + const arbitratorExtraData = "0x85"; |
| 5 | + const arbitrationCost = 1000; |
| 6 | + const appealTimeOut = 180; |
| 7 | + |
| 8 | + // the following will deploy "EnhancedAppealableArbitrator" if the contract was never deployed or if the code changed since last deployment |
| 9 | + const EnhancedArbitrator = await deploy("EnhancedAppealableArbitrator", { |
| 10 | + from: governor, |
| 11 | + args: [arbitrationCost, governor, arbitratorExtraData, appealTimeOut], |
| 12 | + }); |
| 13 | + console.log(EnhancedArbitrator.address, "EnhancedAppealableArbitrator"); |
| 14 | + const GTCRFactory = await deploy("GTCRFactory", { |
| 15 | + from: deployer, |
| 16 | + args: [], |
| 17 | + }); |
| 18 | + |
| 19 | + console.log(GTCRFactory.address, "GTCRFactory address"); |
| 20 | + const LGTCR = await deploy("LightGeneralizedTCR", { |
| 21 | + from: deployer, |
| 22 | + args: [], |
| 23 | + }); |
| 24 | + console.log(LGTCR.address, "address of LGTCR"); |
| 25 | + const LGTCRFactory = await deploy("LightGTCRFactory", { |
| 26 | + from: deployer, |
| 27 | + args: [LGTCR.address], |
| 28 | + }); |
| 29 | + const RelayMock = await deploy("RelayMock", { |
| 30 | + from: governor, |
| 31 | + args: [], |
| 32 | + }); |
| 33 | + console.log(RelayMock.address, "address of RelayMock"); |
| 34 | + console.log(LGTCRFactory.address, "address of LGTCR factory"); |
| 35 | + const LightGeneralizedTCRView = await deploy("LightGeneralizedTCRView", { |
| 36 | + from: governor, |
| 37 | + args: [], |
| 38 | + }); |
| 39 | + console.log(LightGeneralizedTCRView.address, "address of LightGeneralizedTCRView"); |
| 40 | + |
| 41 | + const GeneralizedTCRView = await deploy("GeneralizedTCRView", { |
| 42 | + from: governor, |
| 43 | + args: [], |
| 44 | + }); |
| 45 | + console.log(GeneralizedTCRView.address, "address of GeneralizedTCRView"); |
| 46 | + |
| 47 | + const BatchWithdraw = await deploy("BatchWithdraw", { |
| 48 | + from: governor, |
| 49 | + args: [], |
| 50 | + }); |
| 51 | + console.log(BatchWithdraw.address, "address of BatchWithdraw"); |
| 52 | + const LBatchWithdraw = await deploy("LightBatchWithdraw", { |
| 53 | + from: governor, |
| 54 | + args: [], |
| 55 | + }); |
| 56 | + console.log(LBatchWithdraw.address, "address of LightBatchWithdraw"); |
| 57 | +}; |
| 58 | +module.exports.tags = ["gtcrContracts"]; |
0 commit comments