@0x/contracts-test-utils: Add number_utils.ts and hexSize().

This commit is contained in:
Lawrence Forman
2019-09-27 19:32:55 -04:00
parent a9f1237208
commit cf8d424b9b
4 changed files with 119 additions and 1 deletions

View File

@@ -28,7 +28,17 @@ export { bytes32Values, testCombinatoriallyWithReferenceFunc, uint256Values } fr
export { TransactionFactory } from './transaction_factory';
export { MutatorContractFunction, TransactionHelper } from './transaction_helper';
export { testWithReferenceFuncAsync } from './test_with_reference';
export { hexConcat, hexHash, hexLeftPad, hexInvert, hexSlice, hexRandom, hexRightPad, toHex } from './hex_utils';
export {
hexConcat,
hexHash,
hexLeftPad,
hexInvert,
hexSlice,
hexRandom,
hexRightPad,
hexSize,
toHex,
} from './hex_utils';
export {
BatchMatchOrder,
ContractName,
@@ -51,3 +61,12 @@ export { blockchainTests, BlockchainTestsEnvironment, describe } from './mocha_b
export { chaiSetup, expect } from './chai_setup';
export { getCodesizeFromArtifact } from './codesize';
export { shortZip } from './lang_utils';
export {
assertIntegerRoughlyEquals,
assertRoughlyEquals,
getRandomFloat,
getRandomInteger,
getRandomPortion,
getNumericalDivergence,
toBaseUnitAmount,
} from './number_utils';