diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-13 05:13:47 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-13 05:13:47 +0800 |
commit | 49f1a6933cc22d1e703d631d5b861b8601ca2231 (patch) | |
tree | 3af6e0f9e84f09124d93b176c2cbfdd2a8edcaff /packages/types/src/index.ts | |
parent | a45a29432e722b71fcfc63a8545fa43ffc29b92d (diff) | |
download | dexon-0x-contracts-49f1a6933cc22d1e703d631d5b861b8601ca2231.tar dexon-0x-contracts-49f1a6933cc22d1e703d631d5b861b8601ca2231.tar.gz dexon-0x-contracts-49f1a6933cc22d1e703d631d5b861b8601ca2231.tar.bz2 dexon-0x-contracts-49f1a6933cc22d1e703d631d5b861b8601ca2231.tar.lz dexon-0x-contracts-49f1a6933cc22d1e703d631d5b861b8601ca2231.tar.xz dexon-0x-contracts-49f1a6933cc22d1e703d631d5b861b8601ca2231.tar.zst dexon-0x-contracts-49f1a6933cc22d1e703d631d5b861b8601ca2231.zip |
Add fetchAsync util and RPCSubprovider
Diffstat (limited to 'packages/types/src/index.ts')
-rw-r--r-- | packages/types/src/index.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 03fa2fe8a..9b1731b9d 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -221,3 +221,15 @@ export enum RevertReason { ValueGreaterThanZero = 'VALUE_GREATER_THAN_ZERO', InvalidMsgValue = 'INVALID_MSG_VALUE', } + +export enum StatusCodes { + Success = 200, + NotFound = 404, + InternalError = 500, + MethodNotAllowed = 405, + GatewayTimeout = 504, +} + +export interface FetchRequest extends RequestInit { + timeout?: number; +} |