aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/exchange
Commit message (Collapse)AuthorAgeFilesLines
* chore: change package org from 0xproject to 0xJacob Evans2018-10-189-34/+34
|
* Move generated contract wrappers and artifacts into contracts packageAlex Browne2018-10-168-48/+45
|
* Add eth_signTypedData support to our wallet subprovidersJacob Evans2018-10-051-17/+1
|
* Introduce Metamask Subprovider.Jacob Evans2018-10-051-9/+3
| | | | 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
* Merge pull request #1047 from 0xProject/feature/re-add-no-unused-variablesFrancesco Agosti2018-08-312-5/+2
|\ | | | | Re-add no-unused-variable tslint rule
| * run prettierfragosti2018-08-311-3/+1
| |
| * Fix unused vars for react-shared and websitefragosti2018-08-312-2/+1
| |
* | Merge pull request #1046 from ↵Greg Hysen2018-08-311-0/+94
|\ \ | | | | | | | | | | | | 0xProject/fix/contracts/roundingFeeTestsMatchOrders Test cases for rounding fees in matchOrders
| * | Test cases for rounding fees in matchOrdersGreg Hysen2018-08-311-0/+94
| | |
* | | Add test for fillOrder and dispatchTransferFrom where maker == takerAmir Bandeali2018-08-312-1/+92
| |/ |/|
* | Fix geth testsAmir Bandeali2018-08-301-7/+7
|/
* Making rounding consistent in calculateFillResultsAmir Bandeali2018-08-291-7/+10
|
* safeGetPartialAmount (#1035)Amir Bandeali2018-08-292-87/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added Test "Should transfer correct amounts when left order is fully filled and values pass isRoundingErrorCeil but fail isRoundingErrorFloor" * Added RoundingError exception to reference function for getPartialAmount * Added RoundingError exception to reference function for getPartialAmount * Added isRoundingErrorCeil to getPartialAmountCeil reference funtion * Computed new values for "Should give right maker a better buy price when correct price is not integral" that does not have a rounding error * Almost all tests for match orders are passing after adding isRoundingErrorCeil check * WIP commit: Added rounding error checks to getPartialAmount * WIP commit: Added rounding error checks to getPartialAmount * Use safe versions of getPartialAmount * Update Exchange internals tests * Run linter * Found new values for "Should transfer correct amounts when right order fill amount deviates from amount derived by `Exchange.fillOrder`" * Fixed merge conflicts * Run all tests * Cleaned up some comments on match Orders tests * Fix tests for geth
* fix(contracts): Use correct error message for division by zeroAlex Browne2018-08-281-3/+1
|
* Run all testsGreg Hysen2018-08-251-1/+1
|
* Give right maker better price when correct value is not integralGreg Hysen2018-08-251-10/+14
|
* Tests for matchOrders edge casesGreg Hysen2018-08-251-13/+71
|
* Renaming verify -> assert in order matchingGreg Hysen2018-08-251-18/+18
|
* Added function signature commentsGreg Hysen2018-08-251-27/+27
|
* Ran prettier and linterGreg Hysen2018-08-251-41/+3
|
* Updated all existing match order tests to use new formatGreg Hysen2018-08-251-122/+287
|
* First balance test with intentional valuesGreg Hysen2018-08-251-11/+24
|
* Ironing out the new set of test cases for order matchubngGreg Hysen2018-08-251-1/+1
|
* All existing tests pass.Greg Hysen2018-08-251-1/+104
|
* Add tests for matchOrdersAmir Bandeali2018-08-252-122/+53
|
* Add reentrancy tests for fillOrder and wrapper functionsAmir Bandeali2018-08-252-0/+221
|
* Merge pull request #1003 from 0xProject/feature/contracts/roundupAmir Bandeali2018-08-252-58/+172
|\ | | | | [contracts] Add getPartialAmountCeil and isRoundingErrorCeil
| * Fix linting errorsAmir Bandeali2018-08-251-2/+2
| |
| * Append -Floor to getPartialAmount and isRoundingErrorRemco Bloemen2018-08-252-13/+13
| |
| * Add testsRemco Bloemen2018-08-252-22/+93
| |
| * Add DIVISION_BY_ZERO to getPartialAmount for consistencyRemco Bloemen2018-08-251-16/+15
| |
| * Remove .onlyRemco Bloemen2018-08-251-1/+1
| |
| * Add tests for getPartialAmountCeilRemco Bloemen2018-08-251-0/+40
| |
| * Update testsRemco Bloemen2018-08-252-13/+17
| |
* | SignatureType.Trezor -> SignatureType.EthSign in Signature Validator testsGreg Hysen2018-08-251-1/+1
| |
* | Test case for Trezor Model T signatureGreg Hysen2018-08-251-0/+18
| |
* | Fixed trezor personal message in client+contracts; added a test using ↵Greg Hysen2018-08-251-0/+18
| | | | | | | | message signed by Trezor One (firmware v1.6.2)
* | Remove Trezor SignatureTypeAmir Bandeali2018-08-251-47/+0
| |
* | Remove SignatureType.CallerAmir Bandeali2018-08-251-26/+0
| |
* | Rethrow Wallet and Validator errorsAmir Bandeali2018-08-252-18/+14
| |
* | Rename TestStaticCall => TestStaticCallReceiverAmir Bandeali2018-08-252-10/+10
| |
* | Remove pragma experimental v0.5.0 and use staticcall is assemblyAmir Bandeali2018-08-252-11/+70
| |
* | Add pragma experimental v0.5.0 to SignatureValidator and add testsAmir Bandeali2018-08-251-1/+52
|/
* Fix many linter errors that showed up upon upgrading tsutilFabio Berger2018-08-231-1/+1
|
* Merge development branchFabio Berger2018-08-224-3/+136
|\
| * Fix linting errorsAmir Bandeali2018-08-172-2/+2
| |
| * Add tests for ERC20 token with no return valuesAmir Bandeali2018-08-172-1/+134
| |
* | Merge developmentFabio Berger2018-08-171-0/+11
|\|
| * [Order-utils] Order is valid when maker amount is very smallJacob Evans2018-08-151-0/+11
| | | | | | | | | | | | | | 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-152-19/+28
|\|
| * Rename from SignerProviderType.EthSign to SignerType.DefaultJacob Evans2018-08-111-5/+5
| |
| * Introduce SignerProviderTypeJacob Evans2018-08-091-6/+6
| | | | | | | | 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-3/+3
| |
| * Update TypeScript to version 2.9.2Alex Browne2018-08-091-4/+19
| |
* | Rename EIP712Utils to eip712Utils since objectLiterals shouldn't start with capsFabio Berger2018-08-041-2/+2
| |
* | Make signature_util into an object literal so related functions are rendered ↵Fabio Berger2018-08-031-5/+17
|/ | | | together in the docs
* Add combinatorial tests for internal Exchange functions (#807)Alex Browne2018-07-273-116/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
|
* Move example contracts into new examples dirAmir Bandeali2018-07-231-8/+8
|
* Removed receiverData and `onReceive` callback from ERC721 proxy.Greg Hysen2018-07-181-24/+0
|
* Fix prettierFabio Berger2018-07-181-3/+1
|
* merge v2-prototypeFabio Berger2018-07-186-97/+403
|\
| * Add tests for getOrderInfo and getOrdersInfoAmir Bandeali2018-07-182-5/+307
| |
| * Fix bugs having to do with block timestamps and order expirationTimesAlex Browne2018-07-176-94/+98
| |
* | Rename assetProxyUtils to assetDataUtilsFabio Berger2018-07-177-95/+95
|/
* Make it possible to configure block polling interval in base contract wrapperLeonid Logvinov2018-07-056-24/+24
|
* Improve robustness of revert reason assertionsAlex Browne2018-07-036-47/+47
|
* Remove unused variableFabio Berger2018-07-021-1/+0
|
* Merge branch 'v2-prototype' into fix/five_decimal_scenarioFabio Berger2018-07-028-257/+139
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-302-5/+5
| |
| * Update file structureAmir Bandeali2018-06-307-92/+91
| |
| * Make registerAssetProxy append onlyAmir Bandeali2018-06-305-141/+42
| |
| * Update expectRevertReasonOrAlwaysFailingTransactionAsync to check status codesAlex Browne2018-06-301-21/+3
| |
* | Print out entire orderFill scenarioFabio Berger2018-07-021-7/+1
|/
* Reduce the userAddresses to the individual addresses actually used by tests, ↵Fabio Berger2018-06-285-13/+22
| | | | as well as only deploy the number of ERC20 tokens needed for each test suite
* Merge branch 'v2-prototype' into feature/combinatorial-testingFabio Berger2018-06-271-8/+33
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: Improve 'web3-provider-engine' typings Fix build Update artifacts Add more revert reasons to tests Make dispatchTransferFrom revert with reason from AssetProxy on failure Remove redundant files, hard code function selector in dispatchTransferFrom, and modify revert reason Updated offset of receiverData length to reflect new assetData encoding. ERC20 Custom storage layout Golf the authorization check ERC20 manual memory layout ERC20 inline return ERC721 inline return Golf ERC721 transferFrom Inline ERC20 tranferFrom selector constant Optimize ERC20 transferFrom Polish asset picker layout Update relayer grid fallback icon Change metamask install link based on browser Use ethereumjs-tx@1.3.5 instead of our fork # Conflicts: # packages/contracts/test/asset_proxy/proxies.ts # packages/contracts/test/exchange/core.ts # packages/migrations/artifacts/2.0.0/DummyERC721Token.json
| * Add more revert reasons to testsAmir Bandeali2018-06-271-6/+31
| |
| * Make dispatchTransferFrom revert with reason from AssetProxy on failureAmir Bandeali2018-06-271-2/+2
| |
* | Move combinatorial fillOrder tests into the `fill_ordere` test fileFabio Berger2018-06-272-48/+21
| |
* | Merge branch 'refactor/check-revert-reasons' into feature/combinatorial-testingFabio Berger2018-06-276-45/+45
|\| | | | | | | | | | | | | | | | | | | | | * refactor/check-revert-reasons: Temporarily switch revert reasons to `TransferFailed`. Should be `InvalidAmount` but because of an oversight in the assembly implementation of `dispatchTransferFrom`, it always throws `TransferFailed` Expect RevertReason be passed in, not string Rename RevertReasons to RevertReason since singular enum names are more common # Conflicts: # packages/contracts/test/asset_proxy/proxies.ts # packages/contracts/test/exchange/core.ts
| * Temporarily switch revert reasons to `TransferFailed`. Should be ↵Fabio Berger2018-06-271-2/+2
| | | | | | | | `InvalidAmount` but because of an oversight in the assembly implementation of `dispatchTransferFrom`, it always throws `TransferFailed`
| * Rename RevertReasons to RevertReason since singular enum names are more commonFabio Berger2018-06-266-54/+54
| |
| * Merge branch 'v2-prototype' into refactor/check-revert-reasonsFabio Berger2018-06-265-10/+7
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: (21 commits) Don't use variables for revert reasons Add comments to dispatchTransferFrom Document IAssetData Compute bytes4 proxyid constants Return inplace bytes in LibBytes.readBytesWithLength Add Greg's documentation to MixinErc721Transfer Add Greg's documentation to MixinErc20Transfer Gas golf the transfer success logic Optimize like in PR #767 Run prettier and fix linting errors Fix tests Update tests Fix AssetProxyUtils Update tests Fix ERC721Proxy TokenId Update AssetProxyUtils Add IAssetData WIP ABI encoded asset data Remove proxyId argument from dispatchTransferFrom ... # Conflicts: # packages/contracts/test/asset_proxy/proxies.ts
* | \ Merge branch 'v2-prototype' into feature/combinatorial-testingFabio Berger2018-06-265-10/+7
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: (21 commits) Don't use variables for revert reasons Add comments to dispatchTransferFrom Document IAssetData Compute bytes4 proxyid constants Return inplace bytes in LibBytes.readBytesWithLength Add Greg's documentation to MixinErc721Transfer Add Greg's documentation to MixinErc20Transfer Gas golf the transfer success logic Optimize like in PR #767 Run prettier and fix linting errors Fix tests Update tests Fix AssetProxyUtils Update tests Fix ERC721Proxy TokenId Update AssetProxyUtils Add IAssetData WIP ABI encoded asset data Remove proxyId argument from dispatchTransferFrom ... # Conflicts: # packages/contracts/test/asset_proxy/proxies.ts
| * | Fix testsAmir Bandeali2018-06-263-3/+3
| | |
| * | Remove proxyId argument from dispatchTransferFromRemco Bloemen2018-06-262-7/+4
| | |
* | | Fix inconsistency between contract and reference implementation of order ↵Fabio Berger2018-06-261-0/+2
| | | | | | | | | | | | validation logic
* | | Prettier fixesFabio Berger2018-06-261-4/+1
| | |
* | | Fix tslint issuesFabio Berger2018-06-263-4/+1
| | |
* | | merge check-revert-reasonsFabio Berger2018-06-256-18/+10
|\ \ \ | | |/ | |/|
| * | Move RevertReasons to @0xproject/types packageFabio Berger2018-06-256-18/+10
| | |
* | | merge check-revert-reasonsFabio Berger2018-06-256-67/+112
|\| |
| * | Fix tslintFabio Berger2018-06-234-4/+4
| | |
| * | Fix prettierFabio Berger2018-06-233-10/+10
| | |
| * | Rename ContractLibErrors to RevertReasonsFabio Berger2018-06-236-54/+54
| | |
| * | Remove revert reason 'Exchange' prefixFabio Berger2018-06-231-1/+1
| | |
| * | Move constants over to ContractLibError enum and update all testsFabio Berger2018-06-231-4/+5
| | |
| * | Fix test now that contract reverts with messageFabio Berger2018-06-221-5/+3
| | |
| * | Add revert reason checks to wrapper testsFabio Berger2018-06-221-10/+19
| | |
| * | Fix testsFabio Berger2018-06-221-2/+2
| | |
| * | Change Whitelist error messages to conform to rest and added revert reason ↵Fabio Berger2018-06-221-16/+24
| | | | | | | | | | | | checks to transactions tests
| * | Add revert reason checks to match_orders testsFabio Berger2018-06-221-7/+18
| | |
| * | Fix testsFabio Berger2018-06-221-2/+2
| | |
| * | Merge branch 'v2-prototype' into refactor/check-revert-reasonsFabio Berger2018-06-223-19/+435
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: (40 commits) Use make-promises-safe as a preloader instead of manually importing Updated compiler runs to be 1,000,000 Add event to setSignatureValidatorApproval, rename signer => signerAddress accross all contracts Add senderAddress to Fill and Cancel logs, add comments to events and types Fix Island component Add missing image assets for Chris and Mel Fix some bugs in sol-cov Remove unreachable PreSigned check Fix linting Buttons look hella disabled now Remove border radius, fix width issue for unlock step Add Chris and Mel to about page fix linter issues only call getLocationByOffset if source if defined Set settleOrder and settleMatchedOrders to private Prevent prettier issue Support mobile friendly onboarding flows Removed MixinSettlement. Moved `settleOrder` into `MixinExchangeCore` and `settleMatchedOrders` into `MixinMatchOrders` Migrations after rebasing Linter ...
| * | Check revert reason in dispatcher testsFabio Berger2018-06-222-5/+13
| | |
| * | remove .onlyFabio Berger2018-06-211-1/+1
| | |
| * | Update core tests to actually check revert messageFabio Berger2018-06-211-34/+53
| | |
* | | Merge branch 'v2-prototype' into feature/combinatorial-testingFabio Berger2018-06-253-19/+435
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * | Use make-promises-safe as a preloader instead of manually importingAlex Browne2018-06-222-2/+0
| | |
| * | Add event to setSignatureValidatorApproval, rename signer => signerAddress ↵Amir Bandeali2018-06-221-2/+50
| | | | | | | | | | | | accross all contracts
| * | Add senderAddress to Fill and Cancel logs, add comments to events and typesAmir Bandeali2018-06-221-0/+2
| | |
| * | LinterGreg Hysen2018-06-211-2/+1
| | |
| * | Changed wording of two tests #nitGreg Hysen2018-06-211-2/+2
| | |
| * | Minor improvements to MixinSignatureValidator testsGreg Hysen2018-06-211-14/+8
| | |
| * | Remove .onlyGreg Hysen2018-06-211-1/+1
| | |
| * | Fixed two mislabelled revert reasons + Signature Validator revert tests ↵Greg Hysen2018-06-211-6/+10
| | | | | | | | | | | | working on Geth
| * | Twenty new tests for MixinSignatureValidator. Fixed handling of unsupported ↵Greg Hysen2018-06-211-15/+386
| |/ | | | | | | types. Fixed trezor prefix.
* | Add support for approveAll in assetWrapper and fillOrderScenariosFabio Berger2018-06-211-1/+39
| |
* | Split balance and allowance amount types in prep of adding the "unlimited" ↵Fabio Berger2018-06-201-13/+14
| | | | | | | | allowance enum value
* | Merge branch 'v2-prototype' into feature/combinatorial-testingFabio Berger2018-06-203-18/+134
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: (22 commits) Fix closing parens in liborder Update after rebase ERC721Proxy Always call safeTransferFrom Rename makerEpoch => orderEpoch Make cancelOrdersUpTo compatible with sender abstraction Update PR template Use Image component instead of img tag Assembler orderHash function Optimize and remove redundant encodePacked Fix linting issue Fix bug where we do fetch balances on wallet login Check network state immediately instead of waiting for delay Fix onboarding persisting when changing routes Consolidate account state messaging logic Only elevate wallet zIndex when onboarding is in progress Rebase and update feedback Run linter Add Portal v2 logging Simplified handling of source < 32 edge case Basic EIP712 encoder ...
| * Merge pull request #637 from 0xProject/bug/contracts/eip712-191-prefixJacob Evans2018-06-201-3/+7
| |\ | | | | | | Add missing EIP191 prefix for EIP712 and Execute Transaction
| | * Merge branch 'v2-prototype' into bug/contracts/eip712-191-prefixJacob Evans2018-06-187-305/+356
| | |\
| | * | Update Order utils to use eip712Jacob Evans2018-06-062-8/+6
| | | |
| | * | Add missing EIP191 prefix for EIP712Jacob Evans2018-06-051-2/+7
| | | |
| * | | Rename makerEpoch => orderEpochAmir Bandeali2018-06-202-20/+20
| | | |
| * | | Make cancelOrdersUpTo compatible with sender abstractionAmir Bandeali2018-06-201-0/+112
| | |/ | |/|
* | | Remove hack in ERC20WrapperFabio Berger2018-06-195-5/+20
| | |
* | | Add ability to tweak the relevant balances/allowances for the maker and ↵Fabio Berger2018-06-152-43/+57
| | | | | | | | | | | | taker for a fillScenario. Convert more of the core tests to the declarative form.
* | | - Refactor assetWrapper to contain more of the normalizing logic instead of ↵Fabio Berger2018-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | erc20Wrapper and erc721Wrapper - Add burn method to DummyERC721Token - Add additional methods to assetWrapper to set balance/allowances on ERC20 and ERC721 tokens - Use approve instead of approveAll for ERC721 tokens
* | | Rename OrderAmountScenario to OrderAssetAmountScenario and convert ↵Fabio Berger2018-06-142-17/+11
| | | | | | | | | | | | generateOrderCombinations to generateFillOrderCombinations
* | | Use a defaultFillScenario in fillOrder testsFabio Berger2018-06-141-36/+39
| | |
* | | Replace initial set of legacy manually written fillOrder tests with ↵Fabio Berger2018-06-142-434/+186
| | | | | | | | | | | | declarative FillScenario tests
* | | Add ability to specify takerAssetFillAmount and taker scenarios as part of a ↵Fabio Berger2018-06-141-6/+12
| | | | | | | | | | | | FillScenario
* | | Move orderFill combinatorialTests to exchange folderFabio Berger2018-06-131-0/+48
|/ /
* | Unpop byte rather than making deep copyAmir Bandeali2018-06-131-0/+4
| |
* | Make ZRX_PROXY_ID constant rather than popping it from ZRX_ASSET_DATAAmir Bandeali2018-06-134-4/+4
| |
* | Pop id from assetData before dispatching to AssetProxiesAmir Bandeali2018-06-132-20/+87
| |
* | Removed setting makerAssetData/takerAssetData from tests where values are ↵Greg Hysen2018-06-081-34/+0
| | | | | | | | same as defaultOrderParams.
* | Fixed up after rebasing. Contracts build and tests passGreg Hysen2018-06-082-4/+4
| |
* | Converged on naming scheme for asset data: renamed all instances of ↵Greg Hysen2018-06-087-128/+128
| | | | | | | | assetMetadata, proxyData, proxyMetadata to assetData
* | Add missing awaitTransactionSuccessAsync callsAlex Browne2018-06-081-0/+6
| |
* | Fixed pathFabio Berger2018-06-072-10/+10
| |
* | merge v2-prototypeFabio Berger2018-06-077-151/+158
|\ \
| * \ Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-06-075-104/+134
| |\ \ | | | | | | | | | | | | feature/improve-linting
| | * | Update contracts tests after rebaseAlex Browne2018-06-072-14/+14
| | | |
| | * | Apply various fixes based on PR feedbackAlex Browne2018-06-072-11/+54
| | | |
| | * | Add Async suffix to relevant assertionsAlex Browne2018-06-075-45/+45
| | | |
| | * | Fix linter errorsAlex Browne2018-06-071-6/+2
| | | |
| | * | Add additional gas to calls to fillOrderNoThrowAlex Browne2018-06-072-146/+49
| | | |
| | * | Fix some more test cases, especially those that call increaseTimeAlex Browne2018-06-071-36/+47
| | | |
| | * | Update exchange/transactions tests for Geth error messagesAlex Browne2018-06-071-4/+4
| | | |
| | * | Add more transactions to Geth on init. Skip tests that are failing.Alex Browne2018-06-073-9/+106
| | | |
| | * | Replace constant.REVERT test assertions with ↵Alex Browne2018-06-075-90/+70
| | |/ | | | | | | | | | expectRevertOrAlwaysFailingTransaction
| * / Linter now passesfragosti2018-06-067-37/+14
| |/
* / move generated contract wrappers from `contract_wrappers/generated/` to ↵Fabio Berger2018-06-067-26/+26
|/ | | | `generated_contract_wrappers` in package with no non-generated contract wrappers
* Rebase from v2-prototypeJacob Evans2018-06-052-38/+2
|
* Update Exchange statuses, revert instead of emmitting event on fill/cancel ↵Amir Bandeali2018-06-054-71/+69
| | | | failures, and remove redundant logic in matchOrders
* Improve comments and remove unused importsFabio Berger2018-06-021-1/+1
|
* Fix tslint issuesFabio Berger2018-06-022-3/+2
|
* Merge branch 'v2-prototype' into refactor/order-utils/for-v2Fabio Berger2018-06-022-2/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: (33 commits) Only show ProviderDisplay in portal Improve sol-cov docs Remove old parse code Refactor order parser and add shared order support to new portal Add generate and fill order routes Address feedback Override ethereumjs-tx version Fix missing key Update placeholder param ordering Change userEtherBalanceInWei to optional so we can know if its loading Add loading state to ProviderDisplay Tweaks Add Placeholder component Add StandardIconRow Split render into loading and loaaded Fix linter errors Fix linter errors Add ethereum-types to extraFileIncludes Introduce ethereum-types package Remove merge conflicts from yarn.lock ... # Conflicts: # packages/contracts/src/utils/exchange_wrapper.ts # packages/contracts/src/utils/match_order_tester.ts # packages/contracts/src/utils/types.ts # packages/contracts/test/exchange/core.ts # packages/contracts/test/exchange/match_orders.ts # packages/contracts/test/libraries/lib_bytes.ts # packages/sol-cov/package.json
| * Introduce ethereum-types packageLeonid Logvinov2018-06-012-2/+4
| |
| * Fix buildAmir Bandeali2018-06-011-1/+1
| |
* | fix method renameFabio Berger2018-06-011-1/+1
| |
* | Merge branch 'v2-prototype' into refactor/order-utils/for-v2Fabio Berger2018-06-014-13/+141
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Check length before accessing indices, add awaitTransactionSuccess where ↵Amir Bandeali2018-05-311-13/+27
| | | | | | | | needed, and rename function
| * Add back before/after snapshots for each testAmir Bandeali2018-05-317-0/+42
| |
| * Fix formatting and testsAmir Bandeali2018-05-317-48/+6
| |
| * Use last byte of signature as signature typeAmir Bandeali2018-05-312-7/+6
| |
| * Remove TxOrigin signature type, modify whitelist to use Validator signature typeAmir Bandeali2018-05-311-0/+4
| |
| * Update Whitelist contract with comments, also require maker to be whitelistedAmir Bandeali2018-05-311-4/+29
| |
| * Add example whitelist contract and minimum testsAmir Bandeali2018-05-311-2/+89
| |
* | Introduce OrderWithoutExchangeAddress type since this is what get's sent to ↵Fabio Berger2018-05-311-6/+6
| | | | | | | | the smart contracts
* | Initial refactor of order-utils. Move many utils from contracts into this ↵Fabio Berger2018-05-307-61/+35
|/ | | | package.
* Merge pull request #571 from 0xProject/feature/contracts/proxyOwnerAmir Bandeali2018-05-251-7/+2
|\ | | | | Update MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress
| * Cleanup testsAmir Bandeali2018-05-251-2/+2
| |
| * Update multisig tests and utilsAmir Bandeali2018-05-251-5/+0
| |
* | Merge branch 'v2-prototype' into feature/contracts/eip712-order-hashFabio Berger2018-05-256-10/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-252-2/+2
| | |
| * | Migrate migrations to v2Leonid Logvinov2018-05-256-10/+9
| |/
* | 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
|/
* Check transaction receipt status codes where applicableAlex Browne2018-05-245-28/+28
|
* Move contract utilsLeonid Logvinov2018-05-241-1/+1
|
* Fix Tslint error caused by "PromiseLike" valueFabio Berger2018-05-231-0/+6
|
* Fix importFabio Berger2018-05-231-1/+1
|
* Fix ExchangeWrapperFabio Berger2018-05-234-10/+4
|
* Merge branch 'v2-prototype' into refactor/contracts/remove0xjsDepFabio Berger2018-05-237-111/+241
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Merge branch 'v2-prototype' of github.com:0xProject/0x-monorepo into ↵Fabio Berger2018-05-237-107/+237
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | v2-prototype * 'v2-prototype' of github.com:0xProject/0x-monorepo: Rename some variables in multi_sig_with_time_lock.ts Remove extra awaitTransactionMinedAsync calls 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
| | * Apply changes to test/exchange/match_orders.tsAlex Browne2018-05-221-6/+18
| | |
| | * Fix some unhandled promise rejectionsAlex Browne2018-05-221-2/+6
| | |
| | * Add awaitTransactionMinedAsync after every sent transactionAlex Browne2018-05-224-99/+177
| | |
| | * Add missing blockchainLifecycle calls to contracts testsAlex Browne2018-05-226-0/+36
| | |
| * | Fix tslint issuesFabio Berger2018-05-231-4/+4
| |/
* / Remove 0x.js dep from contractsFabio Berger2018-05-237-160/+136
|/
* Merge pull request #572 from 0xProject/feature/contracts/atomicMatchingGreg Hysen2018-05-223-16/+847
|\ | | | | Atomic Order Matching
| * Rebased against v2-prototypeGreg Hysen2018-05-192-9/+11
| |
| * Moved feeTokenAddress to MatchOrderTester constructor. Since it is constant, ↵Greg Hysen2018-05-191-20/+1
| | | | | | | | we dont need to pass it in on each call.
| * The OrderInfo struct is now returned by the getOrderInfo functionGreg Hysen2018-05-191-64/+41
| |
| * Throw if the left or right orders do not compute the correct fill results. I ↵Greg Hysen2018-05-191-10/+8
| | | | | | | | like this better than just logging an error and failing silently.
| * Style changes to atomic order matchingGreg Hysen2018-05-191-1/+1
| |
| * Atomic Order Matching - TestsGreg Hysen2018-05-193-17/+890
| |
* | merge developmentFabio Berger2018-05-222-1/+2
|\ \ | |/ |/|
| * Use make-promises-safe to catch unhandled rejections in testsAlex Browne2018-05-173-0/+3
| |
* | Merge branch 'development' into v2-prototypeAmir Bandeali2018-05-166-61/+56
|\|
| * Fix linter errorsLeonid Logvinov2018-05-113-3/+3
| |
| * Remove unused deployer docs configsLeonid Logvinov2018-05-103-21/+21
| |
| * Fix linter issuesLeonid Logvinov2018-05-103-18/+22
| |
| * Remove deployer from metacoin and contract testsLeonid Logvinov2018-05-103-46/+135
| |
* | Add hard coded proxyId into each AssetProxyAmir Bandeali2018-05-011-0/+12
| |
* | Make all lib functions internal, add contracts for testingAmir Bandeali2018-04-273-178/+248
| |
* | Add tests and commentsAmir Bandeali2018-04-271-15/+25
| |
* | Add testsAmir Bandeali2018-04-271-4/+38
| |
* | Update tests and utilsAmir Bandeali2018-04-271-0/+161
| |
* | Fix merge conflict issuesFabio Berger2018-04-242-2/+0
| |
* | merge v2-prototypeFabio Berger2018-04-243-158/+183
|\ \
| * | Rename variables, create private validation methods in token wrappersAmir Bandeali2018-04-242-148/+171
| | |
* | | Fix testsAmir Bandeali2018-04-244-95/+286
|/ /
* | Fix and cleanup testsAmir Bandeali2018-04-243-563/+488
| |
* | Rename proxyUtils => assetProxyUtilsAmir Bandeali2018-04-233-37/+37
| |
* | Rename missed variablesAmir Bandeali2018-04-232-246/+246
| |
* | Add missing async suffixAmir Bandeali2018-04-221-11/+11
| |
* | Rename token => assetAmir Bandeali2018-04-223-442/+442
| |
* | Rename DummyToken => DummyERC20TokenAmir Bandeali2018-04-223-23/+23
| |
* | export proxyUtils instead of individual functionsAmir Bandeali2018-04-223-37/+37
| |
* | Remove unused constructor argumentsAmir Bandeali2018-04-223-6/+3
| |
* | Renamed addAssetProxy back to registerAssetProxy; this seemed to cause less ↵Greg Hysen2018-04-212-4/+4
| | | | | | | | confusion. Also updated the function description.
* | Miscellaneous style changes to the contracts package; specifically testsGreg Hysen2018-04-212-4/+8
| |
* | Ran prettierGreg Hysen2018-04-212-20/+4
| |
* | renaming after tokenTransferProxy was removedGreg Hysen2018-04-212-54/+54
| |
* | Removed ERC20 V1 Proxy + TokenTransferProxyGreg Hysen2018-04-212-56/+5
| |
* | switched to constants in default order params.Greg Hysen2018-04-212-4/+4
| |
* | Removed takerTokenAddress and makerTokenAddress from Order struct.Greg Hysen2018-04-213-176/+159
| |
* | Removed unnecessary deployments in testGreg Hysen2018-04-211-17/+1
| |
* | Moved ERC721 FillOrderNoThrow tests into wrapperGreg Hysen2018-04-212-45/+60
| |
* | Style improvements to the Asset Proxy testsGreg Hysen2018-04-211-95/+93
| |
* | Replaced instances of `accounts[0]` with `owner` in contracts test casesGreg Hysen2018-04-213-14/+17
| |
* | Updated ERC20 v1 proxy names in testsGreg Hysen2018-04-211-2/+2
| |
* | Ran prettier/linter on new contract testsGreg Hysen2018-04-212-3/+0
| |
* | Added comments around deploying contracts to helper/wrapper testsGreg Hysen2018-04-212-65/+34
| |
* | TS styles in core contract testsGreg Hysen2018-04-211-91/+38
| |
* | Removed some unused ERC721 tokensGreg Hysen2018-04-211-62/+13
| |
* | Minor style improvements to asset proxy utilsGreg Hysen2018-04-213-39/+39
| |
* | makerAssetProxyData/takerAssetProxyData -> makerAssetData/takerAssetDataGreg Hysen2018-04-213-28/+28
| |
* | nilAddress to ZeroEx.NULL_ADDRESSGreg Hysen2018-04-213-10/+7
| |
* | Removed unnecessary assetProxyManagerAddressGreg Hysen2018-04-213-15/+3
| |
* | setAssetProxy to addAssetProxyGreg Hysen2018-04-213-7/+7
| |
* | Renamed TransferProxy to ProxyGreg Hysen2018-04-212-5/+7
| |
* | Renaming TransferProxy to ProxyGreg Hysen2018-04-213-22/+22
| |
* | Asset Proxy DispatcherGreg Hysen2018-04-213-20/+620
| |