purge tslint comments (#585)
This commit is contained in:
parent
b4d6f74d7b
commit
0daa988996
@ -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,
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user