Skip to content

Commit 8e2bd81

Browse files
kemurujaybuidl
authored andcommitted
chore(web,subgraph): migration-to-arb-sepolia
1 parent cbe85e1 commit 8e2bd81

File tree

65 files changed

+168
-168
lines changed

Some content is hidden

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

65 files changed

+168
-168
lines changed

contracts/deploy/00-ethereum-pnk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import disputeTemplate from "../test/fixtures/DisputeTemplate.simple.json";
44
import { isSkipped } from "./utils";
55

66
enum Chains {
7-
GOERLI = 5,
7+
SEPOLIA = 11155111,
88
HARDHAT = 31337,
99
}
1010

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import { HomeChains, isSkipped, isDevnet } from "./utils";
77

88
const pnkByChain = new Map<HomeChains, string>([
99
[HomeChains.ARBITRUM_ONE, "0x330bD769382cFc6d50175903434CCC8D206DCAE5"],
10-
[HomeChains.ARBITRUM_GOERLI, "0x3483FA1b87792cd5BE4100822C4eCEC8D3E531ee"],
10+
[HomeChains.ARBITRUM_SEPOLIA, "INSERT ARBITRUM SEPOLIA PNK TOKEN ADDRESS HERE"],
1111
]);
1212

1313
// https://randomizer.ai/docs#addresses
1414
const randomizerByChain = new Map<HomeChains, string>([
1515
[HomeChains.ARBITRUM_ONE, "0x5b8bB80f2d72D0C85caB8fB169e8170A05C94bAF"],
16-
[HomeChains.ARBITRUM_GOERLI, "0x923096Da90a3b60eb7E12723fA2E1547BA9236Bc"],
16+
[HomeChains.ARBITRUM_SEPOLIA, "INSERT ARBITRUM SEPOLIA RANDOMIZER ADDRESS HERE"],
1717
]);
1818

1919
const daiByChain = new Map<HomeChains, string>([[HomeChains.ARBITRUM_ONE, "??"]]);

contracts/deploy/00-home-chain-pnk-faucet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { HomeChains, isSkipped } from "./utils";
44

55
const pnkByChain = new Map<HomeChains, string>([
66
[HomeChains.ARBITRUM_ONE, "0x330bD769382cFc6d50175903434CCC8D206DCAE5"],
7-
[HomeChains.ARBITRUM_GOERLI, "0x3483FA1b87792cd5BE4100822C4eCEC8D3E531ee"],
7+
[HomeChains.ARBITRUM_SEPOLIA, "INSERT ARBITRUM SEPOLIA PNK TOKEN ADDRESS HERE"],
88
]);
99

1010
const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {

contracts/deploy/00-rng.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { deployUpgradable } from "./utils/deployUpgradable";
66

77
const pnkByChain = new Map<HomeChains, string>([
88
[HomeChains.ARBITRUM_ONE, "0x330bD769382cFc6d50175903434CCC8D206DCAE5"],
9-
[HomeChains.ARBITRUM_GOERLI, "0x3483FA1b87792cd5BE4100822C4eCEC8D3E531ee"],
9+
[HomeChains.ARBITRUM_SEPOLIA, "INSERT ARBITRUM SEPOLIA PNK TOKEN ADDRESS HERE"],
1010
]);
1111

1212
const randomizerByChain = new Map<HomeChains, string>([
1313
[HomeChains.ARBITRUM_ONE, "0x5b8bB80f2d72D0C85caB8fB169e8170A05C94bAF"],
14-
[HomeChains.ARBITRUM_GOERLI, "0x923096Da90a3b60eb7E12723fA2E1547BA9236Bc"],
14+
[HomeChains.ARBITRUM_SEPOLIA, "INSERT ARBITRUM SEPOLIA RANDOMIZER ADDRESS HERE"],
1515
]);
1616

1717
const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ const deployHomeGateway: DeployFunction = async (hre: HardhatRuntimeEnvironment)
1818
const veaInbox = await deployments.get("VeaInboxArbToEthDevnet");
1919
const klerosCore = await deployments.get("KlerosCore");
2020

21-
const foreignGateway = await hre.companionNetworks.foreignGoerli.deployments.get("ForeignGatewayOnEthereum");
22-
const foreignChainId = Number(await hre.companionNetworks.foreignGoerli.getChainId());
23-
const foreignChainName = await hre.companionNetworks.foreignGoerli.deployments.getNetworkName();
21+
const foreignGateway = await hre.companionNetworks.foreignSepolia.deployments.get("ForeignGatewayOnEthereum");
22+
const foreignChainId = Number(await hre.companionNetworks.foreignSepolia.getChainId());
23+
const foreignChainName = await hre.companionNetworks.foreignSepolia.deployments.getNetworkName();
2424
console.log("Using ForeignGateway %s on chainId %s (%s)", foreignGateway.address, foreignChainId, foreignChainName);
2525

2626
await deployUpgradable(deployments, "HomeGatewayToEthereum", {

contracts/deploy/04-foreign-arbitrable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ForeignChains, isSkipped } from "./utils";
66

77
const foreignGatewayArtifactByChain = new Map<ForeignChains, string>([
88
[ForeignChains.ETHEREUM_MAINNET, "ForeignGatewayOnEthereum"],
9-
[ForeignChains.ETHEREUM_GOERLI, "ForeignGatewayOnEthereum"],
9+
[ForeignChains.ETHEREUM_SEPOLIA, "ForeignGatewayOnEthereum"],
1010
[ForeignChains.GNOSIS_MAINNET, "ForeignGatewayOnGnosis"],
1111
[ForeignChains.GNOSIS_CHIADO, "ForeignGatewayOnGnosis"],
1212
]);

contracts/deploy/05-arbitrable-dispute-template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const deployResolver: DeployFunction = async (hre: HardhatRuntimeEnvironment) =>
2424
"frontendUrl": "https://app.proofofhumanity.id/profile/%s",
2525
"arbitrableChainID": "1",
2626
"arbitrableAddress": "0xc5e9ddebb09cd64dfacab4011a0d5cedaf7c9bdb",
27-
"arbitratorChainID": "421613",
27+
"arbitratorChainID": "421614",
2828
"arbitratorAddress": "0xD08Ab99480d02bf9C092828043f611BcDFEA917b",
2929
"category": "Curated Lists",
3030
"specification": "KIP88"

contracts/deploy/fix1148.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { isSkipped } from "./utils";
66

77
enum HomeChains {
88
ARBITRUM_ONE = 42161,
9-
ARBITRUM_GOERLI = 421613,
9+
ARBITRUM_SEPOLIA = 421614,
1010
HARDHAT = 31337,
1111
}
1212

contracts/deploy/upgrade-kleros-core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { isSkipped } from "./utils";
66

77
enum HomeChains {
88
ARBITRUM_ONE = 42161,
9-
ARBITRUM_GOERLI = 421613,
9+
ARBITRUM_SEPOLIA = 421614,
1010
HARDHAT = 31337,
1111
}
1212

contracts/deploy/upgrade-sortition-module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { isSkipped } from "./utils";
55

66
enum HomeChains {
77
ARBITRUM_ONE = 42161,
8-
ARBITRUM_GOERLI = 421613,
8+
ARBITRUM_SEPOLIA = 421614,
99
HARDHAT = 31337,
1010
}
1111

0 commit comments

Comments
 (0)