Ran prettier
This commit is contained in:
committed by
Amir Bandeali
parent
71dc2690aa
commit
565cc7b3c8
@@ -33,118 +33,83 @@ export enum TransactionErrorCodes {
|
||||
|
||||
export class SignatureError extends RichRevertReason {
|
||||
constructor(orderHash?: string, error?: SignatureErrorCodes) {
|
||||
super(
|
||||
'SignatureError(bytes32 orderHash, uint8 error)',
|
||||
{ orderHash, error, }
|
||||
);
|
||||
super('SignatureError(bytes32 orderHash, uint8 error)', { orderHash, error });
|
||||
}
|
||||
}
|
||||
|
||||
export class OrderStatusError extends RichRevertReason {
|
||||
constructor(orderHash?: string, status?: OrderStatus) {
|
||||
super(
|
||||
'OrderStatusError(bytes32 orderHash, uint8 status)',
|
||||
{ orderHash, status }
|
||||
);
|
||||
super('OrderStatusError(bytes32 orderHash, uint8 status)', { orderHash, status });
|
||||
}
|
||||
}
|
||||
|
||||
export class InvalidSenderError extends RichRevertReason {
|
||||
constructor(orderHash?: string, sender?: string) {
|
||||
super(
|
||||
'InvalidSenderError(bytes32 orderHash, address sender)',
|
||||
{ orderHash, sender, }
|
||||
);
|
||||
super('InvalidSenderError(bytes32 orderHash, address sender)', { orderHash, sender });
|
||||
}
|
||||
}
|
||||
|
||||
export class InvalidTakerError extends RichRevertReason {
|
||||
constructor(orderHash?: string, taker?: string) {
|
||||
super(
|
||||
'InvalidTakerError(bytes32 orderHash, address taker)',
|
||||
{ orderHash, taker, }
|
||||
);
|
||||
super('InvalidTakerError(bytes32 orderHash, address taker)', { orderHash, taker });
|
||||
}
|
||||
}
|
||||
|
||||
export class InvalidMakerError extends RichRevertReason {
|
||||
constructor(orderHash?: string, maker?: string) {
|
||||
super(
|
||||
'InvalidMakerError(bytes32 orderHash, address maker)',
|
||||
{ orderHash, maker, }
|
||||
);
|
||||
super('InvalidMakerError(bytes32 orderHash, address maker)', { orderHash, maker });
|
||||
}
|
||||
}
|
||||
|
||||
export class FillError extends RichRevertReason {
|
||||
constructor(orderHash?: string, error?: FillErrorCodes) {
|
||||
super(
|
||||
'FillError(bytes32 orderHash, uint8 error)',
|
||||
{ orderHash, error }
|
||||
);
|
||||
super('FillError(bytes32 orderHash, uint8 error)', { orderHash, error });
|
||||
}
|
||||
}
|
||||
|
||||
export class OrderEpochError extends RichRevertReason {
|
||||
constructor(maker?: string, sender?: string, currentEpoch?: BigNumber | number | string) {
|
||||
super(
|
||||
'OrderEpochError(address maker, address sender, uint256 currentEpoch)',
|
||||
{ maker, sender, currentEpoch, }
|
||||
);
|
||||
super('OrderEpochError(address maker, address sender, uint256 currentEpoch)', { maker, sender, currentEpoch });
|
||||
}
|
||||
}
|
||||
|
||||
export class AssetProxyExistsError extends RichRevertReason {
|
||||
constructor(proxy?: string) {
|
||||
super(
|
||||
'AssetProxyExistsError(address proxy)',
|
||||
{ proxy }
|
||||
);
|
||||
super('AssetProxyExistsError(address proxy)', { proxy });
|
||||
}
|
||||
}
|
||||
|
||||
export class AssetProxyDispatchError extends RichRevertReason {
|
||||
constructor(orderHash?: string, assetData?: string, errorMessage?: string) {
|
||||
super(
|
||||
'AssetProxyDispatchError(bytes32 orderHash, bytes assetData, string errorMessage)',
|
||||
{ orderHash, assetData, errorMessage }
|
||||
);
|
||||
super('AssetProxyDispatchError(bytes32 orderHash, bytes assetData, string errorMessage)', {
|
||||
orderHash,
|
||||
assetData,
|
||||
errorMessage,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export class NegativeSpreadError extends RichRevertReason {
|
||||
constructor(leftOrderHash?: string, rightOrderHash?: string) {
|
||||
super(
|
||||
'NegativeSpreadError(bytes32 leftOrderHash, bytes32 rightOrderHash)',
|
||||
{ leftOrderHash, rightOrderHash }
|
||||
);
|
||||
super('NegativeSpreadError(bytes32 leftOrderHash, bytes32 rightOrderHash)', { leftOrderHash, rightOrderHash });
|
||||
}
|
||||
}
|
||||
|
||||
export class TransactionError extends RichRevertReason {
|
||||
constructor(transactionHash?: string, error?: TransactionErrorCodes) {
|
||||
super(
|
||||
'TransactionError(bytes32 transactionHash, uint8 error)',
|
||||
{ transactionHash, error }
|
||||
);
|
||||
super('TransactionError(bytes32 transactionHash, uint8 error)', { transactionHash, error });
|
||||
}
|
||||
}
|
||||
|
||||
export class TransactionExecutionError extends RichRevertReason {
|
||||
constructor(transactionHash?: string, errorData?: string) {
|
||||
super(
|
||||
'TransactionExecutionError(bytes32 transactionHash, bytes errorData)',
|
||||
{ transactionHash, errorData }
|
||||
);
|
||||
super('TransactionExecutionError(bytes32 transactionHash, bytes errorData)', { transactionHash, errorData });
|
||||
}
|
||||
}
|
||||
|
||||
export class IncompleteFillError extends RichRevertReason {
|
||||
constructor(orderHash?: string) {
|
||||
super(
|
||||
'IncompleteFillError(bytes32 orderHash)',
|
||||
{ orderHash }
|
||||
);
|
||||
super('IncompleteFillError(bytes32 orderHash)', { orderHash });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user