aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorRemco Bloemen <remco@wicked.ventures>2018-08-24 07:55:13 +0800
committerRemco Bloemen <remco@wicked.ventures>2018-08-25 07:46:24 +0800
commit749c6ecc30d1e52de4ef4f0da5864024d75d2ecb (patch)
tree0df2c626083da769a849256145598584ccc19673 /packages
parente6e7bae4459595343e07c26891577a004b0062eb (diff)
downloaddexon-sol-tools-749c6ecc30d1e52de4ef4f0da5864024d75d2ecb.tar
dexon-sol-tools-749c6ecc30d1e52de4ef4f0da5864024d75d2ecb.tar.gz
dexon-sol-tools-749c6ecc30d1e52de4ef4f0da5864024d75d2ecb.tar.bz2
dexon-sol-tools-749c6ecc30d1e52de4ef4f0da5864024d75d2ecb.tar.lz
dexon-sol-tools-749c6ecc30d1e52de4ef4f0da5864024d75d2ecb.tar.xz
dexon-sol-tools-749c6ecc30d1e52de4ef4f0da5864024d75d2ecb.tar.zst
dexon-sol-tools-749c6ecc30d1e52de4ef4f0da5864024d75d2ecb.zip
Add revert reasons to types
Diffstat (limited to 'packages')
-rw-r--r--packages/types/src/index.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts
index 4375fc631..486f71a3a 100644
--- a/packages/types/src/index.ts
+++ b/packages/types/src/index.ts
@@ -165,6 +165,7 @@ export interface ERC721AssetData {
tokenId: BigNumber;
}
+// TODO: DRY. These should be extracted from contract code.
export enum RevertReason {
OrderUnfillable = 'ORDER_UNFILLABLE',
InvalidMaker = 'INVALID_MAKER',
@@ -176,6 +177,10 @@ export enum RevertReason {
InvalidSignature = 'INVALID_SIGNATURE',
SignatureIllegal = 'SIGNATURE_ILLEGAL',
SignatureUnsupported = 'SIGNATURE_UNSUPPORTED',
+ InvalidOrderSignature = 'INVALID_ORDER_SIGNATURE',
+ TakerOverpay = 'TAKER_OVERPAY',
+ OrderOverfill = 'ORDER_OVERFILL',
+ InvalidFillPrice = 'INVALID_FILL_PRICE',
InvalidNewOrderEpoch = 'INVALID_NEW_ORDER_EPOCH',
CompleteFillFailed = 'COMPLETE_FILL_FAILED',
NegativeSpreadRequired = 'NEGATIVE_SPREAD_REQUIRED',