Export assetDataUtils from 0x.js

This commit is contained in:
Fabio Berger
2018-07-17 15:31:25 +02:00
parent f8dbf57582
commit 94ea7cc451

View File

@@ -10,6 +10,7 @@ import {
ExchangeWrapper, ExchangeWrapper,
} from '@0xproject/contract-wrappers'; } from '@0xproject/contract-wrappers';
import { import {
assetDataUtils,
ecSignOrderHashAsync, ecSignOrderHashAsync,
generatePseudoRandomSalt, generatePseudoRandomSalt,
isValidSignatureAsync, isValidSignatureAsync,
@@ -34,6 +35,10 @@ export class ZeroEx {
* this constant for your convenience. * this constant for your convenience.
*/ */
public static NULL_ADDRESS = constants.NULL_ADDRESS; 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. * An instance of the ExchangeWrapper class containing methods for interacting with the 0x Exchange smart contract.
*/ */