Add initial error handling decorator implementation

This commit is contained in:
Leonid Logvinov
2017-06-10 13:55:36 +02:00
parent 0e971fcc89
commit 10e8e89fee
5 changed files with 50 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ export const ZeroExError = strEnum([
'ZRX_NOT_IN_TOKEN_REGISTRY',
'INSUFFICIENT_ALLOWANCE_FOR_TRANSFER',
'INSUFFICIENT_BALANCE_FOR_TRANSFER',
'INVALID_JUMP',
'OUT_OF_GAS',
]);
export type ZeroExError = keyof typeof ZeroExError;
@@ -263,3 +265,5 @@ export interface OrderFillRequest {
signedOrder: SignedOrder;
takerTokenFillAmount: BigNumber.BigNumber;
}
export type AsyncMethod = (...args: any[]) => Promise<any>;