From 94ea7cc45104f9225bcb1d1905ffc4f2dbf27348 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Tue, 17 Jul 2018 15:31:25 +0200 Subject: Export assetDataUtils from 0x.js --- packages/0x.js/src/0x.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/0x.js/src') 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, @@ -34,6 +35,10 @@ export class ZeroEx { * this constant for your convenience. */ 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. */ -- cgit From f2393de59bf77806281ebabfad9f4500dd183f4a Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Tue, 17 Jul 2018 15:33:49 +0200 Subject: Make assetData a static property and add to CHANGELOG --- packages/0x.js/src/0x.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/0x.js/src') diff --git a/packages/0x.js/src/0x.ts b/packages/0x.js/src/0x.ts index 11ceb7c89..e321b4020 100644 --- a/packages/0x.js/src/0x.ts +++ b/packages/0x.js/src/0x.ts @@ -38,7 +38,7 @@ export class ZeroEx { /** * A set of methods to easily decode/encode assetData fields found in 0x orders. */ - public assetData = assetDataUtils; + public static assetData = assetDataUtils; /** * An instance of the ExchangeWrapper class containing methods for interacting with the 0x Exchange smart contract. */ -- cgit From 50ed7d2af26d6210f869352ed41084875d2af3d0 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Tue, 17 Jul 2018 16:41:55 +0200 Subject: Export missing types and add to doc ref whitelist --- packages/0x.js/src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/0x.js/src') diff --git a/packages/0x.js/src/index.ts b/packages/0x.js/src/index.ts index 95faa860d..95ca07eea 100644 --- a/packages/0x.js/src/index.ts +++ b/packages/0x.js/src/index.ts @@ -12,6 +12,9 @@ export { OrderStateInvalid, OrderState, Token, + ERC20AssetData, + ERC721AssetData, + AssetProxyId, } from '@0xproject/types'; export { @@ -59,4 +62,5 @@ export { ExchangeCancelEventArgs, ExchangeEventArgs, ContractWrappersConfig, + OrderInfo, } from '@0xproject/contract-wrappers'; -- cgit