@gearbox-protocol/sdk 3.0.0-vfour.164 → 3.0.0-vfour.165

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.
@@ -58971,7 +58971,7 @@ var RedstoneUpdater = class extends SDKConstruct {
58971
58971
  tx: priceFeed.createRawTx({
58972
58972
  functionName: "updatePrice",
58973
58973
  args: [data],
58974
- description: `updating price for ${dataFeedId} [${priceFeed.address}]`
58974
+ description: `updating price for ${dataFeedId} [${this.sdk.provider.addressLabels.get(priceFeed.address)}]`
58975
58975
  }),
58976
58976
  timestamp
58977
58977
  });
@@ -59444,9 +59444,12 @@ var PriceOracleBaseContract = class extends BaseContract {
59444
59444
  }
59445
59445
  const { txs } = updates;
59446
59446
  for (const tx of txs) {
59447
- const { to: priceFeed, callData } = tx;
59447
+ const { to: priceFeed, callData, description } = tx;
59448
59448
  const [token, reserve] = this.findTokenForPriceFeed(priceFeed);
59449
59449
  if (!token) {
59450
+ this.logger?.debug(
59451
+ `skipping onDemandPriceUpdate ${description}): token not found for price feed ${priceFeed} in oracle ${this.address}`
59452
+ );
59450
59453
  continue;
59451
59454
  }
59452
59455
  const { args } = viem.decodeFunctionData({
@@ -59461,6 +59464,9 @@ var PriceOracleBaseContract = class extends BaseContract {
59461
59464
  data
59462
59465
  });
59463
59466
  }
59467
+ this.logger?.debug(
59468
+ `got ${result.length} onDemandPriceUpdates from ${txs.length} txs`
59469
+ );
59464
59470
  return result;
59465
59471
  }
59466
59472
  /**
@@ -58965,7 +58965,7 @@ var RedstoneUpdater = class extends SDKConstruct {
58965
58965
  tx: priceFeed.createRawTx({
58966
58966
  functionName: "updatePrice",
58967
58967
  args: [data],
58968
- description: `updating price for ${dataFeedId} [${priceFeed.address}]`
58968
+ description: `updating price for ${dataFeedId} [${this.sdk.provider.addressLabels.get(priceFeed.address)}]`
58969
58969
  }),
58970
58970
  timestamp
58971
58971
  });
@@ -59438,9 +59438,12 @@ var PriceOracleBaseContract = class extends BaseContract {
59438
59438
  }
59439
59439
  const { txs } = updates;
59440
59440
  for (const tx of txs) {
59441
- const { to: priceFeed, callData } = tx;
59441
+ const { to: priceFeed, callData, description } = tx;
59442
59442
  const [token, reserve] = this.findTokenForPriceFeed(priceFeed);
59443
59443
  if (!token) {
59444
+ this.logger?.debug(
59445
+ `skipping onDemandPriceUpdate ${description}): token not found for price feed ${priceFeed} in oracle ${this.address}`
59446
+ );
59444
59447
  continue;
59445
59448
  }
59446
59449
  const { args } = decodeFunctionData({
@@ -59455,6 +59458,9 @@ var PriceOracleBaseContract = class extends BaseContract {
59455
59458
  data
59456
59459
  });
59457
59460
  }
59461
+ this.logger?.debug(
59462
+ `got ${result.length} onDemandPriceUpdates from ${txs.length} txs`
59463
+ );
59458
59464
  return result;
59459
59465
  }
59460
59466
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-vfour.164",
3
+ "version": "3.0.0-vfour.165",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.cjs",