@gearbox-protocol/deploy-tools 5.21.1 → 5.21.3
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 +41 -24
- 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
|
}
|
|
@@ -389805,17 +389805,24 @@ var GearboxSDK = class _GearboxSDK {
|
|
|
389805
389805
|
} catch (e) {
|
|
389806
389806
|
this.logger?.warn("Router not found", e);
|
|
389807
389807
|
}
|
|
389808
|
-
|
|
389809
|
-
|
|
389810
|
-
|
|
389811
|
-
|
|
389812
|
-
|
|
389813
|
-
|
|
389814
|
-
} catch (e) {
|
|
389815
|
-
this.logger?.error(e, `failed to attach plugin ${name}`);
|
|
389808
|
+
const pluginsList = TypedObjectUtils.entries(this.plugins);
|
|
389809
|
+
const pluginResponse = await Promise.allSettled(
|
|
389810
|
+
pluginsList.map(([name, plugin]) => {
|
|
389811
|
+
if (plugin.attach) {
|
|
389812
|
+
this.logger?.debug(`attaching plugin ${name}`);
|
|
389813
|
+
return plugin.attach();
|
|
389816
389814
|
}
|
|
389815
|
+
return void 0;
|
|
389816
|
+
})
|
|
389817
|
+
);
|
|
389818
|
+
pluginResponse.forEach((r, i) => {
|
|
389819
|
+
const [name, plugin] = pluginsList[i];
|
|
389820
|
+
if (plugin.attach && r.status === "fulfilled") {
|
|
389821
|
+
this.logger?.debug(`attached plugin ${name}`);
|
|
389822
|
+
} else if (plugin.attach && r.status === "rejected") {
|
|
389823
|
+
this.logger?.error(r.reason, `failed to attach plugin ${name}`);
|
|
389817
389824
|
}
|
|
389818
|
-
}
|
|
389825
|
+
});
|
|
389819
389826
|
this.logger?.info(`attach time: ${Date.now() - time} ms`);
|
|
389820
389827
|
return this;
|
|
389821
389828
|
}
|
|
@@ -389937,17 +389944,24 @@ var GearboxSDK = class _GearboxSDK {
|
|
|
389937
389944
|
this.#currentBlock = blockNumber;
|
|
389938
389945
|
this.#timestamp = timestamp;
|
|
389939
389946
|
await this.#hooks.triggerHooks("syncState", { blockNumber, timestamp });
|
|
389940
|
-
|
|
389941
|
-
|
|
389942
|
-
|
|
389943
|
-
|
|
389944
|
-
await plugin.syncState();
|
|
389947
|
+
const pluginsList = TypedObjectUtils.entries(this.plugins);
|
|
389948
|
+
const pluginResponse = await Promise.allSettled(
|
|
389949
|
+
pluginsList.map(([name, plugin]) => {
|
|
389950
|
+
if (plugin.attach) {
|
|
389945
389951
|
this.logger?.debug(`syncing plugin ${name}`);
|
|
389946
|
-
|
|
389947
|
-
this.logger?.error(e, `failed to sync plugin ${name}`);
|
|
389952
|
+
return plugin.attach();
|
|
389948
389953
|
}
|
|
389954
|
+
return void 0;
|
|
389955
|
+
})
|
|
389956
|
+
);
|
|
389957
|
+
pluginResponse.forEach((r, i) => {
|
|
389958
|
+
const [name, plugin] = pluginsList[i];
|
|
389959
|
+
if (plugin.attach && r.status === "fulfilled") {
|
|
389960
|
+
this.logger?.debug(`synced plugin ${name}`);
|
|
389961
|
+
} else if (plugin.attach && r.status === "rejected") {
|
|
389962
|
+
this.logger?.error(r.reason, `failed to sync plugin ${name}`);
|
|
389949
389963
|
}
|
|
389950
|
-
}
|
|
389964
|
+
});
|
|
389951
389965
|
this.#syncing = false;
|
|
389952
389966
|
this.logger?.debug(`synced state to block ${blockNumber}`);
|
|
389953
389967
|
}
|
|
@@ -419013,7 +419027,7 @@ function getRenderer(opts) {
|
|
|
419013
419027
|
var package_default = {
|
|
419014
419028
|
name: "@gearbox-protocol/deploy-tools",
|
|
419015
419029
|
description: "Gearbox deploy tools",
|
|
419016
|
-
version: "5.21.
|
|
419030
|
+
version: "5.21.3",
|
|
419017
419031
|
homepage: "https://gearbox.fi",
|
|
419018
419032
|
keywords: [
|
|
419019
419033
|
"gearbox"
|
|
@@ -419056,7 +419070,7 @@ var package_default = {
|
|
|
419056
419070
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
419057
419071
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
419058
419072
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
419059
|
-
"@gearbox-protocol/sdk": "3.0.0-vfour.
|
|
419073
|
+
"@gearbox-protocol/sdk": "3.0.0-vfour.317",
|
|
419060
419074
|
"@gearbox-protocol/sdk-gov": "^2.36.6",
|
|
419061
419075
|
"@types/lodash-es": "^4.17.12",
|
|
419062
419076
|
"@types/node": "^22.13.10",
|
|
@@ -419422,12 +419436,14 @@ var abi48 = iPartialLiquidationBotV300Abi;
|
|
|
419422
419436
|
var PartialLiquidationBotV300Contract = class extends BaseContract {
|
|
419423
419437
|
requiredPermissions;
|
|
419424
419438
|
botType;
|
|
419425
|
-
|
|
419439
|
+
marketConfigurator;
|
|
419440
|
+
constructor(sdk, args, params, type, marketConfigurator) {
|
|
419426
419441
|
super(sdk, {
|
|
419427
419442
|
abi: abi48,
|
|
419428
419443
|
...args.baseParams,
|
|
419429
419444
|
name: `PartialLiquidationBotV300 (${type})`
|
|
419430
419445
|
});
|
|
419446
|
+
this.marketConfigurator = marketConfigurator;
|
|
419431
419447
|
this.requiredPermissions = args.requiredPermissions;
|
|
419432
419448
|
Object.assign(this, params);
|
|
419433
419449
|
this.botType = type;
|
|
@@ -419540,7 +419556,8 @@ var BotsPlugin = class extends SDKConstruct {
|
|
|
419540
419556
|
this.sdk,
|
|
419541
419557
|
state,
|
|
419542
419558
|
params2,
|
|
419543
|
-
type
|
|
419559
|
+
type,
|
|
419560
|
+
mc
|
|
419544
419561
|
)
|
|
419545
419562
|
)
|
|
419546
419563
|
);
|
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.3",
|
|
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.317",
|
|
48
48
|
"@gearbox-protocol/sdk-gov": "^2.36.6",
|
|
49
49
|
"@types/lodash-es": "^4.17.12",
|
|
50
50
|
"@types/node": "^22.13.10",
|