Skip to content

Commit c9cf0dd

Browse files
committed
fix: bump sdk
1 parent af57ae6 commit c9cf0dd

File tree

7 files changed

+1087
-1375
lines changed

7 files changed

+1087
-1375
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
33
"extends": ["@gearbox-protocol/biome-config"],
44
"vcs": {
55
"enabled": true,

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,37 @@
2121
"pino-pretty": "^13.1.3"
2222
},
2323
"devDependencies": {
24-
"@aws-sdk/client-s3": "^3.948.0",
25-
"@biomejs/biome": "^2.3.8",
24+
"@aws-sdk/client-s3": "^3.955.0",
25+
"@biomejs/biome": "^2.3.10",
2626
"@commander-js/extra-typings": "^14.0.0",
2727
"@commitlint/cli": "^20.2.0",
2828
"@commitlint/config-conventional": "^20.2.0",
29-
"@gearbox-protocol/biome-config": "^1.0.14",
30-
"@gearbox-protocol/cli-utils": "^5.63.2",
29+
"@gearbox-protocol/biome-config": "^1.0.16",
30+
"@gearbox-protocol/cli-utils": "^5.64.1",
3131
"@gearbox-protocol/liquidator-contracts": "^1.36.0-experimental.67",
3232
"@gearbox-protocol/liquidator-v2-contracts": "^2.4.0",
33-
"@gearbox-protocol/sdk": "11.12.0",
33+
"@gearbox-protocol/sdk": "12.0.0",
3434
"@gearbox-protocol/types": "^1.14.8",
35-
"@types/node": "^25.0.1",
35+
"@types/node": "^25.0.3",
3636
"@uniswap/sdk-core": "^7.10.0",
37-
"@uniswap/v3-sdk": "^3.26.0",
37+
"@uniswap/v3-sdk": "^3.27.0",
3838
"@vlad-yakovlev/telegram-md": "^2.1.0",
39-
"abitype": "^1.2.2",
39+
"abitype": "^1.2.3",
4040
"axios": "^1.13.2",
4141
"axios-retry": "^4.5.0",
4242
"date-fns": "^4.1.0",
4343
"di-at-home": "^0.0.7",
44-
"esbuild": "^0.27.1",
44+
"esbuild": "^0.27.2",
4545
"husky": "^9.1.7",
4646
"lint-staged": "^16.2.7",
4747
"nanoid": "^5.1.6",
4848
"node-pty": "^1.0.0",
4949
"pino": "^10.1.0",
5050
"tsx": "4.21.0",
5151
"typescript": "^5.9.3",
52-
"viem": "^2.41.2",
53-
"vitest": "^4.0.15",
54-
"zod": "^4.1.13"
52+
"viem": "^2.43.2",
53+
"vitest": "^4.0.16",
54+
"zod": "^4.2.1"
5555
},
5656
"commitlint": {
5757
"extends": [

src/services/liquidate/AccountHelper.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ export default abstract class AccountHelper {
1515
ca: CreditAccountData,
1616
v: VersionRange,
1717
): boolean {
18-
return isVersionRange(
19-
this.sdk.contracts.mustGet(ca.creditFacade).version,
20-
v,
21-
);
18+
return isVersionRange(this.sdk.mustGetContract(ca.creditFacade).version, v);
2219
}
2320

2421
/**

src/services/liquidate/BatchLiquidator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export default class BatchLiquidator
255255
};
256256
const results = accounts.map(
257257
(a): OptimisticResult<bigint> => ({
258-
callsHuman: this.sdk.parseMultiCall([
258+
callsHuman: this.sdk.stringifyMultiCall([
259259
...(batch[a.creditAccount]?.calls ?? []),
260260
]),
261261
balancesBefore: filterDustUSD({ account: a, sdk: this.sdk }),

src/services/liquidate/SingularLiquidator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export default class SingularLiquidator
161161
try {
162162
const preview = await s.preview(ca);
163163
skipOnFailure ||= !!preview.skipOnFailure;
164-
pathHuman = this.creditAccountService.sdk.parseMultiCall([
164+
pathHuman = this.creditAccountService.sdk.stringifyMultiCall([
165165
...preview.calls,
166166
]);
167167
this.logger.debug({ pathHuman }, "path found");
@@ -238,7 +238,7 @@ export default class SingularLiquidator
238238
result.flashLoanAmount = strategyResult.preview?.flashLoanAmount;
239239
result.calls = strategyResult.preview?.calls as MultiCall[];
240240
result.pathAmount = strategyResult.preview?.underlyingBalance ?? 0n;
241-
result.callsHuman = this.creditAccountService.sdk.parseMultiCall([
241+
result.callsHuman = this.creditAccountService.sdk.stringifyMultiCall([
242242
...(strategyResult.preview?.calls ?? []),
243243
]);
244244

src/services/liquidate/partial/PartialContractsDeployer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ const FACTORIES: IPartialLiqudatorContractFactory[] = [
3030
];
3131

3232
export class PartialContractsDeployer extends SDKConstruct {
33-
@Logger("Liquidator")
33+
@Logger("PartialContractsDeployer")
34+
// @ts-expect-error
3435
logger!: ILogger;
3536
/**
3637
* mapping of credit manager address to deployed partial liquidator

0 commit comments

Comments
 (0)