@kamino-finance/klend-sdk 7.2.6 → 7.3.0
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/README.md +1 -0
- package/dist/@codegen/klend/accounts/LendingMarket.d.ts +33 -0
- package/dist/@codegen/klend/accounts/LendingMarket.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/LendingMarket.js +24 -2
- package/dist/@codegen/klend/accounts/LendingMarket.js.map +1 -1
- package/dist/@codegen/klend/errors/custom.d.ts +26 -2
- package/dist/@codegen/klend/errors/custom.d.ts.map +1 -1
- package/dist/@codegen/klend/errors/custom.js +45 -3
- package/dist/@codegen/klend/errors/custom.js.map +1 -1
- package/dist/@codegen/klend/instructions/index.d.ts +2 -0
- package/dist/@codegen/klend/instructions/index.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/index.js +3 -1
- package/dist/@codegen/klend/instructions/index.js.map +1 -1
- package/dist/@codegen/klend/instructions/initReserve.d.ts +1 -1
- package/dist/@codegen/klend/instructions/initReserve.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/initReserve.js +1 -5
- package/dist/@codegen/klend/instructions/initReserve.js.map +1 -1
- package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateralV2.js +1 -1
- package/dist/@codegen/klend/instructions/seedDepositOnInitReserve.d.ts +13 -0
- package/dist/@codegen/klend/instructions/seedDepositOnInitReserve.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/seedDepositOnInitReserve.js +24 -0
- package/dist/@codegen/klend/instructions/seedDepositOnInitReserve.js.map +1 -0
- package/dist/@codegen/klend/instructions/withdrawObligationCollateral.js +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralV2.js +1 -1
- package/dist/@codegen/klend/types/ReserveConfig.d.ts +58 -24
- package/dist/@codegen/klend/types/ReserveConfig.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ReserveConfig.js +40 -18
- package/dist/@codegen/klend/types/ReserveConfig.js.map +1 -1
- package/dist/@codegen/klend/types/ReserveFees.d.ts +8 -8
- package/dist/@codegen/klend/types/ReserveFees.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ReserveFees.js +8 -8
- package/dist/@codegen/klend/types/ReserveFees.js.map +1 -1
- package/dist/@codegen/klend/types/UpdateConfigMode.d.ts +46 -7
- package/dist/@codegen/klend/types/UpdateConfigMode.d.ts.map +1 -1
- package/dist/@codegen/klend/types/UpdateConfigMode.js +85 -12
- package/dist/@codegen/klend/types/UpdateConfigMode.js.map +1 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.d.ts +26 -0
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.d.ts.map +1 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.js +49 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.js.map +1 -1
- package/dist/@codegen/klend/types/index.d.ts +4 -4
- package/dist/@codegen/klend/types/index.d.ts.map +1 -1
- package/dist/@codegen/klend/types/index.js.map +1 -1
- package/dist/@codegen/kvault/accounts/GlobalConfig.d.ts +32 -0
- package/dist/@codegen/kvault/accounts/GlobalConfig.d.ts.map +1 -0
- package/dist/@codegen/kvault/accounts/GlobalConfig.js +125 -0
- package/dist/@codegen/kvault/accounts/GlobalConfig.js.map +1 -0
- package/dist/@codegen/kvault/accounts/Reserve.js +1 -1
- package/dist/@codegen/kvault/accounts/ReserveWhitelistEntry.d.ts +52 -0
- package/dist/@codegen/kvault/accounts/ReserveWhitelistEntry.d.ts.map +1 -0
- package/dist/@codegen/kvault/accounts/ReserveWhitelistEntry.js +127 -0
- package/dist/@codegen/kvault/accounts/ReserveWhitelistEntry.js.map +1 -0
- package/dist/@codegen/kvault/accounts/VaultState.d.ts +18 -0
- package/dist/@codegen/kvault/accounts/VaultState.d.ts.map +1 -1
- package/dist/@codegen/kvault/accounts/VaultState.js +39 -1
- package/dist/@codegen/kvault/accounts/VaultState.js.map +1 -1
- package/dist/@codegen/kvault/accounts/index.d.ts +4 -0
- package/dist/@codegen/kvault/accounts/index.d.ts.map +1 -1
- package/dist/@codegen/kvault/accounts/index.js +5 -1
- package/dist/@codegen/kvault/accounts/index.js.map +1 -1
- package/dist/@codegen/kvault/errors/custom.d.ts +61 -5
- package/dist/@codegen/kvault/errors/custom.d.ts.map +1 -1
- package/dist/@codegen/kvault/errors/custom.js +108 -9
- package/dist/@codegen/kvault/errors/custom.js.map +1 -1
- package/dist/@codegen/kvault/instructions/addUpdateWhitelistedReserve.d.ts +16 -0
- package/dist/@codegen/kvault/instructions/addUpdateWhitelistedReserve.d.ts.map +1 -0
- package/dist/@codegen/kvault/instructions/addUpdateWhitelistedReserve.js +66 -0
- package/dist/@codegen/kvault/instructions/addUpdateWhitelistedReserve.js.map +1 -0
- package/dist/@codegen/kvault/instructions/buy.d.ts +24 -0
- package/dist/@codegen/kvault/instructions/buy.d.ts.map +1 -0
- package/dist/@codegen/kvault/instructions/buy.js +67 -0
- package/dist/@codegen/kvault/instructions/buy.js.map +1 -0
- package/dist/@codegen/kvault/instructions/index.d.ts +12 -0
- package/dist/@codegen/kvault/instructions/index.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/index.js +13 -1
- package/dist/@codegen/kvault/instructions/index.js.map +1 -1
- package/dist/@codegen/kvault/instructions/initGlobalConfig.d.ts +11 -0
- package/dist/@codegen/kvault/instructions/initGlobalConfig.d.ts.map +1 -0
- package/dist/@codegen/kvault/instructions/initGlobalConfig.js +20 -0
- package/dist/@codegen/kvault/instructions/initGlobalConfig.js.map +1 -0
- package/dist/@codegen/kvault/instructions/invest.d.ts +2 -1
- package/dist/@codegen/kvault/instructions/invest.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/invest.js +5 -0
- package/dist/@codegen/kvault/instructions/invest.js.map +1 -1
- package/dist/@codegen/kvault/instructions/sell.d.ts +40 -0
- package/dist/@codegen/kvault/instructions/sell.d.ts.map +1 -0
- package/dist/@codegen/kvault/instructions/sell.js +98 -0
- package/dist/@codegen/kvault/instructions/sell.js.map +1 -0
- package/dist/@codegen/kvault/instructions/updateGlobalConfig.d.ts +13 -0
- package/dist/@codegen/kvault/instructions/updateGlobalConfig.d.ts.map +1 -0
- package/dist/@codegen/kvault/instructions/updateGlobalConfig.js +63 -0
- package/dist/@codegen/kvault/instructions/updateGlobalConfig.js.map +1 -0
- package/dist/@codegen/kvault/instructions/updateGlobalConfigAdmin.d.ts +8 -0
- package/dist/@codegen/kvault/instructions/updateGlobalConfigAdmin.d.ts.map +1 -0
- package/dist/@codegen/kvault/instructions/updateGlobalConfigAdmin.js +21 -0
- package/dist/@codegen/kvault/instructions/updateGlobalConfigAdmin.js.map +1 -0
- package/dist/@codegen/kvault/instructions/updateReserveAllocation.d.ts +2 -1
- package/dist/@codegen/kvault/instructions/updateReserveAllocation.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/updateReserveAllocation.js +5 -0
- package/dist/@codegen/kvault/instructions/updateReserveAllocation.js.map +1 -1
- package/dist/@codegen/kvault/instructions/updateVaultConfig.d.ts +2 -1
- package/dist/@codegen/kvault/instructions/updateVaultConfig.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/updateVaultConfig.js +2 -5
- package/dist/@codegen/kvault/instructions/updateVaultConfig.js.map +1 -1
- package/dist/@codegen/kvault/instructions/withdraw.d.ts +1 -0
- package/dist/@codegen/kvault/instructions/withdraw.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/withdraw.js +1 -0
- package/dist/@codegen/kvault/instructions/withdraw.js.map +1 -1
- package/dist/@codegen/kvault/instructions/withdrawFromAvailable.d.ts +1 -0
- package/dist/@codegen/kvault/instructions/withdrawFromAvailable.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/withdrawFromAvailable.js +1 -0
- package/dist/@codegen/kvault/instructions/withdrawFromAvailable.js.map +1 -1
- package/dist/@codegen/kvault/types/ReserveConfig.d.ts +27 -34
- package/dist/@codegen/kvault/types/ReserveConfig.d.ts.map +1 -1
- package/dist/@codegen/kvault/types/ReserveConfig.js +20 -17
- package/dist/@codegen/kvault/types/ReserveConfig.js.map +1 -1
- package/dist/@codegen/kvault/types/ReserveFees.d.ts +8 -8
- package/dist/@codegen/kvault/types/ReserveFees.d.ts.map +1 -1
- package/dist/@codegen/kvault/types/ReserveFees.js +8 -8
- package/dist/@codegen/kvault/types/ReserveFees.js.map +1 -1
- package/dist/@codegen/kvault/types/UpdateGlobalConfigMode.d.ts +68 -0
- package/dist/@codegen/kvault/types/UpdateGlobalConfigMode.d.ts.map +1 -0
- package/dist/@codegen/kvault/types/UpdateGlobalConfigMode.js +162 -0
- package/dist/@codegen/kvault/types/UpdateGlobalConfigMode.js.map +1 -0
- package/dist/@codegen/kvault/types/UpdateReserveWhitelistMode.d.ts +46 -0
- package/dist/@codegen/kvault/types/UpdateReserveWhitelistMode.d.ts.map +1 -0
- package/dist/@codegen/kvault/types/UpdateReserveWhitelistMode.js +124 -0
- package/dist/@codegen/kvault/types/UpdateReserveWhitelistMode.js.map +1 -0
- package/dist/@codegen/kvault/types/VaultConfigField.d.ts +65 -0
- package/dist/@codegen/kvault/types/VaultConfigField.d.ts.map +1 -1
- package/dist/@codegen/kvault/types/VaultConfigField.js +121 -1
- package/dist/@codegen/kvault/types/VaultConfigField.js.map +1 -1
- package/dist/@codegen/kvault/types/index.d.ts +10 -2
- package/dist/@codegen/kvault/types/index.d.ts.map +1 -1
- package/dist/@codegen/kvault/types/index.js +5 -1
- package/dist/@codegen/kvault/types/index.js.map +1 -1
- package/dist/classes/manager.d.ts +17 -1
- package/dist/classes/manager.d.ts.map +1 -1
- package/dist/classes/manager.js +22 -0
- package/dist/classes/manager.js.map +1 -1
- package/dist/classes/reserve.d.ts.map +1 -1
- package/dist/classes/reserve.js +7 -4
- package/dist/classes/reserve.js.map +1 -1
- package/dist/classes/vault.d.ts +29 -5
- package/dist/classes/vault.d.ts.map +1 -1
- package/dist/classes/vault.js +119 -48
- package/dist/classes/vault.js.map +1 -1
- package/dist/idl/klend.json +129 -59
- package/dist/lib.d.ts +1 -0
- package/dist/lib.d.ts.map +1 -1
- package/dist/lib.js +4 -2
- package/dist/lib.js.map +1 -1
- package/dist/manager/client_kamino_manager.js +206 -15
- package/dist/manager/client_kamino_manager.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/managerTypes.d.ts +1 -1
- package/dist/utils/managerTypes.d.ts.map +1 -1
- package/dist/utils/managerTypes.js +5 -3
- package/dist/utils/managerTypes.js.map +1 -1
- package/dist/utils/parse.d.ts +10 -0
- package/dist/utils/parse.d.ts.map +1 -0
- package/dist/utils/parse.js +24 -0
- package/dist/utils/parse.js.map +1 -0
- package/dist/utils/seeds.d.ts +5 -5
- package/dist/utils/seeds.d.ts.map +1 -1
- package/dist/utils/seeds.js +13 -13
- package/dist/utils/seeds.js.map +1 -1
- package/dist/utils/vault.d.ts.map +1 -1
- package/dist/utils/vault.js +6 -0
- package/dist/utils/vault.js.map +1 -1
- package/package.json +1 -1
- package/src/@codegen/klend/accounts/LendingMarket.ts +46 -2
- package/src/@codegen/klend/errors/custom.ts +47 -2
- package/src/@codegen/klend/instructions/index.ts +2 -0
- package/src/@codegen/klend/instructions/initReserve.ts +2 -6
- package/src/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateralV2.ts +1 -1
- package/src/@codegen/klend/instructions/seedDepositOnInitReserve.ts +50 -0
- package/src/@codegen/klend/instructions/withdrawObligationCollateral.ts +1 -1
- package/src/@codegen/klend/instructions/withdrawObligationCollateralV2.ts +1 -1
- package/src/@codegen/klend/types/ReserveConfig.ts +72 -30
- package/src/@codegen/klend/types/ReserveFees.ts +12 -12
- package/src/@codegen/klend/types/UpdateConfigMode.ts +103 -13
- package/src/@codegen/klend/types/UpdateLendingMarketMode.ts +60 -0
- package/src/@codegen/klend/types/index.ts +12 -2
- package/src/@codegen/kvault/accounts/GlobalConfig.ts +136 -0
- package/src/@codegen/kvault/accounts/Reserve.ts +1 -1
- package/src/@codegen/kvault/accounts/ReserveWhitelistEntry.ts +157 -0
- package/src/@codegen/kvault/accounts/VaultState.ts +57 -1
- package/src/@codegen/kvault/accounts/index.ts +7 -0
- package/src/@codegen/kvault/errors/custom.ts +109 -8
- package/src/@codegen/kvault/instructions/addUpdateWhitelistedReserve.ts +64 -0
- package/src/@codegen/kvault/instructions/buy.ts +74 -0
- package/src/@codegen/kvault/instructions/index.ts +18 -0
- package/src/@codegen/kvault/instructions/initGlobalConfig.ts +44 -0
- package/src/@codegen/kvault/instructions/invest.ts +4 -0
- package/src/@codegen/kvault/instructions/sell.ts +122 -0
- package/src/@codegen/kvault/instructions/updateGlobalConfig.ts +58 -0
- package/src/@codegen/kvault/instructions/updateGlobalConfigAdmin.ts +42 -0
- package/src/@codegen/kvault/instructions/updateReserveAllocation.ts +4 -0
- package/src/@codegen/kvault/instructions/updateVaultConfig.ts +4 -6
- package/src/@codegen/kvault/instructions/withdraw.ts +2 -0
- package/src/@codegen/kvault/instructions/withdrawFromAvailable.ts +2 -0
- package/src/@codegen/kvault/types/ReserveConfig.ts +34 -37
- package/src/@codegen/kvault/types/ReserveFees.ts +12 -12
- package/src/@codegen/kvault/types/UpdateGlobalConfigMode.ts +160 -0
- package/src/@codegen/kvault/types/UpdateReserveWhitelistMode.ts +117 -0
- package/src/@codegen/kvault/types/VaultConfigField.ts +150 -0
- package/src/@codegen/kvault/types/index.ts +31 -0
- package/src/classes/manager.ts +29 -1
- package/src/classes/reserve.ts +7 -5
- package/src/classes/vault.ts +166 -48
- package/src/idl/klend.json +130 -60
- package/src/idl/kvault.json +582 -23
- package/src/lib.ts +2 -1
- package/src/manager/client_kamino_manager.ts +313 -18
- package/src/utils/index.ts +2 -1
- package/src/utils/managerTypes.ts +6 -4
- package/src/utils/parse.ts +18 -0
- package/src/utils/seeds.ts +13 -17
- package/src/utils/vault.ts +6 -0
|
@@ -11,13 +11,16 @@ export interface ReserveConfigFields {
|
|
|
11
11
|
assetTier: number
|
|
12
12
|
/** Flat rate that goes to the host */
|
|
13
13
|
hostFixedInterestRateBps: number
|
|
14
|
+
/** Starting bonus for deleveraging-related liquidations, in bps. */
|
|
15
|
+
minDeleveragingBonusBps: number
|
|
14
16
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* Can be re-used after making sure all underlying production account data is zeroed.
|
|
17
|
+
* Boolean flag to block minting/redeeming of ctokens
|
|
18
|
+
* Blocks usage of ctokens (minting or withdrawing from obligation)
|
|
19
|
+
* Effectively blocks deposit_reserve_liquidity and withdraw_obligation_collateral
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
+
blockCtokenUsage: number
|
|
22
|
+
/** Past reserved space - feel free to reuse. */
|
|
23
|
+
reserved1: Array<number>
|
|
21
24
|
/** Cut of the order execution bonus that the protocol receives, as a percentage */
|
|
22
25
|
protocolOrderExecutionFeePct: number
|
|
23
26
|
/** Protocol take rate is the amount borrowed interest protocol receives, as a percentage */
|
|
@@ -76,7 +79,14 @@ export interface ReserveConfigFields {
|
|
|
76
79
|
* obligations) is NOT affected by this flag.
|
|
77
80
|
*/
|
|
78
81
|
autodeleverageEnabled: number
|
|
79
|
-
|
|
82
|
+
/**
|
|
83
|
+
* Boolean flag indicating whether the reserve is locked for the proposer authority.
|
|
84
|
+
*
|
|
85
|
+
* Once the proposer have finished preparing the reserve, it must be locked to prevent
|
|
86
|
+
* further changes to the reserve configuration allowing review and voting on the proposal
|
|
87
|
+
* without alteration during the voting period.
|
|
88
|
+
*/
|
|
89
|
+
proposerAuthorityLocked: number
|
|
80
90
|
/**
|
|
81
91
|
* Maximum amount liquidity of this reserve borrowed outside all elevation groups
|
|
82
92
|
* - u64::MAX for inf
|
|
@@ -104,13 +114,16 @@ export interface ReserveConfigJSON {
|
|
|
104
114
|
assetTier: number
|
|
105
115
|
/** Flat rate that goes to the host */
|
|
106
116
|
hostFixedInterestRateBps: number
|
|
117
|
+
/** Starting bonus for deleveraging-related liquidations, in bps. */
|
|
118
|
+
minDeleveragingBonusBps: number
|
|
107
119
|
/**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* Can be re-used after making sure all underlying production account data is zeroed.
|
|
120
|
+
* Boolean flag to block minting/redeeming of ctokens
|
|
121
|
+
* Blocks usage of ctokens (minting or withdrawing from obligation)
|
|
122
|
+
* Effectively blocks deposit_reserve_liquidity and withdraw_obligation_collateral
|
|
112
123
|
*/
|
|
113
|
-
|
|
124
|
+
blockCtokenUsage: number
|
|
125
|
+
/** Past reserved space - feel free to reuse. */
|
|
126
|
+
reserved1: Array<number>
|
|
114
127
|
/** Cut of the order execution bonus that the protocol receives, as a percentage */
|
|
115
128
|
protocolOrderExecutionFeePct: number
|
|
116
129
|
/** Protocol take rate is the amount borrowed interest protocol receives, as a percentage */
|
|
@@ -169,7 +182,14 @@ export interface ReserveConfigJSON {
|
|
|
169
182
|
* obligations) is NOT affected by this flag.
|
|
170
183
|
*/
|
|
171
184
|
autodeleverageEnabled: number
|
|
172
|
-
|
|
185
|
+
/**
|
|
186
|
+
* Boolean flag indicating whether the reserve is locked for the proposer authority.
|
|
187
|
+
*
|
|
188
|
+
* Once the proposer have finished preparing the reserve, it must be locked to prevent
|
|
189
|
+
* further changes to the reserve configuration allowing review and voting on the proposal
|
|
190
|
+
* without alteration during the voting period.
|
|
191
|
+
*/
|
|
192
|
+
proposerAuthorityLocked: number
|
|
173
193
|
/**
|
|
174
194
|
* Maximum amount liquidity of this reserve borrowed outside all elevation groups
|
|
175
195
|
* - u64::MAX for inf
|
|
@@ -198,13 +218,16 @@ export class ReserveConfig {
|
|
|
198
218
|
readonly assetTier: number
|
|
199
219
|
/** Flat rate that goes to the host */
|
|
200
220
|
readonly hostFixedInterestRateBps: number
|
|
221
|
+
/** Starting bonus for deleveraging-related liquidations, in bps. */
|
|
222
|
+
readonly minDeleveragingBonusBps: number
|
|
201
223
|
/**
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
* Can be re-used after making sure all underlying production account data is zeroed.
|
|
224
|
+
* Boolean flag to block minting/redeeming of ctokens
|
|
225
|
+
* Blocks usage of ctokens (minting or withdrawing from obligation)
|
|
226
|
+
* Effectively blocks deposit_reserve_liquidity and withdraw_obligation_collateral
|
|
206
227
|
*/
|
|
207
|
-
readonly
|
|
228
|
+
readonly blockCtokenUsage: number
|
|
229
|
+
/** Past reserved space - feel free to reuse. */
|
|
230
|
+
readonly reserved1: Array<number>
|
|
208
231
|
/** Cut of the order execution bonus that the protocol receives, as a percentage */
|
|
209
232
|
readonly protocolOrderExecutionFeePct: number
|
|
210
233
|
/** Protocol take rate is the amount borrowed interest protocol receives, as a percentage */
|
|
@@ -263,7 +286,14 @@ export class ReserveConfig {
|
|
|
263
286
|
* obligations) is NOT affected by this flag.
|
|
264
287
|
*/
|
|
265
288
|
readonly autodeleverageEnabled: number
|
|
266
|
-
|
|
289
|
+
/**
|
|
290
|
+
* Boolean flag indicating whether the reserve is locked for the proposer authority.
|
|
291
|
+
*
|
|
292
|
+
* Once the proposer have finished preparing the reserve, it must be locked to prevent
|
|
293
|
+
* further changes to the reserve configuration allowing review and voting on the proposal
|
|
294
|
+
* without alteration during the voting period.
|
|
295
|
+
*/
|
|
296
|
+
readonly proposerAuthorityLocked: number
|
|
267
297
|
/**
|
|
268
298
|
* Maximum amount liquidity of this reserve borrowed outside all elevation groups
|
|
269
299
|
* - u64::MAX for inf
|
|
@@ -287,7 +317,9 @@ export class ReserveConfig {
|
|
|
287
317
|
this.status = fields.status
|
|
288
318
|
this.assetTier = fields.assetTier
|
|
289
319
|
this.hostFixedInterestRateBps = fields.hostFixedInterestRateBps
|
|
290
|
-
this.
|
|
320
|
+
this.minDeleveragingBonusBps = fields.minDeleveragingBonusBps
|
|
321
|
+
this.blockCtokenUsage = fields.blockCtokenUsage
|
|
322
|
+
this.reserved1 = fields.reserved1
|
|
291
323
|
this.protocolOrderExecutionFeePct = fields.protocolOrderExecutionFeePct
|
|
292
324
|
this.protocolTakeRatePct = fields.protocolTakeRatePct
|
|
293
325
|
this.protocolLiquidationFeePct = fields.protocolLiquidationFeePct
|
|
@@ -319,7 +351,7 @@ export class ReserveConfig {
|
|
|
319
351
|
this.utilizationLimitBlockBorrowingAbovePct =
|
|
320
352
|
fields.utilizationLimitBlockBorrowingAbovePct
|
|
321
353
|
this.autodeleverageEnabled = fields.autodeleverageEnabled
|
|
322
|
-
this.
|
|
354
|
+
this.proposerAuthorityLocked = fields.proposerAuthorityLocked
|
|
323
355
|
this.borrowLimitOutsideElevationGroup =
|
|
324
356
|
fields.borrowLimitOutsideElevationGroup
|
|
325
357
|
this.borrowLimitAgainstThisCollateralInElevationGroup =
|
|
@@ -334,7 +366,9 @@ export class ReserveConfig {
|
|
|
334
366
|
borsh.u8("status"),
|
|
335
367
|
borsh.u8("assetTier"),
|
|
336
368
|
borsh.u16("hostFixedInterestRateBps"),
|
|
337
|
-
borsh.
|
|
369
|
+
borsh.u16("minDeleveragingBonusBps"),
|
|
370
|
+
borsh.u8("blockCtokenUsage"),
|
|
371
|
+
borsh.array(borsh.u8(), 6, "reserved1"),
|
|
338
372
|
borsh.u8("protocolOrderExecutionFeePct"),
|
|
339
373
|
borsh.u8("protocolTakeRatePct"),
|
|
340
374
|
borsh.u8("protocolLiquidationFeePct"),
|
|
@@ -357,7 +391,7 @@ export class ReserveConfig {
|
|
|
357
391
|
borsh.u8("disableUsageAsCollOutsideEmode"),
|
|
358
392
|
borsh.u8("utilizationLimitBlockBorrowingAbovePct"),
|
|
359
393
|
borsh.u8("autodeleverageEnabled"),
|
|
360
|
-
borsh.
|
|
394
|
+
borsh.u8("proposerAuthorityLocked"),
|
|
361
395
|
borsh.u64("borrowLimitOutsideElevationGroup"),
|
|
362
396
|
borsh.array(
|
|
363
397
|
borsh.u64(),
|
|
@@ -376,7 +410,9 @@ export class ReserveConfig {
|
|
|
376
410
|
status: obj.status,
|
|
377
411
|
assetTier: obj.assetTier,
|
|
378
412
|
hostFixedInterestRateBps: obj.hostFixedInterestRateBps,
|
|
379
|
-
|
|
413
|
+
minDeleveragingBonusBps: obj.minDeleveragingBonusBps,
|
|
414
|
+
blockCtokenUsage: obj.blockCtokenUsage,
|
|
415
|
+
reserved1: obj.reserved1,
|
|
380
416
|
protocolOrderExecutionFeePct: obj.protocolOrderExecutionFeePct,
|
|
381
417
|
protocolTakeRatePct: obj.protocolTakeRatePct,
|
|
382
418
|
protocolLiquidationFeePct: obj.protocolLiquidationFeePct,
|
|
@@ -405,7 +441,7 @@ export class ReserveConfig {
|
|
|
405
441
|
utilizationLimitBlockBorrowingAbovePct:
|
|
406
442
|
obj.utilizationLimitBlockBorrowingAbovePct,
|
|
407
443
|
autodeleverageEnabled: obj.autodeleverageEnabled,
|
|
408
|
-
|
|
444
|
+
proposerAuthorityLocked: obj.proposerAuthorityLocked,
|
|
409
445
|
borrowLimitOutsideElevationGroup: obj.borrowLimitOutsideElevationGroup,
|
|
410
446
|
borrowLimitAgainstThisCollateralInElevationGroup:
|
|
411
447
|
obj.borrowLimitAgainstThisCollateralInElevationGroup,
|
|
@@ -419,7 +455,9 @@ export class ReserveConfig {
|
|
|
419
455
|
status: fields.status,
|
|
420
456
|
assetTier: fields.assetTier,
|
|
421
457
|
hostFixedInterestRateBps: fields.hostFixedInterestRateBps,
|
|
422
|
-
|
|
458
|
+
minDeleveragingBonusBps: fields.minDeleveragingBonusBps,
|
|
459
|
+
blockCtokenUsage: fields.blockCtokenUsage,
|
|
460
|
+
reserved1: fields.reserved1,
|
|
423
461
|
protocolOrderExecutionFeePct: fields.protocolOrderExecutionFeePct,
|
|
424
462
|
protocolTakeRatePct: fields.protocolTakeRatePct,
|
|
425
463
|
protocolLiquidationFeePct: fields.protocolLiquidationFeePct,
|
|
@@ -450,7 +488,7 @@ export class ReserveConfig {
|
|
|
450
488
|
utilizationLimitBlockBorrowingAbovePct:
|
|
451
489
|
fields.utilizationLimitBlockBorrowingAbovePct,
|
|
452
490
|
autodeleverageEnabled: fields.autodeleverageEnabled,
|
|
453
|
-
|
|
491
|
+
proposerAuthorityLocked: fields.proposerAuthorityLocked,
|
|
454
492
|
borrowLimitOutsideElevationGroup: fields.borrowLimitOutsideElevationGroup,
|
|
455
493
|
borrowLimitAgainstThisCollateralInElevationGroup:
|
|
456
494
|
fields.borrowLimitAgainstThisCollateralInElevationGroup,
|
|
@@ -464,7 +502,9 @@ export class ReserveConfig {
|
|
|
464
502
|
status: this.status,
|
|
465
503
|
assetTier: this.assetTier,
|
|
466
504
|
hostFixedInterestRateBps: this.hostFixedInterestRateBps,
|
|
467
|
-
|
|
505
|
+
minDeleveragingBonusBps: this.minDeleveragingBonusBps,
|
|
506
|
+
blockCtokenUsage: this.blockCtokenUsage,
|
|
507
|
+
reserved1: this.reserved1,
|
|
468
508
|
protocolOrderExecutionFeePct: this.protocolOrderExecutionFeePct,
|
|
469
509
|
protocolTakeRatePct: this.protocolTakeRatePct,
|
|
470
510
|
protocolLiquidationFeePct: this.protocolLiquidationFeePct,
|
|
@@ -490,7 +530,7 @@ export class ReserveConfig {
|
|
|
490
530
|
utilizationLimitBlockBorrowingAbovePct:
|
|
491
531
|
this.utilizationLimitBlockBorrowingAbovePct,
|
|
492
532
|
autodeleverageEnabled: this.autodeleverageEnabled,
|
|
493
|
-
|
|
533
|
+
proposerAuthorityLocked: this.proposerAuthorityLocked,
|
|
494
534
|
borrowLimitOutsideElevationGroup:
|
|
495
535
|
this.borrowLimitOutsideElevationGroup.toString(),
|
|
496
536
|
borrowLimitAgainstThisCollateralInElevationGroup:
|
|
@@ -507,7 +547,9 @@ export class ReserveConfig {
|
|
|
507
547
|
status: obj.status,
|
|
508
548
|
assetTier: obj.assetTier,
|
|
509
549
|
hostFixedInterestRateBps: obj.hostFixedInterestRateBps,
|
|
510
|
-
|
|
550
|
+
minDeleveragingBonusBps: obj.minDeleveragingBonusBps,
|
|
551
|
+
blockCtokenUsage: obj.blockCtokenUsage,
|
|
552
|
+
reserved1: obj.reserved1,
|
|
511
553
|
protocolOrderExecutionFeePct: obj.protocolOrderExecutionFeePct,
|
|
512
554
|
protocolTakeRatePct: obj.protocolTakeRatePct,
|
|
513
555
|
protocolLiquidationFeePct: obj.protocolLiquidationFeePct,
|
|
@@ -537,7 +579,7 @@ export class ReserveConfig {
|
|
|
537
579
|
utilizationLimitBlockBorrowingAbovePct:
|
|
538
580
|
obj.utilizationLimitBlockBorrowingAbovePct,
|
|
539
581
|
autodeleverageEnabled: obj.autodeleverageEnabled,
|
|
540
|
-
|
|
582
|
+
proposerAuthorityLocked: obj.proposerAuthorityLocked,
|
|
541
583
|
borrowLimitOutsideElevationGroup: new BN(
|
|
542
584
|
obj.borrowLimitOutsideElevationGroup
|
|
543
585
|
),
|
|
@@ -11,9 +11,9 @@ export interface ReserveFeesFields {
|
|
|
11
11
|
* clarity:
|
|
12
12
|
* 1% = (1 << 60) / 100 = 11529215046068470
|
|
13
13
|
* 0.01% (1 basis point) = 115292150460685
|
|
14
|
-
* 0.00001% (Aave
|
|
14
|
+
* 0.00001% (Aave origination fee) = 115292150461
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
originationFeeSf: BN
|
|
17
17
|
/**
|
|
18
18
|
* Fee for flash loan, expressed as scaled fraction.
|
|
19
19
|
* 0.3% (Aave flash loan fee) = 0.003 * 2^60 = 3458764513820541
|
|
@@ -30,9 +30,9 @@ export interface ReserveFeesJSON {
|
|
|
30
30
|
* clarity:
|
|
31
31
|
* 1% = (1 << 60) / 100 = 11529215046068470
|
|
32
32
|
* 0.01% (1 basis point) = 115292150460685
|
|
33
|
-
* 0.00001% (Aave
|
|
33
|
+
* 0.00001% (Aave origination fee) = 115292150461
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
originationFeeSf: string
|
|
36
36
|
/**
|
|
37
37
|
* Fee for flash loan, expressed as scaled fraction.
|
|
38
38
|
* 0.3% (Aave flash loan fee) = 0.003 * 2^60 = 3458764513820541
|
|
@@ -56,9 +56,9 @@ export class ReserveFees {
|
|
|
56
56
|
* clarity:
|
|
57
57
|
* 1% = (1 << 60) / 100 = 11529215046068470
|
|
58
58
|
* 0.01% (1 basis point) = 115292150460685
|
|
59
|
-
* 0.00001% (Aave
|
|
59
|
+
* 0.00001% (Aave origination fee) = 115292150461
|
|
60
60
|
*/
|
|
61
|
-
readonly
|
|
61
|
+
readonly originationFeeSf: BN
|
|
62
62
|
/**
|
|
63
63
|
* Fee for flash loan, expressed as scaled fraction.
|
|
64
64
|
* 0.3% (Aave flash loan fee) = 0.003 * 2^60 = 3458764513820541
|
|
@@ -68,7 +68,7 @@ export class ReserveFees {
|
|
|
68
68
|
readonly padding: Array<number>
|
|
69
69
|
|
|
70
70
|
constructor(fields: ReserveFeesFields) {
|
|
71
|
-
this.
|
|
71
|
+
this.originationFeeSf = fields.originationFeeSf
|
|
72
72
|
this.flashLoanFeeSf = fields.flashLoanFeeSf
|
|
73
73
|
this.padding = fields.padding
|
|
74
74
|
}
|
|
@@ -76,7 +76,7 @@ export class ReserveFees {
|
|
|
76
76
|
static layout(property?: string) {
|
|
77
77
|
return borsh.struct(
|
|
78
78
|
[
|
|
79
|
-
borsh.u64("
|
|
79
|
+
borsh.u64("originationFeeSf"),
|
|
80
80
|
borsh.u64("flashLoanFeeSf"),
|
|
81
81
|
borsh.array(borsh.u8(), 8, "padding"),
|
|
82
82
|
],
|
|
@@ -87,7 +87,7 @@ export class ReserveFees {
|
|
|
87
87
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
88
88
|
static fromDecoded(obj: any) {
|
|
89
89
|
return new ReserveFees({
|
|
90
|
-
|
|
90
|
+
originationFeeSf: obj.originationFeeSf,
|
|
91
91
|
flashLoanFeeSf: obj.flashLoanFeeSf,
|
|
92
92
|
padding: obj.padding,
|
|
93
93
|
})
|
|
@@ -95,7 +95,7 @@ export class ReserveFees {
|
|
|
95
95
|
|
|
96
96
|
static toEncodable(fields: ReserveFeesFields) {
|
|
97
97
|
return {
|
|
98
|
-
|
|
98
|
+
originationFeeSf: fields.originationFeeSf,
|
|
99
99
|
flashLoanFeeSf: fields.flashLoanFeeSf,
|
|
100
100
|
padding: fields.padding,
|
|
101
101
|
}
|
|
@@ -103,7 +103,7 @@ export class ReserveFees {
|
|
|
103
103
|
|
|
104
104
|
toJSON(): ReserveFeesJSON {
|
|
105
105
|
return {
|
|
106
|
-
|
|
106
|
+
originationFeeSf: this.originationFeeSf.toString(),
|
|
107
107
|
flashLoanFeeSf: this.flashLoanFeeSf.toString(),
|
|
108
108
|
padding: this.padding,
|
|
109
109
|
}
|
|
@@ -111,7 +111,7 @@ export class ReserveFees {
|
|
|
111
111
|
|
|
112
112
|
static fromJSON(obj: ReserveFeesJSON): ReserveFees {
|
|
113
113
|
return new ReserveFees({
|
|
114
|
-
|
|
114
|
+
originationFeeSf: new BN(obj.originationFeeSf),
|
|
115
115
|
flashLoanFeeSf: new BN(obj.flashLoanFeeSf),
|
|
116
116
|
padding: obj.padding,
|
|
117
117
|
})
|
|
@@ -119,25 +119,25 @@ export class UpdateProtocolTakeRate {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
export interface
|
|
123
|
-
kind: "
|
|
122
|
+
export interface UpdateFeesOriginationFeeJSON {
|
|
123
|
+
kind: "UpdateFeesOriginationFee"
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
export class
|
|
126
|
+
export class UpdateFeesOriginationFee {
|
|
127
127
|
static readonly discriminator = 5
|
|
128
|
-
static readonly kind = "
|
|
128
|
+
static readonly kind = "UpdateFeesOriginationFee"
|
|
129
129
|
readonly discriminator = 5
|
|
130
|
-
readonly kind = "
|
|
130
|
+
readonly kind = "UpdateFeesOriginationFee"
|
|
131
131
|
|
|
132
|
-
toJSON():
|
|
132
|
+
toJSON(): UpdateFeesOriginationFeeJSON {
|
|
133
133
|
return {
|
|
134
|
-
kind: "
|
|
134
|
+
kind: "UpdateFeesOriginationFee",
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
toEncodable() {
|
|
139
139
|
return {
|
|
140
|
-
|
|
140
|
+
UpdateFeesOriginationFee: {},
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -1154,6 +1154,75 @@ export class UpdateProtocolOrderExecutionFee {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
1156
|
|
|
1157
|
+
export interface UpdateProposerAuthorityLockJSON {
|
|
1158
|
+
kind: "UpdateProposerAuthorityLock"
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
export class UpdateProposerAuthorityLock {
|
|
1162
|
+
static readonly discriminator = 50
|
|
1163
|
+
static readonly kind = "UpdateProposerAuthorityLock"
|
|
1164
|
+
readonly discriminator = 50
|
|
1165
|
+
readonly kind = "UpdateProposerAuthorityLock"
|
|
1166
|
+
|
|
1167
|
+
toJSON(): UpdateProposerAuthorityLockJSON {
|
|
1168
|
+
return {
|
|
1169
|
+
kind: "UpdateProposerAuthorityLock",
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
toEncodable() {
|
|
1174
|
+
return {
|
|
1175
|
+
UpdateProposerAuthorityLock: {},
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
export interface UpdateMinDeleveragingBonusBpsJSON {
|
|
1181
|
+
kind: "UpdateMinDeleveragingBonusBps"
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
export class UpdateMinDeleveragingBonusBps {
|
|
1185
|
+
static readonly discriminator = 51
|
|
1186
|
+
static readonly kind = "UpdateMinDeleveragingBonusBps"
|
|
1187
|
+
readonly discriminator = 51
|
|
1188
|
+
readonly kind = "UpdateMinDeleveragingBonusBps"
|
|
1189
|
+
|
|
1190
|
+
toJSON(): UpdateMinDeleveragingBonusBpsJSON {
|
|
1191
|
+
return {
|
|
1192
|
+
kind: "UpdateMinDeleveragingBonusBps",
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
toEncodable() {
|
|
1197
|
+
return {
|
|
1198
|
+
UpdateMinDeleveragingBonusBps: {},
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
export interface UpdateBlockCTokenUsageJSON {
|
|
1204
|
+
kind: "UpdateBlockCTokenUsage"
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
export class UpdateBlockCTokenUsage {
|
|
1208
|
+
static readonly discriminator = 52
|
|
1209
|
+
static readonly kind = "UpdateBlockCTokenUsage"
|
|
1210
|
+
readonly discriminator = 52
|
|
1211
|
+
readonly kind = "UpdateBlockCTokenUsage"
|
|
1212
|
+
|
|
1213
|
+
toJSON(): UpdateBlockCTokenUsageJSON {
|
|
1214
|
+
return {
|
|
1215
|
+
kind: "UpdateBlockCTokenUsage",
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
toEncodable() {
|
|
1220
|
+
return {
|
|
1221
|
+
UpdateBlockCTokenUsage: {},
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1157
1226
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1158
1227
|
export function fromDecoded(obj: any): types.UpdateConfigModeKind {
|
|
1159
1228
|
if (typeof obj !== "object") {
|
|
@@ -1175,8 +1244,8 @@ export function fromDecoded(obj: any): types.UpdateConfigModeKind {
|
|
|
1175
1244
|
if ("UpdateProtocolTakeRate" in obj) {
|
|
1176
1245
|
return new UpdateProtocolTakeRate()
|
|
1177
1246
|
}
|
|
1178
|
-
if ("
|
|
1179
|
-
return new
|
|
1247
|
+
if ("UpdateFeesOriginationFee" in obj) {
|
|
1248
|
+
return new UpdateFeesOriginationFee()
|
|
1180
1249
|
}
|
|
1181
1250
|
if ("UpdateFeesFlashLoanFee" in obj) {
|
|
1182
1251
|
return new UpdateFeesFlashLoanFee()
|
|
@@ -1310,6 +1379,15 @@ export function fromDecoded(obj: any): types.UpdateConfigModeKind {
|
|
|
1310
1379
|
if ("UpdateProtocolOrderExecutionFee" in obj) {
|
|
1311
1380
|
return new UpdateProtocolOrderExecutionFee()
|
|
1312
1381
|
}
|
|
1382
|
+
if ("UpdateProposerAuthorityLock" in obj) {
|
|
1383
|
+
return new UpdateProposerAuthorityLock()
|
|
1384
|
+
}
|
|
1385
|
+
if ("UpdateMinDeleveragingBonusBps" in obj) {
|
|
1386
|
+
return new UpdateMinDeleveragingBonusBps()
|
|
1387
|
+
}
|
|
1388
|
+
if ("UpdateBlockCTokenUsage" in obj) {
|
|
1389
|
+
return new UpdateBlockCTokenUsage()
|
|
1390
|
+
}
|
|
1313
1391
|
|
|
1314
1392
|
throw new Error("Invalid enum object")
|
|
1315
1393
|
}
|
|
@@ -1333,8 +1411,8 @@ export function fromJSON(
|
|
|
1333
1411
|
case "UpdateProtocolTakeRate": {
|
|
1334
1412
|
return new UpdateProtocolTakeRate()
|
|
1335
1413
|
}
|
|
1336
|
-
case "
|
|
1337
|
-
return new
|
|
1414
|
+
case "UpdateFeesOriginationFee": {
|
|
1415
|
+
return new UpdateFeesOriginationFee()
|
|
1338
1416
|
}
|
|
1339
1417
|
case "UpdateFeesFlashLoanFee": {
|
|
1340
1418
|
return new UpdateFeesFlashLoanFee()
|
|
@@ -1468,6 +1546,15 @@ export function fromJSON(
|
|
|
1468
1546
|
case "UpdateProtocolOrderExecutionFee": {
|
|
1469
1547
|
return new UpdateProtocolOrderExecutionFee()
|
|
1470
1548
|
}
|
|
1549
|
+
case "UpdateProposerAuthorityLock": {
|
|
1550
|
+
return new UpdateProposerAuthorityLock()
|
|
1551
|
+
}
|
|
1552
|
+
case "UpdateMinDeleveragingBonusBps": {
|
|
1553
|
+
return new UpdateMinDeleveragingBonusBps()
|
|
1554
|
+
}
|
|
1555
|
+
case "UpdateBlockCTokenUsage": {
|
|
1556
|
+
return new UpdateBlockCTokenUsage()
|
|
1557
|
+
}
|
|
1471
1558
|
}
|
|
1472
1559
|
}
|
|
1473
1560
|
|
|
@@ -1478,7 +1565,7 @@ export function layout(property?: string) {
|
|
|
1478
1565
|
borsh.struct([], "UpdateLiquidationThresholdPct"),
|
|
1479
1566
|
borsh.struct([], "UpdateProtocolLiquidationFee"),
|
|
1480
1567
|
borsh.struct([], "UpdateProtocolTakeRate"),
|
|
1481
|
-
borsh.struct([], "
|
|
1568
|
+
borsh.struct([], "UpdateFeesOriginationFee"),
|
|
1482
1569
|
borsh.struct([], "UpdateFeesFlashLoanFee"),
|
|
1483
1570
|
borsh.struct([], "DeprecatedUpdateFeesReferralFeeBps"),
|
|
1484
1571
|
borsh.struct([], "UpdateDepositLimit"),
|
|
@@ -1523,6 +1610,9 @@ export function layout(property?: string) {
|
|
|
1523
1610
|
borsh.struct([], "UpdateAutodeleverageEnabled"),
|
|
1524
1611
|
borsh.struct([], "UpdateDeleveragingBonusIncreaseBpsPerDay"),
|
|
1525
1612
|
borsh.struct([], "UpdateProtocolOrderExecutionFee"),
|
|
1613
|
+
borsh.struct([], "UpdateProposerAuthorityLock"),
|
|
1614
|
+
borsh.struct([], "UpdateMinDeleveragingBonusBps"),
|
|
1615
|
+
borsh.struct([], "UpdateBlockCTokenUsage"),
|
|
1526
1616
|
])
|
|
1527
1617
|
if (property !== undefined) {
|
|
1528
1618
|
return ret.replicate(property)
|
|
@@ -579,6 +579,52 @@ export class UpdateObligationOrderCreationEnabled {
|
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
|
|
582
|
+
export interface UpdateProposerAuthorityJSON {
|
|
583
|
+
kind: "UpdateProposerAuthority"
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
export class UpdateProposerAuthority {
|
|
587
|
+
static readonly discriminator = 25
|
|
588
|
+
static readonly kind = "UpdateProposerAuthority"
|
|
589
|
+
readonly discriminator = 25
|
|
590
|
+
readonly kind = "UpdateProposerAuthority"
|
|
591
|
+
|
|
592
|
+
toJSON(): UpdateProposerAuthorityJSON {
|
|
593
|
+
return {
|
|
594
|
+
kind: "UpdateProposerAuthority",
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
toEncodable() {
|
|
599
|
+
return {
|
|
600
|
+
UpdateProposerAuthority: {},
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export interface UpdatePriceTriggeredLiquidationDisabledJSON {
|
|
606
|
+
kind: "UpdatePriceTriggeredLiquidationDisabled"
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export class UpdatePriceTriggeredLiquidationDisabled {
|
|
610
|
+
static readonly discriminator = 26
|
|
611
|
+
static readonly kind = "UpdatePriceTriggeredLiquidationDisabled"
|
|
612
|
+
readonly discriminator = 26
|
|
613
|
+
readonly kind = "UpdatePriceTriggeredLiquidationDisabled"
|
|
614
|
+
|
|
615
|
+
toJSON(): UpdatePriceTriggeredLiquidationDisabledJSON {
|
|
616
|
+
return {
|
|
617
|
+
kind: "UpdatePriceTriggeredLiquidationDisabled",
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
toEncodable() {
|
|
622
|
+
return {
|
|
623
|
+
UpdatePriceTriggeredLiquidationDisabled: {},
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
|
|
582
628
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
583
629
|
export function fromDecoded(obj: any): types.UpdateLendingMarketModeKind {
|
|
584
630
|
if (typeof obj !== "object") {
|
|
@@ -660,6 +706,12 @@ export function fromDecoded(obj: any): types.UpdateLendingMarketModeKind {
|
|
|
660
706
|
if ("UpdateObligationOrderCreationEnabled" in obj) {
|
|
661
707
|
return new UpdateObligationOrderCreationEnabled()
|
|
662
708
|
}
|
|
709
|
+
if ("UpdateProposerAuthority" in obj) {
|
|
710
|
+
return new UpdateProposerAuthority()
|
|
711
|
+
}
|
|
712
|
+
if ("UpdatePriceTriggeredLiquidationDisabled" in obj) {
|
|
713
|
+
return new UpdatePriceTriggeredLiquidationDisabled()
|
|
714
|
+
}
|
|
663
715
|
|
|
664
716
|
throw new Error("Invalid enum object")
|
|
665
717
|
}
|
|
@@ -743,6 +795,12 @@ export function fromJSON(
|
|
|
743
795
|
case "UpdateObligationOrderCreationEnabled": {
|
|
744
796
|
return new UpdateObligationOrderCreationEnabled()
|
|
745
797
|
}
|
|
798
|
+
case "UpdateProposerAuthority": {
|
|
799
|
+
return new UpdateProposerAuthority()
|
|
800
|
+
}
|
|
801
|
+
case "UpdatePriceTriggeredLiquidationDisabled": {
|
|
802
|
+
return new UpdatePriceTriggeredLiquidationDisabled()
|
|
803
|
+
}
|
|
746
804
|
}
|
|
747
805
|
}
|
|
748
806
|
|
|
@@ -773,6 +831,8 @@ export function layout(property?: string) {
|
|
|
773
831
|
borsh.struct([], "UpdateObligationOrderExecutionEnabled"),
|
|
774
832
|
borsh.struct([], "UpdateImmutableFlag"),
|
|
775
833
|
borsh.struct([], "UpdateObligationOrderCreationEnabled"),
|
|
834
|
+
borsh.struct([], "UpdateProposerAuthority"),
|
|
835
|
+
borsh.struct([], "UpdatePriceTriggeredLiquidationDisabled"),
|
|
776
836
|
])
|
|
777
837
|
if (property !== undefined) {
|
|
778
838
|
return ret.replicate(property)
|
|
@@ -15,7 +15,7 @@ export type UpdateConfigModeKind =
|
|
|
15
15
|
| UpdateConfigMode.UpdateLiquidationThresholdPct
|
|
16
16
|
| UpdateConfigMode.UpdateProtocolLiquidationFee
|
|
17
17
|
| UpdateConfigMode.UpdateProtocolTakeRate
|
|
18
|
-
| UpdateConfigMode.
|
|
18
|
+
| UpdateConfigMode.UpdateFeesOriginationFee
|
|
19
19
|
| UpdateConfigMode.UpdateFeesFlashLoanFee
|
|
20
20
|
| UpdateConfigMode.DeprecatedUpdateFeesReferralFeeBps
|
|
21
21
|
| UpdateConfigMode.UpdateDepositLimit
|
|
@@ -60,13 +60,16 @@ export type UpdateConfigModeKind =
|
|
|
60
60
|
| UpdateConfigMode.UpdateAutodeleverageEnabled
|
|
61
61
|
| UpdateConfigMode.UpdateDeleveragingBonusIncreaseBpsPerDay
|
|
62
62
|
| UpdateConfigMode.UpdateProtocolOrderExecutionFee
|
|
63
|
+
| UpdateConfigMode.UpdateProposerAuthorityLock
|
|
64
|
+
| UpdateConfigMode.UpdateMinDeleveragingBonusBps
|
|
65
|
+
| UpdateConfigMode.UpdateBlockCTokenUsage
|
|
63
66
|
export type UpdateConfigModeJSON =
|
|
64
67
|
| UpdateConfigMode.UpdateLoanToValuePctJSON
|
|
65
68
|
| UpdateConfigMode.UpdateMaxLiquidationBonusBpsJSON
|
|
66
69
|
| UpdateConfigMode.UpdateLiquidationThresholdPctJSON
|
|
67
70
|
| UpdateConfigMode.UpdateProtocolLiquidationFeeJSON
|
|
68
71
|
| UpdateConfigMode.UpdateProtocolTakeRateJSON
|
|
69
|
-
| UpdateConfigMode.
|
|
72
|
+
| UpdateConfigMode.UpdateFeesOriginationFeeJSON
|
|
70
73
|
| UpdateConfigMode.UpdateFeesFlashLoanFeeJSON
|
|
71
74
|
| UpdateConfigMode.DeprecatedUpdateFeesReferralFeeBpsJSON
|
|
72
75
|
| UpdateConfigMode.UpdateDepositLimitJSON
|
|
@@ -111,6 +114,9 @@ export type UpdateConfigModeJSON =
|
|
|
111
114
|
| UpdateConfigMode.UpdateAutodeleverageEnabledJSON
|
|
112
115
|
| UpdateConfigMode.UpdateDeleveragingBonusIncreaseBpsPerDayJSON
|
|
113
116
|
| UpdateConfigMode.UpdateProtocolOrderExecutionFeeJSON
|
|
117
|
+
| UpdateConfigMode.UpdateProposerAuthorityLockJSON
|
|
118
|
+
| UpdateConfigMode.UpdateMinDeleveragingBonusBpsJSON
|
|
119
|
+
| UpdateConfigMode.UpdateBlockCTokenUsageJSON
|
|
114
120
|
|
|
115
121
|
export { UpdateLendingMarketConfigValue }
|
|
116
122
|
|
|
@@ -163,6 +169,8 @@ export type UpdateLendingMarketModeKind =
|
|
|
163
169
|
| UpdateLendingMarketMode.UpdateObligationOrderExecutionEnabled
|
|
164
170
|
| UpdateLendingMarketMode.UpdateImmutableFlag
|
|
165
171
|
| UpdateLendingMarketMode.UpdateObligationOrderCreationEnabled
|
|
172
|
+
| UpdateLendingMarketMode.UpdateProposerAuthority
|
|
173
|
+
| UpdateLendingMarketMode.UpdatePriceTriggeredLiquidationDisabled
|
|
166
174
|
export type UpdateLendingMarketModeJSON =
|
|
167
175
|
| UpdateLendingMarketMode.UpdateOwnerJSON
|
|
168
176
|
| UpdateLendingMarketMode.UpdateEmergencyModeJSON
|
|
@@ -189,6 +197,8 @@ export type UpdateLendingMarketModeJSON =
|
|
|
189
197
|
| UpdateLendingMarketMode.UpdateObligationOrderExecutionEnabledJSON
|
|
190
198
|
| UpdateLendingMarketMode.UpdateImmutableFlagJSON
|
|
191
199
|
| UpdateLendingMarketMode.UpdateObligationOrderCreationEnabledJSON
|
|
200
|
+
| UpdateLendingMarketMode.UpdateProposerAuthorityJSON
|
|
201
|
+
| UpdateLendingMarketMode.UpdatePriceTriggeredLiquidationDisabledJSON
|
|
192
202
|
|
|
193
203
|
export { UpdateGlobalConfigMode }
|
|
194
204
|
|