Skip to content

Switch from using HardHat to Foundry #223

@aaronbuchwald

Description

@aaronbuchwald

This ticket is to switch from using HardHat to the Foundry tool with the goal of switching from JS to Rust dependency for security reasons.

Use Foundry cli tooling with DS-test instead of HardHat. Benefits include (but are not limited to):

  • removes dependency on npm/node-modules as a potential attack vector on CI

Implementation plan

  • Make sure DS-test works with a local subnet
  • add docs for installing foundry locally
  • add script(s) for running local tests locally
  • add github action (CI) for foundry tests (https://github.com/foundry-rs/foundry-toolchain)
  • Migrate precompile tests to solidity-based tests (DS-test) using Foundry/Forge for deployment
  • deprecate HardHat tests in CI

Metadata

Metadata

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions