sol-time-machine
1.1.0 • Public • Published sol-time-machine
Block manager for Solidity tests
Install
npm install sol-time-machine
Usage
const TimeMachine = require('sol-time-machine')
const timeMachine = new TimeMachine(global.web3)
snapshot/revert
contract('Example', (accounts) => {
beforeEach(async () => {
await timeMachine.snapshot()
})
afterEach(async () => {
await timeMachine.revert()
})
})
mine
await timeMachine.mine(10)
mineTo
await timeMachine.mineTo(10)
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
1.1.0 | 0 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.1.0 | 0 | |
1.0.0 | 0 | |
Package Sidebar
Install
Weekly Downloads