Skip to content

Ackee-Blockchain/tests-lido-csm

Repository files navigation

Tests for Lido Community Staking Module & Staking Router

This repository serves as an example of tests written in a development and testing framework called Wake.

horizontal splitter

Setup

  1. Clone this repository
  2. git submodule update --init --recursive if not cloned with --recursive
  3. cd core && yarn install && cd .. to install Staking Router dependencies
  4. cd csm && yarn install && cd .. to install CSM dependencies
  5. cd easy-track && yarn install && cd .. to install EasyTrack dependencies
  6. ./compile_old_solidity.sh to compile contracts with older Solidity versions not supported by Wake

Running fuzz tests

  1. wake up pytypes to generate pytypes
  2. wake test tests/test_csm_fuzz.py to run CSM fuzz test (see tests for other tests)

Running deployment verification

  1. wake --config wake-deployment-verification.toml up pytypes to generate pytypes
  2. wake test tests/test_csm_deployment.py to perform deployment verification for CSM
  3. wake 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.

About

Tests for Lido Community Staking Module & Staking Router

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published