@ember-finance/sdk 2.0.0 → 2.0.2

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 (356) 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/EmberETHVault.json +343 -2
  5. package/dist/src/abis/EmberProtocolConfig.json +61 -2
  6. package/dist/src/abis/EmberVault.json +343 -2
  7. package/dist/src/abis/EmberVaultMintBurnOFTAdapter.json +1382 -0
  8. package/dist/src/abis/index.d.ts +3 -1
  9. package/dist/src/abis/index.js +12 -22
  10. package/dist/src/api/api.d.ts +2 -2
  11. package/dist/src/api/api.js +2 -18
  12. package/dist/src/api/apis/accounts-api.d.ts +9 -9
  13. package/dist/src/api/apis/accounts-api.js +63 -73
  14. package/dist/src/api/apis/vaults-api.d.ts +20 -20
  15. package/dist/src/api/apis/vaults-api.js +130 -140
  16. package/dist/src/api/base.d.ts +1 -1
  17. package/dist/src/api/base.js +7 -15
  18. package/dist/src/api/common.d.ts +2 -2
  19. package/dist/src/api/common.js +13 -25
  20. package/dist/src/api/configuration.js +2 -6
  21. package/dist/src/api/index.d.ts +3 -3
  22. package/dist/src/api/index.js +3 -19
  23. package/dist/src/api/models/account-transaction-transaction-data.d.ts +5 -5
  24. package/dist/src/api/models/account-transaction-transaction-data.js +1 -2
  25. package/dist/src/api/models/account-transaction.d.ts +1 -1
  26. package/dist/src/api/models/account-transaction.js +1 -4
  27. package/dist/src/api/models/account-withdrawal-request.d.ts +2 -2
  28. package/dist/src/api/models/account-withdrawal-request.js +1 -4
  29. package/dist/src/api/models/apy-history-v2.d.ts +1 -1
  30. package/dist/src/api/models/apy-history-v2.js +1 -2
  31. package/dist/src/api/models/apy-history.js +1 -2
  32. package/dist/src/api/models/asset.js +1 -2
  33. package/dist/src/api/models/borrowed.d.ts +1 -1
  34. package/dist/src/api/models/borrowed.js +1 -2
  35. package/dist/src/api/models/chain.js +1 -4
  36. package/dist/src/api/models/coin-price.js +1 -2
  37. package/dist/src/api/models/deposit-transaction.d.ts +2 -2
  38. package/dist/src/api/models/deposit-transaction.js +1 -2
  39. package/dist/src/api/models/ember-position.d.ts +1 -1
  40. package/dist/src/api/models/ember-position.js +1 -2
  41. package/dist/src/api/models/exposure-coin.d.ts +1 -1
  42. package/dist/src/api/models/exposure-coin.js +1 -2
  43. package/dist/src/api/models/exposure-protocol.d.ts +6 -6
  44. package/dist/src/api/models/exposure-protocol.js +1 -2
  45. package/dist/src/api/models/exposure.d.ts +2 -2
  46. package/dist/src/api/models/exposure.js +1 -2
  47. package/dist/src/api/models/fee.d.ts +1 -1
  48. package/dist/src/api/models/fee.js +1 -2
  49. package/dist/src/api/models/fees.js +1 -2
  50. package/dist/src/api/models/history-interval.js +1 -4
  51. package/dist/src/api/models/index.d.ts +78 -78
  52. package/dist/src/api/models/index.js +78 -94
  53. package/dist/src/api/models/lp.d.ts +3 -3
  54. package/dist/src/api/models/lp.js +1 -2
  55. package/dist/src/api/models/manager.js +1 -2
  56. package/dist/src/api/models/min-withdrawal-shares-updated-event.js +1 -2
  57. package/dist/src/api/models/perps.d.ts +1 -1
  58. package/dist/src/api/models/perps.js +1 -2
  59. package/dist/src/api/models/pnl-history-interval.js +1 -4
  60. package/dist/src/api/models/pnl-history.js +1 -2
  61. package/dist/src/api/models/poc-report-asset.js +1 -2
  62. package/dist/src/api/models/poc-report-assets.d.ts +1 -1
  63. package/dist/src/api/models/poc-report-assets.js +1 -2
  64. package/dist/src/api/models/poc-report-exchange.d.ts +1 -1
  65. package/dist/src/api/models/poc-report-exchange.js +1 -2
  66. package/dist/src/api/models/poc-report-exchanges.d.ts +1 -1
  67. package/dist/src/api/models/poc-report-exchanges.js +1 -2
  68. package/dist/src/api/models/poc-report-protocol.js +1 -2
  69. package/dist/src/api/models/poc-report-token.js +1 -2
  70. package/dist/src/api/models/poc-report-wallet.d.ts +2 -2
  71. package/dist/src/api/models/poc-report-wallet.js +1 -2
  72. package/dist/src/api/models/poc-report-wallets.d.ts +1 -1
  73. package/dist/src/api/models/poc-report-wallets.js +1 -2
  74. package/dist/src/api/models/position-history-interval.js +1 -4
  75. package/dist/src/api/models/position-history.js +1 -4
  76. package/dist/src/api/models/position-value.js +1 -4
  77. package/dist/src/api/models/position.js +1 -2
  78. package/dist/src/api/models/process-requests-summary-event.js +1 -2
  79. package/dist/src/api/models/proof-of-capital-report.d.ts +3 -3
  80. package/dist/src/api/models/proof-of-capital-report.js +1 -2
  81. package/dist/src/api/models/protocol-fee-collected-event.js +1 -2
  82. package/dist/src/api/models/protocol-info.d.ts +3 -3
  83. package/dist/src/api/models/protocol-info.js +1 -2
  84. package/dist/src/api/models/protocol.js +1 -2
  85. package/dist/src/api/models/raw-event-event-data.d.ts +17 -17
  86. package/dist/src/api/models/raw-event-event-data.js +1 -2
  87. package/dist/src/api/models/raw-event.d.ts +1 -1
  88. package/dist/src/api/models/raw-event.js +1 -4
  89. package/dist/src/api/models/redeem-request-cancelled-transaction.d.ts +2 -2
  90. package/dist/src/api/models/redeem-request-cancelled-transaction.js +1 -2
  91. package/dist/src/api/models/redeem-request-processed-transaction.d.ts +2 -2
  92. package/dist/src/api/models/redeem-request-processed-transaction.js +1 -2
  93. package/dist/src/api/models/redeem-request-skipped-transaction.d.ts +2 -2
  94. package/dist/src/api/models/redeem-request-skipped-transaction.js +1 -2
  95. package/dist/src/api/models/redeem-request-transaction.d.ts +2 -2
  96. package/dist/src/api/models/redeem-request-transaction.js +1 -2
  97. package/dist/src/api/models/reported-apy.js +1 -2
  98. package/dist/src/api/models/request-processed-event.js +1 -2
  99. package/dist/src/api/models/request-redeemed-event.js +1 -2
  100. package/dist/src/api/models/reward-token.js +1 -2
  101. package/dist/src/api/models/reward.d.ts +1 -1
  102. package/dist/src/api/models/reward.js +1 -2
  103. package/dist/src/api/models/share-price-history.js +1 -2
  104. package/dist/src/api/models/strategy-account.d.ts +1 -1
  105. package/dist/src/api/models/strategy-account.js +1 -2
  106. package/dist/src/api/models/strategy.js +1 -2
  107. package/dist/src/api/models/sub-account.d.ts +1 -1
  108. package/dist/src/api/models/sub-account.js +1 -2
  109. package/dist/src/api/models/supplied.d.ts +1 -1
  110. package/dist/src/api/models/supplied.js +1 -2
  111. package/dist/src/api/models/tag.js +1 -2
  112. package/dist/src/api/models/tvl-history.js +1 -2
  113. package/dist/src/api/models/ultra-coin-info.js +1 -2
  114. package/dist/src/api/models/update-vault-strategies.d.ts +1 -1
  115. package/dist/src/api/models/update-vault-strategies.js +1 -2
  116. package/dist/src/api/models/vault-admin-changed-event.js +1 -2
  117. package/dist/src/api/models/vault-created-event.js +1 -2
  118. package/dist/src/api/models/vault-deposit-event.js +1 -2
  119. package/dist/src/api/models/vault-deposit-without-minting-shares-event.js +1 -2
  120. package/dist/src/api/models/vault-detail.d.ts +7 -7
  121. package/dist/src/api/models/vault-detail.js +1 -4
  122. package/dist/src/api/models/vault-fee-percentage-updated-event.js +1 -2
  123. package/dist/src/api/models/vault-info.js +1 -2
  124. package/dist/src/api/models/vault-max-tvl-updated-event.js +1 -2
  125. package/dist/src/api/models/vault-operator-changed-event.js +1 -2
  126. package/dist/src/api/models/vault-paused-status-updated-event.js +1 -2
  127. package/dist/src/api/models/vault-platform-fee-charged-event.js +1 -2
  128. package/dist/src/api/models/vault-protocol.js +1 -2
  129. package/dist/src/api/models/vault-rate-updated-event.js +1 -2
  130. package/dist/src/api/models/vault-slice.js +1 -2
  131. package/dist/src/api/models/vault-sub-account-updated-event.js +1 -2
  132. package/dist/src/api/models/vault-withdrawal-without-redeeming-shares-event.js +1 -2
  133. package/dist/src/api/models/vaults-stats.js +1 -2
  134. package/dist/src/api/models/yield-aggregate-value.js +1 -2
  135. package/dist/src/api/v2/api.d.ts +2 -2
  136. package/dist/src/api/v2/api.js +2 -18
  137. package/dist/src/api/v2/apis/accounts-api.d.ts +9 -9
  138. package/dist/src/api/v2/apis/accounts-api.js +56 -66
  139. package/dist/src/api/v2/apis/vaults-api.d.ts +20 -20
  140. package/dist/src/api/v2/apis/vaults-api.js +114 -124
  141. package/dist/src/api/v2/base.d.ts +1 -1
  142. package/dist/src/api/v2/base.js +7 -15
  143. package/dist/src/api/v2/common.d.ts +2 -2
  144. package/dist/src/api/v2/common.js +13 -25
  145. package/dist/src/api/v2/configuration.js +2 -6
  146. package/dist/src/api/v2/index.d.ts +3 -3
  147. package/dist/src/api/v2/index.js +3 -19
  148. package/dist/src/api/v2/models/account-transaction-transaction-data.d.ts +5 -5
  149. package/dist/src/api/v2/models/account-transaction-transaction-data.js +1 -2
  150. package/dist/src/api/v2/models/account-transaction.d.ts +1 -1
  151. package/dist/src/api/v2/models/account-transaction.js +1 -4
  152. package/dist/src/api/v2/models/account-vault-position-history.js +1 -4
  153. package/dist/src/api/v2/models/account-withdrawal-request.d.ts +2 -2
  154. package/dist/src/api/v2/models/account-withdrawal-request.js +1 -4
  155. package/dist/src/api/v2/models/aggregated-account-position-history.js +1 -4
  156. package/dist/src/api/v2/models/aggregated-proof-of-capital-report.d.ts +2 -2
  157. package/dist/src/api/v2/models/aggregated-proof-of-capital-report.js +1 -2
  158. package/dist/src/api/v2/models/apy-averages.d.ts +1 -1
  159. package/dist/src/api/v2/models/apy-averages.js +1 -2
  160. package/dist/src/api/v2/models/apy-history-response.d.ts +1 -1
  161. package/dist/src/api/v2/models/apy-history-response.js +1 -2
  162. package/dist/src/api/v2/models/apy-history.js +1 -2
  163. package/dist/src/api/v2/models/apy-period-average.js +1 -2
  164. package/dist/src/api/v2/models/asset.js +1 -2
  165. package/dist/src/api/v2/models/borrowed.d.ts +1 -1
  166. package/dist/src/api/v2/models/borrowed.js +1 -2
  167. package/dist/src/api/v2/models/chain-vault-details.d.ts +2 -2
  168. package/dist/src/api/v2/models/chain-vault-details.js +1 -2
  169. package/dist/src/api/v2/models/chain.d.ts +6 -0
  170. package/dist/src/api/v2/models/chain.js +1 -4
  171. package/dist/src/api/v2/models/coin-price.js +1 -2
  172. package/dist/src/api/v2/models/deposit-transaction.d.ts +2 -2
  173. package/dist/src/api/v2/models/deposit-transaction.js +1 -2
  174. package/dist/src/api/v2/models/ember-position.d.ts +1 -1
  175. package/dist/src/api/v2/models/ember-position.js +1 -2
  176. package/dist/src/api/v2/models/evm-contracts.d.ts +14 -5
  177. package/dist/src/api/v2/models/evm-contracts.js +1 -2
  178. package/dist/src/api/v2/models/evm-deposit-token.js +1 -2
  179. package/dist/src/api/v2/models/evm-oftadapter.d.ts +93 -0
  180. package/dist/src/api/v2/models/evm-oftadapter.js +14 -0
  181. package/dist/src/api/v2/models/evm-oftpeer.d.ts +48 -0
  182. package/dist/src/api/v2/models/evm-oftpeer.js +14 -0
  183. package/dist/src/api/v2/models/evm-price-feed.js +1 -2
  184. package/dist/src/api/v2/models/evm-protocol-config.d.ts +6 -0
  185. package/dist/src/api/v2/models/evm-protocol-config.js +1 -2
  186. package/dist/src/api/v2/models/evm-protocol-info.d.ts +1 -1
  187. package/dist/src/api/v2/models/evm-protocol-info.js +1 -2
  188. package/dist/src/api/v2/models/evm-receipt-token.js +1 -2
  189. package/dist/src/api/v2/models/evm-vault.d.ts +24 -0
  190. package/dist/src/api/v2/models/evm-vault.js +1 -2
  191. package/dist/src/api/v2/models/exposure-coin.d.ts +1 -1
  192. package/dist/src/api/v2/models/exposure-coin.js +1 -2
  193. package/dist/src/api/v2/models/exposure-protocol.d.ts +6 -6
  194. package/dist/src/api/v2/models/exposure-protocol.js +1 -2
  195. package/dist/src/api/v2/models/exposure.d.ts +2 -2
  196. package/dist/src/api/v2/models/exposure.js +1 -2
  197. package/dist/src/api/v2/models/fee.d.ts +1 -1
  198. package/dist/src/api/v2/models/fee.js +1 -2
  199. package/dist/src/api/v2/models/fees.js +1 -2
  200. package/dist/src/api/v2/models/history-interval.js +1 -4
  201. package/dist/src/api/v2/models/index.d.ts +102 -100
  202. package/dist/src/api/v2/models/index.js +102 -116
  203. package/dist/src/api/v2/models/lp.d.ts +3 -3
  204. package/dist/src/api/v2/models/lp.js +1 -2
  205. package/dist/src/api/v2/models/manager.js +1 -2
  206. package/dist/src/api/v2/models/min-withdrawal-shares-updated-event.js +1 -2
  207. package/dist/src/api/v2/models/perps.d.ts +1 -1
  208. package/dist/src/api/v2/models/perps.js +1 -2
  209. package/dist/src/api/v2/models/pnl-by-chain.js +1 -2
  210. package/dist/src/api/v2/models/pnl-history-interval.js +1 -4
  211. package/dist/src/api/v2/models/pnl-history.js +1 -2
  212. package/dist/src/api/v2/models/poc-report-asset.js +1 -2
  213. package/dist/src/api/v2/models/poc-report-assets.d.ts +1 -1
  214. package/dist/src/api/v2/models/poc-report-assets.js +1 -2
  215. package/dist/src/api/v2/models/poc-report-exchange.d.ts +1 -1
  216. package/dist/src/api/v2/models/poc-report-exchange.js +1 -2
  217. package/dist/src/api/v2/models/poc-report-exchanges.d.ts +1 -1
  218. package/dist/src/api/v2/models/poc-report-exchanges.js +1 -2
  219. package/dist/src/api/v2/models/poc-report-protocol.js +1 -2
  220. package/dist/src/api/v2/models/poc-report-token.js +1 -2
  221. package/dist/src/api/v2/models/poc-report-wallet.d.ts +2 -2
  222. package/dist/src/api/v2/models/poc-report-wallet.js +1 -2
  223. package/dist/src/api/v2/models/poc-report-wallets.d.ts +1 -1
  224. package/dist/src/api/v2/models/poc-report-wallets.js +1 -2
  225. package/dist/src/api/v2/models/position-history-interval.js +1 -4
  226. package/dist/src/api/v2/models/position-value.js +1 -4
  227. package/dist/src/api/v2/models/position.js +1 -2
  228. package/dist/src/api/v2/models/process-requests-summary-event.js +1 -2
  229. package/dist/src/api/v2/models/proof-of-capital-report-status.js +1 -4
  230. package/dist/src/api/v2/models/proof-of-capital-report.d.ts +4 -4
  231. package/dist/src/api/v2/models/proof-of-capital-report.js +1 -2
  232. package/dist/src/api/v2/models/protocol-fee-collected-event.js +1 -2
  233. package/dist/src/api/v2/models/protocol-pnl-history.js +1 -2
  234. package/dist/src/api/v2/models/protocol-tvl-history.js +1 -2
  235. package/dist/src/api/v2/models/protocol.js +1 -2
  236. package/dist/src/api/v2/models/raw-event-event-data.d.ts +17 -17
  237. package/dist/src/api/v2/models/raw-event-event-data.js +1 -2
  238. package/dist/src/api/v2/models/raw-event.d.ts +1 -1
  239. package/dist/src/api/v2/models/raw-event.js +1 -4
  240. package/dist/src/api/v2/models/redeem-request-cancelled-transaction.d.ts +2 -2
  241. package/dist/src/api/v2/models/redeem-request-cancelled-transaction.js +1 -2
  242. package/dist/src/api/v2/models/redeem-request-processed-transaction.d.ts +2 -2
  243. package/dist/src/api/v2/models/redeem-request-processed-transaction.js +1 -2
  244. package/dist/src/api/v2/models/redeem-request-skipped-transaction.d.ts +2 -2
  245. package/dist/src/api/v2/models/redeem-request-skipped-transaction.js +1 -2
  246. package/dist/src/api/v2/models/redeem-request-transaction.d.ts +2 -2
  247. package/dist/src/api/v2/models/redeem-request-transaction.js +1 -2
  248. package/dist/src/api/v2/models/reported-apy.js +1 -2
  249. package/dist/src/api/v2/models/request-processed-event.js +1 -2
  250. package/dist/src/api/v2/models/request-redeemed-event.js +1 -2
  251. package/dist/src/api/v2/models/reward-token.js +1 -2
  252. package/dist/src/api/v2/models/reward.d.ts +1 -1
  253. package/dist/src/api/v2/models/reward.js +1 -2
  254. package/dist/src/api/v2/models/share-price-history.js +1 -2
  255. package/dist/src/api/v2/models/strategy-account.d.ts +1 -1
  256. package/dist/src/api/v2/models/strategy-account.js +1 -2
  257. package/dist/src/api/v2/models/strategy.js +1 -2
  258. package/dist/src/api/v2/models/sub-account.d.ts +1 -1
  259. package/dist/src/api/v2/models/sub-account.js +1 -2
  260. package/dist/src/api/v2/models/sui-protocol-info.d.ts +3 -3
  261. package/dist/src/api/v2/models/sui-protocol-info.js +1 -2
  262. package/dist/src/api/v2/models/supplied.d.ts +1 -1
  263. package/dist/src/api/v2/models/supplied.js +1 -2
  264. package/dist/src/api/v2/models/tag.js +1 -2
  265. package/dist/src/api/v2/models/tvl-by-chain.js +1 -2
  266. package/dist/src/api/v2/models/tvl-history.d.ts +1 -1
  267. package/dist/src/api/v2/models/tvl-history.js +1 -2
  268. package/dist/src/api/v2/models/ultra-coin-info.js +1 -2
  269. package/dist/src/api/v2/models/update-vault-strategies.d.ts +1 -1
  270. package/dist/src/api/v2/models/update-vault-strategies.js +1 -2
  271. package/dist/src/api/v2/models/vault-admin-changed-event.js +1 -2
  272. package/dist/src/api/v2/models/vault-created-event.js +1 -2
  273. package/dist/src/api/v2/models/vault-deposit-eligibility.js +1 -2
  274. package/dist/src/api/v2/models/vault-deposit-event.js +1 -2
  275. package/dist/src/api/v2/models/vault-deposit-without-minting-shares-event.js +1 -2
  276. package/dist/src/api/v2/models/vault-detail.d.ts +8 -8
  277. package/dist/src/api/v2/models/vault-detail.js +1 -4
  278. package/dist/src/api/v2/models/vault-fee-percentage-updated-event.js +1 -2
  279. package/dist/src/api/v2/models/vault-info.js +1 -2
  280. package/dist/src/api/v2/models/vault-max-tvl-updated-event.js +1 -2
  281. package/dist/src/api/v2/models/vault-operator-changed-event.js +1 -2
  282. package/dist/src/api/v2/models/vault-paused-status-updated-event.js +1 -2
  283. package/dist/src/api/v2/models/vault-platform-fee-charged-event.js +1 -2
  284. package/dist/src/api/v2/models/vault-proof-of-capital-summary.d.ts +2 -2
  285. package/dist/src/api/v2/models/vault-proof-of-capital-summary.js +1 -2
  286. package/dist/src/api/v2/models/vault-protocol.js +1 -2
  287. package/dist/src/api/v2/models/vault-rate-updated-event.js +1 -2
  288. package/dist/src/api/v2/models/vault-slice.js +1 -2
  289. package/dist/src/api/v2/models/vault-sub-account-updated-event.js +1 -2
  290. package/dist/src/api/v2/models/vault-tag.js +1 -2
  291. package/dist/src/api/v2/models/vault-withdrawal-without-redeeming-shares-event.js +1 -2
  292. package/dist/src/api/v2/models/vaults-deployment-config-config.d.ts +2 -2
  293. package/dist/src/api/v2/models/vaults-deployment-config-config.js +1 -2
  294. package/dist/src/api/v2/models/vaults-deployment-config.d.ts +1 -1
  295. package/dist/src/api/v2/models/vaults-deployment-config.js +1 -4
  296. package/dist/src/api/v2/models/vaults-stats.js +1 -2
  297. package/dist/src/api/v2/models/yield-aggregate-value.js +1 -2
  298. package/dist/src/common/constants.d.ts +8 -0
  299. package/dist/src/common/constants.js +11 -0
  300. package/dist/src/common/types.js +1 -2
  301. package/dist/src/ember-vaults.d.ts +23 -24
  302. package/dist/src/ember-vaults.js +35 -49
  303. package/dist/src/evm-vaults/index.d.ts +15 -3
  304. package/dist/src/evm-vaults/index.js +21 -19
  305. package/dist/src/evm-vaults/interfaces/index.d.ts +92 -47
  306. package/dist/src/evm-vaults/interfaces/index.js +1 -2
  307. package/dist/src/evm-vaults/on-chain-calls/admin.d.ts +4 -4
  308. package/dist/src/evm-vaults/on-chain-calls/admin.js +2 -6
  309. package/dist/src/evm-vaults/on-chain-calls/index.d.ts +7 -7
  310. package/dist/src/evm-vaults/on-chain-calls/index.js +7 -23
  311. package/dist/src/evm-vaults/on-chain-calls/onchain-calls.d.ts +5 -5
  312. package/dist/src/evm-vaults/on-chain-calls/onchain-calls.js +9 -13
  313. package/dist/src/evm-vaults/on-chain-calls/operator.d.ts +4 -4
  314. package/dist/src/evm-vaults/on-chain-calls/operator.js +2 -6
  315. package/dist/src/evm-vaults/on-chain-calls/tx-builder.d.ts +24 -5
  316. package/dist/src/evm-vaults/on-chain-calls/tx-builder.js +83 -41
  317. package/dist/src/evm-vaults/on-chain-calls/user.d.ts +20 -4
  318. package/dist/src/evm-vaults/on-chain-calls/user.js +61 -15
  319. package/dist/src/evm-vaults/on-chain-calls/vault-admin.d.ts +4 -4
  320. package/dist/src/evm-vaults/on-chain-calls/vault-admin.js +2 -6
  321. package/dist/src/evm-vaults/on-chain-calls/vault-reader.d.ts +39 -5
  322. package/dist/src/evm-vaults/on-chain-calls/vault-reader.js +119 -20
  323. package/dist/src/evm-vaults/utils/deployment-parser.d.ts +14 -8
  324. package/dist/src/evm-vaults/utils/deployment-parser.js +22 -15
  325. package/dist/src/evm-vaults/utils/index.d.ts +2 -2
  326. package/dist/src/evm-vaults/utils/index.js +2 -18
  327. package/dist/src/evm-vaults/utils/permit-utils.d.ts +2 -2
  328. package/dist/src/evm-vaults/utils/permit-utils.js +12 -53
  329. package/dist/src/index.d.ts +3 -3
  330. package/dist/src/index.js +3 -19
  331. package/dist/src/sui-vaults/index.d.ts +4 -4
  332. package/dist/src/sui-vaults/index.js +4 -20
  333. package/dist/src/sui-vaults/interfaces/bcs.js +15 -18
  334. package/dist/src/sui-vaults/interfaces/index.js +1 -2
  335. package/dist/src/sui-vaults/on-chain-calls/admin.d.ts +2 -2
  336. package/dist/src/sui-vaults/on-chain-calls/admin.js +13 -17
  337. package/dist/src/sui-vaults/on-chain-calls/index.d.ts +6 -6
  338. package/dist/src/sui-vaults/on-chain-calls/index.js +6 -22
  339. package/dist/src/sui-vaults/on-chain-calls/onchain-calls.d.ts +3 -3
  340. package/dist/src/sui-vaults/on-chain-calls/onchain-calls.js +8 -12
  341. package/dist/src/sui-vaults/on-chain-calls/operator.d.ts +2 -2
  342. package/dist/src/sui-vaults/on-chain-calls/operator.js +15 -19
  343. package/dist/src/sui-vaults/on-chain-calls/tx-builder.d.ts +2 -2
  344. package/dist/src/sui-vaults/on-chain-calls/tx-builder.js +46 -50
  345. package/dist/src/sui-vaults/on-chain-calls/user.d.ts +2 -2
  346. package/dist/src/sui-vaults/on-chain-calls/user.js +18 -22
  347. package/dist/src/sui-vaults/on-chain-calls/vault-admin.d.ts +2 -2
  348. package/dist/src/sui-vaults/on-chain-calls/vault-admin.js +10 -14
  349. package/dist/src/sui-vaults/on-chain-calls/vault.d.ts +1 -1
  350. package/dist/src/sui-vaults/on-chain-calls/vault.js +41 -30
  351. package/dist/src/sui-vaults/utils/common.js +3 -7
  352. package/dist/src/sui-vaults/utils/deployment-parser.d.ts +1 -1
  353. package/dist/src/sui-vaults/utils/deployment-parser.js +1 -5
  354. package/dist/src/sui-vaults/utils/index.d.ts +2 -2
  355. package/dist/src/sui-vaults/utils/index.js +2 -18
  356. package/package.json +28 -14
@@ -9,11 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { EvmDepositToken } from "./evm-deposit-token";
13
- import type { EvmPriceFeed } from "./evm-price-feed";
14
- import type { EvmProtocolConfig } from "./evm-protocol-config";
15
- import type { EvmReceiptToken } from "./evm-receipt-token";
16
- import type { EvmVault } from "./evm-vault";
12
+ import type { EvmDepositToken } from "./evm-deposit-token.js";
13
+ import type { EvmOFTAdapter } from "./evm-oftadapter.js";
14
+ import type { EvmPriceFeed } from "./evm-price-feed.js";
15
+ import type { EvmProtocolConfig } from "./evm-protocol-config.js";
16
+ import type { EvmReceiptToken } from "./evm-receipt-token.js";
17
+ import type { EvmVault } from "./evm-vault.js";
17
18
  /**
18
19
  *
19
20
  * @export
@@ -58,4 +59,12 @@ export interface EvmContracts {
58
59
  vaults?: {
59
60
  [key: string]: EvmVault;
60
61
  };
62
+ /**
63
+ * Map of OFT adapters by name
64
+ * @type {{ [key: string]: EvmOFTAdapter; }}
65
+ * @memberof EvmContracts
66
+ */
67
+ oftAdapters?: {
68
+ [key: string]: EvmOFTAdapter;
69
+ };
61
70
  }
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,4 +11,4 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
14
+ export {};
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,4 +11,4 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
14
+ export {};
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { EvmOFTPeer } from "./evm-oftpeer.js";
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface EvmOFTAdapter
17
+ */
18
+ export interface EvmOFTAdapter {
19
+ /**
20
+ * The OFT adapter contract address
21
+ * @type {string}
22
+ * @memberof EvmOFTAdapter
23
+ */
24
+ address?: string;
25
+ /**
26
+ * The contract name (e.g., EmberVaultMintBurnOFTAdapter)
27
+ * @type {string}
28
+ * @memberof EvmOFTAdapter
29
+ */
30
+ contractName?: string;
31
+ /**
32
+ * The key of the associated vault
33
+ * @type {string}
34
+ * @memberof EvmOFTAdapter
35
+ */
36
+ vaultKey?: string;
37
+ /**
38
+ * The address of the associated vault
39
+ * @type {string}
40
+ * @memberof EvmOFTAdapter
41
+ */
42
+ vaultAddress?: string;
43
+ /**
44
+ * The receipt token symbol
45
+ * @type {string}
46
+ * @memberof EvmOFTAdapter
47
+ */
48
+ receiptTokenSymbol?: string;
49
+ /**
50
+ * The LayerZero endpoint address
51
+ * @type {string}
52
+ * @memberof EvmOFTAdapter
53
+ */
54
+ lzEndpointAddress?: string;
55
+ /**
56
+ * The delegate address
57
+ * @type {string}
58
+ * @memberof EvmOFTAdapter
59
+ */
60
+ delegate?: string;
61
+ /**
62
+ * The owner address
63
+ * @type {string}
64
+ * @memberof EvmOFTAdapter
65
+ */
66
+ owner?: string;
67
+ /**
68
+ * The decimal conversion rate
69
+ * @type {string}
70
+ * @memberof EvmOFTAdapter
71
+ */
72
+ decimalConversionRate?: string;
73
+ /**
74
+ * The deployment timestamp
75
+ * @type {string}
76
+ * @memberof EvmOFTAdapter
77
+ */
78
+ deployedAt?: string;
79
+ /**
80
+ * The block number at which the contract was deployed
81
+ * @type {number}
82
+ * @memberof EvmOFTAdapter
83
+ */
84
+ deploymentBlockNumber?: number;
85
+ /**
86
+ * Map of peers by LayerZero endpoint ID
87
+ * @type {{ [key: string]: EvmOFTPeer; }}
88
+ * @memberof EvmOFTAdapter
89
+ */
90
+ peers?: {
91
+ [key: string]: EvmOFTPeer;
92
+ };
93
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Ember Protocol Vaults API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface EvmOFTPeer
16
+ */
17
+ export interface EvmOFTPeer {
18
+ /**
19
+ * The peer address in bytes32 format
20
+ * @type {string}
21
+ * @memberof EvmOFTPeer
22
+ */
23
+ peerAddress?: string;
24
+ /**
25
+ * The decoded peer address
26
+ * @type {string}
27
+ * @memberof EvmOFTPeer
28
+ */
29
+ decodedAddress?: string;
30
+ /**
31
+ * The timestamp when the peer was configured
32
+ * @type {string}
33
+ * @memberof EvmOFTPeer
34
+ */
35
+ configuredAt?: string;
36
+ /**
37
+ * The transaction hash of the peer configuration
38
+ * @type {string}
39
+ * @memberof EvmOFTPeer
40
+ */
41
+ txHash?: string;
42
+ /**
43
+ * The block number of the peer configuration
44
+ * @type {number}
45
+ * @memberof EvmOFTPeer
46
+ */
47
+ blockNumber?: number;
48
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Ember Protocol Vaults API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,4 +11,4 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
14
+ export {};
@@ -45,4 +45,10 @@ export interface EvmProtocolConfig {
45
45
  * @memberof EvmProtocolConfig
46
46
  */
47
47
  deployedAt?: string;
48
+ /**
49
+ * The block number at which the contract was deployed
50
+ * @type {number}
51
+ * @memberof EvmProtocolConfig
52
+ */
53
+ deploymentBlockNumber?: number;
48
54
  }
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,4 +11,4 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
14
+ export {};
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { EvmContracts } from "./evm-contracts";
12
+ import type { EvmContracts } from "./evm-contracts.js";
13
13
  /**
14
14
  *
15
15
  * @export
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,4 +11,4 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
14
+ export {};
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,4 +11,4 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
14
+ export {};
@@ -111,4 +111,28 @@ export interface EvmVault {
111
111
  * @memberof EvmVault
112
112
  */
113
113
  deploymentBlockNumber?: number;
114
+ /**
115
+ * The receipt token symbol
116
+ * @type {string}
117
+ * @memberof EvmVault
118
+ */
119
+ receiptTokenSymbol?: string;
120
+ /**
121
+ * The collateral token address
122
+ * @type {string}
123
+ * @memberof EvmVault
124
+ */
125
+ collateralToken?: string;
126
+ /**
127
+ * The bridge adapter contract address
128
+ * @type {string}
129
+ * @memberof EvmVault
130
+ */
131
+ bridgeAdapter?: string;
132
+ /**
133
+ * The timestamp when the bridge adapter was last updated
134
+ * @type {string}
135
+ * @memberof EvmVault
136
+ */
137
+ bridgeAdapterUpdatedAt?: string;
114
138
  }
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,4 +11,4 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
14
+ export {};
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Asset } from "./asset";
12
+ import type { Asset } from "./asset.js";
13
13
  /**
14
14
  *
15
15
  * @export
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,4 +11,4 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
14
+ export {};
@@ -9,12 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Borrowed } from "./borrowed";
13
- import type { Lp } from "./lp";
14
- import type { Perps } from "./perps";
15
- import type { Protocol } from "./protocol";
16
- import type { Reward } from "./reward";
17
- import type { Supplied } from "./supplied";
12
+ import type { Borrowed } from "./borrowed.js";
13
+ import type { Lp } from "./lp.js";
14
+ import type { Perps } from "./perps.js";
15
+ import type { Protocol } from "./protocol.js";
16
+ import type { Reward } from "./reward.js";
17
+ import type { Supplied } from "./supplied.js";
18
18
  /**
19
19
  *
20
20
  * @export
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,4 +11,4 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
14
+ export {};
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ExposureCoin } from "./exposure-coin";
13
- import type { ExposureProtocol } from "./exposure-protocol";
12
+ import type { ExposureCoin } from "./exposure-coin.js";
13
+ import type { ExposureProtocol } from "./exposure-protocol.js";
14
14
  /**
15
15
  *
16
16
  * @export
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,4 +11,4 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
14
+ export {};
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Asset } from "./asset";
12
+ import type { Asset } from "./asset.js";
13
13
  /**
14
14
  *
15
15
  * @export
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,4 +11,4 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
14
+ export {};
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,4 +11,4 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
14
+ export {};
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,14 +11,12 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.HistoryInterval = void 0;
17
14
  /**
18
15
  *
19
16
  * @export
20
17
  * @enum {string}
21
18
  */
22
- exports.HistoryInterval = {
19
+ export const HistoryInterval = {
23
20
  _1h: "1h",
24
21
  _1d: "1d",
25
22
  _1w: "1w",