aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-watcher/src/utils/assert.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/order-watcher/src/utils/assert.ts')
-rw-r--r--packages/order-watcher/src/utils/assert.ts23
1 files changed, 0 insertions, 23 deletions
diff --git a/packages/order-watcher/src/utils/assert.ts b/packages/order-watcher/src/utils/assert.ts
deleted file mode 100644
index ccfc7325c..000000000
--- a/packages/order-watcher/src/utils/assert.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { assert as sharedAssert } from '@0x/assert';
-// HACK: We need those two unused imports because they're actually used by sharedAssert which gets injected here
-// tslint:disable:no-unused-variable
-import { Schema } from '@0x/json-schemas';
-import { ECSignature } from '@0x/types';
-import { BigNumber } from '@0x/utils';
-// tslint:enable:no-unused-variable
-import { Provider } from 'ethereum-types';
-
-import { signatureUtils } from '@0x/order-utils';
-
-export const assert = {
- ...sharedAssert,
- async isValidSignatureAsync(
- provider: Provider,
- orderHash: string,
- signature: string,
- signerAddress: string,
- ): Promise<void> {
- const isValid = await signatureUtils.isValidSignatureAsync(provider, orderHash, signature, signerAddress);
- assert.assert(isValid, `Expected order with hash '${orderHash}' to have a valid signature`);
- },
-};