Skip to content

Commit b9302c7

Browse files
Merge branch 'subgraph-notification' of https://github.com/kleros/kleros-v2 into subgraph-notification
2 parents d405d38 + 42dfcd2 commit b9302c7

File tree

54 files changed

+1128
-799
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1128
-799
lines changed

contracts/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,19 @@ Refresh the list of deployed contracts by running `./scripts/generateDeployments
6666
#### Arbitrum Goerli
6767

6868
- [PNK](https://goerli.arbiscan.io/token/0x3483FA1b87792cd5BE4100822C4eCEC8D3E531ee)
69-
- [ArbitrableExample](https://goerli.arbiscan.io/address/0x5d96ede4D4Dd4c245d6879A4D790fF0AB1F476cC)
69+
- [ArbitrableExample](https://goerli.arbiscan.io/address/0x437cbF6F0A62238b392715aC55bdC5abdA148eD8)
7070
- [BlockHashRNG](https://goerli.arbiscan.io/address/0xCea37c9A838831F6B4eE3BffbDC21b945113AD0C)
7171
- [DAI](https://goerli.arbiscan.io/address/0xB755843e26F2cD1c6A46659cEBb67CcFAE0f2EeE)
7272
- [DAIFaucet](https://goerli.arbiscan.io/address/0xCEBF1e0A5921767dd97b999ed14801A3770afAfd)
73-
- [DisputeKitClassic: proxy](https://goerli.arbiscan.io/address/0x6394A70cADD1376FdE5C38bA331761256DDd03E2), [implementation](https://goerli.arbiscan.io/address/0x9755b94c2c8AB04dDc7d102A6F8c974f538481fb)
74-
- [DisputeResolver](https://goerli.arbiscan.io/address/0xE4af4D800Ce12149199FA6f8870cD650cD8f3164)
75-
- [DisputeTemplateRegistry: proxy](https://goerli.arbiscan.io/address/0xBf5AF2c2938B3EE689d9A4f5324F144d9a617a2A), [implementation](https://goerli.arbiscan.io/address/0x93bf43132b6805E215d3c8305232ec3A174Ef146)
76-
- [KlerosCore: proxy](https://goerli.arbiscan.io/address/0x813DCc76dbA91DD9f6bDD038aea0877FC95656bE), [implementation](https://goerli.arbiscan.io/address/0xEE08d6427F4f23E602C4114B8F2B7f6d6D3F4206)
73+
- [DisputeKitClassic: proxy](https://goerli.arbiscan.io/address/0xc9aF9335327cAe0Cd45EC96ad9bDcD4304772729), [implementation](https://goerli.arbiscan.io/address/0x2757458b91faaB4240A6eAE72185C8185683a642)
74+
- [DisputeResolver](https://goerli.arbiscan.io/address/0x20433D10d3865e19af45956ed5bFe30c56536431)
75+
- [DisputeTemplateRegistry: proxy](https://goerli.arbiscan.io/address/0x8d17Ed667512412D9c194d178699f68159f250A2), [implementation](https://goerli.arbiscan.io/address/0x2F4c6c23C516A9247a413186cDcA693E1C078A1D)
76+
- [KlerosCore: proxy](https://goerli.arbiscan.io/address/0x544afd5A8AbC40ba5d38BbA8d47f30502896b050), [implementation](https://goerli.arbiscan.io/address/0x241C37152D43f60a0142bCbb2D765e908dd03D9D)
7777
- [PNKFaucet](https://goerli.arbiscan.io/address/0x05648Ee14941630a649082e0dA5cb80D29cC9002)
7878
- [PinakionV2](https://goerli.arbiscan.io/address/0x3483FA1b87792cd5BE4100822C4eCEC8D3E531ee)
79-
- [PolicyRegistry: proxy](https://goerli.arbiscan.io/address/0x0d7EeA661C1f9cB1AD389c9Df90B3beDE86a1529), [implementation](https://goerli.arbiscan.io/address/0xF9128Ae440A9d4BABc6B66f9385C5Ba6ADf11D89)
80-
- [RandomizerRNG: proxy](https://goerli.arbiscan.io/address/0xF67D956988cb11449db7aeA80E6339b95b160593), [implementation](https://goerli.arbiscan.io/address/0xc1C85d303B4995Cb543C2b449C1b3dF490d49ebE)
81-
- [SortitionModule: proxy](https://goerli.arbiscan.io/address/0xA7e5D4C3E6C593cF6A367C3A415BB8E4A065E62E), [implementation](https://goerli.arbiscan.io/address/0xA472Dfb104696E5CE82E46148c33Cd5FeE2C3b7d)
79+
- [PolicyRegistry: proxy](https://goerli.arbiscan.io/address/0x37FFaF5506BB16327B4a32191Bb39d739fCE55a3), [implementation](https://goerli.arbiscan.io/address/0x3ab4C2906E3Cbc44C3e282affDb66272BCae6482)
80+
- [RandomizerRNG: proxy](https://goerli.arbiscan.io/address/0x105C019c2724F08BFA41Ff0D0bD77030E1DEA177), [implementation](https://goerli.arbiscan.io/address/0xc90d73C64997699d835a1122D47d4A231965740C)
81+
- [SortitionModule: proxy](https://goerli.arbiscan.io/address/0x5c9E4e7e85157DFD16D400dd358C541b65DaA83f), [implementation](https://goerli.arbiscan.io/address/0xec7C6C1b2FC93bBeF0fA4e301165144702c126F9)
8282
- [WETH](https://goerli.arbiscan.io/address/0xbB5839497dE7e6d4ddaFde093F69abA9be782E07)
8383
- [WETHFaucet](https://goerli.arbiscan.io/address/0xD2d862B060986b25996aaeDB54813002AB791013)
8484

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
1818
"0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003"; // General court, 3 jurors
1919
const weth = await deployments.get("WETH");
2020

21-
const disputeTemplateRegistry = await deployUpgradable(hre, "DisputeTemplateRegistry", {
21+
const disputeTemplateRegistry = await deployUpgradable(deployments, "DisputeTemplateRegistry", {
2222
from: deployer,
2323
args: [deployer],
2424
log: true,

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,16 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
5252
randomizerByChain.set(HomeChains[HomeChains[chainId]], randomizerMock.address);
5353
}
5454

55-
await deployUpgradable(hre, "PolicyRegistry", { from: deployer, args: [deployer], log: true });
55+
await deployUpgradable(deployments, "PolicyRegistry", { from: deployer, args: [deployer], log: true });
5656

5757
const randomizer = randomizerByChain.get(Number(await getChainId())) ?? AddressZero;
58-
const rng = await deployUpgradable(hre, "RandomizerRNG", { from: deployer, args: [randomizer, deployer], log: true });
58+
const rng = await deployUpgradable(deployments, "RandomizerRNG", {
59+
from: deployer,
60+
args: [randomizer, deployer],
61+
log: true,
62+
});
5963

60-
const disputeKit = await deployUpgradable(hre, "DisputeKitClassic", {
64+
const disputeKit = await deployUpgradable(deployments, "DisputeKitClassic", {
6165
from: deployer,
6266
args: [deployer, AddressZero],
6367
log: true,
@@ -72,7 +76,7 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
7276
const devnet = isDevnet(hre.network);
7377
const minStakingTime = devnet ? 180 : 1800;
7478
const maxFreezingTime = devnet ? 600 : 1800;
75-
const sortitionModule = await deployUpgradable(hre, "SortitionModule", {
79+
const sortitionModule = await deployUpgradable(deployments, "SortitionModule", {
7680
from: deployer,
7781
args: [deployer, klerosCoreAddress, minStakingTime, maxFreezingTime, rng.address, RNG_LOOKAHEAD],
7882
log: true,
@@ -84,7 +88,7 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
8488
const minStake = BigNumber.from(10).pow(20).mul(2);
8589
const alpha = 10000;
8690
const feeForJuror = BigNumber.from(10).pow(17);
87-
const klerosCore = await deployUpgradable(hre, "KlerosCore", {
91+
const klerosCore = await deployUpgradable(deployments, "KlerosCore", {
8892
from: deployer,
8993
args: [
9094
deployer,

contracts/deploy/00-rng.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
4848
}
4949

5050
const randomizer = randomizerByChain.get(Number(await getChainId())) ?? AddressZero;
51-
await deployUpgradable(hre, "RandomizerRNG", { from: deployer, args: [randomizer, deployer], log: true });
51+
await deployUpgradable(deployments, "RandomizerRNG", { from: deployer, args: [randomizer, deployer], log: true });
5252
const rng = await deploy("BlockHashRNG", {
5353
from: deployer,
5454
args: [],

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const deployForeignGateway: DeployFunction = async (hre: HardhatRuntimeEnvironme
3030

3131
const homeChainId = (await homeChainProvider.getNetwork()).chainId;
3232
const homeChainIdAsBytes32 = hexZeroPad(hexlify(homeChainId), 32);
33-
await deployUpgradable(hre, "ForeignGatewayOnEthereum", {
33+
await deployUpgradable(deployments, "ForeignGatewayOnEthereum", {
3434
from: deployer,
3535
contract: "ForeignGateway",
3636
args: [deployer, veaOutbox.address, homeChainIdAsBytes32, homeGatewayAddress],

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const deployForeignGateway: DeployFunction = async (hre: HardhatRuntimeEnvironme
3333

3434
const homeChainId = (await homeChainProvider.getNetwork()).chainId;
3535
const homeChainIdAsBytes32 = hexZeroPad(hexlify(homeChainId), 32);
36-
await deployUpgradable(hre, "ForeignGatewayOnGnosis", {
36+
await deployUpgradable(deployments, "ForeignGatewayOnGnosis", {
3737
from: deployer,
3838
contract: "ForeignGateway",
3939
args: [deployer, veaOutbox.address, homeChainIdAsBytes32, homeGatewayAddress],

contracts/deploy/02-home-gateway-to-ethereum.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const deployHomeGateway: DeployFunction = async (hre: HardhatRuntimeEnvironment)
2323
const foreignChainName = await hre.companionNetworks.foreignGoerli.deployments.getNetworkName();
2424
console.log("Using ForeignGateway %s on chainId %s (%s)", foreignGateway.address, foreignChainId, foreignChainName);
2525

26-
await deployUpgradable(hre, "HomeGatewayToEthereum", {
26+
await deployUpgradable(deployments, "HomeGatewayToEthereum", {
2727
from: deployer,
2828
contract: "HomeGateway",
2929
args: [

contracts/deploy/02-home-gateway-to-gnosis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const deployHomeGateway: DeployFunction = async (hre: HardhatRuntimeEnvironment)
2323
const foreignChainName = await hre.companionNetworks.foreignChiado.deployments.getNetworkName();
2424
console.log("Using ForeignGateway %s on chainId %s (%s)", foreignGateway.address, foreignChainId, foreignChainName);
2525

26-
await deployUpgradable(hre, "HomeGatewayToGnosis", {
26+
await deployUpgradable(deployments, "HomeGatewayToGnosis", {
2727
from: deployer,
2828
contract: "HomeGateway",
2929
args: [deployer, klerosCore.address, veaInbox.address, foreignChainId, foreignGateway.address, dai.address],

contracts/deploy/03-vea-mock.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const deployHomeGateway: DeployFunction = async (hre: HardhatRuntimeEnvironment)
3030
console.log("Calculated future HomeGatewayToEthereum address for nonce %d: %s", nonce, homeGatewayAddress);
3131

3232
const homeChainIdAsBytes32 = hexZeroPad(hexlify(HardhatChain.HARDHAT), 32);
33-
const foreignGateway = await deployUpgradable(hre, "ForeignGatewayOnEthereum", {
33+
const foreignGateway = await deployUpgradable(deployments, "ForeignGatewayOnEthereum", {
3434
from: deployer,
3535
contract: "ForeignGateway",
3636
args: [deployer, vea.address, homeChainIdAsBytes32, homeGatewayAddress],
@@ -39,7 +39,7 @@ const deployHomeGateway: DeployFunction = async (hre: HardhatRuntimeEnvironment)
3939
}); // nonce (implementation), nonce+1 (proxy)
4040
console.log("foreignGateway.address: ", foreignGateway.address);
4141

42-
await deployUpgradable(hre, "HomeGatewayToEthereum", {
42+
await deployUpgradable(deployments, "HomeGatewayToEthereum", {
4343
from: deployer,
4444
contract: "HomeGateway",
4545
args: [
@@ -62,7 +62,7 @@ const deployHomeGateway: DeployFunction = async (hre: HardhatRuntimeEnvironment)
6262
await execute("ForeignGatewayOnEthereum", { from: deployer, log: true }, "changeCourtJurorFee", Courts.GENERAL, fee);
6363
// TODO: set up the correct fees for the lower courts
6464

65-
const disputeTemplateRegistry = await deployUpgradable(hre, "DisputeTemplateRegistry", {
65+
const disputeTemplateRegistry = await deployUpgradable(deployments, "DisputeTemplateRegistry", {
6666
from: deployer,
6767
args: [deployer],
6868
log: true,

contracts/deploy/upgrade-kleros-core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const deployUpgradeKlerosCore: DeployFunction = async (hre: HardhatRuntimeEnviro
2828
const sortitionModule = await deployments.get("SortitionModule");
2929

3030
console.log("Upgrading the KlerosCore...");
31-
await deployUpgradable(hre, "KlerosCore", {
31+
await deployUpgradable(deployments, "KlerosCore", {
3232
from: deployer,
3333
args: [
3434
deployer,

0 commit comments

Comments
 (0)