From a6046af0240d9257a9e9dd80dc4dc5f533df8799 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 2 May 2018 18:38:38 +0300 Subject: Stop exporting assertions from order-utils --- packages/order-utils/src/assert.ts | 8 -------- packages/order-utils/src/index.ts | 1 - 2 files changed, 9 deletions(-) (limited to 'packages/order-utils') diff --git a/packages/order-utils/src/assert.ts b/packages/order-utils/src/assert.ts index 92641b845..5ac402e7e 100644 --- a/packages/order-utils/src/assert.ts +++ b/packages/order-utils/src/assert.ts @@ -12,10 +12,6 @@ import { isValidSignature } from './signature_utils'; export const assert = { ...sharedAssert, - isValidSignature(orderHash: string, ecSignature: ECSignature, signerAddress: string) { - const isValid = isValidSignature(orderHash, ecSignature, signerAddress); - this.assert(isValid, `Expected order with hash '${orderHash}' to have a valid signature`); - }, async isSenderAddressAsync( variableName: string, senderAddressHex: string, @@ -28,8 +24,4 @@ export const assert = { `Specified ${variableName} ${senderAddressHex} isn't available through the supplied web3 provider`, ); }, - async isUserAddressAvailableAsync(web3Wrapper: Web3Wrapper): Promise { - const availableAddresses = await web3Wrapper.getAvailableAddressesAsync(); - this.assert(!_.isEmpty(availableAddresses), 'No addresses were available on the provided web3 provider'); - }, }; diff --git a/packages/order-utils/src/index.ts b/packages/order-utils/src/index.ts index 4addd60d6..2b565f713 100644 --- a/packages/order-utils/src/index.ts +++ b/packages/order-utils/src/index.ts @@ -2,6 +2,5 @@ export { getOrderHashHex, isValidOrderHash } from './order_hash'; export { isValidSignature, signOrderHashAsync } from './signature_utils'; export { orderFactory } from './order_factory'; export { generatePseudoRandomSalt } from './salt'; -export { assert } from './assert'; export { constants } from './constants'; export { OrderError } from './types'; -- cgit v1.2.3