@exponent-labs/klend-idl 0.9.24 → 0.9.26

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.
Files changed (394) hide show
  1. package/build/accounts/GlobalConfig.d.ts +27 -0
  2. package/build/accounts/GlobalConfig.js +112 -0
  3. package/build/accounts/GlobalConfig.js.map +1 -0
  4. package/build/accounts/LendingMarket.d.ts +93 -9
  5. package/build/accounts/LendingMarket.js +202 -20
  6. package/build/accounts/LendingMarket.js.map +1 -1
  7. package/build/accounts/Obligation.d.ts +33 -9
  8. package/build/accounts/Obligation.js +69 -20
  9. package/build/accounts/Obligation.js.map +1 -1
  10. package/build/accounts/ReferrerState.js +7 -2
  11. package/build/accounts/ReferrerState.js.map +1 -1
  12. package/build/accounts/ReferrerTokenState.js +3 -1
  13. package/build/accounts/ReferrerTokenState.js.map +1 -1
  14. package/build/accounts/Reserve.d.ts +3 -0
  15. package/build/accounts/Reserve.js +8 -2
  16. package/build/accounts/Reserve.js.map +1 -1
  17. package/build/accounts/ShortUrl.js +7 -2
  18. package/build/accounts/ShortUrl.js.map +1 -1
  19. package/build/accounts/UserMetadata.js +3 -1
  20. package/build/accounts/UserMetadata.js.map +1 -1
  21. package/build/accounts/UserState.js +3 -1
  22. package/build/accounts/UserState.js.map +1 -1
  23. package/build/accounts/WithdrawTicket.d.ts +49 -0
  24. package/build/accounts/WithdrawTicket.js +158 -0
  25. package/build/accounts/WithdrawTicket.js.map +1 -0
  26. package/build/accounts/index.d.ts +4 -0
  27. package/build/accounts/index.js +5 -1
  28. package/build/accounts/index.js.map +1 -1
  29. package/build/errors/custom.d.ts +605 -13
  30. package/build/errors/custom.js +1063 -26
  31. package/build/errors/custom.js.map +1 -1
  32. package/build/index.d.ts +2 -3
  33. package/build/index.js +3 -7
  34. package/build/index.js.map +1 -1
  35. package/build/instructions/abortObligationOwnershipTransfer.d.ts +7 -0
  36. package/build/instructions/abortObligationOwnershipTransfer.js +21 -0
  37. package/build/instructions/abortObligationOwnershipTransfer.js.map +1 -0
  38. package/build/instructions/acceptObligationOwnership.d.ts +7 -0
  39. package/build/instructions/acceptObligationOwnership.js +21 -0
  40. package/build/instructions/acceptObligationOwnership.js.map +1 -0
  41. package/build/instructions/approveObligationOwnershipTransfer.d.ts +9 -0
  42. package/build/instructions/approveObligationOwnershipTransfer.js +23 -0
  43. package/build/instructions/approveObligationOwnershipTransfer.js.map +1 -0
  44. package/build/instructions/borrowObligationLiquidity.d.ts +1 -1
  45. package/build/instructions/borrowObligationLiquidity.js +9 -2
  46. package/build/instructions/borrowObligationLiquidity.js.map +1 -1
  47. package/build/instructions/borrowObligationLiquidityV2.js +26 -6
  48. package/build/instructions/borrowObligationLiquidityV2.js.map +1 -1
  49. package/build/instructions/calculateCtokenExchangeRate.d.ts +5 -0
  50. package/build/instructions/calculateCtokenExchangeRate.js +15 -0
  51. package/build/instructions/calculateCtokenExchangeRate.js.map +1 -0
  52. package/build/instructions/cancelWithdrawTicket.d.ts +19 -0
  53. package/build/instructions/cancelWithdrawTicket.js +87 -0
  54. package/build/instructions/cancelWithdrawTicket.js.map +1 -0
  55. package/build/instructions/cloneReserveConfig.d.ts +14 -0
  56. package/build/instructions/cloneReserveConfig.js +70 -0
  57. package/build/instructions/cloneReserveConfig.js.map +1 -0
  58. package/build/instructions/deleteReferrerStateAndShortUrl.js.map +1 -1
  59. package/build/instructions/depositAndWithdraw.d.ts +51 -0
  60. package/build/instructions/depositAndWithdraw.js +202 -0
  61. package/build/instructions/depositAndWithdraw.js.map +1 -0
  62. package/build/instructions/depositObligationCollateral.js.map +1 -1
  63. package/build/instructions/depositObligationCollateralV2.d.ts +25 -0
  64. package/build/instructions/depositObligationCollateralV2.js +109 -0
  65. package/build/instructions/depositObligationCollateralV2.js.map +1 -0
  66. package/build/instructions/depositReserveLiquidity.js +1 -1
  67. package/build/instructions/depositReserveLiquidity.js.map +1 -1
  68. package/build/instructions/depositReserveLiquidityAndObligationCollateral.d.ts +1 -1
  69. package/build/instructions/depositReserveLiquidityAndObligationCollateral.js +9 -6
  70. package/build/instructions/depositReserveLiquidityAndObligationCollateral.js.map +1 -1
  71. package/build/instructions/depositReserveLiquidityAndObligationCollateralV2.js +26 -6
  72. package/build/instructions/depositReserveLiquidityAndObligationCollateralV2.js.map +1 -1
  73. package/build/instructions/enqueueToWithdraw.d.ts +26 -0
  74. package/build/instructions/enqueueToWithdraw.js +113 -0
  75. package/build/instructions/enqueueToWithdraw.js.map +1 -0
  76. package/build/instructions/fillBorrowOrder.d.ts +25 -0
  77. package/build/instructions/fillBorrowOrder.js +82 -0
  78. package/build/instructions/fillBorrowOrder.js.map +1 -0
  79. package/build/instructions/fillBorrowOrderV2.d.ts +29 -0
  80. package/build/instructions/fillBorrowOrderV2.js +122 -0
  81. package/build/instructions/fillBorrowOrderV2.js.map +1 -0
  82. package/build/instructions/flashBorrowReserveLiquidity.d.ts +2 -2
  83. package/build/instructions/flashBorrowReserveLiquidity.js +9 -2
  84. package/build/instructions/flashBorrowReserveLiquidity.js.map +1 -1
  85. package/build/instructions/flashRepayReserveLiquidity.d.ts +2 -2
  86. package/build/instructions/flashRepayReserveLiquidity.js +13 -3
  87. package/build/instructions/flashRepayReserveLiquidity.js.map +1 -1
  88. package/build/instructions/idlMissingTypes.d.ts +3 -2
  89. package/build/instructions/idlMissingTypes.js +7 -3
  90. package/build/instructions/idlMissingTypes.js.map +1 -1
  91. package/build/instructions/index.d.ts +61 -3
  92. package/build/instructions/index.js +62 -3
  93. package/build/instructions/index.js.map +1 -1
  94. package/build/instructions/initFarmsForReserve.d.ts +1 -0
  95. package/build/instructions/initFarmsForReserve.js +6 -1
  96. package/build/instructions/initFarmsForReserve.js.map +1 -1
  97. package/build/instructions/initGlobalConfig.d.ts +10 -0
  98. package/build/instructions/initGlobalConfig.js +24 -0
  99. package/build/instructions/initGlobalConfig.js.map +1 -0
  100. package/build/instructions/initLendingMarket.d.ts +1 -0
  101. package/build/instructions/initLendingMarket.js +8 -1
  102. package/build/instructions/initLendingMarket.js.map +1 -1
  103. package/build/instructions/initObligation.js.map +1 -1
  104. package/build/instructions/initObligationFarmsForReserve.js +1 -1
  105. package/build/instructions/initObligationFarmsForReserve.js.map +1 -1
  106. package/build/instructions/initReferrerStateAndShortUrl.js.map +1 -1
  107. package/build/instructions/initReferrerTokenState.d.ts +2 -5
  108. package/build/instructions/initReferrerTokenState.js +3 -42
  109. package/build/instructions/initReferrerTokenState.js.map +1 -1
  110. package/build/instructions/initReserve.d.ts +3 -1
  111. package/build/instructions/initReserve.js +11 -1
  112. package/build/instructions/initReserve.js.map +1 -1
  113. package/build/instructions/initUserMetadata.d.ts +1 -1
  114. package/build/instructions/initUserMetadata.js +8 -5
  115. package/build/instructions/initUserMetadata.js.map +1 -1
  116. package/build/instructions/initiateObligationOwnershipTransfer.d.ts +11 -0
  117. package/build/instructions/initiateObligationOwnershipTransfer.js +61 -0
  118. package/build/instructions/initiateObligationOwnershipTransfer.js.map +1 -0
  119. package/build/instructions/liquidateObligationAndRedeemReserveCollateral.js +2 -2
  120. package/build/instructions/liquidateObligationAndRedeemReserveCollateral.js.map +1 -1
  121. package/build/instructions/liquidateObligationAndRedeemReserveCollateralV2.d.ts +42 -0
  122. package/build/instructions/liquidateObligationAndRedeemReserveCollateralV2.js +172 -0
  123. package/build/instructions/liquidateObligationAndRedeemReserveCollateralV2.js.map +1 -0
  124. package/build/instructions/markObligationForDeleveraging.d.ts +12 -0
  125. package/build/instructions/markObligationForDeleveraging.js +62 -0
  126. package/build/instructions/markObligationForDeleveraging.js.map +1 -0
  127. package/build/instructions/recoverInvalidTicketCollateral.d.ts +20 -0
  128. package/build/instructions/recoverInvalidTicketCollateral.js +89 -0
  129. package/build/instructions/recoverInvalidTicketCollateral.js.map +1 -0
  130. package/build/instructions/redeemFees.js +1 -1
  131. package/build/instructions/redeemFees.js.map +1 -1
  132. package/build/instructions/redeemReserveCollateral.js +1 -1
  133. package/build/instructions/redeemReserveCollateral.js.map +1 -1
  134. package/build/instructions/refreshObligation.js.map +1 -1
  135. package/build/instructions/refreshObligationFarmsForReserve.d.ts +8 -6
  136. package/build/instructions/refreshObligationFarmsForReserve.js +23 -7
  137. package/build/instructions/refreshObligationFarmsForReserve.js.map +1 -1
  138. package/build/instructions/refreshReserve.d.ts +4 -4
  139. package/build/instructions/refreshReserve.js +11 -12
  140. package/build/instructions/refreshReserve.js.map +1 -1
  141. package/build/instructions/refreshReservesBatch.js.map +1 -1
  142. package/build/instructions/repayAndWithdrawAndRedeem.d.ts +46 -0
  143. package/build/instructions/repayAndWithdrawAndRedeem.js +177 -0
  144. package/build/instructions/repayAndWithdrawAndRedeem.js.map +1 -0
  145. package/build/instructions/repayObligationLiquidity.js +1 -1
  146. package/build/instructions/repayObligationLiquidity.js.map +1 -1
  147. package/build/instructions/repayObligationLiquidityV2.js +31 -7
  148. package/build/instructions/repayObligationLiquidityV2.js.map +1 -1
  149. package/build/instructions/requestElevationGroup.js.map +1 -1
  150. package/build/instructions/rolloverFixedTermBorrow.d.ts +25 -0
  151. package/build/instructions/rolloverFixedTermBorrow.js +76 -0
  152. package/build/instructions/rolloverFixedTermBorrow.js.map +1 -0
  153. package/build/instructions/seedDepositOnInitReserve.d.ts +11 -0
  154. package/build/instructions/seedDepositOnInitReserve.js +37 -0
  155. package/build/instructions/seedDepositOnInitReserve.js.map +1 -0
  156. package/build/instructions/setBorrowOrder.d.ts +20 -0
  157. package/build/instructions/setBorrowOrder.js +76 -0
  158. package/build/instructions/setBorrowOrder.js.map +1 -0
  159. package/build/instructions/setBorrowOrderV2.d.ts +21 -0
  160. package/build/instructions/setBorrowOrderV2.js +78 -0
  161. package/build/instructions/setBorrowOrderV2.js.map +1 -0
  162. package/build/instructions/setObligationOrder.d.ts +13 -0
  163. package/build/instructions/setObligationOrder.js +62 -0
  164. package/build/instructions/setObligationOrder.js.map +1 -0
  165. package/build/instructions/socializeLoss.d.ts +1 -1
  166. package/build/instructions/socializeLoss.js +1 -1
  167. package/build/instructions/socializeLoss.js.map +1 -1
  168. package/build/instructions/socializeLossV2.d.ts +22 -0
  169. package/build/instructions/socializeLossV2.js +94 -0
  170. package/build/instructions/socializeLossV2.js.map +1 -0
  171. package/build/instructions/topupReserveRewards.d.ts +16 -0
  172. package/build/instructions/topupReserveRewards.js +73 -0
  173. package/build/instructions/topupReserveRewards.js.map +1 -0
  174. package/build/instructions/updateGlobalConfig.d.ts +13 -0
  175. package/build/instructions/updateGlobalConfig.js +66 -0
  176. package/build/instructions/updateGlobalConfig.js.map +1 -0
  177. package/build/instructions/updateGlobalConfigAdmin.d.ts +7 -0
  178. package/build/instructions/updateGlobalConfigAdmin.js +21 -0
  179. package/build/instructions/updateGlobalConfigAdmin.js.map +1 -0
  180. package/build/instructions/updateLendingMarket.d.ts +2 -1
  181. package/build/instructions/updateLendingMarket.js +10 -2
  182. package/build/instructions/updateLendingMarket.js.map +1 -1
  183. package/build/instructions/updateLendingMarketOwner.d.ts +1 -0
  184. package/build/instructions/updateLendingMarketOwner.js +5 -0
  185. package/build/instructions/updateLendingMarketOwner.js.map +1 -1
  186. package/build/instructions/updateObligationConfig.d.ts +15 -0
  187. package/build/instructions/updateObligationConfig.js +71 -0
  188. package/build/instructions/updateObligationConfig.js.map +1 -0
  189. package/build/instructions/updateReserveConfig.d.ts +6 -4
  190. package/build/instructions/updateReserveConfig.js +15 -4
  191. package/build/instructions/updateReserveConfig.js.map +1 -1
  192. package/build/instructions/withdrawObligationCollateral.js +1 -1
  193. package/build/instructions/withdrawObligationCollateral.js.map +1 -1
  194. package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.d.ts +1 -1
  195. package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.js +9 -6
  196. package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.js.map +1 -1
  197. package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.js +21 -5
  198. package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.js.map +1 -1
  199. package/build/instructions/withdrawObligationCollateralV2.d.ts +25 -0
  200. package/build/instructions/withdrawObligationCollateralV2.js +109 -0
  201. package/build/instructions/withdrawObligationCollateralV2.js.map +1 -0
  202. package/build/instructions/withdrawProtocolFee.d.ts +3 -2
  203. package/build/instructions/withdrawProtocolFee.js +6 -5
  204. package/build/instructions/withdrawProtocolFee.js.map +1 -1
  205. package/build/instructions/withdrawQueuedLiquidity.d.ts +23 -0
  206. package/build/instructions/withdrawQueuedLiquidity.js +80 -0
  207. package/build/instructions/withdrawQueuedLiquidity.js.map +1 -0
  208. package/build/instructions/withdrawReferrerFees.js +1 -1
  209. package/build/instructions/withdrawReferrerFees.js.map +1 -1
  210. package/build/kamino_lending.d.ts +5753 -2295
  211. package/build/kamino_lending.js +5 -3936
  212. package/build/kamino_lending.js.map +1 -1
  213. package/build/kamino_lending.json +1856 -645
  214. package/build/types/BigFractionBytes.d.ts +2 -1
  215. package/build/types/BigFractionBytes.js +4 -1
  216. package/build/types/BigFractionBytes.js.map +1 -1
  217. package/build/types/BorrowOrder.d.ts +83 -0
  218. package/build/types/BorrowOrder.js +164 -0
  219. package/build/types/BorrowOrder.js.map +1 -0
  220. package/build/types/BorrowOrderConfigArgs.d.ts +42 -0
  221. package/build/types/BorrowOrderConfigArgs.js +107 -0
  222. package/build/types/BorrowOrderConfigArgs.js.map +1 -0
  223. package/build/types/BorrowRateCurve.js.map +1 -1
  224. package/build/types/CurvePoint.d.ts +2 -1
  225. package/build/types/CurvePoint.js.map +1 -1
  226. package/build/types/ElevationGroup.d.ts +2 -1
  227. package/build/types/ElevationGroup.js.map +1 -1
  228. package/build/types/ExchangeRateWithDecimals.d.ts +27 -0
  229. package/build/types/ExchangeRateWithDecimals.js +82 -0
  230. package/build/types/ExchangeRateWithDecimals.js.map +1 -0
  231. package/build/types/FeeCalculation.js +4 -1
  232. package/build/types/FeeCalculation.js.map +1 -1
  233. package/build/types/FixedTermBorrowRolloverConfig.d.ts +47 -0
  234. package/build/types/FixedTermBorrowRolloverConfig.js +114 -0
  235. package/build/types/FixedTermBorrowRolloverConfig.js.map +1 -0
  236. package/build/types/InitObligationArgs.d.ts +2 -1
  237. package/build/types/InitObligationArgs.js.map +1 -1
  238. package/build/types/LastUpdate.d.ts +12 -6
  239. package/build/types/LastUpdate.js +19 -7
  240. package/build/types/LastUpdate.js.map +1 -1
  241. package/build/types/ObligationLiquidity.d.ts +29 -5
  242. package/build/types/ObligationLiquidity.js +25 -8
  243. package/build/types/ObligationLiquidity.js.map +1 -1
  244. package/build/types/ObligationOrder.d.ts +57 -0
  245. package/build/types/ObligationOrder.js +127 -0
  246. package/build/types/ObligationOrder.js.map +1 -0
  247. package/build/types/ProgressCallbackType.d.ts +31 -0
  248. package/build/types/ProgressCallbackType.js +108 -0
  249. package/build/types/ProgressCallbackType.js.map +1 -0
  250. package/build/types/ReserveConfig.d.ts +87 -32
  251. package/build/types/ReserveConfig.js +122 -44
  252. package/build/types/ReserveConfig.js.map +1 -1
  253. package/build/types/ReserveConfigCustomizationArgs.d.ts +42 -0
  254. package/build/types/ReserveConfigCustomizationArgs.js +106 -0
  255. package/build/types/ReserveConfigCustomizationArgs.js.map +1 -0
  256. package/build/types/ReserveFees.d.ts +5 -5
  257. package/build/types/ReserveFees.js +7 -7
  258. package/build/types/ReserveFees.js.map +1 -1
  259. package/build/types/ReserveLiquidity.d.ts +20 -15
  260. package/build/types/ReserveLiquidity.js +29 -22
  261. package/build/types/ReserveLiquidity.js.map +1 -1
  262. package/build/types/UpdateConfigMode.d.ts +232 -63
  263. package/build/types/UpdateConfigMode.js +413 -100
  264. package/build/types/UpdateConfigMode.js.map +1 -1
  265. package/build/types/UpdateGlobalConfigMode.d.ts +31 -0
  266. package/build/types/UpdateGlobalConfigMode.js +108 -0
  267. package/build/types/UpdateGlobalConfigMode.js.map +1 -0
  268. package/build/types/UpdateLendingMarketConfigValue.d.ts +20 -0
  269. package/build/types/UpdateLendingMarketConfigValue.js +33 -1
  270. package/build/types/UpdateLendingMarketConfigValue.js.map +1 -1
  271. package/build/types/UpdateLendingMarketMode.d.ts +400 -23
  272. package/build/types/UpdateLendingMarketMode.js +732 -36
  273. package/build/types/UpdateLendingMarketMode.js.map +1 -1
  274. package/build/types/UpdateObligationConfigMode.d.ts +83 -0
  275. package/build/types/UpdateObligationConfigMode.js +204 -0
  276. package/build/types/UpdateObligationConfigMode.js.map +1 -0
  277. package/build/types/WithdrawQueue.d.ts +32 -0
  278. package/build/types/WithdrawQueue.js +93 -0
  279. package/build/types/WithdrawQueue.js.map +1 -0
  280. package/build/types/index.d.ts +32 -10
  281. package/build/types/index.js +21 -3
  282. package/build/types/index.js.map +1 -1
  283. package/package.json +3 -2
  284. package/scripts/generate-idl-module.mjs +18 -0
  285. package/scripts/patch-optional-accounts.mjs +98 -0
  286. package/scripts/verify-idl-provenance.mjs +16 -0
  287. package/src/accounts/GlobalConfig.ts +113 -0
  288. package/src/accounts/LendingMarket.ts +300 -29
  289. package/src/accounts/Obligation.ts +111 -26
  290. package/src/accounts/ReferrerState.ts +11 -4
  291. package/src/accounts/ReferrerTokenState.ts +6 -3
  292. package/src/accounts/Reserve.ts +10 -2
  293. package/src/accounts/ShortUrl.ts +15 -4
  294. package/src/accounts/UserMetadata.ts +6 -3
  295. package/src/accounts/UserState.ts +24 -8
  296. package/src/accounts/WithdrawTicket.ts +173 -0
  297. package/src/accounts/index.ts +4 -0
  298. package/src/errors/custom.ts +1177 -24
  299. package/src/index.ts +2 -4
  300. package/src/instructions/abortObligationOwnershipTransfer.ts +30 -0
  301. package/src/instructions/acceptObligationOwnership.ts +30 -0
  302. package/src/instructions/approveObligationOwnershipTransfer.ts +34 -0
  303. package/src/instructions/borrowObligationLiquidity.ts +18 -5
  304. package/src/instructions/borrowObligationLiquidityV2.ts +30 -9
  305. package/src/instructions/calculateCtokenExchangeRate.ts +22 -0
  306. package/src/instructions/cancelWithdrawTicket.ts +77 -0
  307. package/src/instructions/cloneReserveConfig.ts +56 -0
  308. package/src/instructions/deleteReferrerStateAndShortUrl.ts +4 -1
  309. package/src/instructions/depositAndWithdraw.ts +229 -0
  310. package/src/instructions/depositObligationCollateral.ts +3 -2
  311. package/src/instructions/depositObligationCollateralV2.ts +110 -0
  312. package/src/instructions/depositReserveLiquidity.ts +4 -3
  313. package/src/instructions/depositReserveLiquidityAndObligationCollateral.ts +18 -9
  314. package/src/instructions/depositReserveLiquidityAndObligationCollateralV2.ts +31 -14
  315. package/src/instructions/enqueueToWithdraw.ts +113 -0
  316. package/src/instructions/fillBorrowOrder.ts +114 -0
  317. package/src/instructions/fillBorrowOrderV2.ts +128 -0
  318. package/src/instructions/flashBorrowReserveLiquidity.ts +19 -6
  319. package/src/instructions/flashRepayReserveLiquidity.ts +23 -7
  320. package/src/instructions/idlMissingTypes.ts +17 -9
  321. package/src/instructions/index.ts +118 -6
  322. package/src/instructions/initFarmsForReserve.ts +11 -3
  323. package/src/instructions/initGlobalConfig.ts +36 -0
  324. package/src/instructions/initLendingMarket.ts +13 -3
  325. package/src/instructions/initObligation.ts +3 -2
  326. package/src/instructions/initObligationFarmsForReserve.ts +5 -3
  327. package/src/instructions/initReferrerStateAndShortUrl.ts +4 -2
  328. package/src/instructions/initReferrerTokenState.ts +6 -16
  329. package/src/instructions/initReserve.ts +21 -3
  330. package/src/instructions/initUserMetadata.ts +18 -8
  331. package/src/instructions/initiateObligationOwnershipTransfer.ts +44 -0
  332. package/src/instructions/liquidateObligationAndRedeemReserveCollateral.ts +7 -5
  333. package/src/instructions/liquidateObligationAndRedeemReserveCollateralV2.ts +191 -0
  334. package/src/instructions/markObligationForDeleveraging.ts +46 -0
  335. package/src/instructions/recoverInvalidTicketCollateral.ts +80 -0
  336. package/src/instructions/redeemFees.ts +8 -2
  337. package/src/instructions/redeemReserveCollateral.ts +4 -3
  338. package/src/instructions/refreshObligation.ts +7 -1
  339. package/src/instructions/refreshObligationFarmsForReserve.ts +35 -15
  340. package/src/instructions/refreshReserve.ts +27 -17
  341. package/src/instructions/refreshReservesBatch.ts +7 -2
  342. package/src/instructions/repayAndWithdrawAndRedeem.ts +199 -0
  343. package/src/instructions/repayObligationLiquidity.ts +4 -3
  344. package/src/instructions/repayObligationLiquidityV2.ts +35 -10
  345. package/src/instructions/requestElevationGroup.ts +4 -2
  346. package/src/instructions/rolloverFixedTermBorrow.ts +108 -0
  347. package/src/instructions/seedDepositOnInitReserve.ts +50 -0
  348. package/src/instructions/setBorrowOrder.ts +66 -0
  349. package/src/instructions/setBorrowOrderV2.ts +69 -0
  350. package/src/instructions/setObligationOrder.ts +45 -0
  351. package/src/instructions/socializeLoss.ts +5 -4
  352. package/src/instructions/socializeLossV2.ts +92 -0
  353. package/src/instructions/topupReserveRewards.ts +60 -0
  354. package/src/instructions/updateGlobalConfig.ts +53 -0
  355. package/src/instructions/updateGlobalConfigAdmin.ts +30 -0
  356. package/src/instructions/updateLendingMarket.ts +15 -5
  357. package/src/instructions/updateLendingMarketOwner.ts +10 -1
  358. package/src/instructions/updateObligationConfig.ts +65 -0
  359. package/src/instructions/updateReserveConfig.ts +27 -10
  360. package/src/instructions/withdrawObligationCollateral.ts +4 -3
  361. package/src/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.ts +18 -9
  362. package/src/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.ts +26 -13
  363. package/src/instructions/withdrawObligationCollateralV2.ts +110 -0
  364. package/src/instructions/withdrawProtocolFee.ts +12 -9
  365. package/src/instructions/withdrawQueuedLiquidity.ts +110 -0
  366. package/src/instructions/withdrawReferrerFees.ts +8 -2
  367. package/src/kamino_lending.json +1856 -645
  368. package/src/kamino_lending.ts +5558 -6034
  369. package/src/types/BigFractionBytes.ts +9 -1
  370. package/src/types/BorrowOrder.ts +168 -0
  371. package/src/types/BorrowOrderConfigArgs.ts +96 -0
  372. package/src/types/BorrowRateCurve.ts +10 -3
  373. package/src/types/CurvePoint.ts +7 -1
  374. package/src/types/ElevationGroup.ts +2 -1
  375. package/src/types/ExchangeRateWithDecimals.ts +64 -0
  376. package/src/types/FeeCalculation.ts +9 -2
  377. package/src/types/FixedTermBorrowRolloverConfig.ts +110 -0
  378. package/src/types/InitObligationArgs.ts +3 -0
  379. package/src/types/LastUpdate.ts +26 -10
  380. package/src/types/ObligationLiquidity.ts +43 -10
  381. package/src/types/ObligationOrder.ts +121 -0
  382. package/src/types/ProgressCallbackType.ts +90 -0
  383. package/src/types/ReserveConfig.ts +169 -62
  384. package/src/types/ReserveConfigCustomizationArgs.ts +96 -0
  385. package/src/types/ReserveFees.ts +9 -9
  386. package/src/types/ReserveLiquidity.ts +38 -28
  387. package/src/types/UpdateConfigMode.ts +507 -117
  388. package/src/types/UpdateGlobalConfigMode.ts +90 -0
  389. package/src/types/UpdateLendingMarketConfigValue.ts +43 -0
  390. package/src/types/UpdateLendingMarketMode.ts +912 -41
  391. package/src/types/UpdateObligationConfigMode.ts +210 -0
  392. package/src/types/WithdrawQueue.ts +85 -0
  393. package/src/types/index.ts +175 -34
  394. package/src/types/AssetTier.ts +0 -116
@@ -33,7 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.UpdateHostFixedInterestRateBps = exports.UpdateBorrowLimitsInElevationGroupAgainstThisReserve = exports.UpdateBorrowLimitOutsideElevationGroup = exports.UpdateBlockPriceUsage = exports.UpdateBlockBorrowingAboveUtilization = exports.UpdateDisableUsageAsCollateralOutsideEmode = exports.UpdateFarmDebt = exports.UpdateFarmCollateral = exports.UpdateReserveStatus = exports.DeprecatedUpdateMultiplierTagBoost = exports.DeprecatedUpdateMultiplierSideBoost = exports.DeleveragingThresholdSlotsPerBps = exports.UpdateElevationGroup = exports.UpdateAssetTier = exports.UpdateBorrowFactor = exports.DeleveragingMarginCallPeriod = exports.UpdateMinLiquidationBonusBps = exports.UpdateBadDebtLiquidationBonusBps = exports.UpdateDepositWithdrawalCapCurrentTotal = exports.UpdateDebtWithdrawalCapCurrentTotal = exports.UpdateDepositWithdrawalCap = exports.UpdateDebtWithdrawalCap = exports.UpdateEntireReserveConfig = exports.UpdateBorrowRateCurve = exports.UpdateSwitchboardTwapFeed = exports.UpdateSwitchboardFeed = exports.UpdatePythPrice = exports.UpdateScopePriceFeed = exports.UpdateTokenInfoTwapMaxAge = exports.UpdateTokenInfoPriceMaxAge = exports.UpdateTokenInfoName = exports.UpdateTokenInfoScopeChain = exports.UpdateTokenInfoScopeTwap = exports.UpdateTokenInfoTwapDivergence = exports.UpdateTokenInfoExpHeuristic = exports.UpdateTokenInfoUpperHeuristic = exports.UpdateTokenInfoLowerHeuristic = exports.UpdateBorrowLimit = exports.UpdateDepositLimit = exports.UpdateFeesReferralFeeBps = exports.UpdateFeesFlashLoanFee = exports.UpdateFeesBorrowFee = exports.UpdateProtocolTakeRate = exports.UpdateProtocolLiquidationFee = exports.UpdateLiquidationThresholdPct = exports.UpdateMaxLiquidationBonusBps = exports.UpdateLoanToValuePct = void 0;
36
+ exports.UpdateProtocolOrderExecutionFee = exports.UpdateDeleveragingBonusIncreaseBpsPerDay = exports.UpdateAutodeleverageEnabled = exports.UpdateHostFixedInterestRateBps = exports.UpdateBorrowLimitsInElevationGroupAgainstThisReserve = exports.UpdateBorrowLimitOutsideElevationGroup = exports.UpdateBlockPriceUsage = exports.UpdateBlockBorrowingAboveUtilizationPct = exports.UpdateDisableUsageAsCollateralOutsideEmode = exports.UpdateFarmDebt = exports.UpdateFarmCollateral = exports.UpdateReserveStatus = exports.DeprecatedUpdateMultiplierTagBoost = exports.DeprecatedUpdateMultiplierSideBoost = exports.UpdateDeleveragingThresholdDecreaseBpsPerDay = exports.UpdateElevationGroup = exports.DeprecatedUpdateAssetTier = exports.UpdateBorrowFactor = exports.UpdateDeleveragingMarginCallPeriod = exports.UpdateMinLiquidationBonusBps = exports.UpdateBadDebtLiquidationBonusBps = exports.DeprecatedUpdateDepositWithdrawalCapCurrentTotal = exports.DeprecatedUpdateDebtWithdrawalCapCurrentTotal = exports.UpdateDepositWithdrawalCap = exports.UpdateDebtWithdrawalCap = exports.DeprecatedUpdateEntireReserveConfig = exports.UpdateBorrowRateCurve = exports.UpdateSwitchboardTwapFeed = exports.UpdateSwitchboardFeed = exports.UpdatePythPrice = exports.UpdateScopePriceFeed = exports.UpdateTokenInfoTwapMaxAge = exports.UpdateTokenInfoPriceMaxAge = exports.UpdateTokenInfoName = exports.UpdateTokenInfoScopeChain = exports.UpdateTokenInfoScopeTwap = exports.UpdateTokenInfoTwapDivergence = exports.UpdateTokenInfoExpHeuristic = exports.UpdateTokenInfoUpperHeuristic = exports.UpdateTokenInfoLowerHeuristic = exports.UpdateBorrowLimit = exports.UpdateDepositLimit = exports.DeprecatedUpdateFeesReferralFeeBps = exports.UpdateFeesFlashLoanFee = exports.UpdateFeesOriginationFee = exports.UpdateProtocolTakeRate = exports.UpdateProtocolLiquidationFee = exports.UpdateLiquidationThresholdPct = exports.UpdateMaxLiquidationBonusBps = exports.UpdateLoanToValuePct = void 0;
37
+ exports.UpdateInterestRateBasis = exports.UpdateReservePermissionedOps = exports.UpdateRewardsAmountPerAccrualUnit = exports.UpdateReserveEmergencyMode = exports.UpdateEarlyRepayRemainingInterestPct = exports.UpdateDebtTermSeconds = exports.UpdateDebtMaturityTimestamp = exports.UpdateBlockCTokenUsage = exports.UpdateMinDeleveragingBonusBps = exports.UpdateProposerAuthorityLock = void 0;
37
38
  exports.fromDecoded = fromDecoded;
38
39
  exports.fromJSON = fromJSON;
39
40
  exports.layout = layout;
@@ -123,23 +124,23 @@ class UpdateProtocolTakeRate {
123
124
  }
124
125
  }
125
126
  exports.UpdateProtocolTakeRate = UpdateProtocolTakeRate;
126
- class UpdateFeesBorrowFee {
127
+ class UpdateFeesOriginationFee {
127
128
  static discriminator = 5;
128
- static kind = "UpdateFeesBorrowFee";
129
+ static kind = "UpdateFeesOriginationFee";
129
130
  discriminator = 5;
130
- kind = "UpdateFeesBorrowFee";
131
+ kind = "UpdateFeesOriginationFee";
131
132
  toJSON() {
132
133
  return {
133
- kind: "UpdateFeesBorrowFee",
134
+ kind: "UpdateFeesOriginationFee",
134
135
  };
135
136
  }
136
137
  toEncodable() {
137
138
  return {
138
- UpdateFeesBorrowFee: {},
139
+ UpdateFeesOriginationFee: {},
139
140
  };
140
141
  }
141
142
  }
142
- exports.UpdateFeesBorrowFee = UpdateFeesBorrowFee;
143
+ exports.UpdateFeesOriginationFee = UpdateFeesOriginationFee;
143
144
  class UpdateFeesFlashLoanFee {
144
145
  static discriminator = 6;
145
146
  static kind = "UpdateFeesFlashLoanFee";
@@ -157,23 +158,23 @@ class UpdateFeesFlashLoanFee {
157
158
  }
158
159
  }
159
160
  exports.UpdateFeesFlashLoanFee = UpdateFeesFlashLoanFee;
160
- class UpdateFeesReferralFeeBps {
161
+ class DeprecatedUpdateFeesReferralFeeBps {
161
162
  static discriminator = 7;
162
- static kind = "UpdateFeesReferralFeeBps";
163
+ static kind = "DeprecatedUpdateFeesReferralFeeBps";
163
164
  discriminator = 7;
164
- kind = "UpdateFeesReferralFeeBps";
165
+ kind = "DeprecatedUpdateFeesReferralFeeBps";
165
166
  toJSON() {
166
167
  return {
167
- kind: "UpdateFeesReferralFeeBps",
168
+ kind: "DeprecatedUpdateFeesReferralFeeBps",
168
169
  };
169
170
  }
170
171
  toEncodable() {
171
172
  return {
172
- UpdateFeesReferralFeeBps: {},
173
+ DeprecatedUpdateFeesReferralFeeBps: {},
173
174
  };
174
175
  }
175
176
  }
176
- exports.UpdateFeesReferralFeeBps = UpdateFeesReferralFeeBps;
177
+ exports.DeprecatedUpdateFeesReferralFeeBps = DeprecatedUpdateFeesReferralFeeBps;
177
178
  class UpdateDepositLimit {
178
179
  static discriminator = 8;
179
180
  static kind = "UpdateDepositLimit";
@@ -446,23 +447,23 @@ class UpdateBorrowRateCurve {
446
447
  }
447
448
  }
448
449
  exports.UpdateBorrowRateCurve = UpdateBorrowRateCurve;
449
- class UpdateEntireReserveConfig {
450
+ class DeprecatedUpdateEntireReserveConfig {
450
451
  static discriminator = 24;
451
- static kind = "UpdateEntireReserveConfig";
452
+ static kind = "DeprecatedUpdateEntireReserveConfig";
452
453
  discriminator = 24;
453
- kind = "UpdateEntireReserveConfig";
454
+ kind = "DeprecatedUpdateEntireReserveConfig";
454
455
  toJSON() {
455
456
  return {
456
- kind: "UpdateEntireReserveConfig",
457
+ kind: "DeprecatedUpdateEntireReserveConfig",
457
458
  };
458
459
  }
459
460
  toEncodable() {
460
461
  return {
461
- UpdateEntireReserveConfig: {},
462
+ DeprecatedUpdateEntireReserveConfig: {},
462
463
  };
463
464
  }
464
465
  }
465
- exports.UpdateEntireReserveConfig = UpdateEntireReserveConfig;
466
+ exports.DeprecatedUpdateEntireReserveConfig = DeprecatedUpdateEntireReserveConfig;
466
467
  class UpdateDebtWithdrawalCap {
467
468
  static discriminator = 25;
468
469
  static kind = "UpdateDebtWithdrawalCap";
@@ -497,40 +498,40 @@ class UpdateDepositWithdrawalCap {
497
498
  }
498
499
  }
499
500
  exports.UpdateDepositWithdrawalCap = UpdateDepositWithdrawalCap;
500
- class UpdateDebtWithdrawalCapCurrentTotal {
501
+ class DeprecatedUpdateDebtWithdrawalCapCurrentTotal {
501
502
  static discriminator = 27;
502
- static kind = "UpdateDebtWithdrawalCapCurrentTotal";
503
+ static kind = "DeprecatedUpdateDebtWithdrawalCapCurrentTotal";
503
504
  discriminator = 27;
504
- kind = "UpdateDebtWithdrawalCapCurrentTotal";
505
+ kind = "DeprecatedUpdateDebtWithdrawalCapCurrentTotal";
505
506
  toJSON() {
506
507
  return {
507
- kind: "UpdateDebtWithdrawalCapCurrentTotal",
508
+ kind: "DeprecatedUpdateDebtWithdrawalCapCurrentTotal",
508
509
  };
509
510
  }
510
511
  toEncodable() {
511
512
  return {
512
- UpdateDebtWithdrawalCapCurrentTotal: {},
513
+ DeprecatedUpdateDebtWithdrawalCapCurrentTotal: {},
513
514
  };
514
515
  }
515
516
  }
516
- exports.UpdateDebtWithdrawalCapCurrentTotal = UpdateDebtWithdrawalCapCurrentTotal;
517
- class UpdateDepositWithdrawalCapCurrentTotal {
517
+ exports.DeprecatedUpdateDebtWithdrawalCapCurrentTotal = DeprecatedUpdateDebtWithdrawalCapCurrentTotal;
518
+ class DeprecatedUpdateDepositWithdrawalCapCurrentTotal {
518
519
  static discriminator = 28;
519
- static kind = "UpdateDepositWithdrawalCapCurrentTotal";
520
+ static kind = "DeprecatedUpdateDepositWithdrawalCapCurrentTotal";
520
521
  discriminator = 28;
521
- kind = "UpdateDepositWithdrawalCapCurrentTotal";
522
+ kind = "DeprecatedUpdateDepositWithdrawalCapCurrentTotal";
522
523
  toJSON() {
523
524
  return {
524
- kind: "UpdateDepositWithdrawalCapCurrentTotal",
525
+ kind: "DeprecatedUpdateDepositWithdrawalCapCurrentTotal",
525
526
  };
526
527
  }
527
528
  toEncodable() {
528
529
  return {
529
- UpdateDepositWithdrawalCapCurrentTotal: {},
530
+ DeprecatedUpdateDepositWithdrawalCapCurrentTotal: {},
530
531
  };
531
532
  }
532
533
  }
533
- exports.UpdateDepositWithdrawalCapCurrentTotal = UpdateDepositWithdrawalCapCurrentTotal;
534
+ exports.DeprecatedUpdateDepositWithdrawalCapCurrentTotal = DeprecatedUpdateDepositWithdrawalCapCurrentTotal;
534
535
  class UpdateBadDebtLiquidationBonusBps {
535
536
  static discriminator = 29;
536
537
  static kind = "UpdateBadDebtLiquidationBonusBps";
@@ -565,23 +566,23 @@ class UpdateMinLiquidationBonusBps {
565
566
  }
566
567
  }
567
568
  exports.UpdateMinLiquidationBonusBps = UpdateMinLiquidationBonusBps;
568
- class DeleveragingMarginCallPeriod {
569
+ class UpdateDeleveragingMarginCallPeriod {
569
570
  static discriminator = 31;
570
- static kind = "DeleveragingMarginCallPeriod";
571
+ static kind = "UpdateDeleveragingMarginCallPeriod";
571
572
  discriminator = 31;
572
- kind = "DeleveragingMarginCallPeriod";
573
+ kind = "UpdateDeleveragingMarginCallPeriod";
573
574
  toJSON() {
574
575
  return {
575
- kind: "DeleveragingMarginCallPeriod",
576
+ kind: "UpdateDeleveragingMarginCallPeriod",
576
577
  };
577
578
  }
578
579
  toEncodable() {
579
580
  return {
580
- DeleveragingMarginCallPeriod: {},
581
+ UpdateDeleveragingMarginCallPeriod: {},
581
582
  };
582
583
  }
583
584
  }
584
- exports.DeleveragingMarginCallPeriod = DeleveragingMarginCallPeriod;
585
+ exports.UpdateDeleveragingMarginCallPeriod = UpdateDeleveragingMarginCallPeriod;
585
586
  class UpdateBorrowFactor {
586
587
  static discriminator = 32;
587
588
  static kind = "UpdateBorrowFactor";
@@ -599,23 +600,23 @@ class UpdateBorrowFactor {
599
600
  }
600
601
  }
601
602
  exports.UpdateBorrowFactor = UpdateBorrowFactor;
602
- class UpdateAssetTier {
603
+ class DeprecatedUpdateAssetTier {
603
604
  static discriminator = 33;
604
- static kind = "UpdateAssetTier";
605
+ static kind = "DeprecatedUpdateAssetTier";
605
606
  discriminator = 33;
606
- kind = "UpdateAssetTier";
607
+ kind = "DeprecatedUpdateAssetTier";
607
608
  toJSON() {
608
609
  return {
609
- kind: "UpdateAssetTier",
610
+ kind: "DeprecatedUpdateAssetTier",
610
611
  };
611
612
  }
612
613
  toEncodable() {
613
614
  return {
614
- UpdateAssetTier: {},
615
+ DeprecatedUpdateAssetTier: {},
615
616
  };
616
617
  }
617
618
  }
618
- exports.UpdateAssetTier = UpdateAssetTier;
619
+ exports.DeprecatedUpdateAssetTier = DeprecatedUpdateAssetTier;
619
620
  class UpdateElevationGroup {
620
621
  static discriminator = 34;
621
622
  static kind = "UpdateElevationGroup";
@@ -633,23 +634,23 @@ class UpdateElevationGroup {
633
634
  }
634
635
  }
635
636
  exports.UpdateElevationGroup = UpdateElevationGroup;
636
- class DeleveragingThresholdSlotsPerBps {
637
+ class UpdateDeleveragingThresholdDecreaseBpsPerDay {
637
638
  static discriminator = 35;
638
- static kind = "DeleveragingThresholdSlotsPerBps";
639
+ static kind = "UpdateDeleveragingThresholdDecreaseBpsPerDay";
639
640
  discriminator = 35;
640
- kind = "DeleveragingThresholdSlotsPerBps";
641
+ kind = "UpdateDeleveragingThresholdDecreaseBpsPerDay";
641
642
  toJSON() {
642
643
  return {
643
- kind: "DeleveragingThresholdSlotsPerBps",
644
+ kind: "UpdateDeleveragingThresholdDecreaseBpsPerDay",
644
645
  };
645
646
  }
646
647
  toEncodable() {
647
648
  return {
648
- DeleveragingThresholdSlotsPerBps: {},
649
+ UpdateDeleveragingThresholdDecreaseBpsPerDay: {},
649
650
  };
650
651
  }
651
652
  }
652
- exports.DeleveragingThresholdSlotsPerBps = DeleveragingThresholdSlotsPerBps;
653
+ exports.UpdateDeleveragingThresholdDecreaseBpsPerDay = UpdateDeleveragingThresholdDecreaseBpsPerDay;
653
654
  class DeprecatedUpdateMultiplierSideBoost {
654
655
  static discriminator = 36;
655
656
  static kind = "DeprecatedUpdateMultiplierSideBoost";
@@ -752,23 +753,23 @@ class UpdateDisableUsageAsCollateralOutsideEmode {
752
753
  }
753
754
  }
754
755
  exports.UpdateDisableUsageAsCollateralOutsideEmode = UpdateDisableUsageAsCollateralOutsideEmode;
755
- class UpdateBlockBorrowingAboveUtilization {
756
+ class UpdateBlockBorrowingAboveUtilizationPct {
756
757
  static discriminator = 42;
757
- static kind = "UpdateBlockBorrowingAboveUtilization";
758
+ static kind = "UpdateBlockBorrowingAboveUtilizationPct";
758
759
  discriminator = 42;
759
- kind = "UpdateBlockBorrowingAboveUtilization";
760
+ kind = "UpdateBlockBorrowingAboveUtilizationPct";
760
761
  toJSON() {
761
762
  return {
762
- kind: "UpdateBlockBorrowingAboveUtilization",
763
+ kind: "UpdateBlockBorrowingAboveUtilizationPct",
763
764
  };
764
765
  }
765
766
  toEncodable() {
766
767
  return {
767
- UpdateBlockBorrowingAboveUtilization: {},
768
+ UpdateBlockBorrowingAboveUtilizationPct: {},
768
769
  };
769
770
  }
770
771
  }
771
- exports.UpdateBlockBorrowingAboveUtilization = UpdateBlockBorrowingAboveUtilization;
772
+ exports.UpdateBlockBorrowingAboveUtilizationPct = UpdateBlockBorrowingAboveUtilizationPct;
772
773
  class UpdateBlockPriceUsage {
773
774
  static discriminator = 43;
774
775
  static kind = "UpdateBlockPriceUsage";
@@ -837,6 +838,227 @@ class UpdateHostFixedInterestRateBps {
837
838
  }
838
839
  }
839
840
  exports.UpdateHostFixedInterestRateBps = UpdateHostFixedInterestRateBps;
841
+ class UpdateAutodeleverageEnabled {
842
+ static discriminator = 47;
843
+ static kind = "UpdateAutodeleverageEnabled";
844
+ discriminator = 47;
845
+ kind = "UpdateAutodeleverageEnabled";
846
+ toJSON() {
847
+ return {
848
+ kind: "UpdateAutodeleverageEnabled",
849
+ };
850
+ }
851
+ toEncodable() {
852
+ return {
853
+ UpdateAutodeleverageEnabled: {},
854
+ };
855
+ }
856
+ }
857
+ exports.UpdateAutodeleverageEnabled = UpdateAutodeleverageEnabled;
858
+ class UpdateDeleveragingBonusIncreaseBpsPerDay {
859
+ static discriminator = 48;
860
+ static kind = "UpdateDeleveragingBonusIncreaseBpsPerDay";
861
+ discriminator = 48;
862
+ kind = "UpdateDeleveragingBonusIncreaseBpsPerDay";
863
+ toJSON() {
864
+ return {
865
+ kind: "UpdateDeleveragingBonusIncreaseBpsPerDay",
866
+ };
867
+ }
868
+ toEncodable() {
869
+ return {
870
+ UpdateDeleveragingBonusIncreaseBpsPerDay: {},
871
+ };
872
+ }
873
+ }
874
+ exports.UpdateDeleveragingBonusIncreaseBpsPerDay = UpdateDeleveragingBonusIncreaseBpsPerDay;
875
+ class UpdateProtocolOrderExecutionFee {
876
+ static discriminator = 49;
877
+ static kind = "UpdateProtocolOrderExecutionFee";
878
+ discriminator = 49;
879
+ kind = "UpdateProtocolOrderExecutionFee";
880
+ toJSON() {
881
+ return {
882
+ kind: "UpdateProtocolOrderExecutionFee",
883
+ };
884
+ }
885
+ toEncodable() {
886
+ return {
887
+ UpdateProtocolOrderExecutionFee: {},
888
+ };
889
+ }
890
+ }
891
+ exports.UpdateProtocolOrderExecutionFee = UpdateProtocolOrderExecutionFee;
892
+ class UpdateProposerAuthorityLock {
893
+ static discriminator = 50;
894
+ static kind = "UpdateProposerAuthorityLock";
895
+ discriminator = 50;
896
+ kind = "UpdateProposerAuthorityLock";
897
+ toJSON() {
898
+ return {
899
+ kind: "UpdateProposerAuthorityLock",
900
+ };
901
+ }
902
+ toEncodable() {
903
+ return {
904
+ UpdateProposerAuthorityLock: {},
905
+ };
906
+ }
907
+ }
908
+ exports.UpdateProposerAuthorityLock = UpdateProposerAuthorityLock;
909
+ class UpdateMinDeleveragingBonusBps {
910
+ static discriminator = 51;
911
+ static kind = "UpdateMinDeleveragingBonusBps";
912
+ discriminator = 51;
913
+ kind = "UpdateMinDeleveragingBonusBps";
914
+ toJSON() {
915
+ return {
916
+ kind: "UpdateMinDeleveragingBonusBps",
917
+ };
918
+ }
919
+ toEncodable() {
920
+ return {
921
+ UpdateMinDeleveragingBonusBps: {},
922
+ };
923
+ }
924
+ }
925
+ exports.UpdateMinDeleveragingBonusBps = UpdateMinDeleveragingBonusBps;
926
+ class UpdateBlockCTokenUsage {
927
+ static discriminator = 52;
928
+ static kind = "UpdateBlockCTokenUsage";
929
+ discriminator = 52;
930
+ kind = "UpdateBlockCTokenUsage";
931
+ toJSON() {
932
+ return {
933
+ kind: "UpdateBlockCTokenUsage",
934
+ };
935
+ }
936
+ toEncodable() {
937
+ return {
938
+ UpdateBlockCTokenUsage: {},
939
+ };
940
+ }
941
+ }
942
+ exports.UpdateBlockCTokenUsage = UpdateBlockCTokenUsage;
943
+ class UpdateDebtMaturityTimestamp {
944
+ static discriminator = 53;
945
+ static kind = "UpdateDebtMaturityTimestamp";
946
+ discriminator = 53;
947
+ kind = "UpdateDebtMaturityTimestamp";
948
+ toJSON() {
949
+ return {
950
+ kind: "UpdateDebtMaturityTimestamp",
951
+ };
952
+ }
953
+ toEncodable() {
954
+ return {
955
+ UpdateDebtMaturityTimestamp: {},
956
+ };
957
+ }
958
+ }
959
+ exports.UpdateDebtMaturityTimestamp = UpdateDebtMaturityTimestamp;
960
+ class UpdateDebtTermSeconds {
961
+ static discriminator = 54;
962
+ static kind = "UpdateDebtTermSeconds";
963
+ discriminator = 54;
964
+ kind = "UpdateDebtTermSeconds";
965
+ toJSON() {
966
+ return {
967
+ kind: "UpdateDebtTermSeconds",
968
+ };
969
+ }
970
+ toEncodable() {
971
+ return {
972
+ UpdateDebtTermSeconds: {},
973
+ };
974
+ }
975
+ }
976
+ exports.UpdateDebtTermSeconds = UpdateDebtTermSeconds;
977
+ class UpdateEarlyRepayRemainingInterestPct {
978
+ static discriminator = 55;
979
+ static kind = "UpdateEarlyRepayRemainingInterestPct";
980
+ discriminator = 55;
981
+ kind = "UpdateEarlyRepayRemainingInterestPct";
982
+ toJSON() {
983
+ return {
984
+ kind: "UpdateEarlyRepayRemainingInterestPct",
985
+ };
986
+ }
987
+ toEncodable() {
988
+ return {
989
+ UpdateEarlyRepayRemainingInterestPct: {},
990
+ };
991
+ }
992
+ }
993
+ exports.UpdateEarlyRepayRemainingInterestPct = UpdateEarlyRepayRemainingInterestPct;
994
+ class UpdateReserveEmergencyMode {
995
+ static discriminator = 56;
996
+ static kind = "UpdateReserveEmergencyMode";
997
+ discriminator = 56;
998
+ kind = "UpdateReserveEmergencyMode";
999
+ toJSON() {
1000
+ return {
1001
+ kind: "UpdateReserveEmergencyMode",
1002
+ };
1003
+ }
1004
+ toEncodable() {
1005
+ return {
1006
+ UpdateReserveEmergencyMode: {},
1007
+ };
1008
+ }
1009
+ }
1010
+ exports.UpdateReserveEmergencyMode = UpdateReserveEmergencyMode;
1011
+ class UpdateRewardsAmountPerAccrualUnit {
1012
+ static discriminator = 57;
1013
+ static kind = "UpdateRewardsAmountPerAccrualUnit";
1014
+ discriminator = 57;
1015
+ kind = "UpdateRewardsAmountPerAccrualUnit";
1016
+ toJSON() {
1017
+ return {
1018
+ kind: "UpdateRewardsAmountPerAccrualUnit",
1019
+ };
1020
+ }
1021
+ toEncodable() {
1022
+ return {
1023
+ UpdateRewardsAmountPerAccrualUnit: {},
1024
+ };
1025
+ }
1026
+ }
1027
+ exports.UpdateRewardsAmountPerAccrualUnit = UpdateRewardsAmountPerAccrualUnit;
1028
+ class UpdateReservePermissionedOps {
1029
+ static discriminator = 58;
1030
+ static kind = "UpdateReservePermissionedOps";
1031
+ discriminator = 58;
1032
+ kind = "UpdateReservePermissionedOps";
1033
+ toJSON() {
1034
+ return {
1035
+ kind: "UpdateReservePermissionedOps",
1036
+ };
1037
+ }
1038
+ toEncodable() {
1039
+ return {
1040
+ UpdateReservePermissionedOps: {},
1041
+ };
1042
+ }
1043
+ }
1044
+ exports.UpdateReservePermissionedOps = UpdateReservePermissionedOps;
1045
+ class UpdateInterestRateBasis {
1046
+ static discriminator = 59;
1047
+ static kind = "UpdateInterestRateBasis";
1048
+ discriminator = 59;
1049
+ kind = "UpdateInterestRateBasis";
1050
+ toJSON() {
1051
+ return {
1052
+ kind: "UpdateInterestRateBasis",
1053
+ };
1054
+ }
1055
+ toEncodable() {
1056
+ return {
1057
+ UpdateInterestRateBasis: {},
1058
+ };
1059
+ }
1060
+ }
1061
+ exports.UpdateInterestRateBasis = UpdateInterestRateBasis;
840
1062
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
841
1063
  function fromDecoded(obj) {
842
1064
  if (typeof obj !== "object") {
@@ -857,14 +1079,14 @@ function fromDecoded(obj) {
857
1079
  if ("UpdateProtocolTakeRate" in obj) {
858
1080
  return new UpdateProtocolTakeRate();
859
1081
  }
860
- if ("UpdateFeesBorrowFee" in obj) {
861
- return new UpdateFeesBorrowFee();
1082
+ if ("UpdateFeesOriginationFee" in obj) {
1083
+ return new UpdateFeesOriginationFee();
862
1084
  }
863
1085
  if ("UpdateFeesFlashLoanFee" in obj) {
864
1086
  return new UpdateFeesFlashLoanFee();
865
1087
  }
866
- if ("UpdateFeesReferralFeeBps" in obj) {
867
- return new UpdateFeesReferralFeeBps();
1088
+ if ("DeprecatedUpdateFeesReferralFeeBps" in obj) {
1089
+ return new DeprecatedUpdateFeesReferralFeeBps();
868
1090
  }
869
1091
  if ("UpdateDepositLimit" in obj) {
870
1092
  return new UpdateDepositLimit();
@@ -914,8 +1136,8 @@ function fromDecoded(obj) {
914
1136
  if ("UpdateBorrowRateCurve" in obj) {
915
1137
  return new UpdateBorrowRateCurve();
916
1138
  }
917
- if ("UpdateEntireReserveConfig" in obj) {
918
- return new UpdateEntireReserveConfig();
1139
+ if ("DeprecatedUpdateEntireReserveConfig" in obj) {
1140
+ return new DeprecatedUpdateEntireReserveConfig();
919
1141
  }
920
1142
  if ("UpdateDebtWithdrawalCap" in obj) {
921
1143
  return new UpdateDebtWithdrawalCap();
@@ -923,11 +1145,11 @@ function fromDecoded(obj) {
923
1145
  if ("UpdateDepositWithdrawalCap" in obj) {
924
1146
  return new UpdateDepositWithdrawalCap();
925
1147
  }
926
- if ("UpdateDebtWithdrawalCapCurrentTotal" in obj) {
927
- return new UpdateDebtWithdrawalCapCurrentTotal();
1148
+ if ("DeprecatedUpdateDebtWithdrawalCapCurrentTotal" in obj) {
1149
+ return new DeprecatedUpdateDebtWithdrawalCapCurrentTotal();
928
1150
  }
929
- if ("UpdateDepositWithdrawalCapCurrentTotal" in obj) {
930
- return new UpdateDepositWithdrawalCapCurrentTotal();
1151
+ if ("DeprecatedUpdateDepositWithdrawalCapCurrentTotal" in obj) {
1152
+ return new DeprecatedUpdateDepositWithdrawalCapCurrentTotal();
931
1153
  }
932
1154
  if ("UpdateBadDebtLiquidationBonusBps" in obj) {
933
1155
  return new UpdateBadDebtLiquidationBonusBps();
@@ -935,20 +1157,20 @@ function fromDecoded(obj) {
935
1157
  if ("UpdateMinLiquidationBonusBps" in obj) {
936
1158
  return new UpdateMinLiquidationBonusBps();
937
1159
  }
938
- if ("DeleveragingMarginCallPeriod" in obj) {
939
- return new DeleveragingMarginCallPeriod();
1160
+ if ("UpdateDeleveragingMarginCallPeriod" in obj) {
1161
+ return new UpdateDeleveragingMarginCallPeriod();
940
1162
  }
941
1163
  if ("UpdateBorrowFactor" in obj) {
942
1164
  return new UpdateBorrowFactor();
943
1165
  }
944
- if ("UpdateAssetTier" in obj) {
945
- return new UpdateAssetTier();
1166
+ if ("DeprecatedUpdateAssetTier" in obj) {
1167
+ return new DeprecatedUpdateAssetTier();
946
1168
  }
947
1169
  if ("UpdateElevationGroup" in obj) {
948
1170
  return new UpdateElevationGroup();
949
1171
  }
950
- if ("DeleveragingThresholdSlotsPerBps" in obj) {
951
- return new DeleveragingThresholdSlotsPerBps();
1172
+ if ("UpdateDeleveragingThresholdDecreaseBpsPerDay" in obj) {
1173
+ return new UpdateDeleveragingThresholdDecreaseBpsPerDay();
952
1174
  }
953
1175
  if ("DeprecatedUpdateMultiplierSideBoost" in obj) {
954
1176
  return new DeprecatedUpdateMultiplierSideBoost();
@@ -968,8 +1190,8 @@ function fromDecoded(obj) {
968
1190
  if ("UpdateDisableUsageAsCollateralOutsideEmode" in obj) {
969
1191
  return new UpdateDisableUsageAsCollateralOutsideEmode();
970
1192
  }
971
- if ("UpdateBlockBorrowingAboveUtilization" in obj) {
972
- return new UpdateBlockBorrowingAboveUtilization();
1193
+ if ("UpdateBlockBorrowingAboveUtilizationPct" in obj) {
1194
+ return new UpdateBlockBorrowingAboveUtilizationPct();
973
1195
  }
974
1196
  if ("UpdateBlockPriceUsage" in obj) {
975
1197
  return new UpdateBlockPriceUsage();
@@ -983,6 +1205,45 @@ function fromDecoded(obj) {
983
1205
  if ("UpdateHostFixedInterestRateBps" in obj) {
984
1206
  return new UpdateHostFixedInterestRateBps();
985
1207
  }
1208
+ if ("UpdateAutodeleverageEnabled" in obj) {
1209
+ return new UpdateAutodeleverageEnabled();
1210
+ }
1211
+ if ("UpdateDeleveragingBonusIncreaseBpsPerDay" in obj) {
1212
+ return new UpdateDeleveragingBonusIncreaseBpsPerDay();
1213
+ }
1214
+ if ("UpdateProtocolOrderExecutionFee" in obj) {
1215
+ return new UpdateProtocolOrderExecutionFee();
1216
+ }
1217
+ if ("UpdateProposerAuthorityLock" in obj) {
1218
+ return new UpdateProposerAuthorityLock();
1219
+ }
1220
+ if ("UpdateMinDeleveragingBonusBps" in obj) {
1221
+ return new UpdateMinDeleveragingBonusBps();
1222
+ }
1223
+ if ("UpdateBlockCTokenUsage" in obj) {
1224
+ return new UpdateBlockCTokenUsage();
1225
+ }
1226
+ if ("UpdateDebtMaturityTimestamp" in obj) {
1227
+ return new UpdateDebtMaturityTimestamp();
1228
+ }
1229
+ if ("UpdateDebtTermSeconds" in obj) {
1230
+ return new UpdateDebtTermSeconds();
1231
+ }
1232
+ if ("UpdateEarlyRepayRemainingInterestPct" in obj) {
1233
+ return new UpdateEarlyRepayRemainingInterestPct();
1234
+ }
1235
+ if ("UpdateReserveEmergencyMode" in obj) {
1236
+ return new UpdateReserveEmergencyMode();
1237
+ }
1238
+ if ("UpdateRewardsAmountPerAccrualUnit" in obj) {
1239
+ return new UpdateRewardsAmountPerAccrualUnit();
1240
+ }
1241
+ if ("UpdateReservePermissionedOps" in obj) {
1242
+ return new UpdateReservePermissionedOps();
1243
+ }
1244
+ if ("UpdateInterestRateBasis" in obj) {
1245
+ return new UpdateInterestRateBasis();
1246
+ }
986
1247
  throw new Error("Invalid enum object");
987
1248
  }
988
1249
  function fromJSON(obj) {
@@ -1002,14 +1263,14 @@ function fromJSON(obj) {
1002
1263
  case "UpdateProtocolTakeRate": {
1003
1264
  return new UpdateProtocolTakeRate();
1004
1265
  }
1005
- case "UpdateFeesBorrowFee": {
1006
- return new UpdateFeesBorrowFee();
1266
+ case "UpdateFeesOriginationFee": {
1267
+ return new UpdateFeesOriginationFee();
1007
1268
  }
1008
1269
  case "UpdateFeesFlashLoanFee": {
1009
1270
  return new UpdateFeesFlashLoanFee();
1010
1271
  }
1011
- case "UpdateFeesReferralFeeBps": {
1012
- return new UpdateFeesReferralFeeBps();
1272
+ case "DeprecatedUpdateFeesReferralFeeBps": {
1273
+ return new DeprecatedUpdateFeesReferralFeeBps();
1013
1274
  }
1014
1275
  case "UpdateDepositLimit": {
1015
1276
  return new UpdateDepositLimit();
@@ -1059,8 +1320,8 @@ function fromJSON(obj) {
1059
1320
  case "UpdateBorrowRateCurve": {
1060
1321
  return new UpdateBorrowRateCurve();
1061
1322
  }
1062
- case "UpdateEntireReserveConfig": {
1063
- return new UpdateEntireReserveConfig();
1323
+ case "DeprecatedUpdateEntireReserveConfig": {
1324
+ return new DeprecatedUpdateEntireReserveConfig();
1064
1325
  }
1065
1326
  case "UpdateDebtWithdrawalCap": {
1066
1327
  return new UpdateDebtWithdrawalCap();
@@ -1068,11 +1329,11 @@ function fromJSON(obj) {
1068
1329
  case "UpdateDepositWithdrawalCap": {
1069
1330
  return new UpdateDepositWithdrawalCap();
1070
1331
  }
1071
- case "UpdateDebtWithdrawalCapCurrentTotal": {
1072
- return new UpdateDebtWithdrawalCapCurrentTotal();
1332
+ case "DeprecatedUpdateDebtWithdrawalCapCurrentTotal": {
1333
+ return new DeprecatedUpdateDebtWithdrawalCapCurrentTotal();
1073
1334
  }
1074
- case "UpdateDepositWithdrawalCapCurrentTotal": {
1075
- return new UpdateDepositWithdrawalCapCurrentTotal();
1335
+ case "DeprecatedUpdateDepositWithdrawalCapCurrentTotal": {
1336
+ return new DeprecatedUpdateDepositWithdrawalCapCurrentTotal();
1076
1337
  }
1077
1338
  case "UpdateBadDebtLiquidationBonusBps": {
1078
1339
  return new UpdateBadDebtLiquidationBonusBps();
@@ -1080,20 +1341,20 @@ function fromJSON(obj) {
1080
1341
  case "UpdateMinLiquidationBonusBps": {
1081
1342
  return new UpdateMinLiquidationBonusBps();
1082
1343
  }
1083
- case "DeleveragingMarginCallPeriod": {
1084
- return new DeleveragingMarginCallPeriod();
1344
+ case "UpdateDeleveragingMarginCallPeriod": {
1345
+ return new UpdateDeleveragingMarginCallPeriod();
1085
1346
  }
1086
1347
  case "UpdateBorrowFactor": {
1087
1348
  return new UpdateBorrowFactor();
1088
1349
  }
1089
- case "UpdateAssetTier": {
1090
- return new UpdateAssetTier();
1350
+ case "DeprecatedUpdateAssetTier": {
1351
+ return new DeprecatedUpdateAssetTier();
1091
1352
  }
1092
1353
  case "UpdateElevationGroup": {
1093
1354
  return new UpdateElevationGroup();
1094
1355
  }
1095
- case "DeleveragingThresholdSlotsPerBps": {
1096
- return new DeleveragingThresholdSlotsPerBps();
1356
+ case "UpdateDeleveragingThresholdDecreaseBpsPerDay": {
1357
+ return new UpdateDeleveragingThresholdDecreaseBpsPerDay();
1097
1358
  }
1098
1359
  case "DeprecatedUpdateMultiplierSideBoost": {
1099
1360
  return new DeprecatedUpdateMultiplierSideBoost();
@@ -1113,8 +1374,8 @@ function fromJSON(obj) {
1113
1374
  case "UpdateDisableUsageAsCollateralOutsideEmode": {
1114
1375
  return new UpdateDisableUsageAsCollateralOutsideEmode();
1115
1376
  }
1116
- case "UpdateBlockBorrowingAboveUtilization": {
1117
- return new UpdateBlockBorrowingAboveUtilization();
1377
+ case "UpdateBlockBorrowingAboveUtilizationPct": {
1378
+ return new UpdateBlockBorrowingAboveUtilizationPct();
1118
1379
  }
1119
1380
  case "UpdateBlockPriceUsage": {
1120
1381
  return new UpdateBlockPriceUsage();
@@ -1128,6 +1389,45 @@ function fromJSON(obj) {
1128
1389
  case "UpdateHostFixedInterestRateBps": {
1129
1390
  return new UpdateHostFixedInterestRateBps();
1130
1391
  }
1392
+ case "UpdateAutodeleverageEnabled": {
1393
+ return new UpdateAutodeleverageEnabled();
1394
+ }
1395
+ case "UpdateDeleveragingBonusIncreaseBpsPerDay": {
1396
+ return new UpdateDeleveragingBonusIncreaseBpsPerDay();
1397
+ }
1398
+ case "UpdateProtocolOrderExecutionFee": {
1399
+ return new UpdateProtocolOrderExecutionFee();
1400
+ }
1401
+ case "UpdateProposerAuthorityLock": {
1402
+ return new UpdateProposerAuthorityLock();
1403
+ }
1404
+ case "UpdateMinDeleveragingBonusBps": {
1405
+ return new UpdateMinDeleveragingBonusBps();
1406
+ }
1407
+ case "UpdateBlockCTokenUsage": {
1408
+ return new UpdateBlockCTokenUsage();
1409
+ }
1410
+ case "UpdateDebtMaturityTimestamp": {
1411
+ return new UpdateDebtMaturityTimestamp();
1412
+ }
1413
+ case "UpdateDebtTermSeconds": {
1414
+ return new UpdateDebtTermSeconds();
1415
+ }
1416
+ case "UpdateEarlyRepayRemainingInterestPct": {
1417
+ return new UpdateEarlyRepayRemainingInterestPct();
1418
+ }
1419
+ case "UpdateReserveEmergencyMode": {
1420
+ return new UpdateReserveEmergencyMode();
1421
+ }
1422
+ case "UpdateRewardsAmountPerAccrualUnit": {
1423
+ return new UpdateRewardsAmountPerAccrualUnit();
1424
+ }
1425
+ case "UpdateReservePermissionedOps": {
1426
+ return new UpdateReservePermissionedOps();
1427
+ }
1428
+ case "UpdateInterestRateBasis": {
1429
+ return new UpdateInterestRateBasis();
1430
+ }
1131
1431
  }
1132
1432
  }
1133
1433
  function layout(property) {
@@ -1137,9 +1437,9 @@ function layout(property) {
1137
1437
  borsh.struct([], "UpdateLiquidationThresholdPct"),
1138
1438
  borsh.struct([], "UpdateProtocolLiquidationFee"),
1139
1439
  borsh.struct([], "UpdateProtocolTakeRate"),
1140
- borsh.struct([], "UpdateFeesBorrowFee"),
1440
+ borsh.struct([], "UpdateFeesOriginationFee"),
1141
1441
  borsh.struct([], "UpdateFeesFlashLoanFee"),
1142
- borsh.struct([], "UpdateFeesReferralFeeBps"),
1442
+ borsh.struct([], "DeprecatedUpdateFeesReferralFeeBps"),
1143
1443
  borsh.struct([], "UpdateDepositLimit"),
1144
1444
  borsh.struct([], "UpdateBorrowLimit"),
1145
1445
  borsh.struct([], "UpdateTokenInfoLowerHeuristic"),
@@ -1156,29 +1456,42 @@ function layout(property) {
1156
1456
  borsh.struct([], "UpdateSwitchboardFeed"),
1157
1457
  borsh.struct([], "UpdateSwitchboardTwapFeed"),
1158
1458
  borsh.struct([], "UpdateBorrowRateCurve"),
1159
- borsh.struct([], "UpdateEntireReserveConfig"),
1459
+ borsh.struct([], "DeprecatedUpdateEntireReserveConfig"),
1160
1460
  borsh.struct([], "UpdateDebtWithdrawalCap"),
1161
1461
  borsh.struct([], "UpdateDepositWithdrawalCap"),
1162
- borsh.struct([], "UpdateDebtWithdrawalCapCurrentTotal"),
1163
- borsh.struct([], "UpdateDepositWithdrawalCapCurrentTotal"),
1462
+ borsh.struct([], "DeprecatedUpdateDebtWithdrawalCapCurrentTotal"),
1463
+ borsh.struct([], "DeprecatedUpdateDepositWithdrawalCapCurrentTotal"),
1164
1464
  borsh.struct([], "UpdateBadDebtLiquidationBonusBps"),
1165
1465
  borsh.struct([], "UpdateMinLiquidationBonusBps"),
1166
- borsh.struct([], "DeleveragingMarginCallPeriod"),
1466
+ borsh.struct([], "UpdateDeleveragingMarginCallPeriod"),
1167
1467
  borsh.struct([], "UpdateBorrowFactor"),
1168
- borsh.struct([], "UpdateAssetTier"),
1468
+ borsh.struct([], "DeprecatedUpdateAssetTier"),
1169
1469
  borsh.struct([], "UpdateElevationGroup"),
1170
- borsh.struct([], "DeleveragingThresholdSlotsPerBps"),
1470
+ borsh.struct([], "UpdateDeleveragingThresholdDecreaseBpsPerDay"),
1171
1471
  borsh.struct([], "DeprecatedUpdateMultiplierSideBoost"),
1172
1472
  borsh.struct([], "DeprecatedUpdateMultiplierTagBoost"),
1173
1473
  borsh.struct([], "UpdateReserveStatus"),
1174
1474
  borsh.struct([], "UpdateFarmCollateral"),
1175
1475
  borsh.struct([], "UpdateFarmDebt"),
1176
1476
  borsh.struct([], "UpdateDisableUsageAsCollateralOutsideEmode"),
1177
- borsh.struct([], "UpdateBlockBorrowingAboveUtilization"),
1477
+ borsh.struct([], "UpdateBlockBorrowingAboveUtilizationPct"),
1178
1478
  borsh.struct([], "UpdateBlockPriceUsage"),
1179
1479
  borsh.struct([], "UpdateBorrowLimitOutsideElevationGroup"),
1180
1480
  borsh.struct([], "UpdateBorrowLimitsInElevationGroupAgainstThisReserve"),
1181
1481
  borsh.struct([], "UpdateHostFixedInterestRateBps"),
1482
+ borsh.struct([], "UpdateAutodeleverageEnabled"),
1483
+ borsh.struct([], "UpdateDeleveragingBonusIncreaseBpsPerDay"),
1484
+ borsh.struct([], "UpdateProtocolOrderExecutionFee"),
1485
+ borsh.struct([], "UpdateProposerAuthorityLock"),
1486
+ borsh.struct([], "UpdateMinDeleveragingBonusBps"),
1487
+ borsh.struct([], "UpdateBlockCTokenUsage"),
1488
+ borsh.struct([], "UpdateDebtMaturityTimestamp"),
1489
+ borsh.struct([], "UpdateDebtTermSeconds"),
1490
+ borsh.struct([], "UpdateEarlyRepayRemainingInterestPct"),
1491
+ borsh.struct([], "UpdateReserveEmergencyMode"),
1492
+ borsh.struct([], "UpdateRewardsAmountPerAccrualUnit"),
1493
+ borsh.struct([], "UpdateReservePermissionedOps"),
1494
+ borsh.struct([], "UpdateInterestRateBasis"),
1182
1495
  ]);
1183
1496
  if (property !== undefined) {
1184
1497
  return ret.replicate(property);