@kamino-finance/klend-sdk 7.0.12 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (729) hide show
  1. package/dist/@codegen/jupiter_perps/accounts/Custody.d.ts.map +1 -1
  2. package/dist/@codegen/jupiter_perps/accounts/Custody.js +2 -2
  3. package/dist/@codegen/jupiter_perps/accounts/Custody.js.map +1 -1
  4. package/dist/@codegen/jupiter_perps/accounts/Perpetuals.d.ts.map +1 -1
  5. package/dist/@codegen/jupiter_perps/accounts/Perpetuals.js +2 -2
  6. package/dist/@codegen/jupiter_perps/accounts/Perpetuals.js.map +1 -1
  7. package/dist/@codegen/jupiter_perps/accounts/Pool.d.ts.map +1 -1
  8. package/dist/@codegen/jupiter_perps/accounts/Pool.js +2 -2
  9. package/dist/@codegen/jupiter_perps/accounts/Pool.js.map +1 -1
  10. package/dist/@codegen/jupiter_perps/accounts/Position.d.ts.map +1 -1
  11. package/dist/@codegen/jupiter_perps/accounts/Position.js +2 -2
  12. package/dist/@codegen/jupiter_perps/accounts/Position.js.map +1 -1
  13. package/dist/@codegen/jupiter_perps/accounts/PositionRequest.d.ts.map +1 -1
  14. package/dist/@codegen/jupiter_perps/accounts/PositionRequest.js +2 -2
  15. package/dist/@codegen/jupiter_perps/accounts/PositionRequest.js.map +1 -1
  16. package/dist/@codegen/jupiter_perps/accounts/TestOracle.d.ts.map +1 -1
  17. package/dist/@codegen/jupiter_perps/accounts/TestOracle.js +2 -2
  18. package/dist/@codegen/jupiter_perps/accounts/TestOracle.js.map +1 -1
  19. package/dist/@codegen/jupiter_perps/instructions/addCustody.d.ts +3 -2
  20. package/dist/@codegen/jupiter_perps/instructions/addCustody.d.ts.map +1 -1
  21. package/dist/@codegen/jupiter_perps/instructions/addCustody.js +8 -5
  22. package/dist/@codegen/jupiter_perps/instructions/addCustody.js.map +1 -1
  23. package/dist/@codegen/jupiter_perps/instructions/addLiquidity.d.ts +4 -3
  24. package/dist/@codegen/jupiter_perps/instructions/addLiquidity.d.ts.map +1 -1
  25. package/dist/@codegen/jupiter_perps/instructions/addLiquidity.js +8 -5
  26. package/dist/@codegen/jupiter_perps/instructions/addLiquidity.js.map +1 -1
  27. package/dist/@codegen/jupiter_perps/instructions/addPool.d.ts +4 -3
  28. package/dist/@codegen/jupiter_perps/instructions/addPool.d.ts.map +1 -1
  29. package/dist/@codegen/jupiter_perps/instructions/addPool.js +8 -5
  30. package/dist/@codegen/jupiter_perps/instructions/addPool.js.map +1 -1
  31. package/dist/@codegen/jupiter_perps/instructions/closePositionRequest.d.ts +4 -3
  32. package/dist/@codegen/jupiter_perps/instructions/closePositionRequest.d.ts.map +1 -1
  33. package/dist/@codegen/jupiter_perps/instructions/closePositionRequest.js +5 -4
  34. package/dist/@codegen/jupiter_perps/instructions/closePositionRequest.js.map +1 -1
  35. package/dist/@codegen/jupiter_perps/instructions/createDecreasePositionRequest.d.ts +3 -2
  36. package/dist/@codegen/jupiter_perps/instructions/createDecreasePositionRequest.d.ts.map +1 -1
  37. package/dist/@codegen/jupiter_perps/instructions/createDecreasePositionRequest.js +5 -4
  38. package/dist/@codegen/jupiter_perps/instructions/createDecreasePositionRequest.js.map +1 -1
  39. package/dist/@codegen/jupiter_perps/instructions/createIncreasePositionRequest.d.ts +3 -2
  40. package/dist/@codegen/jupiter_perps/instructions/createIncreasePositionRequest.d.ts.map +1 -1
  41. package/dist/@codegen/jupiter_perps/instructions/createIncreasePositionRequest.js +5 -4
  42. package/dist/@codegen/jupiter_perps/instructions/createIncreasePositionRequest.js.map +1 -1
  43. package/dist/@codegen/jupiter_perps/instructions/decreasePosition.d.ts +4 -3
  44. package/dist/@codegen/jupiter_perps/instructions/decreasePosition.d.ts.map +1 -1
  45. package/dist/@codegen/jupiter_perps/instructions/decreasePosition.js +5 -4
  46. package/dist/@codegen/jupiter_perps/instructions/decreasePosition.js.map +1 -1
  47. package/dist/@codegen/jupiter_perps/instructions/decreasePositionPostSwap.d.ts +4 -3
  48. package/dist/@codegen/jupiter_perps/instructions/decreasePositionPostSwap.d.ts.map +1 -1
  49. package/dist/@codegen/jupiter_perps/instructions/decreasePositionPostSwap.js +5 -4
  50. package/dist/@codegen/jupiter_perps/instructions/decreasePositionPostSwap.js.map +1 -1
  51. package/dist/@codegen/jupiter_perps/instructions/getAddLiquidityAmountAndFee.d.ts +4 -3
  52. package/dist/@codegen/jupiter_perps/instructions/getAddLiquidityAmountAndFee.d.ts.map +1 -1
  53. package/dist/@codegen/jupiter_perps/instructions/getAddLiquidityAmountAndFee.js +7 -4
  54. package/dist/@codegen/jupiter_perps/instructions/getAddLiquidityAmountAndFee.js.map +1 -1
  55. package/dist/@codegen/jupiter_perps/instructions/getDecreasePosition.d.ts +4 -3
  56. package/dist/@codegen/jupiter_perps/instructions/getDecreasePosition.d.ts.map +1 -1
  57. package/dist/@codegen/jupiter_perps/instructions/getDecreasePosition.js +5 -4
  58. package/dist/@codegen/jupiter_perps/instructions/getDecreasePosition.js.map +1 -1
  59. package/dist/@codegen/jupiter_perps/instructions/getExactOutSwapAmountAndFees.d.ts +4 -3
  60. package/dist/@codegen/jupiter_perps/instructions/getExactOutSwapAmountAndFees.d.ts.map +1 -1
  61. package/dist/@codegen/jupiter_perps/instructions/getExactOutSwapAmountAndFees.js +5 -4
  62. package/dist/@codegen/jupiter_perps/instructions/getExactOutSwapAmountAndFees.js.map +1 -1
  63. package/dist/@codegen/jupiter_perps/instructions/getIncreasePosition.d.ts +3 -2
  64. package/dist/@codegen/jupiter_perps/instructions/getIncreasePosition.d.ts.map +1 -1
  65. package/dist/@codegen/jupiter_perps/instructions/getIncreasePosition.js +5 -4
  66. package/dist/@codegen/jupiter_perps/instructions/getIncreasePosition.js.map +1 -1
  67. package/dist/@codegen/jupiter_perps/instructions/getLiquidationState.d.ts +4 -3
  68. package/dist/@codegen/jupiter_perps/instructions/getLiquidationState.d.ts.map +1 -1
  69. package/dist/@codegen/jupiter_perps/instructions/getLiquidationState.js +5 -4
  70. package/dist/@codegen/jupiter_perps/instructions/getLiquidationState.js.map +1 -1
  71. package/dist/@codegen/jupiter_perps/instructions/getOraclePrice.d.ts +3 -2
  72. package/dist/@codegen/jupiter_perps/instructions/getOraclePrice.d.ts.map +1 -1
  73. package/dist/@codegen/jupiter_perps/instructions/getOraclePrice.js +5 -3
  74. package/dist/@codegen/jupiter_perps/instructions/getOraclePrice.js.map +1 -1
  75. package/dist/@codegen/jupiter_perps/instructions/getPnl.d.ts +4 -3
  76. package/dist/@codegen/jupiter_perps/instructions/getPnl.d.ts.map +1 -1
  77. package/dist/@codegen/jupiter_perps/instructions/getPnl.js +8 -5
  78. package/dist/@codegen/jupiter_perps/instructions/getPnl.js.map +1 -1
  79. package/dist/@codegen/jupiter_perps/instructions/getRemoveLiquidityAmountAndFee.d.ts +4 -3
  80. package/dist/@codegen/jupiter_perps/instructions/getRemoveLiquidityAmountAndFee.d.ts.map +1 -1
  81. package/dist/@codegen/jupiter_perps/instructions/getRemoveLiquidityAmountAndFee.js +5 -4
  82. package/dist/@codegen/jupiter_perps/instructions/getRemoveLiquidityAmountAndFee.js.map +1 -1
  83. package/dist/@codegen/jupiter_perps/instructions/getSwapAmountAndFees.d.ts +4 -3
  84. package/dist/@codegen/jupiter_perps/instructions/getSwapAmountAndFees.d.ts.map +1 -1
  85. package/dist/@codegen/jupiter_perps/instructions/getSwapAmountAndFees.js +5 -4
  86. package/dist/@codegen/jupiter_perps/instructions/getSwapAmountAndFees.js.map +1 -1
  87. package/dist/@codegen/jupiter_perps/instructions/increasePosition.d.ts +4 -3
  88. package/dist/@codegen/jupiter_perps/instructions/increasePosition.d.ts.map +1 -1
  89. package/dist/@codegen/jupiter_perps/instructions/increasePosition.js +5 -4
  90. package/dist/@codegen/jupiter_perps/instructions/increasePosition.js.map +1 -1
  91. package/dist/@codegen/jupiter_perps/instructions/increasePositionPreSwap.d.ts +4 -3
  92. package/dist/@codegen/jupiter_perps/instructions/increasePositionPreSwap.d.ts.map +1 -1
  93. package/dist/@codegen/jupiter_perps/instructions/increasePositionPreSwap.js +5 -4
  94. package/dist/@codegen/jupiter_perps/instructions/increasePositionPreSwap.js.map +1 -1
  95. package/dist/@codegen/jupiter_perps/instructions/init.d.ts +4 -3
  96. package/dist/@codegen/jupiter_perps/instructions/init.d.ts.map +1 -1
  97. package/dist/@codegen/jupiter_perps/instructions/init.js +8 -5
  98. package/dist/@codegen/jupiter_perps/instructions/init.js.map +1 -1
  99. package/dist/@codegen/jupiter_perps/instructions/liquidatePosition.d.ts +4 -3
  100. package/dist/@codegen/jupiter_perps/instructions/liquidatePosition.d.ts.map +1 -1
  101. package/dist/@codegen/jupiter_perps/instructions/liquidatePosition.js +5 -4
  102. package/dist/@codegen/jupiter_perps/instructions/liquidatePosition.js.map +1 -1
  103. package/dist/@codegen/jupiter_perps/instructions/removeLiquidity.d.ts +4 -3
  104. package/dist/@codegen/jupiter_perps/instructions/removeLiquidity.d.ts.map +1 -1
  105. package/dist/@codegen/jupiter_perps/instructions/removeLiquidity.js +5 -4
  106. package/dist/@codegen/jupiter_perps/instructions/removeLiquidity.js.map +1 -1
  107. package/dist/@codegen/jupiter_perps/instructions/setCustodyConfig.d.ts +3 -2
  108. package/dist/@codegen/jupiter_perps/instructions/setCustodyConfig.d.ts.map +1 -1
  109. package/dist/@codegen/jupiter_perps/instructions/setCustodyConfig.js +5 -4
  110. package/dist/@codegen/jupiter_perps/instructions/setCustodyConfig.js.map +1 -1
  111. package/dist/@codegen/jupiter_perps/instructions/setCustodyGlobalLimit.d.ts +4 -3
  112. package/dist/@codegen/jupiter_perps/instructions/setCustodyGlobalLimit.d.ts.map +1 -1
  113. package/dist/@codegen/jupiter_perps/instructions/setCustodyGlobalLimit.js +5 -4
  114. package/dist/@codegen/jupiter_perps/instructions/setCustodyGlobalLimit.js.map +1 -1
  115. package/dist/@codegen/jupiter_perps/instructions/setPerpetualsConfig.d.ts +4 -3
  116. package/dist/@codegen/jupiter_perps/instructions/setPerpetualsConfig.d.ts.map +1 -1
  117. package/dist/@codegen/jupiter_perps/instructions/setPerpetualsConfig.js +5 -4
  118. package/dist/@codegen/jupiter_perps/instructions/setPerpetualsConfig.js.map +1 -1
  119. package/dist/@codegen/jupiter_perps/instructions/setPoolConfig.d.ts +4 -3
  120. package/dist/@codegen/jupiter_perps/instructions/setPoolConfig.d.ts.map +1 -1
  121. package/dist/@codegen/jupiter_perps/instructions/setPoolConfig.js +8 -5
  122. package/dist/@codegen/jupiter_perps/instructions/setPoolConfig.js.map +1 -1
  123. package/dist/@codegen/jupiter_perps/instructions/setTestOraclePrice.d.ts +4 -3
  124. package/dist/@codegen/jupiter_perps/instructions/setTestOraclePrice.d.ts.map +1 -1
  125. package/dist/@codegen/jupiter_perps/instructions/setTestOraclePrice.js +5 -4
  126. package/dist/@codegen/jupiter_perps/instructions/setTestOraclePrice.js.map +1 -1
  127. package/dist/@codegen/jupiter_perps/instructions/setTestTime.d.ts +4 -3
  128. package/dist/@codegen/jupiter_perps/instructions/setTestTime.d.ts.map +1 -1
  129. package/dist/@codegen/jupiter_perps/instructions/setTestTime.js +10 -5
  130. package/dist/@codegen/jupiter_perps/instructions/setTestTime.js.map +1 -1
  131. package/dist/@codegen/jupiter_perps/instructions/swap.d.ts +4 -3
  132. package/dist/@codegen/jupiter_perps/instructions/swap.d.ts.map +1 -1
  133. package/dist/@codegen/jupiter_perps/instructions/swap.js +10 -5
  134. package/dist/@codegen/jupiter_perps/instructions/swap.js.map +1 -1
  135. package/dist/@codegen/jupiter_perps/instructions/swapExactOut.d.ts +4 -3
  136. package/dist/@codegen/jupiter_perps/instructions/swapExactOut.d.ts.map +1 -1
  137. package/dist/@codegen/jupiter_perps/instructions/swapExactOut.js +8 -5
  138. package/dist/@codegen/jupiter_perps/instructions/swapExactOut.js.map +1 -1
  139. package/dist/@codegen/jupiter_perps/instructions/testInit.d.ts +4 -3
  140. package/dist/@codegen/jupiter_perps/instructions/testInit.d.ts.map +1 -1
  141. package/dist/@codegen/jupiter_perps/instructions/testInit.js +8 -5
  142. package/dist/@codegen/jupiter_perps/instructions/testInit.js.map +1 -1
  143. package/dist/@codegen/jupiter_perps/instructions/transferAdmin.d.ts +4 -3
  144. package/dist/@codegen/jupiter_perps/instructions/transferAdmin.d.ts.map +1 -1
  145. package/dist/@codegen/jupiter_perps/instructions/transferAdmin.js +8 -5
  146. package/dist/@codegen/jupiter_perps/instructions/transferAdmin.js.map +1 -1
  147. package/dist/@codegen/jupiter_perps/instructions/updateDecreasePositionRequest.d.ts +4 -3
  148. package/dist/@codegen/jupiter_perps/instructions/updateDecreasePositionRequest.d.ts.map +1 -1
  149. package/dist/@codegen/jupiter_perps/instructions/updateDecreasePositionRequest.js +5 -4
  150. package/dist/@codegen/jupiter_perps/instructions/updateDecreasePositionRequest.js.map +1 -1
  151. package/dist/@codegen/jupiter_perps/instructions/updateIncreasePositionRequest.d.ts +4 -3
  152. package/dist/@codegen/jupiter_perps/instructions/updateIncreasePositionRequest.d.ts.map +1 -1
  153. package/dist/@codegen/jupiter_perps/instructions/updateIncreasePositionRequest.js +5 -4
  154. package/dist/@codegen/jupiter_perps/instructions/updateIncreasePositionRequest.js.map +1 -1
  155. package/dist/@codegen/jupiter_perps/instructions/withdrawFees.d.ts +4 -3
  156. package/dist/@codegen/jupiter_perps/instructions/withdrawFees.d.ts.map +1 -1
  157. package/dist/@codegen/jupiter_perps/instructions/withdrawFees.js +10 -5
  158. package/dist/@codegen/jupiter_perps/instructions/withdrawFees.js.map +1 -1
  159. package/dist/@codegen/klend/accounts/GlobalConfig.d.ts.map +1 -1
  160. package/dist/@codegen/klend/accounts/GlobalConfig.js +2 -2
  161. package/dist/@codegen/klend/accounts/GlobalConfig.js.map +1 -1
  162. package/dist/@codegen/klend/accounts/LendingMarket.d.ts.map +1 -1
  163. package/dist/@codegen/klend/accounts/LendingMarket.js +2 -2
  164. package/dist/@codegen/klend/accounts/LendingMarket.js.map +1 -1
  165. package/dist/@codegen/klend/accounts/Obligation.d.ts.map +1 -1
  166. package/dist/@codegen/klend/accounts/Obligation.js +2 -2
  167. package/dist/@codegen/klend/accounts/Obligation.js.map +1 -1
  168. package/dist/@codegen/klend/accounts/ReferrerState.d.ts.map +1 -1
  169. package/dist/@codegen/klend/accounts/ReferrerState.js +2 -2
  170. package/dist/@codegen/klend/accounts/ReferrerState.js.map +1 -1
  171. package/dist/@codegen/klend/accounts/ReferrerTokenState.d.ts.map +1 -1
  172. package/dist/@codegen/klend/accounts/ReferrerTokenState.js +2 -2
  173. package/dist/@codegen/klend/accounts/ReferrerTokenState.js.map +1 -1
  174. package/dist/@codegen/klend/accounts/Reserve.d.ts.map +1 -1
  175. package/dist/@codegen/klend/accounts/Reserve.js +2 -2
  176. package/dist/@codegen/klend/accounts/Reserve.js.map +1 -1
  177. package/dist/@codegen/klend/accounts/ShortUrl.d.ts.map +1 -1
  178. package/dist/@codegen/klend/accounts/ShortUrl.js +2 -2
  179. package/dist/@codegen/klend/accounts/ShortUrl.js.map +1 -1
  180. package/dist/@codegen/klend/accounts/UserMetadata.d.ts.map +1 -1
  181. package/dist/@codegen/klend/accounts/UserMetadata.js +2 -2
  182. package/dist/@codegen/klend/accounts/UserMetadata.js.map +1 -1
  183. package/dist/@codegen/klend/accounts/UserState.d.ts.map +1 -1
  184. package/dist/@codegen/klend/accounts/UserState.js +2 -2
  185. package/dist/@codegen/klend/accounts/UserState.js.map +1 -1
  186. package/dist/@codegen/klend/instructions/borrowObligationLiquidity.d.ts +4 -3
  187. package/dist/@codegen/klend/instructions/borrowObligationLiquidity.d.ts.map +1 -1
  188. package/dist/@codegen/klend/instructions/borrowObligationLiquidity.js +8 -5
  189. package/dist/@codegen/klend/instructions/borrowObligationLiquidity.js.map +1 -1
  190. package/dist/@codegen/klend/instructions/borrowObligationLiquidityV2.d.ts +4 -3
  191. package/dist/@codegen/klend/instructions/borrowObligationLiquidityV2.d.ts.map +1 -1
  192. package/dist/@codegen/klend/instructions/borrowObligationLiquidityV2.js +8 -5
  193. package/dist/@codegen/klend/instructions/borrowObligationLiquidityV2.js.map +1 -1
  194. package/dist/@codegen/klend/instructions/deleteReferrerStateAndShortUrl.d.ts +3 -2
  195. package/dist/@codegen/klend/instructions/deleteReferrerStateAndShortUrl.d.ts.map +1 -1
  196. package/dist/@codegen/klend/instructions/deleteReferrerStateAndShortUrl.js +5 -3
  197. package/dist/@codegen/klend/instructions/deleteReferrerStateAndShortUrl.js.map +1 -1
  198. package/dist/@codegen/klend/instructions/depositAndWithdraw.d.ts +4 -3
  199. package/dist/@codegen/klend/instructions/depositAndWithdraw.d.ts.map +1 -1
  200. package/dist/@codegen/klend/instructions/depositAndWithdraw.js +5 -4
  201. package/dist/@codegen/klend/instructions/depositAndWithdraw.js.map +1 -1
  202. package/dist/@codegen/klend/instructions/depositObligationCollateral.d.ts +4 -3
  203. package/dist/@codegen/klend/instructions/depositObligationCollateral.d.ts.map +1 -1
  204. package/dist/@codegen/klend/instructions/depositObligationCollateral.js +8 -5
  205. package/dist/@codegen/klend/instructions/depositObligationCollateral.js.map +1 -1
  206. package/dist/@codegen/klend/instructions/depositObligationCollateralV2.d.ts +4 -3
  207. package/dist/@codegen/klend/instructions/depositObligationCollateralV2.d.ts.map +1 -1
  208. package/dist/@codegen/klend/instructions/depositObligationCollateralV2.js +8 -5
  209. package/dist/@codegen/klend/instructions/depositObligationCollateralV2.js.map +1 -1
  210. package/dist/@codegen/klend/instructions/depositReserveLiquidity.d.ts +4 -3
  211. package/dist/@codegen/klend/instructions/depositReserveLiquidity.d.ts.map +1 -1
  212. package/dist/@codegen/klend/instructions/depositReserveLiquidity.js +8 -5
  213. package/dist/@codegen/klend/instructions/depositReserveLiquidity.js.map +1 -1
  214. package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateral.d.ts +4 -3
  215. package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateral.d.ts.map +1 -1
  216. package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateral.js +8 -5
  217. package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateral.js.map +1 -1
  218. package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateralV2.d.ts +4 -3
  219. package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateralV2.d.ts.map +1 -1
  220. package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateralV2.js +10 -5
  221. package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateralV2.js.map +1 -1
  222. package/dist/@codegen/klend/instructions/flashBorrowReserveLiquidity.d.ts +4 -3
  223. package/dist/@codegen/klend/instructions/flashBorrowReserveLiquidity.d.ts.map +1 -1
  224. package/dist/@codegen/klend/instructions/flashBorrowReserveLiquidity.js +8 -5
  225. package/dist/@codegen/klend/instructions/flashBorrowReserveLiquidity.js.map +1 -1
  226. package/dist/@codegen/klend/instructions/flashRepayReserveLiquidity.d.ts +4 -3
  227. package/dist/@codegen/klend/instructions/flashRepayReserveLiquidity.d.ts.map +1 -1
  228. package/dist/@codegen/klend/instructions/flashRepayReserveLiquidity.js +5 -4
  229. package/dist/@codegen/klend/instructions/flashRepayReserveLiquidity.js.map +1 -1
  230. package/dist/@codegen/klend/instructions/idlMissingTypes.d.ts +3 -2
  231. package/dist/@codegen/klend/instructions/idlMissingTypes.d.ts.map +1 -1
  232. package/dist/@codegen/klend/instructions/idlMissingTypes.js +5 -4
  233. package/dist/@codegen/klend/instructions/idlMissingTypes.js.map +1 -1
  234. package/dist/@codegen/klend/instructions/initFarmsForReserve.d.ts +4 -3
  235. package/dist/@codegen/klend/instructions/initFarmsForReserve.d.ts.map +1 -1
  236. package/dist/@codegen/klend/instructions/initFarmsForReserve.js +5 -4
  237. package/dist/@codegen/klend/instructions/initFarmsForReserve.js.map +1 -1
  238. package/dist/@codegen/klend/instructions/initGlobalConfig.d.ts +3 -2
  239. package/dist/@codegen/klend/instructions/initGlobalConfig.d.ts.map +1 -1
  240. package/dist/@codegen/klend/instructions/initGlobalConfig.js +5 -3
  241. package/dist/@codegen/klend/instructions/initGlobalConfig.js.map +1 -1
  242. package/dist/@codegen/klend/instructions/initLendingMarket.d.ts +4 -3
  243. package/dist/@codegen/klend/instructions/initLendingMarket.d.ts.map +1 -1
  244. package/dist/@codegen/klend/instructions/initLendingMarket.js +5 -4
  245. package/dist/@codegen/klend/instructions/initLendingMarket.js.map +1 -1
  246. package/dist/@codegen/klend/instructions/initObligation.d.ts +4 -3
  247. package/dist/@codegen/klend/instructions/initObligation.d.ts.map +1 -1
  248. package/dist/@codegen/klend/instructions/initObligation.js +8 -5
  249. package/dist/@codegen/klend/instructions/initObligation.js.map +1 -1
  250. package/dist/@codegen/klend/instructions/initObligationFarmsForReserve.d.ts +4 -3
  251. package/dist/@codegen/klend/instructions/initObligationFarmsForReserve.d.ts.map +1 -1
  252. package/dist/@codegen/klend/instructions/initObligationFarmsForReserve.js +8 -5
  253. package/dist/@codegen/klend/instructions/initObligationFarmsForReserve.js.map +1 -1
  254. package/dist/@codegen/klend/instructions/initReferrerStateAndShortUrl.d.ts +4 -3
  255. package/dist/@codegen/klend/instructions/initReferrerStateAndShortUrl.d.ts.map +1 -1
  256. package/dist/@codegen/klend/instructions/initReferrerStateAndShortUrl.js +8 -5
  257. package/dist/@codegen/klend/instructions/initReferrerStateAndShortUrl.js.map +1 -1
  258. package/dist/@codegen/klend/instructions/initReferrerTokenState.d.ts +3 -2
  259. package/dist/@codegen/klend/instructions/initReferrerTokenState.d.ts.map +1 -1
  260. package/dist/@codegen/klend/instructions/initReferrerTokenState.js +5 -3
  261. package/dist/@codegen/klend/instructions/initReferrerTokenState.js.map +1 -1
  262. package/dist/@codegen/klend/instructions/initReserve.d.ts +3 -2
  263. package/dist/@codegen/klend/instructions/initReserve.d.ts.map +1 -1
  264. package/dist/@codegen/klend/instructions/initReserve.js +5 -3
  265. package/dist/@codegen/klend/instructions/initReserve.js.map +1 -1
  266. package/dist/@codegen/klend/instructions/initUserMetadata.d.ts +4 -3
  267. package/dist/@codegen/klend/instructions/initUserMetadata.d.ts.map +1 -1
  268. package/dist/@codegen/klend/instructions/initUserMetadata.js +8 -5
  269. package/dist/@codegen/klend/instructions/initUserMetadata.js.map +1 -1
  270. package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.d.ts +4 -3
  271. package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.d.ts.map +1 -1
  272. package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.js +5 -4
  273. package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.js.map +1 -1
  274. package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateralV2.d.ts +4 -3
  275. package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateralV2.d.ts.map +1 -1
  276. package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateralV2.js +5 -4
  277. package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateralV2.js.map +1 -1
  278. package/dist/@codegen/klend/instructions/markObligationForDeleveraging.d.ts +4 -3
  279. package/dist/@codegen/klend/instructions/markObligationForDeleveraging.d.ts.map +1 -1
  280. package/dist/@codegen/klend/instructions/markObligationForDeleveraging.js +8 -5
  281. package/dist/@codegen/klend/instructions/markObligationForDeleveraging.js.map +1 -1
  282. package/dist/@codegen/klend/instructions/redeemFees.d.ts +3 -2
  283. package/dist/@codegen/klend/instructions/redeemFees.d.ts.map +1 -1
  284. package/dist/@codegen/klend/instructions/redeemFees.js +5 -3
  285. package/dist/@codegen/klend/instructions/redeemFees.js.map +1 -1
  286. package/dist/@codegen/klend/instructions/redeemReserveCollateral.d.ts +4 -3
  287. package/dist/@codegen/klend/instructions/redeemReserveCollateral.d.ts.map +1 -1
  288. package/dist/@codegen/klend/instructions/redeemReserveCollateral.js +10 -5
  289. package/dist/@codegen/klend/instructions/redeemReserveCollateral.js.map +1 -1
  290. package/dist/@codegen/klend/instructions/refreshObligation.d.ts +3 -2
  291. package/dist/@codegen/klend/instructions/refreshObligation.d.ts.map +1 -1
  292. package/dist/@codegen/klend/instructions/refreshObligation.js +5 -3
  293. package/dist/@codegen/klend/instructions/refreshObligation.js.map +1 -1
  294. package/dist/@codegen/klend/instructions/refreshObligationFarmsForReserve.d.ts +4 -3
  295. package/dist/@codegen/klend/instructions/refreshObligationFarmsForReserve.d.ts.map +1 -1
  296. package/dist/@codegen/klend/instructions/refreshObligationFarmsForReserve.js +8 -5
  297. package/dist/@codegen/klend/instructions/refreshObligationFarmsForReserve.js.map +1 -1
  298. package/dist/@codegen/klend/instructions/refreshReserve.d.ts +3 -2
  299. package/dist/@codegen/klend/instructions/refreshReserve.d.ts.map +1 -1
  300. package/dist/@codegen/klend/instructions/refreshReserve.js +5 -3
  301. package/dist/@codegen/klend/instructions/refreshReserve.js.map +1 -1
  302. package/dist/@codegen/klend/instructions/refreshReservesBatch.d.ts +4 -3
  303. package/dist/@codegen/klend/instructions/refreshReservesBatch.d.ts.map +1 -1
  304. package/dist/@codegen/klend/instructions/refreshReservesBatch.js +10 -6
  305. package/dist/@codegen/klend/instructions/refreshReservesBatch.js.map +1 -1
  306. package/dist/@codegen/klend/instructions/repayAndWithdrawAndRedeem.d.ts +4 -3
  307. package/dist/@codegen/klend/instructions/repayAndWithdrawAndRedeem.d.ts.map +1 -1
  308. package/dist/@codegen/klend/instructions/repayAndWithdrawAndRedeem.js +5 -4
  309. package/dist/@codegen/klend/instructions/repayAndWithdrawAndRedeem.js.map +1 -1
  310. package/dist/@codegen/klend/instructions/repayObligationLiquidity.d.ts +4 -3
  311. package/dist/@codegen/klend/instructions/repayObligationLiquidity.d.ts.map +1 -1
  312. package/dist/@codegen/klend/instructions/repayObligationLiquidity.js +8 -5
  313. package/dist/@codegen/klend/instructions/repayObligationLiquidity.js.map +1 -1
  314. package/dist/@codegen/klend/instructions/repayObligationLiquidityV2.d.ts +4 -3
  315. package/dist/@codegen/klend/instructions/repayObligationLiquidityV2.d.ts.map +1 -1
  316. package/dist/@codegen/klend/instructions/repayObligationLiquidityV2.js +8 -5
  317. package/dist/@codegen/klend/instructions/repayObligationLiquidityV2.js.map +1 -1
  318. package/dist/@codegen/klend/instructions/requestElevationGroup.d.ts +4 -3
  319. package/dist/@codegen/klend/instructions/requestElevationGroup.d.ts.map +1 -1
  320. package/dist/@codegen/klend/instructions/requestElevationGroup.js +8 -5
  321. package/dist/@codegen/klend/instructions/requestElevationGroup.js.map +1 -1
  322. package/dist/@codegen/klend/instructions/setObligationOrder.d.ts +4 -3
  323. package/dist/@codegen/klend/instructions/setObligationOrder.d.ts.map +1 -1
  324. package/dist/@codegen/klend/instructions/setObligationOrder.js +5 -4
  325. package/dist/@codegen/klend/instructions/setObligationOrder.js.map +1 -1
  326. package/dist/@codegen/klend/instructions/socializeLoss.d.ts +4 -3
  327. package/dist/@codegen/klend/instructions/socializeLoss.d.ts.map +1 -1
  328. package/dist/@codegen/klend/instructions/socializeLoss.js +8 -5
  329. package/dist/@codegen/klend/instructions/socializeLoss.js.map +1 -1
  330. package/dist/@codegen/klend/instructions/socializeLossV2.d.ts +4 -3
  331. package/dist/@codegen/klend/instructions/socializeLossV2.d.ts.map +1 -1
  332. package/dist/@codegen/klend/instructions/socializeLossV2.js +8 -5
  333. package/dist/@codegen/klend/instructions/socializeLossV2.js.map +1 -1
  334. package/dist/@codegen/klend/instructions/updateGlobalConfig.d.ts +3 -2
  335. package/dist/@codegen/klend/instructions/updateGlobalConfig.d.ts.map +1 -1
  336. package/dist/@codegen/klend/instructions/updateGlobalConfig.js +5 -4
  337. package/dist/@codegen/klend/instructions/updateGlobalConfig.js.map +1 -1
  338. package/dist/@codegen/klend/instructions/updateGlobalConfigAdmin.d.ts +3 -2
  339. package/dist/@codegen/klend/instructions/updateGlobalConfigAdmin.d.ts.map +1 -1
  340. package/dist/@codegen/klend/instructions/updateGlobalConfigAdmin.js +5 -3
  341. package/dist/@codegen/klend/instructions/updateGlobalConfigAdmin.js.map +1 -1
  342. package/dist/@codegen/klend/instructions/updateLendingMarket.d.ts +4 -3
  343. package/dist/@codegen/klend/instructions/updateLendingMarket.d.ts.map +1 -1
  344. package/dist/@codegen/klend/instructions/updateLendingMarket.js +5 -4
  345. package/dist/@codegen/klend/instructions/updateLendingMarket.js.map +1 -1
  346. package/dist/@codegen/klend/instructions/updateLendingMarketOwner.d.ts +3 -2
  347. package/dist/@codegen/klend/instructions/updateLendingMarketOwner.d.ts.map +1 -1
  348. package/dist/@codegen/klend/instructions/updateLendingMarketOwner.js +5 -3
  349. package/dist/@codegen/klend/instructions/updateLendingMarketOwner.js.map +1 -1
  350. package/dist/@codegen/klend/instructions/updateReserveConfig.d.ts +3 -2
  351. package/dist/@codegen/klend/instructions/updateReserveConfig.d.ts.map +1 -1
  352. package/dist/@codegen/klend/instructions/updateReserveConfig.js +5 -4
  353. package/dist/@codegen/klend/instructions/updateReserveConfig.js.map +1 -1
  354. package/dist/@codegen/klend/instructions/withdrawObligationCollateral.d.ts +4 -3
  355. package/dist/@codegen/klend/instructions/withdrawObligationCollateral.d.ts.map +1 -1
  356. package/dist/@codegen/klend/instructions/withdrawObligationCollateral.js +8 -5
  357. package/dist/@codegen/klend/instructions/withdrawObligationCollateral.js.map +1 -1
  358. package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.d.ts +4 -3
  359. package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.d.ts.map +1 -1
  360. package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.js +8 -5
  361. package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.js.map +1 -1
  362. package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.d.ts +4 -3
  363. package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.d.ts.map +1 -1
  364. package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.js +8 -5
  365. package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.js.map +1 -1
  366. package/dist/@codegen/klend/instructions/withdrawObligationCollateralV2.d.ts +4 -3
  367. package/dist/@codegen/klend/instructions/withdrawObligationCollateralV2.d.ts.map +1 -1
  368. package/dist/@codegen/klend/instructions/withdrawObligationCollateralV2.js +10 -5
  369. package/dist/@codegen/klend/instructions/withdrawObligationCollateralV2.js.map +1 -1
  370. package/dist/@codegen/klend/instructions/withdrawProtocolFee.d.ts +4 -3
  371. package/dist/@codegen/klend/instructions/withdrawProtocolFee.d.ts.map +1 -1
  372. package/dist/@codegen/klend/instructions/withdrawProtocolFee.js +8 -5
  373. package/dist/@codegen/klend/instructions/withdrawProtocolFee.js.map +1 -1
  374. package/dist/@codegen/klend/instructions/withdrawReferrerFees.d.ts +3 -2
  375. package/dist/@codegen/klend/instructions/withdrawReferrerFees.d.ts.map +1 -1
  376. package/dist/@codegen/klend/instructions/withdrawReferrerFees.js +7 -3
  377. package/dist/@codegen/klend/instructions/withdrawReferrerFees.js.map +1 -1
  378. package/dist/@codegen/kvault/accounts/Reserve.d.ts.map +1 -1
  379. package/dist/@codegen/kvault/accounts/Reserve.js +2 -2
  380. package/dist/@codegen/kvault/accounts/Reserve.js.map +1 -1
  381. package/dist/@codegen/kvault/accounts/VaultState.d.ts.map +1 -1
  382. package/dist/@codegen/kvault/accounts/VaultState.js +2 -2
  383. package/dist/@codegen/kvault/accounts/VaultState.js.map +1 -1
  384. package/dist/@codegen/kvault/instructions/deposit.d.ts +4 -3
  385. package/dist/@codegen/kvault/instructions/deposit.d.ts.map +1 -1
  386. package/dist/@codegen/kvault/instructions/deposit.js +5 -4
  387. package/dist/@codegen/kvault/instructions/deposit.js.map +1 -1
  388. package/dist/@codegen/kvault/instructions/giveUpPendingFees.d.ts +4 -3
  389. package/dist/@codegen/kvault/instructions/giveUpPendingFees.d.ts.map +1 -1
  390. package/dist/@codegen/kvault/instructions/giveUpPendingFees.js +10 -5
  391. package/dist/@codegen/kvault/instructions/giveUpPendingFees.js.map +1 -1
  392. package/dist/@codegen/kvault/instructions/initVault.d.ts +3 -2
  393. package/dist/@codegen/kvault/instructions/initVault.d.ts.map +1 -1
  394. package/dist/@codegen/kvault/instructions/initVault.js +5 -3
  395. package/dist/@codegen/kvault/instructions/initVault.js.map +1 -1
  396. package/dist/@codegen/kvault/instructions/initializeSharesMetadata.d.ts +4 -3
  397. package/dist/@codegen/kvault/instructions/initializeSharesMetadata.d.ts.map +1 -1
  398. package/dist/@codegen/kvault/instructions/initializeSharesMetadata.js +5 -4
  399. package/dist/@codegen/kvault/instructions/initializeSharesMetadata.js.map +1 -1
  400. package/dist/@codegen/kvault/instructions/invest.d.ts +3 -2
  401. package/dist/@codegen/kvault/instructions/invest.d.ts.map +1 -1
  402. package/dist/@codegen/kvault/instructions/invest.js +5 -3
  403. package/dist/@codegen/kvault/instructions/invest.js.map +1 -1
  404. package/dist/@codegen/kvault/instructions/removeAllocation.d.ts +3 -2
  405. package/dist/@codegen/kvault/instructions/removeAllocation.d.ts.map +1 -1
  406. package/dist/@codegen/kvault/instructions/removeAllocation.js +5 -3
  407. package/dist/@codegen/kvault/instructions/removeAllocation.js.map +1 -1
  408. package/dist/@codegen/kvault/instructions/updateAdmin.d.ts +3 -2
  409. package/dist/@codegen/kvault/instructions/updateAdmin.d.ts.map +1 -1
  410. package/dist/@codegen/kvault/instructions/updateAdmin.js +5 -3
  411. package/dist/@codegen/kvault/instructions/updateAdmin.js.map +1 -1
  412. package/dist/@codegen/kvault/instructions/updateReserveAllocation.d.ts +4 -3
  413. package/dist/@codegen/kvault/instructions/updateReserveAllocation.d.ts.map +1 -1
  414. package/dist/@codegen/kvault/instructions/updateReserveAllocation.js +9 -5
  415. package/dist/@codegen/kvault/instructions/updateReserveAllocation.js.map +1 -1
  416. package/dist/@codegen/kvault/instructions/updateSharesMetadata.d.ts +4 -3
  417. package/dist/@codegen/kvault/instructions/updateSharesMetadata.d.ts.map +1 -1
  418. package/dist/@codegen/kvault/instructions/updateSharesMetadata.js +7 -4
  419. package/dist/@codegen/kvault/instructions/updateSharesMetadata.js.map +1 -1
  420. package/dist/@codegen/kvault/instructions/updateVaultConfig.d.ts +3 -2
  421. package/dist/@codegen/kvault/instructions/updateVaultConfig.d.ts.map +1 -1
  422. package/dist/@codegen/kvault/instructions/updateVaultConfig.js +5 -4
  423. package/dist/@codegen/kvault/instructions/updateVaultConfig.js.map +1 -1
  424. package/dist/@codegen/kvault/instructions/withdraw.d.ts +4 -3
  425. package/dist/@codegen/kvault/instructions/withdraw.d.ts.map +1 -1
  426. package/dist/@codegen/kvault/instructions/withdraw.js +5 -4
  427. package/dist/@codegen/kvault/instructions/withdraw.js.map +1 -1
  428. package/dist/@codegen/kvault/instructions/withdrawFromAvailable.d.ts +4 -3
  429. package/dist/@codegen/kvault/instructions/withdrawFromAvailable.d.ts.map +1 -1
  430. package/dist/@codegen/kvault/instructions/withdrawFromAvailable.js +8 -5
  431. package/dist/@codegen/kvault/instructions/withdrawFromAvailable.js.map +1 -1
  432. package/dist/@codegen/kvault/instructions/withdrawPendingFees.d.ts +3 -2
  433. package/dist/@codegen/kvault/instructions/withdrawPendingFees.d.ts.map +1 -1
  434. package/dist/@codegen/kvault/instructions/withdrawPendingFees.js +7 -3
  435. package/dist/@codegen/kvault/instructions/withdrawPendingFees.js.map +1 -1
  436. package/dist/@codegen/kvault/types/ReserveConfig.d.ts +51 -10
  437. package/dist/@codegen/kvault/types/ReserveConfig.d.ts.map +1 -1
  438. package/dist/@codegen/kvault/types/ReserveConfig.js +33 -14
  439. package/dist/@codegen/kvault/types/ReserveConfig.js.map +1 -1
  440. package/dist/@codegen/pyth_rec/accounts/Config.d.ts.map +1 -1
  441. package/dist/@codegen/pyth_rec/accounts/Config.js +2 -2
  442. package/dist/@codegen/pyth_rec/accounts/Config.js.map +1 -1
  443. package/dist/@codegen/pyth_rec/accounts/priceUpdateV2.d.ts.map +1 -1
  444. package/dist/@codegen/pyth_rec/accounts/priceUpdateV2.js +2 -2
  445. package/dist/@codegen/pyth_rec/accounts/priceUpdateV2.js.map +1 -1
  446. package/dist/@codegen/pyth_rec/accounts/twapUpdate.d.ts.map +1 -1
  447. package/dist/@codegen/pyth_rec/accounts/twapUpdate.js +2 -2
  448. package/dist/@codegen/pyth_rec/accounts/twapUpdate.js.map +1 -1
  449. package/dist/@codegen/pyth_rec/instructions/acceptGovernanceAuthorityTransfer.d.ts +3 -2
  450. package/dist/@codegen/pyth_rec/instructions/acceptGovernanceAuthorityTransfer.d.ts.map +1 -1
  451. package/dist/@codegen/pyth_rec/instructions/acceptGovernanceAuthorityTransfer.js +5 -3
  452. package/dist/@codegen/pyth_rec/instructions/acceptGovernanceAuthorityTransfer.js.map +1 -1
  453. package/dist/@codegen/pyth_rec/instructions/reclaimRent.d.ts +3 -2
  454. package/dist/@codegen/pyth_rec/instructions/reclaimRent.d.ts.map +1 -1
  455. package/dist/@codegen/pyth_rec/instructions/reclaimRent.js +5 -3
  456. package/dist/@codegen/pyth_rec/instructions/reclaimRent.js.map +1 -1
  457. package/dist/@codegen/pyth_rec/instructions/reclaimTwapRent.d.ts +3 -2
  458. package/dist/@codegen/pyth_rec/instructions/reclaimTwapRent.d.ts.map +1 -1
  459. package/dist/@codegen/pyth_rec/instructions/reclaimTwapRent.js +5 -3
  460. package/dist/@codegen/pyth_rec/instructions/reclaimTwapRent.js.map +1 -1
  461. package/dist/@codegen/pyth_rec/instructions/requestGovernanceAuthorityTransfer.d.ts +4 -3
  462. package/dist/@codegen/pyth_rec/instructions/requestGovernanceAuthorityTransfer.d.ts.map +1 -1
  463. package/dist/@codegen/pyth_rec/instructions/requestGovernanceAuthorityTransfer.js +8 -5
  464. package/dist/@codegen/pyth_rec/instructions/requestGovernanceAuthorityTransfer.js.map +1 -1
  465. package/dist/@codegen/pyth_rec/instructions/setDataSources.d.ts +4 -3
  466. package/dist/@codegen/pyth_rec/instructions/setDataSources.d.ts.map +1 -1
  467. package/dist/@codegen/pyth_rec/instructions/setDataSources.js +5 -4
  468. package/dist/@codegen/pyth_rec/instructions/setDataSources.js.map +1 -1
  469. package/dist/@codegen/pyth_rec/instructions/setFee.d.ts +4 -3
  470. package/dist/@codegen/pyth_rec/instructions/setFee.d.ts.map +1 -1
  471. package/dist/@codegen/pyth_rec/instructions/setFee.js +8 -5
  472. package/dist/@codegen/pyth_rec/instructions/setFee.js.map +1 -1
  473. package/dist/@codegen/pyth_rec/instructions/setMinimumSignatures.d.ts +4 -3
  474. package/dist/@codegen/pyth_rec/instructions/setMinimumSignatures.d.ts.map +1 -1
  475. package/dist/@codegen/pyth_rec/instructions/setMinimumSignatures.js +8 -5
  476. package/dist/@codegen/pyth_rec/instructions/setMinimumSignatures.js.map +1 -1
  477. package/dist/@codegen/pyth_rec/instructions/setWormholeAddress.d.ts +4 -3
  478. package/dist/@codegen/pyth_rec/instructions/setWormholeAddress.d.ts.map +1 -1
  479. package/dist/@codegen/pyth_rec/instructions/setWormholeAddress.js +10 -5
  480. package/dist/@codegen/pyth_rec/instructions/setWormholeAddress.js.map +1 -1
  481. package/dist/classes/action.d.ts +12 -12
  482. package/dist/classes/action.d.ts.map +1 -1
  483. package/dist/classes/action.js +35 -35
  484. package/dist/classes/action.js.map +1 -1
  485. package/dist/classes/farm_utils.d.ts +8 -8
  486. package/dist/classes/farm_utils.d.ts.map +1 -1
  487. package/dist/classes/farm_utils.js.map +1 -1
  488. package/dist/classes/manager.d.ts +18 -18
  489. package/dist/classes/manager.d.ts.map +1 -1
  490. package/dist/classes/manager.js +3 -3
  491. package/dist/classes/manager.js.map +1 -1
  492. package/dist/classes/market.d.ts.map +1 -1
  493. package/dist/classes/market.js +5 -5
  494. package/dist/classes/market.js.map +1 -1
  495. package/dist/classes/reserve.d.ts +5 -5
  496. package/dist/classes/reserve.d.ts.map +1 -1
  497. package/dist/classes/reserve.js +3 -3
  498. package/dist/classes/reserve.js.map +1 -1
  499. package/dist/classes/vault.d.ts +10 -10
  500. package/dist/classes/vault.d.ts.map +1 -1
  501. package/dist/classes/vault.js +13 -13
  502. package/dist/classes/vault.js.map +1 -1
  503. package/dist/classes/vault_types.d.ts +25 -25
  504. package/dist/classes/vault_types.d.ts.map +1 -1
  505. package/dist/client/tx/multisig.d.ts +2 -2
  506. package/dist/client/tx/multisig.d.ts.map +1 -1
  507. package/dist/client/tx/multisig.js.map +1 -1
  508. package/dist/client/tx/priorityFee.d.ts +3 -3
  509. package/dist/client/tx/priorityFee.d.ts.map +1 -1
  510. package/dist/client/tx/priorityFee.js.map +1 -1
  511. package/dist/client/tx/processor.d.ts +2 -2
  512. package/dist/client/tx/processor.d.ts.map +1 -1
  513. package/dist/client/tx/processor.js.map +1 -1
  514. package/dist/client/tx/simulate.d.ts +2 -2
  515. package/dist/client/tx/simulate.d.ts.map +1 -1
  516. package/dist/client/tx/simulate.js.map +1 -1
  517. package/dist/client/tx/tx.d.ts +2 -2
  518. package/dist/client/tx/tx.d.ts.map +1 -1
  519. package/dist/client/tx/tx.js.map +1 -1
  520. package/dist/lending_operations/repay_with_collateral_operations.d.ts +3 -3
  521. package/dist/lending_operations/repay_with_collateral_operations.d.ts.map +1 -1
  522. package/dist/lending_operations/repay_with_collateral_operations.js.map +1 -1
  523. package/dist/lending_operations/swap_collateral_operations.d.ts +3 -3
  524. package/dist/lending_operations/swap_collateral_operations.d.ts.map +1 -1
  525. package/dist/lending_operations/swap_collateral_operations.js.map +1 -1
  526. package/dist/leverage/instructions.d.ts +4 -4
  527. package/dist/leverage/instructions.d.ts.map +1 -1
  528. package/dist/leverage/instructions.js +2 -2
  529. package/dist/leverage/instructions.js.map +1 -1
  530. package/dist/leverage/operations.d.ts +7 -7
  531. package/dist/leverage/operations.d.ts.map +1 -1
  532. package/dist/leverage/operations.js.map +1 -1
  533. package/dist/leverage/types.d.ts +6 -6
  534. package/dist/leverage/types.d.ts.map +1 -1
  535. package/dist/leverage/utils.d.ts +2 -2
  536. package/dist/leverage/utils.d.ts.map +1 -1
  537. package/dist/leverage/utils.js.map +1 -1
  538. package/dist/manager/client_kamino_manager.js +1 -0
  539. package/dist/manager/client_kamino_manager.js.map +1 -1
  540. package/dist/manager/tx/multisig.d.ts +2 -2
  541. package/dist/manager/tx/multisig.d.ts.map +1 -1
  542. package/dist/manager/tx/multisig.js.map +1 -1
  543. package/dist/manager/tx/priorityFee.d.ts +3 -3
  544. package/dist/manager/tx/priorityFee.d.ts.map +1 -1
  545. package/dist/manager/tx/priorityFee.js.map +1 -1
  546. package/dist/manager/tx/processor.d.ts +2 -2
  547. package/dist/manager/tx/processor.d.ts.map +1 -1
  548. package/dist/manager/tx/processor.js.map +1 -1
  549. package/dist/manager/tx/simulate.d.ts +2 -2
  550. package/dist/manager/tx/simulate.d.ts.map +1 -1
  551. package/dist/manager/tx/simulate.js.map +1 -1
  552. package/dist/manager/tx/tx.d.ts +2 -2
  553. package/dist/manager/tx/tx.d.ts.map +1 -1
  554. package/dist/manager/tx/tx.js.map +1 -1
  555. package/dist/referrals/instructions.d.ts +4 -4
  556. package/dist/referrals/instructions.d.ts.map +1 -1
  557. package/dist/referrals/instructions.js +3 -3
  558. package/dist/referrals/instructions.js.map +1 -1
  559. package/dist/utils/ata.d.ts +7 -7
  560. package/dist/utils/ata.d.ts.map +1 -1
  561. package/dist/utils/ata.js.map +1 -1
  562. package/dist/utils/instruction.d.ts +5 -5
  563. package/dist/utils/instruction.d.ts.map +1 -1
  564. package/dist/utils/instruction.js.map +1 -1
  565. package/dist/utils/lookupTable.d.ts +7 -7
  566. package/dist/utils/lookupTable.d.ts.map +1 -1
  567. package/dist/utils/lookupTable.js.map +1 -1
  568. package/dist/utils/metadata.d.ts +3 -3
  569. package/dist/utils/metadata.d.ts.map +1 -1
  570. package/dist/utils/userMetadata.d.ts +2 -2
  571. package/dist/utils/userMetadata.d.ts.map +1 -1
  572. package/dist/utils/userMetadata.js +1 -1
  573. package/dist/utils/userMetadata.js.map +1 -1
  574. package/package.json +9 -9
  575. package/src/@codegen/jupiter_perps/accounts/Custody.ts +6 -2
  576. package/src/@codegen/jupiter_perps/accounts/Perpetuals.ts +6 -2
  577. package/src/@codegen/jupiter_perps/accounts/Pool.ts +6 -2
  578. package/src/@codegen/jupiter_perps/accounts/Position.ts +6 -2
  579. package/src/@codegen/jupiter_perps/accounts/PositionRequest.ts +6 -2
  580. package/src/@codegen/jupiter_perps/accounts/TestOracle.ts +6 -2
  581. package/src/@codegen/jupiter_perps/instructions/addCustody.ts +13 -8
  582. package/src/@codegen/jupiter_perps/instructions/addLiquidity.ts +13 -8
  583. package/src/@codegen/jupiter_perps/instructions/addPool.ts +13 -8
  584. package/src/@codegen/jupiter_perps/instructions/closePositionRequest.ts +11 -8
  585. package/src/@codegen/jupiter_perps/instructions/createDecreasePositionRequest.ts +10 -7
  586. package/src/@codegen/jupiter_perps/instructions/createIncreasePositionRequest.ts +10 -7
  587. package/src/@codegen/jupiter_perps/instructions/decreasePosition.ts +11 -8
  588. package/src/@codegen/jupiter_perps/instructions/decreasePositionPostSwap.ts +11 -8
  589. package/src/@codegen/jupiter_perps/instructions/getAddLiquidityAmountAndFee.ts +13 -8
  590. package/src/@codegen/jupiter_perps/instructions/getDecreasePosition.ts +11 -8
  591. package/src/@codegen/jupiter_perps/instructions/getExactOutSwapAmountAndFees.ts +11 -8
  592. package/src/@codegen/jupiter_perps/instructions/getIncreasePosition.ts +10 -7
  593. package/src/@codegen/jupiter_perps/instructions/getLiquidationState.ts +11 -8
  594. package/src/@codegen/jupiter_perps/instructions/getOraclePrice.ts +10 -7
  595. package/src/@codegen/jupiter_perps/instructions/getPnl.ts +13 -8
  596. package/src/@codegen/jupiter_perps/instructions/getRemoveLiquidityAmountAndFee.ts +11 -8
  597. package/src/@codegen/jupiter_perps/instructions/getSwapAmountAndFees.ts +11 -8
  598. package/src/@codegen/jupiter_perps/instructions/increasePosition.ts +11 -8
  599. package/src/@codegen/jupiter_perps/instructions/increasePositionPreSwap.ts +11 -8
  600. package/src/@codegen/jupiter_perps/instructions/init.ts +13 -8
  601. package/src/@codegen/jupiter_perps/instructions/liquidatePosition.ts +11 -8
  602. package/src/@codegen/jupiter_perps/instructions/removeLiquidity.ts +11 -8
  603. package/src/@codegen/jupiter_perps/instructions/setCustodyConfig.ts +10 -7
  604. package/src/@codegen/jupiter_perps/instructions/setCustodyGlobalLimit.ts +11 -8
  605. package/src/@codegen/jupiter_perps/instructions/setPerpetualsConfig.ts +11 -8
  606. package/src/@codegen/jupiter_perps/instructions/setPoolConfig.ts +13 -8
  607. package/src/@codegen/jupiter_perps/instructions/setTestOraclePrice.ts +11 -8
  608. package/src/@codegen/jupiter_perps/instructions/setTestTime.ts +15 -8
  609. package/src/@codegen/jupiter_perps/instructions/swap.ts +15 -8
  610. package/src/@codegen/jupiter_perps/instructions/swapExactOut.ts +13 -8
  611. package/src/@codegen/jupiter_perps/instructions/testInit.ts +13 -8
  612. package/src/@codegen/jupiter_perps/instructions/transferAdmin.ts +13 -8
  613. package/src/@codegen/jupiter_perps/instructions/updateDecreasePositionRequest.ts +11 -8
  614. package/src/@codegen/jupiter_perps/instructions/updateIncreasePositionRequest.ts +11 -8
  615. package/src/@codegen/jupiter_perps/instructions/withdrawFees.ts +15 -8
  616. package/src/@codegen/klend/accounts/GlobalConfig.ts +6 -2
  617. package/src/@codegen/klend/accounts/LendingMarket.ts +6 -2
  618. package/src/@codegen/klend/accounts/Obligation.ts +6 -2
  619. package/src/@codegen/klend/accounts/ReferrerState.ts +6 -2
  620. package/src/@codegen/klend/accounts/ReferrerTokenState.ts +6 -2
  621. package/src/@codegen/klend/accounts/Reserve.ts +6 -2
  622. package/src/@codegen/klend/accounts/ShortUrl.ts +6 -2
  623. package/src/@codegen/klend/accounts/UserMetadata.ts +6 -2
  624. package/src/@codegen/klend/accounts/UserState.ts +6 -2
  625. package/src/@codegen/klend/instructions/borrowObligationLiquidity.ts +13 -8
  626. package/src/@codegen/klend/instructions/borrowObligationLiquidityV2.ts +13 -8
  627. package/src/@codegen/klend/instructions/deleteReferrerStateAndShortUrl.ts +10 -7
  628. package/src/@codegen/klend/instructions/depositAndWithdraw.ts +11 -8
  629. package/src/@codegen/klend/instructions/depositObligationCollateral.ts +13 -8
  630. package/src/@codegen/klend/instructions/depositObligationCollateralV2.ts +13 -8
  631. package/src/@codegen/klend/instructions/depositReserveLiquidity.ts +13 -8
  632. package/src/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateral.ts +14 -8
  633. package/src/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateralV2.ts +16 -8
  634. package/src/@codegen/klend/instructions/flashBorrowReserveLiquidity.ts +13 -8
  635. package/src/@codegen/klend/instructions/flashRepayReserveLiquidity.ts +11 -8
  636. package/src/@codegen/klend/instructions/idlMissingTypes.ts +10 -7
  637. package/src/@codegen/klend/instructions/initFarmsForReserve.ts +11 -8
  638. package/src/@codegen/klend/instructions/initGlobalConfig.ts +10 -7
  639. package/src/@codegen/klend/instructions/initLendingMarket.ts +11 -8
  640. package/src/@codegen/klend/instructions/initObligation.ts +13 -8
  641. package/src/@codegen/klend/instructions/initObligationFarmsForReserve.ts +13 -8
  642. package/src/@codegen/klend/instructions/initReferrerStateAndShortUrl.ts +13 -8
  643. package/src/@codegen/klend/instructions/initReferrerTokenState.ts +10 -7
  644. package/src/@codegen/klend/instructions/initReserve.ts +10 -7
  645. package/src/@codegen/klend/instructions/initUserMetadata.ts +13 -8
  646. package/src/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.ts +16 -12
  647. package/src/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateralV2.ts +16 -12
  648. package/src/@codegen/klend/instructions/markObligationForDeleveraging.ts +13 -8
  649. package/src/@codegen/klend/instructions/redeemFees.ts +10 -7
  650. package/src/@codegen/klend/instructions/redeemReserveCollateral.ts +15 -8
  651. package/src/@codegen/klend/instructions/refreshObligation.ts +10 -7
  652. package/src/@codegen/klend/instructions/refreshObligationFarmsForReserve.ts +13 -8
  653. package/src/@codegen/klend/instructions/refreshReserve.ts +10 -7
  654. package/src/@codegen/klend/instructions/refreshReservesBatch.ts +14 -8
  655. package/src/@codegen/klend/instructions/repayAndWithdrawAndRedeem.ts +11 -8
  656. package/src/@codegen/klend/instructions/repayObligationLiquidity.ts +13 -8
  657. package/src/@codegen/klend/instructions/repayObligationLiquidityV2.ts +13 -8
  658. package/src/@codegen/klend/instructions/requestElevationGroup.ts +13 -8
  659. package/src/@codegen/klend/instructions/setObligationOrder.ts +11 -8
  660. package/src/@codegen/klend/instructions/socializeLoss.ts +13 -8
  661. package/src/@codegen/klend/instructions/socializeLossV2.ts +13 -8
  662. package/src/@codegen/klend/instructions/updateGlobalConfig.ts +10 -7
  663. package/src/@codegen/klend/instructions/updateGlobalConfigAdmin.ts +10 -7
  664. package/src/@codegen/klend/instructions/updateLendingMarket.ts +11 -8
  665. package/src/@codegen/klend/instructions/updateLendingMarketOwner.ts +10 -7
  666. package/src/@codegen/klend/instructions/updateReserveConfig.ts +10 -7
  667. package/src/@codegen/klend/instructions/withdrawObligationCollateral.ts +13 -8
  668. package/src/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.ts +14 -8
  669. package/src/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.ts +14 -8
  670. package/src/@codegen/klend/instructions/withdrawObligationCollateralV2.ts +15 -8
  671. package/src/@codegen/klend/instructions/withdrawProtocolFee.ts +13 -8
  672. package/src/@codegen/klend/instructions/withdrawReferrerFees.ts +12 -7
  673. package/src/@codegen/kvault/accounts/Reserve.ts +6 -2
  674. package/src/@codegen/kvault/accounts/VaultState.ts +6 -2
  675. package/src/@codegen/kvault/instructions/deposit.ts +11 -8
  676. package/src/@codegen/kvault/instructions/giveUpPendingFees.ts +15 -8
  677. package/src/@codegen/kvault/instructions/initVault.ts +10 -7
  678. package/src/@codegen/kvault/instructions/initializeSharesMetadata.ts +11 -8
  679. package/src/@codegen/kvault/instructions/invest.ts +10 -7
  680. package/src/@codegen/kvault/instructions/removeAllocation.ts +10 -7
  681. package/src/@codegen/kvault/instructions/updateAdmin.ts +10 -7
  682. package/src/@codegen/kvault/instructions/updateReserveAllocation.ts +14 -8
  683. package/src/@codegen/kvault/instructions/updateSharesMetadata.ts +13 -8
  684. package/src/@codegen/kvault/instructions/updateVaultConfig.ts +10 -7
  685. package/src/@codegen/kvault/instructions/withdraw.ts +11 -8
  686. package/src/@codegen/kvault/instructions/withdrawFromAvailable.ts +13 -8
  687. package/src/@codegen/kvault/instructions/withdrawPendingFees.ts +12 -7
  688. package/src/@codegen/kvault/types/ReserveConfig.ts +63 -18
  689. package/src/@codegen/pyth_rec/accounts/Config.ts +6 -2
  690. package/src/@codegen/pyth_rec/accounts/priceUpdateV2.ts +6 -2
  691. package/src/@codegen/pyth_rec/accounts/twapUpdate.ts +6 -2
  692. package/src/@codegen/pyth_rec/instructions/acceptGovernanceAuthorityTransfer.ts +10 -7
  693. package/src/@codegen/pyth_rec/instructions/reclaimRent.ts +10 -7
  694. package/src/@codegen/pyth_rec/instructions/reclaimTwapRent.ts +10 -7
  695. package/src/@codegen/pyth_rec/instructions/requestGovernanceAuthorityTransfer.ts +13 -8
  696. package/src/@codegen/pyth_rec/instructions/setDataSources.ts +11 -8
  697. package/src/@codegen/pyth_rec/instructions/setFee.ts +13 -8
  698. package/src/@codegen/pyth_rec/instructions/setMinimumSignatures.ts +13 -8
  699. package/src/@codegen/pyth_rec/instructions/setWormholeAddress.ts +15 -8
  700. package/src/classes/action.ts +73 -41
  701. package/src/classes/farm_utils.ts +9 -9
  702. package/src/classes/manager.ts +25 -25
  703. package/src/classes/market.ts +17 -5
  704. package/src/classes/reserve.ts +8 -8
  705. package/src/classes/vault.ts +51 -44
  706. package/src/classes/vault_types.ts +25 -25
  707. package/src/client/tx/multisig.ts +2 -2
  708. package/src/client/tx/priorityFee.ts +3 -3
  709. package/src/client/tx/processor.ts +2 -2
  710. package/src/client/tx/simulate.ts +2 -2
  711. package/src/client/tx/tx.ts +2 -2
  712. package/src/lending_operations/repay_with_collateral_operations.ts +4 -4
  713. package/src/lending_operations/swap_collateral_operations.ts +16 -16
  714. package/src/leverage/instructions.ts +2 -2
  715. package/src/leverage/operations.ts +13 -13
  716. package/src/leverage/types.ts +6 -6
  717. package/src/leverage/utils.ts +3 -3
  718. package/src/manager/client_kamino_manager.ts +5 -3
  719. package/src/manager/tx/multisig.ts +2 -2
  720. package/src/manager/tx/priorityFee.ts +3 -3
  721. package/src/manager/tx/processor.ts +2 -2
  722. package/src/manager/tx/simulate.ts +2 -2
  723. package/src/manager/tx/tx.ts +2 -2
  724. package/src/referrals/instructions.ts +6 -3
  725. package/src/utils/ata.ts +11 -11
  726. package/src/utils/instruction.ts +6 -6
  727. package/src/utils/lookupTable.ts +8 -8
  728. package/src/utils/metadata.ts +3 -3
  729. package/src/utils/userMetadata.ts +4 -3
@@ -13,8 +13,8 @@ import {
13
13
  GetProgramAccountsDatasizeFilter,
14
14
  GetProgramAccountsMemcmpFilter,
15
15
  getProgramDerivedAddress,
16
- IAccountMeta,
17
- IInstruction,
16
+ AccountMeta,
17
+ Instruction,
18
18
  lamports,
19
19
  ProgramDerivedAddress,
20
20
  Rpc,
@@ -243,8 +243,8 @@ export class KaminoVaultClient {
243
243
  ]);
244
244
 
245
245
  let adminTokenAccount: Address;
246
- const prerequisiteIxs: IInstruction[] = [];
247
- const cleanupIxs: IInstruction[] = [];
246
+ const prerequisiteIxs: Instruction[] = [];
247
+ const cleanupIxs: Instruction[] = [];
248
248
  if (vaultConfig.tokenMint === WRAPPED_SOL_MINT) {
249
249
  const { wsolAta, createAtaIxs, closeAtaIxs } = await createWsolAtaIfMissing(
250
250
  this.getConnection(),
@@ -278,7 +278,7 @@ export class KaminoVaultClient {
278
278
  sharesTokenProgram: TOKEN_PROGRAM_ADDRESS,
279
279
  adminTokenAccount,
280
280
  };
281
- const initVaultIx = initVault(initVaultAccounts, this._kaminoVaultProgramId);
281
+ const initVaultIx = initVault(initVaultAccounts, undefined, this._kaminoVaultProgramId);
282
282
 
283
283
  // create and set up the vault lookup table
284
284
  const [createLUTIx, lut] = await initLookupTableIx(vaultConfig.admin, slot);
@@ -432,6 +432,7 @@ export class KaminoVaultClient {
432
432
  const updateReserveAllocationIx = updateReserveAllocation(
433
433
  updateReserveAllocationArgs,
434
434
  updateReserveAllocationAccounts,
435
+ undefined,
435
436
  this._kaminoVaultProgramId
436
437
  );
437
438
 
@@ -477,7 +478,7 @@ export class KaminoVaultClient {
477
478
  const unallocatedWeightToUse = unallocatedWeight ? unallocatedWeight : vaultState.unallocatedWeight;
478
479
  const unallocatedCapToUse = unallocatedCap ? unallocatedCap : vaultState.unallocatedTokensCap;
479
480
 
480
- const ixs: IInstruction[] = [];
481
+ const ixs: Instruction[] = [];
481
482
 
482
483
  if (!unallocatedWeightToUse.eq(vaultState.unallocatedWeight)) {
483
484
  const updateVaultUnallocatedWeightIx = await this.updateVaultConfigIxs(
@@ -657,7 +658,7 @@ export class KaminoVaultClient {
657
658
  vault: KaminoVault,
658
659
  reserve: Address,
659
660
  vaultAdminAuthority?: TransactionSigner
660
- ): Promise<IInstruction | undefined> {
661
+ ): Promise<Instruction | undefined> {
661
662
  const vaultState = await vault.getState(this.getConnection());
662
663
  const vaultAdmin = parseVaultAdmin(vaultState, vaultAdminAuthority);
663
664
 
@@ -729,6 +730,7 @@ export class KaminoVaultClient {
729
730
  let updateVaultConfigIx = updateVaultConfig(
730
731
  updateVaultConfigArgs,
731
732
  updateVaultConfigAccs,
733
+ undefined,
732
734
  this._kaminoVaultProgramId
733
735
  );
734
736
  updateVaultConfigIx = this.appendRemainingAccountsForVaultReserves(
@@ -737,7 +739,7 @@ export class KaminoVaultClient {
737
739
  vaultReservesState
738
740
  );
739
741
 
740
- const updateLUTIxs: IInstruction[] = [];
742
+ const updateLUTIxs: Instruction[] = [];
741
743
 
742
744
  if (mode.kind === new VaultConfigField.PendingVaultAdmin().kind) {
743
745
  const newPubkey = address(value);
@@ -807,7 +809,7 @@ export class KaminoVaultClient {
807
809
  vault: Address,
808
810
  mode: VaultConfigFieldKind,
809
811
  value: string
810
- ): IInstruction {
812
+ ): Instruction {
811
813
  const updateVaultConfigAccs: UpdateVaultConfigAccounts = {
812
814
  vaultAdminAuthority: admin,
813
815
  vaultState: vault,
@@ -836,6 +838,7 @@ export class KaminoVaultClient {
836
838
  const updateVaultConfigIx = updateVaultConfig(
837
839
  updateVaultConfigArgs,
838
840
  updateVaultConfigAccs,
841
+ undefined,
839
842
  this._kaminoVaultProgramId
840
843
  );
841
844
 
@@ -860,14 +863,14 @@ export class KaminoVaultClient {
860
863
  vaultState: vault.address,
861
864
  };
862
865
 
863
- const acceptVaultOwnershipIx = updateAdmin(acceptOwneshipAccounts, this._kaminoVaultProgramId);
866
+ const acceptVaultOwnershipIx = updateAdmin(acceptOwneshipAccounts, undefined, this._kaminoVaultProgramId);
864
867
 
865
868
  // read the current LUT and create a new one for the new admin and backfill it
866
869
  const accountsInExistentLUT = (await getAccountsInLut(this.getConnection(), vaultState.vaultLookupTable)).filter(
867
870
  (account) => account !== vaultState.vaultAdminAuthority
868
871
  );
869
872
 
870
- const lutIxs: IInstruction[] = [];
873
+ const lutIxs: Instruction[] = [];
871
874
  const [initNewLutIx, newLut] = await initLookupTableIx(
872
875
  signer,
873
876
  await this.getConnection().getSlot({ commitment: 'finalized' }).send()
@@ -906,7 +909,7 @@ export class KaminoVaultClient {
906
909
  vault: KaminoVault,
907
910
  maxAmountToGiveUp: Decimal,
908
911
  vaultAdminAuthority?: TransactionSigner
909
- ): Promise<IInstruction> {
912
+ ): Promise<Instruction> {
910
913
  const vaultState: VaultState = await vault.getState(this.getConnection());
911
914
  const vaultAdmin = parseVaultAdmin(vaultState, vaultAdminAuthority);
912
915
 
@@ -924,7 +927,7 @@ export class KaminoVaultClient {
924
927
  maxAmountToGiveUp: new BN(maxAmountToGiveUpLamports.toString()),
925
928
  };
926
929
 
927
- return giveUpPendingFees(giveUpPendingFeesArgs, giveUpPendingFeesAccounts, this._kaminoVaultProgramId);
930
+ return giveUpPendingFees(giveUpPendingFeesArgs, giveUpPendingFeesAccounts, undefined, this._kaminoVaultProgramId);
928
931
  }
929
932
 
930
933
  /**
@@ -941,7 +944,7 @@ export class KaminoVaultClient {
941
944
  slot: Slot,
942
945
  vaultReservesMap?: Map<Address, KaminoReserve>,
943
946
  vaultAdminAuthority?: TransactionSigner
944
- ): Promise<IInstruction[]> {
947
+ ): Promise<Instruction[]> {
945
948
  const vaultState: VaultState = await vault.getState(this.getConnection());
946
949
  const vaultAdmin = parseVaultAdmin(vaultState, vaultAdminAuthority);
947
950
  const vaultReservesState = vaultReservesMap ? vaultReservesMap : await this.loadVaultReserves(vaultState);
@@ -985,7 +988,7 @@ export class KaminoVaultClient {
985
988
  reservesToWithdraw,
986
989
  this._kaminoLendProgramId
987
990
  );
988
- const withdrawIxs: IInstruction[] = await Promise.all(
991
+ const withdrawIxs: Instruction[] = await Promise.all(
989
992
  reservesToWithdraw.map(async (reserve, index) => {
990
993
  if (reserveStates[index] === null) {
991
994
  throw new Error(`Reserve ${reserve} not found`);
@@ -1008,7 +1011,7 @@ export class KaminoVaultClient {
1008
1011
  return [createAtaIx, ...withdrawIxs];
1009
1012
  }
1010
1013
 
1011
- // async closeVaultIx(vault: KaminoVault): Promise<IInstruction> {
1014
+ // async closeVaultIx(vault: KaminoVault): Promise<Instruction> {
1012
1015
  // const vaultState: VaultState = await vault.getState(this.getConnection());
1013
1016
 
1014
1017
  // const closeVaultAccounts: CloseVaultAccounts = {
@@ -1039,8 +1042,8 @@ export class KaminoVaultClient {
1039
1042
 
1040
1043
  const tokenProgramID = vaultState.tokenProgram;
1041
1044
  const userTokenAta = await getAssociatedTokenAddress(vaultState.tokenMint, user.address, tokenProgramID);
1042
- const createAtasIxs: IInstruction[] = [];
1043
- const closeAtasIxs: IInstruction[] = [];
1045
+ const createAtasIxs: Instruction[] = [];
1046
+ const closeAtasIxs: Instruction[] = [];
1044
1047
  if (vaultState.tokenMint === WRAPPED_SOL_MINT) {
1045
1048
  const [{ ata: wsolAta, createAtaIx: createWsolAtaIxn }] = await createAtasIdempotent(user, [
1046
1049
  {
@@ -1090,7 +1093,7 @@ export class KaminoVaultClient {
1090
1093
  ),
1091
1094
  };
1092
1095
 
1093
- let depositIx = deposit(depositArgs, depositAccounts, this._kaminoVaultProgramId);
1096
+ let depositIx = deposit(depositArgs, depositAccounts, undefined, this._kaminoVaultProgramId);
1094
1097
 
1095
1098
  const vaultReserves = this.getVaultReserves(vaultState);
1096
1099
 
@@ -1126,7 +1129,7 @@ export class KaminoVaultClient {
1126
1129
  vault: KaminoVault,
1127
1130
  sharesAmount?: Decimal,
1128
1131
  farmState?: FarmState
1129
- ): Promise<IInstruction[]> {
1132
+ ): Promise<Instruction[]> {
1130
1133
  const vaultState = await vault.getState(this.getConnection());
1131
1134
 
1132
1135
  let sharesToStakeLamports = new Decimal(U64_MAX);
@@ -1287,7 +1290,7 @@ export class KaminoVaultClient {
1287
1290
  user: TransactionSigner,
1288
1291
  vault: KaminoVault,
1289
1292
  shareAmount: Decimal
1290
- ): Promise<IInstruction[]> {
1293
+ ): Promise<Instruction[]> {
1291
1294
  const vaultState = await vault.getState(this.getConnection());
1292
1295
  const kaminoVault = new KaminoVault(vault.address, vaultState, vault.programId);
1293
1296
 
@@ -1319,7 +1322,7 @@ export class KaminoVaultClient {
1319
1322
  allUserShares: Decimal,
1320
1323
  slot: Slot,
1321
1324
  vaultReservesMap?: Map<Address, KaminoReserve>
1322
- ): Promise<IInstruction[]> {
1325
+ ): Promise<Instruction[]> {
1323
1326
  const vaultState = await vault.getState(this.getConnection());
1324
1327
 
1325
1328
  const vaultReservesState = vaultReservesMap ? vaultReservesMap : await this.loadVaultReserves(vaultState);
@@ -1395,7 +1398,7 @@ export class KaminoVaultClient {
1395
1398
  });
1396
1399
  }
1397
1400
 
1398
- const withdrawIxs: IInstruction[] = [];
1401
+ const withdrawIxs: Instruction[] = [];
1399
1402
  withdrawIxs.push(createAtaIx);
1400
1403
  for (let reserveIndex = 0; reserveIndex < reserveWithSharesAmountToWithdraw.length; reserveIndex++) {
1401
1404
  const reserveWithTokens = reserveWithSharesAmountToWithdraw[reserveIndex];
@@ -1435,7 +1438,7 @@ export class KaminoVaultClient {
1435
1438
  * @param vault - vault to invest from
1436
1439
  * @returns - an array of invest instructions for each invest action required for the vault reserves
1437
1440
  */
1438
- async investAllReservesIxs(payer: TransactionSigner, vault: KaminoVault): Promise<IInstruction[]> {
1441
+ async investAllReservesIxs(payer: TransactionSigner, vault: KaminoVault): Promise<Instruction[]> {
1439
1442
  const vaultState = await vault.getState(this.getConnection());
1440
1443
  const minInvestAmount = vaultState.minInvestAmount;
1441
1444
  const allReserves = this.getVaultReserves(vaultState);
@@ -1483,7 +1486,7 @@ export class KaminoVaultClient {
1483
1486
  }
1484
1487
  }
1485
1488
 
1486
- const investIxsPromises: Promise<IInstruction[]>[] = [];
1489
+ const investIxsPromises: Promise<Instruction[]>[] = [];
1487
1490
  // invest first the reserves from which we disinvest, then the other ones
1488
1491
  for (const reserve of reservesToDisinvestFrom) {
1489
1492
  const reserveState = allReservesStateMap.get(reserve);
@@ -1521,7 +1524,7 @@ export class KaminoVaultClient {
1521
1524
  investIxsPromises.push(investIxsPromise);
1522
1525
  }
1523
1526
 
1524
- let investIxs: IInstruction[] = [];
1527
+ let investIxs: Instruction[] = [];
1525
1528
  investIxs.push(createAtaIx);
1526
1529
  investIxs = await Promise.all(investIxsPromises).then((ixs) => ixs.flat());
1527
1530
 
@@ -1544,12 +1547,12 @@ export class KaminoVaultClient {
1544
1547
  reserve: ReserveWithAddress,
1545
1548
  vaultReservesMap?: Map<Address, KaminoReserve>,
1546
1549
  createAtaIfNeeded: boolean = true
1547
- ): Promise<IInstruction[]> {
1550
+ ): Promise<Instruction[]> {
1548
1551
  const vaultState = await vault.getState(this.getConnection());
1549
1552
  const cTokenVault = await getCTokenVaultPda(vault.address, reserve.address, this._kaminoVaultProgramId);
1550
1553
  const [lendingMarketAuth] = await lendingMarketAuthPda(reserve.state.lendingMarket, this._kaminoLendProgramId);
1551
1554
 
1552
- const ixs: IInstruction[] = [];
1555
+ const ixs: Instruction[] = [];
1553
1556
 
1554
1557
  const tokenProgram = await getAccountOwner(this.getConnection(), vaultState.tokenMint);
1555
1558
  const [{ ata: payerTokenAta, createAtaIx }] = await createAtasIdempotent(payer, [
@@ -1579,7 +1582,7 @@ export class KaminoVaultClient {
1579
1582
  reserveCollateralTokenProgram: TOKEN_PROGRAM_ADDRESS,
1580
1583
  };
1581
1584
 
1582
- let investIx = invest(investAccounts, this._kaminoVaultProgramId);
1585
+ let investIx = invest(investAccounts, undefined, this._kaminoVaultProgramId);
1583
1586
 
1584
1587
  const vaultReserves = this.getVaultReserves(vaultState);
1585
1588
  const vaultReservesState = vaultReservesMap ? vaultReservesMap : await this.loadVaultReserves(vaultState);
@@ -1610,7 +1613,7 @@ export class KaminoVaultClient {
1610
1613
  userTokenAta: Address,
1611
1614
  shareAmountLamports: Decimal,
1612
1615
  vaultReservesState: Map<Address, KaminoReserve>
1613
- ): Promise<IInstruction> {
1616
+ ): Promise<Instruction> {
1614
1617
  const [lendingMarketAuth] = await lendingMarketAuthPda(marketAddress, this._kaminoLendProgramId);
1615
1618
 
1616
1619
  const eventAuthority = await getEventAuthorityPda(this._kaminoVaultProgramId);
@@ -1649,7 +1652,7 @@ export class KaminoVaultClient {
1649
1652
  sharesAmount: new BN(shareAmountLamports.floor().toString()),
1650
1653
  };
1651
1654
 
1652
- let withdrawIxn = withdraw(withdrawArgs, withdrawAccounts, this._kaminoVaultProgramId);
1655
+ let withdrawIxn = withdraw(withdrawArgs, withdrawAccounts, undefined, this._kaminoVaultProgramId);
1653
1656
 
1654
1657
  const vaultReserves = this.getVaultReserves(vaultState);
1655
1658
  withdrawIxn = this.appendRemainingAccountsForVaultReserves(withdrawIxn, vaultReserves, vaultReservesState);
@@ -1664,7 +1667,7 @@ export class KaminoVaultClient {
1664
1667
  userSharesAta: Address,
1665
1668
  userTokenAta: Address,
1666
1669
  shareAmountLamports: Decimal
1667
- ): Promise<IInstruction> {
1670
+ ): Promise<Instruction> {
1668
1671
  const eventAuthority = await getEventAuthorityPda(this._kaminoVaultProgramId);
1669
1672
  const withdrawFromAvailableAccounts: WithdrawFromAvailableAccounts = {
1670
1673
  user,
@@ -1686,7 +1689,7 @@ export class KaminoVaultClient {
1686
1689
  sharesAmount: new BN(shareAmountLamports.floor().toString()),
1687
1690
  };
1688
1691
 
1689
- return withdrawFromAvailable(withdrawFromAvailableArgs, withdrawFromAvailableAccounts, this._kaminoVaultProgramId);
1692
+ return withdrawFromAvailable(withdrawFromAvailableArgs, withdrawFromAvailableAccounts, undefined, this._kaminoVaultProgramId);
1690
1693
  }
1691
1694
 
1692
1695
  private async withdrawPendingFeesIx(
@@ -1696,7 +1699,7 @@ export class KaminoVaultClient {
1696
1699
  marketAddress: Address,
1697
1700
  reserve: ReserveWithAddress,
1698
1701
  adminTokenAta: Address
1699
- ): Promise<IInstruction> {
1702
+ ): Promise<Instruction> {
1700
1703
  const [lendingMarketAuth] = await lendingMarketAuthPda(marketAddress, this._kaminoLendProgramId);
1701
1704
 
1702
1705
  const withdrawPendingFeesAccounts: WithdrawPendingFeesAccounts = {
@@ -1719,7 +1722,7 @@ export class KaminoVaultClient {
1719
1722
  reserveCollateralTokenProgram: TOKEN_PROGRAM_ADDRESS,
1720
1723
  };
1721
1724
 
1722
- let withdrawPendingFeesIxn = withdrawPendingFees(withdrawPendingFeesAccounts, this._kaminoVaultProgramId);
1725
+ let withdrawPendingFeesIxn = withdrawPendingFees(withdrawPendingFeesAccounts, undefined, this._kaminoVaultProgramId);
1723
1726
 
1724
1727
  const vaultReserves = this.getVaultReserves(vaultState);
1725
1728
  const vaultReservesState = await this.loadVaultReserves(vaultState);
@@ -1788,7 +1791,7 @@ export class KaminoVaultClient {
1788
1791
  allAccountsToBeInserted.push(vaultState.vaultFarm);
1789
1792
  }
1790
1793
 
1791
- const setupLUTIfNeededIxs: IInstruction[] = [];
1794
+ const setupLUTIfNeededIxs: Instruction[] = [];
1792
1795
  let lut = vaultState.vaultLookupTable;
1793
1796
  if (lut === DEFAULT_PUBLIC_KEY) {
1794
1797
  const recentSlot = await this.getConnection().getSlot({ commitment: 'confirmed' }).send();
@@ -1805,7 +1808,7 @@ export class KaminoVaultClient {
1805
1808
  setupLUTIfNeededIxs.push(updateVaultConfigIxs.updateVaultConfigIx);
1806
1809
  }
1807
1810
 
1808
- const ixs: IInstruction[] = [];
1811
+ const ixs: Instruction[] = [];
1809
1812
  let overriddenExistentAccounts: Address[] | undefined = undefined;
1810
1813
  if (vaultState.vaultLookupTable === DEFAULT_PUBLIC_KEY) {
1811
1814
  overriddenExistentAccounts = [];
@@ -1846,7 +1849,7 @@ export class KaminoVaultClient {
1846
1849
  lookupTable: Address,
1847
1850
  keys: Address[],
1848
1851
  accountsInLut?: Address[]
1849
- ): Promise<IInstruction[]> {
1852
+ ): Promise<Instruction[]> {
1850
1853
  let lutContentsList = accountsInLut;
1851
1854
  if (!accountsInLut) {
1852
1855
  lutContentsList = await getAccountsInLut(this.getConnection(), lookupTable);
@@ -1861,7 +1864,7 @@ export class KaminoVaultClient {
1861
1864
  const missingAccountsList = [...new Set<Address>(missingAccounts)];
1862
1865
 
1863
1866
  const chunkSize = 10;
1864
- const ixs: IInstruction[] = [];
1867
+ const ixs: Instruction[] = [];
1865
1868
 
1866
1869
  for (let i = 0; i < missingAccountsList.length; i += chunkSize) {
1867
1870
  const chunk = missingAccountsList.slice(i, i + chunkSize);
@@ -2398,7 +2401,11 @@ export class KaminoVaultClient {
2398
2401
 
2399
2402
  reservesAndOracles.forEach(([reserve, oracle], index) => {
2400
2403
  if (!oracle) {
2401
- throw Error(`Could not find oracle for ${parseTokenSymbol(reserve.config.tokenInfo.name)} reserve`);
2404
+ throw Error(
2405
+ `Could not find oracle for ${parseTokenSymbol(reserve.config.tokenInfo.name)} (${
2406
+ vaultReservesAddresses[index]
2407
+ }) reserve in market ${reserve.lendingMarket}`
2408
+ );
2402
2409
  }
2403
2410
  const kaminoReserve = KaminoReserve.initialize(
2404
2411
  vaultReservesAddresses[index],
@@ -3259,12 +3266,12 @@ export class KaminoVaultClient {
3259
3266
  }
3260
3267
 
3261
3268
  private appendRemainingAccountsForVaultReserves(
3262
- ix: IInstruction,
3269
+ ix: Instruction,
3263
3270
  vaultReserves: Address[],
3264
3271
  vaultReservesState: Map<Address, KaminoReserve>
3265
- ): IInstruction {
3266
- let vaultReservesAccountMetas: IAccountMeta[] = [];
3267
- let vaultReservesLendingMarkets: IAccountMeta[] = [];
3272
+ ): Instruction {
3273
+ let vaultReservesAccountMetas: AccountMeta[] = [];
3274
+ let vaultReservesLendingMarkets: AccountMeta[] = [];
3268
3275
  vaultReserves.forEach((reserve) => {
3269
3276
  const reserveState = vaultReservesState.get(reserve);
3270
3277
  if (reserveState === undefined) {
@@ -1,40 +1,40 @@
1
- import { Address, IInstruction } from '@solana/kit';
1
+ import { Address, Instruction } from '@solana/kit';
2
2
  import Decimal from 'decimal.js/decimal';
3
3
 
4
4
  /** the populateLUTIxs should be executed in a separate transaction as we cannot create and populate a lookup table in the same tx */
5
5
  export type InitVaultIxs = {
6
- createAtaIfNeededIxs: IInstruction[];
7
- initVaultIxs: IInstruction[];
8
- createLUTIx: IInstruction;
9
- populateLUTIxs: IInstruction[];
10
- cleanupIxs: IInstruction[];
11
- initSharesMetadataIx: IInstruction;
6
+ createAtaIfNeededIxs: Instruction[];
7
+ initVaultIxs: Instruction[];
8
+ createLUTIx: Instruction;
9
+ populateLUTIxs: Instruction[];
10
+ cleanupIxs: Instruction[];
11
+ initSharesMetadataIx: Instruction;
12
12
  };
13
13
 
14
14
  export type AcceptVaultOwnershipIxs = {
15
- acceptVaultOwnershipIx: IInstruction;
16
- initNewLUTIx: IInstruction;
17
- updateLUTIxs: IInstruction[]; // this has to be executed in a transaction after the initNewLUTIx is executed
15
+ acceptVaultOwnershipIx: Instruction;
16
+ initNewLUTIx: Instruction;
17
+ updateLUTIxs: Instruction[]; // this has to be executed in a transaction after the initNewLUTIx is executed
18
18
  };
19
19
 
20
20
  export type UpdateReserveAllocationIxs = {
21
- updateReserveAllocationIx: IInstruction;
22
- updateLUTIxs: IInstruction[];
21
+ updateReserveAllocationIx: Instruction;
22
+ updateLUTIxs: Instruction[];
23
23
  };
24
24
 
25
25
  export type WithdrawAndBlockReserveIxs = {
26
- updateReserveAllocationIxs: IInstruction[];
27
- investIxs: IInstruction[];
26
+ updateReserveAllocationIxs: Instruction[];
27
+ investIxs: Instruction[];
28
28
  };
29
29
 
30
30
  export type DisinvestAllReservesIxs = {
31
- updateReserveAllocationIxs: IInstruction[];
32
- investIxs: IInstruction[];
31
+ updateReserveAllocationIxs: Instruction[];
32
+ investIxs: Instruction[];
33
33
  };
34
34
 
35
35
  export type UpdateVaultConfigIxs = {
36
- updateVaultConfigIx: IInstruction;
37
- updateLUTIxs: IInstruction[];
36
+ updateVaultConfigIx: Instruction;
37
+ updateLUTIxs: Instruction[];
38
38
  };
39
39
 
40
40
  export type VaultComputedAllocation = {
@@ -44,21 +44,21 @@ export type VaultComputedAllocation = {
44
44
 
45
45
  /** If there are ixs to setup the LUT it means it doesn't already exist and it needs to be created in a separate tx before inserting into it */
46
46
  export type SyncVaultLUTIxs = {
47
- setupLUTIfNeededIxs: IInstruction[];
48
- syncLUTIxs: IInstruction[];
47
+ setupLUTIfNeededIxs: Instruction[];
48
+ syncLUTIxs: Instruction[];
49
49
  };
50
50
 
51
51
  /** If the stakeInFarmIfNeededIxs exist they have to be executed after the deposit so the shares received from the deposit are staked in the vault farm */
52
52
  export type DepositIxs = {
53
- depositIxs: IInstruction[];
54
- stakeInFarmIfNeededIxs: IInstruction[];
53
+ depositIxs: Instruction[];
54
+ stakeInFarmIfNeededIxs: Instruction[];
55
55
  };
56
56
 
57
57
  /** the ixs to unstake shares from farm and withdraw them from the vault. The `unstakeFromFarmIfNeededIxs` should be in the tx before `withdrawIxs`*/
58
58
  export type WithdrawIxs = {
59
- unstakeFromFarmIfNeededIxs: IInstruction[];
60
- withdrawIxs: IInstruction[];
61
- postWithdrawIxs: IInstruction[]; // if needed: wSOL ATA close ix + share ATA close ix
59
+ unstakeFromFarmIfNeededIxs: Instruction[];
60
+ withdrawIxs: Instruction[];
61
+ postWithdrawIxs: Instruction[]; // if needed: wSOL ATA close ix + share ATA close ix
62
62
  };
63
63
 
64
64
  /** The shares an user has in a vault (staked and unstaked), in tokens */
@@ -6,7 +6,7 @@ import {
6
6
  createTransactionMessage,
7
7
  getBase58Decoder,
8
8
  getCompiledTransactionMessageEncoder,
9
- IInstruction,
9
+ Instruction,
10
10
  pipe,
11
11
  setTransactionMessageFeePayer,
12
12
  setTransactionMessageLifetimeUsingBlockhash,
@@ -20,7 +20,7 @@ const base58Decoder = getBase58Decoder();
20
20
 
21
21
  export async function printMultisigTx(
22
22
  payer: TransactionSigner,
23
- ixs: IInstruction[],
23
+ ixs: Instruction[],
24
24
  luts: Account<AddressLookupTable>[] = []
25
25
  ) {
26
26
  const lutsByAddress: AddressesByLookupTableAddress = {};
@@ -1,4 +1,4 @@
1
- import { IInstruction } from '@solana/kit';
1
+ import { Instruction } from '@solana/kit';
2
2
  import {
3
3
  COMPUTE_BUDGET_PROGRAM_ADDRESS,
4
4
  getSetComputeUnitLimitInstruction,
@@ -13,7 +13,7 @@ export function getPriorityFeeAndCuIxs({
13
13
  }: {
14
14
  priorityFeeMultiplier: number;
15
15
  computeUnits?: number;
16
- }): IInstruction[] {
16
+ }): Instruction[] {
17
17
  const microLamportsPrioritizationFee = microLamport / computeUnits;
18
18
  return [
19
19
  getSetComputeUnitLimitInstruction({ units: computeUnits }),
@@ -23,7 +23,7 @@ export function getPriorityFeeAndCuIxs({
23
23
  ];
24
24
  }
25
25
 
26
- export function removeComputeBudgetProgramInstructions(ixs: IInstruction[]): IInstruction[] {
26
+ export function removeComputeBudgetProgramInstructions(ixs: Instruction[]): Instruction[] {
27
27
  const filteredIxs = ixs.filter((ix) => {
28
28
  if (ix.programAddress === COMPUTE_BUDGET_PROGRAM_ADDRESS) {
29
29
  return false;
@@ -1,5 +1,5 @@
1
1
  import { CliConnectionPool } from './CliConnectionPool';
2
- import { Account, IInstruction, TransactionSigner } from '@solana/kit';
2
+ import { Account, Instruction, TransactionSigner } from '@solana/kit';
3
3
  import { sendAndConfirmTx } from './tx';
4
4
  import { printSimulateTx } from './simulate';
5
5
  import { printMultisigTx } from './multisig';
@@ -9,7 +9,7 @@ import { AddressLookupTable } from '@solana-program/address-lookup-table';
9
9
  export async function processTx(
10
10
  c: CliConnectionPool,
11
11
  payer: TransactionSigner,
12
- ixs: IInstruction[],
12
+ ixs: Instruction[],
13
13
  mode: SendTxMode,
14
14
  luts: Account<AddressLookupTable>[] = []
15
15
  ): Promise<void> {
@@ -1,5 +1,5 @@
1
1
  import {
2
- IInstruction,
2
+ Instruction,
3
3
  pipe,
4
4
  createTransactionMessage,
5
5
  setTransactionMessageFeePayer,
@@ -28,7 +28,7 @@ export const INVALID_BUT_SUFFICIENT_FOR_COMPILATION_BLOCKHASH: BlockhashWithHeig
28
28
  export async function printSimulateTx(
29
29
  c: CliConnectionPool,
30
30
  payer: TransactionSigner,
31
- ixs: IInstruction[],
31
+ ixs: Instruction[],
32
32
  luts: Account<AddressLookupTable>[] = []
33
33
  ) {
34
34
  const lutsByAddress: AddressesByLookupTableAddress = {};
@@ -11,7 +11,7 @@ import {
11
11
  GetLatestBlockhashApi,
12
12
  getSignatureFromTransaction,
13
13
  GetSignatureStatusesApi,
14
- IInstruction,
14
+ Instruction,
15
15
  pipe,
16
16
  RpcSubscriptions,
17
17
  sendAndConfirmTransactionFactory,
@@ -32,7 +32,7 @@ import { CliConnectionPool } from './CliConnectionPool';
32
32
  export async function sendAndConfirmTx(
33
33
  c: CliConnectionPool,
34
34
  payer: TransactionSigner,
35
- ixs: IInstruction[],
35
+ ixs: Instruction[],
36
36
  luts: Account<AddressLookupTable>[] = []
37
37
  ): Promise<Signature> {
38
38
  const blockhash = await fetchBlockhash(c.rpc);
@@ -19,12 +19,12 @@ import {
19
19
  uniqueAccountsWithProgramIds,
20
20
  } from '../utils';
21
21
  import { AddressLookupTable } from '@solana-program/address-lookup-table';
22
- import { Account, Address, IInstruction, none, Option, Slot, TransactionSigner } from '@solana/kit';
22
+ import { Account, Address, Instruction, none, Option, Slot, TransactionSigner } from '@solana/kit';
23
23
  import Decimal from 'decimal.js';
24
24
  import { calcMaxWithdrawCollateral, calcRepayAmountWithSlippage } from './repay_with_collateral_calcs';
25
25
 
26
26
  export type RepayWithCollIxsResponse<QuoteResponse> = {
27
- ixs: IInstruction[];
27
+ ixs: Instruction[];
28
28
  lookupTables: Account<AddressLookupTable>[];
29
29
  flashLoanInfo: FlashLoanInfo;
30
30
  swapInputs: SwapInputs;
@@ -57,7 +57,7 @@ interface RepayWithCollSwapInputsProps<QuoteResponse> {
57
57
  currentSlot: Slot;
58
58
  repayAmount: Decimal;
59
59
  isClosingPosition: boolean;
60
- budgetAndPriorityFeeIxs?: IInstruction[];
60
+ budgetAndPriorityFeeIxs?: Instruction[];
61
61
  scopeRefreshConfig?: ScopePriceRefreshConfig;
62
62
  useV2Ixs: boolean;
63
63
  quoter: SwapQuoteProvider<QuoteResponse>;
@@ -285,7 +285,7 @@ async function buildRepayWithCollateralIxs<QuoteResponse>(
285
285
  obligation: KaminoObligation,
286
286
  referrer: Option<Address>,
287
287
  currentSlot: Slot,
288
- budgetAndPriorityFeeIxs: IInstruction[] | undefined,
288
+ budgetAndPriorityFeeIxs: Instruction[] | undefined,
289
289
  scopeRefreshConfig: ScopePriceRefreshConfig | undefined,
290
290
  swapQuoteIxsArray: SwapIxs<QuoteResponse>[],
291
291
  isClosingPosition: boolean,