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