Skip to content

Commit ef6e263

Browse files
committed
feat: deploy scripts improvements
1 parent 651def6 commit ef6e263

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

contracts/deploy/00-home-chain-arbitrable.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
2626
],
2727
log: true,
2828
});
29+
30+
await deploy("DisputeResolver", {
31+
from: deployer,
32+
args: [klerosCore.address],
33+
log: true,
34+
});
2935
};
3036

3137
deployArbitration.tags = ["HomeArbitrable"];

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,6 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
107107
if (currentCore !== klerosCore.address) {
108108
await execute("DisputeKitClassic", { from: deployer, log: true }, "changeCore", klerosCore.address);
109109
}
110-
111-
await deploy("DisputeResolver", {
112-
from: deployer,
113-
args: [klerosCore.address],
114-
log: true,
115-
});
116110
};
117111

118112
deployArbitration.tags = ["Arbitration"];

contracts/deploy/01-foreign-gateway-on-gnosis.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { parseUnits } from "ethers/lib/utils";
22
import { HardhatRuntimeEnvironment } from "hardhat/types";
33
import { DeployFunction } from "hardhat-deploy/types";
44
import getContractAddress from "../deploy-helpers/getContractAddress";
5+
import { KlerosCore__factory } from "../typechain-types";
56

67
enum ForeignChains {
78
GNOSIS_MAINNET = 100,
@@ -75,13 +76,13 @@ const deployForeignGateway: DeployFunction = async (hre: HardhatRuntimeEnvironme
7576
});
7677

7778
// TODO: disable the gateway until fully initialized with the correct fees OR allow disputeCreators to add funds again if necessary.
78-
await execute(
79-
"ForeignGatewayOnGnosis",
80-
{ from: deployer, log: true },
81-
"changeCourtJurorFee",
82-
0,
83-
ethers.utils.parseEther("0.00001")
84-
);
79+
const coreDeployment = await hre.companionNetworks.home.deployments.get("KlerosCore");
80+
const core = await KlerosCore__factory.connect(coreDeployment.address, homeChainProvider);
81+
// TODO: set up the correct fees for the FORKING_COURT
82+
const courtId = await core.GENERAL_COURT();
83+
const fee = (await core.courts(courtId)).feeForJuror;
84+
await execute("ForeignGatewayOnGnosis", { from: deployer, log: true }, "changeCourtJurorFee", courtId, fee);
85+
// TODO: set up the correct fees for the lower courts
8586
};
8687

8788
deployForeignGateway.tags = ["ForeignGatewayOnGnosis"];

0 commit comments

Comments
 (0)