diff --git a/contracts/asset-proxy/test/utils/erc721_wrapper.ts b/contracts/asset-proxy/test/utils/erc721_wrapper.ts index d84e6ce344..3a713d5bd6 100644 --- a/contracts/asset-proxy/test/utils/erc721_wrapper.ts +++ b/contracts/asset-proxy/test/utils/erc721_wrapper.ts @@ -1,4 +1,4 @@ -import { constants, ERC721TokenIdsByOwner, txDefaults, Web3ProviderEngine} from '@0x/contracts-test-utils'; +import { constants, ERC721TokenIdsByOwner, txDefaults, Web3ProviderEngine } from '@0x/contracts-test-utils'; import { generatePseudoRandomSalt } from '@0x/order-utils'; import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; diff --git a/contracts/exchange/test/utils/exchange_wrapper.ts b/contracts/exchange/test/utils/exchange_wrapper.ts index a11af542bd..0a0e4c198d 100644 --- a/contracts/exchange/test/utils/exchange_wrapper.ts +++ b/contracts/exchange/test/utils/exchange_wrapper.ts @@ -1,4 +1,11 @@ -import { FillResults, formatters, LogDecoder, OrderInfo, orderUtils, Web3ProviderEngine } from '@0x/contracts-test-utils'; +import { + FillResults, + formatters, + LogDecoder, + OrderInfo, + orderUtils, + Web3ProviderEngine, +} from '@0x/contracts-test-utils'; import { SignedOrder, SignedZeroExTransaction } from '@0x/types'; import { AbiEncoder, BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; diff --git a/packages/asset-buyer/src/asset_buyer.ts b/packages/asset-buyer/src/asset_buyer.ts index 2e905177fa..61de691256 100644 --- a/packages/asset-buyer/src/asset_buyer.ts +++ b/packages/asset-buyer/src/asset_buyer.ts @@ -91,7 +91,11 @@ export class AssetBuyer { * * @return An instance of AssetBuyer */ - constructor(supportedProvider: SupportedProvider, orderProvider: OrderProvider, options: Partial = {}) { + constructor( + supportedProvider: SupportedProvider, + orderProvider: OrderProvider, + options: Partial = {}, + ) { const { networkId, orderRefreshIntervalMs, expiryBufferSeconds } = _.merge( {}, constants.DEFAULT_ASSET_BUYER_OPTS, diff --git a/packages/contract-wrappers/src/utils/assert.ts b/packages/contract-wrappers/src/utils/assert.ts index ff408f6a85..9d421dae3a 100644 --- a/packages/contract-wrappers/src/utils/assert.ts +++ b/packages/contract-wrappers/src/utils/assert.ts @@ -18,7 +18,12 @@ export const assert = { signature: string, signerAddress: string, ): Promise { - const isValid = await signatureUtils.isValidSignatureAsync(supportedProvider, orderHash, signature, signerAddress); + const isValid = await signatureUtils.isValidSignatureAsync( + supportedProvider, + orderHash, + signature, + signerAddress, + ); sharedAssert.assert(isValid, `Expected order with hash '${orderHash}' to have a valid signature`); }, isValidSubscriptionToken(variableName: string, subscriptionToken: string): void { diff --git a/packages/migrations/src/migration.ts b/packages/migrations/src/migration.ts index 2d73ca0113..5828d662e1 100644 --- a/packages/migrations/src/migration.ts +++ b/packages/migrations/src/migration.ts @@ -204,7 +204,10 @@ let _cachedContractAddresses: ContractAddresses; * @param txDefaults Default transaction values to use when deploying contracts (e.g., specify the desired contract creator with the `from` parameter). * @returns The addresses of the contracts that were deployed. */ -export async function runMigrationsOnceAsync(provider: Web3ProviderEngine, txDefaults: TxData): Promise { +export async function runMigrationsOnceAsync( + provider: Web3ProviderEngine, + txDefaults: TxData, +): Promise { if (!_.isUndefined(_cachedContractAddresses)) { return _cachedContractAddresses; } diff --git a/packages/order-utils/src/order_validation_utils.ts b/packages/order-utils/src/order_validation_utils.ts index 7fd31622eb..68628b6af4 100644 --- a/packages/order-utils/src/order_validation_utils.ts +++ b/packages/order-utils/src/order_validation_utils.ts @@ -118,7 +118,10 @@ export class OrderValidationUtils { * @param supportedProvider Web3 provider to use for JSON RPC calls * @return An instance of OrderValidationUtils */ - constructor(orderFilledCancelledFetcher: AbstractOrderFilledCancelledFetcher, supportedProvider: SupportedProvider) { + constructor( + orderFilledCancelledFetcher: AbstractOrderFilledCancelledFetcher, + supportedProvider: SupportedProvider, + ) { this._orderFilledCancelledFetcher = orderFilledCancelledFetcher; const provider = providerUtils.standardizeOrThrow(supportedProvider); this._provider = provider; diff --git a/packages/order-utils/src/signature_utils.ts b/packages/order-utils/src/signature_utils.ts index 33028d53ed..57b56099b8 100644 --- a/packages/order-utils/src/signature_utils.ts +++ b/packages/order-utils/src/signature_utils.ts @@ -91,7 +91,11 @@ export const signatureUtils = { * @param signerAddress The hex encoded address that signed the data, producing the supplied signature. * @return Whether the data was preSigned by the supplied signerAddress */ - async isValidPresignedSignatureAsync(supportedProvider: SupportedProvider, data: string, signerAddress: string): Promise { + async isValidPresignedSignatureAsync( + supportedProvider: SupportedProvider, + data: string, + signerAddress: string, + ): Promise { const provider = providerUtils.standardizeOrThrow(supportedProvider); assert.isHexString('data', data); assert.isETHAddressHex('signerAddress', signerAddress); @@ -210,7 +214,11 @@ export const signatureUtils = { * must be available via the supplied Provider. * @return A SignedOrder containing the order and Elliptic curve signature with Signature Type. */ - async ecSignOrderAsync(supportedProvider: SupportedProvider, order: Order, signerAddress: string): Promise { + async ecSignOrderAsync( + supportedProvider: SupportedProvider, + order: Order, + signerAddress: string, + ): Promise { assert.doesConformToSchema('order', order, schemas.orderSchema, [schemas.hexSchema]); try { const signedOrder = await signatureUtils.ecSignTypedDataOrderAsync(supportedProvider, order, signerAddress); @@ -241,7 +249,11 @@ export const signatureUtils = { * must be available via the supplied Provider. * @return A SignedOrder containing the order and Elliptic curve signature with Signature Type. */ - async ecSignTypedDataOrderAsync(supportedProvider: SupportedProvider, order: Order, signerAddress: string): Promise { + async ecSignTypedDataOrderAsync( + supportedProvider: SupportedProvider, + order: Order, + signerAddress: string, + ): Promise { const provider = providerUtils.standardizeOrThrow(supportedProvider); assert.isETHAddressHex('signerAddress', signerAddress); assert.doesConformToSchema('order', order, schemas.orderSchema, [schemas.hexSchema]); @@ -280,7 +292,11 @@ export const signatureUtils = { * must be available via the supplied Provider. * @return A hex encoded string containing the Elliptic curve signature generated by signing the msgHash and the Signature Type. */ - async ecSignHashAsync(supportedProvider: SupportedProvider, msgHash: string, signerAddress: string): Promise { + async ecSignHashAsync( + supportedProvider: SupportedProvider, + msgHash: string, + signerAddress: string, + ): Promise { const provider = providerUtils.standardizeOrThrow(supportedProvider); assert.isHexString('msgHash', msgHash); assert.isETHAddressHex('signerAddress', signerAddress); diff --git a/packages/order-watcher/src/order_watcher/order_watcher.ts b/packages/order-watcher/src/order_watcher/order_watcher.ts index e68d9a372c..d1cab2b10d 100644 --- a/packages/order-watcher/src/order_watcher/order_watcher.ts +++ b/packages/order-watcher/src/order_watcher/order_watcher.ts @@ -34,7 +34,13 @@ import { } from '@0x/order-utils'; import { AssetProxyId, ExchangeContractErrs, OrderState, SignedOrder, Stats } from '@0x/types'; import { errorUtils, intervalUtils, providerUtils } from '@0x/utils'; -import { BlockParamLiteral, LogEntryEvent, LogWithDecodedArgs, SupportedProvider, ZeroExProvider } from 'ethereum-types'; +import { + BlockParamLiteral, + LogEntryEvent, + LogWithDecodedArgs, + SupportedProvider, + ZeroExProvider, +} from 'ethereum-types'; import * as _ from 'lodash'; import { orderWatcherPartialConfigSchema } from '../schemas/order_watcher_partial_config_schema'; diff --git a/packages/order-watcher/src/utils/assert.ts b/packages/order-watcher/src/utils/assert.ts index 6439b2e86a..ed28aebc6a 100644 --- a/packages/order-watcher/src/utils/assert.ts +++ b/packages/order-watcher/src/utils/assert.ts @@ -17,7 +17,12 @@ export const assert = { signature: string, signerAddress: string, ): Promise { - const isValid = await signatureUtils.isValidSignatureAsync(supportedProvider, orderHash, signature, signerAddress); + const isValid = await signatureUtils.isValidSignatureAsync( + supportedProvider, + orderHash, + signature, + signerAddress, + ); assert.assert(isValid, `Expected order with hash '${orderHash}' to have a valid signature`); }, }; diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index 931dceda19..f20b11a51d 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -22,7 +22,13 @@ import { import { SignedOrder, Token as ZeroExToken } from '@0x/types'; import { BigNumber, intervalUtils, logUtils, providerUtils } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; -import { BlockParam, LogWithDecodedArgs, Provider, TransactionReceiptWithDecodedLogs, ZeroExProvider } from 'ethereum-types'; +import { + BlockParam, + LogWithDecodedArgs, + Provider, + TransactionReceiptWithDecodedLogs, + ZeroExProvider, +} from 'ethereum-types'; import * as _ from 'lodash'; import * as moment from 'moment'; import * as React from 'react';