@gearbox-protocol/sdk 3.0.0-vfour.69 → 3.0.0-vfour.70

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.
@@ -19297,6 +19297,9 @@ var AddressMap = class {
19297
19297
  asRecord() {
19298
19298
  return Object.fromEntries(this.#map.entries());
19299
19299
  }
19300
+ get size() {
19301
+ return this.#map.size;
19302
+ }
19300
19303
  freeze() {
19301
19304
  this.#frozen = true;
19302
19305
  }
@@ -21408,7 +21411,7 @@ var PriceFeedRegister = class extends SDKConstruct {
21408
21411
  * @returns
21409
21412
  */
21410
21413
  async generatePriceFeedsUpdateTxs(priceFeeds) {
21411
- const priceFeedz = priceFeeds ?? Object.values(this.#feeds);
21414
+ const priceFeedz = priceFeeds ?? this.#feeds.values();
21412
21415
  const updateables = priceFeedz.flatMap((pf) => pf.updatableDependencies());
21413
21416
  const txs = [];
21414
21417
  const redstonePFs = [];
@@ -21728,7 +21731,7 @@ var PriceOracleContract = class extends BaseContract {
21728
21731
  this.#labelPriceFeed(priceFeed, reserve ? "Reserve" : "Main", token);
21729
21732
  });
21730
21733
  this.logger?.debug(
21731
- `Got ${Object.keys(this.mainPriceFeeds).length} main and ${Object.keys(this.reservePriceFeeds).length} reserve price feeds`
21734
+ `Got ${this.mainPriceFeeds.size} main and ${this.reservePriceFeeds.size} reserve price feeds`
21732
21735
  );
21733
21736
  }
21734
21737
  #labelPriceFeed(address, usage, token) {
@@ -22143,6 +22143,7 @@ declare class AddressMap<T> {
22143
22143
  values(): T[];
22144
22144
  keys(): Address[];
22145
22145
  asRecord(): Record<Address, T>;
22146
+ get size(): number;
22146
22147
  freeze(): void;
22147
22148
  }
22148
22149
 
@@ -22143,6 +22143,7 @@ declare class AddressMap<T> {
22143
22143
  values(): T[];
22144
22144
  keys(): Address[];
22145
22145
  asRecord(): Record<Address, T>;
22146
+ get size(): number;
22146
22147
  freeze(): void;
22147
22148
  }
22148
22149
 
@@ -19295,6 +19295,9 @@ var AddressMap = class {
19295
19295
  asRecord() {
19296
19296
  return Object.fromEntries(this.#map.entries());
19297
19297
  }
19298
+ get size() {
19299
+ return this.#map.size;
19300
+ }
19298
19301
  freeze() {
19299
19302
  this.#frozen = true;
19300
19303
  }
@@ -21406,7 +21409,7 @@ var PriceFeedRegister = class extends SDKConstruct {
21406
21409
  * @returns
21407
21410
  */
21408
21411
  async generatePriceFeedsUpdateTxs(priceFeeds) {
21409
- const priceFeedz = priceFeeds ?? Object.values(this.#feeds);
21412
+ const priceFeedz = priceFeeds ?? this.#feeds.values();
21410
21413
  const updateables = priceFeedz.flatMap((pf) => pf.updatableDependencies());
21411
21414
  const txs = [];
21412
21415
  const redstonePFs = [];
@@ -21726,7 +21729,7 @@ var PriceOracleContract = class extends BaseContract {
21726
21729
  this.#labelPriceFeed(priceFeed, reserve ? "Reserve" : "Main", token);
21727
21730
  });
21728
21731
  this.logger?.debug(
21729
- `Got ${Object.keys(this.mainPriceFeeds).length} main and ${Object.keys(this.reservePriceFeeds).length} reserve price feeds`
21732
+ `Got ${this.mainPriceFeeds.size} main and ${this.reservePriceFeeds.size} reserve price feeds`
21730
21733
  );
21731
21734
  }
21732
21735
  #labelPriceFeed(address, usage, token) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-vfour.69",
3
+ "version": "3.0.0-vfour.70",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.cjs",