diff options
author | Jacob Evans <jacob@dekz.net> | 2018-10-02 15:32:28 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-10-05 10:00:41 +0800 |
commit | 07926ded6ef194969ffe26e3879d6e86a0eb9c50 (patch) | |
tree | 9603fa9942cdf1c364fe794e037013351416fc73 /packages/0x.js | |
parent | adcfaa2e80389f69e196b602955cee858a1eb40f (diff) | |
download | dexon-sol-tools-07926ded6ef194969ffe26e3879d6e86a0eb9c50.tar dexon-sol-tools-07926ded6ef194969ffe26e3879d6e86a0eb9c50.tar.gz dexon-sol-tools-07926ded6ef194969ffe26e3879d6e86a0eb9c50.tar.bz2 dexon-sol-tools-07926ded6ef194969ffe26e3879d6e86a0eb9c50.tar.lz dexon-sol-tools-07926ded6ef194969ffe26e3879d6e86a0eb9c50.tar.xz dexon-sol-tools-07926ded6ef194969ffe26e3879d6e86a0eb9c50.tar.zst dexon-sol-tools-07926ded6ef194969ffe26e3879d6e86a0eb9c50.zip |
Introduce Metamask Subprovider.
MM has a number of inconsistencies with other providers when implementing the JSON RPC interface. This subprovider wraps those nuances so they do not leak into the rest of our code
Diffstat (limited to 'packages/0x.js')
-rw-r--r-- | packages/0x.js/src/index.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/0x.js/src/index.ts b/packages/0x.js/src/index.ts index d07bfcfc8..228bcecdb 100644 --- a/packages/0x.js/src/index.ts +++ b/packages/0x.js/src/index.ts @@ -53,7 +53,13 @@ export { OrderWatcher, OnOrderStateChangeCallback, OrderWatcherConfig } from '@0 export import Web3ProviderEngine = require('web3-provider-engine'); -export { RPCSubprovider, Callback, JSONRPCRequestPayloadWithMethod, ErrorCallback } from '@0xproject/subproviders'; +export { + RPCSubprovider, + Callback, + JSONRPCRequestPayloadWithMethod, + ErrorCallback, + MetamaskSubprovider, +} from '@0xproject/subproviders'; export { AbiDecoder } from '@0xproject/utils'; @@ -68,7 +74,6 @@ export { OrderStateInvalid, OrderState, AssetProxyId, - SignerType, ERC20AssetData, ERC721AssetData, SignatureType, |