aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src
Commit message (Expand)AuthorAgeFilesLines
* Make dispatchTransferFrom revert with reason from AssetProxy on failureAmir Bandeali2018-06-271-5/+4
* Remove redundant files, hard code function selector in dispatchTransferFrom, ...Amir Bandeali2018-06-2713-701/+198
* Updated offset of receiverData length to reflect new assetData encoding.Greg Hysen2018-06-271-2/+2
* ERC20 Custom storage layoutRemco Bloemen2018-06-272-3/+5
* Golf the authorization checkRemco Bloemen2018-06-272-122/+132
* ERC20 manual memory layoutRemco Bloemen2018-06-271-11/+6
* ERC20 inline returnRemco Bloemen2018-06-271-6/+11
* ERC721 inline returnRemco Bloemen2018-06-271-8/+9
* Golf ERC721 transferFromRemco Bloemen2018-06-272-3/+166
* Inline ERC20 tranferFrom selector constantRemco Bloemen2018-06-271-4/+3
* Optimize ERC20 transferFromRemco Bloemen2018-06-271-2/+126
* Expect RevertReason be passed in, not stringFabio Berger2018-06-261-1/+5
* Merge branch 'v2-prototype' into refactor/check-revert-reasonsFabio Berger2018-06-2623-202/+370
|\
| * Don't use variables for revert reasonsAmir Bandeali2018-06-2613-84/+82
| * Add comments to dispatchTransferFromAmir Bandeali2018-06-261-30/+56
| * Document IAssetDataRemco Bloemen2018-06-261-0/+3
| * Compute bytes4 proxyid constantsRemco Bloemen2018-06-262-2/+2
| * Return inplace bytes in LibBytes.readBytesWithLengthRemco Bloemen2018-06-261-9/+7
| * Add Greg's documentation to MixinErc721TransferRemco Bloemen2018-06-261-33/+44
| * Add Greg's documentation to MixinErc20TransferRemco Bloemen2018-06-261-13/+35
| * Gas golf the transfer success logicRemco Bloemen2018-06-261-11/+10
| * Optimize like in PR #767Remco Bloemen2018-06-263-34/+157
| * Fix testsAmir Bandeali2018-06-261-16/+0
| * Fix ERC721Proxy TokenIdRemco Bloemen2018-06-261-1/+1
| * WIPRemco Bloemen2018-06-262-2/+2
| * ABI encoded asset dataRemco Bloemen2018-06-269-29/+51
| * Remove proxyId argument from dispatchTransferFromRemco Bloemen2018-06-266-34/+16
* | Move RevertReasons to @0xproject/types packageFabio Berger2018-06-251-44/+0
* | Merge branch 'v2-prototype' into refactor/check-revert-reasonsFabio Berger2018-06-2519-340/+424
|\|
| * Fix typos in commentsRemco Bloemen2018-06-231-2/+2
| * Add modifier and tests for removeAuthorizedAddressAtIndexAmir Bandeali2018-06-232-2/+10
| * Update and add testsAmir Bandeali2018-06-232-3/+5
| * Change removeAuthorizedAddress => removeAuthorizedAddressAtIndexAmir Bandeali2018-06-232-13/+22
| * Move isFunctionRemoveAuthorizedAddress to testRemco Bloemen2018-06-233-14/+50
| * Fix usage of `popLastByte`Remco Bloemen2018-06-231-2/+2
| * Fix LibBytes is a libraryRemco Bloemen2018-06-236-15/+12
| * Remove `areBytesEqual`Remco Bloemen2018-06-231-35/+0
| * Fix usage of `contentAddress()`Remco Bloemen2018-06-231-2/+2
| * Clean low bits in bytes4Remco Bloemen2018-06-231-0/+3
| * Clean high bits in addressRemco Bloemen2018-06-231-0/+4
| * Refactor LibBytes.readBytes4 for consistencyRemco Bloemen2018-06-233-11/+18
| * Fix LibBytes.equalsRemco Bloemen2018-06-231-21/+4
| * Add trailing garbage testcase for LibBytes.equalsRemco Bloemen2018-06-231-0/+11
| * Rename bytes.equalsRemco Bloemen2018-06-232-2/+37
| * Add slice and sliceDestructiveRemco Bloemen2018-06-231-0/+46
| * Rename bytes.rawAddress and add bytes.contentAddressRemco Bloemen2018-06-232-8/+25
| * Rename read/writeBytesWithLengthRemco Bloemen2018-06-233-7/+7
| * Using LibBytes for bytesRemco Bloemen2018-06-236-26/+38
| * Make LibBytes a libraryRemco Bloemen2018-06-236-35/+30
| * Merge LibMem and LibBytesRemco Bloemen2018-06-236-206/+150
| * Merge pull request #749 from 0xProject/feature/contracts/transactionHashAsmAmir Bandeali2018-06-231-8/+18
| |\
| | * Apply mask to address to zero-out unused bytes.Greg Hysen2018-06-231-1/+1
| | * Converted `hashZeroExTransaction` to assembly. Saves 1k gasGreg Hysen2018-06-221-8/+18
* | | Rename ContractLibErrors to RevertReasonsFabio Berger2018-06-231-1/+1
* | | Remove revert reason 'Exchange' prefixFabio Berger2018-06-231-2/+2
* | | Move constants over to ContractLibError enum and update all testsFabio Berger2018-06-232-15/+10
* | | Standardize ERC20 error strings given conventionFabio Berger2018-06-231-3/+2
* | | Fix test now that contract reverts with messageFabio Berger2018-06-221-0/+1
* | | Merge branch 'v2-prototype' into refactor/check-revert-reasonsFabio Berger2018-06-223-27/+48
|\| |
| * | Merge pull request #748 from 0xProject/fix/contracts/nullAssetProxyFabio Berger2018-06-223-27/+48
| |\ \ | | |/ | |/|
| | * Check that assetProxy exists before attempting transferAmir Bandeali2018-06-223-27/+48
* | | Change Whitelist error messages to conform to rest and added revert reason ch...Fabio Berger2018-06-222-5/+7
* | | Merge branch 'v2-prototype' into refactor/check-revert-reasonsFabio Berger2018-06-2226-352/+454
|\| |
| * | Add event to setSignatureValidatorApproval, rename signer => signerAddress ac...Amir Bandeali2018-06-2214-68/+94
| * | Add senderAddress to Fill and Cancel logs, add comments to events and typesAmir Bandeali2018-06-224-44/+45
| |/
| * Remove unreachable PreSigned checkAustin Roberts2018-06-221-4/+0
| * Set settleOrder and settleMatchedOrders to privateGreg Hysen2018-06-214-25/+2
| * Removed MixinSettlement. Moved `settleOrder` into `MixinExchangeCore` and `se...Greg Hysen2018-06-218-238/+205
| * Renamed constants in test wallet/validatorGreg Hysen2018-06-212-11/+11
| * Few more minor #nit wording changesGreg Hysen2018-06-212-5/+5
| * Fixed two mislabelled revert reasons + Signature Validator revert tests worki...Greg Hysen2018-06-212-2/+7
| * Minor style tweaksGreg Hysen2018-06-213-8/+8
| * Twenty new tests for MixinSignatureValidator. Fixed handling of unsupported t...Greg Hysen2018-06-216-11/+141
* | Check revert reasons in Authorizable testsFabio Berger2018-06-211-0/+1
* | Change revert reason in ownable to be similar to all other revert reasonsFabio Berger2018-06-211-1/+1
* | Update core tests to actually check revert messageFabio Berger2018-06-212-0/+44
|/
* Merge pull request #637 from 0xProject/bug/contracts/eip712-191-prefixJacob Evans2018-06-206-42/+159
|\
| * Fix closing parens in liborderJacob Evans2018-06-201-16/+15
| * Assembler orderHash functionRemco Bloemen2018-06-191-18/+22
| * Optimize and remove redundant encodePackedJacob Evans2018-06-194-13/+23
| * Merge branch 'v2-prototype' into bug/contracts/eip712-191-prefixJacob Evans2018-06-1846-311/+1056
| |\
| * | Rebase and update feedbackJacob Evans2018-06-184-81/+85
| * | Basic EIP712 encoderJacob Evans2018-06-081-10/+11
| * | Update Order utils to use eip712Jacob Evans2018-06-067-170/+44
| * | Add missing EIP191 prefix for EIP712Jacob Evans2018-06-059-48/+272
* | | Update after rebaseJacob Evans2018-06-201-7/+1
* | | Rename makerEpoch => orderEpochAmir Bandeali2018-06-205-26/+29
* | | Make cancelOrdersUpTo compatible with sender abstractionAmir Bandeali2018-06-205-7/+110
* | | Merge pull request #683 from 0xProject/fix/contracts/memcpyRemco Bloemen2018-06-191-10/+12
|\ \ \
| * | | Simplified handling of source < 32 edge caseRemco Bloemen2018-06-111-10/+12
* | | | Merge pull request #659 from 0xProject/feature/contracts/split-proxy-internal...Jacob Evans2018-06-196-129/+206
|\ \ \ \
| * | | | Rebase with latest removing PROXY_ID from transferJacob Evans2018-06-185-95/+111
| * | | | Split transfer impl and AssetProxyMixinJacob Evans2018-06-184-95/+156
| | |_|/ | |/| |
* | | | Make isValidSignature publicAmir Bandeali2018-06-193-15/+15
* | | | Make batchFill methods return FIllResults structAmir Bandeali2018-06-192-10/+28
|/ / /
* | | Merge pull request #700 from 0xProject/fix/contracts/tokenbugsRemco Bloemen2018-06-161-1/+29
|\ \ \
| * | | Handle tokens that do not return boolRemco Bloemen2018-06-141-1/+29
* | | | Change wording of error message when you try to use more than one subproviderAlex Browne2018-06-151-1/+1
* | | | Fix linter errors and remove coverage.jsonAlex Browne2018-06-151-2/+1
* | | | Remove unused variables and other small fixesAlex Browne2018-06-151-5/+6
* | | | Fix a bug in revert_trace.tsAlex Browne2018-06-151-23/+23
* | | | Introduce subprovider for printing revert stack tracesAlex Browne2018-06-152-22/+50
|/ / /
* | | Rename popByte and popAddressAmir Bandeali2018-06-134-12/+12
* | | Unpop byte rather than making deep copyAmir Bandeali2018-06-133-90/+91
* | | Pass gas in to marketBuyOrdersNoThrowAmir Bandeali2018-06-131-1/+1
* | | Looks up the memory location of makerAssetData/takerAssetDataGreg Hysen2018-06-131-0/+2
* | | Make ZRX_PROXY_ID constant rather than popping it from ZRX_ASSET_DATAAmir Bandeali2018-06-131-19/+9
* | | Add tests for deepCopyBytes and missing write methods from LibBytesAmir Bandeali2018-06-132-0/+16
* | | Pop id from assetData before dispatching to AssetProxiesAmir Bandeali2018-06-1316-149/+132
* | | Speedup awaitTransactionMinedAsync and reduce polling interval in contracts t...Alex Browne2018-06-121-1/+4
* | | Implement SolidityProfiler & adapt sol-cov to work with GethLeonid Logvinov2018-06-093-1/+51
|/ /
* | Updated LibBytes error messagesGreg Hysen2018-06-082-6/+6
* | Camelcase in memCopyGreg Hysen2018-06-083-22/+22
* | Style updates to contractsGreg Hysen2018-06-083-16/+16
* | Fixed a styling throughout contracts. Moved closing parenthesis for long list...Greg Hysen2018-06-088-31/+62
* | Fixed merge error when rebasing wrt length variable in asset data decodersGreg Hysen2018-06-082-4/+4
* | Style updates to ERC721 onReceiverGreg Hysen2018-06-083-8/+6
* | Fixed after rebaseGreg Hysen2018-06-083-5/+5
* | Fixed up after rebasing. Contracts build and tests passGreg Hysen2018-06-082-16/+9
* | Style audit for proxies + libmem + libbytesGreg Hysen2018-06-086-23/+40
* | Style audit proxiesGreg Hysen2018-06-083-20/+64
* | Call safeTransferFrom only when there is receiver data presentGreg Hysen2018-06-081-1/+6
* | Fixed formatting in memory layoutGreg Hysen2018-06-081-6/+6
* | Resolved edge case in Memcpy where where send would eventually turn "negative...Greg Hysen2018-06-081-11/+17
* | Removed the LibAssetProxyDecoder. Merged decode functions into the proxies. T...Greg Hysen2018-06-086-88/+57
* | Converged on naming scheme for asset data: renamed all instances of assetMeta...Greg Hysen2018-06-0813-67/+67
* | proxyData -> assetDataGreg Hysen2018-06-081-11/+11
* | Implement memcpy using masking and end-aligned wordsRemco Bloemen2018-06-081-59/+85
* | Convert Solidity tests to vectorsRemco Bloemen2018-06-081-203/+0
* | Generate tests from vectorsRemco Bloemen2018-06-081-3/+24
* | Fixed up wording in memcpyGreg Hysen2018-06-081-3/+3
* | Tons of tests around nested byte arrays and ERC721 receiverGreg Hysen2018-06-082-10/+32
* | Test for onReceived erc721 callbackGreg Hysen2018-06-082-0/+3
* | LibAssetProxyDecoder testsGreg Hysen2018-06-081-1/+1
* | Foundation for TestLibAssetProxyDecoderGreg Hysen2018-06-083-0/+53
* | Tests for libMemGreg Hysen2018-06-083-15/+11
* | LibMem + TestLibMem + LibAssetProxyDecoder + DummyERC721ReceiverGreg Hysen2018-06-087-27/+579
* | Merge pull request #678 from 0xProject/fix/order-utils/remaining-v2-changesFabio Berger2018-06-081-0/+1
|\ \
| * | Fix tslint failureFabio Berger2018-06-081-0/+1
* | | merge v2-prototypeFabio Berger2018-06-0714-42/+151
|\| |
| * | Merge pull request #673 from mohoff/patch-1Fabio Berger2018-06-071-1/+1
| |\ \
| | * | typomohoff2018-06-071-1/+1
| * | | Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into ...fragosti2018-06-075-8/+144
| |\| |
| | * | Apply various fixes based on PR feedbackAlex Browne2018-06-071-1/+1
| | * | Use an enum for ProviderType in contracts/src/utils/web3_wrapperAlex Browne2018-06-071-4/+21
| | * | Add Async suffix to relevant assertionsAlex Browne2018-06-071-9/+9
| | * | Fix linter errorsAlex Browne2018-06-072-2/+36
| | * | Update more things to work with both Geth and GanacheAlex Browne2018-06-071-22/+14
| | * | Small fixes and cleanupAlex Browne2018-06-072-6/+2
| | * | Add additional gas to calls to fillOrderNoThrowAlex Browne2018-06-071-6/+6
| | * | Throw in web3-wrapper when rawCallResult is '0x'Alex Browne2018-06-072-0/+13
| | * | Fix some more test cases, especially those that call increaseTimeAlex Browne2018-06-071-0/+26
| | * | Add support for TEST_PROVIDER env varAlex Browne2018-06-071-3/+4
| | * | Update more tests to pass on GethAlex Browne2018-06-072-0/+14
| | * | Get LibBytes tests working on both Ganache and GethAlex Browne2018-06-072-1/+6
| | * | Add ability to quickly switch between Geth and Ganache by changing a constAlex Browne2018-06-071-3/+16
| | * | Replace constant.REVERT test assertions with expectRevertOrAlwaysFailingTrans...Alex Browne2018-06-071-2/+2
| | * | Update code after rebaseAlex Browne2018-06-073-2/+27
| | |/
| * | Get build and tests to passfragosti2018-06-071-1/+2
| * | Linter now passesfragosti2018-06-0610-34/+6
| |/
* / move generated contract wrappers from `contract_wrappers/generated/` to `gene...Fabio Berger2018-06-066-13/+13
|/
* rename GT to GREATER_THANJacob Evans2018-06-053-3/+3
* Update Exchange statuses, revert instead of emmitting event on fill/cancel fa...Amir Bandeali2018-06-0524-630/+420
* Merge branch 'v2-prototype' into refactor/order-utils/for-v2Fabio Berger2018-06-023-55/+52
|\
| * Set contract expiration time to a constant 10 minutesAlex Browne2018-06-021-1/+2
| * Remove unused promises arrayAlex Browne2018-06-022-6/+0
| * Make erc20_wrapper and erc721_wrapper serialAlex Browne2018-06-022-48/+50
* | Fix tslint issuesFabio Berger2018-06-021-2/+1
* | Merge branch 'v2-prototype' into refactor/order-utils/for-v2Fabio Berger2018-06-029-15/+25
|\|
| * Fix linter errorsLeonid Logvinov2018-06-014-4/+4
| * Add ethereum-types to extraFileIncludesLeonid Logvinov2018-06-011-2/+9
| * Introduce ethereum-types packageLeonid Logvinov2018-06-018-14/+11
| * Merge pull request #640 from 0xProject/await-transaction-successAlex Browne2018-05-311-4/+10
| |\
| | * Pass in a provider and instantiate a new web3Wrapper in token_registry_wrapperAlex Browne2018-05-311-4/+6
| | * Add awaitTransactionSuccess where neededAlex Browne2018-05-311-2/+6
* | | Rename Ecrecover to EthSignFabio Berger2018-06-013-6/+3
* | | Merge branch 'v2-prototype' into refactor/order-utils/for-v2Fabio Berger2018-06-0132-174/+530
|\| |
| * | Check length before accessing indices, add awaitTransactionSuccess where need...Amir Bandeali2018-05-314-12/+16
| * | Rename Signer to Wallet, rename GAS_ESTIMATE to GAS_LIMITAmir Bandeali2018-05-313-4/+4
| * | Make preSigned and allowedValidators mappings publicAmir Bandeali2018-05-311-2/+2
| * | Change names of signature typesAmir Bandeali2018-05-312-6/+6
| * | Fix formatting and testsAmir Bandeali2018-05-314-4/+10
| * | Make AssetProxyId last byte of assetDataAmir Bandeali2018-05-3118-37/+74
| * | Add signer to txHash, allow approveValidator to be used with executeTransactionAmir Bandeali2018-05-313-7/+10
| * | Update WhitelistAmir Bandeali2018-05-315-24/+54
| * | Fix Exchange interfaceAmir Bandeali2018-05-311-7/+5
| * | Use last byte of signature as signature typeAmir Bandeali2018-05-315-74/+75
| * | Remove TxOrigin signature type, modify whitelist to use Validator signature typeAmir Bandeali2018-05-315-31/+28
| * | Update Whitelist contract with comments, also require maker to be whitelistedAmir Bandeali2018-05-314-12/+43
| * | Fix buildAmir Bandeali2018-05-313-19/+24
| * | Add example whitelist contract and minimum testsAmir Bandeali2018-05-312-9/+32
| * | Add sample whitelist contractAmir Bandeali2018-05-311-0/+58
| * | Add TxOrigin signature type and rearrange order of typesAmir Bandeali2018-05-313-63/+77
| * | Add approveValidator functionAmir Bandeali2018-05-312-2/+17
| * | Add Validator signature typeAmir Bandeali2018-05-313-2/+68
| * | Add deepCopyBytes method to LibBytesAmir Bandeali2018-05-312-0/+58
| * | Change logDecoder back into class, remove awaitTransactionMined from multiSig...Amir Bandeali2018-05-313-50/+62
| |/
* | Introduce OrderWithoutExchangeAddress type since this is what get's sent to t...Fabio Berger2018-05-313-26/+22
* | Initial refactor of order-utils. Move many utils from contracts into this pac...Fabio Berger2018-05-3011-317/+26
|/
* Remove contracts -> @0xproject/order-utils dependencyLeonid Logvinov2018-05-261-0/+1
* Fix imports in order_utilsLeonid Logvinov2018-05-251-1/+1
* Merge pull request #571 from 0xProject/feature/contracts/proxyOwnerAmir Bandeali2018-05-2513-65/+221
|\
| * Use web3-wrapper instead of 0x.js, update logDecoderAmir Bandeali2018-05-256-44/+44
| * Cleanup testsAmir Bandeali2018-05-251-1/+1
| * Move readFirst4 to LibBytesAmir Bandeali2018-05-253-20/+42
| * Add old MultiSig to previous contracts, cleanup file structureAmir Bandeali2018-05-255-9/+9
| * Fix buildAmir Bandeali2018-05-251-0/+82
| * Address feedback, rename contract to AssetProxyOwnerAmir Bandeali2018-05-254-15/+19
| * Update multisig tests and utilsAmir Bandeali2018-05-251-25/+43
| * Update MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress to use a mappi...Amir Bandeali2018-05-251-18/+48
* | Merge branch 'v2-prototype' into feature/contracts/eip712-order-hashFabio Berger2018-05-256-38/+17
|\ \
| * | Fix linter issuesLeonid Logvinov2018-05-251-1/+1
| * | Migrate migrations to v2Leonid Logvinov2018-05-256-39/+18
| |/
* | Use domain separator for exchange addressJacob Evans2018-05-253-6/+33
* | publicGetOrderSchemaHash -> getOrderSchemaHashJacob Evans2018-05-251-1/+1
* | Update order hash to match latest eip712Jacob Evans2018-05-253-34/+51
|/
* Check transaction receipt status codes where applicableAlex Browne2018-05-241-1/+1
* Move contract utilsLeonid Logvinov2018-05-242-0/+377
* Merge branch 'v2-prototype' into feature/truffle-sol-covLeonid Logvinov2018-05-246-23/+26
|\
| * Fix ExchangeWrapperFabio Berger2018-05-231-3/+5
| * Fix importsFabio Berger2018-05-231-1/+1
| * Merge branch 'v2-prototype' into refactor/contracts/remove0xjsDepFabio Berger2018-05-237-18/+31
| |\
| * | Remove 0x.js dep from contractsFabio Berger2018-05-236-23/+24
* | | Fix a bug in CALL-like opcode handlingLeonid Logvinov2018-05-231-1/+2
* | | Remove web3Factory.create and remove dev-tools dependency on sol-covLeonid Logvinov2018-05-231-3/+9
| |/ |/|
* | Merge pull request #601 from 0xProject/contracts-test-fixesAlex Browne2018-05-231-0/+1
|\ \
| * | Add awaitTransactionMinedAsync after every sent transactionAlex Browne2018-05-221-0/+1
| |/
* | Add CancelOrder and MatchOrder typesRemco Bloemen2018-05-222-3/+15
* | Add missing return typesRemco Bloemen2018-05-224-14/+14
|/
* Added getNullFillResultsGreg Hysen2018-05-192-1/+16
* orderFilledAmount -> orderTakerAssetFilledAmountGreg Hysen2018-05-196-29/+29
* Style improvements to order matchingGreg Hysen2018-05-194-28/+17
* Upgraded to Solidity 0.4.24Greg Hysen2018-05-1952-56/+56
* Rebased against v2-prototypeGreg Hysen2018-05-191-0/+1
* Changed calculateFillResults to public visibility so that it can be used by t...Greg Hysen2018-05-193-131/+131
* Wording of calculateMatchedFillResultsGreg Hysen2018-05-191-9/+11
* Cleaned up interface for decoding proxy data. Added a general decoder, which ...Greg Hysen2018-05-192-5/+53
* Removed redundant log decode callGreg Hysen2018-05-191-2/+0
* The OrderInfo struct is now returned by the getOrderInfo functionGreg Hysen2018-05-197-77/+57
* Updated order of settleMatchedOrders to align with settleOrderGreg Hysen2018-05-193-8/+8
* IExchange inherits from all other interfaces (in the same order as Exchange i...Greg Hysen2018-05-191-6/+10
* Renamed takerAssetFilledAmount to orderFilledAmount to more easily distinguis...Greg Hysen2018-05-193-37/+37
* Comments for readability in exchange core and mixin match ordersGreg Hysen2018-05-195-4/+11
* Renamed "validate" functions to "assert" in mixin match.Greg Hysen2018-05-195-21/+21
* Throw if the left or right orders do not compute the correct fill results. I ...Greg Hysen2018-05-194-27/+19
* Removed redundant status checks in matchOrders. Saves gas, plus follows patte...Greg Hysen2018-05-191-8/+0
* Token -> Asset in fillOrder specGreg Hysen2018-05-191-1/+1
* Reordered functions in mixin exchange core -- getOrderInfo is at the bottomGreg Hysen2018-05-192-77/+77
* Changes based on style guidelines put out by AmirGreg Hysen2018-05-199-172/+210
* Reordered fund transfers for matched orders, plus added an extra sanity check...Greg Hysen2018-05-193-35/+49