aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-report
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-24 01:19:10 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-05-24 01:19:10 +0800
commit0a725415a48ebc2f23578baa410f56f88bc77cee (patch)
treec4a618bb0700560d23b7839b60ba2203e46433f9 /packages/sra-report
parent48e66954470ffb1b547e377d3edbed5d2cf7fc6b (diff)
parentaf0d9439d4f4e05fce8018665e375cf2db07184c (diff)
downloaddexon-sol-tools-0a725415a48ebc2f23578baa410f56f88bc77cee.tar
dexon-sol-tools-0a725415a48ebc2f23578baa410f56f88bc77cee.tar.gz
dexon-sol-tools-0a725415a48ebc2f23578baa410f56f88bc77cee.tar.bz2
dexon-sol-tools-0a725415a48ebc2f23578baa410f56f88bc77cee.tar.lz
dexon-sol-tools-0a725415a48ebc2f23578baa410f56f88bc77cee.tar.xz
dexon-sol-tools-0a725415a48ebc2f23578baa410f56f88bc77cee.tar.zst
dexon-sol-tools-0a725415a48ebc2f23578baa410f56f88bc77cee.zip
Merge branch 'v2-prototype' into feature/truffle-sol-cov
Diffstat (limited to 'packages/sra-report')
-rw-r--r--packages/sra-report/package.json3
-rw-r--r--packages/sra-report/src/postman_environment_factory.ts5
2 files changed, 5 insertions, 3 deletions
diff --git a/packages/sra-report/package.json b/packages/sra-report/package.json
index 0ab83f5f7..810acab1c 100644
--- a/packages/sra-report/package.json
+++ b/packages/sra-report/package.json
@@ -31,8 +31,9 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/packages/sra-report/README.md",
"dependencies": {
- "0x.js": "^0.38.0",
"@0xproject/assert": "^0.2.10",
+ "@0xproject/types": "^0.7.0",
+ "@0xproject/order-utils": "^0.0.5",
"@0xproject/connect": "^0.6.13",
"@0xproject/json-schemas": "^0.7.24",
"@0xproject/typescript-typings": "^0.3.2",
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`)}`);