@gearbox-protocol/deploy-tools 5.24.23 → 5.24.24

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.
Files changed (2) hide show
  1. package/dist/index.mjs +19 -9
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -382868,18 +382868,28 @@ async function simulateWithPriceUpdates(client, parameters) {
382868
382868
  batchSize: 0
382869
382869
  // we cannot have price updates and compressor request in different batches
382870
382870
  });
382871
+ let hasError = false;
382872
+ let mustThrow = false;
382871
382873
  for (let i = 0; i < resp.length; i++) {
382872
382874
  if (resp[i].status === "failure") {
382875
+ hasError = true;
382873
382876
  if (i > priceUpdates.length || i > 0 && strictPrices) {
382874
- throw getSimulateWithPriceUpdatesError(
382875
- void 0,
382876
- priceUpdates,
382877
- restContracts,
382878
- resp
382879
- );
382877
+ mustThrow = true;
382880
382878
  }
382881
382879
  }
382882
382880
  }
382881
+ if (hasError) {
382882
+ const err = getSimulateWithPriceUpdatesError(
382883
+ void 0,
382884
+ priceUpdates,
382885
+ restContracts,
382886
+ resp
382887
+ );
382888
+ if (mustThrow) {
382889
+ throw err;
382890
+ }
382891
+ console.warn(err);
382892
+ }
382883
382893
  const restResults = resp.slice(priceUpdates.length + 1).map((r) => r.result);
382884
382894
  return restResults;
382885
382895
  } catch (e) {
@@ -382925,7 +382935,7 @@ function getSimulateWithPriceUpdatesError(cause, priceUpdates, calls, results) {
382925
382935
  const callsResults = results.slice(1 + priceUpdates.length);
382926
382936
  const prettyPriceUpdates = priceUpdates.map((p, i) => {
382927
382937
  const result = priceUpdatesResults[i];
382928
- let tsValid = timestamp ? p.validateTimestamp(timestamp) : "";
382938
+ let tsValid = timestamp ? p.validateTimestamp(timestamp) : "missing";
382929
382939
  tsValid = tsValid === "valid" ? "" : `[timestamp ${tsValid}]`;
382930
382940
  return [extractCallError(result), p.pretty, tsValid].filter(Boolean).join(" ");
382931
382941
  });
@@ -421731,7 +421741,7 @@ function getRenderer(opts) {
421731
421741
  var package_default = {
421732
421742
  name: "@gearbox-protocol/deploy-tools",
421733
421743
  description: "Gearbox deploy tools",
421734
- version: "5.24.23",
421744
+ version: "5.24.24",
421735
421745
  homepage: "https://gearbox.fi",
421736
421746
  keywords: [
421737
421747
  "gearbox"
@@ -421774,7 +421784,7 @@ var package_default = {
421774
421784
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
421775
421785
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
421776
421786
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
421777
- "@gearbox-protocol/sdk": "3.0.0-vfour.352",
421787
+ "@gearbox-protocol/sdk": "3.0.0-vfour.353",
421778
421788
  "@gearbox-protocol/sdk-gov": "^2.36.6",
421779
421789
  "@types/lodash-es": "^4.17.12",
421780
421790
  "@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.23",
4
+ "version": "5.24.24",
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.352",
47
+ "@gearbox-protocol/sdk": "3.0.0-vfour.353",
48
48
  "@gearbox-protocol/sdk-gov": "^2.36.6",
49
49
  "@types/lodash-es": "^4.17.12",
50
50
  "@types/node": "^22.13.14",