Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 2.11 KB

File metadata and controls

58 lines (34 loc) · 2.11 KB

Stage Proposal Processor Foundry

Audit

v1.1.0

Halborn: audit report

Project

The root folder of the repo includes src subfolder with the plugin contracts.

The root-level package.json file contains global dev-dependencies for formatting and linting.

Targetting ZkSync

If you desire to deploy or run tests against zksync network, make sure to install foundry-zksync:

  • First, you need a stable foundry-zksync. We recommend the zip extention from foundry zksync's official release
  • Build the binary by running: foundryup-zksync --path path-to-foundryup-zksync
  • Run foundryup-zksync --version nightly-420660c5243e06af1f12febb1765a9abc9c77461 to install this specific version.

Targetting Peaq and Agung testnet

Edit foundry.toml and uncomment the evm_version setting:

evm_version = "london"

Build

yarn --ignore-scripts
forge build or forge build --zksync

Test

To run the tests against evm based network, run yarn test. For zksync, run yarn test:zksync. See above how to install foundry zksync toolchain.

If the tests fail with The application panicked error on zksync, remove cache folder and run yarn test:zksync again.

Due to some limitations, fork tests will not be able to run on zksync network.

Deploy

To deploy the plugin with new plugin repo, you can run: make deploy on EVM based networks and make deploy-zksync on zksync.

To upgrade the repo with a new version, run make upgrade-repo on EVM based networks and make upgrade-repo-zksync on zksync.