aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src/constants.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-26 14:07:37 +0800
committerFabio Berger <me@fabioberger.com>2018-06-26 14:07:37 +0800
commite051743a3d9b92c8a5b275dc5843b98c37830b8c (patch)
treebcf434332365afe773ab5f6cef2e6e42356e8258 /packages/order-utils/src/constants.ts
parentf811c07454c87775f18374e8d955583dc157627f (diff)
parentcba92a01b6dee208b497817445b7ae4048e299c0 (diff)
downloaddexon-sol-tools-e051743a3d9b92c8a5b275dc5843b98c37830b8c.tar
dexon-sol-tools-e051743a3d9b92c8a5b275dc5843b98c37830b8c.tar.gz
dexon-sol-tools-e051743a3d9b92c8a5b275dc5843b98c37830b8c.tar.bz2
dexon-sol-tools-e051743a3d9b92c8a5b275dc5843b98c37830b8c.tar.lz
dexon-sol-tools-e051743a3d9b92c8a5b275dc5843b98c37830b8c.tar.xz
dexon-sol-tools-e051743a3d9b92c8a5b275dc5843b98c37830b8c.tar.zst
dexon-sol-tools-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/order-utils/src/constants.ts')
-rw-r--r--packages/order-utils/src/constants.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/order-utils/src/constants.ts b/packages/order-utils/src/constants.ts
index ed5bd8101..383a657b8 100644
--- a/packages/order-utils/src/constants.ts
+++ b/packages/order-utils/src/constants.ts
@@ -5,4 +5,10 @@ export const constants = {
// tslint:disable-next-line:custom-no-magic-numbers
UNLIMITED_ALLOWANCE_IN_BASE_UNITS: new BigNumber(2).pow(256).minus(1),
TESTRPC_NETWORK_ID: 50,
+ ADDRESS_LENGTH: 20,
+ WORD_LENGTH: 32,
+ ERC20_ASSET_DATA_BYTE_LENGTH: 36,
+ ERC721_ASSET_DATA_MINIMUM_BYTE_LENGTH: 53,
+ SELECTOR_LENGTH: 4,
+ BASE_16: 16,
};