"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.get1967Upgrades = get1967Upgrades;
const utils_1 = require("../../utils");
async function get1967Upgrades(contract, startBlock, endBlock) {
    const from = startBlock ?? 0;
    const to = endBlock ?? (await contract.provider.getBlockNumber());
    const events = await (0, utils_1.paginatedEventQuery)(contract, contract.filters.Upgraded(), { from, to });
    return events.map(({ blockNumber }) => blockNumber);
}
//# sourceMappingURL=UpgradeUtils.js.map