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