Skip to content

Commit

Permalink
#20 Add get trading wallet asset balance command to command list
Browse files Browse the repository at this point in the history
  • Loading branch information
andreafspeziale authored and ceres3idoo committed Feb 25, 2019
1 parent 030a6f9 commit 6dce67b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/commands/commandList.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ const GetAddressCommand = require('../commands/GetAddressCommand')
const GetAddressCommandValidator = require('../validators/GetAddressCommandValidator')
const GetAllowanceCommand = require('../commands/GetAllowanceCommand')
const GetAllowanceCommandValidator = require('../validators/GetAllowanceCommandValidator')

const GetTradingWalletBalanceCommand = require('../commands/GetBalanceCommand')
const GetTradingWalletBalanceCommandValidator = require('../validators/GetTradingWalletBalanceCommandValidator')

const logger = require('../logger')
const OrderSignCommand = require('../commands/OrderSignCommand')
const OrderSignCommandValidator = require('../validators/OrderSignCommandValidator')
Expand All @@ -24,6 +28,9 @@ const createWalletCommandValidator = new CreateWalletCommandValidator(logger)
const depositEthCommandValidator = new DepositEthCommandValidator(logger)
const getAddressCommandValidator = new GetAddressCommandValidator(logger)
const getAllowanceCommandValidator = new GetAllowanceCommandValidator(logger)

const getTradingWalletBalanceCommandValidator = new GetTradingWalletBalanceCommandValidator(logger)

const orderSignCommandValidator = new OrderSignCommandValidator(logger)
const withdrawCommandValidator = new WithdrawCommandValidator(logger)

Expand All @@ -42,6 +49,9 @@ const getAllowanceCommand = new GetAllowanceCommand(logger,
const createWalletCommand = new CreateWalletCommand(logger, getAllowanceCommandValidator,
createWalletCommandValidator, privateKeyService, privateKeyValidator)

const getTradingWalletBalanceCommand = new GetTradingWalletBalanceCommand(logger, tradingWalletService,
getTradingWalletBalanceCommandValidator, privateKeyService, privateKeyValidator)

const depositEthCommand = new DepositEthCommand(logger, tradingWalletService,
depositEthCommandValidator, privateKeyService, privateKeyValidator)

Expand All @@ -60,6 +70,7 @@ module.exports = {
depositEthCommand,
getAddressCommand,
getAllowanceCommand,
getTradingWalletBalanceCommand,
signCommand,
withdrawCommand,
}
2 changes: 2 additions & 0 deletions src/commands/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const commandList = require('./commandList')
const CreateWalletCommand = require('./CreateWalletCommand')
const DepositEthCommand = require('./DepositEthCommand')
const GetAddressCommand = require('./GetAddressCommand')
const GetTradingWalletBalanceCommand = require('./GetTradingWalletBalanceCommand')
const OrderSignCommand = require('./OrderSignCommand')

module.exports = {
Expand All @@ -13,5 +14,6 @@ module.exports = {
CreateWalletCommand,
DepositEthCommand,
GetAddressCommand,
GetTradingWalletBalanceCommand,
OrderSignCommand,
}

0 comments on commit 6dce67b

Please sign in to comment.