Jacob Evans
9f924e459c
chore: change package org from 0xproject to 0x
2018-10-18 22:27:31 +11:00
Alex Browne
81c4887241
Move generated contract wrappers and artifacts into contracts package
2018-10-15 13:36:09 -07:00
Amir Bandeali
d0f6933980
Add tests for token that returns >32 bytes
2018-08-30 09:27:28 -07:00
Amir Bandeali
14793f30b5
Add more proxy tests
2018-08-30 09:27:28 -07:00
Amir Bandeali
86319291e3
Update used addresses for authorizable tests
2018-08-30 09:27:28 -07:00
Amir Bandeali
681ed822ec
Revert if undefined function called in AssetProxies
2018-08-24 13:19:07 -07:00
Amir Bandeali
633e6c38c8
Fix linting errors
2018-08-16 17:31:21 -07:00
Amir Bandeali
a4d6bc3190
Fix tests that assumed logs were being filtered
2018-08-16 17:31:21 -07:00
Greg Hysen
9aa49e59d0
Fixed merge errors
2018-07-18 16:44:24 +02:00
Greg Hysen
86328af6b7
Fixed merge error
2018-07-18 16:27:26 +02:00
Greg Hysen
36c27bdbf8
Ran prettier
2018-07-18 16:18:54 +02:00
Greg Hysen
e1a9f3435f
Removed receiverData from ERC721 Proxy Id generation
2018-07-18 15:52:14 +02:00
Greg Hysen
9f74feb347
Removed receiverData and onReceive
callback from ERC721 proxy.
2018-07-18 15:50:58 +02:00
Fabio Berger
25160d7344
Move encodeUint256 & decodeUint256 out of assetDataUtils since we don't want them exported
2018-07-18 11:32:01 +02:00
Fabio Berger
f8dbf57582
Rename assetProxyUtils to assetDataUtils
2018-07-17 15:26:55 +02:00
Amir Bandeali
092ca6bcf5
Use 0.4.10 in AssetProxyOwner, add readBytes4 to contract and remove LibBytes
2018-07-10 11:24:22 -07:00
Leonid Logvinov
ba9d3cbdb8
Make it possible to configure block polling interval in base contract wrapper
2018-07-05 15:56:31 +02:00
Alex Browne
5b64b3ea93
Improve robustness of revert reason assertions
2018-07-02 18:57:33 -07:00
Amir Bandeali
41064adc66
Fix build
2018-06-29 18:20:44 -07:00
Amir Bandeali
2fcc36bbad
Update file structure
2018-06-29 18:05:40 -07:00
Amir Bandeali
44b6adaa29
Fix deployment to geth
2018-06-29 13:33:22 -07:00
Amir Bandeali
762a6199b2
Fix tests
2018-06-29 13:33:22 -07:00
Fabio Berger
646927962a
Reduce the userAddresses to the individual addresses actually used by tests, as well as only deploy the number of ERC20 tokens needed for each test suite
2018-06-28 10:43:37 +02:00
Fabio Berger
c308359f59
Merge branch 'v2-prototype' into feature/combinatorial-testing
...
* 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
2018-06-27 10:59:37 +02:00
Amir Bandeali
7f233dcb15
Add more revert reasons to tests
2018-06-26 17:34:43 -07:00
Fabio Berger
6a2421c683
Fix tests
2018-06-26 23:17:29 +02:00
Amir Bandeali
08ee1ab2e6
Remove redundant files, hard code function selector in dispatchTransferFrom, and modify revert reason
2018-06-26 13:57:51 -07:00
Fabio Berger
43ae868c69
Merge branch 'refactor/check-revert-reasons' into feature/combinatorial-testing
...
* 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
2018-06-26 18:53:44 +02:00
Fabio Berger
7967ebed57
Rename to singular
2018-06-26 08:51:40 +02:00
Fabio Berger
105b927397
Fix merge issues
2018-06-26 08:43:37 +02:00
Fabio Berger
9219f9d8ae
Merge branch 'v2-prototype' into feature/combinatorial-testing
...
* 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
2018-06-26 08:13:59 +02:00
Fabio Berger
27670f4da6
Rename RevertReasons to RevertReason since singular enum names are more common
2018-06-26 08:11:14 +02:00
Fabio Berger
e051743a3d
Merge branch 'v2-prototype' into refactor/check-revert-reasons
...
* 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
2018-06-26 08:07:37 +02:00
Amir Bandeali
a89908540f
Don't use variables for revert reasons
2018-06-25 16:34:06 -07:00
Amir Bandeali
a2ff63daa5
Run prettier and fix linting errors
2018-06-25 16:19:07 -07:00
Amir Bandeali
7ce0f9682f
Fix tests
2018-06-25 16:19:07 -07:00
Remco Bloemen
3c6d0dc3e0
Update tests
2018-06-25 16:19:07 -07:00
Remco Bloemen
07734a5184
Update tests
2018-06-25 16:19:07 -07:00
Remco Bloemen
7b0c13c121
WIP
2018-06-25 16:19:07 -07:00
Fabio Berger
1353723b58
merge check-revert-reasons
2018-06-25 13:02:38 +02:00
Fabio Berger
f811c07454
Move RevertReasons to @0xproject/types package
2018-06-25 12:59:26 +02:00
Fabio Berger
bb85382824
Add missing import
2018-06-25 12:47:44 +02:00
Fabio Berger
3ed4a1ba20
Add missing import
2018-06-25 12:47:13 +02:00
Fabio Berger
c50da5d034
merge check-revert-reasons
2018-06-25 12:32:16 +02:00
Fabio Berger
9b196ba68c
Merge branch 'v2-prototype' into feature/combinatorial-testing
...
* 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
2018-06-25 11:49:14 +02:00
Fabio Berger
df79fb19af
Merge branch 'v2-prototype' into refactor/check-revert-reasons
...
* 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
2018-06-25 11:45:17 +02:00
Amir Bandeali
ea8c2b8d69
Add modifier and tests for removeAuthorizedAddressAtIndex
2018-06-23 13:53:39 +02:00
Remco Bloemen
7f84049538
Merge LibMem and LibBytes
2018-06-23 13:53:38 +02:00
Fabio Berger
1e03fbe1a8
Fix prettier
2018-06-22 18:50:02 +02:00
Fabio Berger
4409f11b24
Rename ContractLibErrors to RevertReasons
2018-06-22 18:45:45 +02:00