@gearbox-protocol/sdk 3.0.0-vfour.116 → 3.0.0-vfour.118
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
|
@@ -26819,8 +26819,8 @@ var AbstractLPPriceFeedContract = class _AbstractLPPriceFeedContract extends Abs
|
|
|
26819
26819
|
],
|
|
26820
26820
|
viem.hexToBytes(args.baseParams.serializedParams)
|
|
26821
26821
|
);
|
|
26822
|
-
this.
|
|
26823
|
-
this.
|
|
26822
|
+
this.lpToken = decoder[0];
|
|
26823
|
+
this.lpContract = decoder[1];
|
|
26824
26824
|
this.lowerBound = decoder[2];
|
|
26825
26825
|
this.upperBound = decoder[3];
|
|
26826
26826
|
}
|
|
@@ -27419,6 +27419,9 @@ var PriceFeedRegister = class extends SDKConstruct {
|
|
|
27419
27419
|
const updateables = priceFeeds ? priceFeeds.flatMap((pf) => pf.updatableDependencies()) : this.#feeds.values();
|
|
27420
27420
|
return this.#generatePriceFeedsUpdateTxs(updateables, logContext);
|
|
27421
27421
|
}
|
|
27422
|
+
has(address) {
|
|
27423
|
+
return this.#feeds.has(address);
|
|
27424
|
+
}
|
|
27422
27425
|
mustGet(address) {
|
|
27423
27426
|
return this.#feeds.mustGet(address);
|
|
27424
27427
|
}
|
package/dist/cjs/sdk/index.d.ts
CHANGED
|
@@ -25342,6 +25342,7 @@ declare class PriceFeedRegister extends SDKConstruct implements IHooks<PriceFeed
|
|
|
25342
25342
|
* @returns
|
|
25343
25343
|
*/
|
|
25344
25344
|
generatePriceFeedsUpdateTxs(priceFeeds?: IPriceFeedContract[], logContext?: Record<string, any>): Promise<UpdatePriceFeedsResult>;
|
|
25345
|
+
has(address: Address): boolean;
|
|
25345
25346
|
mustGet(address: Address): IPriceFeedContract;
|
|
25346
25347
|
getOrCreate(data: PriceFeedTreeNode): IPriceFeedContract;
|
|
25347
25348
|
/**
|
package/dist/esm/sdk/index.d.mts
CHANGED
|
@@ -25342,6 +25342,7 @@ declare class PriceFeedRegister extends SDKConstruct implements IHooks<PriceFeed
|
|
|
25342
25342
|
* @returns
|
|
25343
25343
|
*/
|
|
25344
25344
|
generatePriceFeedsUpdateTxs(priceFeeds?: IPriceFeedContract[], logContext?: Record<string, any>): Promise<UpdatePriceFeedsResult>;
|
|
25345
|
+
has(address: Address): boolean;
|
|
25345
25346
|
mustGet(address: Address): IPriceFeedContract;
|
|
25346
25347
|
getOrCreate(data: PriceFeedTreeNode): IPriceFeedContract;
|
|
25347
25348
|
/**
|
package/dist/esm/sdk/index.mjs
CHANGED
|
@@ -26817,8 +26817,8 @@ var AbstractLPPriceFeedContract = class _AbstractLPPriceFeedContract extends Abs
|
|
|
26817
26817
|
],
|
|
26818
26818
|
hexToBytes(args.baseParams.serializedParams)
|
|
26819
26819
|
);
|
|
26820
|
-
this.
|
|
26821
|
-
this.
|
|
26820
|
+
this.lpToken = decoder[0];
|
|
26821
|
+
this.lpContract = decoder[1];
|
|
26822
26822
|
this.lowerBound = decoder[2];
|
|
26823
26823
|
this.upperBound = decoder[3];
|
|
26824
26824
|
}
|
|
@@ -27417,6 +27417,9 @@ var PriceFeedRegister = class extends SDKConstruct {
|
|
|
27417
27417
|
const updateables = priceFeeds ? priceFeeds.flatMap((pf) => pf.updatableDependencies()) : this.#feeds.values();
|
|
27418
27418
|
return this.#generatePriceFeedsUpdateTxs(updateables, logContext);
|
|
27419
27419
|
}
|
|
27420
|
+
has(address) {
|
|
27421
|
+
return this.#feeds.has(address);
|
|
27422
|
+
}
|
|
27420
27423
|
mustGet(address) {
|
|
27421
27424
|
return this.#feeds.mustGet(address);
|
|
27422
27425
|
}
|