@gearbox-protocol/sdk 3.1.3-next.1 → 3.1.3-next.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.
@@ -43,7 +43,6 @@ class GearboxSDK {
43
43
  #currentBlock;
44
44
  #timestamp;
45
45
  #syncing = false;
46
- #gear;
47
46
  // Collection of core singleton contracts
48
47
  #addressProvider;
49
48
  #botListContract;
@@ -191,7 +190,6 @@ class GearboxSDK {
191
190
  } catch (e) {
192
191
  this.logger?.error(e);
193
192
  }
194
- this.#gear = this.#addressProvider.getAddress(import_constants.AP_GEAR_TOKEN, import_constants.NO_VERSION);
195
193
  const gearStakingAddress = this.#addressProvider.getAddress(
196
194
  import_constants.AP_GEAR_STAKING,
197
195
  import_constants.NO_VERSION
@@ -411,10 +409,7 @@ class GearboxSDK {
411
409
  return this.#timestamp;
412
410
  }
413
411
  get gear() {
414
- if (this.#gear === void 0) {
415
- throw ERR_NOT_ATTACHED;
416
- }
417
- return this.#gear;
412
+ return this.addressProvider.getAddress(import_constants.AP_GEAR_TOKEN, import_constants.NO_VERSION);
418
413
  }
419
414
  get addressProvider() {
420
415
  if (this.#addressProvider === void 0) {
@@ -100,7 +100,7 @@ const ADDRESS_PROVIDER = {
100
100
  Avalanche: import_addresses.NOT_DEPLOYED,
101
101
  BNB: import_addresses.NOT_DEPLOYED
102
102
  };
103
- const ADDRESS_PROVIDER_V310 = "0xBaB2014Dd88223E168bA06911c06df638311a097";
103
+ const ADDRESS_PROVIDER_V310 = "0xF7f0a609BfAb9a0A98786951ef10e5FE26cC1E38";
104
104
  // Annotate the CommonJS export names for ESM import in node:
105
105
  0 && (module.exports = {
106
106
  ADDRESS_PROVIDER,
@@ -37,7 +37,6 @@ class GearboxSDK {
37
37
  #currentBlock;
38
38
  #timestamp;
39
39
  #syncing = false;
40
- #gear;
41
40
  // Collection of core singleton contracts
42
41
  #addressProvider;
43
42
  #botListContract;
@@ -185,7 +184,6 @@ class GearboxSDK {
185
184
  } catch (e) {
186
185
  this.logger?.error(e);
187
186
  }
188
- this.#gear = this.#addressProvider.getAddress(AP_GEAR_TOKEN, NO_VERSION);
189
187
  const gearStakingAddress = this.#addressProvider.getAddress(
190
188
  AP_GEAR_STAKING,
191
189
  NO_VERSION
@@ -405,10 +403,7 @@ class GearboxSDK {
405
403
  return this.#timestamp;
406
404
  }
407
405
  get gear() {
408
- if (this.#gear === void 0) {
409
- throw ERR_NOT_ATTACHED;
410
- }
411
- return this.#gear;
406
+ return this.addressProvider.getAddress(AP_GEAR_TOKEN, NO_VERSION);
412
407
  }
413
408
  get addressProvider() {
414
409
  if (this.#addressProvider === void 0) {
@@ -44,7 +44,7 @@ const ADDRESS_PROVIDER = {
44
44
  Avalanche: NOT_DEPLOYED,
45
45
  BNB: NOT_DEPLOYED
46
46
  };
47
- const ADDRESS_PROVIDER_V310 = "0xBaB2014Dd88223E168bA06911c06df638311a097";
47
+ const ADDRESS_PROVIDER_V310 = "0xF7f0a609BfAb9a0A98786951ef10e5FE26cC1E38";
48
48
  export {
49
49
  ADDRESS_PROVIDER,
50
50
  ADDRESS_PROVIDER_V310,
@@ -33,4 +33,4 @@ export declare const AP_WETH_TOKEN = "WETH_TOKEN";
33
33
  export declare const AP_ZAPPER_REGISTER = "ZAPPER_REGISTER";
34
34
  export declare const AP_ZERO_PRICE_FEED = "ZERO_PRICE_FEED";
35
35
  export declare const ADDRESS_PROVIDER: Record<NetworkType, Address>;
36
- export declare const ADDRESS_PROVIDER_V310 = "0xBaB2014Dd88223E168bA06911c06df638311a097";
36
+ export declare const ADDRESS_PROVIDER_V310 = "0xF7f0a609BfAb9a0A98786951ef10e5FE26cC1E38";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.1.3-next.1",
3
+ "version": "3.1.3-next.2",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",