Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev #369

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4936cf2
fix: integration tests ArbToEth
Aug 31, 2024
4aeed81
chore: tesnet deployments
Sep 17, 2024
14a7d10
Merge pull request #324 from kleros/fix/integration-tests
mani99brar Sep 24, 2024
9a28c64
chore(deps): bump arb sdk
Sep 25, 2024
30b0b61
feat: arb message executor
Sep 25, 2024
63c93b0
test(ArbToEth): dispute resolve cases
Sep 30, 2024
f313f3a
Merge branch 'dev' into feat/arbSep-to-sep-testnet
mani99brar Oct 15, 2024
b8e556f
chore(relayer): reconfigure for testnet support
Oct 21, 2024
a4b6a90
feat(relayer): sep & chiado testnet
Oct 21, 2024
8a440c5
fix(relayer): coderabbit review & nonce handling
Nov 4, 2024
14a5228
feat(validator): complete arbToEth challenge flow
Nov 4, 2024
5c7c017
fix: relayer & validator
Nov 25, 2024
ab41a47
Merge branch 'dev' into feat/arbSep-to-sep-testnet
fcanela Nov 26, 2024
732c5a1
fix: review fixes(#344)
Nov 27, 2024
da4383c
fix(relayer): var name
mani99brar Nov 27, 2024
b00c1ed
Merge pull request #344 from kleros/feat/arbSep-to-sep-testnet
jaybuidl Nov 28, 2024
07f2ead
perf(arbToGno): used concurently in deploy scripts
madhurMongia Sep 13, 2024
73fa3ff
feat(arbtoGno): deployments for testnet
madhurMongia Sep 16, 2024
f11393d
feat(validtor-bot): function to find latest l2 batch on l1
madhurMongia Oct 14, 2024
4af6323
feat(validator-bot): complete unhappy path execution
madhurMongia Nov 18, 2024
c6f6235
feat(validator-bot): review fixes by the rabbit
madhurMongia Nov 21, 2024
7588346
feat(validator-bot): review fixes
madhurMongia Nov 27, 2024
acb800c
fix(validator-bot): fixes after rebasing
madhurMongia Nov 29, 2024
3eebb3f
Merge pull request #359 from kleros/feat/arbSep-chaido-deploy
jaybuidl Dec 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/deploy/01-outbox/01-arb-to-gnosis-outbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const paramsByChainId = {
GNOSIS_CHIADO: {
deposit: parseEther("0.2"), // ~20 WETH budget to start, enough for 8 days of challenges
// bridging speed is 29 - 31 hours.
epochPeriod: 7200, // 2 hours
epochPeriod: 3600, // 1 hours
minChallengePeriod: 10800, // 3 hours
numEpochTimeout: 1000000, // never
maxMissingBlocks: 1000000, // any
Expand Down
23 changes: 21 additions & 2 deletions contracts/deploy/02-inbox/02-arb-to-gnosis-inbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import getContractAddress from "../../deploy-helpers/getContractAddress";
import { ethers } from "hardhat";
import { providers } from "ethers";

enum SenderChains {
ARBITRUM = 42161,
Expand Down Expand Up @@ -39,6 +40,12 @@ const deployInbox: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {

const { epochPeriod } = paramsByChainId[SenderChains[chainId]];

const routerNetworks = {
ARBITRUM: config.networks.mainnet,
ARBITRUM_SEPOLIA: config.networks.sepolia,
HARDHAT: config.networks.localhost,
};

// Hack to predict the deployment address on the sender chain.
// TODO: use deterministic deployments

Expand Down Expand Up @@ -76,7 +83,20 @@ const deployInbox: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
};

// ----------------------------------------------------------------------------------------------
const liveDeployer = async () => {};
const liveDeployer = async () => {
const routerChainProvider = new providers.JsonRpcProvider(routerNetworks[SenderChains[chainId]].url);
let nonceRouter = await routerChainProvider.getTransactionCount(deployer);

const routerAddress = getContractAddress(deployer, nonceRouter);
console.log("calculated future router for nonce %d: %s", nonceRouter, routerAddress);

await deploy("VeaInboxArbToGnosis" + (chainId === 42161 ? "" : "Testnet"), {
contract: "VeaInboxArbToGnosis",
from: deployer,
args: [epochPeriod, routerAddress],
log: true,
});
};

// ----------------------------------------------------------------------------------------------
if (chainId === 31337) {
Expand All @@ -93,5 +113,4 @@ deployInbox.skip = async ({ getChainId }) => {
return !SenderChains[chainId];
};
deployInbox.runAtTheEnd = true;

export default deployInbox;
443 changes: 443 additions & 0 deletions contracts/deployments/arbitrumSepolia/VeaInboxArbToEthTestnet.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

450 changes: 0 additions & 450 deletions contracts/deployments/chiado/VeaInboxGnosisToArbTestnet.json

This file was deleted.

52 changes: 26 additions & 26 deletions contracts/deployments/chiado/VeaOutboxArbToGnosisTestnet.json

Large diffs are not rendered by default.

395 changes: 395 additions & 0 deletions contracts/deployments/sepolia/RouterArbToGnosisTestnet.json

Large diffs are not rendered by default.

Loading
Loading