@gearbox-protocol/sdk 3.0.0-vfour.230 → 3.0.0-vfour.232

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.
@@ -68032,6 +68032,7 @@ var CreditManagerData_Legacy = class _CreditManagerData_Legacy {
68032
68032
  maxEnabledTokensLength;
68033
68033
  name;
68034
68034
  tier;
68035
+ marketConfigurator;
68035
68036
  baseBorrowRate;
68036
68037
  minDebt;
68037
68038
  maxDebt;
@@ -68066,6 +68067,7 @@ var CreditManagerData_Legacy = class _CreditManagerData_Legacy {
68066
68067
  this.forbiddenTokenMask = payload.forbiddenTokenMask;
68067
68068
  this.maxEnabledTokensLength = Number(payload.maxEnabledTokensLength);
68068
68069
  this.isBorrowingForbidden = payload.isBorrowingForbidden;
68070
+ this.marketConfigurator = payload.marketConfigurator.toLowerCase();
68069
68071
  this.baseBorrowRate = Number(
68070
68072
  payload.baseBorrowRate * (BigInt(payload.feeInterest) + PERCENTAGE_FACTOR) * PERCENTAGE_DECIMALS / RAY
68071
68073
  );
@@ -70673,6 +70675,7 @@ var PoolData_Legacy = class _PoolData_Legacy {
70673
70675
  gauge;
70674
70676
  name;
70675
70677
  symbol;
70678
+ marketConfigurator;
70676
70679
  // Information
70677
70680
  expectedLiquidity;
70678
70681
  expectedLiquidityLimit;
@@ -70709,6 +70712,7 @@ var PoolData_Legacy = class _PoolData_Legacy {
70709
70712
  this.gauge = payload.gauge.toLowerCase();
70710
70713
  this.name = payload.name;
70711
70714
  this.symbol = payload.symbol;
70715
+ this.marketConfigurator = payload.marketConfigurator.toLowerCase();
70712
70716
  const expected = payload.expectedLiquidity;
70713
70717
  const available = payload.availableLiquidity;
70714
70718
  this.expectedLiquidity = expected;
@@ -73809,10 +73813,16 @@ var GearboxSDK = class _GearboxSDK {
73809
73813
  `address provider version: ${this.#addressProvider.version}`
73810
73814
  );
73811
73815
  await this.#addressProvider.syncState(this.currentBlock);
73812
- const botListAddress = this.#addressProvider.getLatestVersion(AP_BOT_LIST);
73816
+ const botListAddress = this.#addressProvider.getAddress(
73817
+ AP_BOT_LIST,
73818
+ NO_VERSION
73819
+ );
73813
73820
  this.#botListContract = new BotListContract(this, botListAddress);
73814
- this.#gear = this.#addressProvider.getAddress(AP_GEAR_TOKEN);
73815
- const gearStakingAddress = this.#addressProvider.getLatestVersion(AP_GEAR_STAKING);
73821
+ this.#gear = this.#addressProvider.getAddress(AP_GEAR_TOKEN, NO_VERSION);
73822
+ const gearStakingAddress = this.#addressProvider.getAddress(
73823
+ AP_GEAR_STAKING,
73824
+ NO_VERSION
73825
+ );
73816
73826
  this.#gearStakingContract = new GearStakingContract(
73817
73827
  this,
73818
73828
  gearStakingAddress
@@ -96666,6 +96666,7 @@ interface PoolDataPayload {
96666
96666
  poolQuotaKeeper: Address;
96667
96667
  gauge: Address;
96668
96668
  isPaused: boolean;
96669
+ marketConfigurator: Address;
96669
96670
  readonly lirm: {
96670
96671
  interestModel: Address;
96671
96672
  version: bigint;
@@ -96853,6 +96854,7 @@ interface CreditManagerDataPayload {
96853
96854
  degenNFT: Address;
96854
96855
  forbiddenTokenMask: bigint;
96855
96856
  isPaused: boolean;
96857
+ marketConfigurator: Address;
96856
96858
  collateralTokens: readonly Address[];
96857
96859
  adapters: Array<IAdapterContract>;
96858
96860
  liquidationThresholds: Array<[token: Address, lt: number]>;
@@ -97074,6 +97076,7 @@ declare class CreditManagerData_Legacy {
97074
97076
  readonly maxEnabledTokensLength: number;
97075
97077
  readonly name: string;
97076
97078
  readonly tier: number;
97079
+ readonly marketConfigurator: Address;
97077
97080
  readonly baseBorrowRate: number;
97078
97081
  readonly minDebt: bigint;
97079
97082
  readonly maxDebt: bigint;
@@ -97707,6 +97710,7 @@ declare class PoolData_Legacy {
97707
97710
  readonly gauge: Address;
97708
97711
  readonly name: string;
97709
97712
  readonly symbol: string;
97713
+ readonly marketConfigurator: Address;
97710
97714
  readonly expectedLiquidity: bigint;
97711
97715
  readonly expectedLiquidityLimit: bigint;
97712
97716
  readonly availableLiquidity: bigint;
@@ -96666,6 +96666,7 @@ interface PoolDataPayload {
96666
96666
  poolQuotaKeeper: Address;
96667
96667
  gauge: Address;
96668
96668
  isPaused: boolean;
96669
+ marketConfigurator: Address;
96669
96670
  readonly lirm: {
96670
96671
  interestModel: Address;
96671
96672
  version: bigint;
@@ -96853,6 +96854,7 @@ interface CreditManagerDataPayload {
96853
96854
  degenNFT: Address;
96854
96855
  forbiddenTokenMask: bigint;
96855
96856
  isPaused: boolean;
96857
+ marketConfigurator: Address;
96856
96858
  collateralTokens: readonly Address[];
96857
96859
  adapters: Array<IAdapterContract>;
96858
96860
  liquidationThresholds: Array<[token: Address, lt: number]>;
@@ -97074,6 +97076,7 @@ declare class CreditManagerData_Legacy {
97074
97076
  readonly maxEnabledTokensLength: number;
97075
97077
  readonly name: string;
97076
97078
  readonly tier: number;
97079
+ readonly marketConfigurator: Address;
97077
97080
  readonly baseBorrowRate: number;
97078
97081
  readonly minDebt: bigint;
97079
97082
  readonly maxDebt: bigint;
@@ -97707,6 +97710,7 @@ declare class PoolData_Legacy {
97707
97710
  readonly gauge: Address;
97708
97711
  readonly name: string;
97709
97712
  readonly symbol: string;
97713
+ readonly marketConfigurator: Address;
97710
97714
  readonly expectedLiquidity: bigint;
97711
97715
  readonly expectedLiquidityLimit: bigint;
97712
97716
  readonly availableLiquidity: bigint;
@@ -68025,6 +68025,7 @@ var CreditManagerData_Legacy = class _CreditManagerData_Legacy {
68025
68025
  maxEnabledTokensLength;
68026
68026
  name;
68027
68027
  tier;
68028
+ marketConfigurator;
68028
68029
  baseBorrowRate;
68029
68030
  minDebt;
68030
68031
  maxDebt;
@@ -68059,6 +68060,7 @@ var CreditManagerData_Legacy = class _CreditManagerData_Legacy {
68059
68060
  this.forbiddenTokenMask = payload.forbiddenTokenMask;
68060
68061
  this.maxEnabledTokensLength = Number(payload.maxEnabledTokensLength);
68061
68062
  this.isBorrowingForbidden = payload.isBorrowingForbidden;
68063
+ this.marketConfigurator = payload.marketConfigurator.toLowerCase();
68062
68064
  this.baseBorrowRate = Number(
68063
68065
  payload.baseBorrowRate * (BigInt(payload.feeInterest) + PERCENTAGE_FACTOR) * PERCENTAGE_DECIMALS / RAY
68064
68066
  );
@@ -70666,6 +70668,7 @@ var PoolData_Legacy = class _PoolData_Legacy {
70666
70668
  gauge;
70667
70669
  name;
70668
70670
  symbol;
70671
+ marketConfigurator;
70669
70672
  // Information
70670
70673
  expectedLiquidity;
70671
70674
  expectedLiquidityLimit;
@@ -70702,6 +70705,7 @@ var PoolData_Legacy = class _PoolData_Legacy {
70702
70705
  this.gauge = payload.gauge.toLowerCase();
70703
70706
  this.name = payload.name;
70704
70707
  this.symbol = payload.symbol;
70708
+ this.marketConfigurator = payload.marketConfigurator.toLowerCase();
70705
70709
  const expected = payload.expectedLiquidity;
70706
70710
  const available = payload.availableLiquidity;
70707
70711
  this.expectedLiquidity = expected;
@@ -73802,10 +73806,16 @@ var GearboxSDK = class _GearboxSDK {
73802
73806
  `address provider version: ${this.#addressProvider.version}`
73803
73807
  );
73804
73808
  await this.#addressProvider.syncState(this.currentBlock);
73805
- const botListAddress = this.#addressProvider.getLatestVersion(AP_BOT_LIST);
73809
+ const botListAddress = this.#addressProvider.getAddress(
73810
+ AP_BOT_LIST,
73811
+ NO_VERSION
73812
+ );
73806
73813
  this.#botListContract = new BotListContract(this, botListAddress);
73807
- this.#gear = this.#addressProvider.getAddress(AP_GEAR_TOKEN);
73808
- const gearStakingAddress = this.#addressProvider.getLatestVersion(AP_GEAR_STAKING);
73814
+ this.#gear = this.#addressProvider.getAddress(AP_GEAR_TOKEN, NO_VERSION);
73815
+ const gearStakingAddress = this.#addressProvider.getAddress(
73816
+ AP_GEAR_STAKING,
73817
+ NO_VERSION
73818
+ );
73809
73819
  this.#gearStakingContract = new GearStakingContract(
73810
73820
  this,
73811
73821
  gearStakingAddress
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-vfour.230",
3
+ "version": "3.0.0-vfour.232",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.cjs",