@gearbox-protocol/deploy-tools 4.22.1 → 4.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +10 -9
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -356538,7 +356538,6 @@ var ProviderBase = class {
|
|
|
356538
356538
|
if (!(url.includes("localhost") || url.includes("127.0.0.1") || url.includes("host.docker.internal"))) {
|
|
356539
356539
|
url = new URL(url).host;
|
|
356540
356540
|
}
|
|
356541
|
-
this.logger.debug(`initializing with rpc url ${url}`);
|
|
356542
356541
|
this.#network = await (0, import_sdk_gov2.detectNetwork)(this.#provider);
|
|
356543
356542
|
this.#chainId = import_sdk_gov2.CHAINS[this.#network];
|
|
356544
356543
|
this.#service = new import_api_kit.default.default({
|
|
@@ -356586,7 +356585,7 @@ var ProviderBase = class {
|
|
|
356586
356585
|
}
|
|
356587
356586
|
}
|
|
356588
356587
|
this.#initialized = true;
|
|
356589
|
-
this.logger.info(`initialized with network ${this.#network} and chain id ${this.#chainId}`);
|
|
356588
|
+
this.logger.info(`initialized with rpc ${url}, network ${this.#network} and chain id ${this.#chainId}`);
|
|
356590
356589
|
if (this.#overrides) {
|
|
356591
356590
|
const overridesStr = Object.entries(this.#overrides).map(([k, v]) => `${k}=${v}`).join(", ");
|
|
356592
356591
|
this.logger.info(`overrides: ${overridesStr}`);
|
|
@@ -357809,7 +357808,7 @@ var CreditManagerV1Visitor = class extends AbstractVisitor {
|
|
|
357809
357808
|
const { address, lastVisitBlock, immutableState } = entry;
|
|
357810
357809
|
const contract = ICreditManager__factory.connect(address, provider);
|
|
357811
357810
|
entry.immutableState.pool = await contract.poolService();
|
|
357812
|
-
const events = await contract.queryFilter(contract.filters.OpenCreditAccount(), lastVisitBlock ? lastVisitBlock + 1 :
|
|
357811
|
+
const events = await contract.queryFilter(contract.filters.OpenCreditAccount(), lastVisitBlock ? lastVisitBlock + 1 : FIRST_GEARBOX_BLOCK, block);
|
|
357813
357812
|
const result = [];
|
|
357814
357813
|
for (const evt of events) {
|
|
357815
357814
|
const { creditAccount } = evt.args;
|
|
@@ -357841,7 +357840,7 @@ var CreditManagerV2Visitor = class extends AbstractVisitor {
|
|
|
357841
357840
|
const { address, lastVisitBlock, immutableState } = entry;
|
|
357842
357841
|
const contract = ICreditManagerV2__factory.connect(address, provider);
|
|
357843
357842
|
entry.immutableState.pool = await contract.poolService();
|
|
357844
|
-
const events = await contract.queryFilter(contract.filters.NewConfigurator(), lastVisitBlock ? lastVisitBlock + 1 :
|
|
357843
|
+
const events = await contract.queryFilter(contract.filters.NewConfigurator(), lastVisitBlock ? lastVisitBlock + 1 : FIRST_GEARBOX_BLOCK, block);
|
|
357845
357844
|
const result = [];
|
|
357846
357845
|
for (const evt of events) {
|
|
357847
357846
|
const { newConfigurator } = evt.args;
|
|
@@ -357869,7 +357868,7 @@ var CreditManagerV3Visitor = class extends AbstractVisitor {
|
|
|
357869
357868
|
const [pool, name] = await Promise.all([contract.pool(), contract.name()]);
|
|
357870
357869
|
entry.name = `Credit Manager V${version4} ${name}`;
|
|
357871
357870
|
entry.immutableState.pool = pool;
|
|
357872
|
-
const events = await contract.queryFilter(contract.filters.SetCreditConfigurator(), lastVisitBlock ? lastVisitBlock + 1 :
|
|
357871
|
+
const events = await contract.queryFilter(contract.filters.SetCreditConfigurator(), lastVisitBlock ? lastVisitBlock + 1 : FIRST_GEARBOX_BLOCK, block);
|
|
357873
357872
|
const result = [];
|
|
357874
357873
|
for (const evt of events) {
|
|
357875
357874
|
const { newConfigurator } = evt.args;
|
|
@@ -357929,7 +357928,7 @@ var PoolQuotaKeeperV3Visitor = class extends AbstractVisitor {
|
|
|
357929
357928
|
const entry = _entry;
|
|
357930
357929
|
const { address, lastVisitBlock, immutableState } = entry;
|
|
357931
357930
|
const contract = IPoolQuotaKeeperV3__factory.connect(address, provider);
|
|
357932
|
-
const events = await contract.queryFilter(contract.filters.SetGauge(), lastVisitBlock ? lastVisitBlock + 1 :
|
|
357931
|
+
const events = await contract.queryFilter(contract.filters.SetGauge(), lastVisitBlock ? lastVisitBlock + 1 : FIRST_GEARBOX_BLOCK, block);
|
|
357933
357932
|
const result = [];
|
|
357934
357933
|
for (const evt of events) {
|
|
357935
357934
|
const { newGauge } = evt.args;
|
|
@@ -357952,7 +357951,7 @@ var PoolQuotaKeeperV3Visitor = class extends AbstractVisitor {
|
|
|
357952
357951
|
var PoolV1Visitor = class extends AbstractVisitor {
|
|
357953
357952
|
async _visit({ address, lastVisitBlock }, provider, block) {
|
|
357954
357953
|
const contract = IPoolService__factory.connect(address, provider);
|
|
357955
|
-
const events = await contract.queryFilter(contract.filters.NewInterestRateModel(), lastVisitBlock ? lastVisitBlock + 1 :
|
|
357954
|
+
const events = await contract.queryFilter(contract.filters.NewInterestRateModel(), lastVisitBlock ? lastVisitBlock + 1 : FIRST_GEARBOX_BLOCK, block);
|
|
357956
357955
|
const result = [];
|
|
357957
357956
|
for (const evt of events) {
|
|
357958
357957
|
const { newInterestRateModel } = evt.args;
|
|
@@ -358052,7 +358051,7 @@ async function loadPriceFeedTypes(provider, entries) {
|
|
|
358052
358051
|
var PriceOracleV2Visitor = class extends AbstractVisitor {
|
|
358053
358052
|
async _visit({ address, lastVisitBlock }, provider, block) {
|
|
358054
358053
|
const contract = IPriceOracleV2__factory.connect(address, provider);
|
|
358055
|
-
const events = await contract.queryFilter(contract.filters.NewPriceFeed(), lastVisitBlock ? lastVisitBlock + 1 :
|
|
358054
|
+
const events = await contract.queryFilter(contract.filters.NewPriceFeed(), lastVisitBlock ? lastVisitBlock + 1 : FIRST_GEARBOX_BLOCK, block);
|
|
358056
358055
|
const result = [];
|
|
358057
358056
|
for (const evt of events) {
|
|
358058
358057
|
const { priceFeed } = evt.args;
|
|
@@ -360756,6 +360755,7 @@ var CONTRACT_NAME_TO_TYPE = new Map([
|
|
|
360756
360755
|
["ContractsRegister", "CONTRACTS_REGISTER"],
|
|
360757
360756
|
["ControllerTimelockV3", "CONTROLLER_TIMELOCK_V3"],
|
|
360758
360757
|
["CreditManagerV3", "CREDIT_MANAGER_V3"],
|
|
360758
|
+
["CreditManagerV3_USDT", "CREDIT_MANAGER_V3"],
|
|
360759
360759
|
["CreditFacadeV3", "CREDIT_FACADE_V3"],
|
|
360760
360760
|
["CreditConfiguratorV3", "CREDIT_CONFIGURATOR_V3"],
|
|
360761
360761
|
["CurveCryptoLPPriceFeed", "PRICE_FEED_CURVE_CRYPTO_ORACLE"],
|
|
@@ -360772,6 +360772,7 @@ var CONTRACT_NAME_TO_TYPE = new Map([
|
|
|
360772
360772
|
["PartialLiquidationBotV3", "MULTIPAUSE"],
|
|
360773
360773
|
["PoolQuotaKeeperV3", "POOL_QUOTA_KEEPER_V3"],
|
|
360774
360774
|
["PoolV3", "POOL_V3"],
|
|
360775
|
+
["PoolV3_USDT", "POOL_V3"],
|
|
360775
360776
|
["PriceOracleV3", "PRICE_ORACLE_V3"],
|
|
360776
360777
|
["RouterV3", "ROUTER"],
|
|
360777
360778
|
["ZapperRegister", "ZAPPER_REGISTER"],
|
|
@@ -366140,7 +366141,7 @@ function getRenderer(opts) {
|
|
|
366140
366141
|
}
|
|
366141
366142
|
|
|
366142
366143
|
// package.json
|
|
366143
|
-
var version3 = "4.22.
|
|
366144
|
+
var version3 = "4.22.4";
|
|
366144
366145
|
|
|
366145
366146
|
// src/version.ts
|
|
366146
366147
|
var version_default = version3;
|