@gearbox-protocol/sdk 3.0.0-vfour.224 → 3.0.0-vfour.225
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
|
@@ -64300,14 +64300,16 @@ var AbstractPriceFeedContract = class extends BaseContract {
|
|
|
64300
64300
|
#underlyingPriceFeeds;
|
|
64301
64301
|
#skipCheck;
|
|
64302
64302
|
hasLowerBoundCap = false;
|
|
64303
|
+
description;
|
|
64303
64304
|
constructor(sdk, args) {
|
|
64304
64305
|
super(sdk, {
|
|
64305
64306
|
abi: args.abi,
|
|
64306
64307
|
addr: args.baseParams.addr,
|
|
64307
|
-
name: args.name,
|
|
64308
|
+
name: args.name + (args.description ? ` ${args.description}` : ""),
|
|
64308
64309
|
contractType: args.baseParams.contractType,
|
|
64309
64310
|
version: args.baseParams.version
|
|
64310
64311
|
});
|
|
64312
|
+
this.description = args.description;
|
|
64311
64313
|
this.#decimals = args.decimals;
|
|
64312
64314
|
this.#updatable = args.updatable;
|
|
64313
64315
|
this.#skipCheck = args.skipCheck;
|
|
@@ -64354,6 +64356,7 @@ var AbstractPriceFeedContract = class extends BaseContract {
|
|
|
64354
64356
|
stateHuman(raw = true) {
|
|
64355
64357
|
return {
|
|
64356
64358
|
...super.stateHuman(raw),
|
|
64359
|
+
description: this.description,
|
|
64357
64360
|
contractType: this.priceFeedType,
|
|
64358
64361
|
skipCheck: this.skipCheck,
|
|
64359
64362
|
pricefeeds: this.underlyingPriceFeeds.map((f) => f.stateHuman(raw))
|
package/dist/cjs/sdk/index.d.ts
CHANGED
|
@@ -85034,6 +85034,7 @@ type PriceFeedConstructorArgs<abi extends Abi | readonly unknown[]> = PartialPri
|
|
|
85034
85034
|
declare abstract class AbstractPriceFeedContract<const abi extends Abi | readonly unknown[]> extends BaseContract<abi> implements IPriceFeedContract {
|
|
85035
85035
|
#private;
|
|
85036
85036
|
hasLowerBoundCap: boolean;
|
|
85037
|
+
readonly description?: string;
|
|
85037
85038
|
constructor(sdk: GearboxSDK, args: PriceFeedConstructorArgs<abi>);
|
|
85038
85039
|
get loaded(): boolean;
|
|
85039
85040
|
get decimals(): number;
|
|
@@ -91641,6 +91642,7 @@ interface CoreStateHuman {
|
|
|
91641
91642
|
}
|
|
91642
91643
|
type PriceFeedStateHuman = BoundedOracleStateHuman | AssetPriceFeedStateHuman | RedstonePriceFeedStateHuman | LPPriceFeedStateHuman | BalancerWeightedPriceFeedStateHuman;
|
|
91643
91644
|
interface BasePriceFeedStateHuman extends BaseContractStateHuman {
|
|
91645
|
+
description?: string;
|
|
91644
91646
|
stalenessPeriod: string;
|
|
91645
91647
|
skipCheck: boolean;
|
|
91646
91648
|
pricefeeds: PriceFeedStateHuman[];
|
package/dist/esm/sdk/index.d.mts
CHANGED
|
@@ -85034,6 +85034,7 @@ type PriceFeedConstructorArgs<abi extends Abi | readonly unknown[]> = PartialPri
|
|
|
85034
85034
|
declare abstract class AbstractPriceFeedContract<const abi extends Abi | readonly unknown[]> extends BaseContract<abi> implements IPriceFeedContract {
|
|
85035
85035
|
#private;
|
|
85036
85036
|
hasLowerBoundCap: boolean;
|
|
85037
|
+
readonly description?: string;
|
|
85037
85038
|
constructor(sdk: GearboxSDK, args: PriceFeedConstructorArgs<abi>);
|
|
85038
85039
|
get loaded(): boolean;
|
|
85039
85040
|
get decimals(): number;
|
|
@@ -91641,6 +91642,7 @@ interface CoreStateHuman {
|
|
|
91641
91642
|
}
|
|
91642
91643
|
type PriceFeedStateHuman = BoundedOracleStateHuman | AssetPriceFeedStateHuman | RedstonePriceFeedStateHuman | LPPriceFeedStateHuman | BalancerWeightedPriceFeedStateHuman;
|
|
91643
91644
|
interface BasePriceFeedStateHuman extends BaseContractStateHuman {
|
|
91645
|
+
description?: string;
|
|
91644
91646
|
stalenessPeriod: string;
|
|
91645
91647
|
skipCheck: boolean;
|
|
91646
91648
|
pricefeeds: PriceFeedStateHuman[];
|
package/dist/esm/sdk/index.mjs
CHANGED
|
@@ -64293,14 +64293,16 @@ var AbstractPriceFeedContract = class extends BaseContract {
|
|
|
64293
64293
|
#underlyingPriceFeeds;
|
|
64294
64294
|
#skipCheck;
|
|
64295
64295
|
hasLowerBoundCap = false;
|
|
64296
|
+
description;
|
|
64296
64297
|
constructor(sdk, args) {
|
|
64297
64298
|
super(sdk, {
|
|
64298
64299
|
abi: args.abi,
|
|
64299
64300
|
addr: args.baseParams.addr,
|
|
64300
|
-
name: args.name,
|
|
64301
|
+
name: args.name + (args.description ? ` ${args.description}` : ""),
|
|
64301
64302
|
contractType: args.baseParams.contractType,
|
|
64302
64303
|
version: args.baseParams.version
|
|
64303
64304
|
});
|
|
64305
|
+
this.description = args.description;
|
|
64304
64306
|
this.#decimals = args.decimals;
|
|
64305
64307
|
this.#updatable = args.updatable;
|
|
64306
64308
|
this.#skipCheck = args.skipCheck;
|
|
@@ -64347,6 +64349,7 @@ var AbstractPriceFeedContract = class extends BaseContract {
|
|
|
64347
64349
|
stateHuman(raw = true) {
|
|
64348
64350
|
return {
|
|
64349
64351
|
...super.stateHuman(raw),
|
|
64352
|
+
description: this.description,
|
|
64350
64353
|
contractType: this.priceFeedType,
|
|
64351
64354
|
skipCheck: this.skipCheck,
|
|
64352
64355
|
pricefeeds: this.underlyingPriceFeeds.map((f) => f.stateHuman(raw))
|