aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/libraries
Commit message (Collapse)AuthorAgeFilesLines
* Move packages/contracts to contracts/coreLeonid Logvinov2018-12-031-871/+0
|
* chore: change package org from 0xproject to 0xJacob Evans2018-10-181-4/+4
|
* Move generated contract wrappers and artifacts into contracts packageAlex Browne2018-10-161-2/+2
|
* Fix geth testsAmir Bandeali2018-08-301-24/+24
|
* Typos in LibBytes testsGreg Hysen2018-08-301-6/+6
|
* More tests for LibBytesGreg Hysen2018-08-301-3/+16
|
* Updated readBytes4 to match spec + added unit tests. These are 3.5/3.6 from ↵Greg Hysen2018-08-301-1/+25
| | | | audit
* Fix linterFabio Berger2018-07-181-1/+1
|
* Move encodeUint256 & decodeUint256 out of assetDataUtils since we don't want ↵Fabio Berger2018-07-181-4/+5
| | | | them exported
* Rename assetProxyUtils to assetDataUtilsFabio Berger2018-07-171-5/+5
|
* Improve robustness of revert reason assertionsAlex Browne2018-07-031-23/+23
|
* Update file structureAmir Bandeali2018-06-301-6/+6
|
* Rename RevertReasons to RevertReason since singular enum names are more commonFabio Berger2018-06-261-23/+23
|
* Move RevertReasons to @0xproject/types packageFabio Berger2018-06-251-1/+1
|
* Merge branch 'v2-prototype' into refactor/check-revert-reasonsFabio Berger2018-06-252-235/+256
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: (48 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/contracts/current/utils/Ownable/Ownable.sol # packages/contracts/test/libraries/lib_bytes.ts
| * Update and add testsAmir Bandeali2018-06-231-31/+57
| |
| * Refactor LibBytes.readBytes4 for consistencyRemco Bloemen2018-06-231-3/+7
| |
| * Add trailing garbage testcase for LibBytes.equalsRemco Bloemen2018-06-231-0/+10
| |
| * Rename bytes.equalsRemco Bloemen2018-06-231-13/+13
| |
| * Rename read/writeBytesWithLengthRemco Bloemen2018-06-231-29/+29
| |
| * Merge LibMem and LibBytesRemco Bloemen2018-06-232-190/+171
| |
| * Use provided mem in refernce memcpyRemco Bloemen2018-06-231-2/+2
| |
* | Fix prettierFabio Berger2018-06-231-2/+2
| |
* | Rename ContractLibErrors to RevertReasonsFabio Berger2018-06-231-23/+23
| |
* | Move constants over to ContractLibError enum and update all testsFabio Berger2018-06-231-22/+23
|/
* Rename popByte and popAddressAmir Bandeali2018-06-131-6/+6
|
* Hard code test addresses/bytes32 instead of generating pseudorandom onesAmir Bandeali2018-06-131-19/+16
|
* Add tests for deepCopyBytes and missing write methods from LibBytesAmir Bandeali2018-06-131-70/+185
|
* Fix no-unused-variable tslint rule to include parameters and fix issuesFabio Berger2018-06-121-1/+1
|
* Linter changes to contractsGreg Hysen2018-06-092-10/+3
|
* Updated LibBytes error messagesGreg Hysen2018-06-081-22/+30
|
* Cleanup after last rebaseGreg Hysen2018-06-082-3/+2
|
* Updated tests to use new revert handlerGreg Hysen2018-06-081-11/+11
|
* Camelcase in memCopyGreg Hysen2018-06-081-1/+1
|
* Style updates to contractsGreg Hysen2018-06-081-2/+1
|
* Fixes after rebasingGreg Hysen2018-06-081-0/+1
|
* Fixed up after rebasing. Contracts build and tests passGreg Hysen2018-06-081-2/+3
|
* Call safeTransferFrom only when there is receiver data presentGreg Hysen2018-06-081-1/+1
|
* Resolved edge case in Memcpy where where send would eventually turn ↵Greg Hysen2018-06-081-133/+137
| | | | "negative" and wrap around.
* proxyData -> assetDataGreg Hysen2018-06-081-1/+1
|
* Add tests for word loop iterationRemco Bloemen2018-06-081-2/+6
|
* Add test for zero-size overlapRemco Bloemen2018-06-081-1/+3
|
* Add test casesRemco Bloemen2018-06-081-17/+133
|
* Cleanup test scriptRemco Bloemen2018-06-081-16/+1
|
* Convert Solidity tests to vectorsRemco Bloemen2018-06-081-29/+6
|
* Generate tests from vectorsRemco Bloemen2018-06-081-2/+40
|
* Tests for writing bytes to nested bytesGreg Hysen2018-06-081-9/+91
|
* Tons of tests around nested byte arrays and ERC721 receiverGreg Hysen2018-06-081-1/+120
|
* Foundation for TestLibAssetProxyDecoderGreg Hysen2018-06-081-1/+1
|
* Tests for libMemGreg Hysen2018-06-081-0/+68
|
* Fix tslint issuesFabio Berger2018-06-081-1/+1
|
* merge v2-prototypeFabio Berger2018-06-071-24/+31
|\
| * Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-06-071-17/+30
| |\ | | | | | | | | | feature/improve-linting
| | * Add Async suffix to relevant assertionsAlex Browne2018-06-071-10/+10
| | |
| | * Update more things to work with both Geth and GanacheAlex Browne2018-06-071-10/+19
| | |
| | * Get LibBytes tests working on both Ganache and GethAlex Browne2018-06-071-24/+28
| | |
| | * Update some tests after rebaseAlex Browne2018-06-071-1/+2
| | |
| | * Add more transactions to Geth on init. Skip tests that are failing.Alex Browne2018-06-071-6/+12
| | |
| | * Replace constant.REVERT test assertions with ↵Alex Browne2018-06-071-16/+9
| | | | | | | | | | | | expectRevertOrAlwaysFailingTransaction
| * | Linter now passesfragosti2018-06-061-7/+1
| |/
* / move generated contract wrappers from `contract_wrappers/generated/` to ↵Fabio Berger2018-06-061-1/+1
|/ | | | `generated_contract_wrappers` in package with no non-generated contract wrappers
* Merge branch 'v2-prototype' into refactor/order-utils/for-v2Fabio Berger2018-06-021-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Fix linter errorsLeonid Logvinov2018-06-011-1/+1
| |
| * Introduce ethereum-types packageLeonid Logvinov2018-06-011-1/+1
| |
* | Merge branch 'v2-prototype' into refactor/order-utils/for-v2Fabio Berger2018-06-011-0/+31
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Add back before/after snapshots for each testAmir Bandeali2018-05-311-0/+6
| |
| * Fix formatting and testsAmir Bandeali2018-05-311-6/+0
| |
| * Update WhitelistAmir Bandeali2018-05-311-0/+1
| |
| * Use last byte of signature as signature typeAmir Bandeali2018-05-311-25/+22
| |
| * Remove TxOrigin signature type, modify whitelist to use Validator signature typeAmir Bandeali2018-05-311-4/+3
| |
| * Add Validator signature typeAmir Bandeali2018-05-311-1/+1
| |
| * Add deepCopyBytes method to LibBytesAmir Bandeali2018-05-311-0/+34
| |
* | Initial refactor of order-utils. Move many utils from contracts into this ↵Fabio Berger2018-05-301-2/+1
|/ | | | package.
* Cleanup testsAmir Bandeali2018-05-251-1/+7
|
* Move readFirst4 to LibBytesAmir Bandeali2018-05-251-0/+8
|
* Merge branch 'v2-prototype' into refactor/contracts/remove0xjsDepFabio Berger2018-05-231-0/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Add missing blockchainLifecycle calls to contracts testsAlex Browne2018-05-221-0/+6
| |
* | Remove 0x.js dep from contractsFabio Berger2018-05-231-1/+1
|/
* Merge branch 'development' into v2-prototypeAmir Bandeali2018-05-161-6/+5
|
* Make LibBytes methods internal, add TestLibBytesAmir Bandeali2018-05-051-22/+30
|
* Added tests for (most functions in) LibBytes. The write methods are not ↵Greg Hysen2018-04-211-0/+238
currently compatible with our generated contract wrappers.