This repository serves as an example of tests written in a development and testing framework called Wake.
- Clone this repository
git submodule update --init --recursive
if not cloned with--recursive
cd core && yarn install && cd ..
to install Staking Router dependenciescd csm && yarn install && cd ..
to install CSM dependenciescd easy-track && yarn install && cd ..
to install EasyTrack dependencies./compile_old_solidity.sh
to compile contracts with older Solidity versions not supported by Wake
wake up pytypes
to generate pytypeswake test tests/test_csm_fuzz.py
to run CSM fuzz test (see tests for other tests)
wake --config wake-deployment-verification.toml up pytypes
to generate pytypeswake test tests/test_csm_deployment.py
to perform deployment verification for CSMwake test tests/test_sr_deployment.py
to perform deployment verification for Staking Router
Requires wake
version 4.13.0
or later.
Tested with anvil
version anvil 0.2.0 (88e18ef 2024-10-11T15:18:57.052041000Z)
. Fuzz tests expect a local Ethereum mainnet node running at http://localhost:8545 synchronized to the block 20935461
or later.