aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src/constants.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-10 09:25:14 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-10 09:25:14 +0800
commit2bd8cbb80cadc922ca13582a1f15d63815118205 (patch)
treef81ae5e91e720fe228d83b0e8af0fc676f35b7c5 /packages/order-utils/src/constants.ts
parent941448d65cc42870a93e0430158bfd7ab52fd2cd (diff)
parentafb34da72978b5272cfb5a235498e483c72556bc (diff)
downloaddexon-sol-tools-2bd8cbb80cadc922ca13582a1f15d63815118205.tar
dexon-sol-tools-2bd8cbb80cadc922ca13582a1f15d63815118205.tar.gz
dexon-sol-tools-2bd8cbb80cadc922ca13582a1f15d63815118205.tar.bz2
dexon-sol-tools-2bd8cbb80cadc922ca13582a1f15d63815118205.tar.lz
dexon-sol-tools-2bd8cbb80cadc922ca13582a1f15d63815118205.tar.xz
dexon-sol-tools-2bd8cbb80cadc922ca13582a1f15d63815118205.tar.zst
dexon-sol-tools-2bd8cbb80cadc922ca13582a1f15d63815118205.zip
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/redux-styles-container
Diffstat (limited to 'packages/order-utils/src/constants.ts')
-rw-r--r--packages/order-utils/src/constants.ts35
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/order-utils/src/constants.ts b/packages/order-utils/src/constants.ts
index c23578c20..7de20a696 100644
--- a/packages/order-utils/src/constants.ts
+++ b/packages/order-utils/src/constants.ts
@@ -13,4 +13,39 @@ export const constants = {
BASE_16: 16,
INFINITE_TIMESTAMP_SEC: new BigNumber(2524604400), // Close to infinite
ZERO_AMOUNT: new BigNumber(0),
+ EIP712_DOMAIN_NAME: '0x Protocol',
+ EIP712_DOMAIN_VERSION: '2',
+ EIP712_DOMAIN_SCHEMA: {
+ name: 'EIP712Domain',
+ parameters: [
+ { name: 'name', type: 'string' },
+ { name: 'version', type: 'string' },
+ { name: 'verifyingContract', type: 'address' },
+ ],
+ },
+ EIP712_ORDER_SCHEMA: {
+ name: 'Order',
+ parameters: [
+ { name: 'makerAddress', type: 'address' },
+ { name: 'takerAddress', type: 'address' },
+ { name: 'feeRecipientAddress', type: 'address' },
+ { name: 'senderAddress', type: 'address' },
+ { name: 'makerAssetAmount', type: 'uint256' },
+ { name: 'takerAssetAmount', type: 'uint256' },
+ { name: 'makerFee', type: 'uint256' },
+ { name: 'takerFee', type: 'uint256' },
+ { name: 'expirationTimeSeconds', type: 'uint256' },
+ { name: 'salt', type: 'uint256' },
+ { name: 'makerAssetData', type: 'bytes' },
+ { name: 'takerAssetData', type: 'bytes' },
+ ],
+ },
+ EIP712_ZEROEX_TRANSACTION_SCHEMA: {
+ name: 'ZeroExTransaction',
+ parameters: [
+ { name: 'salt', type: 'uint256' },
+ { name: 'signerAddress', type: 'address' },
+ { name: 'data', type: 'bytes' },
+ ],
+ },
};