@gearbox-protocol/deploy-tools 5.24.21 → 5.24.23
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 +24 -14
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -363324,11 +363324,12 @@ var BLOCK_DURATION_BY_NETWORK = {
|
|
|
363324
363324
|
Base: 2.01,
|
|
363325
363325
|
Sonic: 0.91,
|
|
363326
363326
|
// New networks
|
|
363327
|
-
|
|
363328
|
-
|
|
363327
|
+
MegaETH: 0.01,
|
|
363328
|
+
// <10ms/block, on testnet
|
|
363329
363329
|
Monad: 1,
|
|
363330
|
-
|
|
363331
|
-
|
|
363330
|
+
// on testnet
|
|
363331
|
+
Berachain: 1.9,
|
|
363332
|
+
Avalanche: 1.7
|
|
363332
363333
|
};
|
|
363333
363334
|
var RAMP_TIME = 30 * 24 * 60 * 60 * 1.2;
|
|
363334
363335
|
var RAMP_DURATION_BY_NETWORK = {
|
|
@@ -382830,7 +382831,12 @@ var multicallTimestampAbi = parseAbi([
|
|
|
382830
382831
|
]);
|
|
382831
382832
|
var updatePriceFeedAbi = [...iUpdatablePriceFeedAbi, ...errorAbis];
|
|
382832
382833
|
async function simulateWithPriceUpdates(client, parameters) {
|
|
382833
|
-
const {
|
|
382834
|
+
const {
|
|
382835
|
+
contracts: restContracts,
|
|
382836
|
+
priceUpdates,
|
|
382837
|
+
strictPrices = false,
|
|
382838
|
+
...rest
|
|
382839
|
+
} = parameters;
|
|
382834
382840
|
if (restContracts.length === 0) {
|
|
382835
382841
|
throw getSimulateWithPriceUpdatesError(
|
|
382836
382842
|
new BaseError2("no contracts calls provided"),
|
|
@@ -382862,13 +382868,17 @@ async function simulateWithPriceUpdates(client, parameters) {
|
|
|
382862
382868
|
batchSize: 0
|
|
382863
382869
|
// we cannot have price updates and compressor request in different batches
|
|
382864
382870
|
});
|
|
382865
|
-
|
|
382866
|
-
|
|
382867
|
-
|
|
382868
|
-
|
|
382869
|
-
|
|
382870
|
-
|
|
382871
|
-
|
|
382871
|
+
for (let i = 0; i < resp.length; i++) {
|
|
382872
|
+
if (resp[i].status === "failure") {
|
|
382873
|
+
if (i > priceUpdates.length || i > 0 && strictPrices) {
|
|
382874
|
+
throw getSimulateWithPriceUpdatesError(
|
|
382875
|
+
void 0,
|
|
382876
|
+
priceUpdates,
|
|
382877
|
+
restContracts,
|
|
382878
|
+
resp
|
|
382879
|
+
);
|
|
382880
|
+
}
|
|
382881
|
+
}
|
|
382872
382882
|
}
|
|
382873
382883
|
const restResults = resp.slice(priceUpdates.length + 1).map((r) => r.result);
|
|
382874
382884
|
return restResults;
|
|
@@ -421721,7 +421731,7 @@ function getRenderer(opts) {
|
|
|
421721
421731
|
var package_default = {
|
|
421722
421732
|
name: "@gearbox-protocol/deploy-tools",
|
|
421723
421733
|
description: "Gearbox deploy tools",
|
|
421724
|
-
version: "5.24.
|
|
421734
|
+
version: "5.24.23",
|
|
421725
421735
|
homepage: "https://gearbox.fi",
|
|
421726
421736
|
keywords: [
|
|
421727
421737
|
"gearbox"
|
|
@@ -421764,7 +421774,7 @@ var package_default = {
|
|
|
421764
421774
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
421765
421775
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
421766
421776
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
421767
|
-
"@gearbox-protocol/sdk": "3.0.0-vfour.
|
|
421777
|
+
"@gearbox-protocol/sdk": "3.0.0-vfour.352",
|
|
421768
421778
|
"@gearbox-protocol/sdk-gov": "^2.36.6",
|
|
421769
421779
|
"@types/lodash-es": "^4.17.12",
|
|
421770
421780
|
"@types/node": "^22.13.14",
|
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.24.
|
|
4
|
+
"version": "5.24.23",
|
|
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.352",
|
|
48
48
|
"@gearbox-protocol/sdk-gov": "^2.36.6",
|
|
49
49
|
"@types/lodash-es": "^4.17.12",
|
|
50
50
|
"@types/node": "^22.13.14",
|