aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/test
Commit message (Collapse)AuthorAgeFilesLines
* Minimize unnecessary type assertionsAmir Bandeali2019-01-081-1/+3
|
* Fix linting errorsAmir Bandeali2019-01-081-0/+1
|
* Add tests for recursive MAP decodingAmir Bandeali2019-01-082-3/+44
|
* Fix transferFrom to work with MAPAmir Bandeali2019-01-081-2/+2
|
* Fix decoding and add testsAmir Bandeali2019-01-081-28/+44
|
* Implement prefer-template tslint rulekao2018-12-081-1/+1
|
* Fix validateOrderFillableOrThrowAsync method so it also checks order ↵Fabio Berger2018-11-091-1/+2
| | | | signature, cancelled, cancelledUpTo, and throws helpful error messages
* feat(order_utils.py): ERC721 asset data codec (#1186)F. Eugene Aumson2018-10-271-3/+22
|
* feat(order_utils.py): ERC20 asset data encoding and decodingF. Eugene Aumson2018-10-241-0/+31
| | | | | | | | | | In addition to the ERC20 codec, also: Stopped ignoring type errors on 3rd party imports, by including interface stubs for them; Removed the unimplemented signature-utils module, which was just a stand-in when the python project support was first put in place. https://github.com/0xProject/0x-monorepo/pull/1144
* chore: change package org from 0xproject to 0xJacob Evans2018-10-1813-23/+23
|
* update order-utils to use new artifacts and abi-gen wrappers packagesAlex Browne2018-10-162-6/+3
|
* Throw and handle errors from Providers.Jacob Evans2018-10-092-63/+88
| | | | | | | In web3 wrapper when a response contains an error field we throw this rather than return response.result which is often undefined. In Signature Utils we handle the error thrown when a user rejects the signing dialogue to prevent double signing. Exposed the ZeroExTransaction JSON schema. In Website only use the MetamaskSubprovider if we can detect the provider is Metamask
* Return SignedOrder from signing utils.Jacob Evans2018-10-053-3/+106
| | | | | Create a helper back in EIP712Utils for code cleanup. Moved constants in order-utils into the constants object
* Introduce Metamask Subprovider.Jacob Evans2018-10-051-89/+15
| | | | MM has a number of inconsistencies with other providers when implementing the JSON RPC interface. This subprovider wraps those nuances so they do not leak into the rest of our code
* Expose eth_signTypedData functionality for order signingJacob Evans2018-10-051-10/+45
|
* Add transactionHash to OrderState and emit it from OrderWatcher subscriptionFabio Berger2018-09-251-0/+20
|
* 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