diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-23 00:36:15 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-23 00:36:15 +0800 |
commit | 0e7c254b938045f0c6e0a57c78bb1db8a23557b6 (patch) | |
tree | e32e823d1bb6116cad5d431f0297ea15aa3fc6ce /packages/contracts/src/utils/constants.ts | |
parent | ba14850c9a3f774169db1b67446618bb84daae54 (diff) | |
download | dexon-sol-tools-0e7c254b938045f0c6e0a57c78bb1db8a23557b6.tar dexon-sol-tools-0e7c254b938045f0c6e0a57c78bb1db8a23557b6.tar.gz dexon-sol-tools-0e7c254b938045f0c6e0a57c78bb1db8a23557b6.tar.bz2 dexon-sol-tools-0e7c254b938045f0c6e0a57c78bb1db8a23557b6.tar.lz dexon-sol-tools-0e7c254b938045f0c6e0a57c78bb1db8a23557b6.tar.xz dexon-sol-tools-0e7c254b938045f0c6e0a57c78bb1db8a23557b6.tar.zst dexon-sol-tools-0e7c254b938045f0c6e0a57c78bb1db8a23557b6.zip |
Move constants over to ContractLibError enum and update all tests
Diffstat (limited to 'packages/contracts/src/utils/constants.ts')
-rw-r--r-- | packages/contracts/src/utils/constants.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/packages/contracts/src/utils/constants.ts b/packages/contracts/src/utils/constants.ts index f21b8c7a0..2b2bd2425 100644 --- a/packages/contracts/src/utils/constants.ts +++ b/packages/contracts/src/utils/constants.ts @@ -19,19 +19,6 @@ const TESTRPC_PRIVATE_KEYS_STRINGS = [ export const constants = { INVALID_OPCODE: 'invalid opcode', REVERT: 'revert', - LIB_BYTES_GREATER_THAN_ZERO_LENGTH_REQUIRED: 'GREATER_THAN_ZERO_LENGTH_REQUIRED', - LIB_BYTES_GREATER_OR_EQUAL_TO_4_LENGTH_REQUIRED: 'GREATER_OR_EQUAL_TO_4_LENGTH_REQUIRED', - LIB_BYTES_GREATER_OR_EQUAL_TO_20_LENGTH_REQUIRED: 'GREATER_OR_EQUAL_TO_20_LENGTH_REQUIRED', - LIB_BYTES_GREATER_OR_EQUAL_TO_32_LENGTH_REQUIRED: 'GREATER_OR_EQUAL_TO_32_LENGTH_REQUIRED', - LIB_BYTES_GREATER_OR_EQUAL_TO_NESTED_BYTES_LENGTH_REQUIRED: 'GREATER_OR_EQUAL_TO_NESTED_BYTES_LENGTH_REQUIRED', - LIB_BYTES_GREATER_OR_EQUAL_TO_SOURCE_BYTES_LENGTH_REQUIRED: 'GREATER_OR_EQUAL_TO_SOURCE_BYTES_LENGTH_REQUIRED', - ERC20_INSUFFICIENT_BALANCE: 'Insufficient balance to complete transfer.', - ERC20_INSUFFICIENT_ALLOWANCE: 'Insufficient allowance to complete transfer.', - EXCHANGE_LENGTH_GREATER_THAN_0_REQUIRED: 'LENGTH_GREATER_THAN_0_REQUIRED', - EXCHANGE_SIGNATURE_UNSUPPORTED: 'SIGNATURE_UNSUPPORTED', - EXCHANGE_SIGNATURE_ILLEGAL: 'SIGNATURE_ILLEGAL', - EXCHANGE_LENGTH_0_REQUIRED: 'LENGTH_0_REQUIRED', - EXCHANGE_LENGTH_65_REQUIRED: 'LENGTH_65_REQUIRED', TESTRPC_NETWORK_ID: 50, // Note(albrow): In practice V8 and most other engines limit the minimum // interval for setInterval to 10ms. We still set it to 0 here in order to |