diff options
author | Jacob Evans <jacob@dekz.net> | 2018-11-30 10:25:36 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-12-04 06:14:00 +0800 |
commit | 0bffc3d10e5b7c55fabfd4f0e5dcceefe468aa5f (patch) | |
tree | 2f7a9cb190a538d94e1e71e050f9c4a6c7f4f152 /packages/types | |
parent | a882a399378f75261e9fe68e6f20b1d4bb8d59c0 (diff) | |
download | dexon-0x-contracts-0bffc3d10e5b7c55fabfd4f0e5dcceefe468aa5f.tar.gz dexon-0x-contracts-0bffc3d10e5b7c55fabfd4f0e5dcceefe468aa5f.tar.zst dexon-0x-contracts-0bffc3d10e5b7c55fabfd4f0e5dcceefe468aa5f.zip |
chore: Add RevertReasons for DutchAuction. Test revert reasons
Diffstat (limited to 'packages/types')
-rw-r--r-- | packages/types/CHANGELOG.json | 4 | ||||
-rw-r--r-- | packages/types/src/index.ts | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/types/CHANGELOG.json b/packages/types/CHANGELOG.json index 53b24aff0..b09859101 100644 --- a/packages/types/CHANGELOG.json +++ b/packages/types/CHANGELOG.json @@ -5,6 +5,10 @@ { "note": "Add `LengthMismatch` and `LengthGreaterThan3Required` revert reasons", "pr": 1224 + }, + { + "note": "Add RevertReasons for DutchAuction contract", + "pr": 1225 } ] }, diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 26d8f8e22..6b728af71 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -237,6 +237,12 @@ export enum RevertReason { TxFullyConfirmed = 'TX_FULLY_CONFIRMED', TxNotFullyConfirmed = 'TX_NOT_FULLY_CONFIRMED', TimeLockIncomplete = 'TIME_LOCK_INCOMPLETE', + // DutchAuction + AuctionInvalidAmount = 'INVALID_AMOUNT', + AuctionExpired = 'AUCTION_EXPIRED', + AuctionNotStarted = 'AUCTION_NOT_STARTED', + AuctionInvalidBeginTime = 'INVALID_BEGIN_TIME', + InvalidAssetData = 'INVALID_ASSET_DATA', } export enum StatusCodes { |