-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contracts: migration simulation: Test migration simulation
- Loading branch information
Showing
8 changed files
with
463 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -618,7 +618,8 @@ brownie pm install OpenZeppelin/[email protected] | |
|
||
Run, from `packages/contracts/`: | ||
``` | ||
brownie test -s | ||
brownie test tests/simulation_test.py -s | ||
brownie test tests/migration_test.py -s | ||
``` | ||
|
||
### OpenEthereum | ||
|
@@ -644,7 +645,8 @@ yarn start-dev-chain:openethereum | |
|
||
Then, again from `packages/contracts/`, run it with: | ||
``` | ||
brownie test -s --network openethereum | ||
brownie test tests/simulation_test.py -s --network openethereum | ||
brownie test tests/migration_test.py -s --network openethereum | ||
``` | ||
|
||
To stop the Openethereum node, you can do it with: | ||
|
10 changes: 10 additions & 0 deletions
10
packages/contracts/contracts/TestContracts/TroveManagerNoBootstrap.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity 0.6.11; | ||
|
||
import "../TroveManager.sol"; | ||
|
||
|
||
contract TroveManagerNoBootstrap is TroveManager { | ||
function _requireAfterBootstrapPeriod() internal view override {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.