Merge pull request #2431 from 0xProject/feature/fuzz/revert-assertions

`@0x/contracts-integrations`: Negative assertions for fuzzing
This commit is contained in:
mzhu25
2020-01-17 13:10:00 -08:00
committed by GitHub
16 changed files with 469 additions and 81 deletions

View File

@@ -60,6 +60,7 @@ export const constants = {
NULL_BYTES32: '0x0000000000000000000000000000000000000000000000000000000000000000',
UNLIMITED_ALLOWANCE_IN_BASE_UNITS: MAX_UINT256,
MAX_UINT256,
MAX_UINT32: new BigNumber(2).pow(32).minus(1),
TESTRPC_PRIVATE_KEYS: _.map(TESTRPC_PRIVATE_KEYS_STRINGS, privateKeyString => ethUtil.toBuffer(privateKeyString)),
INITIAL_ERC20_BALANCE: Web3Wrapper.toBaseUnitAmount(new BigNumber(10000), 18),
INITIAL_ERC20_ALLOWANCE: Web3Wrapper.toBaseUnitAmount(new BigNumber(10000), 18),