Skip to content

Commit

Permalink
#11 Adjust import for facade
Browse files Browse the repository at this point in the history
  • Loading branch information
ceres3idoo committed Feb 18, 2019
1 parent 0217737 commit 5538706
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const commands = require('./commands')
const config = require('./config')
const facades = require('./facades')
const factories = require('./factories')
const helpers = require('./helpers')
const lib = require('./lib')
Expand All @@ -11,6 +12,7 @@ const validators = require('./validators')
module.exports = {
commands,
config,
facades,
factories,
helpers,
lib,
Expand Down
15 changes: 14 additions & 1 deletion src/utils/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class GasEstimationError extends BaseError {}
*/
class TransactionExecutionError extends BaseError {}


/**
* This error will be raised if there was an error during call.
*/
Expand All @@ -57,6 +56,18 @@ class TransactionCallError extends BaseError {}
*/
class TradingWalletNotFoundError extends BaseError {}

/**
* This error will be raised if the transaction is not mined.
*/
class TransactionNotMinedError extends BaseError {}

/**
* This error will be raised if the allowed quantity is lower than approved quantity
* during deposit token operation.
*/
class QuantityNotAllowedError extends BaseError {}


class MultiValidationError extends BaseError {
constructor(id, errors) {
super()
Expand All @@ -72,9 +83,11 @@ module.exports = {
MultiValidationError,
NonceError,
NotImplementedError,
QuantityNotAllowedError,
SignTransactionError,
SmartContractInterfaceError,
TradingWalletNotFoundError,
TransactionCallError,
TransactionExecutionError,
TransactionNotMinedError,
}

0 comments on commit 5538706

Please sign in to comment.