livepeer / protocol

Livepeer protocol
MIT License
154 stars 45 forks source link

Add V1 -> Streamflow upgrade tests #357

Closed yondonfu closed 2 years ago

yondonfu commented 4 years ago

We can add tests for the upgrade process from V1 -> Streamflow. One way to do this is to use the ABI and bytecode of deployed contracts on mainnet and add a custom Truffle external compilation script that uses the ABI and bytecode to deploy those contracts in a test environment. Then, tests could update the state of the old set of contracts, upgrade some contracts and then check that the upgrade worked properly and that there is no unexpected behavior in the interactions between new and old contracts.