@nirvana-labs/nirvana 1.9.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (678) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/bin/migration-config.json +70 -0
  3. package/client.d.mts +3 -0
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +3 -0
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/index.d.mts +1 -0
  13. package/resources/index.d.mts.map +1 -1
  14. package/resources/index.d.ts +1 -0
  15. package/resources/index.d.ts.map +1 -1
  16. package/resources/index.js +3 -1
  17. package/resources/index.js.map +1 -1
  18. package/resources/index.mjs +1 -0
  19. package/resources/index.mjs.map +1 -1
  20. package/resources/vektor/balances.d.mts +114 -0
  21. package/resources/vektor/balances.d.mts.map +1 -0
  22. package/resources/vektor/balances.d.ts +114 -0
  23. package/resources/vektor/balances.d.ts.map +1 -0
  24. package/resources/vektor/balances.js +44 -0
  25. package/resources/vektor/balances.js.map +1 -0
  26. package/resources/vektor/balances.mjs +40 -0
  27. package/resources/vektor/balances.mjs.map +1 -0
  28. package/resources/vektor/borrow/accounts.d.mts +114 -0
  29. package/resources/vektor/borrow/accounts.d.mts.map +1 -0
  30. package/resources/vektor/borrow/accounts.d.ts +114 -0
  31. package/resources/vektor/borrow/accounts.d.ts.map +1 -0
  32. package/resources/vektor/borrow/accounts.js +44 -0
  33. package/resources/vektor/borrow/accounts.js.map +1 -0
  34. package/resources/vektor/borrow/accounts.mjs +40 -0
  35. package/resources/vektor/borrow/accounts.mjs.map +1 -0
  36. package/resources/vektor/borrow/borrow.d.mts +22 -0
  37. package/resources/vektor/borrow/borrow.d.mts.map +1 -0
  38. package/resources/vektor/borrow/borrow.d.ts +22 -0
  39. package/resources/vektor/borrow/borrow.d.ts.map +1 -0
  40. package/resources/vektor/borrow/borrow.js +29 -0
  41. package/resources/vektor/borrow/borrow.js.map +1 -0
  42. package/resources/vektor/borrow/borrow.mjs +24 -0
  43. package/resources/vektor/borrow/borrow.mjs.map +1 -0
  44. package/resources/vektor/borrow/borrow_.d.mts +47 -0
  45. package/resources/vektor/borrow/borrow_.d.mts.map +1 -0
  46. package/resources/vektor/borrow/borrow_.d.ts +47 -0
  47. package/resources/vektor/borrow/borrow_.d.ts.map +1 -0
  48. package/resources/vektor/borrow/borrow_.js +26 -0
  49. package/resources/vektor/borrow/borrow_.js.map +1 -0
  50. package/resources/vektor/borrow/borrow_.mjs +22 -0
  51. package/resources/vektor/borrow/borrow_.mjs.map +1 -0
  52. package/resources/vektor/borrow/index.d.mts +6 -0
  53. package/resources/vektor/borrow/index.d.mts.map +1 -0
  54. package/resources/vektor/borrow/index.d.ts +6 -0
  55. package/resources/vektor/borrow/index.d.ts.map +1 -0
  56. package/resources/vektor/borrow/index.js +13 -0
  57. package/resources/vektor/borrow/index.js.map +1 -0
  58. package/resources/vektor/borrow/index.mjs +6 -0
  59. package/resources/vektor/borrow/index.mjs.map +1 -0
  60. package/resources/vektor/borrow/markets.d.mts +158 -0
  61. package/resources/vektor/borrow/markets.d.mts.map +1 -0
  62. package/resources/vektor/borrow/markets.d.ts +158 -0
  63. package/resources/vektor/borrow/markets.d.ts.map +1 -0
  64. package/resources/vektor/borrow/markets.js +42 -0
  65. package/resources/vektor/borrow/markets.js.map +1 -0
  66. package/resources/vektor/borrow/markets.mjs +38 -0
  67. package/resources/vektor/borrow/markets.mjs.map +1 -0
  68. package/resources/vektor/borrow/positions.d.mts +182 -0
  69. package/resources/vektor/borrow/positions.d.mts.map +1 -0
  70. package/resources/vektor/borrow/positions.d.ts +182 -0
  71. package/resources/vektor/borrow/positions.d.ts.map +1 -0
  72. package/resources/vektor/borrow/positions.js +50 -0
  73. package/resources/vektor/borrow/positions.js.map +1 -0
  74. package/resources/vektor/borrow/positions.mjs +46 -0
  75. package/resources/vektor/borrow/positions.mjs.map +1 -0
  76. package/resources/vektor/borrow.d.mts +2 -0
  77. package/resources/vektor/borrow.d.mts.map +1 -0
  78. package/resources/vektor/borrow.d.ts +2 -0
  79. package/resources/vektor/borrow.d.ts.map +1 -0
  80. package/resources/vektor/borrow.js +6 -0
  81. package/resources/vektor/borrow.js.map +1 -0
  82. package/resources/vektor/borrow.mjs +3 -0
  83. package/resources/vektor/borrow.mjs.map +1 -0
  84. package/resources/vektor/bridge/bridge.d.mts +10 -0
  85. package/resources/vektor/bridge/bridge.d.mts.map +1 -0
  86. package/resources/vektor/bridge/bridge.d.ts +10 -0
  87. package/resources/vektor/bridge/bridge.d.ts.map +1 -0
  88. package/resources/vektor/bridge/bridge.js +17 -0
  89. package/resources/vektor/bridge/bridge.js.map +1 -0
  90. package/resources/vektor/bridge/bridge.mjs +12 -0
  91. package/resources/vektor/bridge/bridge.mjs.map +1 -0
  92. package/resources/vektor/bridge/index.d.mts +3 -0
  93. package/resources/vektor/bridge/index.d.mts.map +1 -0
  94. package/resources/vektor/bridge/index.d.ts +3 -0
  95. package/resources/vektor/bridge/index.d.ts.map +1 -0
  96. package/resources/vektor/bridge/index.js +9 -0
  97. package/resources/vektor/bridge/index.js.map +1 -0
  98. package/resources/vektor/bridge/index.mjs +4 -0
  99. package/resources/vektor/bridge/index.mjs.map +1 -0
  100. package/resources/vektor/bridge/quotes.d.mts +57 -0
  101. package/resources/vektor/bridge/quotes.d.mts.map +1 -0
  102. package/resources/vektor/bridge/quotes.d.ts +57 -0
  103. package/resources/vektor/bridge/quotes.d.ts.map +1 -0
  104. package/resources/vektor/bridge/quotes.js +26 -0
  105. package/resources/vektor/bridge/quotes.js.map +1 -0
  106. package/resources/vektor/bridge/quotes.mjs +22 -0
  107. package/resources/vektor/bridge/quotes.mjs.map +1 -0
  108. package/resources/vektor/bridge.d.mts +2 -0
  109. package/resources/vektor/bridge.d.mts.map +1 -0
  110. package/resources/vektor/bridge.d.ts +2 -0
  111. package/resources/vektor/bridge.d.ts.map +1 -0
  112. package/resources/vektor/bridge.js +6 -0
  113. package/resources/vektor/bridge.js.map +1 -0
  114. package/resources/vektor/bridge.mjs +3 -0
  115. package/resources/vektor/bridge.mjs.map +1 -0
  116. package/resources/vektor/buy/buy.d.mts +14 -0
  117. package/resources/vektor/buy/buy.d.mts.map +1 -0
  118. package/resources/vektor/buy/buy.d.ts +14 -0
  119. package/resources/vektor/buy/buy.d.ts.map +1 -0
  120. package/resources/vektor/buy/buy.js +21 -0
  121. package/resources/vektor/buy/buy.js.map +1 -0
  122. package/resources/vektor/buy/buy.mjs +16 -0
  123. package/resources/vektor/buy/buy.mjs.map +1 -0
  124. package/resources/vektor/buy/buy_.d.mts +56 -0
  125. package/resources/vektor/buy/buy_.d.mts.map +1 -0
  126. package/resources/vektor/buy/buy_.d.ts +56 -0
  127. package/resources/vektor/buy/buy_.d.ts.map +1 -0
  128. package/resources/vektor/buy/buy_.js +27 -0
  129. package/resources/vektor/buy/buy_.js.map +1 -0
  130. package/resources/vektor/buy/buy_.mjs +23 -0
  131. package/resources/vektor/buy/buy_.mjs.map +1 -0
  132. package/resources/vektor/buy/index.d.mts +4 -0
  133. package/resources/vektor/buy/index.d.mts.map +1 -0
  134. package/resources/vektor/buy/index.d.ts +4 -0
  135. package/resources/vektor/buy/index.d.ts.map +1 -0
  136. package/resources/vektor/buy/index.js +9 -0
  137. package/resources/vektor/buy/index.js.map +1 -0
  138. package/resources/vektor/buy/index.mjs +4 -0
  139. package/resources/vektor/buy/index.mjs.map +1 -0
  140. package/resources/vektor/buy/quotes.d.mts +57 -0
  141. package/resources/vektor/buy/quotes.d.mts.map +1 -0
  142. package/resources/vektor/buy/quotes.d.ts +57 -0
  143. package/resources/vektor/buy/quotes.d.ts.map +1 -0
  144. package/resources/vektor/buy/quotes.js +26 -0
  145. package/resources/vektor/buy/quotes.js.map +1 -0
  146. package/resources/vektor/buy/quotes.mjs +22 -0
  147. package/resources/vektor/buy/quotes.mjs.map +1 -0
  148. package/resources/vektor/buy.d.mts +2 -0
  149. package/resources/vektor/buy.d.mts.map +1 -0
  150. package/resources/vektor/buy.d.ts +2 -0
  151. package/resources/vektor/buy.d.ts.map +1 -0
  152. package/resources/vektor/buy.js +6 -0
  153. package/resources/vektor/buy.js.map +1 -0
  154. package/resources/vektor/buy.mjs +3 -0
  155. package/resources/vektor/buy.mjs.map +1 -0
  156. package/resources/vektor/executions/executions.d.mts +38 -0
  157. package/resources/vektor/executions/executions.d.mts.map +1 -0
  158. package/resources/vektor/executions/executions.d.ts +38 -0
  159. package/resources/vektor/executions/executions.d.ts.map +1 -0
  160. package/resources/vektor/executions/executions.js +42 -0
  161. package/resources/vektor/executions/executions.js.map +1 -0
  162. package/resources/vektor/executions/executions.mjs +37 -0
  163. package/resources/vektor/executions/executions.mjs.map +1 -0
  164. package/resources/vektor/executions/index.d.mts +3 -0
  165. package/resources/vektor/executions/index.d.mts.map +1 -0
  166. package/resources/vektor/executions/index.d.ts +3 -0
  167. package/resources/vektor/executions/index.d.ts.map +1 -0
  168. package/resources/vektor/executions/index.js +9 -0
  169. package/resources/vektor/executions/index.js.map +1 -0
  170. package/resources/vektor/executions/index.mjs +4 -0
  171. package/resources/vektor/executions/index.mjs.map +1 -0
  172. package/resources/vektor/executions/steps.d.mts +1225 -0
  173. package/resources/vektor/executions/steps.d.mts.map +1 -0
  174. package/resources/vektor/executions/steps.d.ts +1225 -0
  175. package/resources/vektor/executions/steps.d.ts.map +1 -0
  176. package/resources/vektor/executions/steps.js +45 -0
  177. package/resources/vektor/executions/steps.js.map +1 -0
  178. package/resources/vektor/executions/steps.mjs +41 -0
  179. package/resources/vektor/executions/steps.mjs.map +1 -0
  180. package/resources/vektor/executions.d.mts +2 -0
  181. package/resources/vektor/executions.d.mts.map +1 -0
  182. package/resources/vektor/executions.d.ts +2 -0
  183. package/resources/vektor/executions.d.ts.map +1 -0
  184. package/resources/vektor/executions.js +6 -0
  185. package/resources/vektor/executions.js.map +1 -0
  186. package/resources/vektor/executions.mjs +3 -0
  187. package/resources/vektor/executions.mjs.map +1 -0
  188. package/resources/vektor/incentivize.d.mts +47 -0
  189. package/resources/vektor/incentivize.d.mts.map +1 -0
  190. package/resources/vektor/incentivize.d.ts +47 -0
  191. package/resources/vektor/incentivize.d.ts.map +1 -0
  192. package/resources/vektor/incentivize.js +24 -0
  193. package/resources/vektor/incentivize.js.map +1 -0
  194. package/resources/vektor/incentivize.mjs +20 -0
  195. package/resources/vektor/incentivize.mjs.map +1 -0
  196. package/resources/vektor/index.d.mts +17 -0
  197. package/resources/vektor/index.d.mts.map +1 -0
  198. package/resources/vektor/index.d.ts +17 -0
  199. package/resources/vektor/index.d.ts.map +1 -0
  200. package/resources/vektor/index.js +37 -0
  201. package/resources/vektor/index.js.map +1 -0
  202. package/resources/vektor/index.mjs +18 -0
  203. package/resources/vektor/index.mjs.map +1 -0
  204. package/resources/vektor/lend/index.d.mts +7 -0
  205. package/resources/vektor/lend/index.d.mts.map +1 -0
  206. package/resources/vektor/lend/index.d.ts +7 -0
  207. package/resources/vektor/lend/index.d.ts.map +1 -0
  208. package/resources/vektor/lend/index.js +15 -0
  209. package/resources/vektor/lend/index.js.map +1 -0
  210. package/resources/vektor/lend/index.mjs +7 -0
  211. package/resources/vektor/lend/index.mjs.map +1 -0
  212. package/resources/vektor/lend/lend.d.mts +26 -0
  213. package/resources/vektor/lend/lend.d.mts.map +1 -0
  214. package/resources/vektor/lend/lend.d.ts +26 -0
  215. package/resources/vektor/lend/lend.d.ts.map +1 -0
  216. package/resources/vektor/lend/lend.js +33 -0
  217. package/resources/vektor/lend/lend.js.map +1 -0
  218. package/resources/vektor/lend/lend.mjs +28 -0
  219. package/resources/vektor/lend/lend.mjs.map +1 -0
  220. package/resources/vektor/lend/lend_.d.mts +47 -0
  221. package/resources/vektor/lend/lend_.d.mts.map +1 -0
  222. package/resources/vektor/lend/lend_.d.ts +47 -0
  223. package/resources/vektor/lend/lend_.d.ts.map +1 -0
  224. package/resources/vektor/lend/lend_.js +26 -0
  225. package/resources/vektor/lend/lend_.js.map +1 -0
  226. package/resources/vektor/lend/lend_.mjs +22 -0
  227. package/resources/vektor/lend/lend_.mjs.map +1 -0
  228. package/resources/vektor/lend/markets.d.mts +158 -0
  229. package/resources/vektor/lend/markets.d.mts.map +1 -0
  230. package/resources/vektor/lend/markets.d.ts +158 -0
  231. package/resources/vektor/lend/markets.d.ts.map +1 -0
  232. package/resources/vektor/lend/markets.js +42 -0
  233. package/resources/vektor/lend/markets.js.map +1 -0
  234. package/resources/vektor/lend/markets.mjs +38 -0
  235. package/resources/vektor/lend/markets.mjs.map +1 -0
  236. package/resources/vektor/lend/positions.d.mts +178 -0
  237. package/resources/vektor/lend/positions.d.mts.map +1 -0
  238. package/resources/vektor/lend/positions.d.ts +178 -0
  239. package/resources/vektor/lend/positions.d.ts.map +1 -0
  240. package/resources/vektor/lend/positions.js +46 -0
  241. package/resources/vektor/lend/positions.js.map +1 -0
  242. package/resources/vektor/lend/positions.mjs +42 -0
  243. package/resources/vektor/lend/positions.mjs.map +1 -0
  244. package/resources/vektor/lend/set-collateral.d.mts +42 -0
  245. package/resources/vektor/lend/set-collateral.d.mts.map +1 -0
  246. package/resources/vektor/lend/set-collateral.d.ts +42 -0
  247. package/resources/vektor/lend/set-collateral.d.ts.map +1 -0
  248. package/resources/vektor/lend/set-collateral.js +27 -0
  249. package/resources/vektor/lend/set-collateral.js.map +1 -0
  250. package/resources/vektor/lend/set-collateral.mjs +23 -0
  251. package/resources/vektor/lend/set-collateral.mjs.map +1 -0
  252. package/resources/vektor/lend/withdraw.d.mts +47 -0
  253. package/resources/vektor/lend/withdraw.d.mts.map +1 -0
  254. package/resources/vektor/lend/withdraw.d.ts +47 -0
  255. package/resources/vektor/lend/withdraw.d.ts.map +1 -0
  256. package/resources/vektor/lend/withdraw.js +25 -0
  257. package/resources/vektor/lend/withdraw.js.map +1 -0
  258. package/resources/vektor/lend/withdraw.mjs +21 -0
  259. package/resources/vektor/lend/withdraw.mjs.map +1 -0
  260. package/resources/vektor/lend.d.mts +2 -0
  261. package/resources/vektor/lend.d.mts.map +1 -0
  262. package/resources/vektor/lend.d.ts +2 -0
  263. package/resources/vektor/lend.d.ts.map +1 -0
  264. package/resources/vektor/lend.js +6 -0
  265. package/resources/vektor/lend.js.map +1 -0
  266. package/resources/vektor/lend.mjs +3 -0
  267. package/resources/vektor/lend.mjs.map +1 -0
  268. package/resources/vektor/lock/index.d.mts +4 -0
  269. package/resources/vektor/lock/index.d.mts.map +1 -0
  270. package/resources/vektor/lock/index.d.ts +4 -0
  271. package/resources/vektor/lock/index.d.ts.map +1 -0
  272. package/resources/vektor/lock/index.js +11 -0
  273. package/resources/vektor/lock/index.js.map +1 -0
  274. package/resources/vektor/lock/index.mjs +5 -0
  275. package/resources/vektor/lock/index.mjs.map +1 -0
  276. package/resources/vektor/lock/lock.d.mts +14 -0
  277. package/resources/vektor/lock/lock.d.mts.map +1 -0
  278. package/resources/vektor/lock/lock.d.ts +14 -0
  279. package/resources/vektor/lock/lock.d.ts.map +1 -0
  280. package/resources/vektor/lock/lock.js +21 -0
  281. package/resources/vektor/lock/lock.js.map +1 -0
  282. package/resources/vektor/lock/lock.mjs +16 -0
  283. package/resources/vektor/lock/lock.mjs.map +1 -0
  284. package/resources/vektor/lock/markets.d.mts +43 -0
  285. package/resources/vektor/lock/markets.d.mts.map +1 -0
  286. package/resources/vektor/lock/markets.d.ts +43 -0
  287. package/resources/vektor/lock/markets.d.ts.map +1 -0
  288. package/resources/vektor/lock/markets.js +24 -0
  289. package/resources/vektor/lock/markets.js.map +1 -0
  290. package/resources/vektor/lock/markets.mjs +20 -0
  291. package/resources/vektor/lock/markets.mjs.map +1 -0
  292. package/resources/vektor/lock/positions.d.mts +48 -0
  293. package/resources/vektor/lock/positions.d.mts.map +1 -0
  294. package/resources/vektor/lock/positions.d.ts +48 -0
  295. package/resources/vektor/lock/positions.d.ts.map +1 -0
  296. package/resources/vektor/lock/positions.js +25 -0
  297. package/resources/vektor/lock/positions.js.map +1 -0
  298. package/resources/vektor/lock/positions.mjs +21 -0
  299. package/resources/vektor/lock/positions.mjs.map +1 -0
  300. package/resources/vektor/lock.d.mts +2 -0
  301. package/resources/vektor/lock.d.mts.map +1 -0
  302. package/resources/vektor/lock.d.ts +2 -0
  303. package/resources/vektor/lock.d.ts.map +1 -0
  304. package/resources/vektor/lock.js +6 -0
  305. package/resources/vektor/lock.js.map +1 -0
  306. package/resources/vektor/lock.mjs +3 -0
  307. package/resources/vektor/lock.mjs.map +1 -0
  308. package/resources/vektor/lp/deposit-quote.d.mts +119 -0
  309. package/resources/vektor/lp/deposit-quote.d.mts.map +1 -0
  310. package/resources/vektor/lp/deposit-quote.d.ts +119 -0
  311. package/resources/vektor/lp/deposit-quote.d.ts.map +1 -0
  312. package/resources/vektor/lp/deposit-quote.js +27 -0
  313. package/resources/vektor/lp/deposit-quote.js.map +1 -0
  314. package/resources/vektor/lp/deposit-quote.mjs +23 -0
  315. package/resources/vektor/lp/deposit-quote.mjs.map +1 -0
  316. package/resources/vektor/lp/index.d.mts +6 -0
  317. package/resources/vektor/lp/index.d.mts.map +1 -0
  318. package/resources/vektor/lp/index.d.ts +6 -0
  319. package/resources/vektor/lp/index.d.ts.map +1 -0
  320. package/resources/vektor/lp/index.js +15 -0
  321. package/resources/vektor/lp/index.js.map +1 -0
  322. package/resources/vektor/lp/index.mjs +7 -0
  323. package/resources/vektor/lp/index.mjs.map +1 -0
  324. package/resources/vektor/lp/lp.d.mts +22 -0
  325. package/resources/vektor/lp/lp.d.mts.map +1 -0
  326. package/resources/vektor/lp/lp.d.ts +22 -0
  327. package/resources/vektor/lp/lp.d.ts.map +1 -0
  328. package/resources/vektor/lp/lp.js +29 -0
  329. package/resources/vektor/lp/lp.js.map +1 -0
  330. package/resources/vektor/lp/lp.mjs +24 -0
  331. package/resources/vektor/lp/lp.mjs.map +1 -0
  332. package/resources/vektor/lp/pools.d.mts +158 -0
  333. package/resources/vektor/lp/pools.d.mts.map +1 -0
  334. package/resources/vektor/lp/pools.d.ts +158 -0
  335. package/resources/vektor/lp/pools.d.ts.map +1 -0
  336. package/resources/vektor/lp/pools.js +42 -0
  337. package/resources/vektor/lp/pools.js.map +1 -0
  338. package/resources/vektor/lp/pools.mjs +38 -0
  339. package/resources/vektor/lp/pools.mjs.map +1 -0
  340. package/resources/vektor/lp/positions.d.mts +194 -0
  341. package/resources/vektor/lp/positions.d.mts.map +1 -0
  342. package/resources/vektor/lp/positions.d.ts +194 -0
  343. package/resources/vektor/lp/positions.d.ts.map +1 -0
  344. package/resources/vektor/lp/positions.js +46 -0
  345. package/resources/vektor/lp/positions.js.map +1 -0
  346. package/resources/vektor/lp/positions.mjs +42 -0
  347. package/resources/vektor/lp/positions.mjs.map +1 -0
  348. package/resources/vektor/lp/withdraw-quote.d.mts +73 -0
  349. package/resources/vektor/lp/withdraw-quote.d.mts.map +1 -0
  350. package/resources/vektor/lp/withdraw-quote.d.ts +73 -0
  351. package/resources/vektor/lp/withdraw-quote.d.ts.map +1 -0
  352. package/resources/vektor/lp/withdraw-quote.js +27 -0
  353. package/resources/vektor/lp/withdraw-quote.js.map +1 -0
  354. package/resources/vektor/lp/withdraw-quote.mjs +23 -0
  355. package/resources/vektor/lp/withdraw-quote.mjs.map +1 -0
  356. package/resources/vektor/lp.d.mts +2 -0
  357. package/resources/vektor/lp.d.mts.map +1 -0
  358. package/resources/vektor/lp.d.ts +2 -0
  359. package/resources/vektor/lp.d.ts.map +1 -0
  360. package/resources/vektor/lp.js +6 -0
  361. package/resources/vektor/lp.js.map +1 -0
  362. package/resources/vektor/lp.mjs +3 -0
  363. package/resources/vektor/lp.mjs.map +1 -0
  364. package/resources/vektor/move.d.mts +47 -0
  365. package/resources/vektor/move.d.mts.map +1 -0
  366. package/resources/vektor/move.d.ts +47 -0
  367. package/resources/vektor/move.d.ts.map +1 -0
  368. package/resources/vektor/move.js +26 -0
  369. package/resources/vektor/move.js.map +1 -0
  370. package/resources/vektor/move.mjs +22 -0
  371. package/resources/vektor/move.mjs.map +1 -0
  372. package/resources/vektor/prices.d.mts +77 -0
  373. package/resources/vektor/prices.d.mts.map +1 -0
  374. package/resources/vektor/prices.d.ts +77 -0
  375. package/resources/vektor/prices.d.ts.map +1 -0
  376. package/resources/vektor/prices.js +35 -0
  377. package/resources/vektor/prices.js.map +1 -0
  378. package/resources/vektor/prices.mjs +31 -0
  379. package/resources/vektor/prices.mjs.map +1 -0
  380. package/resources/vektor/registry/assets.d.mts +39 -0
  381. package/resources/vektor/registry/assets.d.mts.map +1 -0
  382. package/resources/vektor/registry/assets.d.ts +39 -0
  383. package/resources/vektor/registry/assets.d.ts.map +1 -0
  384. package/resources/vektor/registry/assets.js +20 -0
  385. package/resources/vektor/registry/assets.js.map +1 -0
  386. package/resources/vektor/registry/assets.mjs +16 -0
  387. package/resources/vektor/registry/assets.mjs.map +1 -0
  388. package/resources/vektor/registry/blockchains.d.mts +36 -0
  389. package/resources/vektor/registry/blockchains.d.mts.map +1 -0
  390. package/resources/vektor/registry/blockchains.d.ts +36 -0
  391. package/resources/vektor/registry/blockchains.d.ts.map +1 -0
  392. package/resources/vektor/registry/blockchains.js +21 -0
  393. package/resources/vektor/registry/blockchains.js.map +1 -0
  394. package/resources/vektor/registry/blockchains.mjs +17 -0
  395. package/resources/vektor/registry/blockchains.mjs.map +1 -0
  396. package/resources/vektor/registry/borrow-markets.d.mts +46 -0
  397. package/resources/vektor/registry/borrow-markets.d.mts.map +1 -0
  398. package/resources/vektor/registry/borrow-markets.d.ts +46 -0
  399. package/resources/vektor/registry/borrow-markets.d.ts.map +1 -0
  400. package/resources/vektor/registry/borrow-markets.js +22 -0
  401. package/resources/vektor/registry/borrow-markets.js.map +1 -0
  402. package/resources/vektor/registry/borrow-markets.mjs +18 -0
  403. package/resources/vektor/registry/borrow-markets.mjs.map +1 -0
  404. package/resources/vektor/registry/errors.d.mts +28 -0
  405. package/resources/vektor/registry/errors.d.mts.map +1 -0
  406. package/resources/vektor/registry/errors.d.ts +28 -0
  407. package/resources/vektor/registry/errors.d.ts.map +1 -0
  408. package/resources/vektor/registry/errors.js +20 -0
  409. package/resources/vektor/registry/errors.js.map +1 -0
  410. package/resources/vektor/registry/errors.mjs +16 -0
  411. package/resources/vektor/registry/errors.mjs.map +1 -0
  412. package/resources/vektor/registry/index.d.mts +9 -0
  413. package/resources/vektor/registry/index.d.mts.map +1 -0
  414. package/resources/vektor/registry/index.d.ts +9 -0
  415. package/resources/vektor/registry/index.d.ts.map +1 -0
  416. package/resources/vektor/registry/index.js +21 -0
  417. package/resources/vektor/registry/index.js.map +1 -0
  418. package/resources/vektor/registry/index.mjs +10 -0
  419. package/resources/vektor/registry/index.mjs.map +1 -0
  420. package/resources/vektor/registry/lend-markets.d.mts +46 -0
  421. package/resources/vektor/registry/lend-markets.d.mts.map +1 -0
  422. package/resources/vektor/registry/lend-markets.d.ts +46 -0
  423. package/resources/vektor/registry/lend-markets.d.ts.map +1 -0
  424. package/resources/vektor/registry/lend-markets.js +22 -0
  425. package/resources/vektor/registry/lend-markets.js.map +1 -0
  426. package/resources/vektor/registry/lend-markets.mjs +18 -0
  427. package/resources/vektor/registry/lend-markets.mjs.map +1 -0
  428. package/resources/vektor/registry/lp-pools.d.mts +44 -0
  429. package/resources/vektor/registry/lp-pools.d.mts.map +1 -0
  430. package/resources/vektor/registry/lp-pools.d.ts +44 -0
  431. package/resources/vektor/registry/lp-pools.d.ts.map +1 -0
  432. package/resources/vektor/registry/lp-pools.js +21 -0
  433. package/resources/vektor/registry/lp-pools.js.map +1 -0
  434. package/resources/vektor/registry/lp-pools.mjs +17 -0
  435. package/resources/vektor/registry/lp-pools.mjs.map +1 -0
  436. package/resources/vektor/registry/registry.d.mts +34 -0
  437. package/resources/vektor/registry/registry.d.mts.map +1 -0
  438. package/resources/vektor/registry/registry.d.ts +34 -0
  439. package/resources/vektor/registry/registry.d.ts.map +1 -0
  440. package/resources/vektor/registry/registry.js +41 -0
  441. package/resources/vektor/registry/registry.js.map +1 -0
  442. package/resources/vektor/registry/registry.mjs +36 -0
  443. package/resources/vektor/registry/registry.mjs.map +1 -0
  444. package/resources/vektor/registry/venues.d.mts +35 -0
  445. package/resources/vektor/registry/venues.d.mts.map +1 -0
  446. package/resources/vektor/registry/venues.d.ts +35 -0
  447. package/resources/vektor/registry/venues.d.ts.map +1 -0
  448. package/resources/vektor/registry/venues.js +20 -0
  449. package/resources/vektor/registry/venues.js.map +1 -0
  450. package/resources/vektor/registry/venues.mjs +16 -0
  451. package/resources/vektor/registry/venues.mjs.map +1 -0
  452. package/resources/vektor/registry.d.mts +2 -0
  453. package/resources/vektor/registry.d.mts.map +1 -0
  454. package/resources/vektor/registry.d.ts +2 -0
  455. package/resources/vektor/registry.d.ts.map +1 -0
  456. package/resources/vektor/registry.js +6 -0
  457. package/resources/vektor/registry.js.map +1 -0
  458. package/resources/vektor/registry.mjs +3 -0
  459. package/resources/vektor/registry.mjs.map +1 -0
  460. package/resources/vektor/sell/index.d.mts +4 -0
  461. package/resources/vektor/sell/index.d.mts.map +1 -0
  462. package/resources/vektor/sell/index.d.ts +4 -0
  463. package/resources/vektor/sell/index.d.ts.map +1 -0
  464. package/resources/vektor/sell/index.js +9 -0
  465. package/resources/vektor/sell/index.js.map +1 -0
  466. package/resources/vektor/sell/index.mjs +4 -0
  467. package/resources/vektor/sell/index.mjs.map +1 -0
  468. package/resources/vektor/sell/quotes.d.mts +57 -0
  469. package/resources/vektor/sell/quotes.d.mts.map +1 -0
  470. package/resources/vektor/sell/quotes.d.ts +57 -0
  471. package/resources/vektor/sell/quotes.d.ts.map +1 -0
  472. package/resources/vektor/sell/quotes.js +26 -0
  473. package/resources/vektor/sell/quotes.js.map +1 -0
  474. package/resources/vektor/sell/quotes.mjs +22 -0
  475. package/resources/vektor/sell/quotes.mjs.map +1 -0
  476. package/resources/vektor/sell/sell.d.mts +14 -0
  477. package/resources/vektor/sell/sell.d.mts.map +1 -0
  478. package/resources/vektor/sell/sell.d.ts +14 -0
  479. package/resources/vektor/sell/sell.d.ts.map +1 -0
  480. package/resources/vektor/sell/sell.js +21 -0
  481. package/resources/vektor/sell/sell.js.map +1 -0
  482. package/resources/vektor/sell/sell.mjs +16 -0
  483. package/resources/vektor/sell/sell.mjs.map +1 -0
  484. package/resources/vektor/sell/sell_.d.mts +56 -0
  485. package/resources/vektor/sell/sell_.d.mts.map +1 -0
  486. package/resources/vektor/sell/sell_.d.ts +56 -0
  487. package/resources/vektor/sell/sell_.d.ts.map +1 -0
  488. package/resources/vektor/sell/sell_.js +27 -0
  489. package/resources/vektor/sell/sell_.js.map +1 -0
  490. package/resources/vektor/sell/sell_.mjs +23 -0
  491. package/resources/vektor/sell/sell_.mjs.map +1 -0
  492. package/resources/vektor/sell.d.mts +2 -0
  493. package/resources/vektor/sell.d.mts.map +1 -0
  494. package/resources/vektor/sell.d.ts +2 -0
  495. package/resources/vektor/sell.d.ts.map +1 -0
  496. package/resources/vektor/sell.js +6 -0
  497. package/resources/vektor/sell.js.map +1 -0
  498. package/resources/vektor/sell.mjs +3 -0
  499. package/resources/vektor/sell.mjs.map +1 -0
  500. package/resources/vektor/vektor.d.mts +2974 -0
  501. package/resources/vektor/vektor.d.mts.map +1 -0
  502. package/resources/vektor/vektor.d.ts +2974 -0
  503. package/resources/vektor/vektor.d.ts.map +1 -0
  504. package/resources/vektor/vektor.js +73 -0
  505. package/resources/vektor/vektor.js.map +1 -0
  506. package/resources/vektor/vektor.mjs +68 -0
  507. package/resources/vektor/vektor.mjs.map +1 -0
  508. package/resources/vektor/vote/index.d.mts +4 -0
  509. package/resources/vektor/vote/index.d.mts.map +1 -0
  510. package/resources/vektor/vote/index.d.ts +4 -0
  511. package/resources/vektor/vote/index.d.ts.map +1 -0
  512. package/resources/vektor/vote/index.js +11 -0
  513. package/resources/vektor/vote/index.js.map +1 -0
  514. package/resources/vektor/vote/index.mjs +5 -0
  515. package/resources/vektor/vote/index.mjs.map +1 -0
  516. package/resources/vektor/vote/markets.d.mts +47 -0
  517. package/resources/vektor/vote/markets.d.mts.map +1 -0
  518. package/resources/vektor/vote/markets.d.ts +47 -0
  519. package/resources/vektor/vote/markets.d.ts.map +1 -0
  520. package/resources/vektor/vote/markets.js +24 -0
  521. package/resources/vektor/vote/markets.js.map +1 -0
  522. package/resources/vektor/vote/markets.mjs +20 -0
  523. package/resources/vektor/vote/markets.mjs.map +1 -0
  524. package/resources/vektor/vote/rewards.d.mts +52 -0
  525. package/resources/vektor/vote/rewards.d.mts.map +1 -0
  526. package/resources/vektor/vote/rewards.d.ts +52 -0
  527. package/resources/vektor/vote/rewards.d.ts.map +1 -0
  528. package/resources/vektor/vote/rewards.js +25 -0
  529. package/resources/vektor/vote/rewards.js.map +1 -0
  530. package/resources/vektor/vote/rewards.mjs +21 -0
  531. package/resources/vektor/vote/rewards.mjs.map +1 -0
  532. package/resources/vektor/vote/vote.d.mts +14 -0
  533. package/resources/vektor/vote/vote.d.mts.map +1 -0
  534. package/resources/vektor/vote/vote.d.ts +14 -0
  535. package/resources/vektor/vote/vote.d.ts.map +1 -0
  536. package/resources/vektor/vote/vote.js +21 -0
  537. package/resources/vektor/vote/vote.js.map +1 -0
  538. package/resources/vektor/vote/vote.mjs +16 -0
  539. package/resources/vektor/vote/vote.mjs.map +1 -0
  540. package/resources/vektor/vote.d.mts +2 -0
  541. package/resources/vektor/vote.d.mts.map +1 -0
  542. package/resources/vektor/vote.d.ts +2 -0
  543. package/resources/vektor/vote.d.ts.map +1 -0
  544. package/resources/vektor/vote.js +6 -0
  545. package/resources/vektor/vote.js.map +1 -0
  546. package/resources/vektor/vote.mjs +3 -0
  547. package/resources/vektor/vote.mjs.map +1 -0
  548. package/resources/vektor/wrap/index.d.mts +4 -0
  549. package/resources/vektor/wrap/index.d.mts.map +1 -0
  550. package/resources/vektor/wrap/index.d.ts +4 -0
  551. package/resources/vektor/wrap/index.d.ts.map +1 -0
  552. package/resources/vektor/wrap/index.js +9 -0
  553. package/resources/vektor/wrap/index.js.map +1 -0
  554. package/resources/vektor/wrap/index.mjs +4 -0
  555. package/resources/vektor/wrap/index.mjs.map +1 -0
  556. package/resources/vektor/wrap/unwrap.d.mts +37 -0
  557. package/resources/vektor/wrap/unwrap.d.mts.map +1 -0
  558. package/resources/vektor/wrap/unwrap.d.ts +37 -0
  559. package/resources/vektor/wrap/unwrap.d.ts.map +1 -0
  560. package/resources/vektor/wrap/unwrap.js +24 -0
  561. package/resources/vektor/wrap/unwrap.js.map +1 -0
  562. package/resources/vektor/wrap/unwrap.mjs +20 -0
  563. package/resources/vektor/wrap/unwrap.mjs.map +1 -0
  564. package/resources/vektor/wrap/wrap.d.mts +14 -0
  565. package/resources/vektor/wrap/wrap.d.mts.map +1 -0
  566. package/resources/vektor/wrap/wrap.d.ts +14 -0
  567. package/resources/vektor/wrap/wrap.d.ts.map +1 -0
  568. package/resources/vektor/wrap/wrap.js +21 -0
  569. package/resources/vektor/wrap/wrap.js.map +1 -0
  570. package/resources/vektor/wrap/wrap.mjs +16 -0
  571. package/resources/vektor/wrap/wrap.mjs.map +1 -0
  572. package/resources/vektor/wrap/wrap_.d.mts +37 -0
  573. package/resources/vektor/wrap/wrap_.d.mts.map +1 -0
  574. package/resources/vektor/wrap/wrap_.d.ts +37 -0
  575. package/resources/vektor/wrap/wrap_.d.ts.map +1 -0
  576. package/resources/vektor/wrap/wrap_.js +24 -0
  577. package/resources/vektor/wrap/wrap_.js.map +1 -0
  578. package/resources/vektor/wrap/wrap_.mjs +20 -0
  579. package/resources/vektor/wrap/wrap_.mjs.map +1 -0
  580. package/resources/vektor/wrap.d.mts +2 -0
  581. package/resources/vektor/wrap.d.mts.map +1 -0
  582. package/resources/vektor/wrap.d.ts +2 -0
  583. package/resources/vektor/wrap.d.ts.map +1 -0
  584. package/resources/vektor/wrap.js +6 -0
  585. package/resources/vektor/wrap.js.map +1 -0
  586. package/resources/vektor/wrap.mjs +3 -0
  587. package/resources/vektor/wrap.mjs.map +1 -0
  588. package/resources/vektor.d.mts +2 -0
  589. package/resources/vektor.d.mts.map +1 -0
  590. package/resources/vektor.d.ts +2 -0
  591. package/resources/vektor.d.ts.map +1 -0
  592. package/resources/vektor.js +6 -0
  593. package/resources/vektor.js.map +1 -0
  594. package/resources/vektor.mjs +3 -0
  595. package/resources/vektor.mjs.map +1 -0
  596. package/src/client.ts +5 -0
  597. package/src/resources/index.ts +1 -0
  598. package/src/resources/vektor/balances.ts +146 -0
  599. package/src/resources/vektor/borrow/accounts.ts +146 -0
  600. package/src/resources/vektor/borrow/borrow.ts +69 -0
  601. package/src/resources/vektor/borrow/borrow_.ts +57 -0
  602. package/src/resources/vektor/borrow/index.ts +25 -0
  603. package/src/resources/vektor/borrow/markets.ts +205 -0
  604. package/src/resources/vektor/borrow/positions.ts +233 -0
  605. package/src/resources/vektor/borrow.ts +3 -0
  606. package/src/resources/vektor/bridge/bridge.ts +19 -0
  607. package/src/resources/vektor/bridge/index.ts +4 -0
  608. package/src/resources/vektor/bridge/quotes.ts +69 -0
  609. package/src/resources/vektor/bridge.ts +3 -0
  610. package/src/resources/vektor/buy/buy.ts +25 -0
  611. package/src/resources/vektor/buy/buy_.ts +68 -0
  612. package/src/resources/vektor/buy/index.ts +5 -0
  613. package/src/resources/vektor/buy/quotes.ts +69 -0
  614. package/src/resources/vektor/buy.ts +3 -0
  615. package/src/resources/vektor/executions/executions.ts +57 -0
  616. package/src/resources/vektor/executions/index.ts +4 -0
  617. package/src/resources/vektor/executions/steps.ts +1519 -0
  618. package/src/resources/vektor/executions.ts +3 -0
  619. package/src/resources/vektor/incentivize.ts +60 -0
  620. package/src/resources/vektor/index.ts +30 -0
  621. package/src/resources/vektor/lend/index.ts +20 -0
  622. package/src/resources/vektor/lend/lend.ts +63 -0
  623. package/src/resources/vektor/lend/lend_.ts +57 -0
  624. package/src/resources/vektor/lend/markets.ts +205 -0
  625. package/src/resources/vektor/lend/positions.ts +229 -0
  626. package/src/resources/vektor/lend/set-collateral.ts +51 -0
  627. package/src/resources/vektor/lend/withdraw.ts +57 -0
  628. package/src/resources/vektor/lend.ts +3 -0
  629. package/src/resources/vektor/lock/index.ts +5 -0
  630. package/src/resources/vektor/lock/lock.ts +29 -0
  631. package/src/resources/vektor/lock/markets.ts +52 -0
  632. package/src/resources/vektor/lock/positions.ts +58 -0
  633. package/src/resources/vektor/lock.ts +3 -0
  634. package/src/resources/vektor/lp/deposit-quote.ts +147 -0
  635. package/src/resources/vektor/lp/index.ts +27 -0
  636. package/src/resources/vektor/lp/lp.ts +65 -0
  637. package/src/resources/vektor/lp/pools.ts +205 -0
  638. package/src/resources/vektor/lp/positions.ts +249 -0
  639. package/src/resources/vektor/lp/withdraw-quote.ts +90 -0
  640. package/src/resources/vektor/lp.ts +3 -0
  641. package/src/resources/vektor/move.ts +57 -0
  642. package/src/resources/vektor/prices.ts +102 -0
  643. package/src/resources/vektor/registry/assets.ts +51 -0
  644. package/src/resources/vektor/registry/blockchains.ts +50 -0
  645. package/src/resources/vektor/registry/borrow-markets.ts +62 -0
  646. package/src/resources/vektor/registry/errors.ts +38 -0
  647. package/src/resources/vektor/registry/index.ts +10 -0
  648. package/src/resources/vektor/registry/lend-markets.ts +62 -0
  649. package/src/resources/vektor/registry/lp-pools.ts +57 -0
  650. package/src/resources/vektor/registry/registry.ts +79 -0
  651. package/src/resources/vektor/registry/venues.ts +46 -0
  652. package/src/resources/vektor/registry.ts +3 -0
  653. package/src/resources/vektor/sell/index.ts +5 -0
  654. package/src/resources/vektor/sell/quotes.ts +69 -0
  655. package/src/resources/vektor/sell/sell.ts +25 -0
  656. package/src/resources/vektor/sell/sell_.ts +68 -0
  657. package/src/resources/vektor/sell.ts +3 -0
  658. package/src/resources/vektor/vektor.ts +3751 -0
  659. package/src/resources/vektor/vote/index.ts +5 -0
  660. package/src/resources/vektor/vote/markets.ts +57 -0
  661. package/src/resources/vektor/vote/rewards.ts +63 -0
  662. package/src/resources/vektor/vote/vote.ts +29 -0
  663. package/src/resources/vektor/vote.ts +3 -0
  664. package/src/resources/vektor/wrap/index.ts +5 -0
  665. package/src/resources/vektor/wrap/unwrap.ts +45 -0
  666. package/src/resources/vektor/wrap/wrap.ts +21 -0
  667. package/src/resources/vektor/wrap/wrap_.ts +45 -0
  668. package/src/resources/vektor/wrap.ts +3 -0
  669. package/src/resources/vektor.ts +3 -0
  670. package/src/version.ts +1 -1
  671. package/version.d.mts +1 -1
  672. package/version.d.mts.map +1 -1
  673. package/version.d.ts +1 -1
  674. package/version.d.ts.map +1 -1
  675. package/version.js +1 -1
  676. package/version.js.map +1 -1
  677. package/version.mjs +1 -1
  678. package/version.mjs.map +1 -1
@@ -0,0 +1,2974 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as VektorAPI from "./vektor.mjs";
3
+ import * as BalancesAPI from "./balances.mjs";
4
+ import { BalanceListHistoricalParams, BalanceListHistoricalResponse, BalanceListParams, BalanceListResponse, Balances } from "./balances.mjs";
5
+ import * as IncentivizeAPI from "./incentivize.mjs";
6
+ import { Incentivize, IncentivizeListParams, IncentivizeListResponse } from "./incentivize.mjs";
7
+ import * as MoveAPI from "./move.mjs";
8
+ import { Move, MoveCreateParams } from "./move.mjs";
9
+ import * as PricesAPI from "./prices.mjs";
10
+ import { PriceListHistoricalParams, PriceListHistoricalResponse, PriceListParams, PriceListResponse, Prices } from "./prices.mjs";
11
+ import * as BorrowAPI from "./borrow/borrow.mjs";
12
+ import { Borrow } from "./borrow/borrow.mjs";
13
+ import * as BridgeAPI from "./bridge/bridge.mjs";
14
+ import { Bridge } from "./bridge/bridge.mjs";
15
+ import * as BuyAPI from "./buy/buy.mjs";
16
+ import { Buy } from "./buy/buy.mjs";
17
+ import * as ExecutionsAPI from "./executions/executions.mjs";
18
+ import { ExecutionListResponse, Executions } from "./executions/executions.mjs";
19
+ import * as LendAPI from "./lend/lend.mjs";
20
+ import { Lend } from "./lend/lend.mjs";
21
+ import * as LockAPI from "./lock/lock.mjs";
22
+ import { Lock } from "./lock/lock.mjs";
23
+ import * as LPAPI from "./lp/lp.mjs";
24
+ import { LP } from "./lp/lp.mjs";
25
+ import * as RegistryAPI from "./registry/registry.mjs";
26
+ import { Registry } from "./registry/registry.mjs";
27
+ import * as SellAPI from "./sell/sell.mjs";
28
+ import { Sell } from "./sell/sell.mjs";
29
+ import * as VoteAPI from "./vote/vote.mjs";
30
+ import { Vote } from "./vote/vote.mjs";
31
+ import * as WrapAPI from "./wrap/wrap.mjs";
32
+ import { Wrap } from "./wrap/wrap.mjs";
33
+ export declare class Vektor extends APIResource {
34
+ registry: RegistryAPI.Registry;
35
+ balances: BalancesAPI.Balances;
36
+ prices: PricesAPI.Prices;
37
+ lend: LendAPI.Lend;
38
+ borrow: BorrowAPI.Borrow;
39
+ lp: LPAPI.LP;
40
+ buy: BuyAPI.Buy;
41
+ sell: SellAPI.Sell;
42
+ move: MoveAPI.Move;
43
+ wrap: WrapAPI.Wrap;
44
+ bridge: BridgeAPI.Bridge;
45
+ lock: LockAPI.Lock;
46
+ vote: VoteAPI.Vote;
47
+ incentivize: IncentivizeAPI.Incentivize;
48
+ executions: ExecutionsAPI.Executions;
49
+ }
50
+ /**
51
+ * An EVM address
52
+ */
53
+ export type Account = string;
54
+ /**
55
+ * An EVM address
56
+ */
57
+ export type AddressEVM = string;
58
+ /**
59
+ * APY Data
60
+ */
61
+ export interface APY {
62
+ /**
63
+ * An arbitrary precision decimal represented as a string
64
+ */
65
+ apy: Decimal;
66
+ /**
67
+ * On-chain asset (aka token)
68
+ */
69
+ asset: Asset;
70
+ /**
71
+ * APY Type
72
+ */
73
+ type: 'fixed' | 'variable';
74
+ }
75
+ /**
76
+ * On-chain asset (aka token)
77
+ */
78
+ export interface Asset {
79
+ /**
80
+ * An asset ID, represented as a TypeID with `asset` prefix
81
+ */
82
+ id: AssetID;
83
+ /**
84
+ * An EVM address
85
+ */
86
+ address: string | null;
87
+ /**
88
+ * Data about a blockchain
89
+ */
90
+ blockchain: Blockchain;
91
+ /**
92
+ * Asset's decimal places
93
+ */
94
+ decimals: number;
95
+ /**
96
+ * Asset's name
97
+ */
98
+ name: string;
99
+ /**
100
+ * Asset's symbol
101
+ */
102
+ symbol: string;
103
+ }
104
+ /**
105
+ * An asset ID, represented as a TypeID with `asset` prefix
106
+ */
107
+ export type AssetID = string;
108
+ /**
109
+ * An asset ID, represented as a TypeID with `asset` prefix
110
+ */
111
+ export type AssetIDOrAddressEVMOrAssetSymbol = string;
112
+ /**
113
+ * An asset symbol
114
+ */
115
+ export type AssetSymbol = string;
116
+ /**
117
+ * Balance properties
118
+ */
119
+ export interface Balance {
120
+ /**
121
+ * An EVM address
122
+ */
123
+ account: AddressEVM;
124
+ /**
125
+ * An arbitrary precision decimal represented as a string
126
+ */
127
+ amount: Decimal;
128
+ /**
129
+ * An asset ID, represented as a TypeID with `asset` prefix
130
+ */
131
+ asset_id: AssetID;
132
+ /**
133
+ * Information about a specific block number and its timestamp
134
+ */
135
+ blockstamp: Blockstamp;
136
+ /**
137
+ * An arbitrary precision decimal represented as a string
138
+ */
139
+ value: Decimal;
140
+ /**
141
+ * An asset symbol
142
+ */
143
+ quote_asset_symbol?: string | null;
144
+ }
145
+ /**
146
+ * A block number
147
+ */
148
+ export type BlockNumber = number;
149
+ /**
150
+ * Data about a blockchain
151
+ */
152
+ export interface Blockchain {
153
+ /**
154
+ * A blockchain ID, represented as a TypeID with `blockchain` prefix
155
+ */
156
+ id: BlockchainID;
157
+ /**
158
+ * Data about an EVM blockchain
159
+ */
160
+ chain_data: EVMChainData;
161
+ /**
162
+ * Blockchain ecosystem
163
+ */
164
+ chain_type: ChainType;
165
+ /**
166
+ * The blockchain's explorer URL
167
+ */
168
+ explorer_url: string;
169
+ /**
170
+ * BlockchainName
171
+ */
172
+ name: BlockchainName;
173
+ /**
174
+ * Blockchain's network
175
+ */
176
+ network: NetworkName;
177
+ /**
178
+ * A blockchain symbol
179
+ */
180
+ symbol: BlockchainSymbol;
181
+ }
182
+ /**
183
+ * A blockchain ID, represented as a TypeID with `blockchain` prefix
184
+ */
185
+ export type BlockchainID = string;
186
+ /**
187
+ * A blockchain ID, represented as a TypeID with `blockchain` prefix
188
+ */
189
+ export type BlockchainIDOrBlockchainSymbol = string;
190
+ /**
191
+ * BlockchainName
192
+ */
193
+ export type BlockchainName = string;
194
+ /**
195
+ * A blockchain symbol
196
+ */
197
+ export type BlockchainSymbol = string;
198
+ /**
199
+ * Information about a specific block number and its timestamp
200
+ */
201
+ export interface Blockstamp {
202
+ /**
203
+ * A block number
204
+ */
205
+ block_number: BlockNumber;
206
+ /**
207
+ * Data about a blockchain
208
+ */
209
+ blockchain: Blockchain;
210
+ /**
211
+ * ISO8601 Timestamp
212
+ */
213
+ timestamp: Timestamp;
214
+ }
215
+ /**
216
+ * A borrow account
217
+ */
218
+ export interface BorrowAccount {
219
+ /**
220
+ * An EVM address
221
+ */
222
+ account: Account;
223
+ /**
224
+ * An arbitrary precision decimal represented as a string
225
+ */
226
+ available_borrow: Decimal;
227
+ /**
228
+ * Information about a specific block number and its timestamp
229
+ */
230
+ blockstamp: Blockstamp;
231
+ /**
232
+ * An arbitrary precision decimal represented as a string
233
+ */
234
+ health_factor: Decimal;
235
+ /**
236
+ * An asset symbol
237
+ */
238
+ quote_asset_symbol: string | null;
239
+ /**
240
+ * An arbitrary precision decimal represented as a string
241
+ */
242
+ total_collateral: Decimal;
243
+ /**
244
+ * An arbitrary precision decimal represented as a string
245
+ */
246
+ total_debt: Decimal;
247
+ /**
248
+ * On-chain venue
249
+ */
250
+ venue: Venue;
251
+ }
252
+ /**
253
+ * A borrow market
254
+ */
255
+ export interface BorrowMarket {
256
+ /**
257
+ * A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
258
+ * prefix
259
+ */
260
+ id: LendBorrowMarketID;
261
+ /**
262
+ * APY Data for lend/borrow markets
263
+ */
264
+ apys: LendBorrowAPYs;
265
+ /**
266
+ * On-chain asset (aka token)
267
+ */
268
+ asset: Asset;
269
+ /**
270
+ * Information about a specific block number and its timestamp
271
+ */
272
+ blockstamp: Blockstamp;
273
+ /**
274
+ * An arbitrary precision decimal represented as a string
275
+ */
276
+ liquidity: Decimal;
277
+ /**
278
+ * An asset symbol
279
+ */
280
+ quote_asset_symbol: string | null;
281
+ /**
282
+ * An arbitrary precision decimal represented as a string
283
+ */
284
+ total_debt: Decimal;
285
+ /**
286
+ * On-chain venue
287
+ */
288
+ venue: Venue;
289
+ }
290
+ /**
291
+ * A borrow position
292
+ */
293
+ export interface BorrowPosition {
294
+ /**
295
+ * An EVM address
296
+ */
297
+ account: Account;
298
+ /**
299
+ * Information about a specific block number and its timestamp
300
+ */
301
+ blockstamp: Blockstamp;
302
+ /**
303
+ * An arbitrary precision decimal represented as a string
304
+ */
305
+ debt_amount: Decimal;
306
+ /**
307
+ * A borrow market
308
+ */
309
+ market: BorrowMarket;
310
+ /**
311
+ * An asset symbol
312
+ */
313
+ quote_asset_symbol: string | null;
314
+ /**
315
+ * An arbitrary precision decimal represented as a string
316
+ */
317
+ value: string | null;
318
+ }
319
+ /**
320
+ * A bridge quote
321
+ */
322
+ export interface BridgeQuote {
323
+ /**
324
+ * Estimated cost of an operation
325
+ */
326
+ fee_estimate: BridgeQuote.FeeEstimate | null;
327
+ /**
328
+ * An arbitrary precision decimal represented as a string
329
+ */
330
+ receive_amount: Decimal;
331
+ /**
332
+ * On-chain asset (aka token)
333
+ */
334
+ receive_asset: Asset;
335
+ /**
336
+ * Estimated time to receive the asset (in seconds)
337
+ */
338
+ receive_time_est: number;
339
+ /**
340
+ * The route name
341
+ */
342
+ route: string;
343
+ /**
344
+ * An arbitrary precision decimal represented as a string
345
+ */
346
+ send_amount: Decimal;
347
+ /**
348
+ * On-chain asset (aka token)
349
+ */
350
+ send_asset: Asset;
351
+ /**
352
+ * On-chain venue
353
+ */
354
+ venue: Venue;
355
+ }
356
+ export declare namespace BridgeQuote {
357
+ /**
358
+ * Estimated cost of an operation
359
+ */
360
+ interface FeeEstimate {
361
+ /**
362
+ * An arbitrary precision decimal represented as a string
363
+ */
364
+ amount: VektorAPI.Decimal;
365
+ /**
366
+ * On-chain asset (aka token)
367
+ */
368
+ asset: VektorAPI.Asset;
369
+ /**
370
+ * An arbitrary precision decimal represented as a string
371
+ */
372
+ cost: string | null;
373
+ /**
374
+ * An asset symbol
375
+ */
376
+ quote_asset_symbol: string | null;
377
+ }
378
+ }
379
+ /**
380
+ * A buy quote
381
+ */
382
+ export interface BuyQuote {
383
+ /**
384
+ * Data about a blockchain
385
+ */
386
+ blockchain: Blockchain;
387
+ /**
388
+ * Estimated cost of an operation
389
+ */
390
+ fee_estimate: BuyQuote.FeeEstimate | null;
391
+ /**
392
+ * An asset symbol
393
+ */
394
+ quote_asset_symbol: string | null;
395
+ /**
396
+ * Quote info for buy quotes
397
+ */
398
+ quote_info: QuoteInfoUniswapV2 | QuoteInfoUniswapV3;
399
+ /**
400
+ * An arbitrary precision decimal represented as a string
401
+ */
402
+ quote_value: string | null;
403
+ /**
404
+ * An arbitrary precision decimal represented as a string
405
+ */
406
+ receive_amount: Decimal;
407
+ /**
408
+ * On-chain asset (aka token)
409
+ */
410
+ receive_asset: Asset;
411
+ /**
412
+ * An arbitrary precision decimal represented as a string
413
+ */
414
+ spend_amount: Decimal;
415
+ /**
416
+ * On-chain asset (aka token)
417
+ */
418
+ spend_asset: Asset;
419
+ /**
420
+ * On-chain venue
421
+ */
422
+ venue: Venue;
423
+ }
424
+ export declare namespace BuyQuote {
425
+ /**
426
+ * Estimated cost of an operation
427
+ */
428
+ interface FeeEstimate {
429
+ /**
430
+ * An arbitrary precision decimal represented as a string
431
+ */
432
+ amount: VektorAPI.Decimal;
433
+ /**
434
+ * On-chain asset (aka token)
435
+ */
436
+ asset: VektorAPI.Asset;
437
+ /**
438
+ * An arbitrary precision decimal represented as a string
439
+ */
440
+ cost: string | null;
441
+ /**
442
+ * An asset symbol
443
+ */
444
+ quote_asset_symbol: string | null;
445
+ }
446
+ }
447
+ /**
448
+ * Blockchain ecosystem
449
+ */
450
+ export type ChainType = 'evm';
451
+ /**
452
+ * An arbitrary precision decimal represented as a string
453
+ */
454
+ export type Decimal = string;
455
+ /**
456
+ * Wraps a list of errors into an error response
457
+ */
458
+ export interface ErrorWrapper {
459
+ /**
460
+ * A list of errors
461
+ */
462
+ errors?: Array<VektorError>;
463
+ }
464
+ /**
465
+ * Data about an EVM blockchain
466
+ */
467
+ export interface EVMChainData {
468
+ /**
469
+ * Chain ID
470
+ */
471
+ chain_id: number;
472
+ }
473
+ /**
474
+ * An execution
475
+ */
476
+ export interface Execution {
477
+ /**
478
+ * An execution ID, represented as a TypeID with `execution` prefix
479
+ */
480
+ id: ExecutionID;
481
+ /**
482
+ * ISO8601 Timestamp
483
+ */
484
+ created_at: Timestamp;
485
+ /**
486
+ * An execution request
487
+ */
488
+ request: Execution.BorrowRequestFull | Execution.BuyRequestFull | Execution.LendRequestFull | Execution.LendSetCollateralRequestFull | Execution.LendWithdrawRequestFull | Execution.MoveRequestFull | Execution.SellRequestFull | Execution.WrapRequestFull | Execution.UnwrapRequestFull;
489
+ /**
490
+ * An execution step ID, represented as a TypeID with `execution_step` prefix
491
+ */
492
+ request_action_step_id: string | null;
493
+ /**
494
+ * The state of an execution
495
+ */
496
+ state: ExecutionState;
497
+ step_action_url: string | null;
498
+ /**
499
+ * A list of execution steps
500
+ */
501
+ steps: Array<Execution.Step>;
502
+ /**
503
+ * ISO8601 Timestamp
504
+ */
505
+ updated_at: Timestamp;
506
+ }
507
+ export declare namespace Execution {
508
+ /**
509
+ * A request to borrow an asset
510
+ */
511
+ interface BorrowRequestFull {
512
+ /**
513
+ * An arbitrary precision decimal represented as a string
514
+ */
515
+ amount: VektorAPI.Decimal;
516
+ /**
517
+ * On-chain asset (aka token)
518
+ */
519
+ asset: VektorAPI.Asset;
520
+ /**
521
+ * Data about a blockchain
522
+ */
523
+ blockchain: VektorAPI.Blockchain;
524
+ /**
525
+ * An EVM address
526
+ */
527
+ from: VektorAPI.Account;
528
+ /**
529
+ * A list of venues
530
+ */
531
+ venues: Array<VektorAPI.Venue>;
532
+ }
533
+ /**
534
+ * A request to buy an asset
535
+ */
536
+ interface BuyRequestFull {
537
+ /**
538
+ * Data about a blockchain
539
+ */
540
+ blockchain: VektorAPI.Blockchain;
541
+ /**
542
+ * An EVM address
543
+ */
544
+ from: VektorAPI.Account;
545
+ /**
546
+ * An arbitrary precision decimal represented as a string
547
+ */
548
+ receive_amount: VektorAPI.Decimal;
549
+ /**
550
+ * On-chain asset (aka token)
551
+ */
552
+ receive_asset: VektorAPI.Asset;
553
+ /**
554
+ * An arbitrary precision decimal represented as a string
555
+ */
556
+ slippage: VektorAPI.Decimal;
557
+ /**
558
+ * On-chain asset (aka token)
559
+ */
560
+ spend_asset: VektorAPI.Asset;
561
+ /**
562
+ * A list of venues
563
+ */
564
+ venues: Array<VektorAPI.Venue>;
565
+ }
566
+ /**
567
+ * A request to lend an asset
568
+ */
569
+ interface LendRequestFull {
570
+ /**
571
+ * An arbitrary precision decimal represented as a string
572
+ */
573
+ amount: VektorAPI.Decimal;
574
+ /**
575
+ * On-chain asset (aka token)
576
+ */
577
+ asset: VektorAPI.Asset;
578
+ /**
579
+ * Data about a blockchain
580
+ */
581
+ blockchain: VektorAPI.Blockchain;
582
+ /**
583
+ * An EVM address
584
+ */
585
+ from: VektorAPI.Account;
586
+ /**
587
+ * A list of venues
588
+ */
589
+ venues: Array<VektorAPI.Venue>;
590
+ }
591
+ /**
592
+ * A request to set/unset a position as collateral
593
+ */
594
+ interface LendSetCollateralRequestFull {
595
+ /**
596
+ * Data about a blockchain
597
+ */
598
+ blockchain: VektorAPI.Blockchain;
599
+ /**
600
+ * An EVM address
601
+ */
602
+ from: VektorAPI.Account;
603
+ /**
604
+ * A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
605
+ * prefix
606
+ */
607
+ market_id: VektorAPI.LendBorrowMarketID;
608
+ status: boolean;
609
+ }
610
+ /**
611
+ * A request to withdraw an asset
612
+ */
613
+ interface LendWithdrawRequestFull {
614
+ /**
615
+ * An arbitrary precision decimal represented as a string
616
+ */
617
+ amount: string | null;
618
+ /**
619
+ * Data about a blockchain
620
+ */
621
+ blockchain: VektorAPI.Blockchain;
622
+ /**
623
+ * An EVM address
624
+ */
625
+ from: VektorAPI.Account;
626
+ /**
627
+ * A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
628
+ * prefix
629
+ */
630
+ market_id: VektorAPI.LendBorrowMarketID;
631
+ /**
632
+ * On-chain asset (aka token)
633
+ */
634
+ asset?: LendWithdrawRequestFull.Asset | null;
635
+ }
636
+ namespace LendWithdrawRequestFull {
637
+ /**
638
+ * On-chain asset (aka token)
639
+ */
640
+ interface Asset {
641
+ /**
642
+ * An asset ID, represented as a TypeID with `asset` prefix
643
+ */
644
+ id: VektorAPI.AssetID;
645
+ /**
646
+ * An EVM address
647
+ */
648
+ address: string | null;
649
+ /**
650
+ * Data about a blockchain
651
+ */
652
+ blockchain: VektorAPI.Blockchain;
653
+ /**
654
+ * Asset's decimal places
655
+ */
656
+ decimals: number;
657
+ /**
658
+ * Asset's name
659
+ */
660
+ name: string;
661
+ /**
662
+ * Asset's symbol
663
+ */
664
+ symbol: string;
665
+ }
666
+ }
667
+ /**
668
+ * A request to move assets from one account to another
669
+ */
670
+ interface MoveRequestFull {
671
+ /**
672
+ * An arbitrary precision decimal represented as a string
673
+ */
674
+ amount: VektorAPI.Decimal;
675
+ /**
676
+ * On-chain asset (aka token)
677
+ */
678
+ asset: VektorAPI.Asset;
679
+ /**
680
+ * Data about a blockchain
681
+ */
682
+ blockchain: VektorAPI.Blockchain;
683
+ /**
684
+ * An EVM address
685
+ */
686
+ from: VektorAPI.Account;
687
+ /**
688
+ * An EVM address
689
+ */
690
+ to: VektorAPI.Account;
691
+ }
692
+ /**
693
+ * A request to sell an asset
694
+ */
695
+ interface SellRequestFull {
696
+ /**
697
+ * Data about a blockchain
698
+ */
699
+ blockchain: VektorAPI.Blockchain;
700
+ /**
701
+ * An EVM address
702
+ */
703
+ from: VektorAPI.Account;
704
+ /**
705
+ * On-chain asset (aka token)
706
+ */
707
+ receive_asset: VektorAPI.Asset;
708
+ /**
709
+ * An arbitrary precision decimal represented as a string
710
+ */
711
+ slippage: VektorAPI.Decimal;
712
+ /**
713
+ * An arbitrary precision decimal represented as a string
714
+ */
715
+ spend_amount: VektorAPI.Decimal;
716
+ /**
717
+ * On-chain asset (aka token)
718
+ */
719
+ spend_asset: VektorAPI.Asset;
720
+ /**
721
+ * A list of venues
722
+ */
723
+ venues: Array<VektorAPI.Venue>;
724
+ }
725
+ /**
726
+ * A request to wrap the native asset
727
+ */
728
+ interface WrapRequestFull {
729
+ /**
730
+ * An arbitrary precision decimal represented as a string
731
+ */
732
+ amount: VektorAPI.Decimal;
733
+ /**
734
+ * Data about a blockchain
735
+ */
736
+ blockchain: VektorAPI.Blockchain;
737
+ /**
738
+ * An EVM address
739
+ */
740
+ from: VektorAPI.Account;
741
+ }
742
+ /**
743
+ * A request to unwrap the wrapped native asset
744
+ */
745
+ interface UnwrapRequestFull {
746
+ /**
747
+ * An arbitrary precision decimal represented as a string
748
+ */
749
+ amount: VektorAPI.Decimal;
750
+ /**
751
+ * Data about a blockchain
752
+ */
753
+ blockchain: VektorAPI.Blockchain;
754
+ /**
755
+ * An EVM address
756
+ */
757
+ from: VektorAPI.Account;
758
+ }
759
+ /**
760
+ * An execution step
761
+ */
762
+ interface Step {
763
+ /**
764
+ * An execution step ID, represented as a TypeID with `execution_step` prefix
765
+ */
766
+ id: VektorAPI.ExecutionStepID;
767
+ /**
768
+ * ISO8601 Timestamp
769
+ */
770
+ created_at: VektorAPI.Timestamp;
771
+ /**
772
+ * The definition of an execution step
773
+ */
774
+ definition: Step.ExecutionEVMTransactionApprove | Step.ExecutionEVMTransactionBorrow | Step.ExecutionEVMTransactionBuy | Step.ExecutionEVMTransactionLend | Step.ExecutionEVMTransactionLendSetCollateral | Step.ExecutionEVMTransactionLendWithdraw | Step.ExecutionEVMTransactionMove | Step.ExecutionEVMTransactionPermission | Step.ExecutionEVMTransactionUnwrap | Step.ExecutionEVMTransactionWrap | Step.ExecutionEVMTransactionSell;
775
+ index: number;
776
+ /**
777
+ * The type of an execution step
778
+ */
779
+ type: 'evm_transaction_approve' | 'evm_transaction_borrow' | 'evm_transaction_buy' | 'evm_transaction_lend' | 'evm_transaction_lend_set_collateral' | 'evm_transaction_lend_withdraw' | 'evm_transaction_move' | 'evm_transaction_permission' | 'evm_transaction_wrap' | 'evm_transaction_unwrap' | 'evm_transaction_sell';
780
+ /**
781
+ * ISO8601 Timestamp
782
+ */
783
+ updated_at: VektorAPI.Timestamp;
784
+ }
785
+ namespace Step {
786
+ /**
787
+ * An approval of an asset
788
+ */
789
+ interface ExecutionEVMTransactionApprove {
790
+ /**
791
+ * An arbitrary precision decimal represented as a string
792
+ */
793
+ amount: VektorAPI.Decimal;
794
+ /**
795
+ * On-chain asset (aka token)
796
+ */
797
+ asset: VektorAPI.Asset;
798
+ block_number: number | null;
799
+ /**
800
+ * ISO8601 Timestamp
801
+ */
802
+ broadcasted_at: string | null;
803
+ confirmation_target: number;
804
+ /**
805
+ * ISO8601 Timestamp
806
+ */
807
+ confirmed_at: string | null;
808
+ /**
809
+ * ISO8601 Timestamp
810
+ */
811
+ created_at: VektorAPI.Timestamp;
812
+ /**
813
+ * A hex string starting with 0x
814
+ */
815
+ data: string | null;
816
+ /**
817
+ * An arbitrary precision decimal represented as a string
818
+ */
819
+ effective_gas_price: string | null;
820
+ /**
821
+ * An error
822
+ */
823
+ error: ExecutionEVMTransactionApprove.Error | null;
824
+ /**
825
+ * ISO8601 Timestamp
826
+ */
827
+ errored_at: string | null;
828
+ /**
829
+ * An arbitrary precision decimal represented as a string
830
+ */
831
+ gas_used: string | null;
832
+ /**
833
+ * A transaction hash
834
+ */
835
+ hash: string | null;
836
+ /**
837
+ * The payload of an EIP-1559 transaction
838
+ */
839
+ payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
840
+ /**
841
+ * ISO8601 Timestamp
842
+ */
843
+ signed_at: string | null;
844
+ /**
845
+ * An EVM address
846
+ */
847
+ spender: VektorAPI.Account;
848
+ /**
849
+ * The state of an EVM transaction
850
+ */
851
+ state: VektorAPI.ExecutionEVMTransactionState;
852
+ /**
853
+ * The state of an EVM transaction
854
+ */
855
+ target_state: VektorAPI.ExecutionEVMTransactionState;
856
+ /**
857
+ * An EVM address
858
+ */
859
+ to: string | null;
860
+ /**
861
+ * The type of approval
862
+ */
863
+ type: 'spend_erc20' | 'borrow_erc20' | 'spend_erc721' | 'spend_erc721_collection';
864
+ /**
865
+ * ISO8601 Timestamp
866
+ */
867
+ updated_at: VektorAPI.Timestamp;
868
+ /**
869
+ * An arbitrary precision decimal represented as a string
870
+ */
871
+ value: string | null;
872
+ }
873
+ namespace ExecutionEVMTransactionApprove {
874
+ /**
875
+ * An error
876
+ */
877
+ interface Error {
878
+ /**
879
+ * Error message
880
+ */
881
+ message: string;
882
+ /**
883
+ * Error parameters
884
+ */
885
+ params: {
886
+ [key: string]: unknown;
887
+ };
888
+ /**
889
+ * Error type
890
+ */
891
+ type: string;
892
+ }
893
+ }
894
+ /**
895
+ * Borrowing an asset
896
+ */
897
+ interface ExecutionEVMTransactionBorrow {
898
+ /**
899
+ * An arbitrary precision decimal represented as a string
900
+ */
901
+ amount: VektorAPI.Decimal;
902
+ /**
903
+ * On-chain asset (aka token)
904
+ */
905
+ asset: VektorAPI.Asset;
906
+ block_number: number | null;
907
+ /**
908
+ * ISO8601 Timestamp
909
+ */
910
+ broadcasted_at: string | null;
911
+ confirmation_target: number;
912
+ /**
913
+ * ISO8601 Timestamp
914
+ */
915
+ confirmed_at: string | null;
916
+ /**
917
+ * ISO8601 Timestamp
918
+ */
919
+ created_at: VektorAPI.Timestamp;
920
+ /**
921
+ * A hex string starting with 0x
922
+ */
923
+ data: string | null;
924
+ /**
925
+ * An arbitrary precision decimal represented as a string
926
+ */
927
+ effective_gas_price: string | null;
928
+ /**
929
+ * An error
930
+ */
931
+ error: ExecutionEVMTransactionBorrow.Error | null;
932
+ /**
933
+ * ISO8601 Timestamp
934
+ */
935
+ errored_at: string | null;
936
+ /**
937
+ * An arbitrary precision decimal represented as a string
938
+ */
939
+ gas_used: string | null;
940
+ /**
941
+ * A transaction hash
942
+ */
943
+ hash: string | null;
944
+ /**
945
+ * A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
946
+ * prefix
947
+ */
948
+ lend_borrow_market_id: VektorAPI.LendBorrowMarketID;
949
+ /**
950
+ * The payload of an EIP-1559 transaction
951
+ */
952
+ payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
953
+ /**
954
+ * ISO8601 Timestamp
955
+ */
956
+ signed_at: string | null;
957
+ /**
958
+ * The state of an EVM transaction
959
+ */
960
+ state: VektorAPI.ExecutionEVMTransactionState;
961
+ /**
962
+ * The state of an EVM transaction
963
+ */
964
+ target_state: VektorAPI.ExecutionEVMTransactionState;
965
+ /**
966
+ * An EVM address
967
+ */
968
+ to: string | null;
969
+ /**
970
+ * ISO8601 Timestamp
971
+ */
972
+ updated_at: VektorAPI.Timestamp;
973
+ /**
974
+ * An arbitrary precision decimal represented as a string
975
+ */
976
+ value: string | null;
977
+ /**
978
+ * A venue symbol
979
+ */
980
+ venue_symbol: VektorAPI.VenueSymbol;
981
+ }
982
+ namespace ExecutionEVMTransactionBorrow {
983
+ /**
984
+ * An error
985
+ */
986
+ interface Error {
987
+ /**
988
+ * Error message
989
+ */
990
+ message: string;
991
+ /**
992
+ * Error parameters
993
+ */
994
+ params: {
995
+ [key: string]: unknown;
996
+ };
997
+ /**
998
+ * Error type
999
+ */
1000
+ type: string;
1001
+ }
1002
+ }
1003
+ /**
1004
+ * Buying an asset with another asset
1005
+ */
1006
+ interface ExecutionEVMTransactionBuy {
1007
+ /**
1008
+ * An EVM address
1009
+ */
1010
+ approval_target: VektorAPI.Account;
1011
+ block_number: number | null;
1012
+ /**
1013
+ * ISO8601 Timestamp
1014
+ */
1015
+ broadcasted_at: string | null;
1016
+ confirmation_target: number;
1017
+ /**
1018
+ * ISO8601 Timestamp
1019
+ */
1020
+ confirmed_at: string | null;
1021
+ /**
1022
+ * ISO8601 Timestamp
1023
+ */
1024
+ created_at: VektorAPI.Timestamp;
1025
+ /**
1026
+ * A hex string starting with 0x
1027
+ */
1028
+ data: string | null;
1029
+ /**
1030
+ * An arbitrary precision decimal represented as a string
1031
+ */
1032
+ effective_gas_price: string | null;
1033
+ /**
1034
+ * An error
1035
+ */
1036
+ error: ExecutionEVMTransactionBuy.Error | null;
1037
+ /**
1038
+ * ISO8601 Timestamp
1039
+ */
1040
+ errored_at: string | null;
1041
+ /**
1042
+ * An arbitrary precision decimal represented as a string
1043
+ */
1044
+ gas_used: string | null;
1045
+ /**
1046
+ * A transaction hash
1047
+ */
1048
+ hash: string | null;
1049
+ /**
1050
+ * An arbitrary precision decimal represented as a string
1051
+ */
1052
+ max_spend_amount: VektorAPI.Decimal;
1053
+ /**
1054
+ * The payload of an EIP-1559 transaction
1055
+ */
1056
+ payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
1057
+ /**
1058
+ * A buy quote
1059
+ */
1060
+ quote: VektorAPI.BuyQuote;
1061
+ /**
1062
+ * ISO8601 Timestamp
1063
+ */
1064
+ signed_at: string | null;
1065
+ /**
1066
+ * An arbitrary precision decimal represented as a string
1067
+ */
1068
+ slippage: VektorAPI.Decimal;
1069
+ /**
1070
+ * The state of an EVM transaction
1071
+ */
1072
+ state: VektorAPI.ExecutionEVMTransactionState;
1073
+ /**
1074
+ * The state of an EVM transaction
1075
+ */
1076
+ target_state: VektorAPI.ExecutionEVMTransactionState;
1077
+ /**
1078
+ * An EVM address
1079
+ */
1080
+ to: string | null;
1081
+ /**
1082
+ * ISO8601 Timestamp
1083
+ */
1084
+ updated_at: VektorAPI.Timestamp;
1085
+ /**
1086
+ * An arbitrary precision decimal represented as a string
1087
+ */
1088
+ value: string | null;
1089
+ }
1090
+ namespace ExecutionEVMTransactionBuy {
1091
+ /**
1092
+ * An error
1093
+ */
1094
+ interface Error {
1095
+ /**
1096
+ * Error message
1097
+ */
1098
+ message: string;
1099
+ /**
1100
+ * Error parameters
1101
+ */
1102
+ params: {
1103
+ [key: string]: unknown;
1104
+ };
1105
+ /**
1106
+ * Error type
1107
+ */
1108
+ type: string;
1109
+ }
1110
+ }
1111
+ /**
1112
+ * Lending an asset
1113
+ */
1114
+ interface ExecutionEVMTransactionLend {
1115
+ /**
1116
+ * An arbitrary precision decimal represented as a string
1117
+ */
1118
+ amount: VektorAPI.Decimal;
1119
+ /**
1120
+ * On-chain asset (aka token)
1121
+ */
1122
+ asset: VektorAPI.Asset;
1123
+ block_number: number | null;
1124
+ /**
1125
+ * ISO8601 Timestamp
1126
+ */
1127
+ broadcasted_at: string | null;
1128
+ confirmation_target: number;
1129
+ /**
1130
+ * ISO8601 Timestamp
1131
+ */
1132
+ confirmed_at: string | null;
1133
+ /**
1134
+ * ISO8601 Timestamp
1135
+ */
1136
+ created_at: VektorAPI.Timestamp;
1137
+ /**
1138
+ * A hex string starting with 0x
1139
+ */
1140
+ data: string | null;
1141
+ /**
1142
+ * An arbitrary precision decimal represented as a string
1143
+ */
1144
+ effective_gas_price: string | null;
1145
+ /**
1146
+ * An error
1147
+ */
1148
+ error: ExecutionEVMTransactionLend.Error | null;
1149
+ /**
1150
+ * ISO8601 Timestamp
1151
+ */
1152
+ errored_at: string | null;
1153
+ /**
1154
+ * An arbitrary precision decimal represented as a string
1155
+ */
1156
+ gas_used: string | null;
1157
+ /**
1158
+ * A transaction hash
1159
+ */
1160
+ hash: string | null;
1161
+ /**
1162
+ * A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
1163
+ * prefix
1164
+ */
1165
+ lend_borrow_market_id: VektorAPI.LendBorrowMarketID;
1166
+ /**
1167
+ * The payload of an EIP-1559 transaction
1168
+ */
1169
+ payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
1170
+ /**
1171
+ * ISO8601 Timestamp
1172
+ */
1173
+ signed_at: string | null;
1174
+ /**
1175
+ * The state of an EVM transaction
1176
+ */
1177
+ state: VektorAPI.ExecutionEVMTransactionState;
1178
+ /**
1179
+ * The state of an EVM transaction
1180
+ */
1181
+ target_state: VektorAPI.ExecutionEVMTransactionState;
1182
+ /**
1183
+ * An EVM address
1184
+ */
1185
+ to: string | null;
1186
+ /**
1187
+ * ISO8601 Timestamp
1188
+ */
1189
+ updated_at: VektorAPI.Timestamp;
1190
+ /**
1191
+ * An arbitrary precision decimal represented as a string
1192
+ */
1193
+ value: string | null;
1194
+ /**
1195
+ * A venue symbol
1196
+ */
1197
+ venue_symbol: VektorAPI.VenueSymbol;
1198
+ }
1199
+ namespace ExecutionEVMTransactionLend {
1200
+ /**
1201
+ * An error
1202
+ */
1203
+ interface Error {
1204
+ /**
1205
+ * Error message
1206
+ */
1207
+ message: string;
1208
+ /**
1209
+ * Error parameters
1210
+ */
1211
+ params: {
1212
+ [key: string]: unknown;
1213
+ };
1214
+ /**
1215
+ * Error type
1216
+ */
1217
+ type: string;
1218
+ }
1219
+ }
1220
+ /**
1221
+ * Setting/unsetting a position as collateral
1222
+ */
1223
+ interface ExecutionEVMTransactionLendSetCollateral {
1224
+ block_number: number | null;
1225
+ /**
1226
+ * ISO8601 Timestamp
1227
+ */
1228
+ broadcasted_at: string | null;
1229
+ confirmation_target: number;
1230
+ /**
1231
+ * ISO8601 Timestamp
1232
+ */
1233
+ confirmed_at: string | null;
1234
+ /**
1235
+ * ISO8601 Timestamp
1236
+ */
1237
+ created_at: VektorAPI.Timestamp;
1238
+ /**
1239
+ * A hex string starting with 0x
1240
+ */
1241
+ data: string | null;
1242
+ /**
1243
+ * An arbitrary precision decimal represented as a string
1244
+ */
1245
+ effective_gas_price: string | null;
1246
+ /**
1247
+ * An error
1248
+ */
1249
+ error: ExecutionEVMTransactionLendSetCollateral.Error | null;
1250
+ /**
1251
+ * ISO8601 Timestamp
1252
+ */
1253
+ errored_at: string | null;
1254
+ /**
1255
+ * An arbitrary precision decimal represented as a string
1256
+ */
1257
+ gas_used: string | null;
1258
+ /**
1259
+ * A transaction hash
1260
+ */
1261
+ hash: string | null;
1262
+ /**
1263
+ * A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
1264
+ * prefix
1265
+ */
1266
+ lend_borrow_market_id: VektorAPI.LendBorrowMarketID;
1267
+ /**
1268
+ * The payload of an EIP-1559 transaction
1269
+ */
1270
+ payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
1271
+ /**
1272
+ * ISO8601 Timestamp
1273
+ */
1274
+ signed_at: string | null;
1275
+ /**
1276
+ * The state of an EVM transaction
1277
+ */
1278
+ state: VektorAPI.ExecutionEVMTransactionState;
1279
+ status: boolean;
1280
+ /**
1281
+ * The state of an EVM transaction
1282
+ */
1283
+ target_state: VektorAPI.ExecutionEVMTransactionState;
1284
+ /**
1285
+ * An EVM address
1286
+ */
1287
+ to: string | null;
1288
+ /**
1289
+ * ISO8601 Timestamp
1290
+ */
1291
+ updated_at: VektorAPI.Timestamp;
1292
+ /**
1293
+ * An arbitrary precision decimal represented as a string
1294
+ */
1295
+ value: string | null;
1296
+ }
1297
+ namespace ExecutionEVMTransactionLendSetCollateral {
1298
+ /**
1299
+ * An error
1300
+ */
1301
+ interface Error {
1302
+ /**
1303
+ * Error message
1304
+ */
1305
+ message: string;
1306
+ /**
1307
+ * Error parameters
1308
+ */
1309
+ params: {
1310
+ [key: string]: unknown;
1311
+ };
1312
+ /**
1313
+ * Error type
1314
+ */
1315
+ type: string;
1316
+ }
1317
+ }
1318
+ /**
1319
+ * Withdrawing an asset
1320
+ */
1321
+ interface ExecutionEVMTransactionLendWithdraw {
1322
+ /**
1323
+ * An arbitrary precision decimal represented as a string
1324
+ */
1325
+ amount: string | null;
1326
+ /**
1327
+ * On-chain asset (aka token)
1328
+ */
1329
+ asset: VektorAPI.Asset;
1330
+ block_number: number | null;
1331
+ /**
1332
+ * ISO8601 Timestamp
1333
+ */
1334
+ broadcasted_at: string | null;
1335
+ confirmation_target: number;
1336
+ /**
1337
+ * ISO8601 Timestamp
1338
+ */
1339
+ confirmed_at: string | null;
1340
+ /**
1341
+ * ISO8601 Timestamp
1342
+ */
1343
+ created_at: VektorAPI.Timestamp;
1344
+ /**
1345
+ * A hex string starting with 0x
1346
+ */
1347
+ data: string | null;
1348
+ /**
1349
+ * An arbitrary precision decimal represented as a string
1350
+ */
1351
+ effective_gas_price: string | null;
1352
+ /**
1353
+ * An error
1354
+ */
1355
+ error: ExecutionEVMTransactionLendWithdraw.Error | null;
1356
+ /**
1357
+ * ISO8601 Timestamp
1358
+ */
1359
+ errored_at: string | null;
1360
+ /**
1361
+ * An arbitrary precision decimal represented as a string
1362
+ */
1363
+ gas_used: string | null;
1364
+ /**
1365
+ * A transaction hash
1366
+ */
1367
+ hash: string | null;
1368
+ /**
1369
+ * A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
1370
+ * prefix
1371
+ */
1372
+ lend_borrow_market_id: VektorAPI.LendBorrowMarketID;
1373
+ /**
1374
+ * The payload of an EIP-1559 transaction
1375
+ */
1376
+ payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
1377
+ /**
1378
+ * ISO8601 Timestamp
1379
+ */
1380
+ signed_at: string | null;
1381
+ /**
1382
+ * The state of an EVM transaction
1383
+ */
1384
+ state: VektorAPI.ExecutionEVMTransactionState;
1385
+ /**
1386
+ * The state of an EVM transaction
1387
+ */
1388
+ target_state: VektorAPI.ExecutionEVMTransactionState;
1389
+ /**
1390
+ * An EVM address
1391
+ */
1392
+ to: string | null;
1393
+ /**
1394
+ * ISO8601 Timestamp
1395
+ */
1396
+ updated_at: VektorAPI.Timestamp;
1397
+ /**
1398
+ * An arbitrary precision decimal represented as a string
1399
+ */
1400
+ value: string | null;
1401
+ }
1402
+ namespace ExecutionEVMTransactionLendWithdraw {
1403
+ /**
1404
+ * An error
1405
+ */
1406
+ interface Error {
1407
+ /**
1408
+ * Error message
1409
+ */
1410
+ message: string;
1411
+ /**
1412
+ * Error parameters
1413
+ */
1414
+ params: {
1415
+ [key: string]: unknown;
1416
+ };
1417
+ /**
1418
+ * Error type
1419
+ */
1420
+ type: string;
1421
+ }
1422
+ }
1423
+ /**
1424
+ * A move of assets from one account to another
1425
+ */
1426
+ interface ExecutionEVMTransactionMove {
1427
+ /**
1428
+ * An arbitrary precision decimal represented as a string
1429
+ */
1430
+ amount: VektorAPI.Decimal;
1431
+ /**
1432
+ * On-chain asset (aka token)
1433
+ */
1434
+ asset: VektorAPI.Asset;
1435
+ block_number: number | null;
1436
+ /**
1437
+ * ISO8601 Timestamp
1438
+ */
1439
+ broadcasted_at: string | null;
1440
+ confirmation_target: number;
1441
+ /**
1442
+ * ISO8601 Timestamp
1443
+ */
1444
+ confirmed_at: string | null;
1445
+ /**
1446
+ * ISO8601 Timestamp
1447
+ */
1448
+ created_at: VektorAPI.Timestamp;
1449
+ /**
1450
+ * A hex string starting with 0x
1451
+ */
1452
+ data: string | null;
1453
+ /**
1454
+ * An arbitrary precision decimal represented as a string
1455
+ */
1456
+ effective_gas_price: string | null;
1457
+ /**
1458
+ * An error
1459
+ */
1460
+ error: ExecutionEVMTransactionMove.Error | null;
1461
+ /**
1462
+ * ISO8601 Timestamp
1463
+ */
1464
+ errored_at: string | null;
1465
+ /**
1466
+ * An arbitrary precision decimal represented as a string
1467
+ */
1468
+ gas_used: string | null;
1469
+ /**
1470
+ * A transaction hash
1471
+ */
1472
+ hash: string | null;
1473
+ /**
1474
+ * The payload of an EIP-1559 transaction
1475
+ */
1476
+ payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
1477
+ /**
1478
+ * ISO8601 Timestamp
1479
+ */
1480
+ signed_at: string | null;
1481
+ /**
1482
+ * The state of an EVM transaction
1483
+ */
1484
+ state: VektorAPI.ExecutionEVMTransactionState;
1485
+ /**
1486
+ * The state of an EVM transaction
1487
+ */
1488
+ target_state: VektorAPI.ExecutionEVMTransactionState;
1489
+ /**
1490
+ * An EVM address
1491
+ */
1492
+ to: VektorAPI.Account | null;
1493
+ /**
1494
+ * ISO8601 Timestamp
1495
+ */
1496
+ updated_at: VektorAPI.Timestamp;
1497
+ /**
1498
+ * An arbitrary precision decimal represented as a string
1499
+ */
1500
+ value: string | null;
1501
+ }
1502
+ namespace ExecutionEVMTransactionMove {
1503
+ /**
1504
+ * An error
1505
+ */
1506
+ interface Error {
1507
+ /**
1508
+ * Error message
1509
+ */
1510
+ message: string;
1511
+ /**
1512
+ * Error parameters
1513
+ */
1514
+ params: {
1515
+ [key: string]: unknown;
1516
+ };
1517
+ /**
1518
+ * Error type
1519
+ */
1520
+ type: string;
1521
+ }
1522
+ }
1523
+ /**
1524
+ * A permission to a contract
1525
+ */
1526
+ interface ExecutionEVMTransactionPermission {
1527
+ block_number: number | null;
1528
+ /**
1529
+ * ISO8601 Timestamp
1530
+ */
1531
+ broadcasted_at: string | null;
1532
+ confirmation_target: number;
1533
+ /**
1534
+ * ISO8601 Timestamp
1535
+ */
1536
+ confirmed_at: string | null;
1537
+ /**
1538
+ * An EVM address
1539
+ */
1540
+ contract_address: VektorAPI.AddressEVM;
1541
+ /**
1542
+ * ISO8601 Timestamp
1543
+ */
1544
+ created_at: VektorAPI.Timestamp;
1545
+ /**
1546
+ * A hex string starting with 0x
1547
+ */
1548
+ data: string | null;
1549
+ /**
1550
+ * An arbitrary precision decimal represented as a string
1551
+ */
1552
+ effective_gas_price: string | null;
1553
+ /**
1554
+ * An error
1555
+ */
1556
+ error: ExecutionEVMTransactionPermission.Error | null;
1557
+ /**
1558
+ * ISO8601 Timestamp
1559
+ */
1560
+ errored_at: string | null;
1561
+ /**
1562
+ * An arbitrary precision decimal represented as a string
1563
+ */
1564
+ gas_used: string | null;
1565
+ /**
1566
+ * A transaction hash
1567
+ */
1568
+ hash: string | null;
1569
+ /**
1570
+ * A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
1571
+ * prefix
1572
+ */
1573
+ lend_borrow_market_id: VektorAPI.LendBorrowMarketID;
1574
+ /**
1575
+ * The payload of an EIP-1559 transaction
1576
+ */
1577
+ payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
1578
+ permission: boolean;
1579
+ /**
1580
+ * ISO8601 Timestamp
1581
+ */
1582
+ signed_at: string | null;
1583
+ /**
1584
+ * An EVM address
1585
+ */
1586
+ spender: VektorAPI.Account;
1587
+ /**
1588
+ * The state of an EVM transaction
1589
+ */
1590
+ state: VektorAPI.ExecutionEVMTransactionState;
1591
+ /**
1592
+ * The state of an EVM transaction
1593
+ */
1594
+ target_state: VektorAPI.ExecutionEVMTransactionState;
1595
+ /**
1596
+ * An EVM address
1597
+ */
1598
+ to: string | null;
1599
+ /**
1600
+ * The type of a permission
1601
+ */
1602
+ type: 'compound_v3_comet';
1603
+ /**
1604
+ * ISO8601 Timestamp
1605
+ */
1606
+ updated_at: VektorAPI.Timestamp;
1607
+ /**
1608
+ * An arbitrary precision decimal represented as a string
1609
+ */
1610
+ value: string | null;
1611
+ }
1612
+ namespace ExecutionEVMTransactionPermission {
1613
+ /**
1614
+ * An error
1615
+ */
1616
+ interface Error {
1617
+ /**
1618
+ * Error message
1619
+ */
1620
+ message: string;
1621
+ /**
1622
+ * Error parameters
1623
+ */
1624
+ params: {
1625
+ [key: string]: unknown;
1626
+ };
1627
+ /**
1628
+ * Error type
1629
+ */
1630
+ type: string;
1631
+ }
1632
+ }
1633
+ /**
1634
+ * An unwrap of the wrapped native asset
1635
+ */
1636
+ interface ExecutionEVMTransactionUnwrap {
1637
+ /**
1638
+ * An arbitrary precision decimal represented as a string
1639
+ */
1640
+ amount: VektorAPI.Decimal;
1641
+ block_number: number | null;
1642
+ /**
1643
+ * ISO8601 Timestamp
1644
+ */
1645
+ broadcasted_at: string | null;
1646
+ confirmation_target: number;
1647
+ /**
1648
+ * ISO8601 Timestamp
1649
+ */
1650
+ confirmed_at: string | null;
1651
+ /**
1652
+ * ISO8601 Timestamp
1653
+ */
1654
+ created_at: VektorAPI.Timestamp;
1655
+ /**
1656
+ * A hex string starting with 0x
1657
+ */
1658
+ data: string | null;
1659
+ /**
1660
+ * An arbitrary precision decimal represented as a string
1661
+ */
1662
+ effective_gas_price: string | null;
1663
+ /**
1664
+ * An error
1665
+ */
1666
+ error: ExecutionEVMTransactionUnwrap.Error | null;
1667
+ /**
1668
+ * ISO8601 Timestamp
1669
+ */
1670
+ errored_at: string | null;
1671
+ /**
1672
+ * An arbitrary precision decimal represented as a string
1673
+ */
1674
+ gas_used: string | null;
1675
+ /**
1676
+ * A transaction hash
1677
+ */
1678
+ hash: string | null;
1679
+ /**
1680
+ * The payload of an EIP-1559 transaction
1681
+ */
1682
+ payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
1683
+ /**
1684
+ * ISO8601 Timestamp
1685
+ */
1686
+ signed_at: string | null;
1687
+ /**
1688
+ * The state of an EVM transaction
1689
+ */
1690
+ state: VektorAPI.ExecutionEVMTransactionState;
1691
+ /**
1692
+ * The state of an EVM transaction
1693
+ */
1694
+ target_state: VektorAPI.ExecutionEVMTransactionState;
1695
+ /**
1696
+ * An EVM address
1697
+ */
1698
+ to: string | null;
1699
+ /**
1700
+ * ISO8601 Timestamp
1701
+ */
1702
+ updated_at: VektorAPI.Timestamp;
1703
+ /**
1704
+ * An arbitrary precision decimal represented as a string
1705
+ */
1706
+ value: string | null;
1707
+ }
1708
+ namespace ExecutionEVMTransactionUnwrap {
1709
+ /**
1710
+ * An error
1711
+ */
1712
+ interface Error {
1713
+ /**
1714
+ * Error message
1715
+ */
1716
+ message: string;
1717
+ /**
1718
+ * Error parameters
1719
+ */
1720
+ params: {
1721
+ [key: string]: unknown;
1722
+ };
1723
+ /**
1724
+ * Error type
1725
+ */
1726
+ type: string;
1727
+ }
1728
+ }
1729
+ /**
1730
+ * A wrap of the native asset
1731
+ */
1732
+ interface ExecutionEVMTransactionWrap {
1733
+ /**
1734
+ * An arbitrary precision decimal represented as a string
1735
+ */
1736
+ amount: VektorAPI.Decimal;
1737
+ block_number: number | null;
1738
+ /**
1739
+ * ISO8601 Timestamp
1740
+ */
1741
+ broadcasted_at: string | null;
1742
+ confirmation_target: number;
1743
+ /**
1744
+ * ISO8601 Timestamp
1745
+ */
1746
+ confirmed_at: string | null;
1747
+ /**
1748
+ * ISO8601 Timestamp
1749
+ */
1750
+ created_at: VektorAPI.Timestamp;
1751
+ /**
1752
+ * A hex string starting with 0x
1753
+ */
1754
+ data: string | null;
1755
+ /**
1756
+ * An arbitrary precision decimal represented as a string
1757
+ */
1758
+ effective_gas_price: string | null;
1759
+ /**
1760
+ * An error
1761
+ */
1762
+ error: ExecutionEVMTransactionWrap.Error | null;
1763
+ /**
1764
+ * ISO8601 Timestamp
1765
+ */
1766
+ errored_at: string | null;
1767
+ /**
1768
+ * An arbitrary precision decimal represented as a string
1769
+ */
1770
+ gas_used: string | null;
1771
+ /**
1772
+ * A transaction hash
1773
+ */
1774
+ hash: string | null;
1775
+ /**
1776
+ * The payload of an EIP-1559 transaction
1777
+ */
1778
+ payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
1779
+ /**
1780
+ * ISO8601 Timestamp
1781
+ */
1782
+ signed_at: string | null;
1783
+ /**
1784
+ * The state of an EVM transaction
1785
+ */
1786
+ state: VektorAPI.ExecutionEVMTransactionState;
1787
+ /**
1788
+ * The state of an EVM transaction
1789
+ */
1790
+ target_state: VektorAPI.ExecutionEVMTransactionState;
1791
+ /**
1792
+ * An EVM address
1793
+ */
1794
+ to: string | null;
1795
+ /**
1796
+ * ISO8601 Timestamp
1797
+ */
1798
+ updated_at: VektorAPI.Timestamp;
1799
+ /**
1800
+ * An arbitrary precision decimal represented as a string
1801
+ */
1802
+ value: string | null;
1803
+ }
1804
+ namespace ExecutionEVMTransactionWrap {
1805
+ /**
1806
+ * An error
1807
+ */
1808
+ interface Error {
1809
+ /**
1810
+ * Error message
1811
+ */
1812
+ message: string;
1813
+ /**
1814
+ * Error parameters
1815
+ */
1816
+ params: {
1817
+ [key: string]: unknown;
1818
+ };
1819
+ /**
1820
+ * Error type
1821
+ */
1822
+ type: string;
1823
+ }
1824
+ }
1825
+ /**
1826
+ * Selling an asset for another asset
1827
+ */
1828
+ interface ExecutionEVMTransactionSell {
1829
+ /**
1830
+ * An EVM address
1831
+ */
1832
+ approval_target: VektorAPI.Account;
1833
+ block_number: number | null;
1834
+ /**
1835
+ * ISO8601 Timestamp
1836
+ */
1837
+ broadcasted_at: string | null;
1838
+ confirmation_target: number;
1839
+ /**
1840
+ * ISO8601 Timestamp
1841
+ */
1842
+ confirmed_at: string | null;
1843
+ /**
1844
+ * ISO8601 Timestamp
1845
+ */
1846
+ created_at: VektorAPI.Timestamp;
1847
+ /**
1848
+ * A hex string starting with 0x
1849
+ */
1850
+ data: string | null;
1851
+ /**
1852
+ * An arbitrary precision decimal represented as a string
1853
+ */
1854
+ effective_gas_price: string | null;
1855
+ /**
1856
+ * An error
1857
+ */
1858
+ error: ExecutionEVMTransactionSell.Error | null;
1859
+ /**
1860
+ * ISO8601 Timestamp
1861
+ */
1862
+ errored_at: string | null;
1863
+ /**
1864
+ * An arbitrary precision decimal represented as a string
1865
+ */
1866
+ gas_used: string | null;
1867
+ /**
1868
+ * A transaction hash
1869
+ */
1870
+ hash: string | null;
1871
+ /**
1872
+ * An arbitrary precision decimal represented as a string
1873
+ */
1874
+ min_receive_amount: VektorAPI.Decimal;
1875
+ /**
1876
+ * The payload of an EIP-1559 transaction
1877
+ */
1878
+ payload: VektorAPI.ExecutionEVMTransactionEIP1559Payload;
1879
+ /**
1880
+ * A sell quote
1881
+ */
1882
+ quote: VektorAPI.SellQuote;
1883
+ /**
1884
+ * ISO8601 Timestamp
1885
+ */
1886
+ signed_at: string | null;
1887
+ /**
1888
+ * An arbitrary precision decimal represented as a string
1889
+ */
1890
+ slippage: VektorAPI.Decimal;
1891
+ /**
1892
+ * The state of an EVM transaction
1893
+ */
1894
+ state: VektorAPI.ExecutionEVMTransactionState;
1895
+ /**
1896
+ * The state of an EVM transaction
1897
+ */
1898
+ target_state: VektorAPI.ExecutionEVMTransactionState;
1899
+ /**
1900
+ * An EVM address
1901
+ */
1902
+ to: string | null;
1903
+ /**
1904
+ * ISO8601 Timestamp
1905
+ */
1906
+ updated_at: VektorAPI.Timestamp;
1907
+ /**
1908
+ * An arbitrary precision decimal represented as a string
1909
+ */
1910
+ value: string | null;
1911
+ }
1912
+ namespace ExecutionEVMTransactionSell {
1913
+ /**
1914
+ * An error
1915
+ */
1916
+ interface Error {
1917
+ /**
1918
+ * Error message
1919
+ */
1920
+ message: string;
1921
+ /**
1922
+ * Error parameters
1923
+ */
1924
+ params: {
1925
+ [key: string]: unknown;
1926
+ };
1927
+ /**
1928
+ * Error type
1929
+ */
1930
+ type: string;
1931
+ }
1932
+ }
1933
+ }
1934
+ }
1935
+ /**
1936
+ * The payload of an EIP-1559 transaction
1937
+ */
1938
+ export interface ExecutionEVMTransactionEIP1559Payload {
1939
+ /**
1940
+ * A hex string starting with 0x
1941
+ */
1942
+ data: HexString;
1943
+ /**
1944
+ * An EVM address
1945
+ */
1946
+ from: AddressEVM;
1947
+ /**
1948
+ * A hex string starting with 0x
1949
+ */
1950
+ gasLimit: HexString;
1951
+ /**
1952
+ * A hex string starting with 0x
1953
+ */
1954
+ maxFeePerGas: HexString;
1955
+ /**
1956
+ * A hex string starting with 0x
1957
+ */
1958
+ maxPriorityFeePerGas: HexString;
1959
+ /**
1960
+ * A hex string starting with 0x
1961
+ */
1962
+ nonce: HexString;
1963
+ /**
1964
+ * An EVM address
1965
+ */
1966
+ to: AddressEVM;
1967
+ /**
1968
+ * A hex string starting with 0x
1969
+ */
1970
+ value: HexString;
1971
+ /**
1972
+ * A hex string starting with 0x
1973
+ */
1974
+ chainId?: HexString;
1975
+ }
1976
+ /**
1977
+ * The payload of an EIP-1559 transaction
1978
+ */
1979
+ export interface ExecutionEVMTransactionPayload {
1980
+ /**
1981
+ * A hex string starting with 0x
1982
+ */
1983
+ data: HexString;
1984
+ /**
1985
+ * An EVM address
1986
+ */
1987
+ from: AddressEVM;
1988
+ /**
1989
+ * A hex string starting with 0x
1990
+ */
1991
+ gasLimit: HexString;
1992
+ /**
1993
+ * A hex string starting with 0x
1994
+ */
1995
+ maxFeePerGas: HexString;
1996
+ /**
1997
+ * A hex string starting with 0x
1998
+ */
1999
+ maxPriorityFeePerGas: HexString;
2000
+ /**
2001
+ * A hex string starting with 0x
2002
+ */
2003
+ nonce: HexString;
2004
+ /**
2005
+ * An EVM address
2006
+ */
2007
+ to: AddressEVM;
2008
+ /**
2009
+ * A hex string starting with 0x
2010
+ */
2011
+ value: HexString;
2012
+ /**
2013
+ * A hex string starting with 0x
2014
+ */
2015
+ chainId?: HexString;
2016
+ }
2017
+ /**
2018
+ * The state of an EVM transaction
2019
+ */
2020
+ export type ExecutionEVMTransactionState = 'not_started' | 'signature_required' | 'signed' | 'broadcasted' | 'confirmed' | 'error';
2021
+ /**
2022
+ * An execution ID, represented as a TypeID with `execution` prefix
2023
+ */
2024
+ export type ExecutionID = string;
2025
+ /**
2026
+ * The state of an execution
2027
+ */
2028
+ export type ExecutionState = 'not_started' | 'started' | 'success' | 'aborted' | 'error';
2029
+ /**
2030
+ * An execution step ID, represented as a TypeID with `execution_step` prefix
2031
+ */
2032
+ export type ExecutionStepID = string;
2033
+ /**
2034
+ * A hex string starting with 0x
2035
+ */
2036
+ export type HexString = string;
2037
+ /**
2038
+ * A lp pool incentive market
2039
+ */
2040
+ export interface IncentivizeMarket {
2041
+ /**
2042
+ * A list of arbitrary precision decimals
2043
+ */
2044
+ amounts: Array<Decimal>;
2045
+ /**
2046
+ * Response for multiple assets
2047
+ */
2048
+ assets: Array<Asset>;
2049
+ /**
2050
+ * Information about a specific block number and its timestamp
2051
+ */
2052
+ blockstamp: Blockstamp;
2053
+ /**
2054
+ * ISO8601 Timestamp
2055
+ */
2056
+ closed_at: Timestamp;
2057
+ /**
2058
+ * A liquidity pool
2059
+ */
2060
+ pool: LPPool;
2061
+ /**
2062
+ * An asset symbol
2063
+ */
2064
+ quote_asset_symbol: string | null;
2065
+ /**
2066
+ * The round number
2067
+ */
2068
+ round: number;
2069
+ /**
2070
+ * An arbitrary precision decimal represented as a string
2071
+ */
2072
+ value: string | null;
2073
+ /**
2074
+ * On-chain venue
2075
+ */
2076
+ venue: Venue;
2077
+ }
2078
+ /**
2079
+ * APY Data for lend/borrow markets
2080
+ */
2081
+ export interface LendBorrowAPYs {
2082
+ /**
2083
+ * APY Data
2084
+ */
2085
+ base: APY;
2086
+ /**
2087
+ * Array of APY
2088
+ */
2089
+ rewards: Array<APY>;
2090
+ /**
2091
+ * An arbitrary precision decimal represented as a string
2092
+ */
2093
+ total: Decimal;
2094
+ }
2095
+ /**
2096
+ * A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
2097
+ * prefix
2098
+ */
2099
+ export type LendBorrowMarketID = string;
2100
+ /**
2101
+ * A lend market
2102
+ */
2103
+ export interface LendMarket {
2104
+ /**
2105
+ * A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
2106
+ * prefix
2107
+ */
2108
+ id: LendBorrowMarketID;
2109
+ /**
2110
+ * APY Data for lend/borrow markets
2111
+ */
2112
+ apys: LendBorrowAPYs;
2113
+ /**
2114
+ * On-chain asset (aka token)
2115
+ */
2116
+ asset: Asset;
2117
+ /**
2118
+ * Information about a specific block number and its timestamp
2119
+ */
2120
+ blockstamp: Blockstamp;
2121
+ /**
2122
+ * An arbitrary precision decimal represented as a string
2123
+ */
2124
+ liquidity: Decimal;
2125
+ /**
2126
+ * An asset symbol
2127
+ */
2128
+ quote_asset_symbol: string | null;
2129
+ /**
2130
+ * An arbitrary precision decimal represented as a string
2131
+ */
2132
+ total_supply: Decimal;
2133
+ /**
2134
+ * On-chain venue
2135
+ */
2136
+ venue: Venue;
2137
+ }
2138
+ /**
2139
+ * A lend position
2140
+ */
2141
+ export interface LendPosition {
2142
+ /**
2143
+ * An EVM address
2144
+ */
2145
+ account: Account;
2146
+ /**
2147
+ * Information about a specific block number and its timestamp
2148
+ */
2149
+ blockstamp: Blockstamp;
2150
+ collateral_enabled: boolean;
2151
+ /**
2152
+ * A lend market
2153
+ */
2154
+ market: LendMarket;
2155
+ /**
2156
+ * An asset symbol
2157
+ */
2158
+ quote_asset_symbol: string | null;
2159
+ /**
2160
+ * An arbitrary precision decimal represented as a string
2161
+ */
2162
+ supplied_amount: Decimal;
2163
+ /**
2164
+ * An arbitrary precision decimal represented as a string
2165
+ */
2166
+ value: string | null;
2167
+ }
2168
+ /**
2169
+ * A lock market
2170
+ */
2171
+ export interface LockMarket {
2172
+ /**
2173
+ * On-chain asset (aka token)
2174
+ */
2175
+ asset: Asset;
2176
+ /**
2177
+ * Data about a blockchain
2178
+ */
2179
+ blockchain: Blockchain;
2180
+ /**
2181
+ * On-chain venue
2182
+ */
2183
+ venue: Venue;
2184
+ }
2185
+ /**
2186
+ * A lock position
2187
+ */
2188
+ export interface LockPosition {
2189
+ /**
2190
+ * An EVM address
2191
+ */
2192
+ account: Account;
2193
+ /**
2194
+ * Information about a specific block number and its timestamp
2195
+ */
2196
+ blockstamp: Blockstamp;
2197
+ /**
2198
+ * An arbitrary precision decimal represented as a string
2199
+ */
2200
+ locked_amount: Decimal;
2201
+ /**
2202
+ * A NFT
2203
+ */
2204
+ locked_asset: NFT;
2205
+ /**
2206
+ * A lock market
2207
+ */
2208
+ market: LockMarket;
2209
+ /**
2210
+ * ISO8601 Timestamp
2211
+ */
2212
+ unlocked_at: Timestamp;
2213
+ used: boolean;
2214
+ /**
2215
+ * An arbitrary precision decimal represented as a string
2216
+ */
2217
+ voting_power: Decimal;
2218
+ }
2219
+ /**
2220
+ * A liquidity pool
2221
+ */
2222
+ export interface LPPool {
2223
+ /**
2224
+ * A LP pool ID, represented as a TypeID with `lp_pool` prefix
2225
+ */
2226
+ id: string;
2227
+ /**
2228
+ * Response for multiple assets
2229
+ */
2230
+ assets: Array<Asset>;
2231
+ /**
2232
+ * Pool attributes that are specific to particular venue types
2233
+ */
2234
+ attributes: LPPoolUniswapV3Attributes | LPPoolSolidlyAttributes;
2235
+ /**
2236
+ * Information about a specific block number and its timestamp
2237
+ */
2238
+ blockstamp: Blockstamp;
2239
+ /**
2240
+ * An EVM address
2241
+ */
2242
+ pool_address: Account;
2243
+ /**
2244
+ * An arbitrary precision decimal represented as a string
2245
+ */
2246
+ pool_fee: Decimal;
2247
+ /**
2248
+ * Type of a liquidity pool
2249
+ */
2250
+ pool_type: 'pair' | 'multi' | 'weighted' | 'range';
2251
+ /**
2252
+ * An asset symbol
2253
+ */
2254
+ quote_asset_symbol: string | null;
2255
+ /**
2256
+ * A list of arbitrary precision decimals
2257
+ */
2258
+ reserve_amounts: Array<Decimal>;
2259
+ /**
2260
+ * A list of arbitrary precision decimals
2261
+ */
2262
+ reserve_ratios: Array<Decimal> | null;
2263
+ /**
2264
+ * An arbitrary precision decimal represented as a string
2265
+ */
2266
+ total_liquidity: string | null;
2267
+ /**
2268
+ * On-chain venue
2269
+ */
2270
+ venue: Venue;
2271
+ }
2272
+ /**
2273
+ * Attributes for Solidly venue type pools
2274
+ */
2275
+ export interface LPPoolSolidlyAttributes {
2276
+ /**
2277
+ * True if pool is stable, false if volatile
2278
+ */
2279
+ stable: boolean;
2280
+ }
2281
+ /**
2282
+ * Attributes for Uniswap V3 venue type pools
2283
+ */
2284
+ export interface LPPoolUniswapV3Attributes {
2285
+ /**
2286
+ * Pool fee
2287
+ */
2288
+ fee: string;
2289
+ }
2290
+ /**
2291
+ * A position in a liquidity pool
2292
+ */
2293
+ export interface LPPosition {
2294
+ /**
2295
+ * An EVM address
2296
+ */
2297
+ account: Account;
2298
+ /**
2299
+ * A list of arbitrary precision decimals
2300
+ */
2301
+ amounts: Array<Decimal>;
2302
+ /**
2303
+ * Attributes for Uniswap V3 venue type positions
2304
+ */
2305
+ attributes: LPPositionAttributes;
2306
+ /**
2307
+ * Information about a specific block number and its timestamp
2308
+ */
2309
+ blockstamp: Blockstamp;
2310
+ /**
2311
+ * An arbitrary precision decimal represented as a string
2312
+ */
2313
+ lp_amount: Decimal;
2314
+ /**
2315
+ * An LP asset, either an Asset or a NFT
2316
+ */
2317
+ lp_asset: Asset | NFT;
2318
+ /**
2319
+ * An arbitrary precision decimal represented as a string
2320
+ */
2321
+ ownership: string | null;
2322
+ /**
2323
+ * A liquidity pool
2324
+ */
2325
+ pool: LPPool;
2326
+ /**
2327
+ * An asset symbol
2328
+ */
2329
+ quote_asset_symbol: string | null;
2330
+ /**
2331
+ * An arbitrary precision decimal represented as a string
2332
+ */
2333
+ value: string | null;
2334
+ }
2335
+ /**
2336
+ * Attributes for Uniswap V3 venue type positions
2337
+ */
2338
+ export interface LPPositionAttributes {
2339
+ /**
2340
+ * Whether the position is in range
2341
+ */
2342
+ in_range: boolean;
2343
+ /**
2344
+ * An arbitrary precision decimal represented as a string
2345
+ */
2346
+ lower: Decimal;
2347
+ /**
2348
+ * An arbitrary precision decimal represented as a string
2349
+ */
2350
+ price: Decimal;
2351
+ /**
2352
+ * Lower tick
2353
+ */
2354
+ tick_lower: number;
2355
+ /**
2356
+ * Upper tick
2357
+ */
2358
+ tick_upper: number;
2359
+ /**
2360
+ * An arbitrary precision decimal represented as a string
2361
+ */
2362
+ upper: Decimal;
2363
+ }
2364
+ /**
2365
+ * Attributes for Uniswap V3 venue type positions
2366
+ */
2367
+ export interface LPPositionUniswapV3Attributes {
2368
+ /**
2369
+ * Whether the position is in range
2370
+ */
2371
+ in_range: boolean;
2372
+ /**
2373
+ * An arbitrary precision decimal represented as a string
2374
+ */
2375
+ lower: Decimal;
2376
+ /**
2377
+ * An arbitrary precision decimal represented as a string
2378
+ */
2379
+ price: Decimal;
2380
+ /**
2381
+ * Lower tick
2382
+ */
2383
+ tick_lower: number;
2384
+ /**
2385
+ * Upper tick
2386
+ */
2387
+ tick_upper: number;
2388
+ /**
2389
+ * An arbitrary precision decimal represented as a string
2390
+ */
2391
+ upper: Decimal;
2392
+ }
2393
+ /**
2394
+ * An LP quote
2395
+ */
2396
+ export interface LPQuote {
2397
+ /**
2398
+ * An EVM address
2399
+ */
2400
+ account: Account;
2401
+ /**
2402
+ * A list of arbitrary precision decimals
2403
+ */
2404
+ amounts: Array<Decimal>;
2405
+ /**
2406
+ * A list of arbitrary precision decimals
2407
+ */
2408
+ amounts_delta: Array<Decimal>;
2409
+ /**
2410
+ * Information about a specific block number and its timestamp
2411
+ */
2412
+ blockstamp: Blockstamp;
2413
+ /**
2414
+ * An arbitrary precision decimal represented as a string
2415
+ */
2416
+ ownership: string | null;
2417
+ /**
2418
+ * A liquidity pool
2419
+ */
2420
+ pool: LPPool;
2421
+ /**
2422
+ * An asset symbol
2423
+ */
2424
+ quote_asset_symbol: string | null;
2425
+ /**
2426
+ * An arbitrary precision decimal represented as a string
2427
+ */
2428
+ value: string | null;
2429
+ }
2430
+ /**
2431
+ * Uniswap position specifier
2432
+ */
2433
+ export interface LPUniswapV3PositionSpecifier {
2434
+ /**
2435
+ * A NFT
2436
+ */
2437
+ position_nft: NFT;
2438
+ }
2439
+ /**
2440
+ * A Uniswap V3 range. Lower and upper bounds should satisfy 0 <= `lower` <
2441
+ * `upper`. The value -1 can be used in `upper` for infinity
2442
+ */
2443
+ export interface LPUniswapV3Range {
2444
+ /**
2445
+ * An arbitrary precision decimal represented as a string
2446
+ */
2447
+ lower: Decimal;
2448
+ /**
2449
+ * An arbitrary precision decimal represented as a string
2450
+ */
2451
+ upper: Decimal;
2452
+ }
2453
+ /**
2454
+ * Estimated cost of an operation
2455
+ */
2456
+ export interface NetworkFeeEstimate {
2457
+ /**
2458
+ * An arbitrary precision decimal represented as a string
2459
+ */
2460
+ amount: Decimal;
2461
+ /**
2462
+ * On-chain asset (aka token)
2463
+ */
2464
+ asset: Asset;
2465
+ /**
2466
+ * An arbitrary precision decimal represented as a string
2467
+ */
2468
+ cost: string | null;
2469
+ /**
2470
+ * An asset symbol
2471
+ */
2472
+ quote_asset_symbol: string | null;
2473
+ }
2474
+ /**
2475
+ * Blockchain's network
2476
+ */
2477
+ export type NetworkName = string;
2478
+ /**
2479
+ * A NFT
2480
+ */
2481
+ export interface NFT {
2482
+ /**
2483
+ * The NFT id
2484
+ */
2485
+ id: number;
2486
+ /**
2487
+ * A NFT Collection
2488
+ */
2489
+ collection: NFTCollection;
2490
+ }
2491
+ /**
2492
+ * A NFT Collection
2493
+ */
2494
+ export interface NFTCollection {
2495
+ /**
2496
+ * The NFT Collection's address
2497
+ */
2498
+ address: string;
2499
+ /**
2500
+ * Data about a blockchain
2501
+ */
2502
+ blockchain?: NFTCollection.Blockchain;
2503
+ /**
2504
+ * The NFT Collection's name
2505
+ */
2506
+ name?: string;
2507
+ }
2508
+ export declare namespace NFTCollection {
2509
+ /**
2510
+ * Data about a blockchain
2511
+ */
2512
+ interface Blockchain {
2513
+ /**
2514
+ * A blockchain ID, represented as a TypeID with `blockchain` prefix
2515
+ */
2516
+ id: VektorAPI.BlockchainID;
2517
+ /**
2518
+ * Data about an EVM blockchain
2519
+ */
2520
+ chain_data: VektorAPI.EVMChainData;
2521
+ /**
2522
+ * Blockchain ecosystem
2523
+ */
2524
+ chain_type: VektorAPI.ChainType;
2525
+ /**
2526
+ * The blockchain's explorer URL
2527
+ */
2528
+ explorer_url: string;
2529
+ /**
2530
+ * BlockchainName
2531
+ */
2532
+ name: VektorAPI.BlockchainName;
2533
+ /**
2534
+ * Blockchain's network
2535
+ */
2536
+ network: VektorAPI.NetworkName;
2537
+ /**
2538
+ * A blockchain symbol
2539
+ */
2540
+ symbol: VektorAPI.BlockchainSymbol;
2541
+ }
2542
+ }
2543
+ /**
2544
+ * A range of timestamps
2545
+ */
2546
+ export interface OffChainHistoricalRange {
2547
+ /**
2548
+ * ISO8601 Timestamp
2549
+ */
2550
+ from: Timestamp;
2551
+ /**
2552
+ * ISO8601 Timestamp
2553
+ */
2554
+ to: Timestamp;
2555
+ }
2556
+ /**
2557
+ * A range of blockstamps
2558
+ */
2559
+ export interface OnChainHistoricalRange {
2560
+ /**
2561
+ * Information about a specific block number and its timestamp
2562
+ */
2563
+ from: Blockstamp;
2564
+ /**
2565
+ * Information about a specific block number and its timestamp
2566
+ */
2567
+ to: Blockstamp;
2568
+ }
2569
+ /**
2570
+ * A price
2571
+ */
2572
+ export interface Price {
2573
+ /**
2574
+ * An asset symbol
2575
+ */
2576
+ asset_symbol: AssetSymbol;
2577
+ /**
2578
+ * An arbitrary precision decimal represented as a string
2579
+ */
2580
+ change_1h: string | null;
2581
+ /**
2582
+ * An arbitrary precision decimal represented as a string
2583
+ */
2584
+ change_1y: string | null;
2585
+ /**
2586
+ * An arbitrary precision decimal represented as a string
2587
+ */
2588
+ change_24h: string | null;
2589
+ /**
2590
+ * An arbitrary precision decimal represented as a string
2591
+ */
2592
+ change_30d: string | null;
2593
+ /**
2594
+ * An arbitrary precision decimal represented as a string
2595
+ */
2596
+ change_7d: string | null;
2597
+ /**
2598
+ * An arbitrary precision decimal represented as a string
2599
+ */
2600
+ market_cap: string | null;
2601
+ /**
2602
+ * An arbitrary precision decimal represented as a string
2603
+ */
2604
+ price: Decimal;
2605
+ /**
2606
+ * An asset symbol
2607
+ */
2608
+ quote_asset_symbol: AssetSymbol;
2609
+ }
2610
+ /**
2611
+ * Quote info for 0x
2612
+ */
2613
+ export interface QuoteInfo0x {
2614
+ /**
2615
+ * An arbitrary precision decimal represented as a string
2616
+ */
2617
+ estimated_gas_used: string | null;
2618
+ /**
2619
+ * A route in a 0x quote
2620
+ */
2621
+ route: QuoteInfo0xRoute;
2622
+ }
2623
+ /**
2624
+ * A fill in a 0x quote
2625
+ */
2626
+ export interface QuoteInfo0xFill {
2627
+ /**
2628
+ * An EVM address
2629
+ */
2630
+ from: AddressEVM;
2631
+ proportion_bps: number;
2632
+ source: string;
2633
+ /**
2634
+ * An EVM address
2635
+ */
2636
+ to: AddressEVM;
2637
+ }
2638
+ /**
2639
+ * A route in a 0x quote
2640
+ */
2641
+ export interface QuoteInfo0xRoute {
2642
+ /**
2643
+ * A list of fills in a 0x quote
2644
+ */
2645
+ fills: Array<QuoteInfo0xFill>;
2646
+ /**
2647
+ * A list of tokens in a 0x quote
2648
+ */
2649
+ tokens: Array<QuoteInfo0xToken>;
2650
+ }
2651
+ /**
2652
+ * A token in a 0x quote
2653
+ */
2654
+ export interface QuoteInfo0xToken {
2655
+ /**
2656
+ * An EVM address
2657
+ */
2658
+ address: AddressEVM;
2659
+ symbol: string;
2660
+ }
2661
+ /**
2662
+ * Quote info for Curve
2663
+ */
2664
+ export interface QuoteInfoCurve {
2665
+ i_index: number;
2666
+ j_index: number;
2667
+ /**
2668
+ * A LP pool ID, represented as a TypeID with `lp_pool` prefix
2669
+ */
2670
+ pool_id: string;
2671
+ swap_type: string;
2672
+ }
2673
+ /**
2674
+ * Quote info for Uniswap V2
2675
+ */
2676
+ export interface QuoteInfoUniswapV2 {
2677
+ /**
2678
+ * A list of LP pool IDs
2679
+ */
2680
+ pool_ids: Array<string>;
2681
+ }
2682
+ /**
2683
+ * Quote info for Uniswap V3
2684
+ */
2685
+ export interface QuoteInfoUniswapV3 {
2686
+ /**
2687
+ * A list of LP pool IDs
2688
+ */
2689
+ pool_ids: Array<string>;
2690
+ }
2691
+ /**
2692
+ * Registry data for a lend borrow market
2693
+ */
2694
+ export interface RegistryLendBorrowMarket {
2695
+ /**
2696
+ * A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
2697
+ * prefix
2698
+ */
2699
+ id: LendBorrowMarketID;
2700
+ /**
2701
+ * On-chain asset (aka token)
2702
+ */
2703
+ asset: Asset;
2704
+ /**
2705
+ * Data about a blockchain
2706
+ */
2707
+ blockchain: Blockchain;
2708
+ /**
2709
+ * On-chain venue
2710
+ */
2711
+ venue: Venue;
2712
+ }
2713
+ /**
2714
+ * Registry data for an LP pool
2715
+ */
2716
+ export interface RegistryLPPool {
2717
+ /**
2718
+ * A LP pool ID, represented as a TypeID with `lp_pool` prefix
2719
+ */
2720
+ id: string;
2721
+ /**
2722
+ * Response for multiple assets
2723
+ */
2724
+ assets: Array<Asset>;
2725
+ /**
2726
+ * Data about a blockchain
2727
+ */
2728
+ blockchain: Blockchain;
2729
+ /**
2730
+ * On-chain venue
2731
+ */
2732
+ venue: Venue;
2733
+ }
2734
+ /**
2735
+ * A sell quote
2736
+ */
2737
+ export interface SellQuote {
2738
+ /**
2739
+ * Data about a blockchain
2740
+ */
2741
+ blockchain: Blockchain;
2742
+ /**
2743
+ * Estimated cost of an operation
2744
+ */
2745
+ fee_estimate: SellQuote.FeeEstimate | null;
2746
+ /**
2747
+ * An asset symbol
2748
+ */
2749
+ quote_asset_symbol: string | null;
2750
+ /**
2751
+ * Quote info for sell quotes
2752
+ */
2753
+ quote_info: QuoteInfoCurve | QuoteInfoUniswapV2 | QuoteInfoUniswapV3 | QuoteInfo0x;
2754
+ /**
2755
+ * An arbitrary precision decimal represented as a string
2756
+ */
2757
+ quote_value: string | null;
2758
+ /**
2759
+ * An arbitrary precision decimal represented as a string
2760
+ */
2761
+ receive_amount: Decimal;
2762
+ /**
2763
+ * On-chain asset (aka token)
2764
+ */
2765
+ receive_asset: Asset;
2766
+ /**
2767
+ * An arbitrary precision decimal represented as a string
2768
+ */
2769
+ spend_amount: Decimal;
2770
+ /**
2771
+ * On-chain asset (aka token)
2772
+ */
2773
+ spend_asset: Asset;
2774
+ /**
2775
+ * On-chain venue
2776
+ */
2777
+ venue: Venue;
2778
+ }
2779
+ export declare namespace SellQuote {
2780
+ /**
2781
+ * Estimated cost of an operation
2782
+ */
2783
+ interface FeeEstimate {
2784
+ /**
2785
+ * An arbitrary precision decimal represented as a string
2786
+ */
2787
+ amount: VektorAPI.Decimal;
2788
+ /**
2789
+ * On-chain asset (aka token)
2790
+ */
2791
+ asset: VektorAPI.Asset;
2792
+ /**
2793
+ * An arbitrary precision decimal represented as a string
2794
+ */
2795
+ cost: string | null;
2796
+ /**
2797
+ * An asset symbol
2798
+ */
2799
+ quote_asset_symbol: string | null;
2800
+ }
2801
+ }
2802
+ /**
2803
+ * ISO8601 Timestamp
2804
+ */
2805
+ export type Timestamp = string;
2806
+ /**
2807
+ * Either a ISO8601 timestamp or a block number
2808
+ */
2809
+ export type TimestampOrBlockNumber = Timestamp | BlockNumber;
2810
+ /**
2811
+ * A transaction hash
2812
+ */
2813
+ export type TransactionHash = string;
2814
+ /**
2815
+ * An error
2816
+ */
2817
+ export interface VektorError {
2818
+ /**
2819
+ * Error message
2820
+ */
2821
+ message: string;
2822
+ /**
2823
+ * Error parameters
2824
+ */
2825
+ params: {
2826
+ [key: string]: unknown;
2827
+ };
2828
+ /**
2829
+ * Error type
2830
+ */
2831
+ type: string;
2832
+ }
2833
+ /**
2834
+ * On-chain venue
2835
+ */
2836
+ export interface Venue {
2837
+ /**
2838
+ * A venue ID, represented as a TypeID with `venue` prefix
2839
+ */
2840
+ id: VenueID;
2841
+ /**
2842
+ * A list of blockchain IDs
2843
+ */
2844
+ blockchain_ids: Array<BlockchainID>;
2845
+ /**
2846
+ * Venue name
2847
+ */
2848
+ name: string;
2849
+ /**
2850
+ * A venue symbol
2851
+ */
2852
+ symbol: VenueSymbol;
2853
+ /**
2854
+ * Venue type
2855
+ */
2856
+ type: string;
2857
+ /**
2858
+ * Venue url
2859
+ */
2860
+ url: string;
2861
+ }
2862
+ /**
2863
+ * A venue ID, represented as a TypeID with `venue` prefix
2864
+ */
2865
+ export type VenueID = string;
2866
+ /**
2867
+ * A venue ID, represented as a TypeID with `venue` prefix
2868
+ */
2869
+ export type VenueIDOrVenueSymbol = string;
2870
+ /**
2871
+ * A venue symbol
2872
+ */
2873
+ export type VenueSymbol = string;
2874
+ /**
2875
+ * A LP incentive vote market
2876
+ */
2877
+ export interface VoteMarket {
2878
+ /**
2879
+ * Information about a specific block number and its timestamp
2880
+ */
2881
+ blockstamp: Blockstamp;
2882
+ /**
2883
+ * A lp pool incentive market
2884
+ */
2885
+ market: IncentivizeMarket;
2886
+ /**
2887
+ * An asset symbol
2888
+ */
2889
+ quote_asset_symbol: string | null;
2890
+ /**
2891
+ * A list of arbitrary precision decimals
2892
+ */
2893
+ trading_fees_amounts: Array<Decimal>;
2894
+ /**
2895
+ * Response for multiple assets
2896
+ */
2897
+ trading_fees_assets: Array<Asset>;
2898
+ /**
2899
+ * An arbitrary precision decimal represented as a string
2900
+ */
2901
+ value: Decimal;
2902
+ /**
2903
+ * An arbitrary precision decimal represented as a string
2904
+ */
2905
+ value_per_vote: Decimal;
2906
+ /**
2907
+ * An arbitrary precision decimal represented as a string
2908
+ */
2909
+ votes: Decimal;
2910
+ }
2911
+ /**
2912
+ * A LP vote reward
2913
+ */
2914
+ export interface VoteReward {
2915
+ /**
2916
+ * An EVM address
2917
+ */
2918
+ account: Account;
2919
+ /**
2920
+ * Information about a specific block number and its timestamp
2921
+ */
2922
+ blockstamp: Blockstamp;
2923
+ /**
2924
+ * A list of arbitrary precision decimals
2925
+ */
2926
+ fee_amounts: Array<Decimal>;
2927
+ /**
2928
+ * Response for multiple assets
2929
+ */
2930
+ fee_assets: Array<Asset>;
2931
+ /**
2932
+ * A list of arbitrary precision decimals
2933
+ */
2934
+ incentive_amounts: Array<Decimal>;
2935
+ /**
2936
+ * Response for multiple assets
2937
+ */
2938
+ incentive_assets: Array<Asset>;
2939
+ /**
2940
+ * A list of lock positions
2941
+ */
2942
+ lock_positions: Array<LockPosition>;
2943
+ /**
2944
+ * A liquidity pool
2945
+ */
2946
+ pool: LPPool;
2947
+ /**
2948
+ * An asset symbol
2949
+ */
2950
+ quote_asset_symbol: string | null;
2951
+ /**
2952
+ * An arbitrary precision decimal represented as a string
2953
+ */
2954
+ value: Decimal;
2955
+ }
2956
+ export declare namespace Vektor {
2957
+ export { type Account as Account, type AddressEVM as AddressEVM, type APY as APY, type Asset as Asset, type AssetID as AssetID, type AssetIDOrAddressEVMOrAssetSymbol as AssetIDOrAddressEVMOrAssetSymbol, type AssetSymbol as AssetSymbol, type Balance as Balance, type BlockNumber as BlockNumber, type Blockchain as Blockchain, type BlockchainID as BlockchainID, type BlockchainIDOrBlockchainSymbol as BlockchainIDOrBlockchainSymbol, type BlockchainName as BlockchainName, type BlockchainSymbol as BlockchainSymbol, type Blockstamp as Blockstamp, type BorrowAccount as BorrowAccount, type BorrowMarket as BorrowMarket, type BorrowPosition as BorrowPosition, type BridgeQuote as BridgeQuote, type BuyQuote as BuyQuote, type ChainType as ChainType, type Decimal as Decimal, type ErrorWrapper as ErrorWrapper, type EVMChainData as EVMChainData, type Execution as Execution, type ExecutionEVMTransactionEIP1559Payload as ExecutionEVMTransactionEIP1559Payload, type ExecutionEVMTransactionPayload as ExecutionEVMTransactionPayload, type ExecutionEVMTransactionState as ExecutionEVMTransactionState, type ExecutionID as ExecutionID, type ExecutionState as ExecutionState, type ExecutionStepID as ExecutionStepID, type HexString as HexString, type IncentivizeMarket as IncentivizeMarket, type LendBorrowAPYs as LendBorrowAPYs, type LendBorrowMarketID as LendBorrowMarketID, type LendMarket as LendMarket, type LendPosition as LendPosition, type LockMarket as LockMarket, type LockPosition as LockPosition, type LPPool as LPPool, type LPPoolSolidlyAttributes as LPPoolSolidlyAttributes, type LPPoolUniswapV3Attributes as LPPoolUniswapV3Attributes, type LPPosition as LPPosition, type LPPositionAttributes as LPPositionAttributes, type LPPositionUniswapV3Attributes as LPPositionUniswapV3Attributes, type LPQuote as LPQuote, type LPUniswapV3PositionSpecifier as LPUniswapV3PositionSpecifier, type LPUniswapV3Range as LPUniswapV3Range, type NetworkFeeEstimate as NetworkFeeEstimate, type NetworkName as NetworkName, type NFT as NFT, type NFTCollection as NFTCollection, type OffChainHistoricalRange as OffChainHistoricalRange, type OnChainHistoricalRange as OnChainHistoricalRange, type Price as Price, type QuoteInfo0x as QuoteInfo0x, type QuoteInfo0xFill as QuoteInfo0xFill, type QuoteInfo0xRoute as QuoteInfo0xRoute, type QuoteInfo0xToken as QuoteInfo0xToken, type QuoteInfoCurve as QuoteInfoCurve, type QuoteInfoUniswapV2 as QuoteInfoUniswapV2, type QuoteInfoUniswapV3 as QuoteInfoUniswapV3, type RegistryLendBorrowMarket as RegistryLendBorrowMarket, type RegistryLPPool as RegistryLPPool, type SellQuote as SellQuote, type Timestamp as Timestamp, type TimestampOrBlockNumber as TimestampOrBlockNumber, type TransactionHash as TransactionHash, type VektorError as VektorError, type Venue as Venue, type VenueID as VenueID, type VenueIDOrVenueSymbol as VenueIDOrVenueSymbol, type VenueSymbol as VenueSymbol, type VoteMarket as VoteMarket, type VoteReward as VoteReward, };
2958
+ export { Registry as Registry };
2959
+ export { Balances as Balances, type BalanceListResponse as BalanceListResponse, type BalanceListHistoricalResponse as BalanceListHistoricalResponse, type BalanceListParams as BalanceListParams, type BalanceListHistoricalParams as BalanceListHistoricalParams, };
2960
+ export { Prices as Prices, type PriceListResponse as PriceListResponse, type PriceListHistoricalResponse as PriceListHistoricalResponse, type PriceListParams as PriceListParams, type PriceListHistoricalParams as PriceListHistoricalParams, };
2961
+ export { Lend as Lend };
2962
+ export { Borrow as Borrow };
2963
+ export { LP as LP };
2964
+ export { Buy as Buy };
2965
+ export { Sell as Sell };
2966
+ export { Move as Move, type MoveCreateParams as MoveCreateParams };
2967
+ export { Wrap as Wrap };
2968
+ export { Bridge as Bridge };
2969
+ export { Lock as Lock };
2970
+ export { Vote as Vote };
2971
+ export { Incentivize as Incentivize, type IncentivizeListResponse as IncentivizeListResponse, type IncentivizeListParams as IncentivizeListParams, };
2972
+ export { Executions as Executions, type ExecutionListResponse as ExecutionListResponse };
2973
+ }
2974
+ //# sourceMappingURL=vektor.d.mts.map