aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/utils
Commit message (Collapse)AuthorAgeFilesLines
* Move packages/contracts to contracts/coreLeonid Logvinov2018-12-0331-4230/+0
|
* Fix linting errorsAmir Bandeali2018-11-281-0/+2
|
* Fix async loops in erc721WrapperAmir Bandeali2018-11-282-3/+3
|
* Remove unnecessary conversion to BigNumberFabio Berger2018-11-121-2/+2
|
* rename paramFabio Berger2018-11-121-2/+2
|
* Move signature validation into ↵Fabio Berger2018-11-101-1/+1
| | | | OrderValidationUtils.validateOrderFillableOrThrowAsync
* Fix validateOrderFillableOrThrowAsync method so it also checks order ↵Fabio Berger2018-11-092-3/+14
| | | | signature, cancelled, cancelledUpTo, and throws helpful error messages
* Round up for Market Buys in Forwarding Contract. Includes new test cases + ↵Greg Hysen2018-10-241-3/+6
| | | | regression testing.
* chore: change package org from 0xproject to 0xJacob Evans2018-10-1827-65/+65
|
* Move generated contract wrappers and artifacts into contracts packageAlex Browne2018-10-1610-150/+16
|
* Throw and handle errors from Providers.Jacob Evans2018-10-091-1/+1
| | | | | | | 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-051-30/+4
| | | | | Create a helper back in EIP712Utils for code cleanup. Moved constants in order-utils into the constants object
* Add eth_signTypedData support to our wallet subprovidersJacob Evans2018-10-051-12/+28
|
* Fix bug where if block wasn't found, getBlockAsync would throw. Now it ↵Fabio Berger2018-09-241-2/+5
| | | | returns `undefined`
* Fix geth testsAmir Bandeali2018-09-041-4/+6
|
* Add more tests for MultiSigWalletWithTimeLockAmir Bandeali2018-09-041-0/+5
|
* Merge pull request #1045 from 0xProject/feature/contracts/cancelOrderInternalAmir Bandeali2018-08-311-0/+1
|\ | | | | Add cancelOrderInternal, use within batchCancelOrders
| * Add cancelOrderInternal, use within batchCancelOrdersAmir Bandeali2018-08-311-0/+1
| |
* | Add tests for token that returns >32 bytesAmir Bandeali2018-08-311-0/+2
|/
* Fix geth testsAmir Bandeali2018-08-301-2/+15
|
* feat: Add support for TypeScript project references (#991)Alex Browne2018-08-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update all package.json and tsconfig.json * fix(contracts): Make test/utils/web3_wrapper.ts compatible with project refs * Fix webpack config for 0x.js * Fix linter errors by adding rootDir to tsconfig.json as needed * Add build:ts and watch:ts commands to package.json * Update sra-spec to work with project references * Update tsconfig.json with latest new/removed packages * Add TypeScript as devDependency at root * Add missing rootDir to forwarder-helper package * Use a separate tsconfig file for typedoc * Fix linter errors * Apply PR feedback (add comments) * Fix 0x.js tsconfig
* fix(contracts): Catch cases where the actual error differs from the expected ↵Alex Browne2018-08-281-26/+46
| | | | | | | | | | error (#1032) * Catch cases where the actual error differs from the expected error * Add tests for testWithReferenceFuncAsync * Small style and comment fixes
* Extract only `fill` event logsGreg Hysen2018-08-251-4/+5
|
* Addressed linter errors in match order tessterGreg Hysen2018-08-251-9/+2
|
* Swapped direction of `expect` values to match output in failure casesGreg Hysen2018-08-251-37/+26
|
* Renaming verify -> assert in order matchingGreg Hysen2018-08-251-35/+34
|
* Fixed a function commentGreg Hysen2018-08-251-1/+2
|
* Added function signature commentsGreg Hysen2018-08-252-212/+206
|
* Added `expect` messages for checking left/right order statesGreg Hysen2018-08-251-2/+6
|
* Ran prettier and linterGreg Hysen2018-08-252-183/+314
|
* Updated all existing match order tests to use new formatGreg Hysen2018-08-251-6/+14
|
* Passes comprehensive testGreg Hysen2018-08-251-191/+141
|
* Verify logsGreg Hysen2018-08-251-72/+44
|
* First balance test with intentional valuesGreg Hysen2018-08-251-48/+71
|
* Ironing out the new set of test cases for order matchubngGreg Hysen2018-08-251-10/+101
|
* Rounding for fees in match orders addressed, plus exampleGreg Hysen2018-08-251-5/+79
|
* All existing tests pass.Greg Hysen2018-08-251-20/+33
|
* Only use one nonReentrant modifier, remove modifier from fillOrderNoThrow ↵Amir Bandeali2018-08-251-4/+0
| | | | variations
* Add reentrancy tests for fillOrder and wrapper functionsAmir Bandeali2018-08-252-0/+18
|
* Merge pull request #1003 from 0xProject/feature/contracts/roundupAmir Bandeali2018-08-252-7/+7
|\ | | | | [contracts] Add getPartialAmountCeil and isRoundingErrorCeil
| * Append -Floor to getPartialAmount and isRoundingErrorRemco Bloemen2018-08-252-7/+7
| |
* | Rename TestStaticCall => TestStaticCallReceiverAmir Bandeali2018-08-251-2/+2
| |
* | Add pragma experimental v0.5.0 to SignatureValidator and add testsAmir Bandeali2018-08-251-0/+2
|/
* Fix many linter errors that showed up upon upgrading tsutilFabio Berger2018-08-232-3/+3
|
* Merge development branchFabio Berger2018-08-227-9/+20
|\
| * Add testsAmir Bandeali2018-08-221-0/+2
| |
| * Fix linting errorsAmir Bandeali2018-08-174-6/+4
| |
| * Fix tests that assumed logs were being filteredAmir Bandeali2018-08-172-1/+8
| |
| * Add tests for ERC721TokenAmir Bandeali2018-08-172-1/+2
| |
| * Add tests for ERC20 token with no return valuesAmir Bandeali2018-08-171-0/+2
| |
| * Add constructor back to DummyERC721TokenAmir Bandeali2018-08-171-0/+2
| |
| * Update checking for erc721 existenceAmir Bandeali2018-08-171-3/+2
| |
* | Move types from sol-compiler to types so they can be used in other places ↵Fabio Berger2018-08-222-2/+2
| | | | | | | | without requiring sol-compiler as a dep
* | Fix commentFabio Berger2018-08-171-1/+2
| |
* | Merge developmentFabio Berger2018-08-173-1/+32
|\|
| * [Order-utils] Order is valid when maker amount is very smallJacob Evans2018-08-153-1/+32
| | | | | | | | | | | | | | 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 developmentFabio Berger2018-08-153-14/+72
|\|
| * Change withdrawERC20 => withdrawAsset, reuse transfer logicAmir Bandeali2018-08-101-3/+3
| |
| * Test abiEncodeFillOrder as part of combinatorial follOrder testsAmir Bandeali2018-08-092-5/+23
| |
| * Add return values to combinatorial fillOrder testsAmir Bandeali2018-08-092-11/+51
| |
* | Rename EIP712Utils to eip712Utils since objectLiterals shouldn't start with capsFabio Berger2018-08-041-3/+3
| |
* | Stop exporting cryptoFabio Berger2018-08-031-1/+2
| |
* | Add missing doc commentsFabio Berger2018-08-031-0/+6
|/
* Add combinatorial tests for internal Exchange functions (#807)Alex Browne2018-07-275-9/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 more tests and fixesAmir Bandeali2018-07-231-2/+2
|
* Fix minimal testsAmir Bandeali2018-07-232-164/+64
|
* Add tests to verify ZRX_ASSET_DATAAmir Bandeali2018-07-231-0/+2
|
* Move example contracts into new examples dirAmir Bandeali2018-07-231-4/+4
|
* Merge branch 'v2-prototype' into feature/order-watcher-v2Leonid Logvinov2018-07-188-40/+59
|\
| * Merge pull request #884 from 0xProject/export-more-0x.jsFabio Berger2018-07-188-40/+59
| |\ | | | | | | Export missing V2 pieces from 0x.js
| | * Fix prettierFabio Berger2018-07-181-6/+2
| | |
| | * merge v2-prototypeFabio Berger2018-07-183-5/+19
| | |\
| | * | Rename decodeAssetDataId to decodeAssetProxyId for consistencyFabio Berger2018-07-184-11/+11
| | | |
| | * | Move encodeUint256 & decodeUint256 out of assetDataUtils since we don't want ↵Fabio Berger2018-07-182-0/+23
| | | | | | | | | | | | | | | | them exported
| | * | Rename assetProxyUtils to assetDataUtilsFabio Berger2018-07-176-36/+36
| | | |
* | | | MergeLeonid Logvinov2018-07-181-1/+1
|/ / /
* | | Merge pull request #883 from 0xProject/feature/tslint-improvementsLeonid Logvinov2018-07-1815-47/+49
|\ \ \ | |_|/ |/| | New tslint rules
| * | Fix tslint issuesLeonid Logvinov2018-07-1715-47/+49
| |/
* | Add tests for getOrderInfo and getOrdersInfoAmir Bandeali2018-07-181-0/+4
| |
* | Fix bugs having to do with block timestamps and order expirationTimesAlex Browne2018-07-172-5/+15
|/
* Use 0.4.10 in AssetProxyOwner, add readBytes4 to contract and remove LibBytesAmir Bandeali2018-07-112-2/+8
|
* Merge pull request #822 from 0xProject/v2-contract-wrappers-WIPLeonid Logvinov2018-07-064-7/+7
|\ | | | | V2 contract wrappers
| * Make it possible to configure block polling interval in base contract wrapperLeonid Logvinov2018-07-054-7/+7
| |
* | Merge pull request #522 from 0xProject/feature/contracts/forwarderJacob Evans2018-07-064-0/+238
|\ \ | |/ |/| Forwarding contract
| * Forwarding contract (squashed commits)Jacob Evans2018-07-064-0/+238
| |
* | Move NodeType caching out of web3-wrapper and into our internal codeAlex Browne2018-07-041-2/+8
| |
* | Add TransactionReceiptStatus type to ethereum-typesAlex Browne2018-07-041-2/+2
| |
* | Improve robustness of revert reason assertionsAlex Browne2018-07-033-61/+105
| |
* | Fix bug where 18 decimal tokens instead of 5 decimal tokens createdFabio Berger2018-07-021-1/+1
| |
* | Disable custom-no-magic-number for blockFabio Berger2018-07-021-0/+2
| |
* | Merge branch 'v2-prototype' into fix/five_decimal_scenarioFabio Berger2018-07-0229-0/+3451
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: (75 commits) Update relayer grid tiles to use Text Fix build Update file structure Update 2.0.0 artifacts Move ledgerhq module declarations to typescript-typings Export LedgerEthereumClient type in subproviders Update artifacts Add logging and updated artifacts Fix migrations Run prettier Add Kovan artifacts Use ledger subprovider Add Kovan migrations Remove state variable from Link component in Portal Make registerAssetProxy append only Update staging api link Change getTransactionReceipt to awaitTransactionMined Move /docs route to the end Remove extra call to scrollIntoView for wallet in onboarding Update expectRevertReasonOrAlwaysFailingTransactionAsync to check status codes ...
| * Fix buildAmir Bandeali2018-06-303-25/+27
| |
| * Update file structureAmir Bandeali2018-06-3028-0/+3368
|/
* Move contract utilsLeonid Logvinov2018-05-242-377/+0
|
* Merge branch 'v2-prototype' into feature/truffle-sol-covLeonid Logvinov2018-05-241-1/+1
|\
| * Merge branch 'v2-prototype' into refactor/contracts/remove0xjsDepFabio Berger2018-05-231-7/+10
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * | Remove 0x.js dep from contractsFabio Berger2018-05-231-1/+1
| | |
* | | Parse compiler.json in SolCompilerArtifactsAdapterLeonid Logvinov2018-05-231-3/+1
| | |
* | | Fix a bug in CALL-like opcode handlingLeonid Logvinov2018-05-231-3/+3
| | |
* | | Rename ZeroExArtifactAdapter to SolCompilerArtifactAdapterLeonid Logvinov2018-05-231-2/+2
| | |
* | | Assign then returnLeonid Logvinov2018-05-231-1/+2
| | |
* | | Introduce CONFIG_FILELeonid Logvinov2018-05-231-1/+2
| | |
* | | Remove web3Factory.create and remove dev-tools dependency on sol-covLeonid Logvinov2018-05-231-0/+21
| |/ |/|
* | Fix tslint issuesFabio Berger2018-05-231-6/+9
| |
* | Add missing return typesRemco Bloemen2018-05-221-1/+1
|/
* orderFilledAmount -> orderTakerAssetFilledAmountGreg Hysen2018-05-191-12/+12
|
* Rebased against v2-prototypeGreg Hysen2018-05-191-2/+2
|
* Moved feeTokenAddress to MatchOrderTester constructor. Since it is constant, ↵Greg Hysen2018-05-191-118/+125
| | | | we dont need to pass it in on each call.
* Cleaned up interface for decoding proxy data. Added a general decoder, which ↵Greg Hysen2018-05-191-12/+10
| | | | should be useful for the forwarding contract code.
* Style improvements to the match orders typescript test classGreg Hysen2018-05-191-18/+14
|
* Style changes to atomic order matchingGreg Hysen2018-05-191-1/+0
|
* Atomic Order Matching - TestsGreg Hysen2018-05-191-0/+353
|
* Merge branch 'development' into v2-prototypeAmir Bandeali2018-05-163-39/+0
|\
| * Remove unused deployer docs configsLeonid Logvinov2018-05-101-1/+1
| |
| * Remove deployer from metacoin and contract testsLeonid Logvinov2018-05-102-19/+5
| |
* | Move utils dir into srcAmir Bandeali2018-04-211-1/+1
|/
* Simplify the testsFabio Berger2018-04-111-1/+1
|
* Move migrations into separate monorepo subpackage and hook it up to 0x.js ↵Fabio Berger2018-04-091-1/+1
| | | | and contracts
* Move away from using web3 directly in 0x.js testsFabio Berger2018-04-061-3/+4
|
* Fix testsLeonid Logvinov2018-04-051-2/+1
|
* Move our contract templates to accept Provider instead of Web3WrapperLeonid Logvinov2018-04-041-1/+2
|
* Make Deployer configurable by jsonrpcUrl instead of jsonrpcPortLeonid Logvinov2018-03-121-1/+1
|
* Rename useInProcessGanache to shouldUseInProcessGanacheLeonid Logvinov2018-03-121-1/+1
|
* Use in-process Ganache in contractsLeonid Logvinov2018-03-121-1/+2
|
* Add sol-cover implementationLeonid Logvinov2018-03-122-0/+8
|
* Fix artifacts pathAmir Bandeali2018-02-071-1/+1
|
* Rename directoriesAmir Bandeali2018-02-031-1/+1
|
* Remove truffle from testsLeonid Logvinov2018-01-301-0/+16
|
* Remove truffle from tokenTransferProxy testsLeonid Logvinov2018-01-301-0/+13