Skip to content

Commit c9e7334

Browse files
committed
chore: deploy script tweak to make DisputeKitGatedShutter jump to DisputeKitShutter
1 parent 3ed7310 commit c9e7334

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
2828

2929
await deployUpgradable(deployments, "EvidenceModule", { from: deployer, args: [deployer], log: true });
3030

31-
const jumpDisputeKitID = 1; // Classic DK
31+
const classicDisputeKitID = 1; // Classic DK
3232
const disputeKit = await deployUpgradable(deployments, "DisputeKitClassicNeo", {
3333
from: deployer,
3434
contract: "DisputeKitClassic",
35-
args: [deployer, ZeroAddress, weth.target, jumpDisputeKitID],
35+
args: [deployer, ZeroAddress, weth.target, classicDisputeKitID],
3636
log: true,
3737
});
3838

@@ -123,23 +123,26 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
123123
await core.changeArbitrableWhitelist(resolver.address, true);
124124

125125
// Extra dispute kits
126+
const disputeKitShutterID = 2;
126127
const disputeKitShutter = await deployUpgradable(deployments, "DisputeKitShutter", {
127128
from: deployer,
128-
args: [deployer, core.target, weth.target, jumpDisputeKitID],
129+
args: [deployer, core.target, weth.target, classicDisputeKitID],
129130
log: true,
130131
});
131132
await core.addNewDisputeKit(disputeKitShutter.address);
132133

134+
const disputeKitGatedID = 3;
133135
const disputeKitGated = await deployUpgradable(deployments, "DisputeKitGated", {
134136
from: deployer,
135-
args: [deployer, core.target, weth.target, jumpDisputeKitID],
137+
args: [deployer, core.target, weth.target, classicDisputeKitID],
136138
log: true,
137139
});
138140
await core.addNewDisputeKit(disputeKitGated.address);
139141

142+
const disputeKitGatedShutterID = 4;
140143
const disputeKitGatedShutter = await deployUpgradable(deployments, "DisputeKitGatedShutter", {
141144
from: deployer,
142-
args: [deployer, core.target, weth.target, jumpDisputeKitID],
145+
args: [deployer, core.target, weth.target, disputeKitShutterID], // Does not jump to DKClassic
143146
log: true,
144147
});
145148
await core.addNewDisputeKit(disputeKitGatedShutter.address);

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
3434
log: true,
3535
});
3636

37-
const jumpDisputeKitID = 1; // Classic DK
37+
const classicDisputeKitID = 1; // Classic DK
3838
const disputeKit = await deployUpgradable(deployments, "DisputeKitClassic", {
3939
from: deployer,
40-
args: [deployer, ZeroAddress, weth.target, jumpDisputeKitID],
40+
args: [deployer, ZeroAddress, weth.target, classicDisputeKitID],
4141
log: true,
4242
});
4343

@@ -104,29 +104,32 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
104104
}
105105

106106
// Extra dispute kits
107+
const disputeKitShutterID = 2;
107108
const disputeKitShutter = await deployUpgradable(deployments, "DisputeKitShutter", {
108109
from: deployer,
109-
args: [deployer, core.target, weth.target, jumpDisputeKitID],
110+
args: [deployer, core.target, weth.target, classicDisputeKitID],
110111
log: true,
111112
});
112113
await core.addNewDisputeKit(disputeKitShutter.address);
113-
await core.enableDisputeKits(Courts.GENERAL, [2], true); // enable disputeKitShutter on the General Court
114+
await core.enableDisputeKits(Courts.GENERAL, [disputeKitShutterID], true); // enable disputeKitShutter on the General Court
114115

116+
const disputeKitGatedID = 3;
115117
const disputeKitGated = await deployUpgradable(deployments, "DisputeKitGated", {
116118
from: deployer,
117-
args: [deployer, core.target, weth.target, jumpDisputeKitID],
119+
args: [deployer, core.target, weth.target, classicDisputeKitID],
118120
log: true,
119121
});
120122
await core.addNewDisputeKit(disputeKitGated.address);
121-
await core.enableDisputeKits(Courts.GENERAL, [3], true); // enable disputeKitGated on the General Court
123+
await core.enableDisputeKits(Courts.GENERAL, [disputeKitGatedID], true); // enable disputeKitGated on the General Court
122124

125+
const disputeKitGatedShutterID = 4;
123126
const disputeKitGatedShutter = await deployUpgradable(deployments, "DisputeKitGatedShutter", {
124127
from: deployer,
125-
args: [deployer, core.target, weth.target, jumpDisputeKitID],
128+
args: [deployer, core.target, weth.target, disputeKitShutterID], // Does not jump to DKClassic
126129
log: true,
127130
});
128131
await core.addNewDisputeKit(disputeKitGatedShutter.address);
129-
await core.enableDisputeKits(Courts.GENERAL, [4], true); // enable disputeKitGatedShutter on the General Court
132+
await core.enableDisputeKits(Courts.GENERAL, [disputeKitGatedShutterID], true); // enable disputeKitGatedShutter on the General Court
130133

131134
// Snapshot proxy
132135
await deploy("KlerosCoreSnapshotProxy", {

0 commit comments

Comments
 (0)