"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
    return function (target, key) { decorator(target, key, paramIndex); }
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.BinanceSmartChainPancakeSwapPoolTokenFetcher = void 0;
const common_1 = require("@nestjs/common");
const app_toolkit_interface_1 = require("../../../app-toolkit/app-toolkit.interface");
const position_template_decorator_1 = require("../../../app-toolkit/decorators/position-template.decorator");
const uniswap_v2_default_pool_on_chain_template_token_fetcher_1 = require("../../../apps/uniswap-v2/common/uniswap-v2.default.pool.on-chain.template.token-fetcher");
const contracts_1 = require("../../../apps/uniswap-v2/contracts");
const pancakeswap_pool_cache_manager_1 = require("./pancakeswap.pool.cache-manager");
let BinanceSmartChainPancakeSwapPoolTokenFetcher = class BinanceSmartChainPancakeSwapPoolTokenFetcher extends uniswap_v2_default_pool_on_chain_template_token_fetcher_1.UniswapV2DefaultPoolOnChainTemplateTokenFetcher {
    constructor(appToolkit, contractFactory, pancakeswapPoolAddressCacheManager) {
        super(appToolkit, contractFactory);
        this.appToolkit = appToolkit;
        this.contractFactory = contractFactory;
        this.pancakeswapPoolAddressCacheManager = pancakeswapPoolAddressCacheManager;
        this.groupLabel = 'Pools';
        this.factoryAddress = '0x73feaa1ee314f8c655e354234017be2193c9e24e';
    }
    getAddresses() {
        return this.pancakeswapPoolAddressCacheManager.getPoolAddresses();
    }
};
BinanceSmartChainPancakeSwapPoolTokenFetcher = __decorate([
    (0, position_template_decorator_1.PositionTemplate)(),
    __param(0, (0, common_1.Inject)(app_toolkit_interface_1.APP_TOOLKIT)),
    __param(1, (0, common_1.Inject)(contracts_1.UniswapV2ContractFactory)),
    __param(2, (0, common_1.Inject)(pancakeswap_pool_cache_manager_1.BinanceSmartChainPancakeswapPoolAddressCacheManager)),
    __metadata("design:paramtypes", [Object, contracts_1.UniswapV2ContractFactory,
        pancakeswap_pool_cache_manager_1.BinanceSmartChainPancakeswapPoolAddressCacheManager])
], BinanceSmartChainPancakeSwapPoolTokenFetcher);
exports.BinanceSmartChainPancakeSwapPoolTokenFetcher = BinanceSmartChainPancakeSwapPoolTokenFetcher;
//# sourceMappingURL=pancakeswap.pool.token-fetcher.js.map