kleros-v2 icon indicating copy to clipboard operation
kleros-v2 copied to clipboard

Chore(hardhat)/hardhat ether version update

Open Anmol-Dhiman opened this issue 1 year ago • 6 comments

PR-Codex overview

This PR updates various parts of the codebase to use ethers v6, fix styling in components, and improve contract deployment scripts.

Detailed summary

  • Updated ethers imports and usage to version 6.
  • Fixed styling in Timestamp component.
  • Refactored contract deployment scripts for consistency and efficiency.

The following files were skipped due to too many changes: contracts/deploy/utils/getContractOrDeploy.ts, contracts/deploy/utils/deployTokens.ts, contracts/deploy/01-foreign-gateway-on-ethereum.ts, contracts/deploy/upgrade-kleros-core.ts, contracts/deploy/fix1148.ts, contracts/deploy/03-vea-mock.ts, contracts/deploy/01-foreign-gateway-on-gnosis.ts, contracts/test/proxy/index.ts, contracts/deploy/00-home-chain-arbitration.ts, contracts/test/rng/index.ts, contracts/scripts/simulations/utils.ts, contracts/deploy/00-home-chain-arbitration-neo.ts, contracts/deploy/00-home-chain-arbitration-university.ts, contracts/scripts/populateCourts.ts, contracts/test/arbitration/index.ts, contracts/test/integration/index.ts, contracts/test/evidence/index.ts, contracts/test/arbitration/staking.ts, contracts/scripts/simulations/tasks.ts, contracts/test/arbitration/draw.ts, contracts/scripts/keeperBot.ts, contracts/test/arbitration/staking-neo.ts, yarn.lock

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • Refactor

    • Updated various scripts and deployment files to replace AddressZero with ZeroAddress for consistency.
    • Modified import statements and function calls to improve code clarity and alignment with the latest ethers library version.
    • Enhanced event handling and logging mechanisms across deployment scripts.
  • Chores

    • Updated dependencies in package.json to their latest versions for better performance and security.
    • Adjusted test command specification in GitHub Actions workflow for contracts testing.

Anmol-Dhiman avatar Jun 19 '24 10:06 Anmol-Dhiman