aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-17 21:31:25 +0800
committerFabio Berger <me@fabioberger.com>2018-07-17 21:31:25 +0800
commit94ea7cc45104f9225bcb1d1905ffc4f2dbf27348 (patch)
treed8f2b256f68b3c5f35a709d0eb7ccc83281f7f13 /packages/0x.js/src
parentf8dbf57582189315566704ca64e36e9c5d07014f (diff)
downloaddexon-0x-contracts-94ea7cc45104f9225bcb1d1905ffc4f2dbf27348.tar.gz
dexon-0x-contracts-94ea7cc45104f9225bcb1d1905ffc4f2dbf27348.tar.zst
dexon-0x-contracts-94ea7cc45104f9225bcb1d1905ffc4f2dbf27348.zip
Export assetDataUtils from 0x.js
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/0x.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/0x.js/src/0x.ts b/packages/0x.js/src/0x.ts
index 5d9a03719..11ceb7c89 100644
--- a/packages/0x.js/src/0x.ts
+++ b/packages/0x.js/src/0x.ts
@@ -10,6 +10,7 @@ import {
ExchangeWrapper,
} from '@0xproject/contract-wrappers';
import {
+ assetDataUtils,
ecSignOrderHashAsync,
generatePseudoRandomSalt,
isValidSignatureAsync,
@@ -35,6 +36,10 @@ export class ZeroEx {
*/
public static NULL_ADDRESS = constants.NULL_ADDRESS;
/**
+ * A set of methods to easily decode/encode assetData fields found in 0x orders.
+ */
+ public assetData = assetDataUtils;
+ /**
* An instance of the ExchangeWrapper class containing methods for interacting with the 0x Exchange smart contract.
*/
public exchange: ExchangeWrapper;