@gearbox-protocol/sdk 4.0.1 → 4.0.2
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.
|
@@ -404,7 +404,13 @@ class GearboxSDK {
|
|
|
404
404
|
return this.#timestamp;
|
|
405
405
|
}
|
|
406
406
|
get gear() {
|
|
407
|
-
|
|
407
|
+
try {
|
|
408
|
+
const g = this.addressProvider.getAddress(import_constants.AP_GEAR_TOKEN, import_constants.NO_VERSION);
|
|
409
|
+
return g;
|
|
410
|
+
} catch (e) {
|
|
411
|
+
this.logger?.warn(e);
|
|
412
|
+
return void 0;
|
|
413
|
+
}
|
|
408
414
|
}
|
|
409
415
|
get addressProvider() {
|
|
410
416
|
if (this.#addressProvider === void 0) {
|
|
@@ -404,7 +404,13 @@ class GearboxSDK {
|
|
|
404
404
|
return this.#timestamp;
|
|
405
405
|
}
|
|
406
406
|
get gear() {
|
|
407
|
-
|
|
407
|
+
try {
|
|
408
|
+
const g = this.addressProvider.getAddress(AP_GEAR_TOKEN, NO_VERSION);
|
|
409
|
+
return g;
|
|
410
|
+
} catch (e) {
|
|
411
|
+
this.logger?.warn(e);
|
|
412
|
+
return void 0;
|
|
413
|
+
}
|
|
408
414
|
}
|
|
409
415
|
get addressProvider() {
|
|
410
416
|
if (this.#addressProvider === void 0) {
|
|
@@ -145,7 +145,7 @@ export declare class GearboxSDK<Plugins extends PluginMap = {}> {
|
|
|
145
145
|
get provider(): Provider;
|
|
146
146
|
get currentBlock(): bigint;
|
|
147
147
|
get timestamp(): bigint;
|
|
148
|
-
get gear(): Address;
|
|
148
|
+
get gear(): Address | undefined;
|
|
149
149
|
get addressProvider(): IAddressProviderContract;
|
|
150
150
|
get botListContract(): BotListContract;
|
|
151
151
|
get gearStakingContract(): GearStakingContract;
|