@metadaoproject/programs 0.1.0-alpha.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 (347) hide show
  1. package/README.md +90 -0
  2. package/dist/amm/index.d.ts +1 -0
  3. package/dist/amm/index.js +2 -0
  4. package/dist/amm/index.js.map +1 -0
  5. package/dist/amm/v0.3/AmmClient.d.ts +224 -0
  6. package/dist/amm/v0.3/AmmClient.js +173 -0
  7. package/dist/amm/v0.3/AmmClient.js.map +1 -0
  8. package/dist/amm/v0.3/index.d.ts +3 -0
  9. package/dist/amm/v0.3/index.js +4 -0
  10. package/dist/amm/v0.3/index.js.map +1 -0
  11. package/dist/amm/v0.3/pda.d.ts +3 -0
  12. package/dist/amm/v0.3/pda.js +14 -0
  13. package/dist/amm/v0.3/pda.js.map +1 -0
  14. package/dist/amm/v0.3/types/amm.d.ts +542 -0
  15. package/dist/amm/v0.3/types/amm.js +542 -0
  16. package/dist/amm/v0.3/types/amm.js.map +1 -0
  17. package/dist/amm/v0.3/types/index.d.ts +4 -0
  18. package/dist/amm/v0.3/types/index.js +3 -0
  19. package/dist/amm/v0.3/types/index.js.map +1 -0
  20. package/dist/amm/v0.4/AmmClient.d.ts +266 -0
  21. package/dist/amm/v0.4/AmmClient.js +186 -0
  22. package/dist/amm/v0.4/AmmClient.js.map +1 -0
  23. package/dist/amm/v0.4/index.d.ts +3 -0
  24. package/dist/amm/v0.4/index.js +4 -0
  25. package/dist/amm/v0.4/index.js.map +1 -0
  26. package/dist/amm/v0.4/pda.d.ts +3 -0
  27. package/dist/amm/v0.4/pda.js +14 -0
  28. package/dist/amm/v0.4/pda.js.map +1 -0
  29. package/dist/amm/v0.4/types/amm.d.ts +824 -0
  30. package/dist/amm/v0.4/types/amm.js +824 -0
  31. package/dist/amm/v0.4/types/amm.js.map +1 -0
  32. package/dist/amm/v0.4/types/index.d.ts +10 -0
  33. package/dist/amm/v0.4/types/index.js +3 -0
  34. package/dist/amm/v0.4/types/index.js.map +1 -0
  35. package/dist/amm/v0.5/AmmClient.d.ts +266 -0
  36. package/dist/amm/v0.5/AmmClient.js +186 -0
  37. package/dist/amm/v0.5/AmmClient.js.map +1 -0
  38. package/dist/amm/v0.5/index.d.ts +4 -0
  39. package/dist/amm/v0.5/index.js +5 -0
  40. package/dist/amm/v0.5/index.js.map +1 -0
  41. package/dist/amm/v0.5/pda.d.ts +3 -0
  42. package/dist/amm/v0.5/pda.js +14 -0
  43. package/dist/amm/v0.5/pda.js.map +1 -0
  44. package/dist/amm/v0.5/priceMath.d.ts +9 -0
  45. package/dist/amm/v0.5/priceMath.js +36 -0
  46. package/dist/amm/v0.5/priceMath.js.map +1 -0
  47. package/dist/amm/v0.5/types/amm.d.ts +832 -0
  48. package/dist/amm/v0.5/types/amm.js +832 -0
  49. package/dist/amm/v0.5/types/amm.js.map +1 -0
  50. package/dist/amm/v0.5/types/index.d.ts +10 -0
  51. package/dist/amm/v0.5/types/index.js +3 -0
  52. package/dist/amm/v0.5/types/index.js.map +1 -0
  53. package/dist/autocrat/index.d.ts +1 -0
  54. package/dist/autocrat/index.js +2 -0
  55. package/dist/autocrat/index.js.map +1 -0
  56. package/dist/autocrat/v0.3/AutocratClient.d.ts +233 -0
  57. package/dist/autocrat/v0.3/AutocratClient.js +269 -0
  58. package/dist/autocrat/v0.3/AutocratClient.js.map +1 -0
  59. package/dist/autocrat/v0.3/cu.d.ts +10 -0
  60. package/dist/autocrat/v0.3/cu.js +11 -0
  61. package/dist/autocrat/v0.3/cu.js.map +1 -0
  62. package/dist/autocrat/v0.3/index.d.ts +4 -0
  63. package/dist/autocrat/v0.3/index.js +5 -0
  64. package/dist/autocrat/v0.3/index.js.map +1 -0
  65. package/dist/autocrat/v0.3/pda.d.ts +4 -0
  66. package/dist/autocrat/v0.3/pda.js +14 -0
  67. package/dist/autocrat/v0.3/pda.js.map +1 -0
  68. package/dist/autocrat/v0.3/types/autocrat.d.ts +632 -0
  69. package/dist/autocrat/v0.3/types/autocrat.js +632 -0
  70. package/dist/autocrat/v0.3/types/autocrat.js.map +1 -0
  71. package/dist/autocrat/v0.3/types/index.d.ts +8 -0
  72. package/dist/autocrat/v0.3/types/index.js +3 -0
  73. package/dist/autocrat/v0.3/types/index.js.map +1 -0
  74. package/dist/autocrat/v0.4/AutocratClient.d.ts +266 -0
  75. package/dist/autocrat/v0.4/AutocratClient.js +385 -0
  76. package/dist/autocrat/v0.4/AutocratClient.js.map +1 -0
  77. package/dist/autocrat/v0.4/index.d.ts +3 -0
  78. package/dist/autocrat/v0.4/index.js +4 -0
  79. package/dist/autocrat/v0.4/index.js.map +1 -0
  80. package/dist/autocrat/v0.4/pda.d.ts +4 -0
  81. package/dist/autocrat/v0.4/pda.js +14 -0
  82. package/dist/autocrat/v0.4/pda.js.map +1 -0
  83. package/dist/autocrat/v0.4/types/autocrat.d.ts +1007 -0
  84. package/dist/autocrat/v0.4/types/autocrat.js +1007 -0
  85. package/dist/autocrat/v0.4/types/autocrat.js.map +1 -0
  86. package/dist/autocrat/v0.4/types/index.d.ts +14 -0
  87. package/dist/autocrat/v0.4/types/index.js +3 -0
  88. package/dist/autocrat/v0.4/types/index.js.map +1 -0
  89. package/dist/autocrat/v0.5/AutocratClient.d.ts +325 -0
  90. package/dist/autocrat/v0.5/AutocratClient.js +322 -0
  91. package/dist/autocrat/v0.5/AutocratClient.js.map +1 -0
  92. package/dist/autocrat/v0.5/index.d.ts +3 -0
  93. package/dist/autocrat/v0.5/index.js +4 -0
  94. package/dist/autocrat/v0.5/index.js.map +1 -0
  95. package/dist/autocrat/v0.5/pda.d.ts +9 -0
  96. package/dist/autocrat/v0.5/pda.js +17 -0
  97. package/dist/autocrat/v0.5/pda.js.map +1 -0
  98. package/dist/autocrat/v0.5/types/autocrat.d.ts +1061 -0
  99. package/dist/autocrat/v0.5/types/autocrat.js +1061 -0
  100. package/dist/autocrat/v0.5/types/autocrat.js.map +1 -0
  101. package/dist/autocrat/v0.5/types/index.d.ts +13 -0
  102. package/dist/autocrat/v0.5/types/index.js +3 -0
  103. package/dist/autocrat/v0.5/types/index.js.map +1 -0
  104. package/dist/bid_wall/index.d.ts +1 -0
  105. package/dist/bid_wall/index.js +2 -0
  106. package/dist/bid_wall/index.js.map +1 -0
  107. package/dist/bid_wall/v0.7/BidWallClient.d.ts +345 -0
  108. package/dist/bid_wall/v0.7/BidWallClient.js +132 -0
  109. package/dist/bid_wall/v0.7/BidWallClient.js.map +1 -0
  110. package/dist/bid_wall/v0.7/index.d.ts +3 -0
  111. package/dist/bid_wall/v0.7/index.js +4 -0
  112. package/dist/bid_wall/v0.7/index.js.map +1 -0
  113. package/dist/bid_wall/v0.7/pda.d.ts +8 -0
  114. package/dist/bid_wall/v0.7/pda.js +11 -0
  115. package/dist/bid_wall/v0.7/pda.js.map +1 -0
  116. package/dist/bid_wall/v0.7/types/bid_wall.d.ts +718 -0
  117. package/dist/bid_wall/v0.7/types/bid_wall.js +718 -0
  118. package/dist/bid_wall/v0.7/types/bid_wall.js.map +1 -0
  119. package/dist/bid_wall/v0.7/types/index.d.ts +10 -0
  120. package/dist/bid_wall/v0.7/types/index.js +3 -0
  121. package/dist/bid_wall/v0.7/types/index.js.map +1 -0
  122. package/dist/conditional_vault/index.d.ts +1 -0
  123. package/dist/conditional_vault/index.js +2 -0
  124. package/dist/conditional_vault/index.js.map +1 -0
  125. package/dist/conditional_vault/v0.3/ConditionalVaultClient.d.ts +281 -0
  126. package/dist/conditional_vault/v0.3/ConditionalVaultClient.js +132 -0
  127. package/dist/conditional_vault/v0.3/ConditionalVaultClient.js.map +1 -0
  128. package/dist/conditional_vault/v0.3/index.d.ts +3 -0
  129. package/dist/conditional_vault/v0.3/index.js +9 -0
  130. package/dist/conditional_vault/v0.3/index.js.map +1 -0
  131. package/dist/conditional_vault/v0.3/pda.d.ts +4 -0
  132. package/dist/conditional_vault/v0.3/pda.js +20 -0
  133. package/dist/conditional_vault/v0.3/pda.js.map +1 -0
  134. package/dist/conditional_vault/v0.3/types/conditional_vault.d.ts +448 -0
  135. package/dist/conditional_vault/v0.3/types/conditional_vault.js +448 -0
  136. package/dist/conditional_vault/v0.3/types/conditional_vault.js.map +1 -0
  137. package/dist/conditional_vault/v0.3/types/index.d.ts +4 -0
  138. package/dist/conditional_vault/v0.3/types/index.js +3 -0
  139. package/dist/conditional_vault/v0.3/types/index.js.map +1 -0
  140. package/dist/conditional_vault/v0.4/ConditionalVaultClient.d.ts +314 -0
  141. package/dist/conditional_vault/v0.4/ConditionalVaultClient.js +210 -0
  142. package/dist/conditional_vault/v0.4/ConditionalVaultClient.js.map +1 -0
  143. package/dist/conditional_vault/v0.4/index.d.ts +3 -0
  144. package/dist/conditional_vault/v0.4/index.js +4 -0
  145. package/dist/conditional_vault/v0.4/index.js.map +1 -0
  146. package/dist/conditional_vault/v0.4/pda.d.ts +12 -0
  147. package/dist/conditional_vault/v0.4/pda.js +41 -0
  148. package/dist/conditional_vault/v0.4/pda.js.map +1 -0
  149. package/dist/conditional_vault/v0.4/types/conditional_vault.d.ts +918 -0
  150. package/dist/conditional_vault/v0.4/types/conditional_vault.js +918 -0
  151. package/dist/conditional_vault/v0.4/types/conditional_vault.js.map +1 -0
  152. package/dist/conditional_vault/v0.4/types/index.d.ts +13 -0
  153. package/dist/conditional_vault/v0.4/types/index.js +3 -0
  154. package/dist/conditional_vault/v0.4/types/index.js.map +1 -0
  155. package/dist/constants.d.ts +45 -0
  156. package/dist/constants.js +56 -0
  157. package/dist/constants.js.map +1 -0
  158. package/dist/futarchy/index.d.ts +1 -0
  159. package/dist/futarchy/index.js +2 -0
  160. package/dist/futarchy/index.js.map +1 -0
  161. package/dist/futarchy/v0.6/FutarchyClient.d.ts +1235 -0
  162. package/dist/futarchy/v0.6/FutarchyClient.js +561 -0
  163. package/dist/futarchy/v0.6/FutarchyClient.js.map +1 -0
  164. package/dist/futarchy/v0.6/index.d.ts +3 -0
  165. package/dist/futarchy/v0.6/index.js +4 -0
  166. package/dist/futarchy/v0.6/index.js.map +1 -0
  167. package/dist/futarchy/v0.6/pda.d.ts +13 -0
  168. package/dist/futarchy/v0.6/pda.js +20 -0
  169. package/dist/futarchy/v0.6/pda.js.map +1 -0
  170. package/dist/futarchy/v0.6/types/futarchy.d.ts +3745 -0
  171. package/dist/futarchy/v0.6/types/futarchy.js +3745 -0
  172. package/dist/futarchy/v0.6/types/futarchy.js.map +1 -0
  173. package/dist/futarchy/v0.6/types/index.d.ts +39 -0
  174. package/dist/futarchy/v0.6/types/index.js +5 -0
  175. package/dist/futarchy/v0.6/types/index.js.map +1 -0
  176. package/dist/futarchy/v0.6/types/v0.6.0-futarchy.d.ts +2567 -0
  177. package/dist/futarchy/v0.6/types/v0.6.0-futarchy.js +2567 -0
  178. package/dist/futarchy/v0.6/types/v0.6.0-futarchy.js.map +1 -0
  179. package/dist/index.d.ts +13 -0
  180. package/dist/index.js +16 -0
  181. package/dist/index.js.map +1 -0
  182. package/dist/launchpad/index.d.ts +2 -0
  183. package/dist/launchpad/index.js +3 -0
  184. package/dist/launchpad/index.js.map +1 -0
  185. package/dist/launchpad/v0.4/LaunchpadClient.d.ts +415 -0
  186. package/dist/launchpad/v0.4/LaunchpadClient.js +200 -0
  187. package/dist/launchpad/v0.4/LaunchpadClient.js.map +1 -0
  188. package/dist/launchpad/v0.4/index.d.ts +3 -0
  189. package/dist/launchpad/v0.4/index.js +4 -0
  190. package/dist/launchpad/v0.4/index.js.map +1 -0
  191. package/dist/launchpad/v0.4/pda.d.ts +7 -0
  192. package/dist/launchpad/v0.4/pda.js +24 -0
  193. package/dist/launchpad/v0.4/pda.js.map +1 -0
  194. package/dist/launchpad/v0.4/types/index.d.ts +12 -0
  195. package/dist/launchpad/v0.4/types/index.js +3 -0
  196. package/dist/launchpad/v0.4/types/index.js.map +1 -0
  197. package/dist/launchpad/v0.4/types/launchpad.d.ts +1000 -0
  198. package/dist/launchpad/v0.4/types/launchpad.js +1000 -0
  199. package/dist/launchpad/v0.4/types/launchpad.js.map +1 -0
  200. package/dist/launchpad/v0.5/LaunchpadClient.d.ts +438 -0
  201. package/dist/launchpad/v0.5/LaunchpadClient.js +226 -0
  202. package/dist/launchpad/v0.5/LaunchpadClient.js.map +1 -0
  203. package/dist/launchpad/v0.5/index.d.ts +3 -0
  204. package/dist/launchpad/v0.5/index.js +4 -0
  205. package/dist/launchpad/v0.5/index.js.map +1 -0
  206. package/dist/launchpad/v0.5/pda.d.ts +6 -0
  207. package/dist/launchpad/v0.5/pda.js +21 -0
  208. package/dist/launchpad/v0.5/pda.js.map +1 -0
  209. package/dist/launchpad/v0.5/types/index.d.ts +12 -0
  210. package/dist/launchpad/v0.5/types/index.js +3 -0
  211. package/dist/launchpad/v0.5/types/index.js.map +1 -0
  212. package/dist/launchpad/v0.5/types/launchpad.d.ts +1062 -0
  213. package/dist/launchpad/v0.5/types/launchpad.js +1062 -0
  214. package/dist/launchpad/v0.5/types/launchpad.js.map +1 -0
  215. package/dist/launchpad/v0.6/LaunchpadClient.d.ts +541 -0
  216. package/dist/launchpad/v0.6/LaunchpadClient.js +278 -0
  217. package/dist/launchpad/v0.6/LaunchpadClient.js.map +1 -0
  218. package/dist/launchpad/v0.6/index.d.ts +3 -0
  219. package/dist/launchpad/v0.6/index.js +4 -0
  220. package/dist/launchpad/v0.6/index.js.map +1 -0
  221. package/dist/launchpad/v0.6/pda.d.ts +6 -0
  222. package/dist/launchpad/v0.6/pda.js +21 -0
  223. package/dist/launchpad/v0.6/pda.js.map +1 -0
  224. package/dist/launchpad/v0.6/types/index.d.ts +23 -0
  225. package/dist/launchpad/v0.6/types/index.js +5 -0
  226. package/dist/launchpad/v0.6/types/index.js.map +1 -0
  227. package/dist/launchpad/v0.6/types/launchpad.d.ts +1407 -0
  228. package/dist/launchpad/v0.6/types/launchpad.js +1407 -0
  229. package/dist/launchpad/v0.6/types/launchpad.js.map +1 -0
  230. package/dist/launchpad/v0.6/types/v0.6.0-launchpad.d.ts +1277 -0
  231. package/dist/launchpad/v0.6/types/v0.6.0-launchpad.js +1277 -0
  232. package/dist/launchpad/v0.6/types/v0.6.0-launchpad.js.map +1 -0
  233. package/dist/launchpad/v0.7/LaunchpadClient.d.ts +766 -0
  234. package/dist/launchpad/v0.7/LaunchpadClient.js +365 -0
  235. package/dist/launchpad/v0.7/LaunchpadClient.js.map +1 -0
  236. package/dist/launchpad/v0.7/index.d.ts +3 -0
  237. package/dist/launchpad/v0.7/index.js +4 -0
  238. package/dist/launchpad/v0.7/index.js.map +1 -0
  239. package/dist/launchpad/v0.7/pda.d.ts +4 -0
  240. package/dist/launchpad/v0.7/pda.js +12 -0
  241. package/dist/launchpad/v0.7/pda.js.map +1 -0
  242. package/dist/launchpad/v0.7/types/index.d.ts +16 -0
  243. package/dist/launchpad/v0.7/types/index.js +3 -0
  244. package/dist/launchpad/v0.7/types/index.js.map +1 -0
  245. package/dist/launchpad/v0.7/types/launchpad_v7.d.ts +2112 -0
  246. package/dist/launchpad/v0.7/types/launchpad_v7.js +2112 -0
  247. package/dist/launchpad/v0.7/types/launchpad_v7.js.map +1 -0
  248. package/dist/liquidation/index.d.ts +1 -0
  249. package/dist/liquidation/index.js +2 -0
  250. package/dist/liquidation/index.js.map +1 -0
  251. package/dist/liquidation/v0.7/LiquidationClient.d.ts +315 -0
  252. package/dist/liquidation/v0.7/LiquidationClient.js +149 -0
  253. package/dist/liquidation/v0.7/LiquidationClient.js.map +1 -0
  254. package/dist/liquidation/v0.7/index.d.ts +3 -0
  255. package/dist/liquidation/v0.7/index.js +4 -0
  256. package/dist/liquidation/v0.7/index.js.map +1 -0
  257. package/dist/liquidation/v0.7/pda.d.ts +12 -0
  258. package/dist/liquidation/v0.7/pda.js +18 -0
  259. package/dist/liquidation/v0.7/pda.js.map +1 -0
  260. package/dist/liquidation/v0.7/types/index.d.ts +5 -0
  261. package/dist/liquidation/v0.7/types/index.js +3 -0
  262. package/dist/liquidation/v0.7/types/index.js.map +1 -0
  263. package/dist/liquidation/v0.7/types/liquidation.d.ts +758 -0
  264. package/dist/liquidation/v0.7/types/liquidation.js +758 -0
  265. package/dist/liquidation/v0.7/types/liquidation.js.map +1 -0
  266. package/dist/mint_governor/index.d.ts +1 -0
  267. package/dist/mint_governor/index.js +2 -0
  268. package/dist/mint_governor/index.js.map +1 -0
  269. package/dist/mint_governor/v0.7/MintGovernorClient.d.ts +346 -0
  270. package/dist/mint_governor/v0.7/MintGovernorClient.js +114 -0
  271. package/dist/mint_governor/v0.7/MintGovernorClient.js.map +1 -0
  272. package/dist/mint_governor/v0.7/index.d.ts +3 -0
  273. package/dist/mint_governor/v0.7/index.js +4 -0
  274. package/dist/mint_governor/v0.7/index.js.map +1 -0
  275. package/dist/mint_governor/v0.7/pda.d.ts +11 -0
  276. package/dist/mint_governor/v0.7/pda.js +13 -0
  277. package/dist/mint_governor/v0.7/pda.js.map +1 -0
  278. package/dist/mint_governor/v0.7/types/index.d.ts +14 -0
  279. package/dist/mint_governor/v0.7/types/index.js +3 -0
  280. package/dist/mint_governor/v0.7/types/index.js.map +1 -0
  281. package/dist/mint_governor/v0.7/types/mint_governor.d.ts +737 -0
  282. package/dist/mint_governor/v0.7/types/mint_governor.js +737 -0
  283. package/dist/mint_governor/v0.7/types/mint_governor.js.map +1 -0
  284. package/dist/pda.d.ts +3 -0
  285. package/dist/pda.js +14 -0
  286. package/dist/pda.js.map +1 -0
  287. package/dist/performance_package_v2/index.d.ts +1 -0
  288. package/dist/performance_package_v2/index.js +2 -0
  289. package/dist/performance_package_v2/index.js.map +1 -0
  290. package/dist/performance_package_v2/v0.7/PerformancePackageV2Client.d.ts +323 -0
  291. package/dist/performance_package_v2/v0.7/PerformancePackageV2Client.js +140 -0
  292. package/dist/performance_package_v2/v0.7/PerformancePackageV2Client.js.map +1 -0
  293. package/dist/performance_package_v2/v0.7/index.d.ts +3 -0
  294. package/dist/performance_package_v2/v0.7/index.js +4 -0
  295. package/dist/performance_package_v2/v0.7/index.js.map +1 -0
  296. package/dist/performance_package_v2/v0.7/pda.d.ts +11 -0
  297. package/dist/performance_package_v2/v0.7/pda.js +14 -0
  298. package/dist/performance_package_v2/v0.7/pda.js.map +1 -0
  299. package/dist/performance_package_v2/v0.7/types/index.d.ts +9 -0
  300. package/dist/performance_package_v2/v0.7/types/index.js +3 -0
  301. package/dist/performance_package_v2/v0.7/types/index.js.map +1 -0
  302. package/dist/performance_package_v2/v0.7/types/performance_package_v2.d.ts +1070 -0
  303. package/dist/performance_package_v2/v0.7/types/performance_package_v2.js +1070 -0
  304. package/dist/performance_package_v2/v0.7/types/performance_package_v2.js.map +1 -0
  305. package/dist/priceMath.d.ts +30 -0
  306. package/dist/priceMath.js +115 -0
  307. package/dist/priceMath.js.map +1 -0
  308. package/dist/price_based_performance_package/index.d.ts +1 -0
  309. package/dist/price_based_performance_package/index.js +2 -0
  310. package/dist/price_based_performance_package/index.js.map +1 -0
  311. package/dist/price_based_performance_package/v0.6/PriceBasedPerformancePackageClient.d.ts +362 -0
  312. package/dist/price_based_performance_package/v0.6/PriceBasedPerformancePackageClient.js +117 -0
  313. package/dist/price_based_performance_package/v0.6/PriceBasedPerformancePackageClient.js.map +1 -0
  314. package/dist/price_based_performance_package/v0.6/index.d.ts +3 -0
  315. package/dist/price_based_performance_package/v0.6/index.js +4 -0
  316. package/dist/price_based_performance_package/v0.6/index.js.map +1 -0
  317. package/dist/price_based_performance_package/v0.6/pda.d.ts +11 -0
  318. package/dist/price_based_performance_package/v0.6/pda.js +14 -0
  319. package/dist/price_based_performance_package/v0.6/pda.js.map +1 -0
  320. package/dist/price_based_performance_package/v0.6/types/index.d.ts +14 -0
  321. package/dist/price_based_performance_package/v0.6/types/index.js +3 -0
  322. package/dist/price_based_performance_package/v0.6/types/index.js.map +1 -0
  323. package/dist/price_based_performance_package/v0.6/types/price_based_performance_package.d.ts +971 -0
  324. package/dist/price_based_performance_package/v0.6/types/price_based_performance_package.js +971 -0
  325. package/dist/price_based_performance_package/v0.6/types/price_based_performance_package.js.map +1 -0
  326. package/dist/shared_liquidity_manager/index.d.ts +1 -0
  327. package/dist/shared_liquidity_manager/index.js +2 -0
  328. package/dist/shared_liquidity_manager/index.js.map +1 -0
  329. package/dist/shared_liquidity_manager/v0.5/SharedLiquidityManagerClient.d.ts +25 -0
  330. package/dist/shared_liquidity_manager/v0.5/SharedLiquidityManagerClient.js +33 -0
  331. package/dist/shared_liquidity_manager/v0.5/SharedLiquidityManagerClient.js.map +1 -0
  332. package/dist/shared_liquidity_manager/v0.5/index.d.ts +3 -0
  333. package/dist/shared_liquidity_manager/v0.5/index.js +4 -0
  334. package/dist/shared_liquidity_manager/v0.5/index.js.map +1 -0
  335. package/dist/shared_liquidity_manager/v0.5/pda.d.ts +11 -0
  336. package/dist/shared_liquidity_manager/v0.5/pda.js +54 -0
  337. package/dist/shared_liquidity_manager/v0.5/pda.js.map +1 -0
  338. package/dist/shared_liquidity_manager/v0.5/types/index.d.ts +2 -0
  339. package/dist/shared_liquidity_manager/v0.5/types/index.js +3 -0
  340. package/dist/shared_liquidity_manager/v0.5/types/index.js.map +1 -0
  341. package/dist/shared_liquidity_manager/v0.5/types/shared_liquidity_manager.d.ts +89 -0
  342. package/dist/shared_liquidity_manager/v0.5/types/shared_liquidity_manager.js +89 -0
  343. package/dist/shared_liquidity_manager/v0.5/types/shared_liquidity_manager.js.map +1 -0
  344. package/dist/utils.d.ts +7 -0
  345. package/dist/utils.js +10 -0
  346. package/dist/utils.js.map +1 -0
  347. package/package.json +90 -0
@@ -0,0 +1,758 @@
1
+ export const IDL = {
2
+ version: "0.1.0",
3
+ name: "liquidation",
4
+ instructions: [
5
+ {
6
+ name: "initializeLiquidation",
7
+ accounts: [
8
+ {
9
+ name: "payer",
10
+ isMut: true,
11
+ isSigner: true,
12
+ },
13
+ {
14
+ name: "createKey",
15
+ isMut: false,
16
+ isSigner: true,
17
+ },
18
+ {
19
+ name: "recordAuthority",
20
+ isMut: false,
21
+ isSigner: false,
22
+ },
23
+ {
24
+ name: "liquidationAuthority",
25
+ isMut: false,
26
+ isSigner: false,
27
+ },
28
+ {
29
+ name: "baseMint",
30
+ isMut: false,
31
+ isSigner: false,
32
+ },
33
+ {
34
+ name: "quoteMint",
35
+ isMut: false,
36
+ isSigner: false,
37
+ },
38
+ {
39
+ name: "liquidation",
40
+ isMut: true,
41
+ isSigner: false,
42
+ },
43
+ {
44
+ name: "liquidationQuoteVault",
45
+ isMut: true,
46
+ isSigner: false,
47
+ },
48
+ {
49
+ name: "systemProgram",
50
+ isMut: false,
51
+ isSigner: false,
52
+ },
53
+ {
54
+ name: "tokenProgram",
55
+ isMut: false,
56
+ isSigner: false,
57
+ },
58
+ {
59
+ name: "associatedTokenProgram",
60
+ isMut: false,
61
+ isSigner: false,
62
+ },
63
+ {
64
+ name: "eventAuthority",
65
+ isMut: false,
66
+ isSigner: false,
67
+ },
68
+ {
69
+ name: "program",
70
+ isMut: false,
71
+ isSigner: false,
72
+ },
73
+ ],
74
+ args: [
75
+ {
76
+ name: "args",
77
+ type: {
78
+ defined: "InitializeLiquidationArgs",
79
+ },
80
+ },
81
+ ],
82
+ },
83
+ {
84
+ name: "setRefundRecord",
85
+ accounts: [
86
+ {
87
+ name: "payer",
88
+ isMut: true,
89
+ isSigner: true,
90
+ },
91
+ {
92
+ name: "recordAuthority",
93
+ isMut: false,
94
+ isSigner: true,
95
+ },
96
+ {
97
+ name: "liquidation",
98
+ isMut: true,
99
+ isSigner: false,
100
+ },
101
+ {
102
+ name: "recipient",
103
+ isMut: false,
104
+ isSigner: false,
105
+ },
106
+ {
107
+ name: "refundRecord",
108
+ isMut: true,
109
+ isSigner: false,
110
+ },
111
+ {
112
+ name: "systemProgram",
113
+ isMut: false,
114
+ isSigner: false,
115
+ },
116
+ {
117
+ name: "eventAuthority",
118
+ isMut: false,
119
+ isSigner: false,
120
+ },
121
+ {
122
+ name: "program",
123
+ isMut: false,
124
+ isSigner: false,
125
+ },
126
+ ],
127
+ args: [
128
+ {
129
+ name: "args",
130
+ type: {
131
+ defined: "SetRefundRecordArgs",
132
+ },
133
+ },
134
+ ],
135
+ },
136
+ {
137
+ name: "activateLiquidation",
138
+ accounts: [
139
+ {
140
+ name: "liquidationAuthority",
141
+ isMut: false,
142
+ isSigner: true,
143
+ },
144
+ {
145
+ name: "liquidation",
146
+ isMut: true,
147
+ isSigner: false,
148
+ },
149
+ {
150
+ name: "liquidationAuthorityQuoteAccount",
151
+ isMut: true,
152
+ isSigner: false,
153
+ },
154
+ {
155
+ name: "liquidationQuoteVault",
156
+ isMut: true,
157
+ isSigner: false,
158
+ },
159
+ {
160
+ name: "quoteMint",
161
+ isMut: false,
162
+ isSigner: false,
163
+ },
164
+ {
165
+ name: "tokenProgram",
166
+ isMut: false,
167
+ isSigner: false,
168
+ },
169
+ {
170
+ name: "eventAuthority",
171
+ isMut: false,
172
+ isSigner: false,
173
+ },
174
+ {
175
+ name: "program",
176
+ isMut: false,
177
+ isSigner: false,
178
+ },
179
+ ],
180
+ args: [],
181
+ },
182
+ {
183
+ name: "refund",
184
+ accounts: [
185
+ {
186
+ name: "recipient",
187
+ isMut: true,
188
+ isSigner: true,
189
+ },
190
+ {
191
+ name: "liquidation",
192
+ isMut: true,
193
+ isSigner: false,
194
+ },
195
+ {
196
+ name: "refundRecord",
197
+ isMut: true,
198
+ isSigner: false,
199
+ },
200
+ {
201
+ name: "recipientBaseAccount",
202
+ isMut: true,
203
+ isSigner: false,
204
+ },
205
+ {
206
+ name: "liquidationQuoteVault",
207
+ isMut: true,
208
+ isSigner: false,
209
+ },
210
+ {
211
+ name: "recipientQuoteAccount",
212
+ isMut: true,
213
+ isSigner: false,
214
+ },
215
+ {
216
+ name: "baseMint",
217
+ isMut: true,
218
+ isSigner: false,
219
+ },
220
+ {
221
+ name: "quoteMint",
222
+ isMut: false,
223
+ isSigner: false,
224
+ },
225
+ {
226
+ name: "tokenProgram",
227
+ isMut: false,
228
+ isSigner: false,
229
+ },
230
+ {
231
+ name: "associatedTokenProgram",
232
+ isMut: false,
233
+ isSigner: false,
234
+ },
235
+ {
236
+ name: "systemProgram",
237
+ isMut: false,
238
+ isSigner: false,
239
+ },
240
+ {
241
+ name: "eventAuthority",
242
+ isMut: false,
243
+ isSigner: false,
244
+ },
245
+ {
246
+ name: "program",
247
+ isMut: false,
248
+ isSigner: false,
249
+ },
250
+ ],
251
+ args: [],
252
+ },
253
+ {
254
+ name: "withdrawRemainingQuote",
255
+ accounts: [
256
+ {
257
+ name: "liquidationAuthority",
258
+ isMut: false,
259
+ isSigner: true,
260
+ },
261
+ {
262
+ name: "liquidation",
263
+ isMut: true,
264
+ isSigner: false,
265
+ },
266
+ {
267
+ name: "liquidationQuoteVault",
268
+ isMut: true,
269
+ isSigner: false,
270
+ },
271
+ {
272
+ name: "liquidationAuthorityQuoteAccount",
273
+ isMut: true,
274
+ isSigner: false,
275
+ },
276
+ {
277
+ name: "quoteMint",
278
+ isMut: false,
279
+ isSigner: false,
280
+ },
281
+ {
282
+ name: "tokenProgram",
283
+ isMut: false,
284
+ isSigner: false,
285
+ },
286
+ {
287
+ name: "eventAuthority",
288
+ isMut: false,
289
+ isSigner: false,
290
+ },
291
+ {
292
+ name: "program",
293
+ isMut: false,
294
+ isSigner: false,
295
+ },
296
+ ],
297
+ args: [],
298
+ },
299
+ ],
300
+ accounts: [
301
+ {
302
+ name: "liquidation",
303
+ type: {
304
+ kind: "struct",
305
+ fields: [
306
+ {
307
+ name: "createKey",
308
+ docs: ["Arbitrary keypair used to make the PDA unique."],
309
+ type: "publicKey",
310
+ },
311
+ {
312
+ name: "recordAuthority",
313
+ docs: [
314
+ "The address that can create and modify RefundRecords during setup.",
315
+ ],
316
+ type: "publicKey",
317
+ },
318
+ {
319
+ name: "liquidationAuthority",
320
+ docs: [
321
+ "The address that activates the liquidation and receives remaining quote tokens post-deadline.",
322
+ ],
323
+ type: "publicKey",
324
+ },
325
+ {
326
+ name: "baseMint",
327
+ docs: ["The project token mint (tokens to be burned)."],
328
+ type: "publicKey",
329
+ },
330
+ {
331
+ name: "quoteMint",
332
+ docs: ["The refund token mint (USDC)."],
333
+ type: "publicKey",
334
+ },
335
+ {
336
+ name: "totalQuoteRefundable",
337
+ docs: ["Sum of all RefundRecord quote_refundable values."],
338
+ type: "u64",
339
+ },
340
+ {
341
+ name: "totalQuoteRefunded",
342
+ docs: [
343
+ "Sum of all quote tokens actually transferred to users so far.",
344
+ ],
345
+ type: "u64",
346
+ },
347
+ {
348
+ name: "totalBaseAssigned",
349
+ docs: ["Sum of all RefundRecord base_assigned values."],
350
+ type: "u64",
351
+ },
352
+ {
353
+ name: "totalBaseBurned",
354
+ docs: ["Sum of all base tokens actually burned so far."],
355
+ type: "u64",
356
+ },
357
+ {
358
+ name: "startedAt",
359
+ docs: [
360
+ "Unix timestamp when ActivateLiquidation was called. 0 before activation.",
361
+ ],
362
+ type: "i64",
363
+ },
364
+ {
365
+ name: "durationSeconds",
366
+ docs: ["How long the refund window lasts after activation."],
367
+ type: "u32",
368
+ },
369
+ {
370
+ name: "seqNum",
371
+ docs: ["Event sequence number for indexing."],
372
+ type: "u64",
373
+ },
374
+ {
375
+ name: "isRefunding",
376
+ docs: ["Whether refunds are currently enabled."],
377
+ type: "bool",
378
+ },
379
+ {
380
+ name: "pdaBump",
381
+ docs: ["PDA bump seed."],
382
+ type: "u8",
383
+ },
384
+ ],
385
+ },
386
+ },
387
+ {
388
+ name: "refundRecord",
389
+ type: {
390
+ kind: "struct",
391
+ fields: [
392
+ {
393
+ name: "liquidation",
394
+ docs: ["The parent Liquidation account."],
395
+ type: "publicKey",
396
+ },
397
+ {
398
+ name: "recipient",
399
+ docs: ["The user this record belongs to."],
400
+ type: "publicKey",
401
+ },
402
+ {
403
+ name: "baseAssigned",
404
+ docs: ["Total base tokens this user is eligible to burn."],
405
+ type: "u64",
406
+ },
407
+ {
408
+ name: "baseBurned",
409
+ docs: ["Base tokens this user has burned so far."],
410
+ type: "u64",
411
+ },
412
+ {
413
+ name: "quoteRefundable",
414
+ docs: [
415
+ "Total quote tokens this user can receive if they burn all assigned base.",
416
+ ],
417
+ type: "u64",
418
+ },
419
+ {
420
+ name: "quoteRefunded",
421
+ docs: ["Quote tokens already transferred to this user."],
422
+ type: "u64",
423
+ },
424
+ {
425
+ name: "pdaBump",
426
+ docs: ["PDA bump seed."],
427
+ type: "u8",
428
+ },
429
+ ],
430
+ },
431
+ },
432
+ ],
433
+ types: [
434
+ {
435
+ name: "CommonFields",
436
+ type: {
437
+ kind: "struct",
438
+ fields: [
439
+ {
440
+ name: "slot",
441
+ type: "u64",
442
+ },
443
+ {
444
+ name: "unixTimestamp",
445
+ type: "i64",
446
+ },
447
+ {
448
+ name: "liquidationSeqNum",
449
+ type: "u64",
450
+ },
451
+ ],
452
+ },
453
+ },
454
+ {
455
+ name: "InitializeLiquidationArgs",
456
+ type: {
457
+ kind: "struct",
458
+ fields: [
459
+ {
460
+ name: "durationSeconds",
461
+ type: "u32",
462
+ },
463
+ ],
464
+ },
465
+ },
466
+ {
467
+ name: "SetRefundRecordArgs",
468
+ type: {
469
+ kind: "struct",
470
+ fields: [
471
+ {
472
+ name: "baseAssigned",
473
+ type: "u64",
474
+ },
475
+ {
476
+ name: "quoteRefundable",
477
+ type: "u64",
478
+ },
479
+ ],
480
+ },
481
+ },
482
+ ],
483
+ events: [
484
+ {
485
+ name: "LiquidationCreatedEvent",
486
+ fields: [
487
+ {
488
+ name: "common",
489
+ type: {
490
+ defined: "CommonFields",
491
+ },
492
+ index: false,
493
+ },
494
+ {
495
+ name: "liquidation",
496
+ type: "publicKey",
497
+ index: false,
498
+ },
499
+ {
500
+ name: "createKey",
501
+ type: "publicKey",
502
+ index: false,
503
+ },
504
+ {
505
+ name: "recordAuthority",
506
+ type: "publicKey",
507
+ index: false,
508
+ },
509
+ {
510
+ name: "liquidationAuthority",
511
+ type: "publicKey",
512
+ index: false,
513
+ },
514
+ {
515
+ name: "baseMint",
516
+ type: "publicKey",
517
+ index: false,
518
+ },
519
+ {
520
+ name: "quoteMint",
521
+ type: "publicKey",
522
+ index: false,
523
+ },
524
+ {
525
+ name: "durationSeconds",
526
+ type: "u32",
527
+ index: false,
528
+ },
529
+ {
530
+ name: "pdaBump",
531
+ type: "u8",
532
+ index: false,
533
+ },
534
+ ],
535
+ },
536
+ {
537
+ name: "LiquidationActivatedEvent",
538
+ fields: [
539
+ {
540
+ name: "common",
541
+ type: {
542
+ defined: "CommonFields",
543
+ },
544
+ index: false,
545
+ },
546
+ {
547
+ name: "liquidation",
548
+ type: "publicKey",
549
+ index: false,
550
+ },
551
+ {
552
+ name: "totalQuoteFunded",
553
+ type: "u64",
554
+ index: false,
555
+ },
556
+ {
557
+ name: "startedAt",
558
+ type: "i64",
559
+ index: false,
560
+ },
561
+ ],
562
+ },
563
+ {
564
+ name: "RefundRecordSetEvent",
565
+ fields: [
566
+ {
567
+ name: "common",
568
+ type: {
569
+ defined: "CommonFields",
570
+ },
571
+ index: false,
572
+ },
573
+ {
574
+ name: "liquidation",
575
+ type: "publicKey",
576
+ index: false,
577
+ },
578
+ {
579
+ name: "refundRecord",
580
+ type: "publicKey",
581
+ index: false,
582
+ },
583
+ {
584
+ name: "recipient",
585
+ type: "publicKey",
586
+ index: false,
587
+ },
588
+ {
589
+ name: "baseAssigned",
590
+ type: "u64",
591
+ index: false,
592
+ },
593
+ {
594
+ name: "quoteRefundable",
595
+ type: "u64",
596
+ index: false,
597
+ },
598
+ {
599
+ name: "liquidationTotalBaseAssigned",
600
+ type: "u64",
601
+ index: false,
602
+ },
603
+ {
604
+ name: "liquidationTotalQuoteRefundable",
605
+ type: "u64",
606
+ index: false,
607
+ },
608
+ {
609
+ name: "pdaBump",
610
+ type: "u8",
611
+ index: false,
612
+ },
613
+ ],
614
+ },
615
+ {
616
+ name: "RefundEvent",
617
+ fields: [
618
+ {
619
+ name: "common",
620
+ type: {
621
+ defined: "CommonFields",
622
+ },
623
+ index: false,
624
+ },
625
+ {
626
+ name: "liquidation",
627
+ type: "publicKey",
628
+ index: false,
629
+ },
630
+ {
631
+ name: "refundRecord",
632
+ type: "publicKey",
633
+ index: false,
634
+ },
635
+ {
636
+ name: "recipient",
637
+ type: "publicKey",
638
+ index: false,
639
+ },
640
+ {
641
+ name: "baseBurned",
642
+ type: "u64",
643
+ index: false,
644
+ },
645
+ {
646
+ name: "quoteRefunded",
647
+ type: "u64",
648
+ index: false,
649
+ },
650
+ {
651
+ name: "postRecordBaseBurned",
652
+ type: "u64",
653
+ index: false,
654
+ },
655
+ {
656
+ name: "postRecordQuoteRefunded",
657
+ type: "u64",
658
+ index: false,
659
+ },
660
+ {
661
+ name: "postLiquidationTotalBaseBurned",
662
+ type: "u64",
663
+ index: false,
664
+ },
665
+ {
666
+ name: "postLiquidationTotalQuoteRefunded",
667
+ type: "u64",
668
+ index: false,
669
+ },
670
+ ],
671
+ },
672
+ {
673
+ name: "WithdrawRemainingQuoteEvent",
674
+ fields: [
675
+ {
676
+ name: "common",
677
+ type: {
678
+ defined: "CommonFields",
679
+ },
680
+ index: false,
681
+ },
682
+ {
683
+ name: "liquidation",
684
+ type: "publicKey",
685
+ index: false,
686
+ },
687
+ {
688
+ name: "liquidationAuthority",
689
+ type: "publicKey",
690
+ index: false,
691
+ },
692
+ {
693
+ name: "amount",
694
+ type: "u64",
695
+ index: false,
696
+ },
697
+ ],
698
+ },
699
+ ],
700
+ errors: [
701
+ {
702
+ code: 6000,
703
+ name: "RefundingNotEnabled",
704
+ msg: "Refunding is not enabled",
705
+ },
706
+ {
707
+ code: 6001,
708
+ name: "AlreadyActivated",
709
+ msg: "Liquidation is already activated",
710
+ },
711
+ {
712
+ code: 6002,
713
+ name: "NothingToFund",
714
+ msg: "No quote tokens to fund",
715
+ },
716
+ {
717
+ code: 6003,
718
+ name: "NoBaseAssigned",
719
+ msg: "No base tokens assigned",
720
+ },
721
+ {
722
+ code: 6004,
723
+ name: "RefundWindowExpired",
724
+ msg: "Refund window has expired",
725
+ },
726
+ {
727
+ code: 6005,
728
+ name: "RefundWindowNotExpired",
729
+ msg: "Refund window has not expired",
730
+ },
731
+ {
732
+ code: 6006,
733
+ name: "InvalidDuration",
734
+ msg: "Duration must be greater than zero",
735
+ },
736
+ {
737
+ code: 6007,
738
+ name: "NothingToRefund",
739
+ msg: "Nothing to refund",
740
+ },
741
+ {
742
+ code: 6008,
743
+ name: "InvalidAllocation",
744
+ msg: "Invalid allocation",
745
+ },
746
+ {
747
+ code: 6009,
748
+ name: "InvalidAuthority",
749
+ msg: "Invalid authority",
750
+ },
751
+ {
752
+ code: 6010,
753
+ name: "InvalidMint",
754
+ msg: "Invalid mint",
755
+ },
756
+ ],
757
+ };
758
+ //# sourceMappingURL=liquidation.js.map