diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-26 14:07:37 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-26 14:07:37 +0800 |
commit | e051743a3d9b92c8a5b275dc5843b98c37830b8c (patch) | |
tree | bcf434332365afe773ab5f6cef2e6e42356e8258 /packages/types | |
parent | f811c07454c87775f18374e8d955583dc157627f (diff) | |
parent | cba92a01b6dee208b497817445b7ae4048e299c0 (diff) | |
download | dexon-0x-contracts-e051743a3d9b92c8a5b275dc5843b98c37830b8c.tar.gz dexon-0x-contracts-e051743a3d9b92c8a5b275dc5843b98c37830b8c.tar.zst dexon-0x-contracts-e051743a3d9b92c8a5b275dc5843b98c37830b8c.zip |
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
Diffstat (limited to 'packages/types')
-rw-r--r-- | packages/types/src/index.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 70665a123..fa7d91347 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -152,18 +152,18 @@ export interface ECSignature { } export enum AssetProxyId { - INVALID, - ERC20, - ERC721, + INVALID = '0x00000000', + ERC20 = '0xf47261b0', + ERC721 = '0x08e937fa', } export interface ERC20AssetData { - assetProxyId: AssetProxyId; + assetProxyId: string; tokenAddress: string; } export interface ERC721AssetData { - assetProxyId: AssetProxyId; + assetProxyId: string; tokenAddress: string; tokenId: BigNumber; receiverData: string; |