@gearbox-protocol/sdk 3.0.0-vfour.23 → 3.0.0-vfour.25
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/dev/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Block, Hex, Prettify, Client, Transport, Chain, TestActions, PublicClient, WalletClient, TestRpcSchema } from 'viem';
|
|
2
2
|
import { GearboxSDK, CreditAccountData, ILogger, CreditFactory } from '../sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -76,4 +76,4 @@ declare function evmMineDetailed(client: Client<any, any, any, AnvilRPCSchema, a
|
|
|
76
76
|
*/
|
|
77
77
|
declare function setLTs(sdk: GearboxSDK, cm: CreditFactory, newLTs: Record<Address, number>, logger?: ILogger): Promise<void>;
|
|
78
78
|
|
|
79
|
-
export { type AnvilActions, type AnvilClient, type AnvilClientConfig,
|
|
79
|
+
export { type AnvilActions, type AnvilClient, type AnvilClientConfig, calcLiquidatableLTs, createAnvilClient, evmMineDetailed, isAnvil, setLTs };
|
package/dist/cjs/sdk/index.cjs
CHANGED
|
@@ -13232,8 +13232,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
13232
13232
|
maxHealthFactor = 65535,
|
|
13233
13233
|
// TODO: this will change to bigint
|
|
13234
13234
|
minHealthFactor = 0,
|
|
13235
|
-
owner = ADDRESS_0X0
|
|
13236
|
-
batchLimit
|
|
13235
|
+
owner = ADDRESS_0X0
|
|
13237
13236
|
} = args ?? {};
|
|
13238
13237
|
const arg0 = creditManager ?? {
|
|
13239
13238
|
curators: [],
|
|
@@ -13252,9 +13251,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
13252
13251
|
let offset = 0n;
|
|
13253
13252
|
do {
|
|
13254
13253
|
const [accounts, newOffset] = await this.#getCreditAccounts(
|
|
13255
|
-
[arg0, { ...caFilter, reverting }, offset,
|
|
13256
|
-
Boolean
|
|
13257
|
-
),
|
|
13254
|
+
[arg0, { ...caFilter, reverting }, offset],
|
|
13258
13255
|
priceUpdateTxs,
|
|
13259
13256
|
options
|
|
13260
13257
|
);
|
|
@@ -13289,7 +13286,8 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
13289
13286
|
account.creditAccount,
|
|
13290
13287
|
recipient,
|
|
13291
13288
|
[...priceUpdates, ...preview.calls]
|
|
13292
|
-
]
|
|
13289
|
+
],
|
|
13290
|
+
description: `fully liquidate ${account.creditAccount}`
|
|
13293
13291
|
});
|
|
13294
13292
|
}
|
|
13295
13293
|
/**
|
|
@@ -13316,7 +13314,8 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
13316
13314
|
);
|
|
13317
13315
|
return cm.creditFacade.createRawTx({
|
|
13318
13316
|
functionName: operation === "close" ? "closeCreditAccount" : "multicall",
|
|
13319
|
-
args: [ca.creditAccount, calls]
|
|
13317
|
+
args: [ca.creditAccount, calls],
|
|
13318
|
+
description: `${operation} account ${ca.creditAccount}`
|
|
13320
13319
|
});
|
|
13321
13320
|
}
|
|
13322
13321
|
/**
|
package/dist/cjs/sdk/index.d.ts
CHANGED
|
@@ -17212,7 +17212,6 @@ interface CreditAccountFilter {
|
|
|
17212
17212
|
includeZeroDebt?: boolean;
|
|
17213
17213
|
minHealthFactor?: number;
|
|
17214
17214
|
maxHealthFactor?: number;
|
|
17215
|
-
batchLimit?: bigint;
|
|
17216
17215
|
}
|
|
17217
17216
|
declare class CreditAccountsService extends SDKConstruct {
|
|
17218
17217
|
#private;
|
package/dist/esm/dev/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Block, Hex, Prettify, Client, Transport, Chain, TestActions, PublicClient, WalletClient, TestRpcSchema } from 'viem';
|
|
2
2
|
import { GearboxSDK, CreditAccountData, ILogger, CreditFactory } from '../sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -76,4 +76,4 @@ declare function evmMineDetailed(client: Client<any, any, any, AnvilRPCSchema, a
|
|
|
76
76
|
*/
|
|
77
77
|
declare function setLTs(sdk: GearboxSDK, cm: CreditFactory, newLTs: Record<Address, number>, logger?: ILogger): Promise<void>;
|
|
78
78
|
|
|
79
|
-
export { type AnvilActions, type AnvilClient, type AnvilClientConfig,
|
|
79
|
+
export { type AnvilActions, type AnvilClient, type AnvilClientConfig, calcLiquidatableLTs, createAnvilClient, evmMineDetailed, isAnvil, setLTs };
|
package/dist/esm/sdk/index.d.mts
CHANGED
|
@@ -17212,7 +17212,6 @@ interface CreditAccountFilter {
|
|
|
17212
17212
|
includeZeroDebt?: boolean;
|
|
17213
17213
|
minHealthFactor?: number;
|
|
17214
17214
|
maxHealthFactor?: number;
|
|
17215
|
-
batchLimit?: bigint;
|
|
17216
17215
|
}
|
|
17217
17216
|
declare class CreditAccountsService extends SDKConstruct {
|
|
17218
17217
|
#private;
|
package/dist/esm/sdk/index.mjs
CHANGED
|
@@ -13230,8 +13230,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
13230
13230
|
maxHealthFactor = 65535,
|
|
13231
13231
|
// TODO: this will change to bigint
|
|
13232
13232
|
minHealthFactor = 0,
|
|
13233
|
-
owner = ADDRESS_0X0
|
|
13234
|
-
batchLimit
|
|
13233
|
+
owner = ADDRESS_0X0
|
|
13235
13234
|
} = args ?? {};
|
|
13236
13235
|
const arg0 = creditManager ?? {
|
|
13237
13236
|
curators: [],
|
|
@@ -13250,9 +13249,7 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
13250
13249
|
let offset = 0n;
|
|
13251
13250
|
do {
|
|
13252
13251
|
const [accounts, newOffset] = await this.#getCreditAccounts(
|
|
13253
|
-
[arg0, { ...caFilter, reverting }, offset,
|
|
13254
|
-
Boolean
|
|
13255
|
-
),
|
|
13252
|
+
[arg0, { ...caFilter, reverting }, offset],
|
|
13256
13253
|
priceUpdateTxs,
|
|
13257
13254
|
options
|
|
13258
13255
|
);
|
|
@@ -13287,7 +13284,8 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
13287
13284
|
account.creditAccount,
|
|
13288
13285
|
recipient,
|
|
13289
13286
|
[...priceUpdates, ...preview.calls]
|
|
13290
|
-
]
|
|
13287
|
+
],
|
|
13288
|
+
description: `fully liquidate ${account.creditAccount}`
|
|
13291
13289
|
});
|
|
13292
13290
|
}
|
|
13293
13291
|
/**
|
|
@@ -13314,7 +13312,8 @@ var CreditAccountsService = class extends SDKConstruct {
|
|
|
13314
13312
|
);
|
|
13315
13313
|
return cm.creditFacade.createRawTx({
|
|
13316
13314
|
functionName: operation === "close" ? "closeCreditAccount" : "multicall",
|
|
13317
|
-
args: [ca.creditAccount, calls]
|
|
13315
|
+
args: [ca.creditAccount, calls],
|
|
13316
|
+
description: `${operation} account ${ca.creditAccount}`
|
|
13318
13317
|
});
|
|
13319
13318
|
}
|
|
13320
13319
|
/**
|