"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BalanceController = void 0;
class BalanceController {
    getWalletBalancesForNetworkUseCase;
    getAllWalletBalancesUseCase;
    constructor(getWalletBalancesForNetworkUseCase, getAllWalletBalancesUseCase) {
        this.getWalletBalancesForNetworkUseCase = getWalletBalancesForNetworkUseCase;
        this.getAllWalletBalancesUseCase = getAllWalletBalancesUseCase;
    }
    getForNetwork = async (req, res, next) => {
        try {
            const balances = await this.getWalletBalancesForNetworkUseCase.execute(req.params.walletId, req.params.networkId);
            res.status(200).json({ success: true, data: balances });
        }
        catch (error) {
            next(error);
        }
    };
    getAll = async (req, res, next) => {
        try {
            const balances = await this.getAllWalletBalancesUseCase.execute(req.params.walletId);
            res.status(200).json({ success: true, data: balances });
        }
        catch (error) {
            next(error);
        }
    };
}
exports.BalanceController = BalanceController;
//# sourceMappingURL=balance.controller.js.map