Skip to content

Commit eb703cb

Browse files
committed
chore: redeployed the contracts
1 parent ac47dd5 commit eb703cb

11 files changed

+2176
-1090
lines changed

contracts/README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Refresh the list of deployed contracts by running `./scripts/generateDeployments
88

99
#### Chiado
1010

11-
- [ArbitrableExample](https://blockscout.com/gnosis/chiado/address/0xc0fcc96BFd78e36550FCaB434A9EE1210B57225b)
11+
- [ArbitrableExample](https://blockscout.com/gnosis/chiado/address/0x6BC234359c2Bc212B81A5cF2dfE504940e98d4cC)
1212
- [DisputeResolver](https://blockscout.com/gnosis/chiado/address/0x433eD78895df1df7668C40b3e82d54410331F942)
13-
- [ForeignGatewayOnGnosis](https://blockscout.com/gnosis/chiado/address/0x573bcD6ee4aEe152eCC9Cafd2c0820Dc548AF6cC)
13+
- [ForeignGatewayOnGnosis](https://blockscout.com/gnosis/chiado/address/0x2357ef115E98d171b083105E9b398231206989A3)
1414
- [SortitionSumTreeFactory](https://blockscout.com/gnosis/chiado/address/0xc7e3BF90299f6BD9FA7c3703837A9CAbB5743636)
1515
- [TokenBridge](https://blockscout.com/gnosis/chiado/address/0xbb3c86f9918C3C1d83668fA84e79E876d147fFf2)
1616
- [WETH](https://blockscout.com/gnosis/chiado/address/0x2DFC9c3141268e6eac04a7D6d98Fbf64BDe836a8)
@@ -22,20 +22,20 @@ Refresh the list of deployed contracts by running `./scripts/generateDeployments
2222
#### Goerli
2323

2424
- [PNK](https://goerli.etherscan.io/token/0xA3B02bA6E10F55fb177637917B1b472da0110CcC)
25-
- [ArbitrableExample](https://goerli.etherscan.io/address/0xd78dcdde2c5a2bd4bb246bc7db6994b95f7c442c)
2625

2726
#### Arbitrum Goerli
2827

2928
- [PNK](https://goerli.arbiscan.io/token/0x4DEeeFD054434bf6721eF39Aa18EfB3fd0D12610/token-transfers)
30-
- [ArbitrableExampleEthFee](https://goerli.arbiscan.io/address/0x1d533481cCD1402f83Df3D9Ba7496B5e5b602875)
3129
- [BlockHashRNG](https://goerli.arbiscan.io/address/0x68eE49dfD9d76f3386257a3D0e0A85c0A5519bBD)
32-
- [DisputeKitClassic](https://goerli.arbiscan.io/address/0xcBE3aD699919Cf59efDF715e4B41AF30A0E4c92d)
33-
- [DisputeResolver](https://goerli.arbiscan.io/address/0xF6652c10c4D3f5bA6066254B78c57A468d9b9606)
30+
- [DAI](https://goerli.arbiscan.io/address/0x70A704Dce4cCC00568Cc142C86D07Ec71C944a39)
31+
- [DisputeKitClassic](https://goerli.arbiscan.io/address/0x0245A93ABd9c5b2d767B2D98cE6d5e612208E474)
32+
- [DisputeResolver](https://goerli.arbiscan.io/address/0xcDC05c8d2EEEe384359Bd22E8631528B6b0564e9)
3433
- [HomeGatewayToGnosis](https://goerli.arbiscan.io/address/0xD60CD2151e118Dd796efcb1ceFFcF892226F9b3a)
35-
- [KlerosCore](https://goerli.arbiscan.io/address/0xA429667Abb1A6c530BAd1083df4C69FBce86D696)
34+
- [KlerosCore](https://goerli.arbiscan.io/address/0x8Af82E2F8890acb4AB84cbaB3c4C4Eb3E965CF24)
3635
- [PolicyRegistry](https://goerli.arbiscan.io/address/0xED503aBA65B28D81444294D1eAa5d84CeFdC2C58)
3736
- [RandomizerRNG](https://goerli.arbiscan.io/address/0xa90f7D2e35718FDE9AD96c8B6667AFcAa4BEfd4d)
38-
- [SortitionModule](https://goerli.arbiscan.io/address/0xa65D3ED6494ec5fcAa115A39D625B2F01786F094)
37+
- [SortitionModule](https://goerli.arbiscan.io/address/0x5Ae75Db8B66B574b2c5C29eE4D32cc9Fe62bfdEE)
38+
- [WETH](https://goerli.arbiscan.io/address/0xddE1b84E43505432Fdf5F810ebB9373dD37e9230)
3939

4040
## Getting Started
4141

@@ -120,6 +120,7 @@ yarn deploy --network localhost --tags <Arbitration|VeaMock|ForeignGatewayOnEthe
120120
yarn deploy --network arbitrumGoerli --tags Arbitration
121121
yarn deploy --network chiado --tags ForeignGatewayOnGnosis
122122
yarn deploy --network chiado --tags KlerosLiquidOnGnosis
123+
yarn deploy --network chiado --tags ForeignArbitrable
123124
yarn deploy --network arbitrumGoerli --tags HomeGatewayToGnosis
124125

125126
# Goerli

contracts/deploy/04-foreign-arbitrable.ts

+14-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,17 @@ import disputeTemplate from "../../kleros-sdk/config/v2-disputetemplate/simple/N
55
enum ForeignChains {
66
ETHEREUM_MAINNET = 1,
77
ETHEREUM_GOERLI = 5,
8+
GNOSIS_MAINNET = 100,
9+
GNOSIS_CHIADO = 10200,
810
}
911

12+
const foreignGatewayArtifactByChain = new Map<ForeignChains, string>([
13+
[ForeignChains.ETHEREUM_MAINNET, "ForeignGatewayOnEthereum"],
14+
[ForeignChains.ETHEREUM_GOERLI, "ForeignGatewayOnEthereum"],
15+
[ForeignChains.GNOSIS_MAINNET, "ForeignGatewayOnGnosis"],
16+
[ForeignChains.GNOSIS_CHIADO, "ForeignGatewayOnGnosis"],
17+
]);
18+
1019
const deployForeignGateway: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
1120
const { ethers, deployments, getNamedAccounts, getChainId, config } = hre;
1221
const { deploy, execute } = deployments;
@@ -16,8 +25,10 @@ const deployForeignGateway: DeployFunction = async (hre: HardhatRuntimeEnvironme
1625
const chainId = Number(await getChainId());
1726
console.log("Deploying to chainId %s with deployer %s", chainId, deployer);
1827

19-
const foreignGateway = await deployments.get("ForeignGatewayOnEthereum");
20-
// TODO: add the dispute template
28+
const foreignGatewayArtifact = foreignGatewayArtifactByChain.get(chainId) ?? ethers.constants.AddressZero;
29+
const foreignGateway = await deployments.get(foreignGatewayArtifact);
30+
console.log("Using foreign gateway: %s", foreignGatewayArtifact);
31+
2132
const extraData =
2233
"0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003"; // General court, 3 jurors
2334
const weth = await deployments.get("WETH");
@@ -28,7 +39,7 @@ const deployForeignGateway: DeployFunction = async (hre: HardhatRuntimeEnvironme
2839
});
2940
};
3041

31-
deployForeignGateway.tags = ["ArbitrableOnEthereum"];
42+
deployForeignGateway.tags = ["ForeignArbitrable"];
3243
deployForeignGateway.skip = async ({ getChainId }) => {
3344
const chainId = Number(await getChainId());
3445
return !ForeignChains[chainId];

0 commit comments

Comments
 (0)