"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PriceFeed = void 0;
const baseAdapter_1 = require("./baseAdapter");
class PriceFeed extends baseAdapter_1.BaseHTTPAdapter {
    prices;
    constructor(prices = {}) {
        super("Default Adapter", "127.0.0.1", {});
        this.prices = prices;
    }
    async getPriceByAddress(address, currency) {
        const [price] = await this.getPricesByAddress([address], currency);
        return price;
    }
    getPricesByAddress(addresses, currency) {
        return Promise.resolve(addresses.map((address) => {
            return {
                address,
                price: this.prices[currency]?.[address] ?? 0,
                timestamp: 0,
            };
        }));
    }
}
exports.PriceFeed = PriceFeed;
//# sourceMappingURL=default.js.map