diff options
author | Jacob Evans <jacob@dekz.net> | 2018-10-04 15:12:35 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-10-05 10:00:41 +0800 |
commit | 2a82ff48c061eacb3b6f9fb36eeae7f515b6d11d (patch) | |
tree | 9e6658db449425bcb7c4e4bbee4a328525dc1902 /packages/order-utils/src/constants.ts | |
parent | 07926ded6ef194969ffe26e3879d6e86a0eb9c50 (diff) | |
download | dexon-sol-tools-2a82ff48c061eacb3b6f9fb36eeae7f515b6d11d.tar dexon-sol-tools-2a82ff48c061eacb3b6f9fb36eeae7f515b6d11d.tar.gz dexon-sol-tools-2a82ff48c061eacb3b6f9fb36eeae7f515b6d11d.tar.bz2 dexon-sol-tools-2a82ff48c061eacb3b6f9fb36eeae7f515b6d11d.tar.lz dexon-sol-tools-2a82ff48c061eacb3b6f9fb36eeae7f515b6d11d.tar.xz dexon-sol-tools-2a82ff48c061eacb3b6f9fb36eeae7f515b6d11d.tar.zst dexon-sol-tools-2a82ff48c061eacb3b6f9fb36eeae7f515b6d11d.zip |
Move SignTypedData to utils package
Diffstat (limited to 'packages/order-utils/src/constants.ts')
-rw-r--r-- | packages/order-utils/src/constants.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/order-utils/src/constants.ts b/packages/order-utils/src/constants.ts index c23578c20..cc03755c3 100644 --- a/packages/order-utils/src/constants.ts +++ b/packages/order-utils/src/constants.ts @@ -14,3 +14,15 @@ export const constants = { INFINITE_TIMESTAMP_SEC: new BigNumber(2524604400), // Close to infinite ZERO_AMOUNT: new BigNumber(0), }; + +export const EIP712_DOMAIN_NAME = '0x Protocol'; +export const EIP712_DOMAIN_VERSION = '2'; + +export const EIP712_DOMAIN_SCHEMA = { + name: 'EIP712Domain', + parameters: [ + { name: 'name', type: 'string' }, + { name: 'version', type: 'string ' }, + { name: 'verifyingContract', type: 'address' }, + ], +}; |