@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.
package/dist/cjs/sdk/index.cjs
CHANGED
|
@@ -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 ??
|
|
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 ${
|
|
21734
|
+
`Got ${this.mainPriceFeeds.size} main and ${this.reservePriceFeeds.size} reserve price feeds`
|
|
21732
21735
|
);
|
|
21733
21736
|
}
|
|
21734
21737
|
#labelPriceFeed(address, usage, token) {
|
package/dist/cjs/sdk/index.d.ts
CHANGED
|
@@ -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
|
|
package/dist/esm/sdk/index.d.mts
CHANGED
|
@@ -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
|
|
package/dist/esm/sdk/index.mjs
CHANGED
|
@@ -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 ??
|
|
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 ${
|
|
21732
|
+
`Got ${this.mainPriceFeeds.size} main and ${this.reservePriceFeeds.size} reserve price feeds`
|
|
21730
21733
|
);
|
|
21731
21734
|
}
|
|
21732
21735
|
#labelPriceFeed(address, usage, token) {
|