@gearbox-protocol/deploy-tools 5.21.2 → 5.21.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 +51 -30
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -378650,9 +378650,9 @@ var tickerInfoTokensByNetwork = {
|
|
|
378650
378650
|
PT_beraSTONE_10APR2025: [
|
|
378651
378651
|
{
|
|
378652
378652
|
symbol: "beraSTONE/ETH",
|
|
378653
|
-
dataId: "
|
|
378653
|
+
dataId: "beraSTONE_FUNDAMENTAL",
|
|
378654
378654
|
address: "0x692072eE081c9Ded28d2CfD27513E578d895FD0d",
|
|
378655
|
-
priceFeed: "
|
|
378655
|
+
priceFeed: "0xD35f2Fe7cc74e143F3f526c6e2c399fE58e31Cf1",
|
|
378656
378656
|
reserve: false
|
|
378657
378657
|
}
|
|
378658
378658
|
],
|
|
@@ -385520,7 +385520,7 @@ var PriceFeedRegister = class extends SDKConstruct {
|
|
|
385520
385520
|
return new Proxy(this.create(data), {
|
|
385521
385521
|
get(target, prop) {
|
|
385522
385522
|
if (prop === "updatableDependencies") {
|
|
385523
|
-
return () => [];
|
|
385523
|
+
return () => [target];
|
|
385524
385524
|
}
|
|
385525
385525
|
return target[prop];
|
|
385526
385526
|
}
|
|
@@ -385749,20 +385749,24 @@ var PriceOracleBaseContract = class extends BaseContract {
|
|
|
385749
385749
|
const price = node?.answer?.price;
|
|
385750
385750
|
if (reserve) {
|
|
385751
385751
|
this.reservePriceFeeds.upsert(token, ref);
|
|
385752
|
-
if (price) {
|
|
385752
|
+
if (price !== void 0) {
|
|
385753
385753
|
this.reservePrices.upsert(token, price);
|
|
385754
|
-
}
|
|
385754
|
+
}
|
|
385755
|
+
if (!price) {
|
|
385755
385756
|
this.logger?.warn(
|
|
385756
|
-
|
|
385757
|
+
node ?? {},
|
|
385758
|
+
`answer not found for reserve price feed ${this.labelAddress(priceFeed)}`
|
|
385757
385759
|
);
|
|
385758
385760
|
}
|
|
385759
385761
|
} else {
|
|
385760
385762
|
this.mainPriceFeeds.upsert(token, ref);
|
|
385761
|
-
if (price) {
|
|
385763
|
+
if (price !== void 0) {
|
|
385762
385764
|
this.mainPrices.upsert(token, price);
|
|
385763
|
-
}
|
|
385765
|
+
}
|
|
385766
|
+
if (!price) {
|
|
385764
385767
|
this.logger?.warn(
|
|
385765
|
-
|
|
385768
|
+
node ?? {},
|
|
385769
|
+
`answer not found for main price feed ${this.labelAddress(priceFeed)}`
|
|
385766
385770
|
);
|
|
385767
385771
|
}
|
|
385768
385772
|
}
|
|
@@ -389805,17 +389809,24 @@ var GearboxSDK = class _GearboxSDK {
|
|
|
389805
389809
|
} catch (e) {
|
|
389806
389810
|
this.logger?.warn("Router not found", e);
|
|
389807
389811
|
}
|
|
389808
|
-
|
|
389809
|
-
|
|
389810
|
-
|
|
389811
|
-
|
|
389812
|
-
|
|
389813
|
-
|
|
389814
|
-
} catch (e) {
|
|
389815
|
-
this.logger?.error(e, `failed to attach plugin ${name}`);
|
|
389812
|
+
const pluginsList = TypedObjectUtils.entries(this.plugins);
|
|
389813
|
+
const pluginResponse = await Promise.allSettled(
|
|
389814
|
+
pluginsList.map(([name, plugin]) => {
|
|
389815
|
+
if (plugin.attach) {
|
|
389816
|
+
this.logger?.debug(`attaching plugin ${name}`);
|
|
389817
|
+
return plugin.attach();
|
|
389816
389818
|
}
|
|
389819
|
+
return void 0;
|
|
389820
|
+
})
|
|
389821
|
+
);
|
|
389822
|
+
pluginResponse.forEach((r, i) => {
|
|
389823
|
+
const [name, plugin] = pluginsList[i];
|
|
389824
|
+
if (plugin.attach && r.status === "fulfilled") {
|
|
389825
|
+
this.logger?.debug(`attached plugin ${name}`);
|
|
389826
|
+
} else if (plugin.attach && r.status === "rejected") {
|
|
389827
|
+
this.logger?.error(r.reason, `failed to attach plugin ${name}`);
|
|
389817
389828
|
}
|
|
389818
|
-
}
|
|
389829
|
+
});
|
|
389819
389830
|
this.logger?.info(`attach time: ${Date.now() - time} ms`);
|
|
389820
389831
|
return this;
|
|
389821
389832
|
}
|
|
@@ -389937,17 +389948,24 @@ var GearboxSDK = class _GearboxSDK {
|
|
|
389937
389948
|
this.#currentBlock = blockNumber;
|
|
389938
389949
|
this.#timestamp = timestamp;
|
|
389939
389950
|
await this.#hooks.triggerHooks("syncState", { blockNumber, timestamp });
|
|
389940
|
-
|
|
389941
|
-
|
|
389942
|
-
|
|
389943
|
-
|
|
389944
|
-
await plugin.syncState();
|
|
389951
|
+
const pluginsList = TypedObjectUtils.entries(this.plugins);
|
|
389952
|
+
const pluginResponse = await Promise.allSettled(
|
|
389953
|
+
pluginsList.map(([name, plugin]) => {
|
|
389954
|
+
if (plugin.attach) {
|
|
389945
389955
|
this.logger?.debug(`syncing plugin ${name}`);
|
|
389946
|
-
|
|
389947
|
-
this.logger?.error(e, `failed to sync plugin ${name}`);
|
|
389956
|
+
return plugin.attach();
|
|
389948
389957
|
}
|
|
389958
|
+
return void 0;
|
|
389959
|
+
})
|
|
389960
|
+
);
|
|
389961
|
+
pluginResponse.forEach((r, i) => {
|
|
389962
|
+
const [name, plugin] = pluginsList[i];
|
|
389963
|
+
if (plugin.attach && r.status === "fulfilled") {
|
|
389964
|
+
this.logger?.debug(`synced plugin ${name}`);
|
|
389965
|
+
} else if (plugin.attach && r.status === "rejected") {
|
|
389966
|
+
this.logger?.error(r.reason, `failed to sync plugin ${name}`);
|
|
389949
389967
|
}
|
|
389950
|
-
}
|
|
389968
|
+
});
|
|
389951
389969
|
this.#syncing = false;
|
|
389952
389970
|
this.logger?.debug(`synced state to block ${blockNumber}`);
|
|
389953
389971
|
}
|
|
@@ -419013,7 +419031,7 @@ function getRenderer(opts) {
|
|
|
419013
419031
|
var package_default = {
|
|
419014
419032
|
name: "@gearbox-protocol/deploy-tools",
|
|
419015
419033
|
description: "Gearbox deploy tools",
|
|
419016
|
-
version: "5.21.
|
|
419034
|
+
version: "5.21.4",
|
|
419017
419035
|
homepage: "https://gearbox.fi",
|
|
419018
419036
|
keywords: [
|
|
419019
419037
|
"gearbox"
|
|
@@ -419056,7 +419074,7 @@ var package_default = {
|
|
|
419056
419074
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
419057
419075
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
419058
419076
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
419059
|
-
"@gearbox-protocol/sdk": "3.0.0-vfour.
|
|
419077
|
+
"@gearbox-protocol/sdk": "3.0.0-vfour.318",
|
|
419060
419078
|
"@gearbox-protocol/sdk-gov": "^2.36.6",
|
|
419061
419079
|
"@types/lodash-es": "^4.17.12",
|
|
419062
419080
|
"@types/node": "^22.13.10",
|
|
@@ -419422,12 +419440,14 @@ var abi48 = iPartialLiquidationBotV300Abi;
|
|
|
419422
419440
|
var PartialLiquidationBotV300Contract = class extends BaseContract {
|
|
419423
419441
|
requiredPermissions;
|
|
419424
419442
|
botType;
|
|
419425
|
-
|
|
419443
|
+
marketConfigurator;
|
|
419444
|
+
constructor(sdk, args, params, type, marketConfigurator) {
|
|
419426
419445
|
super(sdk, {
|
|
419427
419446
|
abi: abi48,
|
|
419428
419447
|
...args.baseParams,
|
|
419429
419448
|
name: `PartialLiquidationBotV300 (${type})`
|
|
419430
419449
|
});
|
|
419450
|
+
this.marketConfigurator = marketConfigurator;
|
|
419431
419451
|
this.requiredPermissions = args.requiredPermissions;
|
|
419432
419452
|
Object.assign(this, params);
|
|
419433
419453
|
this.botType = type;
|
|
@@ -419540,7 +419560,8 @@ var BotsPlugin = class extends SDKConstruct {
|
|
|
419540
419560
|
this.sdk,
|
|
419541
419561
|
state,
|
|
419542
419562
|
params2,
|
|
419543
|
-
type
|
|
419563
|
+
type,
|
|
419564
|
+
mc
|
|
419544
419565
|
)
|
|
419545
419566
|
)
|
|
419546
419567
|
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/deploy-tools",
|
|
3
3
|
"description": "Gearbox deploy tools",
|
|
4
|
-
"version": "5.21.
|
|
4
|
+
"version": "5.21.4",
|
|
5
5
|
"homepage": "https://gearbox.fi",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"gearbox"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
45
45
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
46
46
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
47
|
-
"@gearbox-protocol/sdk": "3.0.0-vfour.
|
|
47
|
+
"@gearbox-protocol/sdk": "3.0.0-vfour.318",
|
|
48
48
|
"@gearbox-protocol/sdk-gov": "^2.36.6",
|
|
49
49
|
"@types/lodash-es": "^4.17.12",
|
|
50
50
|
"@types/node": "^22.13.10",
|