purge tslint comments (#585)

This commit is contained in:
eobbad 2022-09-21 19:53:47 -04:00 committed by GitHub
parent b4d6f74d7b
commit 0daa988996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 10 deletions

View File

@ -19,12 +19,10 @@ import {
SignatureType, SignatureType,
} from './signature_utils'; } from './signature_utils';
// tslint:disable:enum-naming
export enum TradeDirection { export enum TradeDirection {
SellNFT = 0, SellNFT = 0,
BuyNFT = 1, BuyNFT = 1,
} }
// tslint:enable:enum-naming
export enum OrderStatus { export enum OrderStatus {
Invalid = 0, Invalid = 0,

View File

@ -1,4 +1,3 @@
// tslint:disable: max-classes-per-file
import { Numberish, RevertError } from '@0x/utils'; import { Numberish, RevertError } from '@0x/utils';
import { OrderStatus } from '../orders'; import { OrderStatus } from '../orders';

View File

@ -1,4 +1,3 @@
// tslint:disable: max-classes-per-file
import { Numberish, RevertError } from '@0x/utils'; import { Numberish, RevertError } from '@0x/utils';
import { OrderStatus } from '../nft_orders'; import { OrderStatus } from '../nft_orders';

View File

@ -125,7 +125,6 @@ export interface FillQuoteTransformerData {
refundReceiver: string; refundReceiver: string;
} }
// tslint:disable: enum-naming
/** /**
* Identifies the DEX protocol used to fill a bridge order. * Identifies the DEX protocol used to fill a bridge order.
* Note: These need to correspond exactly with BridgeProtocols.sol! * Note: These need to correspond exactly with BridgeProtocols.sol!
@ -164,7 +163,6 @@ export enum BridgeProtocol {
Synthetix, Synthetix,
WOOFi, WOOFi,
} }
// tslint:enable: enum-naming
/** /**
* `FillQuoteTransformer.BridgeOrder` * `FillQuoteTransformer.BridgeOrder`
@ -357,10 +355,7 @@ export function findTransformerNonce(transformer: string, deployer: string = NUL
* Compute the deployed address for a transformer given a deployer and nonce. * Compute the deployed address for a transformer given a deployer and nonce.
*/ */
export function getTransformerAddress(deployer: string, nonce: number): string { export function getTransformerAddress(deployer: string, nonce: number): string {
return ethjs.bufferToHex( return ethjs.bufferToHex(ethjs.rlphash([deployer, nonce] as any).slice(12));
// tslint:disable-next-line: custom-no-magic-numbers
ethjs.rlphash([deployer, nonce] as any).slice(12),
);
} }
/** /**