aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/exchange/libs.ts
Commit message (Collapse)AuthorAgeFilesLines
* Move packages/contracts to contracts/coreLeonid Logvinov2018-12-031-137/+0
|
* chore: change package org from 0xproject to 0xJacob Evans2018-10-181-4/+4
|
* Move generated contract wrappers and artifacts into contracts packageAlex Browne2018-10-161-3/+3
|
* Add eth_signTypedData support to our wallet subprovidersJacob Evans2018-10-051-17/+1
|
* Append -Floor to getPartialAmount and isRoundingErrorRemco Bloemen2018-08-251-3/+3
|
* Add testsRemco Bloemen2018-08-251-22/+50
|
* Update testsRemco Bloemen2018-08-251-2/+2
|
* Rename EIP712Utils to eip712Utils since objectLiterals shouldn't start with capsFabio Berger2018-08-041-2/+2
|
* Add combinatorial tests for internal Exchange functions (#807)Alex Browne2018-07-271-92/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP add combinatorial tests for internal Exchange functions * Change combinitorial testing strategy based on feedback * Check value of filled[orderHash] in updateFilledState tests * Add combinatorial tests for addFillResults * Add combinatorial tests for getPartialAmount * Implement generic `testWithReferenceFuncAsync` * Implement generic `testCombinatoriallyWithReferenceFuncAsync` * Add combinatorial tests for isRoundingError * Add combinatorial tests for calculateFillResults * Add support for Geth in internal contract tests * Fix contract artifacts * Change DECIMAL_PLACES to 78 and add a note. * Document new functions in utils * Optimize tests by only reseting state when needed * Rename/move some files * Print parameter names on failure in testWithReferenceFuncAsync * Add to changelog for utils package * Appease various linters * Rename some more things related to FillOrderCombinatorialUtils * Remove .only from test/exchange/internal.ts * Remove old test for isRoundingError and getPartialAmount * Appease linters again * Remove old todos * Fix typos, add comments, rename some things * Re-add some LibMath tests * Update contract internal tests to use new SafeMath revert reasons * Apply PR feedback from Amir * Apply PR feedback from Remco * Re-add networks to ZRXToken artifact * Remove duplicate Whitelist in compiler.json
* Add tests to verify ZRX_ASSET_DATAAmir Bandeali2018-07-231-0/+16
|
* merge v2-prototypeFabio Berger2018-07-181-1/+1
|\
| * Fix bugs having to do with block timestamps and order expirationTimesAlex Browne2018-07-171-1/+1
| |
* | Rename assetProxyUtils to assetDataUtilsFabio Berger2018-07-171-3/+3
|/
* Update file structureAmir Bandeali2018-06-301-7/+7
|
* Merge branch 'v2-prototype' into bug/contracts/eip712-191-prefixJacob Evans2018-06-181-4/+3
|\
| * Converged on naming scheme for asset data: renamed all instances of ↵Greg Hysen2018-06-081-2/+2
| | | | | | | | assetMetadata, proxyData, proxyMetadata to assetData
| * merge v2-prototypeFabio Berger2018-06-071-1/+0
| |\
| | * Linter now passesfragosti2018-06-061-1/+0
| | |
| * | move generated contract wrappers from `contract_wrappers/generated/` to ↵Fabio Berger2018-06-061-1/+1
| |/ | | | | | | `generated_contract_wrappers` in package with no non-generated contract wrappers
* | Update Order utils to use eip712Jacob Evans2018-06-061-5/+4
| |
* | Add missing EIP191 prefix for EIP712Jacob Evans2018-06-051-2/+7
|/
* Merge branch 'v2-prototype' into refactor/order-utils/for-v2Fabio Berger2018-06-011-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: (45 commits) Check length before accessing indices, add awaitTransactionSuccess where needed, and rename function Add back before/after snapshots for each test Rename Signer to Wallet, rename GAS_ESTIMATE to GAS_LIMIT Make preSigned and allowedValidators mappings public Change names of signature types Fix formatting and tests Make AssetProxyId last byte of assetData Add signer to txHash, allow approveValidator to be used with executeTransaction Update Whitelist Fix Exchange interface Increase block gas limit Use last byte of signature as signature type Remove TxOrigin signature type, modify whitelist to use Validator signature type Update Whitelist contract with comments, also require maker to be whitelisted Fix build Add example whitelist contract and minimum tests Add sample whitelist contract Add TxOrigin signature type and rearrange order of types Add approveValidator function Add Validator signature type ... # Conflicts: # packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol # packages/contracts/src/utils/types.ts # packages/contracts/test/exchange/transactions.ts # packages/order-utils/src/asset_proxy_utils.ts
| * Add back before/after snapshots for each testAmir Bandeali2018-05-311-0/+6
| |
| * Fix formatting and testsAmir Bandeali2018-05-311-8/+2
| |
* | Initial refactor of order-utils. Move many utils from contracts into this ↵Fabio Berger2018-05-301-5/+4
|/ | | | package.
* Merge branch 'v2-prototype' into feature/contracts/eip712-order-hashFabio Berger2018-05-251-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: Temporarily disable installation tests Pin connect in sra-report Fix a typo Pin types in sra-report Fix linter issues Unpin types version in @0xproject/connect Pin types version in website Do a fake version bump on types so that yarn doesn't try to install updated version for not yet migrated packages Migrate migrations to v2 # Conflicts: # packages/contracts/src/utils/order_utils.ts
| * Fix linter issuesLeonid Logvinov2018-05-251-1/+1
| |
| * Migrate migrations to v2Leonid Logvinov2018-05-251-1/+1
| |
* | Use domain separator for exchange addressJacob Evans2018-05-251-2/+8
| |
* | publicGetOrderSchemaHash -> getOrderSchemaHashJacob Evans2018-05-251-1/+1
| |
* | Update order hash to match latest eip712Jacob Evans2018-05-251-0/+6
|/
* Merge branch 'v2-prototype' into refactor/contracts/remove0xjsDepFabio Berger2018-05-231-0/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: Fix tslint issues Add `are` to boolean naming conventions Fix tslint Fix the tsutils version, fixing ts typings issue Rename some variables in multi_sig_with_time_lock.ts Remove extra awaitTransactionMinedAsync calls Update artifacts Update yarn.lock Fix warnings in Metacoin Upgrade UglifyJS to include ES6 support Add CancelOrder and MatchOrder types Add missing return types Ignore classnames linter rule Apply changes to test/exchange/match_orders.ts Fix some unhandled promise rejections Add awaitTransactionMinedAsync after every sent transaction Add missing blockchainLifecycle calls to contracts tests # Conflicts: # packages/contracts/src/utils/exchange_wrapper.ts # packages/contracts/test/asset_proxy/proxies.ts # packages/contracts/test/exchange/dispatcher.ts # packages/contracts/test/multi_sig_with_time_lock.ts
| * Add missing blockchainLifecycle calls to contracts testsAlex Browne2018-05-221-0/+6
| |
* | Remove 0x.js dep from contractsFabio Berger2018-05-231-2/+0
|/
* Merge branch 'development' into v2-prototypeAmir Bandeali2018-05-161-6/+5
|
* Make all lib functions internal, add contracts for testingAmir Bandeali2018-04-271-0/+155