@kamino-finance/klend-sdk 8.1.0 → 9.0.1
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/classes/action.d.ts +93 -11
- package/dist/classes/action.d.ts.map +1 -1
- package/dist/classes/action.js +445 -102
- package/dist/classes/action.js.map +1 -1
- package/dist/classes/actionTypes.d.ts +35 -0
- package/dist/classes/actionTypes.d.ts.map +1 -1
- package/dist/classes/borrowOrder.d.ts +4 -0
- package/dist/classes/borrowOrder.d.ts.map +1 -1
- package/dist/classes/borrowOrder.js +6 -0
- package/dist/classes/borrowOrder.js.map +1 -1
- package/dist/classes/obligation.d.ts +27 -1
- package/dist/classes/obligation.d.ts.map +1 -1
- package/dist/classes/obligation.js +86 -36
- package/dist/classes/obligation.js.map +1 -1
- package/dist/classes/reserve.d.ts +13 -4
- package/dist/classes/reserve.d.ts.map +1 -1
- package/dist/classes/reserve.js +23 -4
- package/dist/classes/reserve.js.map +1 -1
- package/dist/classes/vault.d.ts +2 -2
- package/dist/classes/vault.d.ts.map +1 -1
- package/dist/classes/vault.js +7 -5
- package/dist/classes/vault.js.map +1 -1
- package/dist/lending_operations/swap_collateral_operations.d.ts +2 -1
- package/dist/lending_operations/swap_collateral_operations.d.ts.map +1 -1
- package/dist/lending_operations/swap_collateral_operations.js +14 -4
- package/dist/lending_operations/swap_collateral_operations.js.map +1 -1
- package/dist/lending_operations/swap_debt_operations.d.ts.map +1 -1
- package/dist/lending_operations/swap_debt_operations.js +15 -9
- package/dist/lending_operations/swap_debt_operations.js.map +1 -1
- package/dist/leverage/flashBorrowType.d.ts +17 -11
- package/dist/leverage/flashBorrowType.d.ts.map +1 -1
- package/dist/leverage/flashBorrowType.js +35 -14
- package/dist/leverage/flashBorrowType.js.map +1 -1
- package/dist/leverage/utils.d.ts +19 -7
- package/dist/leverage/utils.d.ts.map +1 -1
- package/dist/leverage/utils.js +25 -10
- package/dist/leverage/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/classes/action.ts +610 -179
- package/src/classes/actionTypes.ts +36 -0
- package/src/classes/borrowOrder.ts +7 -0
- package/src/classes/obligation.ts +115 -43
- package/src/classes/reserve.ts +24 -4
- package/src/classes/vault.ts +9 -7
- package/src/lending_operations/swap_collateral_operations.ts +24 -4
- package/src/lending_operations/swap_debt_operations.ts +6 -1
- package/src/leverage/flashBorrowType.ts +68 -27
- package/src/leverage/utils.ts +31 -14
package/dist/classes/action.d.ts
CHANGED
|
@@ -8,9 +8,25 @@ import { KaminoReserve } from './reserve';
|
|
|
8
8
|
import { ProgressCallbackType } from '../@codegen/klend/types';
|
|
9
9
|
import { Scope } from '@kamino-finance/scope-sdk';
|
|
10
10
|
import { ObligationOrderAtIndex } from './obligationOrder';
|
|
11
|
-
import { BuildDepositTxnsProps, BuildBorrowTxnsProps, BuildBorrowRolloverConfigIxsProps, BuildDepositReserveLiquidityTxnsProps, BuildRedeemReserveCollateralTxnsProps, BuildWithdrawTxnsProps, BuildWithdrawFromObligationAndEnqueueTxnsProps, BuildRepayTxnsProps, BuildDepositAndBorrowTxnsProps, BuildRefreshObligationTxnsProps, BuildRolloverFixedTermBorrowTxnsProps, BuildRequestElevationGroupTxnsProps, BuildDepositAndWithdrawV2TxnsProps, BuildRepayAndWithdrawTxnsProps, BuildRepayAndWithdrawV2TxnsProps, BuildLiquidateTxnsProps, BuildWithdrawReferrerFeeTxnsProps, BuildDepositObligationCollateralTxnsProps, BuildDepositAndSetBorrowOrderTxnsProps, InitializeActionProps } from './actionTypes';
|
|
11
|
+
import { BuildDepositTxnsProps, BuildBorrowTxnsProps, BuildBorrowRolloverConfigIxsProps, BuildDepositReserveLiquidityTxnsProps, BuildRedeemReserveCollateralTxnsProps, BuildWithdrawTxnsProps, BuildWithdrawFromObligationAndEnqueueTxnsProps, BuildRepayTxnsProps, BuildDepositAndBorrowTxnsProps, BuildRefreshObligationTxnsProps, BuildRolloverFixedTermBorrowTxnsProps, BuildRequestElevationGroupTxnsProps, BuildDepositAndWithdrawV2TxnsProps, BuildRepayAndWithdrawTxnsProps, BuildRepayAndWithdrawV2TxnsProps, BuildLiquidateTxnsProps, BuildWithdrawReferrerFeeTxnsProps, BuildDepositObligationCollateralTxnsProps, BuildDepositAndSetBorrowOrderTxnsProps, BuildDepositAndFillBorrowOrderTxnsProps, InitializeActionProps } from './actionTypes';
|
|
12
12
|
export type ActionType = 'deposit' | 'borrow' | 'withdraw' | 'repay' | 'mint' | 'redeem' | 'depositCollateral' | 'liquidate' | 'depositAndBorrow' | 'repayAndWithdraw' | 'refreshObligation' | 'requestElevationGroup' | 'withdrawReferrerFees' | 'repayAndWithdrawV2' | 'depositAndWithdraw' | 'withdrawAndEnqueue' | 'setBorrowOrder' | 'fillBorrowOrder';
|
|
13
13
|
export type AuxiliaryIx = 'setup' | 'inBetween' | 'cleanup';
|
|
14
|
+
type InitUserMetadataConfig = {
|
|
15
|
+
skipInitialization: boolean;
|
|
16
|
+
skipLutCreation: boolean;
|
|
17
|
+
};
|
|
18
|
+
interface AddSupportIxsOptions {
|
|
19
|
+
action: ActionType;
|
|
20
|
+
includeAtaIxs: boolean;
|
|
21
|
+
requestElevationGroup?: boolean;
|
|
22
|
+
addInitObligationForFarm?: boolean;
|
|
23
|
+
useV2Ixs: boolean;
|
|
24
|
+
scopeRefreshConfig: ScopePriceRefreshConfig | undefined;
|
|
25
|
+
initUserMetadata: InitUserMetadataConfig;
|
|
26
|
+
twoTokenAction?: boolean;
|
|
27
|
+
overrideElevationGroupRequest?: number;
|
|
28
|
+
addUserAndObligationInitIxs?: boolean;
|
|
29
|
+
}
|
|
14
30
|
export declare class KaminoAction {
|
|
15
31
|
kaminoMarket: KaminoMarket;
|
|
16
32
|
reserve: KaminoReserve;
|
|
@@ -54,6 +70,7 @@ export declare class KaminoAction {
|
|
|
54
70
|
static buildRefreshObligationTxns(props: BuildRefreshObligationTxnsProps): Promise<KaminoAction>;
|
|
55
71
|
static buildRequestElevationGroupTxns(props: BuildRequestElevationGroupTxnsProps): Promise<KaminoAction>;
|
|
56
72
|
static buildDepositTxns(props: BuildDepositTxnsProps): Promise<KaminoAction>;
|
|
73
|
+
private static buildDepositTxnsInternal;
|
|
57
74
|
static buildDepositAndSetBorrowOrderTxns(props: BuildDepositAndSetBorrowOrderTxnsProps): Promise<KaminoAction>;
|
|
58
75
|
/**
|
|
59
76
|
* Builds a transaction that rolls an existing borrow over from one reserve into another (the
|
|
@@ -185,6 +202,30 @@ export declare class KaminoAction {
|
|
|
185
202
|
* @param reserve - the reserve that provides the borrow liquidity
|
|
186
203
|
*/
|
|
187
204
|
static buildFillBorrowOrderIx(payer: TransactionSigner, kaminoMarket: KaminoMarket, obligation: KaminoObligation, reserve: KaminoReserve): Promise<Instruction>;
|
|
205
|
+
/**
|
|
206
|
+
* Builds a lender flow that deposits liquidity into the reserve matching a borrower's borrow order and fills
|
|
207
|
+
* that order in the same flow. The lender deposit is recorded as lender obligation collateral, not as cTokens
|
|
208
|
+
* in the lender's wallet. The fill reserve is selected from the order's debt mint among the
|
|
209
|
+
* reserves that can fill the order on-chain (the term + rate gates of
|
|
210
|
+
* {@link KaminoObligation.getCompatibleBorrowOrderFillReserves}); a fixed-term order is restricted to
|
|
211
|
+
* fixed/maturity-term reserves (never an open-term float reserve). Among those, it picks the lender-favorable
|
|
212
|
+
* one: the highest peak borrow rate, tie-broken by the shortest remaining term (the shortest active cap among
|
|
213
|
+
* configured term and/or seconds until maturity). It throws if no reserve can fill the order. By default the
|
|
214
|
+
* lender deposits exactly enough to fully fill the order (its
|
|
215
|
+
* remaining debt plus the borrow origination/referrer fees); pass `amount` to deposit a specific amount
|
|
216
|
+
* instead - a smaller amount may partially fill the order (subject to the order's on-chain min-fill and
|
|
217
|
+
* min-remainder constraints), a larger one fully fills it and leaves the excess as lender obligation collateral.
|
|
218
|
+
*
|
|
219
|
+
* The borrower's obligation is expected to hold an active borrow order. When the flow requires accounts that can
|
|
220
|
+
* be initialized before the main deposit/fill transaction - lender metadata, the lender obligation, lender
|
|
221
|
+
* collateral farm state, borrower debt farm state, or the referrer's token state for the fill reserve - the
|
|
222
|
+
* result returns those setup instructions separately in `preFillSetupIxs`. Send them before the main `action`
|
|
223
|
+
* when the array is non-empty. This means the lender may pay rent for borrower-side accounts, and that rent is
|
|
224
|
+
* not reclaimable.
|
|
225
|
+
*
|
|
226
|
+
* @returns the composed {@link KaminoAction} together with the chosen fill reserve and the deposited amount.
|
|
227
|
+
*/
|
|
228
|
+
static buildDepositAndFillBorrowOrderTxns(props: BuildDepositAndFillBorrowOrderTxnsProps): Promise<DepositAndFillBorrowOrderResult>;
|
|
188
229
|
addDepositReserveLiquidityIx(): Promise<void>;
|
|
189
230
|
addRedeemReserveCollateralIx(): Promise<void>;
|
|
190
231
|
addDepositIx(): Promise<void>;
|
|
@@ -217,13 +258,15 @@ export declare class KaminoAction {
|
|
|
217
258
|
addInBetweenIxs(action: ActionType, includeAtaIxs: boolean, requestElevationGroup: boolean, addInitObligationForFarm: boolean, useV2Ixs: boolean, overrideElevationGroupRequest?: number): Promise<void>;
|
|
218
259
|
addRefreshObligation(crank: TransactionSigner): Promise<void>;
|
|
219
260
|
addSupportIxsWithoutInitObligation(action: ActionType, includeAtaIxs: boolean, useV2Ixs: boolean, addAsSupportIx?: AuxiliaryIx, requestElevationGroup?: boolean, addInitObligationForFarm?: boolean, twoTokenAction?: boolean, overrideElevationGroupRequest?: number): Promise<void>;
|
|
220
|
-
addSupportIxs(action
|
|
221
|
-
skipInitialization: boolean;
|
|
222
|
-
skipLutCreation: boolean;
|
|
223
|
-
}, twoTokenAction?: boolean, overrideElevationGroupRequest?: number): Promise<void>;
|
|
261
|
+
addSupportIxs({ action, includeAtaIxs, requestElevationGroup, addInitObligationForFarm, useV2Ixs, scopeRefreshConfig, initUserMetadata, twoTokenAction, overrideElevationGroupRequest, addUserAndObligationInitIxs, }: AddSupportIxsOptions): Promise<void>;
|
|
224
262
|
private getSupportScopeRefreshReserves;
|
|
225
263
|
private addSupportScopeRefreshIxs;
|
|
264
|
+
private static emptyInstructionBundle;
|
|
265
|
+
private static appendInstructionBundle;
|
|
266
|
+
private static combineInstructionBundles;
|
|
267
|
+
private appendInstructionBundle;
|
|
226
268
|
private maybeAddUserMetadataIxs;
|
|
269
|
+
private static buildUserMetadataSetupIxs;
|
|
227
270
|
private addBorrowElevationSupportIxs;
|
|
228
271
|
private getBorrowElevationGroupRequest;
|
|
229
272
|
private getPreferredElevationGroupForBorrowPair;
|
|
@@ -237,20 +280,23 @@ export declare class KaminoAction {
|
|
|
237
280
|
private addInitObligationForFarm;
|
|
238
281
|
/**
|
|
239
282
|
* Appends already-built init-obligation-for-farm instructions (from {@link buildInitObligationForFarmIxs}) to
|
|
240
|
-
* the
|
|
241
|
-
* them in a deterministic order afterwards.
|
|
283
|
+
* the requested support instruction list. Callers that build several reserves' ixs concurrently use this to
|
|
284
|
+
* append them in a deterministic order afterwards.
|
|
242
285
|
*/
|
|
243
286
|
private pushInitObligationForFarmIxs;
|
|
244
287
|
/**
|
|
245
288
|
* Builds the `initObligationFarmsForReserve` instruction(s) needed for this reserve's farm of the given kind,
|
|
246
289
|
* without mutating the action. Returns an entry only when the reserve has that farm and the obligation's
|
|
247
|
-
* farm-user-state does not yet exist
|
|
248
|
-
*
|
|
249
|
-
* then append the resulting ixs in a deterministic order via {@link pushInitObligationForFarmIxs}.
|
|
290
|
+
* farm-user-state does not yet exist. This lets callers fetch existence checks concurrently and then append the
|
|
291
|
+
* resulting ixs in a deterministic order via {@link pushInitObligationForFarmIxs}.
|
|
250
292
|
*/
|
|
251
293
|
private buildInitObligationForFarmIxs;
|
|
294
|
+
private static buildInitObligationFarmForReserveSetupIxs;
|
|
252
295
|
private addInitObligationIxs;
|
|
253
|
-
private
|
|
296
|
+
private static buildInitObligationSetupIxs;
|
|
297
|
+
private static buildDepositOwnerPreActionSetupIxs;
|
|
298
|
+
private static buildDepositAndFillBorrowOrderSetupIxs;
|
|
299
|
+
private static buildReferrerTokenStateSetupIxs;
|
|
254
300
|
private addInitReferrerTokenStateIx;
|
|
255
301
|
private addWithdrawReferrerFeesIxs;
|
|
256
302
|
private addComputeBudgetIx;
|
|
@@ -279,4 +325,40 @@ export declare class KaminoAction {
|
|
|
279
325
|
private static getReferrerKey;
|
|
280
326
|
private static getReferrerTokenStateAddressImpl;
|
|
281
327
|
}
|
|
328
|
+
/**
|
|
329
|
+
* Result of {@link KaminoAction.buildDepositAndFillBorrowOrderTxns}.
|
|
330
|
+
*/
|
|
331
|
+
export interface DepositAndFillBorrowOrderResult {
|
|
332
|
+
/**
|
|
333
|
+
* Setup instructions that must be sent before `action` when non-empty. These create accounts that are safe to
|
|
334
|
+
* initialize before the main deposit/fill transaction, such as lender user metadata, the lender obligation,
|
|
335
|
+
* lender collateral farm state, borrower debt farm state, or referrer token state.
|
|
336
|
+
*/
|
|
337
|
+
preFillSetupIxs: Instruction[];
|
|
338
|
+
/**
|
|
339
|
+
* Labels for `preFillSetupIxs`.
|
|
340
|
+
*/
|
|
341
|
+
preFillSetupIxsLabels: string[];
|
|
342
|
+
/**
|
|
343
|
+
* Lookup table addresses created by `preFillSetupIxs`.
|
|
344
|
+
*/
|
|
345
|
+
preFillSetupLuts: Address[];
|
|
346
|
+
/**
|
|
347
|
+
* The composed main action: the lender deposit, reserve refreshes, borrower-obligation refresh, and fill. Send
|
|
348
|
+
* `preFillSetupIxs` first when they are non-empty.
|
|
349
|
+
*/
|
|
350
|
+
action: KaminoAction;
|
|
351
|
+
/**
|
|
352
|
+
* The reserve selected for the fill: among the order's debt-mint reserves that can fill it on-chain (a
|
|
353
|
+
* fixed-term order excludes open-term float reserves), the lender-favorable one - highest peak borrow rate,
|
|
354
|
+
* tie-broken by shortest remaining term.
|
|
355
|
+
*/
|
|
356
|
+
fillReserve: KaminoReserve;
|
|
357
|
+
/**
|
|
358
|
+
* The liquidity amount the lender deposits: the `amount` prop when provided, otherwise exactly enough to fully
|
|
359
|
+
* fill the order (its remaining debt plus the borrow origination/referrer fees).
|
|
360
|
+
*/
|
|
361
|
+
depositedAmount: BN;
|
|
362
|
+
}
|
|
363
|
+
export {};
|
|
282
364
|
//# sourceMappingURL=action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/classes/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EAEP,WAAW,EACX,WAAW,EAIX,MAAM,EACN,IAAI,EAEJ,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,MAAM,OAAO,CAAC;AAgDvB,OAAO,EAWL,cAAc,EAGd,uBAAuB,EAMxB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,EAA8B,YAAY,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,EAAsB,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAA+C,MAAM,yBAAyB,CAAC;AAG5G,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAU3D,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,iCAAiC,EACjC,qCAAqC,EACrC,qCAAqC,EACrC,sBAAsB,EACtB,8CAA8C,EAC9C,mBAAmB,EACnB,8BAA8B,EAC9B,+BAA+B,EAC/B,qCAAqC,EACrC,mCAAmC,EACnC,kCAAkC,EAClC,8BAA8B,EAC9B,gCAAgC,EAChC,uBAAuB,EACvB,iCAAiC,EACjC,yCAAyC,EACzC,sCAAsC,EACtC,qBAAqB,EAEtB,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,QAAQ,GACR,mBAAmB,GACnB,WAAW,GACX,kBAAkB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