sol-time-machine
Block manager for Solidity tests
Install
npm install sol-time-machine
Usage
const TimeMachine = const timeMachine = globalweb3
snapshot/revert
// test.js
mine
// advance 10 blocksawait timeMachine
mineTo
// advance to block number 10await timeMachine