@ember-finance/sdk 2.0.0-beta.1 → 2.0.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 (341) hide show
  1. package/README.md +60 -64
  2. package/dist/index.d.ts +0 -1
  3. package/dist/index.js +1 -1
  4. package/dist/src/abis/index.js +22 -10
  5. package/dist/src/api/api.d.ts +2 -2
  6. package/dist/src/api/api.js +18 -2
  7. package/dist/src/api/apis/accounts-api.d.ts +9 -9
  8. package/dist/src/api/apis/accounts-api.js +73 -63
  9. package/dist/src/api/apis/vaults-api.d.ts +20 -20
  10. package/dist/src/api/apis/vaults-api.js +140 -130
  11. package/dist/src/api/base.d.ts +1 -1
  12. package/dist/src/api/base.js +15 -7
  13. package/dist/src/api/common.d.ts +2 -2
  14. package/dist/src/api/common.js +25 -13
  15. package/dist/src/api/configuration.js +6 -2
  16. package/dist/src/api/index.d.ts +3 -3
  17. package/dist/src/api/index.js +19 -3
  18. package/dist/src/api/models/account-transaction-transaction-data.d.ts +5 -5
  19. package/dist/src/api/models/account-transaction-transaction-data.js +2 -1
  20. package/dist/src/api/models/account-transaction.d.ts +1 -1
  21. package/dist/src/api/models/account-transaction.js +4 -1
  22. package/dist/src/api/models/account-withdrawal-request.d.ts +2 -2
  23. package/dist/src/api/models/account-withdrawal-request.js +4 -1
  24. package/dist/src/api/models/apy-history-v2.d.ts +1 -1
  25. package/dist/src/api/models/apy-history-v2.js +2 -1
  26. package/dist/src/api/models/apy-history.js +2 -1
  27. package/dist/src/api/models/asset.js +2 -1
  28. package/dist/src/api/models/borrowed.d.ts +1 -1
  29. package/dist/src/api/models/borrowed.js +2 -1
  30. package/dist/src/api/models/chain.js +4 -1
  31. package/dist/src/api/models/coin-price.js +2 -1
  32. package/dist/src/api/models/deposit-transaction.d.ts +2 -2
  33. package/dist/src/api/models/deposit-transaction.js +2 -1
  34. package/dist/src/api/models/ember-position.d.ts +1 -1
  35. package/dist/src/api/models/ember-position.js +2 -1
  36. package/dist/src/api/models/exposure-coin.d.ts +1 -1
  37. package/dist/src/api/models/exposure-coin.js +2 -1
  38. package/dist/src/api/models/exposure-protocol.d.ts +6 -6
  39. package/dist/src/api/models/exposure-protocol.js +2 -1
  40. package/dist/src/api/models/exposure.d.ts +2 -2
  41. package/dist/src/api/models/exposure.js +2 -1
  42. package/dist/src/api/models/fee.d.ts +1 -1
  43. package/dist/src/api/models/fee.js +2 -1
  44. package/dist/src/api/models/fees.js +2 -1
  45. package/dist/src/api/models/history-interval.js +4 -1
  46. package/dist/src/api/models/index.d.ts +78 -78
  47. package/dist/src/api/models/index.js +94 -78
  48. package/dist/src/api/models/lp.d.ts +3 -3
  49. package/dist/src/api/models/lp.js +2 -1
  50. package/dist/src/api/models/manager.js +2 -1
  51. package/dist/src/api/models/min-withdrawal-shares-updated-event.js +2 -1
  52. package/dist/src/api/models/perps.d.ts +1 -1
  53. package/dist/src/api/models/perps.js +2 -1
  54. package/dist/src/api/models/pnl-history-interval.js +4 -1
  55. package/dist/src/api/models/pnl-history.js +2 -1
  56. package/dist/src/api/models/poc-report-asset.js +2 -1
  57. package/dist/src/api/models/poc-report-assets.d.ts +1 -1
  58. package/dist/src/api/models/poc-report-assets.js +2 -1
  59. package/dist/src/api/models/poc-report-exchange.d.ts +1 -1
  60. package/dist/src/api/models/poc-report-exchange.js +2 -1
  61. package/dist/src/api/models/poc-report-exchanges.d.ts +1 -1
  62. package/dist/src/api/models/poc-report-exchanges.js +2 -1
  63. package/dist/src/api/models/poc-report-protocol.js +2 -1
  64. package/dist/src/api/models/poc-report-token.js +2 -1
  65. package/dist/src/api/models/poc-report-wallet.d.ts +2 -2
  66. package/dist/src/api/models/poc-report-wallet.js +2 -1
  67. package/dist/src/api/models/poc-report-wallets.d.ts +1 -1
  68. package/dist/src/api/models/poc-report-wallets.js +2 -1
  69. package/dist/src/api/models/position-history-interval.js +4 -1
  70. package/dist/src/api/models/position-history.js +4 -1
  71. package/dist/src/api/models/position-value.js +4 -1
  72. package/dist/src/api/models/position.js +2 -1
  73. package/dist/src/api/models/process-requests-summary-event.js +2 -1
  74. package/dist/src/api/models/proof-of-capital-report.d.ts +3 -3
  75. package/dist/src/api/models/proof-of-capital-report.js +2 -1
  76. package/dist/src/api/models/protocol-fee-collected-event.js +2 -1
  77. package/dist/src/api/models/protocol-info.d.ts +3 -3
  78. package/dist/src/api/models/protocol-info.js +2 -1
  79. package/dist/src/api/models/protocol.js +2 -1
  80. package/dist/src/api/models/raw-event-event-data.d.ts +17 -17
  81. package/dist/src/api/models/raw-event-event-data.js +2 -1
  82. package/dist/src/api/models/raw-event.d.ts +1 -1
  83. package/dist/src/api/models/raw-event.js +4 -1
  84. package/dist/src/api/models/redeem-request-cancelled-transaction.d.ts +2 -2
  85. package/dist/src/api/models/redeem-request-cancelled-transaction.js +2 -1
  86. package/dist/src/api/models/redeem-request-processed-transaction.d.ts +2 -2
  87. package/dist/src/api/models/redeem-request-processed-transaction.js +2 -1
  88. package/dist/src/api/models/redeem-request-skipped-transaction.d.ts +2 -2
  89. package/dist/src/api/models/redeem-request-skipped-transaction.js +2 -1
  90. package/dist/src/api/models/redeem-request-transaction.d.ts +2 -2
  91. package/dist/src/api/models/redeem-request-transaction.js +2 -1
  92. package/dist/src/api/models/reported-apy.js +2 -1
  93. package/dist/src/api/models/request-processed-event.js +2 -1
  94. package/dist/src/api/models/request-redeemed-event.js +2 -1
  95. package/dist/src/api/models/reward-token.js +2 -1
  96. package/dist/src/api/models/reward.d.ts +1 -1
  97. package/dist/src/api/models/reward.js +2 -1
  98. package/dist/src/api/models/share-price-history.js +2 -1
  99. package/dist/src/api/models/strategy-account.d.ts +1 -1
  100. package/dist/src/api/models/strategy-account.js +2 -1
  101. package/dist/src/api/models/strategy.js +2 -1
  102. package/dist/src/api/models/sub-account.d.ts +1 -1
  103. package/dist/src/api/models/sub-account.js +2 -1
  104. package/dist/src/api/models/supplied.d.ts +1 -1
  105. package/dist/src/api/models/supplied.js +2 -1
  106. package/dist/src/api/models/tag.js +2 -1
  107. package/dist/src/api/models/tvl-history.js +2 -1
  108. package/dist/src/api/models/ultra-coin-info.js +2 -1
  109. package/dist/src/api/models/update-vault-strategies.d.ts +1 -1
  110. package/dist/src/api/models/update-vault-strategies.js +2 -1
  111. package/dist/src/api/models/vault-admin-changed-event.js +2 -1
  112. package/dist/src/api/models/vault-created-event.js +2 -1
  113. package/dist/src/api/models/vault-deposit-event.js +2 -1
  114. package/dist/src/api/models/vault-deposit-without-minting-shares-event.js +2 -1
  115. package/dist/src/api/models/vault-detail.d.ts +7 -7
  116. package/dist/src/api/models/vault-detail.js +4 -1
  117. package/dist/src/api/models/vault-fee-percentage-updated-event.js +2 -1
  118. package/dist/src/api/models/vault-info.js +2 -1
  119. package/dist/src/api/models/vault-max-tvl-updated-event.js +2 -1
  120. package/dist/src/api/models/vault-operator-changed-event.js +2 -1
  121. package/dist/src/api/models/vault-paused-status-updated-event.js +2 -1
  122. package/dist/src/api/models/vault-platform-fee-charged-event.js +2 -1
  123. package/dist/src/api/models/vault-protocol.js +2 -1
  124. package/dist/src/api/models/vault-rate-updated-event.js +2 -1
  125. package/dist/src/api/models/vault-slice.js +2 -1
  126. package/dist/src/api/models/vault-sub-account-updated-event.js +2 -1
  127. package/dist/src/api/models/vault-withdrawal-without-redeeming-shares-event.js +2 -1
  128. package/dist/src/api/models/vaults-stats.js +2 -1
  129. package/dist/src/api/models/yield-aggregate-value.js +2 -1
  130. package/dist/src/api/v2/api.d.ts +2 -2
  131. package/dist/src/api/v2/api.js +18 -2
  132. package/dist/src/api/v2/apis/accounts-api.d.ts +9 -9
  133. package/dist/src/api/v2/apis/accounts-api.js +66 -56
  134. package/dist/src/api/v2/apis/vaults-api.d.ts +20 -20
  135. package/dist/src/api/v2/apis/vaults-api.js +124 -114
  136. package/dist/src/api/v2/base.d.ts +1 -1
  137. package/dist/src/api/v2/base.js +15 -7
  138. package/dist/src/api/v2/common.d.ts +2 -2
  139. package/dist/src/api/v2/common.js +25 -13
  140. package/dist/src/api/v2/configuration.js +6 -2
  141. package/dist/src/api/v2/index.d.ts +3 -3
  142. package/dist/src/api/v2/index.js +19 -3
  143. package/dist/src/api/v2/models/account-transaction-transaction-data.d.ts +5 -5
  144. package/dist/src/api/v2/models/account-transaction-transaction-data.js +2 -1
  145. package/dist/src/api/v2/models/account-transaction.d.ts +1 -1
  146. package/dist/src/api/v2/models/account-transaction.js +4 -1
  147. package/dist/src/api/v2/models/account-vault-position-history.js +4 -1
  148. package/dist/src/api/v2/models/account-withdrawal-request.d.ts +2 -2
  149. package/dist/src/api/v2/models/account-withdrawal-request.js +4 -1
  150. package/dist/src/api/v2/models/aggregated-account-position-history.js +4 -1
  151. package/dist/src/api/v2/models/aggregated-proof-of-capital-report.d.ts +2 -2
  152. package/dist/src/api/v2/models/aggregated-proof-of-capital-report.js +2 -1
  153. package/dist/src/api/v2/models/apy-averages.d.ts +1 -1
  154. package/dist/src/api/v2/models/apy-averages.js +2 -1
  155. package/dist/src/api/v2/models/apy-history-response.d.ts +1 -1
  156. package/dist/src/api/v2/models/apy-history-response.js +2 -1
  157. package/dist/src/api/v2/models/apy-history.js +2 -1
  158. package/dist/src/api/v2/models/apy-period-average.js +2 -1
  159. package/dist/src/api/v2/models/asset.js +2 -1
  160. package/dist/src/api/v2/models/borrowed.d.ts +1 -1
  161. package/dist/src/api/v2/models/borrowed.js +2 -1
  162. package/dist/src/api/v2/models/chain-vault-details.d.ts +2 -2
  163. package/dist/src/api/v2/models/chain-vault-details.js +2 -1
  164. package/dist/src/api/v2/models/chain.js +4 -1
  165. package/dist/src/api/v2/models/coin-price.js +2 -1
  166. package/dist/src/api/v2/models/deposit-transaction.d.ts +2 -2
  167. package/dist/src/api/v2/models/deposit-transaction.js +2 -1
  168. package/dist/src/api/v2/models/ember-position.d.ts +1 -1
  169. package/dist/src/api/v2/models/ember-position.js +2 -1
  170. package/dist/src/api/v2/models/evm-contracts.d.ts +5 -5
  171. package/dist/src/api/v2/models/evm-contracts.js +2 -1
  172. package/dist/src/api/v2/models/evm-deposit-token.js +2 -1
  173. package/dist/src/api/v2/models/evm-price-feed.js +2 -1
  174. package/dist/src/api/v2/models/evm-protocol-config.js +2 -1
  175. package/dist/src/api/v2/models/evm-protocol-info.d.ts +1 -1
  176. package/dist/src/api/v2/models/evm-protocol-info.js +2 -1
  177. package/dist/src/api/v2/models/evm-receipt-token.js +2 -1
  178. package/dist/src/api/v2/models/evm-vault.js +2 -1
  179. package/dist/src/api/v2/models/exposure-coin.d.ts +1 -1
  180. package/dist/src/api/v2/models/exposure-coin.js +2 -1
  181. package/dist/src/api/v2/models/exposure-protocol.d.ts +6 -6
  182. package/dist/src/api/v2/models/exposure-protocol.js +2 -1
  183. package/dist/src/api/v2/models/exposure.d.ts +2 -2
  184. package/dist/src/api/v2/models/exposure.js +2 -1
  185. package/dist/src/api/v2/models/fee.d.ts +1 -1
  186. package/dist/src/api/v2/models/fee.js +2 -1
  187. package/dist/src/api/v2/models/fees.js +2 -1
  188. package/dist/src/api/v2/models/history-interval.js +4 -1
  189. package/dist/src/api/v2/models/index.d.ts +100 -100
  190. package/dist/src/api/v2/models/index.js +116 -100
  191. package/dist/src/api/v2/models/lp.d.ts +3 -3
  192. package/dist/src/api/v2/models/lp.js +2 -1
  193. package/dist/src/api/v2/models/manager.js +2 -1
  194. package/dist/src/api/v2/models/min-withdrawal-shares-updated-event.js +2 -1
  195. package/dist/src/api/v2/models/perps.d.ts +1 -1
  196. package/dist/src/api/v2/models/perps.js +2 -1
  197. package/dist/src/api/v2/models/pnl-by-chain.js +2 -1
  198. package/dist/src/api/v2/models/pnl-history-interval.js +4 -1
  199. package/dist/src/api/v2/models/pnl-history.js +2 -1
  200. package/dist/src/api/v2/models/poc-report-asset.js +2 -1
  201. package/dist/src/api/v2/models/poc-report-assets.d.ts +1 -1
  202. package/dist/src/api/v2/models/poc-report-assets.js +2 -1
  203. package/dist/src/api/v2/models/poc-report-exchange.d.ts +1 -1
  204. package/dist/src/api/v2/models/poc-report-exchange.js +2 -1
  205. package/dist/src/api/v2/models/poc-report-exchanges.d.ts +1 -1
  206. package/dist/src/api/v2/models/poc-report-exchanges.js +2 -1
  207. package/dist/src/api/v2/models/poc-report-protocol.js +2 -1
  208. package/dist/src/api/v2/models/poc-report-token.js +2 -1
  209. package/dist/src/api/v2/models/poc-report-wallet.d.ts +2 -2
  210. package/dist/src/api/v2/models/poc-report-wallet.js +2 -1
  211. package/dist/src/api/v2/models/poc-report-wallets.d.ts +1 -1
  212. package/dist/src/api/v2/models/poc-report-wallets.js +2 -1
  213. package/dist/src/api/v2/models/position-history-interval.js +4 -1
  214. package/dist/src/api/v2/models/position-value.js +4 -1
  215. package/dist/src/api/v2/models/position.js +2 -1
  216. package/dist/src/api/v2/models/process-requests-summary-event.js +2 -1
  217. package/dist/src/api/v2/models/proof-of-capital-report-status.js +4 -1
  218. package/dist/src/api/v2/models/proof-of-capital-report.d.ts +4 -4
  219. package/dist/src/api/v2/models/proof-of-capital-report.js +2 -1
  220. package/dist/src/api/v2/models/protocol-fee-collected-event.js +2 -1
  221. package/dist/src/api/v2/models/protocol-pnl-history.js +2 -1
  222. package/dist/src/api/v2/models/protocol-tvl-history.js +2 -1
  223. package/dist/src/api/v2/models/protocol.js +2 -1
  224. package/dist/src/api/v2/models/raw-event-event-data.d.ts +17 -17
  225. package/dist/src/api/v2/models/raw-event-event-data.js +2 -1
  226. package/dist/src/api/v2/models/raw-event.d.ts +1 -1
  227. package/dist/src/api/v2/models/raw-event.js +4 -1
  228. package/dist/src/api/v2/models/redeem-request-cancelled-transaction.d.ts +2 -2
  229. package/dist/src/api/v2/models/redeem-request-cancelled-transaction.js +2 -1
  230. package/dist/src/api/v2/models/redeem-request-processed-transaction.d.ts +2 -2
  231. package/dist/src/api/v2/models/redeem-request-processed-transaction.js +2 -1
  232. package/dist/src/api/v2/models/redeem-request-skipped-transaction.d.ts +2 -2
  233. package/dist/src/api/v2/models/redeem-request-skipped-transaction.js +2 -1
  234. package/dist/src/api/v2/models/redeem-request-transaction.d.ts +2 -2
  235. package/dist/src/api/v2/models/redeem-request-transaction.js +2 -1
  236. package/dist/src/api/v2/models/reported-apy.js +2 -1
  237. package/dist/src/api/v2/models/request-processed-event.js +2 -1
  238. package/dist/src/api/v2/models/request-redeemed-event.js +2 -1
  239. package/dist/src/api/v2/models/reward-token.js +2 -1
  240. package/dist/src/api/v2/models/reward.d.ts +1 -1
  241. package/dist/src/api/v2/models/reward.js +2 -1
  242. package/dist/src/api/v2/models/share-price-history.js +2 -1
  243. package/dist/src/api/v2/models/strategy-account.d.ts +1 -1
  244. package/dist/src/api/v2/models/strategy-account.js +2 -1
  245. package/dist/src/api/v2/models/strategy.js +2 -1
  246. package/dist/src/api/v2/models/sub-account.d.ts +1 -1
  247. package/dist/src/api/v2/models/sub-account.js +2 -1
  248. package/dist/src/api/v2/models/sui-protocol-info.d.ts +3 -3
  249. package/dist/src/api/v2/models/sui-protocol-info.js +2 -1
  250. package/dist/src/api/v2/models/supplied.d.ts +1 -1
  251. package/dist/src/api/v2/models/supplied.js +2 -1
  252. package/dist/src/api/v2/models/tag.js +2 -1
  253. package/dist/src/api/v2/models/tvl-by-chain.js +2 -1
  254. package/dist/src/api/v2/models/tvl-history.d.ts +1 -1
  255. package/dist/src/api/v2/models/tvl-history.js +2 -1
  256. package/dist/src/api/v2/models/ultra-coin-info.js +2 -1
  257. package/dist/src/api/v2/models/update-vault-strategies.d.ts +1 -1
  258. package/dist/src/api/v2/models/update-vault-strategies.js +2 -1
  259. package/dist/src/api/v2/models/vault-admin-changed-event.js +2 -1
  260. package/dist/src/api/v2/models/vault-created-event.js +2 -1
  261. package/dist/src/api/v2/models/vault-deposit-eligibility.js +2 -1
  262. package/dist/src/api/v2/models/vault-deposit-event.js +2 -1
  263. package/dist/src/api/v2/models/vault-deposit-without-minting-shares-event.js +2 -1
  264. package/dist/src/api/v2/models/vault-detail.d.ts +14 -8
  265. package/dist/src/api/v2/models/vault-detail.js +4 -1
  266. package/dist/src/api/v2/models/vault-fee-percentage-updated-event.js +2 -1
  267. package/dist/src/api/v2/models/vault-info.js +2 -1
  268. package/dist/src/api/v2/models/vault-max-tvl-updated-event.js +2 -1
  269. package/dist/src/api/v2/models/vault-operator-changed-event.js +2 -1
  270. package/dist/src/api/v2/models/vault-paused-status-updated-event.js +2 -1
  271. package/dist/src/api/v2/models/vault-platform-fee-charged-event.js +2 -1
  272. package/dist/src/api/v2/models/vault-proof-of-capital-summary.d.ts +2 -2
  273. package/dist/src/api/v2/models/vault-proof-of-capital-summary.js +2 -1
  274. package/dist/src/api/v2/models/vault-protocol.js +2 -1
  275. package/dist/src/api/v2/models/vault-rate-updated-event.js +2 -1
  276. package/dist/src/api/v2/models/vault-slice.js +2 -1
  277. package/dist/src/api/v2/models/vault-sub-account-updated-event.js +2 -1
  278. package/dist/src/api/v2/models/vault-tag.js +2 -1
  279. package/dist/src/api/v2/models/vault-withdrawal-without-redeeming-shares-event.js +2 -1
  280. package/dist/src/api/v2/models/vaults-deployment-config-config.d.ts +2 -2
  281. package/dist/src/api/v2/models/vaults-deployment-config-config.js +2 -1
  282. package/dist/src/api/v2/models/vaults-deployment-config.d.ts +1 -1
  283. package/dist/src/api/v2/models/vaults-deployment-config.js +4 -1
  284. package/dist/src/api/v2/models/vaults-stats.js +2 -1
  285. package/dist/src/api/v2/models/yield-aggregate-value.js +2 -1
  286. package/dist/src/common/types.js +2 -1
  287. package/dist/src/ember-vaults.d.ts +17 -17
  288. package/dist/src/ember-vaults.js +37 -33
  289. package/dist/src/evm-vaults/index.d.ts +3 -3
  290. package/dist/src/evm-vaults/index.js +19 -3
  291. package/dist/src/evm-vaults/interfaces/index.js +2 -1
  292. package/dist/src/evm-vaults/on-chain-calls/admin.d.ts +3 -3
  293. package/dist/src/evm-vaults/on-chain-calls/admin.js +6 -2
  294. package/dist/src/evm-vaults/on-chain-calls/index.d.ts +7 -7
  295. package/dist/src/evm-vaults/on-chain-calls/index.js +23 -7
  296. package/dist/src/evm-vaults/on-chain-calls/onchain-calls.d.ts +3 -3
  297. package/dist/src/evm-vaults/on-chain-calls/onchain-calls.js +13 -9
  298. package/dist/src/evm-vaults/on-chain-calls/operator.d.ts +3 -3
  299. package/dist/src/evm-vaults/on-chain-calls/operator.js +6 -2
  300. package/dist/src/evm-vaults/on-chain-calls/tx-builder.d.ts +3 -3
  301. package/dist/src/evm-vaults/on-chain-calls/tx-builder.js +41 -34
  302. package/dist/src/evm-vaults/on-chain-calls/user.d.ts +3 -3
  303. package/dist/src/evm-vaults/on-chain-calls/user.js +15 -8
  304. package/dist/src/evm-vaults/on-chain-calls/vault-admin.d.ts +3 -3
  305. package/dist/src/evm-vaults/on-chain-calls/vault-admin.js +6 -2
  306. package/dist/src/evm-vaults/on-chain-calls/vault-reader.d.ts +3 -3
  307. package/dist/src/evm-vaults/on-chain-calls/vault-reader.js +19 -12
  308. package/dist/src/evm-vaults/utils/deployment-parser.d.ts +1 -1
  309. package/dist/src/evm-vaults/utils/deployment-parser.js +5 -1
  310. package/dist/src/evm-vaults/utils/index.d.ts +2 -2
  311. package/dist/src/evm-vaults/utils/index.js +18 -2
  312. package/dist/src/evm-vaults/utils/permit-utils.d.ts +2 -2
  313. package/dist/src/evm-vaults/utils/permit-utils.js +53 -12
  314. package/dist/src/index.d.ts +3 -3
  315. package/dist/src/index.js +19 -3
  316. package/dist/src/sui-vaults/index.d.ts +4 -4
  317. package/dist/src/sui-vaults/index.js +20 -4
  318. package/dist/src/sui-vaults/interfaces/bcs.js +18 -15
  319. package/dist/src/sui-vaults/interfaces/index.js +2 -1
  320. package/dist/src/sui-vaults/on-chain-calls/admin.d.ts +2 -2
  321. package/dist/src/sui-vaults/on-chain-calls/admin.js +17 -13
  322. package/dist/src/sui-vaults/on-chain-calls/index.d.ts +6 -6
  323. package/dist/src/sui-vaults/on-chain-calls/index.js +22 -6
  324. package/dist/src/sui-vaults/on-chain-calls/onchain-calls.d.ts +3 -3
  325. package/dist/src/sui-vaults/on-chain-calls/onchain-calls.js +12 -8
  326. package/dist/src/sui-vaults/on-chain-calls/operator.d.ts +2 -2
  327. package/dist/src/sui-vaults/on-chain-calls/operator.js +19 -15
  328. package/dist/src/sui-vaults/on-chain-calls/tx-builder.d.ts +2 -2
  329. package/dist/src/sui-vaults/on-chain-calls/tx-builder.js +50 -46
  330. package/dist/src/sui-vaults/on-chain-calls/user.d.ts +2 -2
  331. package/dist/src/sui-vaults/on-chain-calls/user.js +22 -18
  332. package/dist/src/sui-vaults/on-chain-calls/vault-admin.d.ts +2 -2
  333. package/dist/src/sui-vaults/on-chain-calls/vault-admin.js +14 -10
  334. package/dist/src/sui-vaults/on-chain-calls/vault.d.ts +1 -1
  335. package/dist/src/sui-vaults/on-chain-calls/vault.js +7 -3
  336. package/dist/src/sui-vaults/utils/common.js +7 -3
  337. package/dist/src/sui-vaults/utils/deployment-parser.d.ts +1 -1
  338. package/dist/src/sui-vaults/utils/deployment-parser.js +5 -1
  339. package/dist/src/sui-vaults/utils/index.d.ts +2 -2
  340. package/dist/src/sui-vaults/utils/index.js +18 -2
  341. package/package.json +14 -24
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* tslint:disable */
2
3
  /* eslint-disable */
3
4
  /**
@@ -11,17 +12,22 @@
11
12
  * https://openapi-generator.tech
12
13
  * Do not edit the class manually.
13
14
  */
14
- import globalAxios from "axios";
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.VaultsApi = exports.VaultsApiFactory = exports.VaultsApiFp = exports.VaultsApiAxiosParamCreator = void 0;
20
+ const axios_1 = __importDefault(require("axios"));
15
21
  // Some imports not used depending on template conditions
16
22
  // @ts-ignore
17
- import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from "../common.js";
23
+ const common_1 = require("../common");
18
24
  // @ts-ignore
19
- import { BASE_PATH, BaseAPI, operationServerMap } from "../base.js";
25
+ const base_1 = require("../base");
20
26
  /**
21
27
  * VaultsApi - axios parameter creator
22
28
  * @export
23
29
  */
24
- export const VaultsApiAxiosParamCreator = function (configuration) {
30
+ const VaultsApiAxiosParamCreator = function (configuration) {
25
31
  return {
26
32
  /**
27
33
  *
@@ -32,7 +38,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
32
38
  getAllTags: async (options = {}) => {
33
39
  const localVarPath = `/api/v2/vaults/tags`;
34
40
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
35
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
36
42
  let baseOptions;
37
43
  if (configuration) {
38
44
  baseOptions = configuration.baseOptions;
@@ -40,7 +46,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
40
46
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
41
47
  const localVarHeaderParameter = {};
42
48
  const localVarQueryParameter = {};
43
- setSearchParams(localVarUrlObj, localVarQueryParameter);
49
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
44
50
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45
51
  localVarRequestOptions.headers = {
46
52
  ...localVarHeaderParameter,
@@ -48,7 +54,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
48
54
  ...options.headers
49
55
  };
50
56
  return {
51
- url: toPathString(localVarUrlObj),
57
+ url: (0, common_1.toPathString)(localVarUrlObj),
52
58
  options: localVarRequestOptions
53
59
  };
54
60
  },
@@ -63,7 +69,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
63
69
  getCoinsPrice: async (coinTypes, chain, options = {}) => {
64
70
  const localVarPath = `/api/v2/vaults/coins/price`;
65
71
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
66
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
72
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
67
73
  let baseOptions;
68
74
  if (configuration) {
69
75
  baseOptions = configuration.baseOptions;
@@ -77,7 +83,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
77
83
  if (chain !== undefined) {
78
84
  localVarQueryParameter["chain"] = chain;
79
85
  }
80
- setSearchParams(localVarUrlObj, localVarQueryParameter);
86
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
81
87
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
82
88
  localVarRequestOptions.headers = {
83
89
  ...localVarHeaderParameter,
@@ -85,7 +91,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
85
91
  ...options.headers
86
92
  };
87
93
  return {
88
- url: toPathString(localVarUrlObj),
94
+ url: (0, common_1.toPathString)(localVarUrlObj),
89
95
  options: localVarRequestOptions
90
96
  };
91
97
  },
@@ -99,12 +105,12 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
99
105
  */
100
106
  getFees: async (startTimestampInMs, endTimestampInMs, options = {}) => {
101
107
  // verify required parameter 'startTimestampInMs' is not null or undefined
102
- assertParamExists("getFees", "startTimestampInMs", startTimestampInMs);
108
+ (0, common_1.assertParamExists)("getFees", "startTimestampInMs", startTimestampInMs);
103
109
  // verify required parameter 'endTimestampInMs' is not null or undefined
104
- assertParamExists("getFees", "endTimestampInMs", endTimestampInMs);
110
+ (0, common_1.assertParamExists)("getFees", "endTimestampInMs", endTimestampInMs);
105
111
  const localVarPath = `/api/v2/vaults/fees`;
106
112
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
107
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
113
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
108
114
  let baseOptions;
109
115
  if (configuration) {
110
116
  baseOptions = configuration.baseOptions;
@@ -118,7 +124,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
118
124
  if (endTimestampInMs !== undefined) {
119
125
  localVarQueryParameter["endTimestampInMs"] = endTimestampInMs;
120
126
  }
121
- setSearchParams(localVarUrlObj, localVarQueryParameter);
127
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
122
128
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
123
129
  localVarRequestOptions.headers = {
124
130
  ...localVarHeaderParameter,
@@ -126,7 +132,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
126
132
  ...options.headers
127
133
  };
128
134
  return {
129
- url: toPathString(localVarUrlObj),
135
+ url: (0, common_1.toPathString)(localVarUrlObj),
130
136
  options: localVarRequestOptions
131
137
  };
132
138
  },
@@ -140,7 +146,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
140
146
  getProofOfCapitalSummary: async (date, options = {}) => {
141
147
  const localVarPath = `/api/v2/vaults/poc/summary`;
142
148
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
143
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
149
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
144
150
  let baseOptions;
145
151
  if (configuration) {
146
152
  baseOptions = configuration.baseOptions;
@@ -154,7 +160,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
154
160
  ? date.toISOString().substring(0, 10)
155
161
  : date;
156
162
  }
157
- setSearchParams(localVarUrlObj, localVarQueryParameter);
163
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
158
164
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
159
165
  localVarRequestOptions.headers = {
160
166
  ...localVarHeaderParameter,
@@ -162,7 +168,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
162
168
  ...options.headers
163
169
  };
164
170
  return {
165
- url: toPathString(localVarUrlObj),
171
+ url: (0, common_1.toPathString)(localVarUrlObj),
166
172
  options: localVarRequestOptions
167
173
  };
168
174
  },
@@ -177,7 +183,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
177
183
  getProtocolPnlHistory: async (limit, interval, options = {}) => {
178
184
  const localVarPath = `/api/v2/vaults/pnl-history`;
179
185
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
180
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
186
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
181
187
  let baseOptions;
182
188
  if (configuration) {
183
189
  baseOptions = configuration.baseOptions;
@@ -191,7 +197,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
191
197
  if (interval !== undefined) {
192
198
  localVarQueryParameter["interval"] = interval;
193
199
  }
194
- setSearchParams(localVarUrlObj, localVarQueryParameter);
200
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
195
201
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
196
202
  localVarRequestOptions.headers = {
197
203
  ...localVarHeaderParameter,
@@ -199,7 +205,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
199
205
  ...options.headers
200
206
  };
201
207
  return {
202
- url: toPathString(localVarUrlObj),
208
+ url: (0, common_1.toPathString)(localVarUrlObj),
203
209
  options: localVarRequestOptions
204
210
  };
205
211
  },
@@ -215,7 +221,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
215
221
  getProtocolTvlHistory: async (limit, interval, chain, options = {}) => {
216
222
  const localVarPath = `/api/v2/vaults/tvl-history`;
217
223
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
218
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
224
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
219
225
  let baseOptions;
220
226
  if (configuration) {
221
227
  baseOptions = configuration.baseOptions;
@@ -232,7 +238,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
232
238
  if (chain !== undefined) {
233
239
  localVarQueryParameter["chain"] = chain;
234
240
  }
235
- setSearchParams(localVarUrlObj, localVarQueryParameter);
241
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
242
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
237
243
  localVarRequestOptions.headers = {
238
244
  ...localVarHeaderParameter,
@@ -240,7 +246,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
240
246
  ...options.headers
241
247
  };
242
248
  return {
243
- url: toPathString(localVarUrlObj),
249
+ url: (0, common_1.toPathString)(localVarUrlObj),
244
250
  options: localVarRequestOptions
245
251
  };
246
252
  },
@@ -253,7 +259,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
253
259
  getSupportedChains: async (options = {}) => {
254
260
  const localVarPath = `/api/v2/vaults/supported-chains`;
255
261
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
256
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
262
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
257
263
  let baseOptions;
258
264
  if (configuration) {
259
265
  baseOptions = configuration.baseOptions;
@@ -261,7 +267,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
261
267
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
262
268
  const localVarHeaderParameter = {};
263
269
  const localVarQueryParameter = {};
264
- setSearchParams(localVarUrlObj, localVarQueryParameter);
270
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
265
271
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
266
272
  localVarRequestOptions.headers = {
267
273
  ...localVarHeaderParameter,
@@ -269,7 +275,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
269
275
  ...options.headers
270
276
  };
271
277
  return {
272
- url: toPathString(localVarUrlObj),
278
+ url: (0, common_1.toPathString)(localVarUrlObj),
273
279
  options: localVarRequestOptions
274
280
  };
275
281
  },
@@ -284,10 +290,10 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
284
290
  */
285
291
  getVaultApyHistory: async (vaultId, limit, interval, options = {}) => {
286
292
  // verify required parameter 'vaultId' is not null or undefined
287
- assertParamExists("getVaultApyHistory", "vaultId", vaultId);
293
+ (0, common_1.assertParamExists)("getVaultApyHistory", "vaultId", vaultId);
288
294
  const localVarPath = `/api/v2/vaults/apy-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
289
295
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
290
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
296
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
291
297
  let baseOptions;
292
298
  if (configuration) {
293
299
  baseOptions = configuration.baseOptions;
@@ -301,7 +307,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
301
307
  if (interval !== undefined) {
302
308
  localVarQueryParameter["interval"] = interval;
303
309
  }
304
- setSearchParams(localVarUrlObj, localVarQueryParameter);
310
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
305
311
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
306
312
  localVarRequestOptions.headers = {
307
313
  ...localVarHeaderParameter,
@@ -309,7 +315,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
309
315
  ...options.headers
310
316
  };
311
317
  return {
312
- url: toPathString(localVarUrlObj),
318
+ url: (0, common_1.toPathString)(localVarUrlObj),
313
319
  options: localVarRequestOptions
314
320
  };
315
321
  },
@@ -323,14 +329,14 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
323
329
  */
324
330
  getVaultDepositEligibility: async (vaultId, accountAddress, options = {}) => {
325
331
  // verify required parameter 'vaultId' is not null or undefined
326
- assertParamExists("getVaultDepositEligibility", "vaultId", vaultId);
332
+ (0, common_1.assertParamExists)("getVaultDepositEligibility", "vaultId", vaultId);
327
333
  // verify required parameter 'accountAddress' is not null or undefined
328
- assertParamExists("getVaultDepositEligibility", "accountAddress", accountAddress);
334
+ (0, common_1.assertParamExists)("getVaultDepositEligibility", "accountAddress", accountAddress);
329
335
  const localVarPath = `/api/v2/vaults/{vaultId}/deposit-eligibility/{accountAddress}`
330
336
  .replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)))
331
337
  .replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
332
338
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
333
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
339
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
334
340
  let baseOptions;
335
341
  if (configuration) {
336
342
  baseOptions = configuration.baseOptions;
@@ -338,7 +344,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
338
344
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
339
345
  const localVarHeaderParameter = {};
340
346
  const localVarQueryParameter = {};
341
- setSearchParams(localVarUrlObj, localVarQueryParameter);
347
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
342
348
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
343
349
  localVarRequestOptions.headers = {
344
350
  ...localVarHeaderParameter,
@@ -346,7 +352,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
346
352
  ...options.headers
347
353
  };
348
354
  return {
349
- url: toPathString(localVarUrlObj),
355
+ url: (0, common_1.toPathString)(localVarUrlObj),
350
356
  options: localVarRequestOptions
351
357
  };
352
358
  },
@@ -361,10 +367,10 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
361
367
  */
362
368
  getVaultPnlHistory: async (vaultId, limit, interval, options = {}) => {
363
369
  // verify required parameter 'vaultId' is not null or undefined
364
- assertParamExists("getVaultPnlHistory", "vaultId", vaultId);
370
+ (0, common_1.assertParamExists)("getVaultPnlHistory", "vaultId", vaultId);
365
371
  const localVarPath = `/api/v2/vaults/pnl-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
366
372
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
367
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
373
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
368
374
  let baseOptions;
369
375
  if (configuration) {
370
376
  baseOptions = configuration.baseOptions;
@@ -378,7 +384,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
378
384
  if (interval !== undefined) {
379
385
  localVarQueryParameter["interval"] = interval;
380
386
  }
381
- setSearchParams(localVarUrlObj, localVarQueryParameter);
387
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
382
388
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
383
389
  localVarRequestOptions.headers = {
384
390
  ...localVarHeaderParameter,
@@ -386,7 +392,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
386
392
  ...options.headers
387
393
  };
388
394
  return {
389
- url: toPathString(localVarUrlObj),
395
+ url: (0, common_1.toPathString)(localVarUrlObj),
390
396
  options: localVarRequestOptions
391
397
  };
392
398
  },
@@ -399,10 +405,10 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
399
405
  */
400
406
  getVaultProofOfCapital: async (vaultId, options = {}) => {
401
407
  // verify required parameter 'vaultId' is not null or undefined
402
- assertParamExists("getVaultProofOfCapital", "vaultId", vaultId);
408
+ (0, common_1.assertParamExists)("getVaultProofOfCapital", "vaultId", vaultId);
403
409
  const localVarPath = `/api/v2/vaults/poc/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
404
410
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
405
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
411
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
406
412
  let baseOptions;
407
413
  if (configuration) {
408
414
  baseOptions = configuration.baseOptions;
@@ -410,7 +416,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
410
416
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
411
417
  const localVarHeaderParameter = {};
412
418
  const localVarQueryParameter = {};
413
- setSearchParams(localVarUrlObj, localVarQueryParameter);
419
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
414
420
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
415
421
  localVarRequestOptions.headers = {
416
422
  ...localVarHeaderParameter,
@@ -418,7 +424,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
418
424
  ...options.headers
419
425
  };
420
426
  return {
421
- url: toPathString(localVarUrlObj),
427
+ url: (0, common_1.toPathString)(localVarUrlObj),
422
428
  options: localVarRequestOptions
423
429
  };
424
430
  },
@@ -433,10 +439,10 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
433
439
  */
434
440
  getVaultSharePriceHistory: async (vaultId, limit, interval, options = {}) => {
435
441
  // verify required parameter 'vaultId' is not null or undefined
436
- assertParamExists("getVaultSharePriceHistory", "vaultId", vaultId);
442
+ (0, common_1.assertParamExists)("getVaultSharePriceHistory", "vaultId", vaultId);
437
443
  const localVarPath = `/api/v2/vaults/share-price-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
438
444
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
439
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
445
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
440
446
  let baseOptions;
441
447
  if (configuration) {
442
448
  baseOptions = configuration.baseOptions;
@@ -450,7 +456,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
450
456
  if (interval !== undefined) {
451
457
  localVarQueryParameter["interval"] = interval;
452
458
  }
453
- setSearchParams(localVarUrlObj, localVarQueryParameter);
459
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
454
460
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
455
461
  localVarRequestOptions.headers = {
456
462
  ...localVarHeaderParameter,
@@ -458,7 +464,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
458
464
  ...options.headers
459
465
  };
460
466
  return {
461
- url: toPathString(localVarUrlObj),
467
+ url: (0, common_1.toPathString)(localVarUrlObj),
462
468
  options: localVarRequestOptions
463
469
  };
464
470
  },
@@ -473,10 +479,10 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
473
479
  */
474
480
  getVaultTvlHistory: async (vaultId, limit, interval, options = {}) => {
475
481
  // verify required parameter 'vaultId' is not null or undefined
476
- assertParamExists("getVaultTvlHistory", "vaultId", vaultId);
482
+ (0, common_1.assertParamExists)("getVaultTvlHistory", "vaultId", vaultId);
477
483
  const localVarPath = `/api/v2/vaults/tvl-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
478
484
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
479
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
485
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
480
486
  let baseOptions;
481
487
  if (configuration) {
482
488
  baseOptions = configuration.baseOptions;
@@ -490,7 +496,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
490
496
  if (interval !== undefined) {
491
497
  localVarQueryParameter["interval"] = interval;
492
498
  }
493
- setSearchParams(localVarUrlObj, localVarQueryParameter);
499
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
494
500
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
495
501
  localVarRequestOptions.headers = {
496
502
  ...localVarHeaderParameter,
@@ -498,7 +504,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
498
504
  ...options.headers
499
505
  };
500
506
  return {
501
- url: toPathString(localVarUrlObj),
507
+ url: (0, common_1.toPathString)(localVarUrlObj),
502
508
  options: localVarRequestOptions
503
509
  };
504
510
  },
@@ -515,7 +521,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
515
521
  getVaults: async (vaultId, receiptCoinSymbol, chain, includeHidden, options = {}) => {
516
522
  const localVarPath = `/api/v2/vaults`;
517
523
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
518
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
524
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
519
525
  let baseOptions;
520
526
  if (configuration) {
521
527
  baseOptions = configuration.baseOptions;
@@ -535,7 +541,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
535
541
  if (includeHidden !== undefined) {
536
542
  localVarQueryParameter["includeHidden"] = includeHidden;
537
543
  }
538
- setSearchParams(localVarUrlObj, localVarQueryParameter);
544
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
539
545
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
540
546
  localVarRequestOptions.headers = {
541
547
  ...localVarHeaderParameter,
@@ -543,7 +549,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
543
549
  ...options.headers
544
550
  };
545
551
  return {
546
- url: toPathString(localVarUrlObj),
552
+ url: (0, common_1.toPathString)(localVarUrlObj),
547
553
  options: localVarRequestOptions
548
554
  };
549
555
  },
@@ -556,7 +562,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
556
562
  getVaultsProtocolInfo: async (options = {}) => {
557
563
  const localVarPath = `/api/v2/vaults/info`;
558
564
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
559
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
565
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
560
566
  let baseOptions;
561
567
  if (configuration) {
562
568
  baseOptions = configuration.baseOptions;
@@ -564,7 +570,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
564
570
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
565
571
  const localVarHeaderParameter = {};
566
572
  const localVarQueryParameter = {};
567
- setSearchParams(localVarUrlObj, localVarQueryParameter);
573
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
568
574
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
569
575
  localVarRequestOptions.headers = {
570
576
  ...localVarHeaderParameter,
@@ -572,7 +578,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
572
578
  ...options.headers
573
579
  };
574
580
  return {
575
- url: toPathString(localVarUrlObj),
581
+ url: (0, common_1.toPathString)(localVarUrlObj),
576
582
  options: localVarRequestOptions
577
583
  };
578
584
  },
@@ -585,7 +591,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
585
591
  getVaultsStats: async (options = {}) => {
586
592
  const localVarPath = `/api/v2/vaults/stats`;
587
593
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
588
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
594
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
589
595
  let baseOptions;
590
596
  if (configuration) {
591
597
  baseOptions = configuration.baseOptions;
@@ -593,7 +599,7 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
593
599
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
594
600
  const localVarHeaderParameter = {};
595
601
  const localVarQueryParameter = {};
596
- setSearchParams(localVarUrlObj, localVarQueryParameter);
602
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
597
603
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
598
604
  localVarRequestOptions.headers = {
599
605
  ...localVarHeaderParameter,
@@ -601,18 +607,19 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
601
607
  ...options.headers
602
608
  };
603
609
  return {
604
- url: toPathString(localVarUrlObj),
610
+ url: (0, common_1.toPathString)(localVarUrlObj),
605
611
  options: localVarRequestOptions
606
612
  };
607
613
  }
608
614
  };
609
615
  };
616
+ exports.VaultsApiAxiosParamCreator = VaultsApiAxiosParamCreator;
610
617
  /**
611
618
  * VaultsApi - functional programming interface
612
619
  * @export
613
620
  */
614
- export const VaultsApiFp = function (configuration) {
615
- const localVarAxiosParamCreator = VaultsApiAxiosParamCreator(configuration);
621
+ const VaultsApiFp = function (configuration) {
622
+ const localVarAxiosParamCreator = (0, exports.VaultsApiAxiosParamCreator)(configuration);
616
623
  return {
617
624
  /**
618
625
  *
@@ -623,9 +630,9 @@ export const VaultsApiFp = function (configuration) {
623
630
  async getAllTags(options) {
624
631
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
625
632
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
626
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getAllTags"]?.[localVarOperationServerIndex]
633
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getAllTags"]?.[localVarOperationServerIndex]
627
634
  ?.url;
628
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
635
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
629
636
  },
630
637
  /**
631
638
  *
@@ -638,8 +645,8 @@ export const VaultsApiFp = function (configuration) {
638
645
  async getCoinsPrice(coinTypes, chain, options) {
639
646
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCoinsPrice(coinTypes, chain, options);
640
647
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
641
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getCoinsPrice"]?.[localVarOperationServerIndex]?.url;
642
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
648
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getCoinsPrice"]?.[localVarOperationServerIndex]?.url;
649
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
643
650
  },
644
651
  /**
645
652
  *
@@ -652,9 +659,9 @@ export const VaultsApiFp = function (configuration) {
652
659
  async getFees(startTimestampInMs, endTimestampInMs, options) {
653
660
  const localVarAxiosArgs = await localVarAxiosParamCreator.getFees(startTimestampInMs, endTimestampInMs, options);
654
661
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
655
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getFees"]?.[localVarOperationServerIndex]
662
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getFees"]?.[localVarOperationServerIndex]
656
663
  ?.url;
657
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
664
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
658
665
  },
659
666
  /**
660
667
  *
@@ -666,8 +673,8 @@ export const VaultsApiFp = function (configuration) {
666
673
  async getProofOfCapitalSummary(date, options) {
667
674
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProofOfCapitalSummary(date, options);
668
675
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
669
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getProofOfCapitalSummary"]?.[localVarOperationServerIndex]?.url;
670
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
676
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getProofOfCapitalSummary"]?.[localVarOperationServerIndex]?.url;
677
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
671
678
  },
672
679
  /**
673
680
  *
@@ -680,8 +687,8 @@ export const VaultsApiFp = function (configuration) {
680
687
  async getProtocolPnlHistory(limit, interval, options) {
681
688
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolPnlHistory(limit, interval, options);
682
689
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
683
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getProtocolPnlHistory"]?.[localVarOperationServerIndex]?.url;
684
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
690
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getProtocolPnlHistory"]?.[localVarOperationServerIndex]?.url;
691
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
685
692
  },
686
693
  /**
687
694
  *
@@ -695,8 +702,8 @@ export const VaultsApiFp = function (configuration) {
695
702
  async getProtocolTvlHistory(limit, interval, chain, options) {
696
703
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolTvlHistory(limit, interval, chain, options);
697
704
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
698
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getProtocolTvlHistory"]?.[localVarOperationServerIndex]?.url;
699
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
705
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getProtocolTvlHistory"]?.[localVarOperationServerIndex]?.url;
706
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
700
707
  },
701
708
  /**
702
709
  *
@@ -707,8 +714,8 @@ export const VaultsApiFp = function (configuration) {
707
714
  async getSupportedChains(options) {
708
715
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedChains(options);
709
716
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
710
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getSupportedChains"]?.[localVarOperationServerIndex]?.url;
711
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
717
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getSupportedChains"]?.[localVarOperationServerIndex]?.url;
718
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
712
719
  },
713
720
  /**
714
721
  *
@@ -722,8 +729,8 @@ export const VaultsApiFp = function (configuration) {
722
729
  async getVaultApyHistory(vaultId, limit, interval, options) {
723
730
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultApyHistory(vaultId, limit, interval, options);
724
731
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
725
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultApyHistory"]?.[localVarOperationServerIndex]?.url;
726
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
732
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultApyHistory"]?.[localVarOperationServerIndex]?.url;
733
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
727
734
  },
728
735
  /**
729
736
  *
@@ -736,8 +743,8 @@ export const VaultsApiFp = function (configuration) {
736
743
  async getVaultDepositEligibility(vaultId, accountAddress, options) {
737
744
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultDepositEligibility(vaultId, accountAddress, options);
738
745
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
739
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultDepositEligibility"]?.[localVarOperationServerIndex]?.url;
740
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
746
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultDepositEligibility"]?.[localVarOperationServerIndex]?.url;
747
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
741
748
  },
742
749
  /**
743
750
  *
@@ -751,8 +758,8 @@ export const VaultsApiFp = function (configuration) {
751
758
  async getVaultPnlHistory(vaultId, limit, interval, options) {
752
759
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultPnlHistory(vaultId, limit, interval, options);
753
760
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
754
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultPnlHistory"]?.[localVarOperationServerIndex]?.url;
755
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
761
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultPnlHistory"]?.[localVarOperationServerIndex]?.url;
762
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
756
763
  },
757
764
  /**
758
765
  *
@@ -764,8 +771,8 @@ export const VaultsApiFp = function (configuration) {
764
771
  async getVaultProofOfCapital(vaultId, options) {
765
772
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultProofOfCapital(vaultId, options);
766
773
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
767
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultProofOfCapital"]?.[localVarOperationServerIndex]?.url;
768
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
774
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultProofOfCapital"]?.[localVarOperationServerIndex]?.url;
775
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
769
776
  },
770
777
  /**
771
778
  *
@@ -779,8 +786,8 @@ export const VaultsApiFp = function (configuration) {
779
786
  async getVaultSharePriceHistory(vaultId, limit, interval, options) {
780
787
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultSharePriceHistory(vaultId, limit, interval, options);
781
788
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
782
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultSharePriceHistory"]?.[localVarOperationServerIndex]?.url;
783
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
789
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultSharePriceHistory"]?.[localVarOperationServerIndex]?.url;
790
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
784
791
  },
785
792
  /**
786
793
  *
@@ -794,8 +801,8 @@ export const VaultsApiFp = function (configuration) {
794
801
  async getVaultTvlHistory(vaultId, limit, interval, options) {
795
802
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultTvlHistory(vaultId, limit, interval, options);
796
803
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
797
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultTvlHistory"]?.[localVarOperationServerIndex]?.url;
798
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
804
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultTvlHistory"]?.[localVarOperationServerIndex]?.url;
805
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
799
806
  },
800
807
  /**
801
808
  *
@@ -810,9 +817,9 @@ export const VaultsApiFp = function (configuration) {
810
817
  async getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options) {
811
818
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options);
812
819
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
813
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaults"]?.[localVarOperationServerIndex]
820
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaults"]?.[localVarOperationServerIndex]
814
821
  ?.url;
815
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
822
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
816
823
  },
817
824
  /**
818
825
  *
@@ -823,8 +830,8 @@ export const VaultsApiFp = function (configuration) {
823
830
  async getVaultsProtocolInfo(options) {
824
831
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsProtocolInfo(options);
825
832
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
826
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultsProtocolInfo"]?.[localVarOperationServerIndex]?.url;
827
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
833
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultsProtocolInfo"]?.[localVarOperationServerIndex]?.url;
834
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
828
835
  },
829
836
  /**
830
837
  *
@@ -835,17 +842,18 @@ export const VaultsApiFp = function (configuration) {
835
842
  async getVaultsStats(options) {
836
843
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsStats(options);
837
844
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
838
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultsStats"]?.[localVarOperationServerIndex]?.url;
839
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
845
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultsStats"]?.[localVarOperationServerIndex]?.url;
846
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
840
847
  }
841
848
  };
842
849
  };
850
+ exports.VaultsApiFp = VaultsApiFp;
843
851
  /**
844
852
  * VaultsApi - factory interface
845
853
  * @export
846
854
  */
847
- export const VaultsApiFactory = function (configuration, basePath, axios) {
848
- const localVarFp = VaultsApiFp(configuration);
855
+ const VaultsApiFactory = function (configuration, basePath, axios) {
856
+ const localVarFp = (0, exports.VaultsApiFp)(configuration);
849
857
  return {
850
858
  /**
851
859
  *
@@ -1054,13 +1062,14 @@ export const VaultsApiFactory = function (configuration, basePath, axios) {
1054
1062
  }
1055
1063
  };
1056
1064
  };
1065
+ exports.VaultsApiFactory = VaultsApiFactory;
1057
1066
  /**
1058
1067
  * VaultsApi - object-oriented interface
1059
1068
  * @export
1060
1069
  * @class VaultsApi
1061
1070
  * @extends {BaseAPI}
1062
1071
  */
1063
- export class VaultsApi extends BaseAPI {
1072
+ class VaultsApi extends base_1.BaseAPI {
1064
1073
  /**
1065
1074
  *
1066
1075
  * @summary Get all tags
@@ -1069,7 +1078,7 @@ export class VaultsApi extends BaseAPI {
1069
1078
  * @memberof VaultsApi
1070
1079
  */
1071
1080
  getAllTags(options) {
1072
- return VaultsApiFp(this.configuration)
1081
+ return (0, exports.VaultsApiFp)(this.configuration)
1073
1082
  .getAllTags(options)
1074
1083
  .then(request => request(this.axios, this.basePath));
1075
1084
  }
@@ -1083,7 +1092,7 @@ export class VaultsApi extends BaseAPI {
1083
1092
  * @memberof VaultsApi
1084
1093
  */
1085
1094
  getCoinsPrice(coinTypes, chain, options) {
1086
- return VaultsApiFp(this.configuration)
1095
+ return (0, exports.VaultsApiFp)(this.configuration)
1087
1096
  .getCoinsPrice(coinTypes, chain, options)
1088
1097
  .then(request => request(this.axios, this.basePath));
1089
1098
  }
@@ -1097,7 +1106,7 @@ export class VaultsApi extends BaseAPI {
1097
1106
  * @memberof VaultsApi
1098
1107
  */
1099
1108
  getFees(startTimestampInMs, endTimestampInMs, options) {
1100
- return VaultsApiFp(this.configuration)
1109
+ return (0, exports.VaultsApiFp)(this.configuration)
1101
1110
  .getFees(startTimestampInMs, endTimestampInMs, options)
1102
1111
  .then(request => request(this.axios, this.basePath));
1103
1112
  }
@@ -1110,7 +1119,7 @@ export class VaultsApi extends BaseAPI {
1110
1119
  * @memberof VaultsApi
1111
1120
  */
1112
1121
  getProofOfCapitalSummary(date, options) {
1113
- return VaultsApiFp(this.configuration)
1122
+ return (0, exports.VaultsApiFp)(this.configuration)
1114
1123
  .getProofOfCapitalSummary(date, options)
1115
1124
  .then(request => request(this.axios, this.basePath));
1116
1125
  }
@@ -1124,7 +1133,7 @@ export class VaultsApi extends BaseAPI {
1124
1133
  * @memberof VaultsApi
1125
1134
  */
1126
1135
  getProtocolPnlHistory(limit, interval, options) {
1127
- return VaultsApiFp(this.configuration)
1136
+ return (0, exports.VaultsApiFp)(this.configuration)
1128
1137
  .getProtocolPnlHistory(limit, interval, options)
1129
1138
  .then(request => request(this.axios, this.basePath));
1130
1139
  }
@@ -1139,7 +1148,7 @@ export class VaultsApi extends BaseAPI {
1139
1148
  * @memberof VaultsApi
1140
1149
  */
1141
1150
  getProtocolTvlHistory(limit, interval, chain, options) {
1142
- return VaultsApiFp(this.configuration)
1151
+ return (0, exports.VaultsApiFp)(this.configuration)
1143
1152
  .getProtocolTvlHistory(limit, interval, chain, options)
1144
1153
  .then(request => request(this.axios, this.basePath));
1145
1154
  }
@@ -1151,7 +1160,7 @@ export class VaultsApi extends BaseAPI {
1151
1160
  * @memberof VaultsApi
1152
1161
  */
1153
1162
  getSupportedChains(options) {
1154
- return VaultsApiFp(this.configuration)
1163
+ return (0, exports.VaultsApiFp)(this.configuration)
1155
1164
  .getSupportedChains(options)
1156
1165
  .then(request => request(this.axios, this.basePath));
1157
1166
  }
@@ -1166,7 +1175,7 @@ export class VaultsApi extends BaseAPI {
1166
1175
  * @memberof VaultsApi
1167
1176
  */
1168
1177
  getVaultApyHistory(vaultId, limit, interval, options) {
1169
- return VaultsApiFp(this.configuration)
1178
+ return (0, exports.VaultsApiFp)(this.configuration)
1170
1179
  .getVaultApyHistory(vaultId, limit, interval, options)
1171
1180
  .then(request => request(this.axios, this.basePath));
1172
1181
  }
@@ -1180,7 +1189,7 @@ export class VaultsApi extends BaseAPI {
1180
1189
  * @memberof VaultsApi
1181
1190
  */
1182
1191
  getVaultDepositEligibility(vaultId, accountAddress, options) {
1183
- return VaultsApiFp(this.configuration)
1192
+ return (0, exports.VaultsApiFp)(this.configuration)
1184
1193
  .getVaultDepositEligibility(vaultId, accountAddress, options)
1185
1194
  .then(request => request(this.axios, this.basePath));
1186
1195
  }
@@ -1195,7 +1204,7 @@ export class VaultsApi extends BaseAPI {
1195
1204
  * @memberof VaultsApi
1196
1205
  */
1197
1206
  getVaultPnlHistory(vaultId, limit, interval, options) {
1198
- return VaultsApiFp(this.configuration)
1207
+ return (0, exports.VaultsApiFp)(this.configuration)
1199
1208
  .getVaultPnlHistory(vaultId, limit, interval, options)
1200
1209
  .then(request => request(this.axios, this.basePath));
1201
1210
  }
@@ -1208,7 +1217,7 @@ export class VaultsApi extends BaseAPI {
1208
1217
  * @memberof VaultsApi
1209
1218
  */
1210
1219
  getVaultProofOfCapital(vaultId, options) {
1211
- return VaultsApiFp(this.configuration)
1220
+ return (0, exports.VaultsApiFp)(this.configuration)
1212
1221
  .getVaultProofOfCapital(vaultId, options)
1213
1222
  .then(request => request(this.axios, this.basePath));
1214
1223
  }
@@ -1223,7 +1232,7 @@ export class VaultsApi extends BaseAPI {
1223
1232
  * @memberof VaultsApi
1224
1233
  */
1225
1234
  getVaultSharePriceHistory(vaultId, limit, interval, options) {
1226
- return VaultsApiFp(this.configuration)
1235
+ return (0, exports.VaultsApiFp)(this.configuration)
1227
1236
  .getVaultSharePriceHistory(vaultId, limit, interval, options)
1228
1237
  .then(request => request(this.axios, this.basePath));
1229
1238
  }
@@ -1238,7 +1247,7 @@ export class VaultsApi extends BaseAPI {
1238
1247
  * @memberof VaultsApi
1239
1248
  */
1240
1249
  getVaultTvlHistory(vaultId, limit, interval, options) {
1241
- return VaultsApiFp(this.configuration)
1250
+ return (0, exports.VaultsApiFp)(this.configuration)
1242
1251
  .getVaultTvlHistory(vaultId, limit, interval, options)
1243
1252
  .then(request => request(this.axios, this.basePath));
1244
1253
  }
@@ -1254,7 +1263,7 @@ export class VaultsApi extends BaseAPI {
1254
1263
  * @memberof VaultsApi
1255
1264
  */
1256
1265
  getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options) {
1257
- return VaultsApiFp(this.configuration)
1266
+ return (0, exports.VaultsApiFp)(this.configuration)
1258
1267
  .getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options)
1259
1268
  .then(request => request(this.axios, this.basePath));
1260
1269
  }
@@ -1266,7 +1275,7 @@ export class VaultsApi extends BaseAPI {
1266
1275
  * @memberof VaultsApi
1267
1276
  */
1268
1277
  getVaultsProtocolInfo(options) {
1269
- return VaultsApiFp(this.configuration)
1278
+ return (0, exports.VaultsApiFp)(this.configuration)
1270
1279
  .getVaultsProtocolInfo(options)
1271
1280
  .then(request => request(this.axios, this.basePath));
1272
1281
  }
@@ -1278,8 +1287,9 @@ export class VaultsApi extends BaseAPI {
1278
1287
  * @memberof VaultsApi
1279
1288
  */
1280
1289
  getVaultsStats(options) {
1281
- return VaultsApiFp(this.configuration)
1290
+ return (0, exports.VaultsApiFp)(this.configuration)
1282
1291
  .getVaultsStats(options)
1283
1292
  .then(request => request(this.axios, this.basePath));
1284
1293
  }
1285
1294
  }
1295
+ exports.VaultsApi = VaultsApi;