POL-related SC updates from plasma-bridge-update branch (reviewed and audited)
Migration of the whole repository and all tests to use Foundry/Hardhat (description below)
Deletion of deprecated/unused contracts (which are not on mainnet)
Migration details
We used the new Foundry template repo as a starting point, but incorporated Hardhat to easily re-use the old tests.
All test were then migrated to be used with new JS version and Hardhat framework
No Smart Contract was edited during this migration!
Goals:
[x] compiles with forge build
[x] compiles with hardhat compile
[x] all tests run with hardhat
[x] solidity coverage works
[x] README updated
type: module
As the old tests relied heavily on import statements, we decided to make the whole project "type": "module" .
This results in the necessary renaming of some config files like hardhat.config.cjs or solcover.cjs using the cjs extension.
Config
To maintain a single source of truth for our config, we import foundry.toml into hardhat.config.cjs to define solidity version and optimiser runs.
This merge includes 3 different major changes:
plasma-bridge-update
branch (reviewed and audited)Migration details We used the new Foundry template repo as a starting point, but incorporated Hardhat to easily re-use the old tests. All test were then migrated to be used with new JS version and Hardhat framework
No Smart Contract was edited during this migration!
Goals:
type: module
As the old tests relied heavily on
import
statements, we decided to make the whole project"type": "module"
.This results in the necessary renaming of some config files like
hardhat.config.cjs
orsolcover.cjs
using the cjs extension.Config
To maintain a single source of truth for our config, we import
foundry.toml
intohardhat.config.cjs
to define solidity version and optimiser runs.