aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-25 19:02:38 +0800
committerFabio Berger <me@fabioberger.com>2018-06-25 19:02:38 +0800
commit1353723b58715faf3dd10b173323dab015e2dd5b (patch)
treeeea65fd6e986fa9f531a3cac4d4b432d237a76b4 /packages/contracts/src
parent3ed4a1ba206b52b76488cb85a7e20a277d5c0a2b (diff)
parentf811c07454c87775f18374e8d955583dc157627f (diff)
downloaddexon-sol-tools-1353723b58715faf3dd10b173323dab015e2dd5b.tar
dexon-sol-tools-1353723b58715faf3dd10b173323dab015e2dd5b.tar.gz
dexon-sol-tools-1353723b58715faf3dd10b173323dab015e2dd5b.tar.bz2
dexon-sol-tools-1353723b58715faf3dd10b173323dab015e2dd5b.tar.lz
dexon-sol-tools-1353723b58715faf3dd10b173323dab015e2dd5b.tar.xz
dexon-sol-tools-1353723b58715faf3dd10b173323dab015e2dd5b.tar.zst
dexon-sol-tools-1353723b58715faf3dd10b173323dab015e2dd5b.zip
merge check-revert-reasons
Diffstat (limited to 'packages/contracts/src')
-rw-r--r--packages/contracts/src/utils/types.ts44
1 files changed, 0 insertions, 44 deletions
diff --git a/packages/contracts/src/utils/types.ts b/packages/contracts/src/utils/types.ts
index e996ad96a..b792bb90a 100644
--- a/packages/contracts/src/utils/types.ts
+++ b/packages/contracts/src/utils/types.ts
@@ -227,47 +227,3 @@ export interface FillScenario {
makerStateScenario: TraderStateScenario;
takerStateScenario: TraderStateScenario;
}
-
-export enum RevertReasons {
- OrderUnfillable = 'ORDER_UNFILLABLE',
- InvalidMaker = 'INVALID_MAKER',
- InvalidTaker = 'INVALID_TAKER',
- InvalidSender = 'INVALID_SENDER',
- InvalidOrderSignature = 'INVALID_ORDER_SIGNATURE',
- InvalidTakerAmount = 'INVALID_TAKER_AMOUNT',
- RoundingError = 'ROUNDING_ERROR',
- InvalidSignature = 'INVALID_SIGNATURE',
- SignatureIllegal = 'SIGNATURE_ILLEGAL',
- SignatureUnsupported = 'SIGNATURE_UNSUPPORTED',
- InvalidNewOrderEpoch = 'INVALID_NEW_ORDER_EPOCH',
- CompleteFillFailed = 'COMPLETE_FILL_FAILED',
- NegativeSpreadRequired = 'NEGATIVE_SPREAD_REQUIRED',
- ReentrancyIllegal = 'REENTRANCY_ILLEGAL',
- InvalidTxHash = 'INVALID_TX_HASH',
- InvalidTxSignature = 'INVALID_TX_SIGNATURE',
- FailedExecution = 'FAILED_EXECUTION',
- AssetProxyMismatch = 'ASSET_PROXY_MISMATCH',
- AssetProxyIdMismatch = 'ASSET_PROXY_ID_MISMATCH',
- LengthGreaterThan0Required = 'LENGTH_GREATER_THAN_0_REQUIRED',
- Length0Required = 'LENGTH_0_REQUIRED',
- Length65Required = 'LENGTH_65_REQUIRED',
- InvalidAmount = 'INVALID_AMOUNT',
- TransferFailed = 'TRANSFER_FAILED',
- SenderNotAuthorized = 'SENDER_NOT_AUTHORIZED',
- TargetNotAuthorized = 'TARGET_NOT_AUTHORIZED',
- TargetAlreadyAuthorized = 'TARGET_ALREADY_AUTHORIZED',
- IndexOutOfBounds = 'INDEX_OUT_OF_BOUNDS',
- AuthorizedAddressMismatch = 'AUTHORIZED_ADDRESS_MISMATCH',
- OnlyContractOwner = 'ONLY_CONTRACT_OWNER',
- MakerNotWhitelisted = 'MAKER_NOT_WHITELISTED',
- TakerNotWhitelisted = 'TAKER_NOT_WHITELISTED',
- AssetProxyDoesNotExist = 'ASSET_PROXY_DOES_NOT_EXIST',
- LibBytesGreaterThanZeroLengthRequired = 'GREATER_THAN_ZERO_LENGTH_REQUIRED',
- LibBytesGreaterOrEqualTo4LengthRequired = 'GREATER_OR_EQUAL_TO_4_LENGTH_REQUIRED',
- LibBytesGreaterOrEqualTo20LengthRequired = 'GREATER_OR_EQUAL_TO_20_LENGTH_REQUIRED',
- LibBytesGreaterOrEqualTo32LengthRequired = 'GREATER_OR_EQUAL_TO_32_LENGTH_REQUIRED',
- LibBytesGreaterOrEqualToNestedBytesLengthRequired = 'GREATER_OR_EQUAL_TO_NESTED_BYTES_LENGTH_REQUIRED',
- LibBytesGreaterOrEqualToSourceBytesLengthRequired = 'GREATER_OR_EQUAL_TO_SOURCE_BYTES_LENGTH_REQUIRED',
- Erc20InsufficientBalance = 'ERC20_INSUFFICIENT_BALANCE',
- Erc20InsufficientAllowance = 'ERC20_INSUFFICIENT_ALLOWANCE',
-}