@lavarage/sdk 7.5.9 → 7.5.10

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 (74) hide show
  1. package/.github/workflows/npm-publish.yml +33 -0
  2. package/docs/functions/borrowV1.html +1 -1
  3. package/docs/functions/borrowV2.html +1 -1
  4. package/docs/functions/closePositionEvm.html +2 -2
  5. package/docs/functions/closeTradeV1.html +7 -3
  6. package/docs/functions/closeTradeV2.html +7 -3
  7. package/docs/functions/createTpDelegate.html +2 -2
  8. package/docs/functions/getActiveLoanCountEvm.html +2 -2
  9. package/docs/functions/getActiveLoansBatchEvm.html +2 -2
  10. package/docs/functions/getAllPositions.html +2 -2
  11. package/docs/functions/getAvailableExposureEvm.html +2 -2
  12. package/docs/functions/getClosedPositions.html +2 -2
  13. package/docs/functions/getClosedPositionsEvm.html +2 -2
  14. package/docs/functions/getCollateralExposureEvm.html +2 -2
  15. package/docs/functions/getCollateralInfoEvm.html +2 -2
  16. package/docs/functions/getDelegateAccounts.html +2 -2
  17. package/docs/functions/getLiquidatedPositions.html +2 -2
  18. package/docs/functions/getLiquidatedPositionsEvm.html +2 -2
  19. package/docs/functions/getLoanEvm.html +2 -2
  20. package/docs/functions/getLoansByBorrowerEvm.html +2 -2
  21. package/docs/functions/getOffers.html +2 -2
  22. package/docs/functions/getOffersEvm.html +2 -2
  23. package/docs/functions/getOpenPositions.html +2 -2
  24. package/docs/functions/getOpeningFeeEvm.html +2 -2
  25. package/docs/functions/getPda.html +2 -2
  26. package/docs/functions/getPositionAccountPDA.html +2 -2
  27. package/docs/functions/getPositionsEvm.html +2 -2
  28. package/docs/functions/getProfitFeeEvm.html +2 -2
  29. package/docs/functions/getTokenBalanceEvm.html +2 -2
  30. package/docs/functions/getUserLoansEvm.html +2 -2
  31. package/docs/functions/lending.addToWithdrawalAccessList.html +1 -1
  32. package/docs/functions/lending.createOffer.html +2 -2
  33. package/docs/functions/lending.depositFunds.html +2 -2
  34. package/docs/functions/lending.getNodeWalletPDA.html +2 -2
  35. package/docs/functions/lending.getTradingPoolPDA.html +2 -2
  36. package/docs/functions/lending.getWithdrawalAccessList.html +1 -1
  37. package/docs/functions/lending.getWithdrawalAccessListPDA.html +1 -1
  38. package/docs/functions/lending.removeFromWithdrawalAccessList.html +1 -1
  39. package/docs/functions/lending.updateInterestRate.html +2 -2
  40. package/docs/functions/lending.updateMaxBorrow.html +2 -2
  41. package/docs/functions/lending.updateMaxExposure.html +2 -2
  42. package/docs/functions/lending.updateOffer.html +2 -2
  43. package/docs/functions/lending.withdrawFunds.html +2 -2
  44. package/docs/functions/lending.withdrawFundsV1.html +2 -2
  45. package/docs/functions/lending.withdrawFundsV2.html +2 -2
  46. package/docs/functions/liquidatePositionEvm.html +2 -2
  47. package/docs/functions/mergePositionV2.html +2 -2
  48. package/docs/functions/modifyTpDelegate.html +2 -2
  49. package/docs/functions/openPositionEvm.html +2 -2
  50. package/docs/functions/openTradeV1.html +8 -3
  51. package/docs/functions/openTradeV2.html +8 -3
  52. package/docs/functions/partialRepayV1.html +2 -2
  53. package/docs/functions/partialRepayV2.html +2 -2
  54. package/docs/functions/removeTpDelegate.html +2 -2
  55. package/docs/functions/splitPositionV2.html +2 -2
  56. package/docs/functions/updateMaxLendPerTokenBatchEvm.html +2 -2
  57. package/docs/hierarchy.html +1 -1
  58. package/docs/index.html +2 -2
  59. package/docs/modules/IDLV2.html +2 -2
  60. package/docs/modules/lending.html +1 -1
  61. package/docs/modules.html +2 -2
  62. package/docs/types/IDLV2.Lavarage.html +2 -2
  63. package/docs/types/Lavarage.html +2 -2
  64. package/docs/variables/IDL.html +1 -1
  65. package/docs/variables/IDLV2.IDL.html +1 -1
  66. package/index.ts +27 -7
  67. package/package.json +1 -1
  68. package/.DS_Store +0 -0
  69. package/dist/index.d.mts +0 -5390
  70. package/dist/index.d.ts +0 -5390
  71. package/dist/index.js +0 -7203
  72. package/dist/index.js.map +0 -1
  73. package/dist/index.mjs +0 -7168
  74. package/dist/index.mjs.map +0 -1
@@ -1 +1 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IDL | Lavarage SDK Documentation - v7.5.7</title><meta name="description" content="Documentation for Lavarage SDK Documentation"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Lavarage SDK Documentation - v7.5.7</a><div id="tsd-toolbar-links"><a href="https://www.npmjs.com/package/@lavarage/sdk">NPM</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">IDL</a></li></ul><h1>Variable IDL<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">IDL</span><span class="tsd-signature-symbol">:</span> <a href="../types/Lavarage.html" class="tsd-signature-type tsd-kind-type-alias">Lavarage</a><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pinedefi/lavarage-sdk/blob/b2e66083b3ffd1c5b3fd8d8c6ce37856566b763b/idl/lavarage.ts#L1595">idl/lavarage.ts:1595</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://www.npmjs.com/package/@lavarage/sdk" class="tsd-nav-link">NPM</a></nav><nav class="tsd-navigation"><a href="../modules.html">Lavarage SDK Documentation - v7.5.7</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IDL | Lavarage SDK Documentation - v7.5.9</title><meta name="description" content="Documentation for Lavarage SDK Documentation"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Lavarage SDK Documentation - v7.5.9</a><div id="tsd-toolbar-links"><a href="https://www.npmjs.com/package/@lavarage/sdk">NPM</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">IDL</a></li></ul><h1>Variable IDL<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">IDL</span><span class="tsd-signature-symbol">:</span> <a href="../types/Lavarage.html" class="tsd-signature-type tsd-kind-type-alias">Lavarage</a><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pinedefi/lavarage-sdk/blob/b2e66083b3ffd1c5b3fd8d8c6ce37856566b763b/idl/lavarage.ts#L1658">idl/lavarage.ts:1658</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://www.npmjs.com/package/@lavarage/sdk" class="tsd-nav-link">NPM</a></nav><nav class="tsd-navigation"><a href="../modules.html">Lavarage SDK Documentation - v7.5.9</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IDL | Lavarage SDK Documentation - v7.5.7</title><meta name="description" content="Documentation for Lavarage SDK Documentation"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Lavarage SDK Documentation - v7.5.7</a><div id="tsd-toolbar-links"><a href="https://www.npmjs.com/package/@lavarage/sdk">NPM</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/IDLV2.html">IDLV2</a></li><li><a href="" aria-current="page">IDL</a></li></ul><h1>Variable IDL<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">IDL</span><span class="tsd-signature-symbol">:</span> <a href="../modules/IDLV2.html" class="tsd-signature-type tsd-kind-namespace">IDLV2</a><span class="tsd-signature-symbol">.</span><a href="../types/IDLV2.Lavarage.html" class="tsd-signature-type tsd-kind-type-alias">Lavarage</a><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pinedefi/lavarage-sdk/blob/b2e66083b3ffd1c5b3fd8d8c6ce37856566b763b/idl/lavaragev2.ts#L1688">idl/lavaragev2.ts:1688</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://www.npmjs.com/package/@lavarage/sdk" class="tsd-nav-link">NPM</a></nav><nav class="tsd-navigation"><a href="../modules.html">Lavarage SDK Documentation - v7.5.7</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IDL | Lavarage SDK Documentation - v7.5.9</title><meta name="description" content="Documentation for Lavarage SDK Documentation"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Lavarage SDK Documentation - v7.5.9</a><div id="tsd-toolbar-links"><a href="https://www.npmjs.com/package/@lavarage/sdk">NPM</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/IDLV2.html">IDLV2</a></li><li><a href="" aria-current="page">IDL</a></li></ul><h1>Variable IDL<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">IDL</span><span class="tsd-signature-symbol">:</span> <a href="../modules/IDLV2.html" class="tsd-signature-type tsd-kind-namespace">IDLV2</a><span class="tsd-signature-symbol">.</span><a href="../types/IDLV2.Lavarage.html" class="tsd-signature-type tsd-kind-type-alias">Lavarage</a><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pinedefi/lavarage-sdk/blob/b2e66083b3ffd1c5b3fd8d8c6ce37856566b763b/idl/lavaragev2.ts#L1771">idl/lavaragev2.ts:1771</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://www.npmjs.com/package/@lavarage/sdk" class="tsd-nav-link">NPM</a></nav><nav class="tsd-navigation"><a href="../modules.html">Lavarage SDK Documentation - v7.5.9</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
package/index.ts CHANGED
@@ -864,6 +864,11 @@ export const borrowV2 = async (
864
864
  * @param partnerFeeRecipient - Optional wallet to receive partner fees
865
865
  * @param partnerFeeMarkup - Optional partner fee amount in basis points
866
866
  * @param computeBudgetMicroLamports - Optional compute budget for priority fees
867
+ * @param platformFeeRecipient - Optional wallet to receive platform fees (jup, okx)
868
+ * @param splitTransactions - Optional boolean to split the transaction into multiple transactions (jito bundle)
869
+ * @param discountBps - Optional discount basis points for the referral program
870
+ * @param referralBps - Optional referral basis points for the referral program
871
+ * @param optionalRPCResults - Optional RPC results to use for the transaction (speeds up the transaction building)
867
872
  *
868
873
  * @returns A versioned transaction ready to be signed and sent
869
874
  *
@@ -1223,6 +1228,11 @@ export const openTradeV1 = async (
1223
1228
  * @param partnerFeeRecipient - Optional wallet to receive partner fees
1224
1229
  * @param partnerFeeMarkup - Optional partner fee amount in basis points
1225
1230
  * @param computeBudgetMicroLamports - Optional compute budget for priority fees
1231
+ * @param platformFeeRecipient - Optional wallet to receive platform fees (jup, okx)
1232
+ * @param splitTransactions - Optional boolean to split the transaction into multiple transactions (jito bundle)
1233
+ * @param discountBps - Optional discount basis points for the referral program
1234
+ * @param referralBps - Optional referral basis points for the referral program
1235
+ * @param optionalRPCResults - Optional RPC results to use for the transaction (speeds up the transaction building)
1226
1236
  *
1227
1237
  * @returns A versioned transaction ready to be signed and sent
1228
1238
  *
@@ -1454,6 +1464,13 @@ export const openTradeV2 = async (
1454
1464
  }
1455
1465
  }
1456
1466
 
1467
+ const partnerDirectAta = partnerFeeRecipient ? getAssociatedTokenAddressSync(
1468
+ quoteToken,
1469
+ partnerFeeRecipient,
1470
+ true,
1471
+ quoteTokenProgram
1472
+ ) : undefined;
1473
+
1457
1474
  const tradingOpenBorrowInstruction = useReferral
1458
1475
  ? await lavarageProgram.methods
1459
1476
  .tradingOpenBorrowWithReferral(
@@ -1543,15 +1560,10 @@ export const openTradeV2 = async (
1543
1560
  ),
1544
1561
  })
1545
1562
  .remainingAccounts(
1546
- partnerFeeRecipient && partnerFeeMarkupAsPkey && userVaultPda
1563
+ partnerFeeRecipient && partnerFeeMarkupAsPkey && partnerDirectAta
1547
1564
  ? [
1548
1565
  {
1549
- pubkey: getAssociatedTokenAddressSync(
1550
- quoteToken,
1551
- userVaultPda,
1552
- true, // allowOwnerOffCurve for PDA
1553
- quoteTokenProgram
1554
- ),
1566
+ pubkey: partnerDirectAta,
1555
1567
  isSigner: false,
1556
1568
  isWritable: true,
1557
1569
  },
@@ -2079,6 +2091,10 @@ export const partialRepayV2 = async (
2079
2091
  * @param partnerFeeRecipient - Optional wallet to receive partner fees
2080
2092
  * @param partnerFeeMarkup - Optional partner fee amount in basis points
2081
2093
  * @param computeBudgetMicroLamports - Optional compute budget for priority fees
2094
+ * @param platformFeeRecipient - Optional wallet to receive platform fees (jup, okx)
2095
+ * @param splitTransactions - Optional boolean to split the transaction into multiple transactions (jito bundle)
2096
+ * @param discountBps - Optional discount basis points for the referral program
2097
+ * @param referralBps - Optional referral basis points for the referral program
2082
2098
  *
2083
2099
  * @returns Transaction to close the position
2084
2100
  *
@@ -2504,6 +2520,10 @@ export const closeTradeV1 = async (
2504
2520
  * @param partnerFeeRecipient - Optional wallet to receive partner fees
2505
2521
  * @param partnerFeeMarkup - Optional partner fee amount in basis points
2506
2522
  * @param computeBudgetMicroLamports - Optional compute budget for priority fees
2523
+ * @param platformFeeRecipient - Optional wallet to receive platform fees (jup, okx)
2524
+ * @param splitTransactions - Optional boolean to split the transaction into multiple transactions (jito bundle)
2525
+ * @param discountBps - Optional discount basis points for the referral program
2526
+ * @param referralBps - Optional referral basis points for the referral program
2507
2527
  *
2508
2528
  * @returns Transaction to close the position
2509
2529
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lavarage/sdk",
3
- "version": "7.5.9",
3
+ "version": "7.5.10",
4
4
  "description": "Lavarage SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
package/.DS_Store DELETED
Binary file