diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-14 09:10:11 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-14 09:10:11 +0800 |
commit | b10cba600da44318f1d8246124c211ab92683626 (patch) | |
tree | bb1f0c546691e7ad9f7e419efb8d03263d921789 /packages/0x.js/src/index.ts | |
parent | 283175df9827be38f8cc9f18d3914e3661456fc4 (diff) | |
download | dexon-sol-tools-b10cba600da44318f1d8246124c211ab92683626.tar dexon-sol-tools-b10cba600da44318f1d8246124c211ab92683626.tar.gz dexon-sol-tools-b10cba600da44318f1d8246124c211ab92683626.tar.bz2 dexon-sol-tools-b10cba600da44318f1d8246124c211ab92683626.tar.lz dexon-sol-tools-b10cba600da44318f1d8246124c211ab92683626.tar.xz dexon-sol-tools-b10cba600da44318f1d8246124c211ab92683626.tar.zst dexon-sol-tools-b10cba600da44318f1d8246124c211ab92683626.zip |
Refactor 0x.js to simply re-export it's own sub-dependencies rather then wrapping them in a ZeroEx object
Diffstat (limited to 'packages/0x.js/src/index.ts')
-rw-r--r-- | packages/0x.js/src/index.ts | 84 |
1 files changed, 52 insertions, 32 deletions
diff --git a/packages/0x.js/src/index.ts b/packages/0x.js/src/index.ts index 2ba60e730..975de7e70 100644 --- a/packages/0x.js/src/index.ts +++ b/packages/0x.js/src/index.ts @@ -1,47 +1,35 @@ -export { ZeroEx } from './0x'; - -export { Web3ProviderEngine, RPCSubprovider } from '@0xproject/subproviders'; - export { - ExchangeContractErrs, - Order, - SignedOrder, - SignerType, - ECSignature, - OrderStateValid, - OrderStateInvalid, - OrderState, - Token, - ERC20AssetData, - ERC721AssetData, - AssetProxyId, -} from '@0xproject/types'; - -export { - BlockParamLiteral, - FilterObject, - BlockParam, - LogWithDecodedArgs, - ContractEventArg, - Provider, - TransactionReceipt, - TransactionReceiptWithDecodedLogs, -} from 'ethereum-types'; + assetDataUtils, + ecSignOrderHashAsync, + generatePseudoRandomSalt, + isValidSignatureAsync, + orderHashUtils, +} from '@0xproject/order-utils'; export { + ContractWrappers, + ERC20TokenWrapper, + ERC721TokenWrapper, + EtherTokenWrapper, + ExchangeWrapper, + ERC20ProxyWrapper, + ERC721ProxyWrapper, + ForwarderWrapper, + ContractWrappersError, EventCallback, ContractEvent, IndexedFilterValues, BlockRange, OrderFillRequest, ContractEventArgs, + ContractWrappersConfig, MethodOpts, OrderTransactionOpts, TransactionOpts, LogEvent, DecodedLogEvent, - OnOrderStateChangeCallback, - ContractWrappersError, + OrderStatus, + OrderInfo, WETH9Events, WETH9WithdrawalEventArgs, WETH9ApprovalEventArgs, @@ -56,11 +44,43 @@ export { ERC721TokenApprovalForAllEventArgs, ERC721TokenTransferEventArgs, ERC721TokenEvents, + ERC721TokenEventArgs, ExchangeCancelUpToEventArgs, ExchangeAssetProxyRegisteredEventArgs, ExchangeFillEventArgs, ExchangeCancelEventArgs, ExchangeEventArgs, - ContractWrappersConfig, - OrderInfo, + ExchangeEvents, } from '@0xproject/contract-wrappers'; + +export { OrderWatcher, OnOrderStateChangeCallback, OrderWatcherConfig } from '@0xproject/order-watcher'; + +export { Web3ProviderEngine, RPCSubprovider, Callback, ErrorCallback, Subprovider } from '@0xproject/subproviders'; + +export { BigNumber } from '@0xproject/utils'; + +export { + Order, + SignedOrder, + ECSignature, + OrderStateValid, + OrderStateInvalid, + OrderState, + AssetProxyId, + ExchangeContractErrs, + SignerType, + Token, + ERC20AssetData, + ERC721AssetData, +} from '@0xproject/types'; + +export { + BlockParamLiteral, + FilterObject, + BlockParam, + ContractEventArg, + LogWithDecodedArgs, + Provider, + TransactionReceipt, + TransactionReceiptWithDecodedLogs, +} from 'ethereum-types'; |