@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,1070 @@
1
+ export const IDL = {
2
+ version: "0.7.0",
3
+ name: "performance_package_v2",
4
+ constants: [
5
+ {
6
+ name: "MAX_TRANCHES",
7
+ type: {
8
+ defined: "usize",
9
+ },
10
+ value: "10",
11
+ },
12
+ {
13
+ name: "MAX_MIN_DURATION",
14
+ type: "u32",
15
+ value: "60 * 60 * 24 * 365",
16
+ },
17
+ ],
18
+ instructions: [
19
+ {
20
+ name: "initializePerformancePackage",
21
+ accounts: [
22
+ {
23
+ name: "performancePackage",
24
+ isMut: true,
25
+ isSigner: false,
26
+ },
27
+ {
28
+ name: "mint",
29
+ isMut: false,
30
+ isSigner: false,
31
+ },
32
+ {
33
+ name: "mintGovernor",
34
+ isMut: false,
35
+ isSigner: false,
36
+ },
37
+ {
38
+ name: "mintAuthority",
39
+ isMut: false,
40
+ isSigner: false,
41
+ },
42
+ {
43
+ name: "createKey",
44
+ isMut: false,
45
+ isSigner: true,
46
+ },
47
+ {
48
+ name: "authority",
49
+ isMut: false,
50
+ isSigner: false,
51
+ },
52
+ {
53
+ name: "recipient",
54
+ isMut: false,
55
+ isSigner: false,
56
+ },
57
+ {
58
+ name: "payer",
59
+ isMut: true,
60
+ isSigner: true,
61
+ },
62
+ {
63
+ name: "systemProgram",
64
+ isMut: false,
65
+ isSigner: false,
66
+ },
67
+ {
68
+ name: "eventAuthority",
69
+ isMut: false,
70
+ isSigner: false,
71
+ },
72
+ {
73
+ name: "program",
74
+ isMut: false,
75
+ isSigner: false,
76
+ },
77
+ ],
78
+ args: [
79
+ {
80
+ name: "args",
81
+ type: {
82
+ defined: "InitializePerformancePackageArgs",
83
+ },
84
+ },
85
+ ],
86
+ },
87
+ {
88
+ name: "startUnlock",
89
+ accounts: [
90
+ {
91
+ name: "performancePackage",
92
+ isMut: true,
93
+ isSigner: false,
94
+ },
95
+ {
96
+ name: "signer",
97
+ isMut: false,
98
+ isSigner: true,
99
+ },
100
+ {
101
+ name: "eventAuthority",
102
+ isMut: false,
103
+ isSigner: false,
104
+ },
105
+ {
106
+ name: "program",
107
+ isMut: false,
108
+ isSigner: false,
109
+ },
110
+ ],
111
+ args: [],
112
+ },
113
+ {
114
+ name: "completeUnlock",
115
+ accounts: [
116
+ {
117
+ name: "performancePackage",
118
+ isMut: true,
119
+ isSigner: false,
120
+ },
121
+ {
122
+ name: "mintGovernor",
123
+ isMut: true,
124
+ isSigner: false,
125
+ },
126
+ {
127
+ name: "mintAuthority",
128
+ isMut: true,
129
+ isSigner: false,
130
+ },
131
+ {
132
+ name: "mint",
133
+ isMut: true,
134
+ isSigner: false,
135
+ },
136
+ {
137
+ name: "recipientAta",
138
+ isMut: true,
139
+ isSigner: false,
140
+ },
141
+ {
142
+ name: "signer",
143
+ isMut: false,
144
+ isSigner: true,
145
+ },
146
+ {
147
+ name: "tokenProgram",
148
+ isMut: false,
149
+ isSigner: false,
150
+ },
151
+ {
152
+ name: "mintGovernorProgram",
153
+ isMut: false,
154
+ isSigner: false,
155
+ },
156
+ {
157
+ name: "mintGovernorEventAuthority",
158
+ isMut: false,
159
+ isSigner: false,
160
+ },
161
+ {
162
+ name: "eventAuthority",
163
+ isMut: false,
164
+ isSigner: false,
165
+ },
166
+ {
167
+ name: "program",
168
+ isMut: false,
169
+ isSigner: false,
170
+ },
171
+ ],
172
+ args: [],
173
+ },
174
+ {
175
+ name: "changeAuthority",
176
+ accounts: [
177
+ {
178
+ name: "performancePackage",
179
+ isMut: true,
180
+ isSigner: false,
181
+ },
182
+ {
183
+ name: "authority",
184
+ isMut: false,
185
+ isSigner: true,
186
+ docs: ["Must be the current authority of the performance package"],
187
+ },
188
+ {
189
+ name: "newAuthority",
190
+ isMut: false,
191
+ isSigner: false,
192
+ docs: ["The new authority address"],
193
+ },
194
+ {
195
+ name: "eventAuthority",
196
+ isMut: false,
197
+ isSigner: false,
198
+ },
199
+ {
200
+ name: "program",
201
+ isMut: false,
202
+ isSigner: false,
203
+ },
204
+ ],
205
+ args: [],
206
+ },
207
+ {
208
+ name: "proposeChange",
209
+ accounts: [
210
+ {
211
+ name: "performancePackage",
212
+ isMut: true,
213
+ isSigner: false,
214
+ },
215
+ {
216
+ name: "changeRequest",
217
+ isMut: true,
218
+ isSigner: false,
219
+ },
220
+ {
221
+ name: "proposer",
222
+ isMut: false,
223
+ isSigner: true,
224
+ },
225
+ {
226
+ name: "payer",
227
+ isMut: true,
228
+ isSigner: true,
229
+ },
230
+ {
231
+ name: "systemProgram",
232
+ isMut: false,
233
+ isSigner: false,
234
+ },
235
+ {
236
+ name: "eventAuthority",
237
+ isMut: false,
238
+ isSigner: false,
239
+ },
240
+ {
241
+ name: "program",
242
+ isMut: false,
243
+ isSigner: false,
244
+ },
245
+ ],
246
+ args: [
247
+ {
248
+ name: "args",
249
+ type: {
250
+ defined: "ProposeChangeArgs",
251
+ },
252
+ },
253
+ ],
254
+ },
255
+ {
256
+ name: "executeChange",
257
+ accounts: [
258
+ {
259
+ name: "performancePackage",
260
+ isMut: true,
261
+ isSigner: false,
262
+ },
263
+ {
264
+ name: "changeRequest",
265
+ isMut: true,
266
+ isSigner: false,
267
+ },
268
+ {
269
+ name: "executor",
270
+ isMut: false,
271
+ isSigner: true,
272
+ },
273
+ {
274
+ name: "rentDestination",
275
+ isMut: true,
276
+ isSigner: false,
277
+ },
278
+ {
279
+ name: "eventAuthority",
280
+ isMut: false,
281
+ isSigner: false,
282
+ },
283
+ {
284
+ name: "program",
285
+ isMut: false,
286
+ isSigner: false,
287
+ },
288
+ ],
289
+ args: [],
290
+ },
291
+ {
292
+ name: "closePerformancePackage",
293
+ accounts: [
294
+ {
295
+ name: "performancePackage",
296
+ isMut: true,
297
+ isSigner: false,
298
+ },
299
+ {
300
+ name: "admin",
301
+ isMut: false,
302
+ isSigner: true,
303
+ },
304
+ {
305
+ name: "rentDestination",
306
+ isMut: true,
307
+ isSigner: false,
308
+ },
309
+ {
310
+ name: "eventAuthority",
311
+ isMut: false,
312
+ isSigner: false,
313
+ },
314
+ {
315
+ name: "program",
316
+ isMut: false,
317
+ isSigner: false,
318
+ },
319
+ ],
320
+ args: [],
321
+ },
322
+ ],
323
+ accounts: [
324
+ {
325
+ name: "changeRequest",
326
+ docs: [
327
+ "Temporary account for two-party approval flow.",
328
+ 'Seeds: `["change_request", performance_package, proposer, pda_nonce.to_le_bytes()]`',
329
+ ],
330
+ type: {
331
+ kind: "struct",
332
+ fields: [
333
+ {
334
+ name: "performancePackage",
335
+ docs: ["The performance package this change applies to"],
336
+ type: "publicKey",
337
+ },
338
+ {
339
+ name: "proposer",
340
+ docs: ["The proposer's pubkey at proposal time"],
341
+ type: "publicKey",
342
+ },
343
+ {
344
+ name: "ppCreatedAtTimestamp",
345
+ docs: [
346
+ "PP's created_at_timestamp at proposal time; used to detect stale CRs after close/recreate",
347
+ ],
348
+ type: "i64",
349
+ },
350
+ {
351
+ name: "proposedAt",
352
+ docs: ["When the change was proposed"],
353
+ type: "i64",
354
+ },
355
+ {
356
+ name: "pdaNonce",
357
+ docs: [
358
+ "For unique PDA derivation (allows multiple concurrent proposals)",
359
+ ],
360
+ type: "u32",
361
+ },
362
+ {
363
+ name: "bump",
364
+ type: "u8",
365
+ },
366
+ {
367
+ name: "newRecipient",
368
+ docs: ["New recipient address (if changing)"],
369
+ type: {
370
+ option: "publicKey",
371
+ },
372
+ },
373
+ {
374
+ name: "newOracleReader",
375
+ docs: ["New oracle configuration (if changing)"],
376
+ type: {
377
+ option: {
378
+ defined: "OracleReader",
379
+ },
380
+ },
381
+ },
382
+ {
383
+ name: "newRewardFunction",
384
+ docs: ["New reward function (if changing)"],
385
+ type: {
386
+ option: {
387
+ defined: "RewardFunction",
388
+ },
389
+ },
390
+ },
391
+ ],
392
+ },
393
+ },
394
+ {
395
+ name: "performancePackage",
396
+ docs: [
397
+ "The main account representing a performance package.",
398
+ "Acts as the `authorized_minter` in mint_governor.",
399
+ 'Seeds: `["performance_package", create_key]`',
400
+ ],
401
+ type: {
402
+ kind: "struct",
403
+ fields: [
404
+ {
405
+ name: "mint",
406
+ docs: ["Token mint controlled by mint_governor"],
407
+ type: "publicKey",
408
+ },
409
+ {
410
+ name: "mintGovernor",
411
+ docs: ["MintGovernor account"],
412
+ type: "publicKey",
413
+ },
414
+ {
415
+ name: "mintAuthority",
416
+ docs: ["MintAuthority PDA for this PP"],
417
+ type: "publicKey",
418
+ },
419
+ {
420
+ name: "authority",
421
+ docs: ["Usually the DAO multisig vault - can modify PP"],
422
+ type: "publicKey",
423
+ },
424
+ {
425
+ name: "recipient",
426
+ docs: ["Usually the team multisig - receives minted tokens"],
427
+ type: "publicKey",
428
+ },
429
+ {
430
+ name: "oracleReader",
431
+ docs: ["Stores start/end snapshots for oracle calculations"],
432
+ type: {
433
+ defined: "OracleReader",
434
+ },
435
+ },
436
+ {
437
+ name: "rewardFunction",
438
+ docs: ["How to calculate rewards"],
439
+ type: {
440
+ defined: "RewardFunction",
441
+ },
442
+ },
443
+ {
444
+ name: "status",
445
+ docs: ["Locked or Unlocking state"],
446
+ type: {
447
+ defined: "PackageStatus",
448
+ },
449
+ },
450
+ {
451
+ name: "minUnlockTimestamp",
452
+ docs: ["Can't start unlock before this time"],
453
+ type: "i64",
454
+ },
455
+ {
456
+ name: "createdAtTimestamp",
457
+ docs: [
458
+ "Timestamp when this PP was created; used to invalidate stale ChangeRequests",
459
+ ],
460
+ type: "i64",
461
+ },
462
+ {
463
+ name: "totalRewardsPaidOut",
464
+ docs: ["Cumulative tokens minted to the recipient"],
465
+ type: "u64",
466
+ },
467
+ {
468
+ name: "seqNum",
469
+ docs: ["Event sequence number"],
470
+ type: "u64",
471
+ },
472
+ {
473
+ name: "createKey",
474
+ docs: ["Used for PDA derivation"],
475
+ type: "publicKey",
476
+ },
477
+ {
478
+ name: "bump",
479
+ docs: ["PDA bump"],
480
+ type: "u8",
481
+ },
482
+ ],
483
+ },
484
+ },
485
+ ],
486
+ types: [
487
+ {
488
+ name: "CommonFields",
489
+ docs: ["Common fields included in all events for consistent metadata."],
490
+ type: {
491
+ kind: "struct",
492
+ fields: [
493
+ {
494
+ name: "slot",
495
+ type: "u64",
496
+ },
497
+ {
498
+ name: "unixTimestamp",
499
+ type: "i64",
500
+ },
501
+ {
502
+ name: "performancePackageSeqNum",
503
+ type: "u64",
504
+ },
505
+ ],
506
+ },
507
+ },
508
+ {
509
+ name: "InitializePerformancePackageArgs",
510
+ type: {
511
+ kind: "struct",
512
+ fields: [
513
+ {
514
+ name: "oracleReader",
515
+ type: {
516
+ defined: "OracleReader",
517
+ },
518
+ },
519
+ {
520
+ name: "rewardFunction",
521
+ type: {
522
+ defined: "RewardFunction",
523
+ },
524
+ },
525
+ {
526
+ name: "minUnlockTimestamp",
527
+ type: "i64",
528
+ },
529
+ ],
530
+ },
531
+ },
532
+ {
533
+ name: "ProposeChangeArgs",
534
+ type: {
535
+ kind: "struct",
536
+ fields: [
537
+ {
538
+ name: "pdaNonce",
539
+ type: "u32",
540
+ },
541
+ {
542
+ name: "newRecipient",
543
+ type: {
544
+ option: "publicKey",
545
+ },
546
+ },
547
+ {
548
+ name: "newOracleReader",
549
+ type: {
550
+ option: {
551
+ defined: "OracleReader",
552
+ },
553
+ },
554
+ },
555
+ {
556
+ name: "newRewardFunction",
557
+ type: {
558
+ option: {
559
+ defined: "RewardFunction",
560
+ },
561
+ },
562
+ },
563
+ ],
564
+ },
565
+ },
566
+ {
567
+ name: "ThresholdTranche",
568
+ docs: ["A threshold tranche for step-based rewards."],
569
+ type: {
570
+ kind: "struct",
571
+ fields: [
572
+ {
573
+ name: "threshold",
574
+ docs: ["Oracle value threshold"],
575
+ type: "u128",
576
+ },
577
+ {
578
+ name: "cumulativeAmount",
579
+ docs: [
580
+ "Total tokens at this tranche (cumulative, not incremental)",
581
+ ],
582
+ type: "u64",
583
+ },
584
+ ],
585
+ },
586
+ },
587
+ {
588
+ name: "PackageStatus",
589
+ docs: ["Lifecycle state for the performance package."],
590
+ type: {
591
+ kind: "enum",
592
+ variants: [
593
+ {
594
+ name: "Locked",
595
+ },
596
+ {
597
+ name: "Unlocking",
598
+ },
599
+ ],
600
+ },
601
+ },
602
+ {
603
+ name: "OracleReader",
604
+ docs: [
605
+ "Oracle reader that knows how to read from an external oracle account.",
606
+ "Extracts a `value: u128` for reward calculations.",
607
+ ],
608
+ type: {
609
+ kind: "enum",
610
+ variants: [
611
+ {
612
+ name: "Time",
613
+ },
614
+ {
615
+ name: "FutarchyTwap",
616
+ fields: [
617
+ {
618
+ name: "amm",
619
+ docs: [
620
+ "The Futarchy DAO account to read (contains embedded AMM)",
621
+ ],
622
+ type: "publicKey",
623
+ },
624
+ {
625
+ name: "minDuration",
626
+ docs: ["Minimum seconds between start and end"],
627
+ type: "u32",
628
+ },
629
+ {
630
+ name: "startValue",
631
+ docs: ["Start snapshot (recorded on start_unlock)"],
632
+ type: "u128",
633
+ },
634
+ {
635
+ name: "startTime",
636
+ type: "i64",
637
+ },
638
+ {
639
+ name: "endValue",
640
+ docs: ["End snapshot (recorded on complete_unlock)"],
641
+ type: "u128",
642
+ },
643
+ {
644
+ name: "endTime",
645
+ type: "i64",
646
+ },
647
+ ],
648
+ },
649
+ ],
650
+ },
651
+ },
652
+ {
653
+ name: "RewardFunction",
654
+ docs: [
655
+ "Reward function that calculates cumulative rewards from oracle values.",
656
+ "Returns total tokens deserved so far (not incremental).",
657
+ ],
658
+ type: {
659
+ kind: "enum",
660
+ variants: [
661
+ {
662
+ name: "CliffLinear",
663
+ fields: [
664
+ {
665
+ name: "cliffValue",
666
+ type: "u128",
667
+ },
668
+ {
669
+ name: "endValue",
670
+ type: "u128",
671
+ },
672
+ {
673
+ name: "cliffAmount",
674
+ type: "u64",
675
+ },
676
+ {
677
+ name: "totalAmount",
678
+ docs: ["Total amount including cliff"],
679
+ type: "u64",
680
+ },
681
+ ],
682
+ },
683
+ {
684
+ name: "Threshold",
685
+ fields: [
686
+ {
687
+ name: "tranches",
688
+ docs: ["Must be sorted by threshold ascending"],
689
+ type: {
690
+ vec: {
691
+ defined: "ThresholdTranche",
692
+ },
693
+ },
694
+ },
695
+ ],
696
+ },
697
+ ],
698
+ },
699
+ },
700
+ ],
701
+ events: [
702
+ {
703
+ name: "PerformancePackageCreatedEvent",
704
+ fields: [
705
+ {
706
+ name: "common",
707
+ type: {
708
+ defined: "CommonFields",
709
+ },
710
+ index: false,
711
+ },
712
+ {
713
+ name: "performancePackage",
714
+ type: "publicKey",
715
+ index: false,
716
+ },
717
+ {
718
+ name: "mint",
719
+ type: "publicKey",
720
+ index: false,
721
+ },
722
+ {
723
+ name: "mintGovernor",
724
+ type: "publicKey",
725
+ index: false,
726
+ },
727
+ {
728
+ name: "authority",
729
+ type: "publicKey",
730
+ index: false,
731
+ },
732
+ {
733
+ name: "recipient",
734
+ type: "publicKey",
735
+ index: false,
736
+ },
737
+ {
738
+ name: "createKey",
739
+ type: "publicKey",
740
+ index: false,
741
+ },
742
+ {
743
+ name: "pdaBump",
744
+ type: "u8",
745
+ index: false,
746
+ },
747
+ ],
748
+ },
749
+ {
750
+ name: "UnlockStartedEvent",
751
+ fields: [
752
+ {
753
+ name: "common",
754
+ type: {
755
+ defined: "CommonFields",
756
+ },
757
+ index: false,
758
+ },
759
+ {
760
+ name: "performancePackage",
761
+ type: "publicKey",
762
+ index: false,
763
+ },
764
+ {
765
+ name: "startTime",
766
+ type: "i64",
767
+ index: false,
768
+ },
769
+ ],
770
+ },
771
+ {
772
+ name: "UnlockCompletedEvent",
773
+ fields: [
774
+ {
775
+ name: "common",
776
+ type: {
777
+ defined: "CommonFields",
778
+ },
779
+ index: false,
780
+ },
781
+ {
782
+ name: "performancePackage",
783
+ type: "publicKey",
784
+ index: false,
785
+ },
786
+ {
787
+ name: "oracleValue",
788
+ type: "u128",
789
+ index: false,
790
+ },
791
+ {
792
+ name: "recipient",
793
+ type: "publicKey",
794
+ index: false,
795
+ },
796
+ {
797
+ name: "amountMinted",
798
+ type: "u64",
799
+ index: false,
800
+ },
801
+ {
802
+ name: "totalRewardsPaidOut",
803
+ type: "u64",
804
+ index: false,
805
+ },
806
+ ],
807
+ },
808
+ {
809
+ name: "AuthorityChangedEvent",
810
+ fields: [
811
+ {
812
+ name: "common",
813
+ type: {
814
+ defined: "CommonFields",
815
+ },
816
+ index: false,
817
+ },
818
+ {
819
+ name: "performancePackage",
820
+ type: "publicKey",
821
+ index: false,
822
+ },
823
+ {
824
+ name: "oldAuthority",
825
+ type: "publicKey",
826
+ index: false,
827
+ },
828
+ {
829
+ name: "newAuthority",
830
+ type: "publicKey",
831
+ index: false,
832
+ },
833
+ ],
834
+ },
835
+ {
836
+ name: "ChangeProposedEvent",
837
+ fields: [
838
+ {
839
+ name: "common",
840
+ type: {
841
+ defined: "CommonFields",
842
+ },
843
+ index: false,
844
+ },
845
+ {
846
+ name: "performancePackage",
847
+ type: "publicKey",
848
+ index: false,
849
+ },
850
+ {
851
+ name: "changeRequest",
852
+ type: "publicKey",
853
+ index: false,
854
+ },
855
+ {
856
+ name: "proposer",
857
+ type: "publicKey",
858
+ index: false,
859
+ },
860
+ {
861
+ name: "pdaNonce",
862
+ type: "u32",
863
+ index: false,
864
+ },
865
+ {
866
+ name: "newRecipient",
867
+ type: {
868
+ option: "publicKey",
869
+ },
870
+ index: false,
871
+ },
872
+ {
873
+ name: "newOracleReader",
874
+ type: {
875
+ option: {
876
+ defined: "OracleReader",
877
+ },
878
+ },
879
+ index: false,
880
+ },
881
+ {
882
+ name: "newRewardFunction",
883
+ type: {
884
+ option: {
885
+ defined: "RewardFunction",
886
+ },
887
+ },
888
+ index: false,
889
+ },
890
+ ],
891
+ },
892
+ {
893
+ name: "ChangeExecutedEvent",
894
+ fields: [
895
+ {
896
+ name: "common",
897
+ type: {
898
+ defined: "CommonFields",
899
+ },
900
+ index: false,
901
+ },
902
+ {
903
+ name: "performancePackage",
904
+ type: "publicKey",
905
+ index: false,
906
+ },
907
+ {
908
+ name: "executedBy",
909
+ type: "publicKey",
910
+ index: false,
911
+ },
912
+ {
913
+ name: "newRecipient",
914
+ type: {
915
+ option: "publicKey",
916
+ },
917
+ index: false,
918
+ },
919
+ {
920
+ name: "newOracleReader",
921
+ type: {
922
+ option: {
923
+ defined: "OracleReader",
924
+ },
925
+ },
926
+ index: false,
927
+ },
928
+ {
929
+ name: "newRewardFunction",
930
+ type: {
931
+ option: {
932
+ defined: "RewardFunction",
933
+ },
934
+ },
935
+ index: false,
936
+ },
937
+ ],
938
+ },
939
+ {
940
+ name: "PerformancePackageClosedEvent",
941
+ fields: [
942
+ {
943
+ name: "common",
944
+ type: {
945
+ defined: "CommonFields",
946
+ },
947
+ index: false,
948
+ },
949
+ {
950
+ name: "performancePackage",
951
+ type: "publicKey",
952
+ index: false,
953
+ },
954
+ {
955
+ name: "totalRewardsPaidOut",
956
+ type: "u64",
957
+ index: false,
958
+ },
959
+ ],
960
+ },
961
+ ],
962
+ errors: [
963
+ {
964
+ code: 6000,
965
+ name: "Unauthorized",
966
+ msg: "Signer is neither authority nor recipient",
967
+ },
968
+ {
969
+ code: 6001,
970
+ name: "InvalidExecutor",
971
+ msg: "Executor is not the opposite party from proposer",
972
+ },
973
+ {
974
+ code: 6002,
975
+ name: "InvalidAuthority",
976
+ msg: "Signer is not the current authority",
977
+ },
978
+ {
979
+ code: 6003,
980
+ name: "InvalidAdmin",
981
+ msg: "Signer is not the admin",
982
+ },
983
+ {
984
+ code: 6004,
985
+ name: "InvalidMintGovernor",
986
+ msg: "Mint governor does not match the provided mint",
987
+ },
988
+ {
989
+ code: 6005,
990
+ name: "InvalidMintAuthority",
991
+ msg: "Mint authority does not match expected configuration",
992
+ },
993
+ {
994
+ code: 6006,
995
+ name: "NotLocked",
996
+ msg: "Expected Locked status",
997
+ },
998
+ {
999
+ code: 6007,
1000
+ name: "NotUnlocking",
1001
+ msg: "Expected Unlocking status",
1002
+ },
1003
+ {
1004
+ code: 6008,
1005
+ name: "OracleMissingAccount",
1006
+ msg: "Expected remaining_accounts not provided",
1007
+ },
1008
+ {
1009
+ code: 6009,
1010
+ name: "OracleInvalidAccount",
1011
+ msg: "Account pubkey doesn't match expected",
1012
+ },
1013
+ {
1014
+ code: 6010,
1015
+ name: "OracleParseError",
1016
+ msg: "Failed to parse account data",
1017
+ },
1018
+ {
1019
+ code: 6011,
1020
+ name: "OracleInvalidState",
1021
+ msg: "Oracle state invalid",
1022
+ },
1023
+ {
1024
+ code: 6012,
1025
+ name: "OracleMinDurationNotReached",
1026
+ msg: "Minimum duration hasn't passed yet",
1027
+ },
1028
+ {
1029
+ code: 6013,
1030
+ name: "UnlockTimestampNotReached",
1031
+ msg: "Minimum unlock timestamp not yet reached",
1032
+ },
1033
+ {
1034
+ code: 6014,
1035
+ name: "RewardCalculationOverflow",
1036
+ msg: "Math overflow in reward function",
1037
+ },
1038
+ {
1039
+ code: 6015,
1040
+ name: "InvalidTranches",
1041
+ msg: "Tranches should be sorted and non-empty",
1042
+ },
1043
+ {
1044
+ code: 6016,
1045
+ name: "InvalidVestingSchedule",
1046
+ msg: "Invalid vesting schedule configuration",
1047
+ },
1048
+ {
1049
+ code: 6017,
1050
+ name: "ChangeRequestNotFound",
1051
+ msg: "Missing proposal for execute",
1052
+ },
1053
+ {
1054
+ code: 6018,
1055
+ name: "NoChangesProposed",
1056
+ msg: "All optional change fields are None",
1057
+ },
1058
+ {
1059
+ code: 6019,
1060
+ name: "MinDurationTooLarge",
1061
+ msg: "min_duration exceeds maximum allowed (365 days)",
1062
+ },
1063
+ {
1064
+ code: 6020,
1065
+ name: "StaleChangeRequest",
1066
+ msg: "Change request is stale: PP was recreated or the proposing party has changed",
1067
+ },
1068
+ ],
1069
+ };
1070
+ //# sourceMappingURL=performance_package_v2.js.map