diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-18 21:18:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-18 21:18:54 +0800 |
commit | e2fb49a8f871fd4b631bb01bb641c632b7c19435 (patch) | |
tree | 6a04c7686159cfa80435e47e08ceb08533c0dd77 /packages/0x.js/src | |
parent | f3241ff86a0d99f4291c5a5f4eaaa5ebe1736da0 (diff) | |
parent | b9e7973a0f92661f2e469b748a162b0d3bb53624 (diff) | |
download | dexon-0x-contracts-e2fb49a8f871fd4b631bb01bb641c632b7c19435.tar dexon-0x-contracts-e2fb49a8f871fd4b631bb01bb641c632b7c19435.tar.gz dexon-0x-contracts-e2fb49a8f871fd4b631bb01bb641c632b7c19435.tar.bz2 dexon-0x-contracts-e2fb49a8f871fd4b631bb01bb641c632b7c19435.tar.lz dexon-0x-contracts-e2fb49a8f871fd4b631bb01bb641c632b7c19435.tar.xz dexon-0x-contracts-e2fb49a8f871fd4b631bb01bb641c632b7c19435.tar.zst dexon-0x-contracts-e2fb49a8f871fd4b631bb01bb641c632b7c19435.zip |
Merge pull request #884 from 0xProject/export-more-0x.js
Export missing V2 pieces from 0x.js
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r-- | packages/0x.js/src/0x.ts | 5 | ||||
-rw-r--r-- | packages/0x.js/src/index.ts | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/packages/0x.js/src/0x.ts b/packages/0x.js/src/0x.ts index 1d33eb7ca..385ba76b5 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 static assetData = assetDataUtils; + /** * An instance of the ExchangeWrapper class containing methods for interacting with the 0x Exchange smart contract. */ public exchange: ExchangeWrapper; 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'; |