@alphafi/alphafi-sdk 0.0.106 → 0.0.107

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 (705) hide show
  1. package/README.md +4 -0
  2. package/dist/cjs/adminFunctions.d.ts +12 -0
  3. package/dist/cjs/adminFunctions.d.ts.map +1 -1
  4. package/dist/cjs/adminFunctions.js +12 -0
  5. package/dist/cjs/adminFunctions.js.map +1 -1
  6. package/dist/cjs/common/coins.d.ts +1 -0
  7. package/dist/cjs/common/coins.d.ts.map +1 -1
  8. package/dist/cjs/common/coins.js +1 -0
  9. package/dist/cjs/common/coins.js.map +1 -1
  10. package/dist/cjs/common/constants.d.ts +34 -0
  11. package/dist/cjs/common/constants.d.ts.map +1 -1
  12. package/dist/cjs/common/constants.js +36 -12
  13. package/dist/cjs/common/constants.js.map +1 -1
  14. package/dist/cjs/common/maps.d.ts +2 -0
  15. package/dist/cjs/common/maps.d.ts.map +1 -1
  16. package/dist/cjs/common/maps.js +42 -0
  17. package/dist/cjs/common/maps.js.map +1 -1
  18. package/dist/cjs/common/types.d.ts +2 -2
  19. package/dist/cjs/common/types.d.ts.map +1 -1
  20. package/dist/cjs/common/types.js.map +1 -1
  21. package/dist/cjs/getAirdropShare.d.ts +1 -0
  22. package/dist/cjs/getAirdropShare.d.ts.map +1 -1
  23. package/dist/cjs/getAirdropShare.js +1 -0
  24. package/dist/cjs/getAirdropShare.js.map +1 -1
  25. package/dist/cjs/getAllVaults.d.ts +3 -0
  26. package/dist/cjs/getAllVaults.d.ts.map +1 -1
  27. package/dist/cjs/getAllVaults.js +3 -0
  28. package/dist/cjs/getAllVaults.js.map +1 -1
  29. package/dist/cjs/getAlphaUnlocks.d.ts +1 -0
  30. package/dist/cjs/getAlphaUnlocks.d.ts.map +1 -1
  31. package/dist/cjs/getAlphaUnlocks.js +1 -0
  32. package/dist/cjs/getAlphaUnlocks.js.map +1 -1
  33. package/dist/cjs/getAprs.d.ts +6 -0
  34. package/dist/cjs/getAprs.d.ts.map +1 -1
  35. package/dist/cjs/getAprs.js +6 -0
  36. package/dist/cjs/getAprs.js.map +1 -1
  37. package/dist/cjs/getLastAutoCompoundTime.d.ts +1 -0
  38. package/dist/cjs/getLastAutoCompoundTime.d.ts.map +1 -1
  39. package/dist/cjs/getLastAutoCompoundTime.js +1 -0
  40. package/dist/cjs/getLastAutoCompoundTime.js.map +1 -1
  41. package/dist/cjs/getRebalanceHistory.d.ts +2 -0
  42. package/dist/cjs/getRebalanceHistory.d.ts.map +1 -1
  43. package/dist/cjs/getRebalanceHistory.js +2 -0
  44. package/dist/cjs/getRebalanceHistory.js.map +1 -1
  45. package/dist/cjs/getTvls.d.ts +4 -0
  46. package/dist/cjs/getTvls.d.ts.map +1 -1
  47. package/dist/cjs/getTvls.js +4 -0
  48. package/dist/cjs/getTvls.js.map +1 -1
  49. package/dist/cjs/getVaultBalances.d.ts +5 -0
  50. package/dist/cjs/getVaultBalances.d.ts.map +1 -1
  51. package/dist/cjs/getVaultBalances.js +5 -0
  52. package/dist/cjs/getVaultBalances.js.map +1 -1
  53. package/dist/cjs/getVaults.d.ts +3 -0
  54. package/dist/cjs/getVaults.d.ts.map +1 -1
  55. package/dist/cjs/getVaults.js +3 -0
  56. package/dist/cjs/getVaults.js.map +1 -1
  57. package/dist/cjs/graphql/executeMutations.d.ts +3 -0
  58. package/dist/cjs/graphql/executeMutations.d.ts.map +1 -1
  59. package/dist/cjs/graphql/executeMutations.js +3 -0
  60. package/dist/cjs/graphql/executeMutations.js.map +1 -1
  61. package/dist/cjs/graphql/fetchAutoCompoundingEventsGql.d.ts +1 -0
  62. package/dist/cjs/graphql/fetchAutoCompoundingEventsGql.d.ts.map +1 -1
  63. package/dist/cjs/graphql/fetchAutoCompoundingEventsGql.js +1 -0
  64. package/dist/cjs/graphql/fetchAutoCompoundingEventsGql.js.map +1 -1
  65. package/dist/cjs/graphql/fetchData.d.ts +8 -0
  66. package/dist/cjs/graphql/fetchData.d.ts.map +1 -1
  67. package/dist/cjs/graphql/fetchData.js +8 -0
  68. package/dist/cjs/graphql/fetchData.js.map +1 -1
  69. package/dist/cjs/graphql/fetchNftHolders.d.ts +1 -0
  70. package/dist/cjs/graphql/fetchNftHolders.d.ts.map +1 -1
  71. package/dist/cjs/graphql/fetchNftHolders.js +1 -0
  72. package/dist/cjs/graphql/fetchNftHolders.js.map +1 -1
  73. package/dist/cjs/graphql/fetchReceipts.d.ts +1 -0
  74. package/dist/cjs/graphql/fetchReceipts.d.ts.map +1 -1
  75. package/dist/cjs/graphql/fetchReceipts.js +1 -0
  76. package/dist/cjs/graphql/fetchReceipts.js.map +1 -1
  77. package/dist/cjs/graphql/getMultiReceipts.d.ts +1 -0
  78. package/dist/cjs/graphql/getMultiReceipts.d.ts.map +1 -1
  79. package/dist/cjs/graphql/getMultiReceipts.js +1 -0
  80. package/dist/cjs/graphql/getMultiReceipts.js.map +1 -1
  81. package/dist/cjs/graphql/parseData.d.ts +1 -0
  82. package/dist/cjs/graphql/parseData.d.ts.map +1 -1
  83. package/dist/cjs/graphql/parseData.js +1 -0
  84. package/dist/cjs/graphql/parseData.js.map +1 -1
  85. package/dist/cjs/graphql/parseLockedTableId.d.ts +1 -0
  86. package/dist/cjs/graphql/parseLockedTableId.d.ts.map +1 -1
  87. package/dist/cjs/graphql/parseLockedTableId.js +1 -0
  88. package/dist/cjs/graphql/parseLockedTableId.js.map +1 -1
  89. package/dist/cjs/graphql/queries/getMultiReceipts.d.ts +1 -0
  90. package/dist/cjs/graphql/queries/getMultiReceipts.d.ts.map +1 -1
  91. package/dist/cjs/graphql/queries/getMultiReceipts.js +1 -0
  92. package/dist/cjs/graphql/queries/getMultiReceipts.js.map +1 -1
  93. package/dist/cjs/index.d.ts +3 -2
  94. package/dist/cjs/index.d.ts.map +1 -1
  95. package/dist/cjs/index.js +10 -6
  96. package/dist/cjs/index.js.map +1 -1
  97. package/dist/cjs/sui-sdk/client.d.ts +5 -0
  98. package/dist/cjs/sui-sdk/client.d.ts.map +1 -1
  99. package/dist/cjs/sui-sdk/client.js +5 -0
  100. package/dist/cjs/sui-sdk/client.js.map +1 -1
  101. package/dist/cjs/sui-sdk/events/fetchAfterTransactionEvents.d.ts +1 -0
  102. package/dist/cjs/sui-sdk/events/fetchAfterTransactionEvents.d.ts.map +1 -1
  103. package/dist/cjs/sui-sdk/events/fetchAfterTransactionEvents.js +1 -0
  104. package/dist/cjs/sui-sdk/events/fetchAfterTransactionEvents.js.map +1 -1
  105. package/dist/cjs/sui-sdk/events/fetchAirdropClaimEvent.d.ts +1 -0
  106. package/dist/cjs/sui-sdk/events/fetchAirdropClaimEvent.d.ts.map +1 -1
  107. package/dist/cjs/sui-sdk/events/fetchAirdropClaimEvent.js +1 -0
  108. package/dist/cjs/sui-sdk/events/fetchAirdropClaimEvent.js.map +1 -1
  109. package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.d.ts +3 -0
  110. package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.d.ts.map +1 -1
  111. package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.js +3 -0
  112. package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.js.map +1 -1
  113. package/dist/cjs/sui-sdk/events/fetchCheckRatioEvents.d.ts +1 -0
  114. package/dist/cjs/sui-sdk/events/fetchCheckRatioEvents.d.ts.map +1 -1
  115. package/dist/cjs/sui-sdk/events/fetchCheckRatioEvents.js +1 -0
  116. package/dist/cjs/sui-sdk/events/fetchCheckRatioEvents.js.map +1 -1
  117. package/dist/cjs/sui-sdk/events/fetchEvents.d.ts +1 -0
  118. package/dist/cjs/sui-sdk/events/fetchEvents.d.ts.map +1 -1
  119. package/dist/cjs/sui-sdk/events/fetchEvents.js +1 -0
  120. package/dist/cjs/sui-sdk/events/fetchEvents.js.map +1 -1
  121. package/dist/cjs/sui-sdk/events/fetchLiquidityChangeEvents.d.ts +1 -0
  122. package/dist/cjs/sui-sdk/events/fetchLiquidityChangeEvents.d.ts.map +1 -1
  123. package/dist/cjs/sui-sdk/events/fetchLiquidityChangeEvents.js +1 -0
  124. package/dist/cjs/sui-sdk/events/fetchLiquidityChangeEvents.js.map +1 -1
  125. package/dist/cjs/sui-sdk/events/fetchMultiCategoryEvents.d.ts +1 -0
  126. package/dist/cjs/sui-sdk/events/fetchMultiCategoryEvents.d.ts.map +1 -1
  127. package/dist/cjs/sui-sdk/events/fetchMultiCategoryEvents.js +1 -0
  128. package/dist/cjs/sui-sdk/events/fetchMultiCategoryEvents.js.map +1 -1
  129. package/dist/cjs/sui-sdk/events/fetchRebalanceEvents.d.ts +2 -0
  130. package/dist/cjs/sui-sdk/events/fetchRebalanceEvents.d.ts.map +1 -1
  131. package/dist/cjs/sui-sdk/events/fetchRebalanceEvents.js +2 -0
  132. package/dist/cjs/sui-sdk/events/fetchRebalanceEvents.js.map +1 -1
  133. package/dist/cjs/sui-sdk/events/fetchWithdrawV2Events.d.ts +1 -0
  134. package/dist/cjs/sui-sdk/events/fetchWithdrawV2Events.d.ts.map +1 -1
  135. package/dist/cjs/sui-sdk/events/fetchWithdrawV2Events.js +1 -0
  136. package/dist/cjs/sui-sdk/events/fetchWithdrawV2Events.js.map +1 -1
  137. package/dist/cjs/sui-sdk/events/parseData.d.ts +2 -0
  138. package/dist/cjs/sui-sdk/events/parseData.d.ts.map +1 -1
  139. package/dist/cjs/sui-sdk/events/parseData.js +2 -0
  140. package/dist/cjs/sui-sdk/events/parseData.js.map +1 -1
  141. package/dist/cjs/sui-sdk/functions/getPositionRange.d.ts +2 -0
  142. package/dist/cjs/sui-sdk/functions/getPositionRange.d.ts.map +1 -1
  143. package/dist/cjs/sui-sdk/functions/getPositionRange.js +2 -0
  144. package/dist/cjs/sui-sdk/functions/getPositionRange.js.map +1 -1
  145. package/dist/cjs/sui-sdk/functions/getReceipts.d.ts +16 -0
  146. package/dist/cjs/sui-sdk/functions/getReceipts.d.ts.map +1 -1
  147. package/dist/cjs/sui-sdk/functions/getReceipts.js +15 -0
  148. package/dist/cjs/sui-sdk/functions/getReceipts.js.map +1 -1
  149. package/dist/cjs/sui-sdk/transactions/fetchTransactions.d.ts +1 -0
  150. package/dist/cjs/sui-sdk/transactions/fetchTransactions.d.ts.map +1 -1
  151. package/dist/cjs/sui-sdk/transactions/fetchTransactions.js +1 -0
  152. package/dist/cjs/sui-sdk/transactions/fetchTransactions.js.map +1 -1
  153. package/dist/cjs/transactions/alpha.d.ts +2 -0
  154. package/dist/cjs/transactions/alpha.d.ts.map +1 -1
  155. package/dist/cjs/transactions/alpha.js +2 -0
  156. package/dist/cjs/transactions/alpha.js.map +1 -1
  157. package/dist/cjs/transactions/alphaVault.d.ts +7 -0
  158. package/dist/cjs/transactions/alphaVault.d.ts.map +1 -1
  159. package/dist/cjs/transactions/alphaVault.js +6 -0
  160. package/dist/cjs/transactions/alphaVault.js.map +1 -1
  161. package/dist/cjs/transactions/alphalend.d.ts +7 -0
  162. package/dist/cjs/transactions/alphalend.d.ts.map +1 -1
  163. package/dist/cjs/transactions/alphalend.js +7 -0
  164. package/dist/cjs/transactions/alphalend.js.map +1 -1
  165. package/dist/cjs/transactions/blueRewards.d.ts +4 -0
  166. package/dist/cjs/transactions/blueRewards.d.ts.map +1 -1
  167. package/dist/cjs/transactions/blueRewards.js +3 -0
  168. package/dist/cjs/transactions/blueRewards.js.map +1 -1
  169. package/dist/cjs/transactions/bluefin.d.ts +20 -0
  170. package/dist/cjs/transactions/bluefin.d.ts.map +1 -1
  171. package/dist/cjs/transactions/bluefin.js +169 -27
  172. package/dist/cjs/transactions/bluefin.js.map +1 -1
  173. package/dist/cjs/transactions/cetus.d.ts +6 -0
  174. package/dist/cjs/transactions/cetus.d.ts.map +1 -1
  175. package/dist/cjs/transactions/cetus.js +6 -0
  176. package/dist/cjs/transactions/cetus.js.map +1 -1
  177. package/dist/cjs/transactions/cetusSwap.d.ts +15 -0
  178. package/dist/cjs/transactions/cetusSwap.d.ts.map +1 -0
  179. package/dist/cjs/transactions/cetusSwap.js +74 -0
  180. package/dist/cjs/transactions/cetusSwap.js.map +1 -0
  181. package/dist/cjs/transactions/collect_rewards.d.ts +4 -0
  182. package/dist/cjs/transactions/collect_rewards.d.ts.map +1 -1
  183. package/dist/cjs/transactions/collect_rewards.js +239 -69
  184. package/dist/cjs/transactions/collect_rewards.js.map +1 -1
  185. package/dist/cjs/transactions/deposit.d.ts +6 -0
  186. package/dist/cjs/transactions/deposit.d.ts.map +1 -1
  187. package/dist/cjs/transactions/deposit.js +16 -5
  188. package/dist/cjs/transactions/deposit.js.map +1 -1
  189. package/dist/cjs/transactions/get_navi_rewards.d.ts +1 -0
  190. package/dist/cjs/transactions/get_navi_rewards.d.ts.map +1 -1
  191. package/dist/cjs/transactions/get_navi_rewards.js +1 -0
  192. package/dist/cjs/transactions/get_navi_rewards.js.map +1 -1
  193. package/dist/cjs/transactions/navi-looping.d.ts +13 -0
  194. package/dist/cjs/transactions/navi-looping.d.ts.map +1 -1
  195. package/dist/cjs/transactions/navi-looping.js +13 -0
  196. package/dist/cjs/transactions/navi-looping.js.map +1 -1
  197. package/dist/cjs/transactions/naviOracle.d.ts +1 -0
  198. package/dist/cjs/transactions/naviOracle.d.ts.map +1 -1
  199. package/dist/cjs/transactions/naviOracle.js +1 -0
  200. package/dist/cjs/transactions/naviOracle.js.map +1 -1
  201. package/dist/cjs/transactions/newZapDeposit.d.ts +4 -0
  202. package/dist/cjs/transactions/newZapDeposit.d.ts.map +1 -1
  203. package/dist/cjs/transactions/newZapDeposit.js +192 -345
  204. package/dist/cjs/transactions/newZapDeposit.js.map +1 -1
  205. package/dist/cjs/transactions/slush.d.ts +4 -0
  206. package/dist/cjs/transactions/slush.d.ts.map +1 -1
  207. package/dist/cjs/transactions/slush.js +125 -49
  208. package/dist/cjs/transactions/slush.js.map +1 -1
  209. package/dist/cjs/transactions/withdraw.d.ts +3 -0
  210. package/dist/cjs/transactions/withdraw.d.ts.map +1 -1
  211. package/dist/cjs/transactions/withdraw.js +13 -5
  212. package/dist/cjs/transactions/withdraw.js.map +1 -1
  213. package/dist/cjs/transactions/zapDeposit.d.ts.map +1 -1
  214. package/dist/cjs/transactions/zapDeposit.js +32 -31
  215. package/dist/cjs/transactions/zapDeposit.js.map +1 -1
  216. package/dist/cjs/utils/clmm/tokenAmountFromLiquidity.d.ts +5 -0
  217. package/dist/cjs/utils/clmm/tokenAmountFromLiquidity.d.ts.map +1 -1
  218. package/dist/cjs/utils/clmm/tokenAmountFromLiquidity.js +5 -0
  219. package/dist/cjs/utils/clmm/tokenAmountFromLiquidity.js.map +1 -1
  220. package/dist/cjs/utils/prices.d.ts +4 -0
  221. package/dist/cjs/utils/prices.d.ts.map +1 -1
  222. package/dist/cjs/utils/prices.js +4 -0
  223. package/dist/cjs/utils/prices.js.map +1 -1
  224. package/dist/cjs/utils/simpleCache.d.ts +2 -0
  225. package/dist/cjs/utils/simpleCache.d.ts.map +1 -1
  226. package/dist/cjs/utils/simpleCache.js +2 -0
  227. package/dist/cjs/utils/simpleCache.js.map +1 -1
  228. package/dist/cjs/utils/userHoldings.d.ts +4 -0
  229. package/dist/cjs/utils/userHoldings.d.ts.map +1 -1
  230. package/dist/cjs/utils/userHoldings.js +4 -0
  231. package/dist/cjs/utils/userHoldings.js.map +1 -1
  232. package/dist/cjs/vaultFunctions.d.ts +3 -0
  233. package/dist/cjs/vaultFunctions.d.ts.map +1 -1
  234. package/dist/cjs/vaultFunctions.js +3 -0
  235. package/dist/cjs/vaultFunctions.js.map +1 -1
  236. package/dist/esm/adminFunctions.d.ts +12 -0
  237. package/dist/esm/adminFunctions.d.ts.map +1 -1
  238. package/dist/esm/adminFunctions.js +12 -0
  239. package/dist/esm/adminFunctions.js.map +1 -1
  240. package/dist/esm/common/coins.d.ts +1 -0
  241. package/dist/esm/common/coins.d.ts.map +1 -1
  242. package/dist/esm/common/coins.js +1 -0
  243. package/dist/esm/common/coins.js.map +1 -1
  244. package/dist/esm/common/constants.d.ts +34 -0
  245. package/dist/esm/common/constants.d.ts.map +1 -1
  246. package/dist/esm/common/constants.js +36 -12
  247. package/dist/esm/common/constants.js.map +1 -1
  248. package/dist/esm/common/maps.d.ts +2 -0
  249. package/dist/esm/common/maps.d.ts.map +1 -1
  250. package/dist/esm/common/maps.js +42 -0
  251. package/dist/esm/common/maps.js.map +1 -1
  252. package/dist/esm/common/types.d.ts +2 -2
  253. package/dist/esm/common/types.d.ts.map +1 -1
  254. package/dist/esm/common/types.js.map +1 -1
  255. package/dist/esm/getAirdropShare.d.ts +1 -0
  256. package/dist/esm/getAirdropShare.d.ts.map +1 -1
  257. package/dist/esm/getAirdropShare.js +1 -0
  258. package/dist/esm/getAirdropShare.js.map +1 -1
  259. package/dist/esm/getAllVaults.d.ts +3 -0
  260. package/dist/esm/getAllVaults.d.ts.map +1 -1
  261. package/dist/esm/getAllVaults.js +3 -0
  262. package/dist/esm/getAllVaults.js.map +1 -1
  263. package/dist/esm/getAlphaUnlocks.d.ts +1 -0
  264. package/dist/esm/getAlphaUnlocks.d.ts.map +1 -1
  265. package/dist/esm/getAlphaUnlocks.js +1 -0
  266. package/dist/esm/getAlphaUnlocks.js.map +1 -1
  267. package/dist/esm/getAprs.d.ts +6 -0
  268. package/dist/esm/getAprs.d.ts.map +1 -1
  269. package/dist/esm/getAprs.js +6 -0
  270. package/dist/esm/getAprs.js.map +1 -1
  271. package/dist/esm/getLastAutoCompoundTime.d.ts +1 -0
  272. package/dist/esm/getLastAutoCompoundTime.d.ts.map +1 -1
  273. package/dist/esm/getLastAutoCompoundTime.js +1 -0
  274. package/dist/esm/getLastAutoCompoundTime.js.map +1 -1
  275. package/dist/esm/getRebalanceHistory.d.ts +2 -0
  276. package/dist/esm/getRebalanceHistory.d.ts.map +1 -1
  277. package/dist/esm/getRebalanceHistory.js +2 -0
  278. package/dist/esm/getRebalanceHistory.js.map +1 -1
  279. package/dist/esm/getTvls.d.ts +4 -0
  280. package/dist/esm/getTvls.d.ts.map +1 -1
  281. package/dist/esm/getTvls.js +4 -0
  282. package/dist/esm/getTvls.js.map +1 -1
  283. package/dist/esm/getVaultBalances.d.ts +5 -0
  284. package/dist/esm/getVaultBalances.d.ts.map +1 -1
  285. package/dist/esm/getVaultBalances.js +5 -0
  286. package/dist/esm/getVaultBalances.js.map +1 -1
  287. package/dist/esm/getVaults.d.ts +3 -0
  288. package/dist/esm/getVaults.d.ts.map +1 -1
  289. package/dist/esm/getVaults.js +3 -0
  290. package/dist/esm/getVaults.js.map +1 -1
  291. package/dist/esm/graphql/executeMutations.d.ts +3 -0
  292. package/dist/esm/graphql/executeMutations.d.ts.map +1 -1
  293. package/dist/esm/graphql/executeMutations.js +3 -0
  294. package/dist/esm/graphql/executeMutations.js.map +1 -1
  295. package/dist/esm/graphql/fetchAutoCompoundingEventsGql.d.ts +1 -0
  296. package/dist/esm/graphql/fetchAutoCompoundingEventsGql.d.ts.map +1 -1
  297. package/dist/esm/graphql/fetchAutoCompoundingEventsGql.js +1 -0
  298. package/dist/esm/graphql/fetchAutoCompoundingEventsGql.js.map +1 -1
  299. package/dist/esm/graphql/fetchData.d.ts +8 -0
  300. package/dist/esm/graphql/fetchData.d.ts.map +1 -1
  301. package/dist/esm/graphql/fetchData.js +8 -0
  302. package/dist/esm/graphql/fetchData.js.map +1 -1
  303. package/dist/esm/graphql/fetchNftHolders.d.ts +1 -0
  304. package/dist/esm/graphql/fetchNftHolders.d.ts.map +1 -1
  305. package/dist/esm/graphql/fetchNftHolders.js +1 -0
  306. package/dist/esm/graphql/fetchNftHolders.js.map +1 -1
  307. package/dist/esm/graphql/fetchReceipts.d.ts +1 -0
  308. package/dist/esm/graphql/fetchReceipts.d.ts.map +1 -1
  309. package/dist/esm/graphql/fetchReceipts.js +1 -0
  310. package/dist/esm/graphql/fetchReceipts.js.map +1 -1
  311. package/dist/esm/graphql/getMultiReceipts.d.ts +1 -0
  312. package/dist/esm/graphql/getMultiReceipts.d.ts.map +1 -1
  313. package/dist/esm/graphql/getMultiReceipts.js +1 -0
  314. package/dist/esm/graphql/getMultiReceipts.js.map +1 -1
  315. package/dist/esm/graphql/parseData.d.ts +1 -0
  316. package/dist/esm/graphql/parseData.d.ts.map +1 -1
  317. package/dist/esm/graphql/parseData.js +1 -0
  318. package/dist/esm/graphql/parseData.js.map +1 -1
  319. package/dist/esm/graphql/parseLockedTableId.d.ts +1 -0
  320. package/dist/esm/graphql/parseLockedTableId.d.ts.map +1 -1
  321. package/dist/esm/graphql/parseLockedTableId.js +1 -0
  322. package/dist/esm/graphql/parseLockedTableId.js.map +1 -1
  323. package/dist/esm/graphql/queries/getMultiReceipts.d.ts +1 -0
  324. package/dist/esm/graphql/queries/getMultiReceipts.d.ts.map +1 -1
  325. package/dist/esm/graphql/queries/getMultiReceipts.js +1 -0
  326. package/dist/esm/graphql/queries/getMultiReceipts.js.map +1 -1
  327. package/dist/esm/index.d.ts +3 -2
  328. package/dist/esm/index.d.ts.map +1 -1
  329. package/dist/esm/index.js +4 -2
  330. package/dist/esm/index.js.map +1 -1
  331. package/dist/esm/sui-sdk/client.d.ts +5 -0
  332. package/dist/esm/sui-sdk/client.d.ts.map +1 -1
  333. package/dist/esm/sui-sdk/client.js +5 -0
  334. package/dist/esm/sui-sdk/client.js.map +1 -1
  335. package/dist/esm/sui-sdk/events/fetchAfterTransactionEvents.d.ts +1 -0
  336. package/dist/esm/sui-sdk/events/fetchAfterTransactionEvents.d.ts.map +1 -1
  337. package/dist/esm/sui-sdk/events/fetchAfterTransactionEvents.js +1 -0
  338. package/dist/esm/sui-sdk/events/fetchAfterTransactionEvents.js.map +1 -1
  339. package/dist/esm/sui-sdk/events/fetchAirdropClaimEvent.d.ts +1 -0
  340. package/dist/esm/sui-sdk/events/fetchAirdropClaimEvent.d.ts.map +1 -1
  341. package/dist/esm/sui-sdk/events/fetchAirdropClaimEvent.js +1 -0
  342. package/dist/esm/sui-sdk/events/fetchAirdropClaimEvent.js.map +1 -1
  343. package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.d.ts +3 -0
  344. package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.d.ts.map +1 -1
  345. package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.js +3 -0
  346. package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.js.map +1 -1
  347. package/dist/esm/sui-sdk/events/fetchCheckRatioEvents.d.ts +1 -0
  348. package/dist/esm/sui-sdk/events/fetchCheckRatioEvents.d.ts.map +1 -1
  349. package/dist/esm/sui-sdk/events/fetchCheckRatioEvents.js +1 -0
  350. package/dist/esm/sui-sdk/events/fetchCheckRatioEvents.js.map +1 -1
  351. package/dist/esm/sui-sdk/events/fetchEvents.d.ts +1 -0
  352. package/dist/esm/sui-sdk/events/fetchEvents.d.ts.map +1 -1
  353. package/dist/esm/sui-sdk/events/fetchEvents.js +1 -0
  354. package/dist/esm/sui-sdk/events/fetchEvents.js.map +1 -1
  355. package/dist/esm/sui-sdk/events/fetchLiquidityChangeEvents.d.ts +1 -0
  356. package/dist/esm/sui-sdk/events/fetchLiquidityChangeEvents.d.ts.map +1 -1
  357. package/dist/esm/sui-sdk/events/fetchLiquidityChangeEvents.js +1 -0
  358. package/dist/esm/sui-sdk/events/fetchLiquidityChangeEvents.js.map +1 -1
  359. package/dist/esm/sui-sdk/events/fetchMultiCategoryEvents.d.ts +1 -0
  360. package/dist/esm/sui-sdk/events/fetchMultiCategoryEvents.d.ts.map +1 -1
  361. package/dist/esm/sui-sdk/events/fetchMultiCategoryEvents.js +1 -0
  362. package/dist/esm/sui-sdk/events/fetchMultiCategoryEvents.js.map +1 -1
  363. package/dist/esm/sui-sdk/events/fetchRebalanceEvents.d.ts +2 -0
  364. package/dist/esm/sui-sdk/events/fetchRebalanceEvents.d.ts.map +1 -1
  365. package/dist/esm/sui-sdk/events/fetchRebalanceEvents.js +2 -0
  366. package/dist/esm/sui-sdk/events/fetchRebalanceEvents.js.map +1 -1
  367. package/dist/esm/sui-sdk/events/fetchWithdrawV2Events.d.ts +1 -0
  368. package/dist/esm/sui-sdk/events/fetchWithdrawV2Events.d.ts.map +1 -1
  369. package/dist/esm/sui-sdk/events/fetchWithdrawV2Events.js +1 -0
  370. package/dist/esm/sui-sdk/events/fetchWithdrawV2Events.js.map +1 -1
  371. package/dist/esm/sui-sdk/events/parseData.d.ts +2 -0
  372. package/dist/esm/sui-sdk/events/parseData.d.ts.map +1 -1
  373. package/dist/esm/sui-sdk/events/parseData.js +2 -0
  374. package/dist/esm/sui-sdk/events/parseData.js.map +1 -1
  375. package/dist/esm/sui-sdk/functions/getPositionRange.d.ts +2 -0
  376. package/dist/esm/sui-sdk/functions/getPositionRange.d.ts.map +1 -1
  377. package/dist/esm/sui-sdk/functions/getPositionRange.js +2 -0
  378. package/dist/esm/sui-sdk/functions/getPositionRange.js.map +1 -1
  379. package/dist/esm/sui-sdk/functions/getReceipts.d.ts +16 -0
  380. package/dist/esm/sui-sdk/functions/getReceipts.d.ts.map +1 -1
  381. package/dist/esm/sui-sdk/functions/getReceipts.js +15 -0
  382. package/dist/esm/sui-sdk/functions/getReceipts.js.map +1 -1
  383. package/dist/esm/sui-sdk/transactions/fetchTransactions.d.ts +1 -0
  384. package/dist/esm/sui-sdk/transactions/fetchTransactions.d.ts.map +1 -1
  385. package/dist/esm/sui-sdk/transactions/fetchTransactions.js +1 -0
  386. package/dist/esm/sui-sdk/transactions/fetchTransactions.js.map +1 -1
  387. package/dist/esm/transactions/alpha.d.ts +2 -0
  388. package/dist/esm/transactions/alpha.d.ts.map +1 -1
  389. package/dist/esm/transactions/alpha.js +2 -0
  390. package/dist/esm/transactions/alpha.js.map +1 -1
  391. package/dist/esm/transactions/alphaVault.d.ts +7 -0
  392. package/dist/esm/transactions/alphaVault.d.ts.map +1 -1
  393. package/dist/esm/transactions/alphaVault.js +6 -0
  394. package/dist/esm/transactions/alphaVault.js.map +1 -1
  395. package/dist/esm/transactions/alphalend.d.ts +7 -0
  396. package/dist/esm/transactions/alphalend.d.ts.map +1 -1
  397. package/dist/esm/transactions/alphalend.js +7 -0
  398. package/dist/esm/transactions/alphalend.js.map +1 -1
  399. package/dist/esm/transactions/blueRewards.d.ts +4 -0
  400. package/dist/esm/transactions/blueRewards.d.ts.map +1 -1
  401. package/dist/esm/transactions/blueRewards.js +3 -0
  402. package/dist/esm/transactions/blueRewards.js.map +1 -1
  403. package/dist/esm/transactions/bluefin.d.ts +20 -0
  404. package/dist/esm/transactions/bluefin.d.ts.map +1 -1
  405. package/dist/esm/transactions/bluefin.js +166 -26
  406. package/dist/esm/transactions/bluefin.js.map +1 -1
  407. package/dist/esm/transactions/cetus.d.ts +6 -0
  408. package/dist/esm/transactions/cetus.d.ts.map +1 -1
  409. package/dist/esm/transactions/cetus.js +6 -0
  410. package/dist/esm/transactions/cetus.js.map +1 -1
  411. package/dist/esm/transactions/cetusSwap.d.ts +15 -0
  412. package/dist/esm/transactions/cetusSwap.d.ts.map +1 -0
  413. package/dist/esm/transactions/cetusSwap.js +72 -0
  414. package/dist/esm/transactions/cetusSwap.js.map +1 -0
  415. package/dist/esm/transactions/collect_rewards.d.ts +4 -0
  416. package/dist/esm/transactions/collect_rewards.d.ts.map +1 -1
  417. package/dist/esm/transactions/collect_rewards.js +239 -69
  418. package/dist/esm/transactions/collect_rewards.js.map +1 -1
  419. package/dist/esm/transactions/deposit.d.ts +6 -0
  420. package/dist/esm/transactions/deposit.d.ts.map +1 -1
  421. package/dist/esm/transactions/deposit.js +17 -6
  422. package/dist/esm/transactions/deposit.js.map +1 -1
  423. package/dist/esm/transactions/get_navi_rewards.d.ts +1 -0
  424. package/dist/esm/transactions/get_navi_rewards.d.ts.map +1 -1
  425. package/dist/esm/transactions/get_navi_rewards.js +1 -0
  426. package/dist/esm/transactions/get_navi_rewards.js.map +1 -1
  427. package/dist/esm/transactions/navi-looping.d.ts +13 -0
  428. package/dist/esm/transactions/navi-looping.d.ts.map +1 -1
  429. package/dist/esm/transactions/navi-looping.js +13 -0
  430. package/dist/esm/transactions/navi-looping.js.map +1 -1
  431. package/dist/esm/transactions/naviOracle.d.ts +1 -0
  432. package/dist/esm/transactions/naviOracle.d.ts.map +1 -1
  433. package/dist/esm/transactions/naviOracle.js +1 -0
  434. package/dist/esm/transactions/naviOracle.js.map +1 -1
  435. package/dist/esm/transactions/newZapDeposit.d.ts +4 -0
  436. package/dist/esm/transactions/newZapDeposit.d.ts.map +1 -1
  437. package/dist/esm/transactions/newZapDeposit.js +192 -346
  438. package/dist/esm/transactions/newZapDeposit.js.map +1 -1
  439. package/dist/esm/transactions/slush.d.ts +4 -0
  440. package/dist/esm/transactions/slush.d.ts.map +1 -1
  441. package/dist/esm/transactions/slush.js +126 -50
  442. package/dist/esm/transactions/slush.js.map +1 -1
  443. package/dist/esm/transactions/withdraw.d.ts +3 -0
  444. package/dist/esm/transactions/withdraw.d.ts.map +1 -1
  445. package/dist/esm/transactions/withdraw.js +14 -6
  446. package/dist/esm/transactions/withdraw.js.map +1 -1
  447. package/dist/esm/transactions/zapDeposit.d.ts.map +1 -1
  448. package/dist/esm/transactions/zapDeposit.js +32 -31
  449. package/dist/esm/transactions/zapDeposit.js.map +1 -1
  450. package/dist/esm/utils/clmm/tokenAmountFromLiquidity.d.ts +5 -0
  451. package/dist/esm/utils/clmm/tokenAmountFromLiquidity.d.ts.map +1 -1
  452. package/dist/esm/utils/clmm/tokenAmountFromLiquidity.js +5 -0
  453. package/dist/esm/utils/clmm/tokenAmountFromLiquidity.js.map +1 -1
  454. package/dist/esm/utils/prices.d.ts +4 -0
  455. package/dist/esm/utils/prices.d.ts.map +1 -1
  456. package/dist/esm/utils/prices.js +4 -0
  457. package/dist/esm/utils/prices.js.map +1 -1
  458. package/dist/esm/utils/simpleCache.d.ts +2 -0
  459. package/dist/esm/utils/simpleCache.d.ts.map +1 -1
  460. package/dist/esm/utils/simpleCache.js +2 -0
  461. package/dist/esm/utils/simpleCache.js.map +1 -1
  462. package/dist/esm/utils/userHoldings.d.ts +4 -0
  463. package/dist/esm/utils/userHoldings.d.ts.map +1 -1
  464. package/dist/esm/utils/userHoldings.js +4 -0
  465. package/dist/esm/utils/userHoldings.js.map +1 -1
  466. package/dist/esm/vaultFunctions.d.ts +3 -0
  467. package/dist/esm/vaultFunctions.d.ts.map +1 -1
  468. package/dist/esm/vaultFunctions.js +3 -0
  469. package/dist/esm/vaultFunctions.js.map +1 -1
  470. package/docs/assets/navigation.js +1 -1
  471. package/docs/assets/search.js +1 -1
  472. package/docs/functions/addAirdropCoin.html +1 -1
  473. package/docs/functions/alphaLpBreakdown.html +1 -1
  474. package/docs/functions/cetusLpBreakdown.html +1 -1
  475. package/docs/functions/claimAirdropTx.html +1 -1
  476. package/docs/functions/claimRewardTxb.html +1 -1
  477. package/docs/functions/claimRewardsTxb.html +1 -1
  478. package/docs/functions/claimWithdrawAlphaTx.html +1 -1
  479. package/docs/functions/coinAmountToXTokensDoubleAsset.html +1 -1
  480. package/docs/functions/coinAmountToXTokensSingleAsset.html +1 -1
  481. package/docs/functions/coinsInPool.html +1 -1
  482. package/docs/functions/collectAndSwapRewardsLyf.html +1 -1
  483. package/docs/functions/collectAndSwapRewardsSingleLoop.html +1 -1
  484. package/docs/functions/collectRewardTxb.html +1 -1
  485. package/docs/functions/collectRewards.html +1 -1
  486. package/docs/functions/collectRewardsAndSwapSlush.html +1 -1
  487. package/docs/functions/collectUnsuppliedBalance.html +1 -1
  488. package/docs/functions/deposit.html +1 -1
  489. package/docs/functions/depositAlphaTx.html +1 -1
  490. package/docs/functions/depositDoubleAssetTxb.html +1 -1
  491. package/docs/functions/depositSingleAssetTxb.html +1 -1
  492. package/docs/functions/fetchAfterTransactionEvents.html +1 -1
  493. package/docs/functions/fetchAirdropClaimEvents.html +1 -1
  494. package/docs/functions/fetchAutoCompoundingEvents.html +1 -1
  495. package/docs/functions/fetchAutoCompoundingEventsGql.html +1 -1
  496. package/docs/functions/fetchCetusPools.html +1 -1
  497. package/docs/functions/fetchChainIdentifier.html +1 -1
  498. package/docs/functions/fetchCheckRatioEvents.html +1 -1
  499. package/docs/functions/fetchEvents.html +1 -1
  500. package/docs/functions/fetchLiquidityChangeEvents.html +1 -1
  501. package/docs/functions/fetchMultiCategoryEvents.html +1 -1
  502. package/docs/functions/fetchMultiReceipts.html +1 -1
  503. package/docs/functions/fetchNftHolders.html +1 -1
  504. package/docs/functions/fetchPools.html +1 -1
  505. package/docs/functions/fetchPortfolioData.html +1 -1
  506. package/docs/functions/fetchProtocolData.html +1 -1
  507. package/docs/functions/fetchRequiredPrices.html +1 -1
  508. package/docs/functions/fetchTVL.html +1 -1
  509. package/docs/functions/fetchTransactions.html +1 -1
  510. package/docs/functions/fetchUserVaultBalances.html +1 -1
  511. package/docs/functions/fetchUserVaults.html +1 -1
  512. package/docs/functions/fetchUserWalletData.html +1 -1
  513. package/docs/functions/fetchVoloExchangeRate.html +1 -1
  514. package/docs/functions/fetchWithdrawV2Events.html +1 -1
  515. package/docs/functions/getAirdropShare.html +1 -1
  516. package/docs/functions/getAllDoubleAssetVaults.html +1 -1
  517. package/docs/functions/getAllSingleAssetVaults.html +1 -1
  518. package/docs/functions/getAllVaultBalances.html +1 -1
  519. package/docs/functions/getAllVaults.html +1 -1
  520. package/docs/functions/getAlphaUnlocks.html +1 -1
  521. package/docs/functions/getAlphaVaultBalance.html +1 -1
  522. package/docs/functions/getAmounts.html +1 -1
  523. package/docs/functions/getApr.html +1 -1
  524. package/docs/functions/getAprs.html +1 -1
  525. package/docs/functions/getApy.html +1 -1
  526. package/docs/functions/getApys.html +1 -1
  527. package/docs/functions/getCetusInvestorTicksMap.html +1 -1
  528. package/docs/functions/getCetusPool.html +1 -1
  529. package/docs/functions/getCetusSqrtPriceMap.html +1 -1
  530. package/docs/functions/getCoinAmountsFromLiquidity.html +1 -1
  531. package/docs/functions/getConf.html +1 -1
  532. package/docs/functions/getCurrentTick.html +1 -1
  533. package/docs/functions/getDistributor.html +1 -1
  534. package/docs/functions/getDoubleAssetVaultBalance.html +1 -1
  535. package/docs/functions/getDoubleAssetVaults.html +1 -1
  536. package/docs/functions/getInvestor.html +1 -1
  537. package/docs/functions/getInvestorPoolMap.html +1 -1
  538. package/docs/functions/getLastAutoCompoundTime.html +1 -1
  539. package/docs/functions/getLatestPrices.html +1 -1
  540. package/docs/functions/getLiquidity.html +1 -1
  541. package/docs/functions/getMultiCetusPool.html +1 -1
  542. package/docs/functions/getMultiInvestor.html +1 -1
  543. package/docs/functions/getMultiLatestPrices.html +1 -1
  544. package/docs/functions/getMultiParentPool.html +1 -1
  545. package/docs/functions/getMultiPool.html +1 -1
  546. package/docs/functions/getMultiReceipts.html +1 -1
  547. package/docs/functions/getParentPool.html +1 -1
  548. package/docs/functions/getPool.html +1 -1
  549. package/docs/functions/getPoolExchangeRate.html +1 -1
  550. package/docs/functions/getPoolExchangeRateMap.html +1 -1
  551. package/docs/functions/getPoolsWeightDistribution.html +1 -1
  552. package/docs/functions/getPositionRange.html +1 -1
  553. package/docs/functions/getPositionRanges.html +1 -1
  554. package/docs/functions/getPositionTicks.html +1 -1
  555. package/docs/functions/getPriceToTick.html +1 -1
  556. package/docs/functions/getRebalanceCap.html +1 -1
  557. package/docs/functions/getRebalanceHistories.html +1 -1
  558. package/docs/functions/getRebalanceHistory.html +1 -1
  559. package/docs/functions/getReceipts.html +1 -1
  560. package/docs/functions/getSingleAssetVaultBalance.html +1 -1
  561. package/docs/functions/getSingleAssetVaults.html +1 -1
  562. package/docs/functions/getSlushUserTotalXtokens.html +1 -1
  563. package/docs/functions/getSuiClient.html +2 -2
  564. package/docs/functions/getSuiNodeUrl.html +2 -2
  565. package/docs/functions/getTVLs-1.html +1 -1
  566. package/docs/functions/getTickSpacing.html +1 -1
  567. package/docs/functions/getTickToPrice.html +1 -1
  568. package/docs/functions/getTvls.html +1 -1
  569. package/docs/functions/getVaultBalance.html +1 -1
  570. package/docs/functions/getVaults.html +1 -1
  571. package/docs/functions/getWithdrawRequestsAndUnsuppliedAmount.html +1 -1
  572. package/docs/functions/initiateWithdrawAlpha.html +1 -1
  573. package/docs/functions/lastAutocompoundTime.html +1 -1
  574. package/docs/functions/liquidityToTokens.html +1 -1
  575. package/docs/functions/migrateBoostedToLoop.html +1 -1
  576. package/docs/functions/multiLiquidityToTokens.html +1 -1
  577. package/docs/functions/multiTokensToUsd.html +1 -1
  578. package/docs/functions/multiXTokensToLiquidity.html +1 -1
  579. package/docs/functions/parseUserWalletData.html +1 -1
  580. package/docs/functions/pendingRewardAmount.html +1 -1
  581. package/docs/functions/processWithdrawRequestsManual.html +1 -1
  582. package/docs/functions/setCustomSuiClient.html +2 -2
  583. package/docs/functions/setSuiClient.html +2 -2
  584. package/docs/functions/setSuiNodeUrl.html +2 -2
  585. package/docs/functions/setWeights.html +1 -1
  586. package/docs/functions/slushDeposit.html +1 -1
  587. package/docs/functions/slushWithdraw.html +1 -1
  588. package/docs/functions/updateSingleTokenPrice.html +1 -0
  589. package/docs/functions/withdraw.html +1 -1
  590. package/docs/functions/withdrawAlphaTxb.html +1 -1
  591. package/docs/functions/withdrawTxb.html +1 -1
  592. package/docs/functions/zapDepositQuoteTxb.html +1 -1
  593. package/docs/functions/zapDepositTxb.html +1 -1
  594. package/docs/hierarchy.html +1 -1
  595. package/docs/index.html +8 -2
  596. package/docs/interfaces/Coin.html +6 -6
  597. package/docs/interfaces/CoinPair.html +2 -2
  598. package/docs/interfaces/CommonEventAttributes.html +2 -2
  599. package/docs/interfaces/NaviVoloData.html +2 -2
  600. package/docs/interfaces/PoolData.html +2 -2
  601. package/docs/interfaces/PoolWeightDistribution.html +2 -2
  602. package/docs/interfaces/RebalanceHistoryType.html +2 -2
  603. package/docs/modules.html +1 -1
  604. package/docs/types/AfterTransactionEventNode.html +1 -1
  605. package/docs/types/AirdropClaimEventNode.html +1 -1
  606. package/docs/types/Allocator.html +2 -2
  607. package/docs/types/AlphaFiDoubleAssetVault.html +2 -2
  608. package/docs/types/AlphaFiMultiVaultBalance.html +1 -1
  609. package/docs/types/AlphaFiSingleAssetVault.html +2 -2
  610. package/docs/types/AlphaFiVault.html +1 -1
  611. package/docs/types/AlphaFiVaultBalance.html +1 -1
  612. package/docs/types/AlphaLendInvestor.html +1 -1
  613. package/docs/types/AlphaPoolType.html +2 -2
  614. package/docs/types/AlphaReceipt.html +2 -2
  615. package/docs/types/AlphaReceiptFields.html +2 -2
  616. package/docs/types/AlphaVaultBalance.html +2 -2
  617. package/docs/types/AutoBalancePoolNames.html +1 -1
  618. package/docs/types/AutoCompoundingEventNode.html +1 -1
  619. package/docs/types/Bag.html +2 -2
  620. package/docs/types/BluefinInvestor.html +1 -1
  621. package/docs/types/BluefinLyfInvestor.html +1 -1
  622. package/docs/types/BluefinPoolType.html +2 -2
  623. package/docs/types/BucketInvestor.html +2 -2
  624. package/docs/types/CetusInvestor.html +2 -2
  625. package/docs/types/CetusPoolType.html +2 -2
  626. package/docs/types/CetusSwapOptions.html +1 -1
  627. package/docs/types/CoinAmounts.html +2 -2
  628. package/docs/types/CoinName.html +1 -1
  629. package/docs/types/CoinType.html +1 -1
  630. package/docs/types/CommonInvestorFields.html +2 -2
  631. package/docs/types/CreatePoolOptions.html +2 -2
  632. package/docs/types/Distributor.html +2 -2
  633. package/docs/types/DoubleAssetMultiVaultBalance.html +2 -2
  634. package/docs/types/DoubleAssetPoolNames.html +1 -1
  635. package/docs/types/DoubleAssetTokenHoldings.html +2 -2
  636. package/docs/types/DoubleAssetVaultBalance.html +2 -2
  637. package/docs/types/EventCategory.html +1 -1
  638. package/docs/types/EventNode.html +1 -1
  639. package/docs/types/GetHoldersParams.html +2 -2
  640. package/docs/types/GetTokenHoldingsParams.html +2 -2
  641. package/docs/types/GetUserTokensFromTransactionsParams.html +2 -2
  642. package/docs/types/GetUserTokensInUsdFromTransactionsParams.html +2 -2
  643. package/docs/types/GetVaultBalanceParams.html +1 -1
  644. package/docs/types/HoldingsObj.html +2 -2
  645. package/docs/types/Icon.html +1 -1
  646. package/docs/types/Investor.html +1 -1
  647. package/docs/types/LiquidityChangeEventNode.html +1 -1
  648. package/docs/types/LiquidityToTokensParams.html +2 -2
  649. package/docs/types/LiquidityToUsdParams.html +2 -2
  650. package/docs/types/LoopingDebt.html +2 -2
  651. package/docs/types/LoopingPoolNames.html +1 -1
  652. package/docs/types/LpBreakdownType.html +2 -2
  653. package/docs/types/MemberPoolDataType.html +2 -2
  654. package/docs/types/MemberType.html +2 -2
  655. package/docs/types/MultiGetVaultBalancesParams.html +2 -2
  656. package/docs/types/NaviInvestor.html +2 -2
  657. package/docs/types/ObjectTable.html +1 -1
  658. package/docs/types/OtherReceiptFields.html +2 -2
  659. package/docs/types/PoolName.html +1 -1
  660. package/docs/types/PoolReceipt.html +1 -1
  661. package/docs/types/PoolType.html +2 -2
  662. package/docs/types/Receipt.html +2 -2
  663. package/docs/types/ReceiptGQL.html +2 -2
  664. package/docs/types/SingleAssetMultiVaultBalance.html +2 -2
  665. package/docs/types/SingleAssetPoolNames.html +1 -1
  666. package/docs/types/SingleAssetTokenHoldings.html +2 -2
  667. package/docs/types/SingleAssetVaultBalance.html +2 -2
  668. package/docs/types/SingleGetVaultBalancesParams.html +2 -2
  669. package/docs/types/StrategyType.html +1 -1
  670. package/docs/types/SuiNetwork.html +1 -1
  671. package/docs/types/SwapOptions.html +1 -1
  672. package/docs/types/TickSpacing.html +1 -1
  673. package/docs/types/TotalWeightType.html +2 -2
  674. package/docs/types/TransactionBlockType.html +2 -2
  675. package/docs/types/UserPoolLiquidity.html +2 -2
  676. package/docs/types/UserPoolTokenHoldings.html +1 -1
  677. package/docs/types/UserUsdHoldings.html +2 -2
  678. package/docs/types/VaultBalance.html +1 -1
  679. package/docs/types/VecMap.html +2 -2
  680. package/docs/types/VoteCastEvent.html +1 -1
  681. package/docs/types/WithdrawV2EventNode.html +1 -1
  682. package/docs/variables/AUTOBALANCE_SUI_FIRST_POOLS.html +1 -1
  683. package/docs/variables/AUTOBALANCE_SUI_SECOND_POOLS.html +1 -1
  684. package/docs/variables/AUTOBALANCE_TYPE_1_POOLS.html +1 -1
  685. package/docs/variables/alphalendMarketIdMap.html +1 -1
  686. package/docs/variables/bluefinPoolMap.html +1 -1
  687. package/docs/variables/cetusPoolMap.html +1 -1
  688. package/docs/variables/coinsList.html +1 -1
  689. package/docs/variables/defunctPoolsSet.html +1 -1
  690. package/docs/variables/doubleAssetPoolCoinMap.html +1 -1
  691. package/docs/variables/eventCategories.html +1 -1
  692. package/docs/variables/ignoredWalletsForDailyRevenue.html +1 -1
  693. package/docs/variables/loopingAccountAddresses.html +1 -1
  694. package/docs/variables/loopingPoolCoinMap.html +1 -1
  695. package/docs/variables/naviAssetMap.html +1 -1
  696. package/docs/variables/naviPriceFeedMap.html +1 -0
  697. package/docs/variables/poolIdPoolNameMap.html +1 -1
  698. package/docs/variables/poolInfo.html +1 -1
  699. package/docs/variables/singleAssetPoolCoinMap.html +1 -1
  700. package/docs/variables/stableCoins.html +1 -1
  701. package/package.json +1 -1
  702. package/scripts/testRun.ts +28 -14
  703. package/scripts/utils.ts +8 -4
  704. package/#package.json# +0 -98
  705. package/FETCH_OVERRIDE_FIX.md +0 -222
@@ -6,7 +6,7 @@ const transactions_1 = require("@mysten/sui/transactions");
6
6
  const maps_js_1 = require("../common/maps.js");
7
7
  const coins_js_1 = require("../common/coins.js");
8
8
  const deposit_js_1 = require("./deposit.js");
9
- const _7k_js_1 = require("./7k.js");
9
+ const cetusSwap_js_1 = require("./cetusSwap.js");
10
10
  const decimal_js_1 = require("decimal.js");
11
11
  const client_js_1 = require("../sui-sdk/client.js");
12
12
  const constants_js_1 = require("../common/constants.js");
@@ -18,7 +18,7 @@ async function zapDepositTxb(inputCoinAmount, isInputA, poolName, slippage, // 1
18
18
  address) {
19
19
  const tx = new transactions_1.Transaction();
20
20
  const suiClient = (0, client_js_1.getSuiClient)();
21
- const swapGateway = new _7k_js_1.SevenKGateway();
21
+ const cetusSwap = new cetusSwap_js_1.CetusSwap("mainnet");
22
22
  const [coinTypeA, coinTypeB] = maps_js_1.poolInfo[poolName].assetTypes;
23
23
  const coinObject = await getCoinObject(isInputA ? coinTypeA : coinTypeB, tx, suiClient, address);
24
24
  const investor = (await (0, getReceipts_js_1.getInvestor)(poolName, true));
@@ -69,20 +69,20 @@ address) {
69
69
  let [amountA, amountB] = (await (0, deposit_js_1.getAmounts)(poolName, isInputA, inputCoinAmount.toString())).map((a) => new decimal_js_1.Decimal(a));
70
70
  // convert coinA of the initial ratio to coinB to get the ratio in terms of 1 coin i.e. coinB
71
71
  if (isInputA) {
72
- const quoteResponse = await swapGateway.getQuote(coinTypeA, coinTypeB, amountA.toString(), [maps_js_1.poolInfo[poolName].parentPoolId]);
72
+ const quoteResponse = await cetusSwap.getCetusSwapQuote(coinTypeA, coinTypeB, amountA.toString());
73
73
  if (!quoteResponse) {
74
74
  console.error("Error fetching quote for zap");
75
75
  return undefined;
76
76
  }
77
- amountA = new decimal_js_1.Decimal(quoteResponse.returnAmountWithDecimal);
77
+ amountA = new decimal_js_1.Decimal(quoteResponse.amountOut.toString());
78
78
  }
79
79
  else {
80
- const quoteResponse = await swapGateway.getQuote(coinTypeB, coinTypeA, amountB.toString(), [maps_js_1.poolInfo[poolName].parentPoolId]);
80
+ const quoteResponse = await cetusSwap.getCetusSwapQuote(coinTypeB, coinTypeA, amountB.toString());
81
81
  if (!quoteResponse) {
82
82
  console.error("Error fetching quote for zap");
83
83
  return undefined;
84
84
  }
85
- amountB = new decimal_js_1.Decimal(quoteResponse.returnAmountWithDecimal);
85
+ amountB = new decimal_js_1.Decimal(quoteResponse.amountOut.toString());
86
86
  }
87
87
  // get input coin and handle how much of input coin needs to be swapped
88
88
  const totalAmount = amountA.add(amountB);
@@ -91,7 +91,7 @@ address) {
91
91
  inputCoinToType2 = new decimal_js_1.Decimal(inputCoinAmount.toString())
92
92
  .mul(amountB)
93
93
  .div(totalAmount)
94
- // .mul(amountA.mul(slippage).div(totalAmount).add(1))
94
+ .mul(amountA.mul(slippage).div(totalAmount).add(1))
95
95
  .floor();
96
96
  const [coinIn] = tx.splitCoins(coinObject, [
97
97
  inputCoinToType2.floor().toString(),
@@ -125,7 +125,7 @@ address) {
125
125
  inputCoinToType1 = new decimal_js_1.Decimal(inputCoinAmount.toString())
126
126
  .mul(amountA)
127
127
  .div(totalAmount)
128
- // .mul(amountB.mul(slippage).div(totalAmount).add(1))
128
+ .mul(amountB.mul(slippage).div(totalAmount).add(1))
129
129
  .floor();
130
130
  const [coinIn] = tx.splitCoins(coinObject, [
131
131
  inputCoinToType1.floor().toString(),
@@ -160,7 +160,7 @@ address) {
160
160
  return tx;
161
161
  }
162
162
  async function zapDepositQuoteTxb(inputCoinAmount, isInputA, poolName, slippage) {
163
- const swapGateway = new _7k_js_1.SevenKGateway();
163
+ const cetusSwap = new cetusSwap_js_1.CetusSwap("mainnet");
164
164
  const [coinTypeA, coinTypeB] = maps_js_1.poolInfo[poolName].assetTypes;
165
165
  const investor = (await (0, getReceipts_js_1.getInvestor)(poolName, true));
166
166
  const parentPool = await (0, getReceipts_js_1.getParentPool)(poolName, true);
@@ -180,11 +180,11 @@ async function zapDepositQuoteTxb(inputCoinAmount, isInputA, poolName, slippage)
180
180
  }
181
181
  if (current_tick_index >= upper_tick) {
182
182
  if (isInputA) {
183
- const quoteResponse = await swapGateway.getQuote(coinTypeA, coinTypeB, inputCoinAmount.toString(), [maps_js_1.poolInfo[poolName].parentPoolId]);
183
+ const quoteResponse = await cetusSwap.getCetusSwapQuote(coinTypeA, coinTypeB, inputCoinAmount.toString());
184
184
  if (!quoteResponse) {
185
185
  throw new Error("Error fetching quote for zap");
186
186
  }
187
- return ["0", quoteResponse.returnAmountWithDecimal];
187
+ return ["0", quoteResponse.amountOut.toString()];
188
188
  }
189
189
  else {
190
190
  return ["0", inputCoinAmount.toString()];
@@ -195,31 +195,31 @@ async function zapDepositQuoteTxb(inputCoinAmount, isInputA, poolName, slippage)
195
195
  return [inputCoinAmount.toString(), "0"];
196
196
  }
197
197
  else {
198
- const quoteResponse = await swapGateway.getQuote(coinTypeB, coinTypeA, inputCoinAmount.toString(), [maps_js_1.poolInfo[poolName].parentPoolId]);
198
+ const quoteResponse = await cetusSwap.getCetusSwapQuote(coinTypeB, coinTypeA, inputCoinAmount.toString());
199
199
  if (!quoteResponse) {
200
200
  throw new Error("Error fetching quote for zap");
201
201
  }
202
- return [quoteResponse.returnAmountWithDecimal, "0"];
202
+ return [quoteResponse.amountOut.toString(), "0"];
203
203
  }
204
204
  }
205
205
  // get inital ratio in terms of 2 coins
206
206
  let [amountA, amountB] = (await (0, deposit_js_1.getAmounts)(poolName, isInputA, inputCoinAmount.toString())).map((a) => new decimal_js_1.Decimal(a));
207
207
  // convert coinA of the initial ratio to coinB to get the ratio in terms of 1 coin i.e. coinB
208
208
  if (isInputA) {
209
- const quoteResponse = await swapGateway.getQuote(coinTypeA, coinTypeB, amountA.toString(), [maps_js_1.poolInfo[poolName].parentPoolId]);
209
+ const quoteResponse = await cetusSwap.getCetusSwapQuote(coinTypeA, coinTypeB, amountA.toString());
210
210
  if (!quoteResponse) {
211
211
  console.error("Error fetching quote for zap");
212
212
  return undefined;
213
213
  }
214
- amountA = new decimal_js_1.Decimal(quoteResponse.returnAmountWithDecimal);
214
+ amountA = new decimal_js_1.Decimal(quoteResponse.amountOut.toString());
215
215
  }
216
216
  else {
217
- const quoteResponse = await swapGateway.getQuote(coinTypeB, coinTypeA, amountB.toString(), [maps_js_1.poolInfo[poolName].parentPoolId]);
217
+ const quoteResponse = await cetusSwap.getCetusSwapQuote(coinTypeB, coinTypeA, amountB.toString());
218
218
  if (!quoteResponse) {
219
219
  console.error("Error fetching quote for zap");
220
220
  return undefined;
221
221
  }
222
- amountB = new decimal_js_1.Decimal(quoteResponse.returnAmountWithDecimal);
222
+ amountB = new decimal_js_1.Decimal(quoteResponse.amountOut.toString());
223
223
  }
224
224
  // get input coin and handle how much of input coin needs to be swapped
225
225
  const totalAmount = amountA.add(amountB);
@@ -228,13 +228,13 @@ async function zapDepositQuoteTxb(inputCoinAmount, isInputA, poolName, slippage)
228
228
  inputCoinToType2 = new decimal_js_1.Decimal(inputCoinAmount.toString())
229
229
  .mul(amountB)
230
230
  .div(totalAmount)
231
- // .mul(amountA.mul(slippage).div(totalAmount).add(1))
231
+ .mul(amountA.mul(slippage).div(totalAmount).add(1))
232
232
  .floor();
233
- const quoteResponse = await swapGateway.getQuote(coinTypeA, coinTypeB, inputCoinToType2.toString(), [maps_js_1.poolInfo[poolName].parentPoolId]);
233
+ const quoteResponse = await cetusSwap.getCetusSwapQuote(coinTypeA, coinTypeB, inputCoinToType2.toString());
234
234
  if (!quoteResponse) {
235
235
  throw new Error("Error fetching quote for zap");
236
236
  }
237
- const slippageReducedAmount = new decimal_js_1.Decimal(quoteResponse.returnAmountWithDecimal)
237
+ const slippageReducedAmount = new decimal_js_1.Decimal(quoteResponse.amountOut.toString())
238
238
  .mul(new decimal_js_1.Decimal(1).sub(slippage))
239
239
  .floor();
240
240
  [inputCoinToType1, inputCoinToType2] = (await (0, deposit_js_1.getAmounts)(poolName, false, slippageReducedAmount.toString(), false)).map((a) => new decimal_js_1.Decimal(a));
@@ -243,20 +243,20 @@ async function zapDepositQuoteTxb(inputCoinAmount, isInputA, poolName, slippage)
243
243
  inputCoinToType1 = new decimal_js_1.Decimal(inputCoinAmount.toString())
244
244
  .mul(amountA)
245
245
  .div(totalAmount)
246
- // .mul(amountB.mul(slippage).div(totalAmount).add(1))
246
+ .mul(amountB.mul(slippage).div(totalAmount).add(1))
247
247
  .floor();
248
- const quoteResponse = await swapGateway.getQuote(coinTypeB, coinTypeA, inputCoinToType1.toString(), [maps_js_1.poolInfo[poolName].parentPoolId]);
248
+ const quoteResponse = await cetusSwap.getCetusSwapQuote(coinTypeB, coinTypeA, inputCoinToType1.toString());
249
249
  if (!quoteResponse) {
250
250
  throw new Error("Error fetching quote for zap");
251
251
  }
252
- const slippageReducedAmount = new decimal_js_1.Decimal(quoteResponse.returnAmountWithDecimal)
252
+ const slippageReducedAmount = new decimal_js_1.Decimal(quoteResponse.amountOut.toString())
253
253
  .mul(new decimal_js_1.Decimal(1).sub(slippage))
254
254
  .floor();
255
255
  [inputCoinToType1, inputCoinToType2] = (await (0, deposit_js_1.getAmounts)(poolName, true, slippageReducedAmount.toString(), false)).map((a) => new decimal_js_1.Decimal(a));
256
256
  }
257
257
  return [
258
- inputCoinToType1.mul(0.9995).floor().toString(),
259
- inputCoinToType2.mul(0.9995).floor().toString(),
258
+ inputCoinToType1.floor().toString(),
259
+ inputCoinToType2.floor().toString(),
260
260
  ];
261
261
  }
262
262
  async function getCoinObject(coinType, tx, suiClient, address) {
@@ -288,16 +288,17 @@ async function getCoinObject(coinType, tx, suiClient, address) {
288
288
  return coin;
289
289
  }
290
290
  async function zapSwap(params) {
291
- const swapGateway = new _7k_js_1.SevenKGateway();
292
- const quoteResponse = await swapGateway.getQuote(params.tokenIn, params.tokenOut, params.amountIn, [maps_js_1.poolInfo[params.poolName].parentPoolId]);
291
+ const cetusSwap = new cetusSwap_js_1.CetusSwap("mainnet");
292
+ const quoteResponse = await cetusSwap.getCetusSwapQuote(params.tokenIn, params.tokenOut, params.amountIn);
293
293
  if (!quoteResponse) {
294
294
  throw new Error("Error fetching quote for zap");
295
295
  }
296
- const coinOut = await swapGateway.getTransactionBlock(params.tx, params.address, quoteResponse, params.slippage, params.coinIn);
296
+ // Pass the existing transaction to ensure all operations are in the same transaction
297
+ const { coinOut } = await cetusSwap.cetusSwapTokensTxb(quoteResponse, params.slippage, params.coinIn, params.address, params.tx);
297
298
  if (!coinOut) {
298
299
  throw new Error("Error getting transaction block for zap");
299
300
  }
300
- const slippageReducedAmount = new decimal_js_1.Decimal(quoteResponse.returnAmountWithDecimal)
301
+ const slippageReducedAmount = new decimal_js_1.Decimal(quoteResponse.amountOut.toString())
301
302
  .mul(new decimal_js_1.Decimal(1).sub(params.slippage))
302
303
  .floor();
303
304
  const [returnCoinOut] = params.tx.splitCoins(coinOut, [
@@ -967,7 +968,7 @@ const depositBluefinType1Txb = async (txb, someReceipt, poolName, depositCoinA,
967
968
  txb.object(poolinfo.investorId),
968
969
  txb.object((0, constants_js_1.getConf)().ALPHA_4_VERSION),
969
970
  txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
970
- txb.object((0, constants_js_1.getConf)().BLUEFIN_SUIUSDT_USDC_POOL),
971
+ txb.object(poolinfo.parentPoolId),
971
972
  txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
972
973
  txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
973
974
  txb.object((0, constants_js_1.getConf)().LST_INFO),
@@ -994,7 +995,7 @@ const depositBluefinType1Txb = async (txb, someReceipt, poolName, depositCoinA,
994
995
  txb.object(poolinfo.investorId),
995
996
  txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
996
997
  txb.object((0, constants_js_1.getConf)().CETUS_GLOBAL_CONFIG_ID),
997
- txb.object((0, constants_js_1.getConf)().BLUEFIN_SUIUSDT_USDC_POOL),
998
+ txb.object(poolinfo.parentPoolId),
998
999
  txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
999
1000
  txb.object(maps_js_1.cetusPoolMap["USDC-SUIUSDT"]),
1000
1001
  txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),