aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/test
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1003 from 0xProject/feature/contracts/roundupAmir Bandeali2018-08-251-6/+6
|\ | | | | [contracts] Add getPartialAmountCeil and isRoundingErrorCeil
| * Append -Floor to getPartialAmount and isRoundingErrorRemco Bloemen2018-08-251-6/+6
| |
* | Remove remaining Trezor referencesAmir Bandeali2018-08-251-9/+0
| |
* | Remove Trezor SignatureTypeAmir Bandeali2018-08-251-14/+0
|/
* Merge branch 'development' into feature/forwarder-helper/initBrandon Millman2018-08-244-30/+97
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * development: (187 commits) Remove trailing slash Fix linter Stop nesting interfaces and add necessary type exports Remove duplicate type and remove nested interface Add support for rending the Tuple type Add missing keyu Remove excessive timestamp Improve doc commebnt Remove docs catch-all endpoint Fix comments Look for all TS mapped types Add catch and exit with non-zero Remove superfluous dep Fix CHANGELOG entry Fix double assignment Upgrade Typedoc to 0.12.0, which works with TS 3.x Fix prettier issues Enable dry run of release publishing and handle git tags existing update yarn.lock Missing/superfluous type exports from connect ...
| * Merge developmentFabio Berger2018-08-174-32/+264
| |\
| * | Fix additional merge conflictsFabio Berger2018-08-153-13/+32
| | |
| * | Merge developmentFabio Berger2018-08-153-39/+415
| |\ \
| * | | Stop exporting constants from order-utilsFabio Berger2018-08-041-1/+3
| | | |
| * | | Make signature_util into an object literal so related functions are rendered ↵Fabio Berger2018-08-031-16/+52
| | | | | | | | | | | | | | | | together in the docs
* | | | Add ForwarderHelperImplConfigBrandon Millman2018-08-231-12/+12
| |_|/ |/| |
* | | Rename OrderAlreadyCancelledOrFilled -> OrderCancelled.Jacob Evans2018-08-161-1/+3
| | | | | | | | | | | | Remove try catch of throwing errors in favour of returning the Errors in a OrderValidationResult
* | | [Order-utils] Order is valid when maker amount is very smallJacob Evans2018-08-151-0/+122
| | | | | | | | | | | | | | | | | | | | | Previously our min fillable calculation would throw a rounding error when encountering a valid order (with a small maker amount). This was inconsistent with the on-chain logic which allowed this order to be filled.
* | | Merge branch 'development' into refactor/order-utils/market-utils-apiBrandon Millman2018-08-152-0/+122
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * development: feat: Upgrade TypeScript to 3.0.1 Add defaults for networkId and pagination Update sortingUtils to support Order and SignedOrder Change rateUtils to use Order Updated CHANGELOG Fix lint errors Update tests for optional feeRate Make feeRate optional with a default of 0 Add tests for sortingUtils Implement sorting utils Add tests for rateUtils Implement rate utils
| * \ \ Merge pull request #953 from 0xProject/feature/order-utils/order-sorting-utilsBrandon Millman2018-08-152-0/+122
| |\ \ \ | | |_|/ | |/| | [order-utils] Add rate and sorting utilities
| | * | Fix lint errorsBrandon Millman2018-08-102-9/+5
| | | |
| | * | Update tests for optional feeRateBrandon Millman2018-08-102-3/+14
| | | |
| | * | Make feeRate optional with a default of 0Brandon Millman2018-08-101-7/+1
| | | |
| | * | Add tests for sortingUtilsBrandon Millman2018-08-101-0/+66
| | | |
| | * | Add tests for rateUtilsBrandon Millman2018-08-101-0/+55
| | | |
* | | | Remove remaining amounts that are now defaults in testsBrandon Millman2018-08-141-36/+1
| | | |
* | | | Update marketUtils apiBrandon Millman2018-08-141-23/+44
|/ / /
* | | Rename from SignerProviderType.EthSign to SignerType.DefaultJacob Evans2018-08-111-37/+50
| | |
* | | Update jsdocJacob Evans2018-08-091-0/+1
| | |
* | | Introduce SignerProviderTypeJacob Evans2018-08-091-39/+78
|/ / | | | | | | This allows the developer to indicate the nuanced signer provider. Some have different implementations (trezor, ledger) and others have different implementations (metamask). Breaking the abstraction of eth_sign. EthSign assumes a spec compliant implementation and can be used as a default
* | Add strictArgumentEncodingCheck to BaseContract and use it in contract templatesAlex Browne2018-08-091-1/+2
| |
* | Add some test cases that stress slippageBufferAmount paramBrandon Millman2018-08-061-6/+15
| |
* | Add tests for findFeeOrdersThatCoverFeesForTargetOrdersBrandon Millman2018-08-062-14/+155
| |
* | Change orderStates param name to remaingFillableMakerAssetAmountsBrandon Millman2018-08-062-61/+14
| |
* | Implement first round of tests for findOrdersThatCoverMakerAssetFillAmountBrandon Millman2018-08-062-0/+209
|/
* Merge pull request #884 from 0xProject/export-more-0x.jsFabio Berger2018-07-181-2/+2
|\ | | | | Export missing V2 pieces from 0x.js
| * Rename assetProxyUtils to assetDataUtilsFabio Berger2018-07-171-2/+2
| |
* | Fix tslint issuesLeonid Logvinov2018-07-172-5/+4
|/
* Change import paths from z_r_x and e_r_c to zrx and ercLeonid Logvinov2018-06-292-4/+4
|
* Merge branch 'v2-prototype' into feature/combinatorial-testingFabio Berger2018-06-255-7/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: (97 commits) Fix typos in comments Add modifier and tests for removeAuthorizedAddressAtIndex Update and add tests Change removeAuthorizedAddress => removeAuthorizedAddressAtIndex Move isFunctionRemoveAuthorizedAddress to test Fix usage of `popLastByte` Fix LibBytes is a library Remove `areBytesEqual` Fix usage of `contentAddress()` Clean low bits in bytes4 Clean high bits in address Refactor LibBytes.readBytes4 for consistency Fix LibBytes.equals Add trailing garbage testcase for LibBytes.equals Rename bytes.equals Add slice and sliceDestructive Rename bytes.rawAddress and add bytes.contentAddress Rename read/writeBytesWithLength Using LibBytes for bytes Make LibBytes a library ... # Conflicts: # packages/contracts/src/utils/constants.ts # packages/contracts/test/exchange/core.ts
| * Fix known order hash value testJacob Evans2018-06-221-8/+4
| |
| * Skip failing tests temporarilyFabio Berger2018-06-221-2/+6
| |
| * Use make-promises-safe as a preloader instead of manually importingAlex Browne2018-06-225-5/+0
| |
* | Remaining refactors of order-utils components for V2Fabio Berger2018-06-131-12/+13
|/
* Fix no-unused-variable tslint rule to include parameters and fix issuesFabio Berger2018-06-122-13/+4
|
* Remove global hooks from tests and deploy contracts from within the specific ↵Fabio Berger2018-06-122-54/+32
| | | | tests
* Fix tslint issuesFabio Berger2018-06-121-3/+2
|
* Move OrderValidationUtils (+ tests) and ExchangeTransferSimulator to order-utilsFabio Berger2018-06-124-0/+305
|
* Fix tslint failureFabio Berger2018-06-081-1/+1
|
* Pass in fee and assetAmount rather then the whole signedOrderFabio Berger2018-06-081-30/+20
|
* - Refactor remainingFillableCalculator so it can be used for the maker and ↵Fabio Berger2018-06-081-0/+257
| | | | | | | taker side - Moved the tests over from order-watcher - Did some token -> asset renaming
* Try enabling no-unused-variable...fragosti2018-06-054-6/+2
|
* Fix type importsFabio Berger2018-06-022-2/+2
|
* Add signature specific validation methods, and other refactorsFabio Berger2018-06-021-2/+0
|
* Fix TODOsFabio Berger2018-06-011-2/+1
|
* Merge branch 'v2-prototype' into refactor/order-utils/for-v2Fabio Berger2018-06-011-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Move isValidOrderHash to the order_hash_test fileFabio Berger2018-05-312-15/+15
| |
* | Fix order-utils testsFabio Berger2018-05-312-33/+28
| |
* | Initial refactor of order-utils. Move many utils from contracts into this ↵Fabio Berger2018-05-302-28/+85
|/ | | | package.
* Remove web3Factory.create and remove dev-tools dependency on sol-covLeonid Logvinov2018-05-231-3/+2
|
* Merge pull request #594 from 0xProject/improvement/addCustomTslintRulesFabio Berger2018-05-231-4/+8
|\ | | | | Add more tslint rules
| * Fix TSLint rulesFabio Berger2018-05-161-4/+8
| |
* | Use make-promises-safe to catch unhandled rejections in testsAlex Browne2018-05-173-0/+3
|/
* Add missing type definitionsLeonid Logvinov2018-05-142-3/+3
|
* Fix signature utils testsLeonid Logvinov2018-05-031-15/+22
|
* Move order utils to @0xproject/order-utilsLeonid Logvinov2018-05-025-0/+260