@kamino-finance/klend-sdk 7.1.4-beta.0 → 7.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/dist/@codegen/klend/accounts/LendingMarket.d.ts +3 -144
  2. package/dist/@codegen/klend/accounts/LendingMarket.d.ts.map +1 -1
  3. package/dist/@codegen/klend/accounts/LendingMarket.js +3 -105
  4. package/dist/@codegen/klend/accounts/LendingMarket.js.map +1 -1
  5. package/dist/@codegen/klend/accounts/Obligation.d.ts +15 -30
  6. package/dist/@codegen/klend/accounts/Obligation.d.ts.map +1 -1
  7. package/dist/@codegen/klend/accounts/Obligation.js +21 -31
  8. package/dist/@codegen/klend/accounts/Obligation.js.map +1 -1
  9. package/dist/@codegen/klend/accounts/Reserve.d.ts +0 -6
  10. package/dist/@codegen/klend/accounts/Reserve.d.ts.map +1 -1
  11. package/dist/@codegen/klend/accounts/Reserve.js +2 -9
  12. package/dist/@codegen/klend/accounts/Reserve.js.map +1 -1
  13. package/dist/@codegen/klend/accounts/UserState.d.ts +75 -0
  14. package/dist/@codegen/klend/accounts/UserState.d.ts.map +1 -1
  15. package/dist/@codegen/klend/accounts/UserState.js +25 -0
  16. package/dist/@codegen/klend/accounts/UserState.js.map +1 -1
  17. package/dist/@codegen/klend/accounts/index.d.ts +0 -6
  18. package/dist/@codegen/klend/accounts/index.d.ts.map +1 -1
  19. package/dist/@codegen/klend/accounts/index.js +1 -7
  20. package/dist/@codegen/klend/accounts/index.js.map +1 -1
  21. package/dist/@codegen/klend/errors/custom.d.ts +2 -226
  22. package/dist/@codegen/klend/errors/custom.d.ts.map +1 -1
  23. package/dist/@codegen/klend/errors/custom.js +3 -396
  24. package/dist/@codegen/klend/errors/custom.js.map +1 -1
  25. package/dist/@codegen/klend/instructions/idlMissingTypes.d.ts +2 -1
  26. package/dist/@codegen/klend/instructions/idlMissingTypes.d.ts.map +1 -1
  27. package/dist/@codegen/klend/instructions/idlMissingTypes.js +2 -6
  28. package/dist/@codegen/klend/instructions/idlMissingTypes.js.map +1 -1
  29. package/dist/@codegen/klend/instructions/index.d.ts +0 -16
  30. package/dist/@codegen/klend/instructions/index.d.ts.map +1 -1
  31. package/dist/@codegen/klend/instructions/index.js +1 -18
  32. package/dist/@codegen/klend/instructions/index.js.map +1 -1
  33. package/dist/@codegen/klend/instructions/initReserve.d.ts +1 -1
  34. package/dist/@codegen/klend/instructions/initReserve.d.ts.map +1 -1
  35. package/dist/@codegen/klend/instructions/initReserve.js +5 -1
  36. package/dist/@codegen/klend/instructions/initReserve.js.map +1 -1
  37. package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.js +1 -1
  38. package/dist/@codegen/klend/instructions/updateGlobalConfig.d.ts +1 -1
  39. package/dist/@codegen/klend/instructions/updateGlobalConfig.d.ts.map +1 -1
  40. package/dist/@codegen/klend/instructions/updateGlobalConfig.js +0 -1
  41. package/dist/@codegen/klend/instructions/updateGlobalConfig.js.map +1 -1
  42. package/dist/@codegen/klend/instructions/updateReserveConfig.d.ts +1 -1
  43. package/dist/@codegen/klend/instructions/updateReserveConfig.d.ts.map +1 -1
  44. package/dist/@codegen/klend/instructions/updateReserveConfig.js +0 -1
  45. package/dist/@codegen/klend/instructions/updateReserveConfig.js.map +1 -1
  46. package/dist/@codegen/klend/instructions/withdrawObligationCollateral.js +1 -1
  47. package/dist/@codegen/klend/instructions/withdrawObligationCollateralV2.js +1 -1
  48. package/dist/@codegen/klend/types/AssetTier.d.ts +45 -0
  49. package/dist/@codegen/klend/types/AssetTier.d.ts.map +1 -0
  50. package/dist/@codegen/klend/types/AssetTier.js +132 -0
  51. package/dist/@codegen/klend/types/AssetTier.js.map +1 -0
  52. package/dist/@codegen/klend/types/ObligationLiquidity.d.ts +5 -35
  53. package/dist/@codegen/klend/types/ObligationLiquidity.d.ts.map +1 -1
  54. package/dist/@codegen/klend/types/ObligationLiquidity.js +7 -17
  55. package/dist/@codegen/klend/types/ObligationLiquidity.js.map +1 -1
  56. package/dist/@codegen/klend/types/ObligationOrder.d.ts +4 -4
  57. package/dist/@codegen/klend/types/ObligationOrder.js +2 -2
  58. package/dist/@codegen/klend/types/ReserveConfig.d.ts +29 -141
  59. package/dist/@codegen/klend/types/ReserveConfig.d.ts.map +1 -1
  60. package/dist/@codegen/klend/types/ReserveConfig.js +25 -89
  61. package/dist/@codegen/klend/types/ReserveConfig.js.map +1 -1
  62. package/dist/@codegen/klend/types/ReserveFees.d.ts +8 -8
  63. package/dist/@codegen/klend/types/ReserveFees.d.ts.map +1 -1
  64. package/dist/@codegen/klend/types/ReserveFees.js +8 -8
  65. package/dist/@codegen/klend/types/ReserveFees.js.map +1 -1
  66. package/dist/@codegen/klend/types/ReserveLiquidity.d.ts +8 -26
  67. package/dist/@codegen/klend/types/ReserveLiquidity.d.ts.map +1 -1
  68. package/dist/@codegen/klend/types/ReserveLiquidity.js +8 -14
  69. package/dist/@codegen/klend/types/ReserveLiquidity.js.map +1 -1
  70. package/dist/@codegen/klend/types/UpdateConfigMode.d.ts +14 -92
  71. package/dist/@codegen/klend/types/UpdateConfigMode.d.ts.map +1 -1
  72. package/dist/@codegen/klend/types/UpdateConfigMode.js +23 -168
  73. package/dist/@codegen/klend/types/UpdateConfigMode.js.map +1 -1
  74. package/dist/@codegen/klend/types/UpdateLendingMarketMode.d.ts +0 -130
  75. package/dist/@codegen/klend/types/UpdateLendingMarketMode.d.ts.map +1 -1
  76. package/dist/@codegen/klend/types/UpdateLendingMarketMode.js +1 -241
  77. package/dist/@codegen/klend/types/UpdateLendingMarketMode.js.map +1 -1
  78. package/dist/@codegen/klend/types/index.d.ts +8 -10
  79. package/dist/@codegen/klend/types/index.d.ts.map +1 -1
  80. package/dist/@codegen/klend/types/index.js +3 -7
  81. package/dist/@codegen/klend/types/index.js.map +1 -1
  82. package/dist/@codegen/klend/zero_padding/ObligationZP.d.ts +4 -9
  83. package/dist/@codegen/klend/zero_padding/ObligationZP.d.ts.map +1 -1
  84. package/dist/@codegen/klend/zero_padding/ObligationZP.js +13 -22
  85. package/dist/@codegen/klend/zero_padding/ObligationZP.js.map +1 -1
  86. package/dist/classes/action.d.ts +3 -30
  87. package/dist/classes/action.d.ts.map +1 -1
  88. package/dist/classes/action.js +10 -364
  89. package/dist/classes/action.js.map +1 -1
  90. package/dist/classes/manager.d.ts.map +1 -1
  91. package/dist/classes/manager.js +0 -10
  92. package/dist/classes/manager.js.map +1 -1
  93. package/dist/classes/market.d.ts +2 -6
  94. package/dist/classes/market.d.ts.map +1 -1
  95. package/dist/classes/market.js +6 -26
  96. package/dist/classes/market.js.map +1 -1
  97. package/dist/classes/obligation.js +1 -1
  98. package/dist/classes/obligation.js.map +1 -1
  99. package/dist/classes/reserve.d.ts.map +1 -1
  100. package/dist/classes/reserve.js +7 -13
  101. package/dist/classes/reserve.js.map +1 -1
  102. package/dist/classes/unstakingPool.d.ts +3 -20
  103. package/dist/classes/unstakingPool.d.ts.map +1 -1
  104. package/dist/classes/unstakingPool.js +8 -62
  105. package/dist/classes/unstakingPool.js.map +1 -1
  106. package/dist/classes/vault.d.ts +1 -1
  107. package/dist/classes/vault.d.ts.map +1 -1
  108. package/dist/classes/vault.js +46 -28
  109. package/dist/classes/vault.js.map +1 -1
  110. package/dist/idl/klend.json +293 -2186
  111. package/dist/lending_operations/index.d.ts +0 -1
  112. package/dist/lending_operations/index.d.ts.map +1 -1
  113. package/dist/lending_operations/index.js +0 -1
  114. package/dist/lending_operations/index.js.map +1 -1
  115. package/dist/manager/client_kamino_manager.js +9 -12
  116. package/dist/manager/client_kamino_manager.js.map +1 -1
  117. package/dist/utils/ata.d.ts +10 -1
  118. package/dist/utils/ata.d.ts.map +1 -1
  119. package/dist/utils/ata.js +47 -0
  120. package/dist/utils/ata.js.map +1 -1
  121. package/dist/utils/managerTypes.d.ts.map +1 -1
  122. package/dist/utils/managerTypes.js +4 -9
  123. package/dist/utils/managerTypes.js.map +1 -1
  124. package/dist/utils/seeds.d.ts +14 -10
  125. package/dist/utils/seeds.d.ts.map +1 -1
  126. package/dist/utils/seeds.js +22 -25
  127. package/dist/utils/seeds.js.map +1 -1
  128. package/package.json +1 -1
  129. package/src/@codegen/klend/accounts/LendingMarket.ts +5 -210
  130. package/src/@codegen/klend/accounts/Obligation.ts +31 -53
  131. package/src/@codegen/klend/accounts/Reserve.ts +2 -13
  132. package/src/@codegen/klend/accounts/UserState.ts +75 -0
  133. package/src/@codegen/klend/accounts/index.ts +0 -6
  134. package/src/@codegen/klend/errors/custom.ts +2 -427
  135. package/src/@codegen/klend/instructions/idlMissingTypes.ts +4 -7
  136. package/src/@codegen/klend/instructions/index.ts +0 -34
  137. package/src/@codegen/klend/instructions/initReserve.ts +6 -2
  138. package/src/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.ts +1 -1
  139. package/src/@codegen/klend/instructions/updateGlobalConfig.ts +1 -2
  140. package/src/@codegen/klend/instructions/updateReserveConfig.ts +1 -2
  141. package/src/@codegen/klend/instructions/withdrawObligationCollateral.ts +1 -1
  142. package/src/@codegen/klend/instructions/withdrawObligationCollateralV2.ts +1 -1
  143. package/src/@codegen/klend/types/AssetTier.ts +119 -0
  144. package/src/@codegen/klend/types/ObligationLiquidity.ts +9 -39
  145. package/src/@codegen/klend/types/ObligationOrder.ts +4 -4
  146. package/src/@codegen/klend/types/ReserveConfig.ts +39 -171
  147. package/src/@codegen/klend/types/ReserveFees.ts +12 -12
  148. package/src/@codegen/klend/types/ReserveLiquidity.ts +12 -30
  149. package/src/@codegen/klend/types/UpdateConfigMode.ts +26 -206
  150. package/src/@codegen/klend/types/UpdateLendingMarketMode.ts +0 -300
  151. package/src/@codegen/klend/types/index.ts +16 -45
  152. package/src/@codegen/klend/zero_padding/ObligationZP.ts +13 -22
  153. package/src/classes/action.ts +8 -577
  154. package/src/classes/manager.ts +0 -11
  155. package/src/classes/market.ts +5 -36
  156. package/src/classes/obligation.ts +1 -1
  157. package/src/classes/reserve.ts +8 -13
  158. package/src/classes/unstakingPool.ts +6 -83
  159. package/src/classes/vault.ts +57 -38
  160. package/src/idl/klend.json +294 -2187
  161. package/src/lending_operations/index.ts +0 -1
  162. package/src/manager/client_kamino_manager.ts +9 -13
  163. package/src/utils/ata.ts +79 -0
  164. package/src/utils/managerTypes.ts +4 -9
  165. package/src/utils/seeds.ts +26 -28
  166. package/dist/@codegen/klend/accounts/PoolState.d.ts +0 -53
  167. package/dist/@codegen/klend/accounts/PoolState.d.ts.map +0 -1
  168. package/dist/@codegen/klend/accounts/PoolState.js +0 -167
  169. package/dist/@codegen/klend/accounts/PoolState.js.map +0 -1
  170. package/dist/@codegen/klend/accounts/UnstakeTicket.d.ts +0 -41
  171. package/dist/@codegen/klend/accounts/UnstakeTicket.d.ts.map +0 -1
  172. package/dist/@codegen/klend/accounts/UnstakeTicket.js +0 -143
  173. package/dist/@codegen/klend/accounts/UnstakeTicket.js.map +0 -1
  174. package/dist/@codegen/klend/accounts/WithdrawTicket.d.ts +0 -132
  175. package/dist/@codegen/klend/accounts/WithdrawTicket.d.ts.map +0 -1
  176. package/dist/@codegen/klend/accounts/WithdrawTicket.js +0 -191
  177. package/dist/@codegen/klend/accounts/WithdrawTicket.js.map +0 -1
  178. package/dist/@codegen/klend/instructions/enqueueToWithdraw.d.ts +0 -39
  179. package/dist/@codegen/klend/instructions/enqueueToWithdraw.d.ts.map +0 -1
  180. package/dist/@codegen/klend/instructions/enqueueToWithdraw.js +0 -67
  181. package/dist/@codegen/klend/instructions/enqueueToWithdraw.js.map +0 -1
  182. package/dist/@codegen/klend/instructions/fillBorrowOrder.d.ts +0 -36
  183. package/dist/@codegen/klend/instructions/fillBorrowOrder.d.ts.map +0 -1
  184. package/dist/@codegen/klend/instructions/fillBorrowOrder.js +0 -49
  185. package/dist/@codegen/klend/instructions/fillBorrowOrder.js.map +0 -1
  186. package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.d.ts +0 -47
  187. package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.d.ts.map +0 -1
  188. package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.js +0 -66
  189. package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.js.map +0 -1
  190. package/dist/@codegen/klend/instructions/setBorrowOrder.d.ts +0 -31
  191. package/dist/@codegen/klend/instructions/setBorrowOrder.d.ts.map +0 -1
  192. package/dist/@codegen/klend/instructions/setBorrowOrder.js +0 -64
  193. package/dist/@codegen/klend/instructions/setBorrowOrder.js.map +0 -1
  194. package/dist/@codegen/klend/instructions/unstakeLstCollateralEnd.d.ts +0 -53
  195. package/dist/@codegen/klend/instructions/unstakeLstCollateralEnd.d.ts.map +0 -1
  196. package/dist/@codegen/klend/instructions/unstakeLstCollateralEnd.js +0 -190
  197. package/dist/@codegen/klend/instructions/unstakeLstCollateralEnd.js.map +0 -1
  198. package/dist/@codegen/klend/instructions/unstakeLstCollateralStart.d.ts +0 -70
  199. package/dist/@codegen/klend/instructions/unstakeLstCollateralStart.d.ts.map +0 -1
  200. package/dist/@codegen/klend/instructions/unstakeLstCollateralStart.js +0 -261
  201. package/dist/@codegen/klend/instructions/unstakeLstCollateralStart.js.map +0 -1
  202. package/dist/@codegen/klend/instructions/withdrawObligationUsol.d.ts +0 -41
  203. package/dist/@codegen/klend/instructions/withdrawObligationUsol.d.ts.map +0 -1
  204. package/dist/@codegen/klend/instructions/withdrawObligationUsol.js +0 -135
  205. package/dist/@codegen/klend/instructions/withdrawObligationUsol.js.map +0 -1
  206. package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.d.ts +0 -51
  207. package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.d.ts.map +0 -1
  208. package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.js +0 -28
  209. package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.js.map +0 -1
  210. package/dist/@codegen/klend/types/BorrowOrder.d.ts +0 -192
  211. package/dist/@codegen/klend/types/BorrowOrder.d.ts.map +0 -1
  212. package/dist/@codegen/klend/types/BorrowOrder.js +0 -194
  213. package/dist/@codegen/klend/types/BorrowOrder.js.map +0 -1
  214. package/dist/@codegen/klend/types/BorrowOrderConfigArgs.d.ts +0 -39
  215. package/dist/@codegen/klend/types/BorrowOrderConfigArgs.d.ts.map +0 -1
  216. package/dist/@codegen/klend/types/BorrowOrderConfigArgs.js +0 -100
  217. package/dist/@codegen/klend/types/BorrowOrderConfigArgs.js.map +0 -1
  218. package/dist/@codegen/klend/types/WithdrawQueue.d.ts +0 -64
  219. package/dist/@codegen/klend/types/WithdrawQueue.d.ts.map +0 -1
  220. package/dist/@codegen/klend/types/WithdrawQueue.js +0 -104
  221. package/dist/@codegen/klend/types/WithdrawQueue.js.map +0 -1
  222. package/dist/lending_operations/unstake_lst_collateral.d.ts +0 -12
  223. package/dist/lending_operations/unstake_lst_collateral.d.ts.map +0 -1
  224. package/dist/lending_operations/unstake_lst_collateral.js +0 -104
  225. package/dist/lending_operations/unstake_lst_collateral.js.map +0 -1
  226. package/src/@codegen/klend/accounts/PoolState.ts +0 -192
  227. package/src/@codegen/klend/accounts/UnstakeTicket.ts +0 -160
  228. package/src/@codegen/klend/accounts/WithdrawTicket.ts +0 -256
  229. package/src/@codegen/klend/instructions/enqueueToWithdraw.ts +0 -89
  230. package/src/@codegen/klend/instructions/fillBorrowOrder.ts +0 -96
  231. package/src/@codegen/klend/instructions/recoverInvalidTicketCollateral.ts +0 -96
  232. package/src/@codegen/klend/instructions/setBorrowOrder.ts +0 -77
  233. package/src/@codegen/klend/instructions/unstakeLstCollateralEnd.ts +0 -251
  234. package/src/@codegen/klend/instructions/unstakeLstCollateralStart.ts +0 -353
  235. package/src/@codegen/klend/instructions/withdrawObligationUsol.ts +0 -168
  236. package/src/@codegen/klend/instructions/withdrawQueuedLiquidity.ts +0 -92
  237. package/src/@codegen/klend/types/BorrowOrder.ts +0 -267
  238. package/src/@codegen/klend/types/BorrowOrderConfigArgs.ts +0 -87
  239. package/src/@codegen/klend/types/WithdrawQueue.ts +0 -117
  240. package/src/lending_operations/unstake_lst_collateral.ts +0 -174
@@ -1 +1 @@
1
- {"version":3,"file":"ObligationLiquidity.d.ts","sourceRoot":"","sources":["../../../../src/@codegen/klend/types/ObligationLiquidity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,OAAO,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,MAAM,OAAO,CAAA;AACtB,OAAO,KAAK,KAAK,MAAM,UAAU,CAAA;AAIjC,MAAM,WAAW,yBAAyB;IACxC,yCAAyC;IACzC,aAAa,EAAE,OAAO,CAAA;IACtB,sEAAsE;IACtE,uBAAuB,EAAE,KAAK,CAAC,sBAAsB,CAAA;IACrD;;;;;;;;;OASG;IACH,wBAAwB,EAAE,EAAE,CAAA;IAC5B,mEAAmE;IACnE,gBAAgB,EAAE,EAAE,CAAA;IACpB,iEAAiE;IACjE,aAAa,EAAE,EAAE,CAAA;IACjB,qGAAqG;IACrG,iCAAiC,EAAE,EAAE,CAAA;IACrC,iEAAiE;IACjE,oCAAoC,EAAE,EAAE,CAAA;IACxC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,CAAA;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAA;IACrB,sEAAsE;IACtE,uBAAuB,EAAE,KAAK,CAAC,oBAAoB,CAAA;IACnD;;;;;;;;;OASG;IACH,wBAAwB,EAAE,MAAM,CAAA;IAChC,mEAAmE;IACnE,gBAAgB,EAAE,MAAM,CAAA;IACxB,iEAAiE;IACjE,aAAa,EAAE,MAAM,CAAA;IACrB,qGAAqG;IACrG,iCAAiC,EAAE,MAAM,CAAA;IACzC,iEAAiE;IACjE,oCAAoC,EAAE,MAAM,CAAA;IAC5C,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CACxB;AAED,iCAAiC;AACjC,qBAAa,mBAAmB;IAC9B,yCAAyC;IACzC,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;IAC/B,sEAAs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AAM,CAAC,WAAW,CAAC,MAAM,EAAE,yBAAyB;;;;;;;;;;;;;IAiBpD,MAAM,IAAI,uBAAuB;IAejC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,uBAAuB,GAAG,mBAAmB;IAmBlE,WAAW;;;;;;;;;;;;;CAGZ"}
@@ -48,17 +48,7 @@ class ObligationLiquidity {
48
48
  borrowReserve;
49
49
  /** Borrow rate used for calculating interest (big scaled fraction) */
50
50
  cumulativeBorrowRateBsf;
51
- /**
52
- * The timestamp at which this debt was taken.
53
- * More specifically: when the *first* borrow operation from this reserve happened.
54
- * This means that:
55
- * - adding debt of the same reserve does *not* change this timestamp,
56
- * - repaying the entire debt of this reserve *does* reset this timestamp.
57
- *
58
- * Note: this field is *not* only metadata: it is used in the logic, e.g. for enforcing the
59
- * fixed-term borrows (i.e. those induced by [ReserveConfig::debt_term_seconds]).
60
- */
61
- firstBorrowedAtTimestamp;
51
+ padding;
62
52
  /** Amount of liquidity borrowed plus interest (scaled fraction) */
63
53
  borrowedAmountSf;
64
54
  /** Liquidity market value in quote currency (scaled fraction) */
@@ -73,7 +63,7 @@ class ObligationLiquidity {
73
63
  this.cumulativeBorrowRateBsf = new types.BigFractionBytes({
74
64
  ...fields.cumulativeBorrowRateBsf,
75
65
  });
76
- this.firstBorrowedAtTimestamp = fields.firstBorrowedAtTimestamp;
66
+ this.padding = fields.padding;
77
67
  this.borrowedAmountSf = fields.borrowedAmountSf;
78
68
  this.marketValueSf = fields.marketValueSf;
79
69
  this.borrowFactorAdjustedMarketValueSf =
@@ -86,7 +76,7 @@ class ObligationLiquidity {
86
76
  return borsh.struct([
87
77
  (0, utils_1.borshAddress)("borrowReserve"),
88
78
  types.BigFractionBytes.layout("cumulativeBorrowRateBsf"),
89
- borsh.u64("firstBorrowedAtTimestamp"),
79
+ borsh.u64("padding"),
90
80
  borsh.u128("borrowedAmountSf"),
91
81
  borsh.u128("marketValueSf"),
92
82
  borsh.u128("borrowFactorAdjustedMarketValueSf"),
@@ -99,7 +89,7 @@ class ObligationLiquidity {
99
89
  return new ObligationLiquidity({
100
90
  borrowReserve: obj.borrowReserve,
101
91
  cumulativeBorrowRateBsf: types.BigFractionBytes.fromDecoded(obj.cumulativeBorrowRateBsf),
102
- firstBorrowedAtTimestamp: obj.firstBorrowedAtTimestamp,
92
+ padding: obj.padding,
103
93
  borrowedAmountSf: obj.borrowedAmountSf,
104
94
  marketValueSf: obj.marketValueSf,
105
95
  borrowFactorAdjustedMarketValueSf: obj.borrowFactorAdjustedMarketValueSf,
@@ -111,7 +101,7 @@ class ObligationLiquidity {
111
101
  return {
112
102
  borrowReserve: fields.borrowReserve,
113
103
  cumulativeBorrowRateBsf: types.BigFractionBytes.toEncodable(fields.cumulativeBorrowRateBsf),
114
- firstBorrowedAtTimestamp: fields.firstBorrowedAtTimestamp,
104
+ padding: fields.padding,
115
105
  borrowedAmountSf: fields.borrowedAmountSf,
116
106
  marketValueSf: fields.marketValueSf,
117
107
  borrowFactorAdjustedMarketValueSf: fields.borrowFactorAdjustedMarketValueSf,
@@ -123,7 +113,7 @@ class ObligationLiquidity {
123
113
  return {
124
114
  borrowReserve: this.borrowReserve,
125
115
  cumulativeBorrowRateBsf: this.cumulativeBorrowRateBsf.toJSON(),
126
- firstBorrowedAtTimestamp: this.firstBorrowedAtTimestamp.toString(),
116
+ padding: this.padding.toString(),
127
117
  borrowedAmountSf: this.borrowedAmountSf.toString(),
128
118
  marketValueSf: this.marketValueSf.toString(),
129
119
  borrowFactorAdjustedMarketValueSf: this.borrowFactorAdjustedMarketValueSf.toString(),
@@ -135,7 +125,7 @@ class ObligationLiquidity {
135
125
  return new ObligationLiquidity({
136
126
  borrowReserve: (0, kit_1.address)(obj.borrowReserve),
137
127
  cumulativeBorrowRateBsf: types.BigFractionBytes.fromJSON(obj.cumulativeBorrowRateBsf),
138
- firstBorrowedAtTimestamp: new bn_js_1.default(obj.firstBorrowedAtTimestamp),
128
+ padding: new bn_js_1.default(obj.padding),
139
129
  borrowedAmountSf: new bn_js_1.default(obj.borrowedAmountSf),
140
130
  marketValueSf: new bn_js_1.default(obj.marketValueSf),
141
131
  borrowFactorAdjustedMarketValueSf: new bn_js_1.default(obj.borrowFactorAdjustedMarketValueSf),
@@ -1 +1 @@
1
- {"version":3,"file":"ObligationLiquidity.js","sourceRoot":"","sources":["../../../../src/@codegen/klend/types/ObligationLiquidity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAA8C,CAAC,wDAAwD;AACvG,kDAAsB,CAAC,wDAAwD;AAC/E,gDAAiC,CAAC,wDAAwD;AAC1F,wDAAyC;AACzC,oCAAuC;AAwDvC,iCAAiC;AACjC,MAAa,mBAAmB;IAC9B,yCAAyC;IAChC,aAAa,CAAS;IAC/B,sEAAsE;IAC7D,uBAAuB,CAAwB;IACxD;;;;;;;;;OASG;IACM,wBAAwB,CAAI;IACrC,mEAAmE;IAC1D,gBAAgB,CAAI;IAC7B,iEAAiE;IACxD,aAAa,CAAI;IAC1B,qGAAqG;IAC5F,iCAAiC,CAAI;IAC9C,iEAAiE;IACxD,oCAAoC,CAAI;IACxC,QAAQ,CAAW;IAE5B,YAAY,MAAiC;QAC3C,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAA;QACzC,IAAI,CAAC,uBAAuB,GAAG,IAAI,KAAK,CAAC,gBAAgB,CAAC;YACxD,GAAG,MAAM,CAAC,uBAAuB;SAClC,CAAC,CAAA;QACF,IAAI,CAAC,wBAAwB,GAAG,MAAM,CAAC,wBAAwB,CAAA;QAC/D,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAA;QAC/C,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAA;QACzC,IAAI,CAAC,iCAAiC;YACpC,MAAM,CAAC,iCAAiC,CAAA;QAC1C,IAAI,CAAC,oCAAoC;YACvC,MAAM,CAAC,oCAAoC,CAAA;QAC7C,IAAI,CAA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,CAAC,OAAO,CAAC;YAC5B,gBAAgB,EAAE,IAAI,eAAE,CAAC,GAAG,CAAC,gBAAgB,CAAC;YAC9C,aAAa,EAAE,IAAI,eAAE,CAAC,GAAG,CAAC,aAAa,CAAC;YACxC,iCAAiC,EAAE,IAAI,eAAE,CACvC,GAAG,CAAC,iCAAiC,CACtC;YACD,oCAAoC,EAAE,IAAI,eAAE,CAC1C,GAAG,CAAC,oCAAoC,CACzC;YACD,QAAQ,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,eAAE,CAAC,IAAI,CAAC,CAAC;SACnD,CAAC,CAAA;IACJ,CAAC;IAED,WAAW;QACT,OAAO,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;IAC9C,CAAC;CACF;AAtHD,kDAsHC"}
@@ -73,7 +73,7 @@ export interface ObligationOrderFields {
73
73
  */
74
74
  opportunityType: number;
75
75
  /**
76
- * Alignment padding.
76
+ * Internal padding.
77
77
  * The fields above take up 2+2+1+1 bytes = 48 bits, which means we need 80 bits = 10 bytes to
78
78
  * align with `u128`s.
79
79
  */
@@ -157,7 +157,7 @@ export interface ObligationOrderJSON {
157
157
  */
158
158
  opportunityType: number;
159
159
  /**
160
- * Alignment padding.
160
+ * Internal padding.
161
161
  * The fields above take up 2+2+1+1 bytes = 48 bits, which means we need 80 bits = 10 bytes to
162
162
  * align with `u128`s.
163
163
  */
@@ -170,7 +170,7 @@ export interface ObligationOrderJSON {
170
170
  }
171
171
  /**
172
172
  * A single obligation order.
173
- * See [Obligation::obligation_orders].
173
+ * See [Obligation::orders].
174
174
  */
175
175
  export declare class ObligationOrder {
176
176
  /**
@@ -245,7 +245,7 @@ export declare class ObligationOrder {
245
245
  */
246
246
  readonly opportunityType: number;
247
247
  /**
248
- * Alignment padding.
248
+ * Internal padding.
249
249
  * The fields above take up 2+2+1+1 bytes = 48 bits, which means we need 80 bits = 10 bytes to
250
250
  * align with `u128`s.
251
251
  */
@@ -41,7 +41,7 @@ const bn_js_1 = __importDefault(require("bn.js")); // eslint-disable-line @types
41
41
  const borsh = __importStar(require("@coral-xyz/borsh"));
42
42
  /**
43
43
  * A single obligation order.
44
- * See [Obligation::obligation_orders].
44
+ * See [Obligation::orders].
45
45
  */
46
46
  class ObligationOrder {
47
47
  /**
@@ -116,7 +116,7 @@ class ObligationOrder {
116
116
  */
117
117
  opportunityType;
118
118
  /**
119
- * Alignment padding.
119
+ * Internal padding.
120
120
  * The fields above take up 2+2+1+1 bytes = 48 bits, which means we need 80 bits = 10 bytes to
121
121
  * align with `u128`s.
122
122
  */
@@ -5,18 +5,16 @@ export interface ReserveConfigFields {
5
5
  /** Status of the reserve Active/Obsolete/Hidden */
6
6
  status: number;
7
7
  /** Asset tier -> 0 - regular (collateral & debt), 1 - isolated collateral, 2 - isolated debt */
8
- paddingDeprecatedAssetTier: number;
8
+ assetTier: number;
9
9
  /** Flat rate that goes to the host */
10
10
  hostFixedInterestRateBps: number;
11
- /** Starting bonus for deleveraging-related liquidations, in bps. */
12
- minDeleveragingBonusBps: number;
13
11
  /**
14
- * Boolean flag indicating whether the reserve can be used in the close lst position process.
15
- * See handler_unstake_lst_collateral_start.rs for more information.
12
+ * [DEPRECATED] Space that used to hold 2 fields:
13
+ * - Boost for side (debt or collateral)
14
+ * - Reward points multiplier per obligation type
15
+ * Can be re-used after making sure all underlying production account data is zeroed.
16
16
  */
17
- canUnstakeLstCollateral: number;
18
- /** Past reserved space - feel free to reuse. */
19
- reserved1: Array<number>;
17
+ reserved2: Array<number>;
20
18
  /** Cut of the order execution bonus that the protocol receives, as a percentage */
21
19
  protocolOrderExecutionFeePct: number;
22
20
  /** Protocol take rate is the amount borrowed interest protocol receives, as a percentage */
@@ -75,14 +73,7 @@ export interface ReserveConfigFields {
75
73
  * obligations) is NOT affected by this flag.
76
74
  */
77
75
  autodeleverageEnabled: number;
78
- /**
79
- * Boolean flag indicating whether the reserve is locked for the proposer authority.
80
- *
81
- * Once the proposer have finished preparing the reserve, it must be locked to prevent
82
- * further changes to the reserve configuration allowing review and voting on the proposal
83
- * without alteration during the voting period.
84
- */
85
- proposerAuthorityLocked: number;
76
+ reserved1: Array<number>;
86
77
  /**
87
78
  * Maximum amount liquidity of this reserve borrowed outside all elevation groups
88
79
  * - u64::MAX for inf
@@ -101,48 +92,21 @@ export interface ReserveConfigFields {
101
92
  * Only relevant when `autodeleverage_enabled == 1`, and must not be 0 in such case.
102
93
  */
103
94
  deleveragingBonusIncreaseBpsPerDay: BN;
104
- /**
105
- * The timestamp at which all [Obligation::borrows] using this reserve become liquidatable
106
- * (on the same terms as reserve-wide deleveraging).
107
- * Inactive when zeroed (i.e. debt never matures).
108
- *
109
- * Note: this feature is independent of [Self::debt_term_seconds] - the liquidation mechanism
110
- * is based directly on the timestamp defined here, on Reserve's level.
111
- */
112
- debtMaturityTimestamp: BN;
113
- /**
114
- * The duration after which any debt coming from this Reserve must be repaid.
115
- * Inactive when zeroed (i.e. funds can be borrowed indefinitely).
116
- *
117
- * Note: this feature is independent of [Self::debt_maturity_timestamp] - the liquidation
118
- * mechanism is based on the [ObligationLiquidity::first_borrowed_at_timestamp].
119
- */
120
- debtTermSeconds: BN;
121
- /**
122
- * Maximum number of lamports that can differ when comparing LTVs.
123
- *
124
- * For example, when doing deposit_and_withdraw we want to make sure that new_ltv <= old_ltv
125
- * but for some tokens we want to have a little bit of margin in terms of lamports deposited.
126
- * This is recommended to be 0 for most (if not all) reserves.
127
- */
128
- ltvLamportsMargin: BN;
129
95
  }
130
96
  export interface ReserveConfigJSON {
131
97
  /** Status of the reserve Active/Obsolete/Hidden */
132
98
  status: number;
133
99
  /** Asset tier -> 0 - regular (collateral & debt), 1 - isolated collateral, 2 - isolated debt */
134
- paddingDeprecatedAssetTier: number;
100
+ assetTier: number;
135
101
  /** Flat rate that goes to the host */
136
102
  hostFixedInterestRateBps: number;
137
- /** Starting bonus for deleveraging-related liquidations, in bps. */
138
- minDeleveragingBonusBps: number;
139
103
  /**
140
- * Boolean flag indicating whether the reserve can be used in the close lst position process.
141
- * See handler_unstake_lst_collateral_start.rs for more information.
104
+ * [DEPRECATED] Space that used to hold 2 fields:
105
+ * - Boost for side (debt or collateral)
106
+ * - Reward points multiplier per obligation type
107
+ * Can be re-used after making sure all underlying production account data is zeroed.
142
108
  */
143
- canUnstakeLstCollateral: number;
144
- /** Past reserved space - feel free to reuse. */
145
- reserved1: Array<number>;
109
+ reserved2: Array<number>;
146
110
  /** Cut of the order execution bonus that the protocol receives, as a percentage */
147
111
  protocolOrderExecutionFeePct: number;
148
112
  /** Protocol take rate is the amount borrowed interest protocol receives, as a percentage */
@@ -201,14 +165,7 @@ export interface ReserveConfigJSON {
201
165
  * obligations) is NOT affected by this flag.
202
166
  */
203
167
  autodeleverageEnabled: number;
204
- /**
205
- * Boolean flag indicating whether the reserve is locked for the proposer authority.
206
- *
207
- * Once the proposer have finished preparing the reserve, it must be locked to prevent
208
- * further changes to the reserve configuration allowing review and voting on the proposal
209
- * without alteration during the voting period.
210
- */
211
- proposerAuthorityLocked: number;
168
+ reserved1: Array<number>;
212
169
  /**
213
170
  * Maximum amount liquidity of this reserve borrowed outside all elevation groups
214
171
  * - u64::MAX for inf
@@ -227,49 +184,22 @@ export interface ReserveConfigJSON {
227
184
  * Only relevant when `autodeleverage_enabled == 1`, and must not be 0 in such case.
228
185
  */
229
186
  deleveragingBonusIncreaseBpsPerDay: string;
230
- /**
231
- * The timestamp at which all [Obligation::borrows] using this reserve become liquidatable
232
- * (on the same terms as reserve-wide deleveraging).
233
- * Inactive when zeroed (i.e. debt never matures).
234
- *
235
- * Note: this feature is independent of [Self::debt_term_seconds] - the liquidation mechanism
236
- * is based directly on the timestamp defined here, on Reserve's level.
237
- */
238
- debtMaturityTimestamp: string;
239
- /**
240
- * The duration after which any debt coming from this Reserve must be repaid.
241
- * Inactive when zeroed (i.e. funds can be borrowed indefinitely).
242
- *
243
- * Note: this feature is independent of [Self::debt_maturity_timestamp] - the liquidation
244
- * mechanism is based on the [ObligationLiquidity::first_borrowed_at_timestamp].
245
- */
246
- debtTermSeconds: string;
247
- /**
248
- * Maximum number of lamports that can differ when comparing LTVs.
249
- *
250
- * For example, when doing deposit_and_withdraw we want to make sure that new_ltv <= old_ltv
251
- * but for some tokens we want to have a little bit of margin in terms of lamports deposited.
252
- * This is recommended to be 0 for most (if not all) reserves.
253
- */
254
- ltvLamportsMargin: string;
255
187
  }
256
188
  /** Reserve configuration values */
257
189
  export declare class ReserveConfig {
258
190
  /** Status of the reserve Active/Obsolete/Hidden */
259
191
  readonly status: number;
260
192
  /** Asset tier -> 0 - regular (collateral & debt), 1 - isolated collateral, 2 - isolated debt */
261
- readonly paddingDeprecatedAssetTier: number;
193
+ readonly assetTier: number;
262
194
  /** Flat rate that goes to the host */
263
195
  readonly hostFixedInterestRateBps: number;
264
- /** Starting bonus for deleveraging-related liquidations, in bps. */
265
- readonly minDeleveragingBonusBps: number;
266
196
  /**
267
- * Boolean flag indicating whether the reserve can be used in the close lst position process.
268
- * See handler_unstake_lst_collateral_start.rs for more information.
197
+ * [DEPRECATED] Space that used to hold 2 fields:
198
+ * - Boost for side (debt or collateral)
199
+ * - Reward points multiplier per obligation type
200
+ * Can be re-used after making sure all underlying production account data is zeroed.
269
201
  */
270
- readonly canUnstakeLstCollateral: number;
271
- /** Past reserved space - feel free to reuse. */
272
- readonly reserved1: Array<number>;
202
+ readonly reserved2: Array<number>;
273
203
  /** Cut of the order execution bonus that the protocol receives, as a percentage */
274
204
  readonly protocolOrderExecutionFeePct: number;
275
205
  /** Protocol take rate is the amount borrowed interest protocol receives, as a percentage */
@@ -328,14 +258,7 @@ export declare class ReserveConfig {
328
258
  * obligations) is NOT affected by this flag.
329
259
  */
330
260
  readonly autodeleverageEnabled: number;
331
- /**
332
- * Boolean flag indicating whether the reserve is locked for the proposer authority.
333
- *
334
- * Once the proposer have finished preparing the reserve, it must be locked to prevent
335
- * further changes to the reserve configuration allowing review and voting on the proposal
336
- * without alteration during the voting period.
337
- */
338
- readonly proposerAuthorityLocked: number;
261
+ readonly reserved1: Array<number>;
339
262
  /**
340
263
  * Maximum amount liquidity of this reserve borrowed outside all elevation groups
341
264
  * - u64::MAX for inf
@@ -354,41 +277,14 @@ export declare class ReserveConfig {
354
277
  * Only relevant when `autodeleverage_enabled == 1`, and must not be 0 in such case.
355
278
  */
356
279
  readonly deleveragingBonusIncreaseBpsPerDay: BN;
357
- /**
358
- * The timestamp at which all [Obligation::borrows] using this reserve become liquidatable
359
- * (on the same terms as reserve-wide deleveraging).
360
- * Inactive when zeroed (i.e. debt never matures).
361
- *
362
- * Note: this feature is independent of [Self::debt_term_seconds] - the liquidation mechanism
363
- * is based directly on the timestamp defined here, on Reserve's level.
364
- */
365
- readonly debtMaturityTimestamp: BN;
366
- /**
367
- * The duration after which any debt coming from this Reserve must be repaid.
368
- * Inactive when zeroed (i.e. funds can be borrowed indefinitely).
369
- *
370
- * Note: this feature is independent of [Self::debt_maturity_timestamp] - the liquidation
371
- * mechanism is based on the [ObligationLiquidity::first_borrowed_at_timestamp].
372
- */
373
- readonly debtTermSeconds: BN;
374
- /**
375
- * Maximum number of lamports that can differ when comparing LTVs.
376
- *
377
- * For example, when doing deposit_and_withdraw we want to make sure that new_ltv <= old_ltv
378
- * but for some tokens we want to have a little bit of margin in terms of lamports deposited.
379
- * This is recommended to be 0 for most (if not all) reserves.
380
- */
381
- readonly ltvLamportsMargin: BN;
382
280
  constructor(fields: ReserveConfigFields);
383
281
  static layout(property?: string): import("buffer-layout").Layout<unknown>;
384
282
  static fromDecoded(obj: any): types.ReserveConfig;
385
283
  static toEncodable(fields: ReserveConfigFields): {
386
284
  status: number;
387
- paddingDeprecatedAssetTier: number;
285
+ assetTier: number;
388
286
  hostFixedInterestRateBps: number;
389
- minDeleveragingBonusBps: number;
390
- canUnstakeLstCollateral: number;
391
- reserved1: number[];
287
+ reserved2: number[];
392
288
  protocolOrderExecutionFeePct: number;
393
289
  protocolTakeRatePct: number;
394
290
  protocolLiquidationFeePct: number;
@@ -400,7 +296,7 @@ export declare class ReserveConfig {
400
296
  deleveragingMarginCallPeriodSecs: BN;
401
297
  deleveragingThresholdDecreaseBpsPerDay: BN;
402
298
  fees: {
403
- originationFeeSf: BN;
299
+ borrowFeeSf: BN;
404
300
  flashLoanFeeSf: BN;
405
301
  padding: number[];
406
302
  };
@@ -455,23 +351,18 @@ export declare class ReserveConfig {
455
351
  disableUsageAsCollOutsideEmode: number;
456
352
  utilizationLimitBlockBorrowingAbovePct: number;
457
353
  autodeleverageEnabled: number;
458
- proposerAuthorityLocked: number;
354
+ reserved1: number[];
459
355
  borrowLimitOutsideElevationGroup: BN;
460
356
  borrowLimitAgainstThisCollateralInElevationGroup: BN[];
461
357
  deleveragingBonusIncreaseBpsPerDay: BN;
462
- debtMaturityTimestamp: BN;
463
- debtTermSeconds: BN;
464
- ltvLamportsMargin: BN;
465
358
  };
466
359
  toJSON(): ReserveConfigJSON;
467
360
  static fromJSON(obj: ReserveConfigJSON): ReserveConfig;
468
361
  toEncodable(): {
469
362
  status: number;
470
- paddingDeprecatedAssetTier: number;
363
+ assetTier: number;
471
364
  hostFixedInterestRateBps: number;
472
- minDeleveragingBonusBps: number;
473
- canUnstakeLstCollateral: number;
474
- reserved1: number[];
365
+ reserved2: number[];
475
366
  protocolOrderExecutionFeePct: number;
476
367
  protocolTakeRatePct: number;
477
368
  protocolLiquidationFeePct: number;
@@ -483,7 +374,7 @@ export declare class ReserveConfig {
483
374
  deleveragingMarginCallPeriodSecs: BN;
484
375
  deleveragingThresholdDecreaseBpsPerDay: BN;
485
376
  fees: {
486
- originationFeeSf: BN;
377
+ borrowFeeSf: BN;
487
378
  flashLoanFeeSf: BN;
488
379
  padding: number[];
489
380
  };
@@ -538,13 +429,10 @@ export declare class ReserveConfig {
538
429
  disableUsageAsCollOutsideEmode: number;
539
430
  utilizationLimitBlockBorrowingAbovePct: number;
540
431
  autodeleverageEnabled: number;
541
- proposerAuthorityLocked: number;
432
+ reserved1: number[];
542
433
  borrowLimitOutsideElevationGroup: BN;
543
434
  borrowLimitAgainstThisCollateralInElevationGroup: BN[];
544
435
  deleveragingBonusIncreaseBpsPerDay: BN;
545
- debtMaturityTimestamp: BN;
546
- debtTermSeconds: BN;
547
- ltvLamportsMargin: BN;
548
436
  };
549
437
  }
550
438
  //# sourceMappingURL=ReserveConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReserveConfig.d.ts","sourceRoot":"","sources":["../../../../src/@codegen/klend/types/ReserveConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,OAAO,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,MAAM,OAAO,CAAA;AACtB,OAAO,KAAK,KAAK,MAAM,UAAU,CAAA;AAIjC,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAA;IACd,gGAAgG;IAChG,0BAA0B,EAAE,MAAM,CAAA;IAClC,sCAAsC;IACtC,wBAAwB,EAAE,MAAM,CAAA;IAChC,oEAAoE;IACpE,uBAAuB,EAAE,MAAM,CAAA;IAC/B;;;OAGG;IACH,uBAAuB,EAAE,MAAM,CAAA;IAC/B,gDAAgD;IAChD,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACxB,mFAAmF;IACnF,4BAA4B,EAAE,MAAM,CAAA;IACpC,4FAA4F;IAC5F,mBAAmB,EAAE,MAAM,CAAA;IAC3B,+EAA+E;IAC/E,yBAAyB,EAAE,MAAM,CAAA;IACjC;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAA;IACtB,kFAAkF;IAClF,uBAAuB,EAAE,MAAM,CAAA;IAC/B,gGAAgG;IAChG,sBAAsB,EAAE,MAAM,CAAA;IAC9B,gGAAgG;IAChG,sBAAsB,EAAE,MAAM,CAAA;IAC9B,+EAA+E;IAC/E,0BAA0B,EAAE,MAAM,CAAA;IAClC;;;;OAIG;IACH,gCAAgC,EAAE,EAAE,CAAA;IACpC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