aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/asset_buyer.ts
diff options
context:
space:
mode:
authorFrancesco Agosti <francesco.agosti93@gmail.com>2018-10-17 09:18:41 +0800
committerGitHub <noreply@github.com>2018-10-17 09:18:41 +0800
commit336e456984e24807e3d0d5017de4ea8d1e9beb19 (patch)
treeb81fcdfb7f1026b3007a9c5a81f39974d74ae483 /packages/instant/src/util/asset_buyer.ts
parent35b001b0818eda5a55e0c5f9fad9ec7122c28745 (diff)
parent32beeae2f0fa4538f12036aca8dd8d30b1de8bc9 (diff)
downloaddexon-sol-tools-336e456984e24807e3d0d5017de4ea8d1e9beb19.tar
dexon-sol-tools-336e456984e24807e3d0d5017de4ea8d1e9beb19.tar.gz
dexon-sol-tools-336e456984e24807e3d0d5017de4ea8d1e9beb19.tar.bz2
dexon-sol-tools-336e456984e24807e3d0d5017de4ea8d1e9beb19.tar.lz
dexon-sol-tools-336e456984e24807e3d0d5017de4ea8d1e9beb19.tar.xz
dexon-sol-tools-336e456984e24807e3d0d5017de4ea8d1e9beb19.tar.zst
dexon-sol-tools-336e456984e24807e3d0d5017de4ea8d1e9beb19.zip
Merge pull request #1131 from 0xProject/feature/instant/move-features-over-from-zrx-buyer
[instant][types][order-utils][asset-buyer] Move over and clean up features from zrx-buyer
Diffstat (limited to 'packages/instant/src/util/asset_buyer.ts')
-rw-r--r--packages/instant/src/util/asset_buyer.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/instant/src/util/asset_buyer.ts b/packages/instant/src/util/asset_buyer.ts
new file mode 100644
index 000000000..27d66d600
--- /dev/null
+++ b/packages/instant/src/util/asset_buyer.ts
@@ -0,0 +1,9 @@
+import { AssetBuyer } from '@0xproject/asset-buyer';
+
+import { sraApiUrl } from '../constants';
+
+import { getProvider } from './provider';
+
+const provider = getProvider();
+
+export const assetBuyer = AssetBuyer.getAssetBuyerForStandardRelayerAPIUrl(provider, sraApiUrl);