diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-23 06:45:44 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-23 06:45:44 +0800 |
commit | 68321362c53db791338d4bbe1828052ed89d4e7d (patch) | |
tree | eba233e19ff111f47e299a13880f0d995e3565b1 /packages/sra-report/src | |
parent | fc87caa34800393c1c0d4e507146de081fcb212e (diff) | |
download | dexon-sol-tools-68321362c53db791338d4bbe1828052ed89d4e7d.tar.gz dexon-sol-tools-68321362c53db791338d4bbe1828052ed89d4e7d.tar.zst dexon-sol-tools-68321362c53db791338d4bbe1828052ed89d4e7d.zip |
Remove 0x.js dependency from sra-report
Diffstat (limited to 'packages/sra-report/src')
-rw-r--r-- | packages/sra-report/src/postman_environment_factory.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/sra-report/src/postman_environment_factory.ts b/packages/sra-report/src/postman_environment_factory.ts index e899aaa79..f8fe02d72 100644 --- a/packages/sra-report/src/postman_environment_factory.ts +++ b/packages/sra-report/src/postman_environment_factory.ts @@ -1,6 +1,7 @@ -import { SignedOrder, ZeroEx } from '0x.js'; import { HttpClient } from '@0xproject/connect'; import { Schema, schemas as schemasByName } from '@0xproject/json-schemas'; +import { getOrderHashHex } from '@0xproject/order-utils'; +import { SignedOrder } from '@0xproject/types'; import { logUtils } from '@0xproject/utils'; import chalk from 'chalk'; import * as _ from 'lodash'; @@ -98,7 +99,7 @@ async function createOrderEnvironmentValuesAsync(url: string): Promise<Environme createEnvironmentValue('orderMaker', orderIfExists.maker), createEnvironmentValue('orderTaker', orderIfExists.taker), createEnvironmentValue('orderFeeRecipient', orderIfExists.feeRecipient), - createEnvironmentValue('orderHash', ZeroEx.getOrderHashHex(orderIfExists)), + createEnvironmentValue('orderHash', getOrderHashHex(orderIfExists)), ]; } else { logUtils.log(`${chalk.red(`No orders from /orders found`)}`); |