@gearbox-protocol/sdk 4.0.1 → 4.0.3
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) {
|
|
@@ -203,6 +203,9 @@ const chains = {
|
|
|
203
203
|
defaultMarketConfigurators: {
|
|
204
204
|
"0x5BCF14d8470e1a6110916371aacC8E1C947A7D9d": "Chaos Labs"
|
|
205
205
|
},
|
|
206
|
+
testMarketConfigurators: {
|
|
207
|
+
"0x537F5F2032e75Fa586E48ad635DF6f79c06205b9": "Chaos Labs"
|
|
208
|
+
},
|
|
206
209
|
isPublic: false,
|
|
207
210
|
wellKnownToken: {
|
|
208
211
|
address: "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
|
|
@@ -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) {
|
|
@@ -186,6 +186,9 @@ const chains = {
|
|
|
186
186
|
defaultMarketConfigurators: {
|
|
187
187
|
"0x5BCF14d8470e1a6110916371aacC8E1C947A7D9d": "Chaos Labs"
|
|
188
188
|
},
|
|
189
|
+
testMarketConfigurators: {
|
|
190
|
+
"0x537F5F2032e75Fa586E48ad635DF6f79c06205b9": "Chaos Labs"
|
|
191
|
+
},
|
|
189
192
|
isPublic: false,
|
|
190
193
|
wellKnownToken: {
|
|
191
194
|
address: "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
|
|
@@ -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;
|