@kamino-finance/klend-sdk 7.4.0-beta.2 → 7.4.0-beta.4
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/@codegen/klend/accounts/LendingMarket.d.ts +150 -3
- package/dist/@codegen/klend/accounts/LendingMarket.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/LendingMarket.js +91 -2
- package/dist/@codegen/klend/accounts/LendingMarket.js.map +1 -1
- package/dist/@codegen/klend/accounts/Reserve.d.ts +6 -0
- package/dist/@codegen/klend/accounts/Reserve.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/Reserve.js +8 -1
- package/dist/@codegen/klend/accounts/Reserve.js.map +1 -1
- package/dist/@codegen/klend/accounts/WithdrawTicket.d.ts +144 -0
- package/dist/@codegen/klend/accounts/WithdrawTicket.d.ts.map +1 -0
- package/dist/@codegen/klend/accounts/WithdrawTicket.js +205 -0
- package/dist/@codegen/klend/accounts/WithdrawTicket.js.map +1 -0
- package/dist/@codegen/klend/accounts/index.d.ts +2 -0
- package/dist/@codegen/klend/accounts/index.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/index.js +3 -1
- package/dist/@codegen/klend/accounts/index.js.map +1 -1
- package/dist/@codegen/klend/errors/custom.d.ts +81 -1
- package/dist/@codegen/klend/errors/custom.d.ts.map +1 -1
- package/dist/@codegen/klend/errors/custom.js +142 -1
- package/dist/@codegen/klend/errors/custom.js.map +1 -1
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.d.ts +62 -0
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.js +79 -0
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.js.map +1 -0
- package/dist/@codegen/klend/instructions/index.d.ts +6 -0
- package/dist/@codegen/klend/instructions/index.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/index.js +8 -2
- package/dist/@codegen/klend/instructions/index.js.map +1 -1
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.d.ts +54 -0
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.js +66 -0
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.js.map +1 -0
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.d.ts +66 -0
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.js +41 -0
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.js.map +1 -0
- package/dist/@codegen/klend/types/BorrowOrder.d.ts +3 -3
- package/dist/@codegen/klend/types/BorrowOrder.js +1 -1
- package/dist/@codegen/klend/types/FixedTermBorrowRolloverConfig.d.ts +145 -0
- package/dist/@codegen/klend/types/FixedTermBorrowRolloverConfig.d.ts.map +1 -0
- package/dist/@codegen/klend/types/FixedTermBorrowRolloverConfig.js +144 -0
- package/dist/@codegen/klend/types/FixedTermBorrowRolloverConfig.js.map +1 -0
- package/dist/@codegen/klend/types/ObligationLiquidity.d.ts +29 -0
- package/dist/@codegen/klend/types/ObligationLiquidity.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ObligationLiquidity.js +15 -1
- package/dist/@codegen/klend/types/ObligationLiquidity.js.map +1 -1
- package/dist/@codegen/klend/types/ProgressCallbackType.d.ts +32 -0
- package/dist/@codegen/klend/types/ProgressCallbackType.d.ts.map +1 -0
- package/dist/@codegen/klend/types/ProgressCallbackType.js +108 -0
- package/dist/@codegen/klend/types/ProgressCallbackType.js.map +1 -0
- package/dist/@codegen/klend/types/ReserveLiquidity.d.ts +26 -8
- package/dist/@codegen/klend/types/ReserveLiquidity.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ReserveLiquidity.js +14 -8
- package/dist/@codegen/klend/types/ReserveLiquidity.js.map +1 -1
- package/dist/@codegen/klend/types/UpdateConfigMode.d.ts +7 -7
- package/dist/@codegen/klend/types/UpdateConfigMode.d.ts.map +1 -1
- package/dist/@codegen/klend/types/UpdateConfigMode.js +12 -12
- package/dist/@codegen/klend/types/UpdateConfigMode.js.map +1 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.d.ts +78 -0
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.d.ts.map +1 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.js +145 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.js.map +1 -1
- package/dist/@codegen/klend/types/WithdrawQueue.d.ts +64 -0
- package/dist/@codegen/klend/types/WithdrawQueue.d.ts.map +1 -0
- package/dist/@codegen/klend/types/WithdrawQueue.js +104 -0
- package/dist/@codegen/klend/types/WithdrawQueue.js.map +1 -0
- package/dist/@codegen/klend/types/index.d.ts +23 -4
- package/dist/@codegen/klend/types/index.d.ts.map +1 -1
- package/dist/@codegen/klend/types/index.js +7 -1
- package/dist/@codegen/klend/types/index.js.map +1 -1
- package/dist/classes/action.d.ts +11 -0
- package/dist/classes/action.d.ts.map +1 -1
- package/dist/classes/action.js +66 -0
- package/dist/classes/action.js.map +1 -1
- package/dist/classes/actionTypes.d.ts +29 -0
- package/dist/classes/actionTypes.d.ts.map +1 -1
- package/dist/classes/manager.d.ts +1 -1
- package/dist/classes/manager.d.ts.map +1 -1
- package/dist/classes/manager.js +9 -8
- package/dist/classes/manager.js.map +1 -1
- package/dist/classes/reserve.d.ts +2 -1
- package/dist/classes/reserve.d.ts.map +1 -1
- package/dist/classes/reserve.js +45 -31
- package/dist/classes/reserve.js.map +1 -1
- package/dist/idl/klend.json +860 -32
- package/dist/manager/client_kamino_manager.js +2 -3
- package/dist/manager/client_kamino_manager.js.map +1 -1
- package/dist/utils/seeds.d.ts +24 -0
- package/dist/utils/seeds.d.ts.map +1 -1
- package/dist/utils/seeds.js +41 -1
- package/dist/utils/seeds.js.map +1 -1
- package/package.json +1 -1
- package/src/@codegen/klend/accounts/LendingMarket.ts +205 -4
- package/src/@codegen/klend/accounts/Reserve.ts +12 -1
- package/src/@codegen/klend/accounts/WithdrawTicket.ts +280 -0
- package/src/@codegen/klend/accounts/index.ts +2 -0
- package/src/@codegen/klend/errors/custom.ts +161 -0
- package/src/@codegen/klend/instructions/enqueueToWithdraw.ts +120 -0
- package/src/@codegen/klend/instructions/index.ts +12 -0
- package/src/@codegen/klend/instructions/recoverInvalidTicketCollateral.ts +103 -0
- package/src/@codegen/klend/instructions/withdrawQueuedLiquidity.ts +118 -0
- package/src/@codegen/klend/types/BorrowOrder.ts +3 -3
- package/src/@codegen/klend/types/FixedTermBorrowRolloverConfig.ts +199 -0
- package/src/@codegen/klend/types/ObligationLiquidity.ts +37 -1
- package/src/@codegen/klend/types/ProgressCallbackType.ts +91 -0
- package/src/@codegen/klend/types/ReserveLiquidity.ts +30 -12
- package/src/@codegen/klend/types/UpdateConfigMode.ts +13 -13
- package/src/@codegen/klend/types/UpdateLendingMarketMode.ts +180 -0
- package/src/@codegen/klend/types/WithdrawQueue.ts +117 -0
- package/src/@codegen/klend/types/index.ts +42 -2
- package/src/classes/action.ts +115 -1
- package/src/classes/actionTypes.ts +31 -0
- package/src/classes/manager.ts +19 -27
- package/src/classes/reserve.ts +45 -44
- package/src/idl/klend.json +860 -32
- package/src/manager/client_kamino_manager.ts +2 -4
- package/src/utils/seeds.ts +49 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import BN from "bn.js";
|
|
2
|
+
import * as types from "../types";
|
|
3
|
+
export interface FixedTermBorrowRolloverConfigFields {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the borrow can be permissionlessly prolonged under the following *joint* conditions:
|
|
6
|
+
*
|
|
7
|
+
* The reserve used to re-borrow the liquidity must have:
|
|
8
|
+
* A) the exact same maximum borrow rate as the current one,
|
|
9
|
+
* B) the exact same debt term as the current one,
|
|
10
|
+
* C) sufficient available liquidity (including no withdraw tickets waiting in its queue).
|
|
11
|
+
*
|
|
12
|
+
* The time left until the current debt term expires must be:
|
|
13
|
+
* D) less than [LendingMarket::fixed_rollover_window_duration_seconds].
|
|
14
|
+
*
|
|
15
|
+
* Note: the other settings are only effective when this one is `1`.
|
|
16
|
+
*/
|
|
17
|
+
autoRolloverEnabled: number;
|
|
18
|
+
/**
|
|
19
|
+
* When `1`, partially lifts the condition *B* from [Self::auto_rollover_enabled]: additionally
|
|
20
|
+
* allows to use a variable (indefinite) debt term if less than
|
|
21
|
+
* [LendingMarket::variable_rollover_window_duration_seconds] is left until expiration.
|
|
22
|
+
*
|
|
23
|
+
* Note: typically this flag should be used together with [Self::max_borrow_rate_bps] set to
|
|
24
|
+
* `u32::MAX` (to denote a variable-rate reserve).
|
|
25
|
+
*/
|
|
26
|
+
openTermAllowed: number;
|
|
27
|
+
/** Internal alignment padding (free to reuse). */
|
|
28
|
+
alignmentPadding: Array<number>;
|
|
29
|
+
/**
|
|
30
|
+
* A customization setting that can lift the condition *A* from [Self::auto_rollover_enabled]:
|
|
31
|
+
* when not zeroed, the rollover may use a reserve with a maximum borrow rate equal or lower
|
|
32
|
+
* than the given one.
|
|
33
|
+
*/
|
|
34
|
+
maxBorrowRateBps: number;
|
|
35
|
+
/**
|
|
36
|
+
* A customization setting that can lift the condition *B* from [Self::auto_rollover_enabled]:
|
|
37
|
+
* when not zeroed, the rollover may use a reserve with a *fixed* debt term equal or longer
|
|
38
|
+
* than the given one.
|
|
39
|
+
*/
|
|
40
|
+
minDebtTermSeconds: BN;
|
|
41
|
+
}
|
|
42
|
+
export interface FixedTermBorrowRolloverConfigJSON {
|
|
43
|
+
/**
|
|
44
|
+
* Whether the borrow can be permissionlessly prolonged under the following *joint* conditions:
|
|
45
|
+
*
|
|
46
|
+
* The reserve used to re-borrow the liquidity must have:
|
|
47
|
+
* A) the exact same maximum borrow rate as the current one,
|
|
48
|
+
* B) the exact same debt term as the current one,
|
|
49
|
+
* C) sufficient available liquidity (including no withdraw tickets waiting in its queue).
|
|
50
|
+
*
|
|
51
|
+
* The time left until the current debt term expires must be:
|
|
52
|
+
* D) less than [LendingMarket::fixed_rollover_window_duration_seconds].
|
|
53
|
+
*
|
|
54
|
+
* Note: the other settings are only effective when this one is `1`.
|
|
55
|
+
*/
|
|
56
|
+
autoRolloverEnabled: number;
|
|
57
|
+
/**
|
|
58
|
+
* When `1`, partially lifts the condition *B* from [Self::auto_rollover_enabled]: additionally
|
|
59
|
+
* allows to use a variable (indefinite) debt term if less than
|
|
60
|
+
* [LendingMarket::variable_rollover_window_duration_seconds] is left until expiration.
|
|
61
|
+
*
|
|
62
|
+
* Note: typically this flag should be used together with [Self::max_borrow_rate_bps] set to
|
|
63
|
+
* `u32::MAX` (to denote a variable-rate reserve).
|
|
64
|
+
*/
|
|
65
|
+
openTermAllowed: number;
|
|
66
|
+
/** Internal alignment padding (free to reuse). */
|
|
67
|
+
alignmentPadding: Array<number>;
|
|
68
|
+
/**
|
|
69
|
+
* A customization setting that can lift the condition *A* from [Self::auto_rollover_enabled]:
|
|
70
|
+
* when not zeroed, the rollover may use a reserve with a maximum borrow rate equal or lower
|
|
71
|
+
* than the given one.
|
|
72
|
+
*/
|
|
73
|
+
maxBorrowRateBps: number;
|
|
74
|
+
/**
|
|
75
|
+
* A customization setting that can lift the condition *B* from [Self::auto_rollover_enabled]:
|
|
76
|
+
* when not zeroed, the rollover may use a reserve with a *fixed* debt term equal or longer
|
|
77
|
+
* than the given one.
|
|
78
|
+
*/
|
|
79
|
+
minDebtTermSeconds: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Settings driving the auto-rollover of an [ObligationLiquidity] that uses a fixed-term [Reserve]
|
|
83
|
+
* and approaches the end of its [ReserveConfig::debt_term_seconds].
|
|
84
|
+
*
|
|
85
|
+
* By its nature (not a special case), the zeroed struct mean "no auto-rollover".
|
|
86
|
+
*/
|
|
87
|
+
export declare class FixedTermBorrowRolloverConfig {
|
|
88
|
+
/**
|
|
89
|
+
* Whether the borrow can be permissionlessly prolonged under the following *joint* conditions:
|
|
90
|
+
*
|
|
91
|
+
* The reserve used to re-borrow the liquidity must have:
|
|
92
|
+
* A) the exact same maximum borrow rate as the current one,
|
|
93
|
+
* B) the exact same debt term as the current one,
|
|
94
|
+
* C) sufficient available liquidity (including no withdraw tickets waiting in its queue).
|
|
95
|
+
*
|
|
96
|
+
* The time left until the current debt term expires must be:
|
|
97
|
+
* D) less than [LendingMarket::fixed_rollover_window_duration_seconds].
|
|
98
|
+
*
|
|
99
|
+
* Note: the other settings are only effective when this one is `1`.
|
|
100
|
+
*/
|
|
101
|
+
readonly autoRolloverEnabled: number;
|
|
102
|
+
/**
|
|
103
|
+
* When `1`, partially lifts the condition *B* from [Self::auto_rollover_enabled]: additionally
|
|
104
|
+
* allows to use a variable (indefinite) debt term if less than
|
|
105
|
+
* [LendingMarket::variable_rollover_window_duration_seconds] is left until expiration.
|
|
106
|
+
*
|
|
107
|
+
* Note: typically this flag should be used together with [Self::max_borrow_rate_bps] set to
|
|
108
|
+
* `u32::MAX` (to denote a variable-rate reserve).
|
|
109
|
+
*/
|
|
110
|
+
readonly openTermAllowed: number;
|
|
111
|
+
/** Internal alignment padding (free to reuse). */
|
|
112
|
+
readonly alignmentPadding: Array<number>;
|
|
113
|
+
/**
|
|
114
|
+
* A customization setting that can lift the condition *A* from [Self::auto_rollover_enabled]:
|
|
115
|
+
* when not zeroed, the rollover may use a reserve with a maximum borrow rate equal or lower
|
|
116
|
+
* than the given one.
|
|
117
|
+
*/
|
|
118
|
+
readonly maxBorrowRateBps: number;
|
|
119
|
+
/**
|
|
120
|
+
* A customization setting that can lift the condition *B* from [Self::auto_rollover_enabled]:
|
|
121
|
+
* when not zeroed, the rollover may use a reserve with a *fixed* debt term equal or longer
|
|
122
|
+
* than the given one.
|
|
123
|
+
*/
|
|
124
|
+
readonly minDebtTermSeconds: BN;
|
|
125
|
+
constructor(fields: FixedTermBorrowRolloverConfigFields);
|
|
126
|
+
static layout(property?: string): import("buffer-layout").Layout<unknown>;
|
|
127
|
+
static fromDecoded(obj: any): types.FixedTermBorrowRolloverConfig;
|
|
128
|
+
static toEncodable(fields: FixedTermBorrowRolloverConfigFields): {
|
|
129
|
+
autoRolloverEnabled: number;
|
|
130
|
+
openTermAllowed: number;
|
|
131
|
+
alignmentPadding: number[];
|
|
132
|
+
maxBorrowRateBps: number;
|
|
133
|
+
minDebtTermSeconds: BN;
|
|
134
|
+
};
|
|
135
|
+
toJSON(): FixedTermBorrowRolloverConfigJSON;
|
|
136
|
+
static fromJSON(obj: FixedTermBorrowRolloverConfigJSON): FixedTermBorrowRolloverConfig;
|
|
137
|
+
toEncodable(): {
|
|
138
|
+
autoRolloverEnabled: number;
|
|
139
|
+
openTermAllowed: number;
|
|
140
|
+
alignmentPadding: number[];
|
|
141
|
+
maxBorrowRateBps: number;
|
|
142
|
+
minDebtTermSeconds: BN;
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=FixedTermBorrowRolloverConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FixedTermBorrowRolloverConfig.d.ts","sourceRoot":"","sources":["../../../../src/@codegen/klend/types/FixedTermBorrowRolloverConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,OAAO,CAAA;AACtB,OAAO,KAAK,KAAK,MAAM,UAAU,CAAA;AAIjC,MAAM,WAAW,mCAAmC;IAClD;;;;;;;;;;;;OAYG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;;;;OAOG;IACH,eAAe,EAAE,MAAM,CAAA;IACvB,kDAAkD;IAClD,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB;;;;OAIG;IACH,kBAAkB,EAAE,EAAE,CAAA;CACvB;AAED,MAAM,WAAW,iCAAiC;IAChD;;;;;;;;;;;;OAYG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;;;;OAOG;IACH,eAAe,EAAE,MAAM,CAAA;IACvB,kDAAkD;IAClD,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED;;;;;GAKG;AACH,qBAAa,6BAA6B;IACxC;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAA;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,kDAAkD;IAClD,QAAQ,CAAC,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACxC;;;;OAIG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAA;IACjC;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,EAAE,EAAE,CAAA;gBAEnB,MAAM,EAAE,mCAAmC;IAQvD,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM;IAc/B,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG;IAU3B,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,mCAAmC;;;;;;;IAU9D,MAAM,IAAI,iCAAiC;IAU3C,MAAM,CAAC,QAAQ,CACb,GAAG,EAAE,iCAAiC,GACrC,6BAA6B;IAUhC,WAAW;;;;;;;CAGZ"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.FixedTermBorrowRolloverConfig = void 0;
|
|
40
|
+
const bn_js_1 = __importDefault(require("bn.js")); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
41
|
+
const borsh = __importStar(require("@coral-xyz/borsh"));
|
|
42
|
+
/**
|
|
43
|
+
* Settings driving the auto-rollover of an [ObligationLiquidity] that uses a fixed-term [Reserve]
|
|
44
|
+
* and approaches the end of its [ReserveConfig::debt_term_seconds].
|
|
45
|
+
*
|
|
46
|
+
* By its nature (not a special case), the zeroed struct mean "no auto-rollover".
|
|
47
|
+
*/
|
|
48
|
+
class FixedTermBorrowRolloverConfig {
|
|
49
|
+
/**
|
|
50
|
+
* Whether the borrow can be permissionlessly prolonged under the following *joint* conditions:
|
|
51
|
+
*
|
|
52
|
+
* The reserve used to re-borrow the liquidity must have:
|
|
53
|
+
* A) the exact same maximum borrow rate as the current one,
|
|
54
|
+
* B) the exact same debt term as the current one,
|
|
55
|
+
* C) sufficient available liquidity (including no withdraw tickets waiting in its queue).
|
|
56
|
+
*
|
|
57
|
+
* The time left until the current debt term expires must be:
|
|
58
|
+
* D) less than [LendingMarket::fixed_rollover_window_duration_seconds].
|
|
59
|
+
*
|
|
60
|
+
* Note: the other settings are only effective when this one is `1`.
|
|
61
|
+
*/
|
|
62
|
+
autoRolloverEnabled;
|
|
63
|
+
/**
|
|
64
|
+
* When `1`, partially lifts the condition *B* from [Self::auto_rollover_enabled]: additionally
|
|
65
|
+
* allows to use a variable (indefinite) debt term if less than
|
|
66
|
+
* [LendingMarket::variable_rollover_window_duration_seconds] is left until expiration.
|
|
67
|
+
*
|
|
68
|
+
* Note: typically this flag should be used together with [Self::max_borrow_rate_bps] set to
|
|
69
|
+
* `u32::MAX` (to denote a variable-rate reserve).
|
|
70
|
+
*/
|
|
71
|
+
openTermAllowed;
|
|
72
|
+
/** Internal alignment padding (free to reuse). */
|
|
73
|
+
alignmentPadding;
|
|
74
|
+
/**
|
|
75
|
+
* A customization setting that can lift the condition *A* from [Self::auto_rollover_enabled]:
|
|
76
|
+
* when not zeroed, the rollover may use a reserve with a maximum borrow rate equal or lower
|
|
77
|
+
* than the given one.
|
|
78
|
+
*/
|
|
79
|
+
maxBorrowRateBps;
|
|
80
|
+
/**
|
|
81
|
+
* A customization setting that can lift the condition *B* from [Self::auto_rollover_enabled]:
|
|
82
|
+
* when not zeroed, the rollover may use a reserve with a *fixed* debt term equal or longer
|
|
83
|
+
* than the given one.
|
|
84
|
+
*/
|
|
85
|
+
minDebtTermSeconds;
|
|
86
|
+
constructor(fields) {
|
|
87
|
+
this.autoRolloverEnabled = fields.autoRolloverEnabled;
|
|
88
|
+
this.openTermAllowed = fields.openTermAllowed;
|
|
89
|
+
this.alignmentPadding = fields.alignmentPadding;
|
|
90
|
+
this.maxBorrowRateBps = fields.maxBorrowRateBps;
|
|
91
|
+
this.minDebtTermSeconds = fields.minDebtTermSeconds;
|
|
92
|
+
}
|
|
93
|
+
static layout(property) {
|
|
94
|
+
return borsh.struct([
|
|
95
|
+
borsh.u8("autoRolloverEnabled"),
|
|
96
|
+
borsh.u8("openTermAllowed"),
|
|
97
|
+
borsh.array(borsh.u8(), 2, "alignmentPadding"),
|
|
98
|
+
borsh.u32("maxBorrowRateBps"),
|
|
99
|
+
borsh.u64("minDebtTermSeconds"),
|
|
100
|
+
], property);
|
|
101
|
+
}
|
|
102
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
103
|
+
static fromDecoded(obj) {
|
|
104
|
+
return new FixedTermBorrowRolloverConfig({
|
|
105
|
+
autoRolloverEnabled: obj.autoRolloverEnabled,
|
|
106
|
+
openTermAllowed: obj.openTermAllowed,
|
|
107
|
+
alignmentPadding: obj.alignmentPadding,
|
|
108
|
+
maxBorrowRateBps: obj.maxBorrowRateBps,
|
|
109
|
+
minDebtTermSeconds: obj.minDebtTermSeconds,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
static toEncodable(fields) {
|
|
113
|
+
return {
|
|
114
|
+
autoRolloverEnabled: fields.autoRolloverEnabled,
|
|
115
|
+
openTermAllowed: fields.openTermAllowed,
|
|
116
|
+
alignmentPadding: fields.alignmentPadding,
|
|
117
|
+
maxBorrowRateBps: fields.maxBorrowRateBps,
|
|
118
|
+
minDebtTermSeconds: fields.minDebtTermSeconds,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
toJSON() {
|
|
122
|
+
return {
|
|
123
|
+
autoRolloverEnabled: this.autoRolloverEnabled,
|
|
124
|
+
openTermAllowed: this.openTermAllowed,
|
|
125
|
+
alignmentPadding: this.alignmentPadding,
|
|
126
|
+
maxBorrowRateBps: this.maxBorrowRateBps,
|
|
127
|
+
minDebtTermSeconds: this.minDebtTermSeconds.toString(),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
static fromJSON(obj) {
|
|
131
|
+
return new FixedTermBorrowRolloverConfig({
|
|
132
|
+
autoRolloverEnabled: obj.autoRolloverEnabled,
|
|
133
|
+
openTermAllowed: obj.openTermAllowed,
|
|
134
|
+
alignmentPadding: obj.alignmentPadding,
|
|
135
|
+
maxBorrowRateBps: obj.maxBorrowRateBps,
|
|
136
|
+
minDebtTermSeconds: new bn_js_1.default(obj.minDebtTermSeconds),
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
toEncodable() {
|
|
140
|
+
return FixedTermBorrowRolloverConfig.toEncodable(this);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.FixedTermBorrowRolloverConfig = FixedTermBorrowRolloverConfig;
|
|
144
|
+
//# sourceMappingURL=FixedTermBorrowRolloverConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FixedTermBorrowRolloverConfig.js","sourceRoot":"","sources":["../../../../src/@codegen/klend/types/FixedTermBorrowRolloverConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAsB,CAAC,wDAAwD;AAE/E,wDAAyC;AAmFzC;;;;;GAKG;AACH,MAAa,6BAA6B;IACxC;;;;;;;;;;;;OAYG;IACM,mBAAmB,CAAQ;IACpC;;;;;;;OAOG;IACM,eAAe,CAAQ;IAChC,kDAAkD;IACzC,gBAAgB,CAAe;IACxC;;;;OAIG;IACM,gBAAgB,CAAQ;IACjC;;;;OAIG;IACM,kBAAkB,CAAI;IAE/B,YAAY,MAA2C;QACrD,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAA;QACrD,IAAI,CAAC,eAAe,GAAG,MAAM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AAC,mBAAmB;YAC7C,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE;SACvD,CAAA;IACH,CAAC;IAED,MAAM,CAAC,QAAQ,CACb,GAAsC;QAEtC,OAAO,IAAI,6BAA6B,CAAC;YACvC,mBAAmB,EAAE,GAAG,CAAC,mBAAmB;YAC5C,eAAe,EAAE,GAAG,CAAC,eAAe;YACpC,gBAAgB,EAAE,GAAG,CAAC,gBAAgB;YACtC,gBAAgB,EAAE,GAAG,CAAC,gBAAgB;YACtC,kBAAkB,EAAE,IAAI,eAAE,CAAC,GAAG,CAAC,kBAAkB,CAAC;SACnD,CAAC,CAAA;IACJ,CAAC;IAED,WAAW;QACT,OAAO,6BAA6B,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;IACxD,CAAC;CACF;AA1GD,sEA0GC"}
|
|
@@ -25,6 +25,11 @@ export interface ObligationLiquidityFields {
|
|
|
25
25
|
borrowFactorAdjustedMarketValueSf: BN;
|
|
26
26
|
/** Amount of liquidity borrowed outside of an elevation group */
|
|
27
27
|
borrowedAmountOutsideElevationGroups: BN;
|
|
28
|
+
/**
|
|
29
|
+
* The user's auto-rollover opt-ins - only effective when this borrow is fixed-term (i.e. its
|
|
30
|
+
* reserve has a non-zero [ReserveConfig::debt_term_seconds]).
|
|
31
|
+
*/
|
|
32
|
+
fixedTermBorrowRolloverConfig: types.FixedTermBorrowRolloverConfigFields;
|
|
28
33
|
padding2: Array<BN>;
|
|
29
34
|
}
|
|
30
35
|
export interface ObligationLiquidityJSON {
|
|
@@ -51,6 +56,11 @@ export interface ObligationLiquidityJSON {
|
|
|
51
56
|
borrowFactorAdjustedMarketValueSf: string;
|
|
52
57
|
/** Amount of liquidity borrowed outside of an elevation group */
|
|
53
58
|
borrowedAmountOutsideElevationGroups: string;
|
|
59
|
+
/**
|
|
60
|
+
* The user's auto-rollover opt-ins - only effective when this borrow is fixed-term (i.e. its
|
|
61
|
+
* reserve has a non-zero [ReserveConfig::debt_term_seconds]).
|
|
62
|
+
*/
|
|
63
|
+
fixedTermBorrowRolloverConfig: types.FixedTermBorrowRolloverConfigJSON;
|
|
54
64
|
padding2: Array<string>;
|
|
55
65
|
}
|
|
56
66
|
/** Obligation liquidity state */
|
|
@@ -78,6 +88,11 @@ export declare class ObligationLiquidity {
|
|
|
78
88
|
readonly borrowFactorAdjustedMarketValueSf: BN;
|
|
79
89
|
/** Amount of liquidity borrowed outside of an elevation group */
|
|
80
90
|
readonly borrowedAmountOutsideElevationGroups: BN;
|
|
91
|
+
/**
|
|
92
|
+
* The user's auto-rollover opt-ins - only effective when this borrow is fixed-term (i.e. its
|
|
93
|
+
* reserve has a non-zero [ReserveConfig::debt_term_seconds]).
|
|
94
|
+
*/
|
|
95
|
+
readonly fixedTermBorrowRolloverConfig: types.FixedTermBorrowRolloverConfig;
|
|
81
96
|
readonly padding2: Array<BN>;
|
|
82
97
|
constructor(fields: ObligationLiquidityFields);
|
|
83
98
|
static layout(property?: string): import("buffer-layout").Layout<unknown>;
|
|
@@ -93,6 +108,13 @@ export declare class ObligationLiquidity {
|
|
|
93
108
|
marketValueSf: BN;
|
|
94
109
|
borrowFactorAdjustedMarketValueSf: BN;
|
|
95
110
|
borrowedAmountOutsideElevationGroups: BN;
|
|
111
|
+
fixedTermBorrowRolloverConfig: {
|
|
112
|
+
autoRolloverEnabled: number;
|
|
113
|
+
openTermAllowed: number;
|
|
114
|
+
alignmentPadding: number[];
|
|
115
|
+
maxBorrowRateBps: number;
|
|
116
|
+
minDebtTermSeconds: BN;
|
|
117
|
+
};
|
|
96
118
|
padding2: BN[];
|
|
97
119
|
};
|
|
98
120
|
toJSON(): ObligationLiquidityJSON;
|
|
@@ -108,6 +130,13 @@ export declare class ObligationLiquidity {
|
|
|
108
130
|
marketValueSf: BN;
|
|
109
131
|
borrowFactorAdjustedMarketValueSf: BN;
|
|
110
132
|
borrowedAmountOutsideElevationGroups: BN;
|
|
133
|
+
fixedTermBorrowRolloverConfig: {
|
|
134
|
+
autoRolloverEnabled: number;
|
|
135
|
+
openTermAllowed: number;
|
|
136
|
+
alignmentPadding: number[];
|
|
137
|
+
maxBorrowRateBps: number;
|
|
138
|
+
minDebtTermSeconds: BN;
|
|
139
|
+
};
|
|
111
140
|
padding2: BN[];
|
|
112
141
|
};
|
|
113
142
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObligationLiquidity.d.ts","sourceRoot":"","sources":["../../../../src/@codegen/klend/types/ObligationLiquidity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,OAAO,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,MAAM,OAAO,CAAA;AACtB,OAAO,KAAK,KAAK,MAAM,UAAU,CAAA;AAIjC,MAAM,WAAW,yBAAyB;IACxC,yCAAyC;IACzC,aAAa,EAAE,OAAO,CAAA;IACtB,sEAAsE;IACtE,uBAAuB,EAAE,KAAK,CAAC,sBAAsB,CAAA;IACrD;;;;;;;;;OASG;IACH,wBAAwB,EAAE,EAAE,CAAA;IAC5B,mEAAmE;IACnE,gBAAgB,EAAE,EAAE,CAAA;IACpB,iEAAiE;IACjE,aAAa,EAAE,EAAE,CAAA;IACjB,qGAAqG;IACrG,iCAAiC,EAAE,EAAE,CAAA;IACrC,iEAAiE;IACjE,oCAAoC,EAAE,EAAE,CAAA;IACxC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,CAAA;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAA;IACrB,sEAAsE;IACtE,uBAAuB,EAAE,KAAK,CAAC,oBAAoB,CAAA;IACnD;;;;;;;;;OASG;IACH,wBAAwB,EAAE,MAAM,CAAA;IAChC,mEAAmE;IACnE,gBAAgB,EAAE,MAAM,CAAA;IACx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AAQ,CAAC,6BAA6B,EAAE,KAAK,CAAC,6BAA6B,CAAA;IAC3E,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,CAAA;gBAEhB,MAAM,EAAE,yBAAyB;IAmB7C,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM;IAoB/B,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG;IAoB3B,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;;;IAqBpD,MAAM,IAAI,uBAAuB;IAiBjC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,uBAAuB,GAAG,mBAAmB;IAuBlE,WAAW;;;;;;;;;;;;;;;;;;;;CAGZ"}
|
|
@@ -67,6 +67,11 @@ class ObligationLiquidity {
|
|
|
67
67
|
borrowFactorAdjustedMarketValueSf;
|
|
68
68
|
/** Amount of liquidity borrowed outside of an elevation group */
|
|
69
69
|
borrowedAmountOutsideElevationGroups;
|
|
70
|
+
/**
|
|
71
|
+
* The user's auto-rollover opt-ins - only effective when this borrow is fixed-term (i.e. its
|
|
72
|
+
* reserve has a non-zero [ReserveConfig::debt_term_seconds]).
|
|
73
|
+
*/
|
|
74
|
+
fixedTermBorrowRolloverConfig;
|
|
70
75
|
padding2;
|
|
71
76
|
constructor(fields) {
|
|
72
77
|
this.borrowReserve = fields.borrowReserve;
|
|
@@ -80,6 +85,10 @@ class ObligationLiquidity {
|
|
|
80
85
|
fields.borrowFactorAdjustedMarketValueSf;
|
|
81
86
|
this.borrowedAmountOutsideElevationGroups =
|
|
82
87
|
fields.borrowedAmountOutsideElevationGroups;
|
|
88
|
+
this.fixedTermBorrowRolloverConfig =
|
|
89
|
+
new types.FixedTermBorrowRolloverConfig({
|
|
90
|
+
...fields.fixedTermBorrowRolloverConfig,
|
|
91
|
+
});
|
|
83
92
|
this.padding2 = fields.padding2;
|
|
84
93
|
}
|
|
85
94
|
static layout(property) {
|
|
@@ -91,7 +100,8 @@ class ObligationLiquidity {
|
|
|
91
100
|
borsh.u128("marketValueSf"),
|
|
92
101
|
borsh.u128("borrowFactorAdjustedMarketValueSf"),
|
|
93
102
|
borsh.u64("borrowedAmountOutsideElevationGroups"),
|
|
94
|
-
|
|
103
|
+
types.FixedTermBorrowRolloverConfig.layout("fixedTermBorrowRolloverConfig"),
|
|
104
|
+
borsh.array(borsh.u64(), 5, "padding2"),
|
|
95
105
|
], property);
|
|
96
106
|
}
|
|
97
107
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -104,6 +114,7 @@ class ObligationLiquidity {
|
|
|
104
114
|
marketValueSf: obj.marketValueSf,
|
|
105
115
|
borrowFactorAdjustedMarketValueSf: obj.borrowFactorAdjustedMarketValueSf,
|
|
106
116
|
borrowedAmountOutsideElevationGroups: obj.borrowedAmountOutsideElevationGroups,
|
|
117
|
+
fixedTermBorrowRolloverConfig: types.FixedTermBorrowRolloverConfig.fromDecoded(obj.fixedTermBorrowRolloverConfig),
|
|
107
118
|
padding2: obj.padding2,
|
|
108
119
|
});
|
|
109
120
|
}
|
|
@@ -116,6 +127,7 @@ class ObligationLiquidity {
|
|
|
116
127
|
marketValueSf: fields.marketValueSf,
|
|
117
128
|
borrowFactorAdjustedMarketValueSf: fields.borrowFactorAdjustedMarketValueSf,
|
|
118
129
|
borrowedAmountOutsideElevationGroups: fields.borrowedAmountOutsideElevationGroups,
|
|
130
|
+
fixedTermBorrowRolloverConfig: types.FixedTermBorrowRolloverConfig.toEncodable(fields.fixedTermBorrowRolloverConfig),
|
|
119
131
|
padding2: fields.padding2,
|
|
120
132
|
};
|
|
121
133
|
}
|
|
@@ -128,6 +140,7 @@ class ObligationLiquidity {
|
|
|
128
140
|
marketValueSf: this.marketValueSf.toString(),
|
|
129
141
|
borrowFactorAdjustedMarketValueSf: this.borrowFactorAdjustedMarketValueSf.toString(),
|
|
130
142
|
borrowedAmountOutsideElevationGroups: this.borrowedAmountOutsideElevationGroups.toString(),
|
|
143
|
+
fixedTermBorrowRolloverConfig: this.fixedTermBorrowRolloverConfig.toJSON(),
|
|
131
144
|
padding2: this.padding2.map((item) => item.toString()),
|
|
132
145
|
};
|
|
133
146
|
}
|
|
@@ -140,6 +153,7 @@ class ObligationLiquidity {
|
|
|
140
153
|
marketValueSf: new bn_js_1.default(obj.marketValueSf),
|
|
141
154
|
borrowFactorAdjustedMarketValueSf: new bn_js_1.default(obj.borrowFactorAdjustedMarketValueSf),
|
|
142
155
|
borrowedAmountOutsideElevationGroups: new bn_js_1.default(obj.borrowedAmountOutsideElevationGroups),
|
|
156
|
+
fixedTermBorrowRolloverConfig: types.FixedTermBorrowRolloverConfig.fromJSON(obj.fixedTermBorrowRolloverConfig),
|
|
143
157
|
padding2: obj.padding2.map((item) => new bn_js_1.default(item)),
|
|
144
158
|
});
|
|
145
159
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObligationLiquidity.js","sourceRoot":"","sources":["../../../../src/@codegen/klend/types/ObligationLiquidity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAA8C,CAAC,wDAAwD;AACvG,kDAAsB,CAAC,wDAAwD;AAC/E,gDAAiC,CAAC,wDAAwD;AAC1F,wDAAyC;AACzC,oCAAuC;
|
|
1
|
+
{"version":3,"file":"ObligationLiquidity.js","sourceRoot":"","sources":["../../../../src/@codegen/klend/types/ObligationLiquidity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAA8C,CAAC,wDAAwD;AACvG,kDAAsB,CAAC,wDAAwD;AAC/E,gDAAiC,CAAC,wDAAwD;AAC1F,wDAAyC;AACzC,oCAAuC;AAkEvC,iCAAiC;AACjC,MAAa,mBAAmB;IAC9B,yCAAyC;IAChC,aAAa,CAAS;IAC/B,sEAAsE;IAC7D,uBAAuB,CAAwB;IACxD;;;;;;;;;OASG;IACM,wBAAwB,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,6BAA6B,EAC3B,KAAK,CAAC,6BAA6B,CAAC,QAAQ,CAC1C,GAAG,CAAC,6BAA6B,CAClC;YACH,QAAQ,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,eAAE,CAAC,IAAI,CAAC,CAAC;SACnD,CAAC,CAAA;IACJ,CAAC;IAED,WAAW;QACT,OAAO,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;IAC9C,CAAC;CACF;AA1JD,kDA0JC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as types from "../types";
|
|
2
|
+
import * as borsh from "@coral-xyz/borsh";
|
|
3
|
+
export interface NoneJSON {
|
|
4
|
+
kind: "None";
|
|
5
|
+
}
|
|
6
|
+
export declare class None {
|
|
7
|
+
static readonly discriminator = 0;
|
|
8
|
+
static readonly kind = "None";
|
|
9
|
+
readonly discriminator = 0;
|
|
10
|
+
readonly kind = "None";
|
|
11
|
+
toJSON(): NoneJSON;
|
|
12
|
+
toEncodable(): {
|
|
13
|
+
None: {};
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface KlendQueueAccountingHandlerOnKvaultJSON {
|
|
17
|
+
kind: "KlendQueueAccountingHandlerOnKvault";
|
|
18
|
+
}
|
|
19
|
+
export declare class KlendQueueAccountingHandlerOnKvault {
|
|
20
|
+
static readonly discriminator = 1;
|
|
21
|
+
static readonly kind = "KlendQueueAccountingHandlerOnKvault";
|
|
22
|
+
readonly discriminator = 1;
|
|
23
|
+
readonly kind = "KlendQueueAccountingHandlerOnKvault";
|
|
24
|
+
toJSON(): KlendQueueAccountingHandlerOnKvaultJSON;
|
|
25
|
+
toEncodable(): {
|
|
26
|
+
KlendQueueAccountingHandlerOnKvault: {};
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export declare function fromDecoded(obj: any): types.ProgressCallbackTypeKind;
|
|
30
|
+
export declare function fromJSON(obj: types.ProgressCallbackTypeJSON): types.ProgressCallbackTypeKind;
|
|
31
|
+
export declare function layout(property?: string): borsh.EnumLayout<unknown>;
|
|
32
|
+
//# sourceMappingURL=ProgressCallbackType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressCallbackType.d.ts","sourceRoot":"","sources":["../../../../src/@codegen/klend/types/ProgressCallbackType.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,UAAU,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AAGzC,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,qBAAa,IAAI;IACf,MAAM,CAAC,QAAQ,CAAC,aAAa,KAAI;IACjC,MAAM,CAAC,QAAQ,CAAC,IAAI,UAAS;IAC7B,QAAQ,CAAC,aAAa,KAAI;IAC1B,QAAQ,CAAC,IAAI,UAAS;IAEtB,MAAM,IAAI,QAAQ;IAMlB,WAAW;;;CAKZ;AAED,MAAM,WAAW,uCAAuC;IACtD,IAAI,EAAE,qCAAqC,CAAA;CAC5C;AAED,qBAAa,mCAAmC;IAC9C,MAAM,CAAC,QAAQ,CAAC,aAAa,KAAI;IACjC,MAAM,CAAC,QAAQ,CAAC,IAAI,yCAAwC;IAC5D,QAAQ,CAAC,aAAa,KAAI;IAC1B,QAAQ,CAAC,IAAI,yCAAwC;IAErD,MAAM,IAAI,uCAAuC;IAMjD,WAAW;;;CAKZ;AAGD,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,CAAC,wBAAwB,CAapE;AAED,wBAAgB,QAAQ,CACtB,GAAG,EAAE,KAAK,CAAC,wBAAwB,GAClC,KAAK,CAAC,wBAAwB,CAShC;AAED,wBAAgB,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,6BASvC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.KlendQueueAccountingHandlerOnKvault = exports.None = void 0;
|
|
37
|
+
exports.fromDecoded = fromDecoded;
|
|
38
|
+
exports.fromJSON = fromJSON;
|
|
39
|
+
exports.layout = layout;
|
|
40
|
+
const borsh = __importStar(require("@coral-xyz/borsh"));
|
|
41
|
+
class None {
|
|
42
|
+
static discriminator = 0;
|
|
43
|
+
static kind = "None";
|
|
44
|
+
discriminator = 0;
|
|
45
|
+
kind = "None";
|
|
46
|
+
toJSON() {
|
|
47
|
+
return {
|
|
48
|
+
kind: "None",
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
toEncodable() {
|
|
52
|
+
return {
|
|
53
|
+
None: {},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.None = None;
|
|
58
|
+
class KlendQueueAccountingHandlerOnKvault {
|
|
59
|
+
static discriminator = 1;
|
|
60
|
+
static kind = "KlendQueueAccountingHandlerOnKvault";
|
|
61
|
+
discriminator = 1;
|
|
62
|
+
kind = "KlendQueueAccountingHandlerOnKvault";
|
|
63
|
+
toJSON() {
|
|
64
|
+
return {
|
|
65
|
+
kind: "KlendQueueAccountingHandlerOnKvault",
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
toEncodable() {
|
|
69
|
+
return {
|
|
70
|
+
KlendQueueAccountingHandlerOnKvault: {},
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.KlendQueueAccountingHandlerOnKvault = KlendQueueAccountingHandlerOnKvault;
|
|
75
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
76
|
+
function fromDecoded(obj) {
|
|
77
|
+
if (typeof obj !== "object") {
|
|
78
|
+
throw new Error("Invalid enum object");
|
|
79
|
+
}
|
|
80
|
+
if ("None" in obj) {
|
|
81
|
+
return new None();
|
|
82
|
+
}
|
|
83
|
+
if ("KlendQueueAccountingHandlerOnKvault" in obj) {
|
|
84
|
+
return new KlendQueueAccountingHandlerOnKvault();
|
|
85
|
+
}
|
|
86
|
+
throw new Error("Invalid enum object");
|
|
87
|
+
}
|
|
88
|
+
function fromJSON(obj) {
|
|
89
|
+
switch (obj.kind) {
|
|
90
|
+
case "None": {
|
|
91
|
+
return new None();
|
|
92
|
+
}
|
|
93
|
+
case "KlendQueueAccountingHandlerOnKvault": {
|
|
94
|
+
return new KlendQueueAccountingHandlerOnKvault();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function layout(property) {
|
|
99
|
+
const ret = borsh.rustEnum([
|
|
100
|
+
borsh.struct([], "None"),
|
|
101
|
+
borsh.struct([], "KlendQueueAccountingHandlerOnKvault"),
|
|
102
|
+
]);
|
|
103
|
+
if (property !== undefined) {
|
|
104
|
+
return ret.replicate(property);
|
|
105
|
+
}
|
|
106
|
+
return ret;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=ProgressCallbackType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressCallbackType.js","sourceRoot":"","sources":["../../../../src/@codegen/klend/types/ProgressCallbackType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,kCAaC;AAED,4BAWC;AAED,wBASC;AAvFD,wDAAyC;AAOzC,MAAa,IAAI;IACf,MAAM,CAAU,aAAa,GAAG,CAAC,CAAA;IACjC,MAAM,CAAU,IAAI,GAAG,MAAM,CAAA;IACpB,aAAa,GAAG,CAAC,CAAA;IACjB,IAAI,GAAG,MAAM,CAAA;IAEtB,MAAM;QACJ,OAAO;YACL,IAAI,EAAE,MAAM;SACb,CAAA;IACH,CAAC;IAED,WAAW;QACT,OAAO;YACL,IAAI,EAAE,EAAE;SACT,CAAA;IACH,CAAC;;AAhBH,oBAiBC;AAMD,MAAa,mCAAmC;IAC9C,MAAM,CAAU,aAAa,GAAG,CAAC,CAAA;IACjC,MAAM,CAAU,IAAI,GAAG,qCAAqC,CAAA;IACnD,aAAa,GAAG,CAAC,CAAA;IACjB,IAAI,GAAG,qCAAqC,CAAA;IAErD,MAAM;QACJ,OAAO;YACL,IAAI,EAAE,qCAAqC;SAC5C,CAAA;IACH,CAAC;IAED,WAAW;QACT,OAAO;YACL,mCAAmC,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