@ember-finance/sdk 2.0.0 → 2.0.1

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