@gearbox-protocol/sdk 3.0.0-vfour.200 → 3.0.0-vfour.202
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 +8 -25
- package/dist/cjs/sdk/index.d.ts +4 -39
- package/dist/esm/sdk/index.d.mts +4 -39
- package/dist/esm/sdk/index.mjs +8 -25
- package/package.json +1 -1
package/dist/cjs/sdk/index.cjs
CHANGED
|
@@ -766,11 +766,6 @@ var iMarketCompressorAbi = [
|
|
|
766
766
|
}
|
|
767
767
|
]
|
|
768
768
|
},
|
|
769
|
-
{
|
|
770
|
-
name: "description",
|
|
771
|
-
type: "string",
|
|
772
|
-
internalType: "string"
|
|
773
|
-
},
|
|
774
769
|
{ name: "decimals", type: "uint8", internalType: "uint8" },
|
|
775
770
|
{ name: "skipCheck", type: "bool", internalType: "bool" },
|
|
776
771
|
{ name: "updatable", type: "bool", internalType: "bool" },
|
|
@@ -1494,11 +1489,6 @@ var iMarketCompressorAbi = [
|
|
|
1494
1489
|
}
|
|
1495
1490
|
]
|
|
1496
1491
|
},
|
|
1497
|
-
{
|
|
1498
|
-
name: "description",
|
|
1499
|
-
type: "string",
|
|
1500
|
-
internalType: "string"
|
|
1501
|
-
},
|
|
1502
1492
|
{ name: "decimals", type: "uint8", internalType: "uint8" },
|
|
1503
1493
|
{ name: "skipCheck", type: "bool", internalType: "bool" },
|
|
1504
1494
|
{ name: "updatable", type: "bool", internalType: "bool" },
|
|
@@ -2237,11 +2227,6 @@ var iMarketCompressorAbi = [
|
|
|
2237
2227
|
}
|
|
2238
2228
|
]
|
|
2239
2229
|
},
|
|
2240
|
-
{
|
|
2241
|
-
name: "description",
|
|
2242
|
-
type: "string",
|
|
2243
|
-
internalType: "string"
|
|
2244
|
-
},
|
|
2245
2230
|
{ name: "decimals", type: "uint8", internalType: "uint8" },
|
|
2246
2231
|
{ name: "skipCheck", type: "bool", internalType: "bool" },
|
|
2247
2232
|
{ name: "updatable", type: "bool", internalType: "bool" },
|
|
@@ -2719,7 +2704,6 @@ var iPriceFeedCompressorAbi = [
|
|
|
2719
2704
|
}
|
|
2720
2705
|
]
|
|
2721
2706
|
},
|
|
2722
|
-
{ name: "description", type: "string", internalType: "string" },
|
|
2723
2707
|
{ name: "decimals", type: "uint8", internalType: "uint8" },
|
|
2724
2708
|
{ name: "skipCheck", type: "bool", internalType: "bool" },
|
|
2725
2709
|
{ name: "updatable", type: "bool", internalType: "bool" },
|
|
@@ -2788,7 +2772,6 @@ var iPriceFeedCompressorAbi = [
|
|
|
2788
2772
|
}
|
|
2789
2773
|
]
|
|
2790
2774
|
},
|
|
2791
|
-
{ name: "description", type: "string", internalType: "string" },
|
|
2792
2775
|
{ name: "decimals", type: "uint8", internalType: "uint8" },
|
|
2793
2776
|
{ name: "skipCheck", type: "bool", internalType: "bool" },
|
|
2794
2777
|
{ name: "updatable", type: "bool", internalType: "bool" },
|
|
@@ -2848,7 +2831,6 @@ var iPriceFeedCompressorAbi = [
|
|
|
2848
2831
|
}
|
|
2849
2832
|
]
|
|
2850
2833
|
},
|
|
2851
|
-
{ name: "description", type: "string", internalType: "string" },
|
|
2852
2834
|
{ name: "decimals", type: "uint8", internalType: "uint8" },
|
|
2853
2835
|
{ name: "skipCheck", type: "bool", internalType: "bool" },
|
|
2854
2836
|
{ name: "updatable", type: "bool", internalType: "bool" },
|
|
@@ -65438,7 +65420,6 @@ function assetsMap(assets) {
|
|
|
65438
65420
|
// src/sdk/accounts/CreditAccountsService.ts
|
|
65439
65421
|
var CreditAccountsService = class extends SDKConstruct {
|
|
65440
65422
|
#compressor;
|
|
65441
|
-
#rewardCompressor;
|
|
65442
65423
|
#batchSize;
|
|
65443
65424
|
#logger;
|
|
65444
65425
|
constructor(sdk, options) {
|
|
@@ -65446,9 +65427,6 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
65446
65427
|
this.#compressor = sdk.addressProvider.getLatestVersion(
|
|
65447
65428
|
AP_CREDIT_ACCOUNT_COMPRESSOR
|
|
65448
65429
|
);
|
|
65449
|
-
this.#rewardCompressor = sdk.addressProvider.getLatestVersion(
|
|
65450
|
-
AP_REWARDS_COMPRESSOR
|
|
65451
|
-
);
|
|
65452
65430
|
this.#batchSize = options?.batchSize;
|
|
65453
65431
|
this.#logger = childLogger("CreditAccountsService", sdk.logger);
|
|
65454
65432
|
}
|
|
@@ -65554,7 +65532,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
65554
65532
|
async getRewards(account) {
|
|
65555
65533
|
const rewards = await this.provider.publicClient.readContract({
|
|
65556
65534
|
abi: iRewardCompressorAbi,
|
|
65557
|
-
address: this
|
|
65535
|
+
address: this.rewardCompressor,
|
|
65558
65536
|
functionName: "getRewards",
|
|
65559
65537
|
args: [account]
|
|
65560
65538
|
});
|
|
@@ -66146,6 +66124,9 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66146
66124
|
get marketConfigurators() {
|
|
66147
66125
|
return this.sdk.marketRegister.marketConfigurators.map((mc) => mc.address);
|
|
66148
66126
|
}
|
|
66127
|
+
get rewardCompressor() {
|
|
66128
|
+
return this.sdk.addressProvider.getLatestVersion(AP_REWARDS_COMPRESSOR);
|
|
66129
|
+
}
|
|
66149
66130
|
};
|
|
66150
66131
|
|
|
66151
66132
|
// src/sdk/bots/BotsService.ts
|
|
@@ -66600,7 +66581,8 @@ var EXTRA_FARM_TOKENS = {
|
|
|
66600
66581
|
PT_sUSDe_27MAR2025: true,
|
|
66601
66582
|
DVstETH: true,
|
|
66602
66583
|
beraSTONE: true,
|
|
66603
|
-
PT_sUSDe_29MAY2025: true
|
|
66584
|
+
PT_sUSDe_29MAY2025: true,
|
|
66585
|
+
tETH: true
|
|
66604
66586
|
};
|
|
66605
66587
|
var isExtraFarmToken = (t) => {
|
|
66606
66588
|
if (typeof t !== "string") return false;
|
|
@@ -66633,7 +66615,8 @@ var EXTRA_TOKENS_WITH_APY = {
|
|
|
66633
66615
|
PT_corn_eBTC_27MAR2025: true,
|
|
66634
66616
|
PT_corn_pumpBTC_26DEC2024: true,
|
|
66635
66617
|
PT_sUSDe_27MAR2025: true,
|
|
66636
|
-
PT_sUSDe_29MAY2025: true
|
|
66618
|
+
PT_sUSDe_29MAY2025: true,
|
|
66619
|
+
tETH: true
|
|
66637
66620
|
};
|
|
66638
66621
|
var isExtraTokenWithAPY = (t) => {
|
|
66639
66622
|
if (typeof t !== "string") return false;
|
package/dist/cjs/sdk/index.d.ts
CHANGED
|
@@ -1180,10 +1180,6 @@ declare const iMarketCompressorAbi: readonly [{
|
|
|
1180
1180
|
readonly type: "bytes";
|
|
1181
1181
|
readonly internalType: "bytes";
|
|
1182
1182
|
}];
|
|
1183
|
-
}, {
|
|
1184
|
-
readonly name: "description";
|
|
1185
|
-
readonly type: "string";
|
|
1186
|
-
readonly internalType: "string";
|
|
1187
1183
|
}, {
|
|
1188
1184
|
readonly name: "decimals";
|
|
1189
1185
|
readonly type: "uint8";
|
|
@@ -1937,10 +1933,6 @@ declare const iMarketCompressorAbi: readonly [{
|
|
|
1937
1933
|
readonly type: "bytes";
|
|
1938
1934
|
readonly internalType: "bytes";
|
|
1939
1935
|
}];
|
|
1940
|
-
}, {
|
|
1941
|
-
readonly name: "description";
|
|
1942
|
-
readonly type: "string";
|
|
1943
|
-
readonly internalType: "string";
|
|
1944
1936
|
}, {
|
|
1945
1937
|
readonly name: "decimals";
|
|
1946
1938
|
readonly type: "uint8";
|
|
@@ -2707,10 +2699,6 @@ declare const iMarketCompressorAbi: readonly [{
|
|
|
2707
2699
|
readonly type: "bytes";
|
|
2708
2700
|
readonly internalType: "bytes";
|
|
2709
2701
|
}];
|
|
2710
|
-
}, {
|
|
2711
|
-
readonly name: "description";
|
|
2712
|
-
readonly type: "string";
|
|
2713
|
-
readonly internalType: "string";
|
|
2714
2702
|
}, {
|
|
2715
2703
|
readonly name: "decimals";
|
|
2716
2704
|
readonly type: "uint8";
|
|
@@ -3221,10 +3209,6 @@ declare const iPriceFeedCompressorAbi: readonly [{
|
|
|
3221
3209
|
readonly type: "bytes";
|
|
3222
3210
|
readonly internalType: "bytes";
|
|
3223
3211
|
}];
|
|
3224
|
-
}, {
|
|
3225
|
-
readonly name: "description";
|
|
3226
|
-
readonly type: "string";
|
|
3227
|
-
readonly internalType: "string";
|
|
3228
3212
|
}, {
|
|
3229
3213
|
readonly name: "decimals";
|
|
3230
3214
|
readonly type: "uint8";
|
|
@@ -3319,10 +3303,6 @@ declare const iPriceFeedCompressorAbi: readonly [{
|
|
|
3319
3303
|
readonly type: "bytes";
|
|
3320
3304
|
readonly internalType: "bytes";
|
|
3321
3305
|
}];
|
|
3322
|
-
}, {
|
|
3323
|
-
readonly name: "description";
|
|
3324
|
-
readonly type: "string";
|
|
3325
|
-
readonly internalType: "string";
|
|
3326
3306
|
}, {
|
|
3327
3307
|
readonly name: "decimals";
|
|
3328
3308
|
readonly type: "uint8";
|
|
@@ -3396,10 +3376,6 @@ declare const iPriceFeedCompressorAbi: readonly [{
|
|
|
3396
3376
|
readonly type: "bytes";
|
|
3397
3377
|
readonly internalType: "bytes";
|
|
3398
3378
|
}];
|
|
3399
|
-
}, {
|
|
3400
|
-
readonly name: "description";
|
|
3401
|
-
readonly type: "string";
|
|
3402
|
-
readonly internalType: "string";
|
|
3403
3379
|
}, {
|
|
3404
3380
|
readonly name: "decimals";
|
|
3405
3381
|
readonly type: "uint8";
|
|
@@ -85306,7 +85282,7 @@ declare function rawTxToMulticallPriceUpdate(tx: RawTx): {
|
|
|
85306
85282
|
readonly stateMutability: "view";
|
|
85307
85283
|
}];
|
|
85308
85284
|
address: `0x${string}`;
|
|
85309
|
-
functionName: "version" | "decimals" | "
|
|
85285
|
+
functionName: "version" | "decimals" | "updatable" | "description" | "latestRoundData" | "priceFeedType" | "skipPriceCheck" | "updatePrice";
|
|
85310
85286
|
args: readonly [] | readonly [`0x${string}`];
|
|
85311
85287
|
};
|
|
85312
85288
|
|
|
@@ -85495,10 +85471,6 @@ declare class PriceOracleBaseContract<abi extends Abi | readonly unknown[]> exte
|
|
|
85495
85471
|
readonly type: "bytes";
|
|
85496
85472
|
readonly internalType: "bytes";
|
|
85497
85473
|
}];
|
|
85498
|
-
}, {
|
|
85499
|
-
readonly name: "description";
|
|
85500
|
-
readonly type: "string";
|
|
85501
|
-
readonly internalType: "string";
|
|
85502
85474
|
}, {
|
|
85503
85475
|
readonly name: "decimals";
|
|
85504
85476
|
readonly type: "uint8";
|
|
@@ -85593,10 +85565,6 @@ declare class PriceOracleBaseContract<abi extends Abi | readonly unknown[]> exte
|
|
|
85593
85565
|
readonly type: "bytes";
|
|
85594
85566
|
readonly internalType: "bytes";
|
|
85595
85567
|
}];
|
|
85596
|
-
}, {
|
|
85597
|
-
readonly name: "description";
|
|
85598
|
-
readonly type: "string";
|
|
85599
|
-
readonly internalType: "string";
|
|
85600
85568
|
}, {
|
|
85601
85569
|
readonly name: "decimals";
|
|
85602
85570
|
readonly type: "uint8";
|
|
@@ -85670,10 +85638,6 @@ declare class PriceOracleBaseContract<abi extends Abi | readonly unknown[]> exte
|
|
|
85670
85638
|
readonly type: "bytes";
|
|
85671
85639
|
readonly internalType: "bytes";
|
|
85672
85640
|
}];
|
|
85673
|
-
}, {
|
|
85674
|
-
readonly name: "description";
|
|
85675
|
-
readonly type: "string";
|
|
85676
|
-
readonly internalType: "string";
|
|
85677
85641
|
}, {
|
|
85678
85642
|
readonly name: "decimals";
|
|
85679
85643
|
readonly type: "uint8";
|
|
@@ -92728,6 +92692,7 @@ declare class CreditAccountsService extends SDKConstruct {
|
|
|
92728
92692
|
* Returns addresses of market configurators
|
|
92729
92693
|
*/
|
|
92730
92694
|
private get marketConfigurators();
|
|
92695
|
+
private get rewardCompressor();
|
|
92731
92696
|
}
|
|
92732
92697
|
|
|
92733
92698
|
type BotBaseType = "liquidationProtection";
|
|
@@ -93592,8 +93557,8 @@ declare enum PriceFeedType {
|
|
|
93592
93557
|
PENDLE_PT_TWAP_ORACLE = 21
|
|
93593
93558
|
}
|
|
93594
93559
|
|
|
93595
|
-
type ExtraFarmTokens = Extract<SupportedToken, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "weETH" | "ezETH" | "sfrxETH" | "USDe" | "rsETH" | "rswETH" | "pufETH" | "pzETH" | "rstETH" | "steakLRT" | "amphrETH" | "LBTC" | "Re7LRT" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "eBTC" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "pumpBTC" | "PT_sUSDe_27MAR2025" | "DVstETH" | "beraSTONE" | "PT_sUSDe_29MAY2025">;
|
|
93596
|
-
type ExtraTokensWithAPY = Extract<ExtraFarmTokens, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "sfrxETH" | "pzETH" | "ezETH" | "Re7LRT" | "rsETH" | "weETH" | "rswETH" | "rstETH" | "steakLRT" | "amphrETH" | "pufETH" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "PT_sUSDe_27MAR2025" | "DVstETH" | "PT_sUSDe_29MAY2025">;
|
|
93560
|
+
type ExtraFarmTokens = Extract<SupportedToken, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "weETH" | "ezETH" | "sfrxETH" | "USDe" | "rsETH" | "rswETH" | "pufETH" | "pzETH" | "rstETH" | "steakLRT" | "amphrETH" | "LBTC" | "Re7LRT" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "eBTC" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "pumpBTC" | "PT_sUSDe_27MAR2025" | "DVstETH" | "beraSTONE" | "PT_sUSDe_29MAY2025" | "tETH">;
|
|
93561
|
+
type ExtraTokensWithAPY = Extract<ExtraFarmTokens, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "sfrxETH" | "pzETH" | "ezETH" | "Re7LRT" | "rsETH" | "weETH" | "rswETH" | "rstETH" | "steakLRT" | "amphrETH" | "pufETH" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "PT_sUSDe_27MAR2025" | "DVstETH" | "PT_sUSDe_29MAY2025" | "tETH">;
|
|
93597
93562
|
type LRTAndLSTTokens = Exclude<ExtraFarmTokens, "USDe">;
|
|
93598
93563
|
declare const isExtraFarmToken: (t: unknown) => t is ExtraFarmTokens;
|
|
93599
93564
|
declare const isLRT_LSTToken: (t: unknown) => t is LRTAndLSTTokens;
|
package/dist/esm/sdk/index.d.mts
CHANGED
|
@@ -1180,10 +1180,6 @@ declare const iMarketCompressorAbi: readonly [{
|
|
|
1180
1180
|
readonly type: "bytes";
|
|
1181
1181
|
readonly internalType: "bytes";
|
|
1182
1182
|
}];
|
|
1183
|
-
}, {
|
|
1184
|
-
readonly name: "description";
|
|
1185
|
-
readonly type: "string";
|
|
1186
|
-
readonly internalType: "string";
|
|
1187
1183
|
}, {
|
|
1188
1184
|
readonly name: "decimals";
|
|
1189
1185
|
readonly type: "uint8";
|
|
@@ -1937,10 +1933,6 @@ declare const iMarketCompressorAbi: readonly [{
|
|
|
1937
1933
|
readonly type: "bytes";
|
|
1938
1934
|
readonly internalType: "bytes";
|
|
1939
1935
|
}];
|
|
1940
|
-
}, {
|
|
1941
|
-
readonly name: "description";
|
|
1942
|
-
readonly type: "string";
|
|
1943
|
-
readonly internalType: "string";
|
|
1944
1936
|
}, {
|
|
1945
1937
|
readonly name: "decimals";
|
|
1946
1938
|
readonly type: "uint8";
|
|
@@ -2707,10 +2699,6 @@ declare const iMarketCompressorAbi: readonly [{
|
|
|
2707
2699
|
readonly type: "bytes";
|
|
2708
2700
|
readonly internalType: "bytes";
|
|
2709
2701
|
}];
|
|
2710
|
-
}, {
|
|
2711
|
-
readonly name: "description";
|
|
2712
|
-
readonly type: "string";
|
|
2713
|
-
readonly internalType: "string";
|
|
2714
2702
|
}, {
|
|
2715
2703
|
readonly name: "decimals";
|
|
2716
2704
|
readonly type: "uint8";
|
|
@@ -3221,10 +3209,6 @@ declare const iPriceFeedCompressorAbi: readonly [{
|
|
|
3221
3209
|
readonly type: "bytes";
|
|
3222
3210
|
readonly internalType: "bytes";
|
|
3223
3211
|
}];
|
|
3224
|
-
}, {
|
|
3225
|
-
readonly name: "description";
|
|
3226
|
-
readonly type: "string";
|
|
3227
|
-
readonly internalType: "string";
|
|
3228
3212
|
}, {
|
|
3229
3213
|
readonly name: "decimals";
|
|
3230
3214
|
readonly type: "uint8";
|
|
@@ -3319,10 +3303,6 @@ declare const iPriceFeedCompressorAbi: readonly [{
|
|
|
3319
3303
|
readonly type: "bytes";
|
|
3320
3304
|
readonly internalType: "bytes";
|
|
3321
3305
|
}];
|
|
3322
|
-
}, {
|
|
3323
|
-
readonly name: "description";
|
|
3324
|
-
readonly type: "string";
|
|
3325
|
-
readonly internalType: "string";
|
|
3326
3306
|
}, {
|
|
3327
3307
|
readonly name: "decimals";
|
|
3328
3308
|
readonly type: "uint8";
|
|
@@ -3396,10 +3376,6 @@ declare const iPriceFeedCompressorAbi: readonly [{
|
|
|
3396
3376
|
readonly type: "bytes";
|
|
3397
3377
|
readonly internalType: "bytes";
|
|
3398
3378
|
}];
|
|
3399
|
-
}, {
|
|
3400
|
-
readonly name: "description";
|
|
3401
|
-
readonly type: "string";
|
|
3402
|
-
readonly internalType: "string";
|
|
3403
3379
|
}, {
|
|
3404
3380
|
readonly name: "decimals";
|
|
3405
3381
|
readonly type: "uint8";
|
|
@@ -85306,7 +85282,7 @@ declare function rawTxToMulticallPriceUpdate(tx: RawTx): {
|
|
|
85306
85282
|
readonly stateMutability: "view";
|
|
85307
85283
|
}];
|
|
85308
85284
|
address: `0x${string}`;
|
|
85309
|
-
functionName: "version" | "decimals" | "
|
|
85285
|
+
functionName: "version" | "decimals" | "updatable" | "description" | "latestRoundData" | "priceFeedType" | "skipPriceCheck" | "updatePrice";
|
|
85310
85286
|
args: readonly [] | readonly [`0x${string}`];
|
|
85311
85287
|
};
|
|
85312
85288
|
|
|
@@ -85495,10 +85471,6 @@ declare class PriceOracleBaseContract<abi extends Abi | readonly unknown[]> exte
|
|
|
85495
85471
|
readonly type: "bytes";
|
|
85496
85472
|
readonly internalType: "bytes";
|
|
85497
85473
|
}];
|
|
85498
|
-
}, {
|
|
85499
|
-
readonly name: "description";
|
|
85500
|
-
readonly type: "string";
|
|
85501
|
-
readonly internalType: "string";
|
|
85502
85474
|
}, {
|
|
85503
85475
|
readonly name: "decimals";
|
|
85504
85476
|
readonly type: "uint8";
|
|
@@ -85593,10 +85565,6 @@ declare class PriceOracleBaseContract<abi extends Abi | readonly unknown[]> exte
|
|
|
85593
85565
|
readonly type: "bytes";
|
|
85594
85566
|
readonly internalType: "bytes";
|
|
85595
85567
|
}];
|
|
85596
|
-
}, {
|
|
85597
|
-
readonly name: "description";
|
|
85598
|
-
readonly type: "string";
|
|
85599
|
-
readonly internalType: "string";
|
|
85600
85568
|
}, {
|
|
85601
85569
|
readonly name: "decimals";
|
|
85602
85570
|
readonly type: "uint8";
|
|
@@ -85670,10 +85638,6 @@ declare class PriceOracleBaseContract<abi extends Abi | readonly unknown[]> exte
|
|
|
85670
85638
|
readonly type: "bytes";
|
|
85671
85639
|
readonly internalType: "bytes";
|
|
85672
85640
|
}];
|
|
85673
|
-
}, {
|
|
85674
|
-
readonly name: "description";
|
|
85675
|
-
readonly type: "string";
|
|
85676
|
-
readonly internalType: "string";
|
|
85677
85641
|
}, {
|
|
85678
85642
|
readonly name: "decimals";
|
|
85679
85643
|
readonly type: "uint8";
|
|
@@ -92728,6 +92692,7 @@ declare class CreditAccountsService extends SDKConstruct {
|
|
|
92728
92692
|
* Returns addresses of market configurators
|
|
92729
92693
|
*/
|
|
92730
92694
|
private get marketConfigurators();
|
|
92695
|
+
private get rewardCompressor();
|
|
92731
92696
|
}
|
|
92732
92697
|
|
|
92733
92698
|
type BotBaseType = "liquidationProtection";
|
|
@@ -93592,8 +93557,8 @@ declare enum PriceFeedType {
|
|
|
93592
93557
|
PENDLE_PT_TWAP_ORACLE = 21
|
|
93593
93558
|
}
|
|
93594
93559
|
|
|
93595
|
-
type ExtraFarmTokens = Extract<SupportedToken, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "weETH" | "ezETH" | "sfrxETH" | "USDe" | "rsETH" | "rswETH" | "pufETH" | "pzETH" | "rstETH" | "steakLRT" | "amphrETH" | "LBTC" | "Re7LRT" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "eBTC" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "pumpBTC" | "PT_sUSDe_27MAR2025" | "DVstETH" | "beraSTONE" | "PT_sUSDe_29MAY2025">;
|
|
93596
|
-
type ExtraTokensWithAPY = Extract<ExtraFarmTokens, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "sfrxETH" | "pzETH" | "ezETH" | "Re7LRT" | "rsETH" | "weETH" | "rswETH" | "rstETH" | "steakLRT" | "amphrETH" | "pufETH" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "PT_sUSDe_27MAR2025" | "DVstETH" | "PT_sUSDe_29MAY2025">;
|
|
93560
|
+
type ExtraFarmTokens = Extract<SupportedToken, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "weETH" | "ezETH" | "sfrxETH" | "USDe" | "rsETH" | "rswETH" | "pufETH" | "pzETH" | "rstETH" | "steakLRT" | "amphrETH" | "LBTC" | "Re7LRT" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "eBTC" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "pumpBTC" | "PT_sUSDe_27MAR2025" | "DVstETH" | "beraSTONE" | "PT_sUSDe_29MAY2025" | "tETH">;
|
|
93561
|
+
type ExtraTokensWithAPY = Extract<ExtraFarmTokens, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "sfrxETH" | "pzETH" | "ezETH" | "Re7LRT" | "rsETH" | "weETH" | "rswETH" | "rstETH" | "steakLRT" | "amphrETH" | "pufETH" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "PT_sUSDe_27MAR2025" | "DVstETH" | "PT_sUSDe_29MAY2025" | "tETH">;
|
|
93597
93562
|
type LRTAndLSTTokens = Exclude<ExtraFarmTokens, "USDe">;
|
|
93598
93563
|
declare const isExtraFarmToken: (t: unknown) => t is ExtraFarmTokens;
|
|
93599
93564
|
declare const isLRT_LSTToken: (t: unknown) => t is LRTAndLSTTokens;
|
package/dist/esm/sdk/index.mjs
CHANGED
|
@@ -759,11 +759,6 @@ var iMarketCompressorAbi = [
|
|
|
759
759
|
}
|
|
760
760
|
]
|
|
761
761
|
},
|
|
762
|
-
{
|
|
763
|
-
name: "description",
|
|
764
|
-
type: "string",
|
|
765
|
-
internalType: "string"
|
|
766
|
-
},
|
|
767
762
|
{ name: "decimals", type: "uint8", internalType: "uint8" },
|
|
768
763
|
{ name: "skipCheck", type: "bool", internalType: "bool" },
|
|
769
764
|
{ name: "updatable", type: "bool", internalType: "bool" },
|
|
@@ -1487,11 +1482,6 @@ var iMarketCompressorAbi = [
|
|
|
1487
1482
|
}
|
|
1488
1483
|
]
|
|
1489
1484
|
},
|
|
1490
|
-
{
|
|
1491
|
-
name: "description",
|
|
1492
|
-
type: "string",
|
|
1493
|
-
internalType: "string"
|
|
1494
|
-
},
|
|
1495
1485
|
{ name: "decimals", type: "uint8", internalType: "uint8" },
|
|
1496
1486
|
{ name: "skipCheck", type: "bool", internalType: "bool" },
|
|
1497
1487
|
{ name: "updatable", type: "bool", internalType: "bool" },
|
|
@@ -2230,11 +2220,6 @@ var iMarketCompressorAbi = [
|
|
|
2230
2220
|
}
|
|
2231
2221
|
]
|
|
2232
2222
|
},
|
|
2233
|
-
{
|
|
2234
|
-
name: "description",
|
|
2235
|
-
type: "string",
|
|
2236
|
-
internalType: "string"
|
|
2237
|
-
},
|
|
2238
2223
|
{ name: "decimals", type: "uint8", internalType: "uint8" },
|
|
2239
2224
|
{ name: "skipCheck", type: "bool", internalType: "bool" },
|
|
2240
2225
|
{ name: "updatable", type: "bool", internalType: "bool" },
|
|
@@ -2712,7 +2697,6 @@ var iPriceFeedCompressorAbi = [
|
|
|
2712
2697
|
}
|
|
2713
2698
|
]
|
|
2714
2699
|
},
|
|
2715
|
-
{ name: "description", type: "string", internalType: "string" },
|
|
2716
2700
|
{ name: "decimals", type: "uint8", internalType: "uint8" },
|
|
2717
2701
|
{ name: "skipCheck", type: "bool", internalType: "bool" },
|
|
2718
2702
|
{ name: "updatable", type: "bool", internalType: "bool" },
|
|
@@ -2781,7 +2765,6 @@ var iPriceFeedCompressorAbi = [
|
|
|
2781
2765
|
}
|
|
2782
2766
|
]
|
|
2783
2767
|
},
|
|
2784
|
-
{ name: "description", type: "string", internalType: "string" },
|
|
2785
2768
|
{ name: "decimals", type: "uint8", internalType: "uint8" },
|
|
2786
2769
|
{ name: "skipCheck", type: "bool", internalType: "bool" },
|
|
2787
2770
|
{ name: "updatable", type: "bool", internalType: "bool" },
|
|
@@ -2841,7 +2824,6 @@ var iPriceFeedCompressorAbi = [
|
|
|
2841
2824
|
}
|
|
2842
2825
|
]
|
|
2843
2826
|
},
|
|
2844
|
-
{ name: "description", type: "string", internalType: "string" },
|
|
2845
2827
|
{ name: "decimals", type: "uint8", internalType: "uint8" },
|
|
2846
2828
|
{ name: "skipCheck", type: "bool", internalType: "bool" },
|
|
2847
2829
|
{ name: "updatable", type: "bool", internalType: "bool" },
|
|
@@ -65431,7 +65413,6 @@ function assetsMap(assets) {
|
|
|
65431
65413
|
// src/sdk/accounts/CreditAccountsService.ts
|
|
65432
65414
|
var CreditAccountsService = class extends SDKConstruct {
|
|
65433
65415
|
#compressor;
|
|
65434
|
-
#rewardCompressor;
|
|
65435
65416
|
#batchSize;
|
|
65436
65417
|
#logger;
|
|
65437
65418
|
constructor(sdk, options) {
|
|
@@ -65439,9 +65420,6 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
65439
65420
|
this.#compressor = sdk.addressProvider.getLatestVersion(
|
|
65440
65421
|
AP_CREDIT_ACCOUNT_COMPRESSOR
|
|
65441
65422
|
);
|
|
65442
|
-
this.#rewardCompressor = sdk.addressProvider.getLatestVersion(
|
|
65443
|
-
AP_REWARDS_COMPRESSOR
|
|
65444
|
-
);
|
|
65445
65423
|
this.#batchSize = options?.batchSize;
|
|
65446
65424
|
this.#logger = childLogger("CreditAccountsService", sdk.logger);
|
|
65447
65425
|
}
|
|
@@ -65547,7 +65525,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
65547
65525
|
async getRewards(account) {
|
|
65548
65526
|
const rewards = await this.provider.publicClient.readContract({
|
|
65549
65527
|
abi: iRewardCompressorAbi,
|
|
65550
|
-
address: this
|
|
65528
|
+
address: this.rewardCompressor,
|
|
65551
65529
|
functionName: "getRewards",
|
|
65552
65530
|
args: [account]
|
|
65553
65531
|
});
|
|
@@ -66139,6 +66117,9 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
66139
66117
|
get marketConfigurators() {
|
|
66140
66118
|
return this.sdk.marketRegister.marketConfigurators.map((mc) => mc.address);
|
|
66141
66119
|
}
|
|
66120
|
+
get rewardCompressor() {
|
|
66121
|
+
return this.sdk.addressProvider.getLatestVersion(AP_REWARDS_COMPRESSOR);
|
|
66122
|
+
}
|
|
66142
66123
|
};
|
|
66143
66124
|
|
|
66144
66125
|
// src/sdk/bots/BotsService.ts
|
|
@@ -66593,7 +66574,8 @@ var EXTRA_FARM_TOKENS = {
|
|
|
66593
66574
|
PT_sUSDe_27MAR2025: true,
|
|
66594
66575
|
DVstETH: true,
|
|
66595
66576
|
beraSTONE: true,
|
|
66596
|
-
PT_sUSDe_29MAY2025: true
|
|
66577
|
+
PT_sUSDe_29MAY2025: true,
|
|
66578
|
+
tETH: true
|
|
66597
66579
|
};
|
|
66598
66580
|
var isExtraFarmToken = (t) => {
|
|
66599
66581
|
if (typeof t !== "string") return false;
|
|
@@ -66626,7 +66608,8 @@ var EXTRA_TOKENS_WITH_APY = {
|
|
|
66626
66608
|
PT_corn_eBTC_27MAR2025: true,
|
|
66627
66609
|
PT_corn_pumpBTC_26DEC2024: true,
|
|
66628
66610
|
PT_sUSDe_27MAR2025: true,
|
|
66629
|
-
PT_sUSDe_29MAY2025: true
|
|
66611
|
+
PT_sUSDe_29MAY2025: true,
|
|
66612
|
+
tETH: true
|
|
66630
66613
|
};
|
|
66631
66614
|
var isExtraTokenWithAPY = (t) => {
|
|
66632
66615
|
if (typeof t !== "string") return false;
|