@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,971 @@
1
+ export const IDL = {
2
+ version: "0.6.0",
3
+ name: "price_based_performance_package",
4
+ constants: [
5
+ {
6
+ name: "MAX_TRANCHES",
7
+ type: {
8
+ defined: "usize",
9
+ },
10
+ value: "10",
11
+ },
12
+ ],
13
+ instructions: [
14
+ {
15
+ name: "initializePerformancePackage",
16
+ accounts: [
17
+ {
18
+ name: "performancePackage",
19
+ isMut: true,
20
+ isSigner: false,
21
+ },
22
+ {
23
+ name: "createKey",
24
+ isMut: false,
25
+ isSigner: true,
26
+ docs: ["Used to derive the PDA"],
27
+ },
28
+ {
29
+ name: "tokenMint",
30
+ isMut: false,
31
+ isSigner: false,
32
+ docs: ["The mint of the tokens to be locked"],
33
+ },
34
+ {
35
+ name: "grantorTokenAccount",
36
+ isMut: true,
37
+ isSigner: false,
38
+ docs: ["The token account containing the tokens to be locked"],
39
+ },
40
+ {
41
+ name: "grantor",
42
+ isMut: false,
43
+ isSigner: true,
44
+ docs: ["The authority of the token account"],
45
+ },
46
+ {
47
+ name: "performancePackageTokenVault",
48
+ isMut: true,
49
+ isSigner: false,
50
+ docs: ["The locker's token account where tokens will be stored"],
51
+ },
52
+ {
53
+ name: "payer",
54
+ isMut: true,
55
+ isSigner: true,
56
+ },
57
+ {
58
+ name: "systemProgram",
59
+ isMut: false,
60
+ isSigner: false,
61
+ },
62
+ {
63
+ name: "tokenProgram",
64
+ isMut: false,
65
+ isSigner: false,
66
+ },
67
+ {
68
+ name: "associatedTokenProgram",
69
+ isMut: false,
70
+ isSigner: false,
71
+ },
72
+ {
73
+ name: "eventAuthority",
74
+ isMut: false,
75
+ isSigner: false,
76
+ },
77
+ {
78
+ name: "program",
79
+ isMut: false,
80
+ isSigner: false,
81
+ },
82
+ ],
83
+ args: [
84
+ {
85
+ name: "params",
86
+ type: {
87
+ defined: "InitializePerformancePackageParams",
88
+ },
89
+ },
90
+ ],
91
+ },
92
+ {
93
+ name: "startUnlock",
94
+ accounts: [
95
+ {
96
+ name: "performancePackage",
97
+ isMut: true,
98
+ isSigner: false,
99
+ },
100
+ {
101
+ name: "oracleAccount",
102
+ isMut: false,
103
+ isSigner: false,
104
+ },
105
+ {
106
+ name: "recipient",
107
+ isMut: false,
108
+ isSigner: true,
109
+ docs: ["Only the token recipient can start unlock"],
110
+ },
111
+ {
112
+ name: "eventAuthority",
113
+ isMut: false,
114
+ isSigner: false,
115
+ },
116
+ {
117
+ name: "program",
118
+ isMut: false,
119
+ isSigner: false,
120
+ },
121
+ ],
122
+ args: [],
123
+ },
124
+ {
125
+ name: "completeUnlock",
126
+ accounts: [
127
+ {
128
+ name: "performancePackage",
129
+ isMut: true,
130
+ isSigner: false,
131
+ },
132
+ {
133
+ name: "oracleAccount",
134
+ isMut: false,
135
+ isSigner: false,
136
+ },
137
+ {
138
+ name: "performancePackageTokenVault",
139
+ isMut: true,
140
+ isSigner: false,
141
+ docs: ["The token account where locked tokens are stored"],
142
+ },
143
+ {
144
+ name: "tokenMint",
145
+ isMut: false,
146
+ isSigner: false,
147
+ docs: ["The token mint - validated via has_one constraint on locker"],
148
+ },
149
+ {
150
+ name: "recipientTokenAccount",
151
+ isMut: true,
152
+ isSigner: false,
153
+ docs: [
154
+ "The recipient's ATA where tokens will be sent - created if needed",
155
+ ],
156
+ },
157
+ {
158
+ name: "tokenRecipient",
159
+ isMut: false,
160
+ isSigner: false,
161
+ },
162
+ {
163
+ name: "payer",
164
+ isMut: true,
165
+ isSigner: true,
166
+ docs: ["Payer for creating the ATA if needed"],
167
+ },
168
+ {
169
+ name: "systemProgram",
170
+ isMut: false,
171
+ isSigner: false,
172
+ },
173
+ {
174
+ name: "tokenProgram",
175
+ isMut: false,
176
+ isSigner: false,
177
+ },
178
+ {
179
+ name: "associatedTokenProgram",
180
+ isMut: false,
181
+ isSigner: false,
182
+ },
183
+ {
184
+ name: "eventAuthority",
185
+ isMut: false,
186
+ isSigner: false,
187
+ },
188
+ {
189
+ name: "program",
190
+ isMut: false,
191
+ isSigner: false,
192
+ },
193
+ ],
194
+ args: [],
195
+ },
196
+ {
197
+ name: "proposeChange",
198
+ accounts: [
199
+ {
200
+ name: "changeRequest",
201
+ isMut: true,
202
+ isSigner: false,
203
+ },
204
+ {
205
+ name: "performancePackage",
206
+ isMut: true,
207
+ isSigner: false,
208
+ },
209
+ {
210
+ name: "proposer",
211
+ isMut: false,
212
+ isSigner: true,
213
+ },
214
+ {
215
+ name: "payer",
216
+ isMut: true,
217
+ isSigner: true,
218
+ },
219
+ {
220
+ name: "systemProgram",
221
+ isMut: false,
222
+ isSigner: false,
223
+ },
224
+ {
225
+ name: "eventAuthority",
226
+ isMut: false,
227
+ isSigner: false,
228
+ },
229
+ {
230
+ name: "program",
231
+ isMut: false,
232
+ isSigner: false,
233
+ },
234
+ ],
235
+ args: [
236
+ {
237
+ name: "params",
238
+ type: {
239
+ defined: "ProposeChangeParams",
240
+ },
241
+ },
242
+ ],
243
+ },
244
+ {
245
+ name: "executeChange",
246
+ accounts: [
247
+ {
248
+ name: "changeRequest",
249
+ isMut: true,
250
+ isSigner: false,
251
+ },
252
+ {
253
+ name: "performancePackage",
254
+ isMut: true,
255
+ isSigner: false,
256
+ },
257
+ {
258
+ name: "executor",
259
+ isMut: true,
260
+ isSigner: true,
261
+ docs: [
262
+ "The party executing the change (must be opposite of proposer)",
263
+ ],
264
+ },
265
+ {
266
+ name: "eventAuthority",
267
+ isMut: false,
268
+ isSigner: false,
269
+ },
270
+ {
271
+ name: "program",
272
+ isMut: false,
273
+ isSigner: false,
274
+ },
275
+ ],
276
+ args: [],
277
+ },
278
+ {
279
+ name: "changePerformancePackageAuthority",
280
+ accounts: [
281
+ {
282
+ name: "performancePackage",
283
+ isMut: true,
284
+ isSigner: false,
285
+ },
286
+ {
287
+ name: "currentAuthority",
288
+ isMut: false,
289
+ isSigner: true,
290
+ },
291
+ {
292
+ name: "eventAuthority",
293
+ isMut: false,
294
+ isSigner: false,
295
+ },
296
+ {
297
+ name: "program",
298
+ isMut: false,
299
+ isSigner: false,
300
+ },
301
+ ],
302
+ args: [
303
+ {
304
+ name: "params",
305
+ type: {
306
+ defined: "ChangePerformancePackageAuthorityParams",
307
+ },
308
+ },
309
+ ],
310
+ },
311
+ {
312
+ name: "burnPerformancePackage",
313
+ accounts: [
314
+ {
315
+ name: "performancePackage",
316
+ isMut: true,
317
+ isSigner: false,
318
+ },
319
+ {
320
+ name: "performancePackageTokenVault",
321
+ isMut: true,
322
+ isSigner: false,
323
+ },
324
+ {
325
+ name: "admin",
326
+ isMut: true,
327
+ isSigner: true,
328
+ },
329
+ {
330
+ name: "spillAccount",
331
+ isMut: true,
332
+ isSigner: false,
333
+ },
334
+ {
335
+ name: "tokenMint",
336
+ isMut: true,
337
+ isSigner: false,
338
+ },
339
+ {
340
+ name: "tokenProgram",
341
+ isMut: false,
342
+ isSigner: false,
343
+ },
344
+ ],
345
+ args: [],
346
+ },
347
+ ],
348
+ accounts: [
349
+ {
350
+ name: "performancePackage",
351
+ type: {
352
+ kind: "struct",
353
+ fields: [
354
+ {
355
+ name: "tranches",
356
+ docs: ["The tranches that make up the performance package"],
357
+ type: {
358
+ vec: {
359
+ defined: "StoredTranche",
360
+ },
361
+ },
362
+ },
363
+ {
364
+ name: "totalTokenAmount",
365
+ docs: ["Total amount of tokens in the performance package"],
366
+ type: "u64",
367
+ },
368
+ {
369
+ name: "alreadyUnlockedAmount",
370
+ docs: ["Amount of tokens already unlocked"],
371
+ type: "u64",
372
+ },
373
+ {
374
+ name: "minUnlockTimestamp",
375
+ docs: ["The timestamp when unlocking can begin"],
376
+ type: "i64",
377
+ },
378
+ {
379
+ name: "oracleConfig",
380
+ docs: ["Where to pull price data from"],
381
+ type: {
382
+ defined: "OracleConfig",
383
+ },
384
+ },
385
+ {
386
+ name: "twapLengthSeconds",
387
+ docs: [
388
+ "Length of time in seconds for TWAP calculation, between 1 day and 1 year",
389
+ ],
390
+ type: "u32",
391
+ },
392
+ {
393
+ name: "recipient",
394
+ docs: ["The recipient of the tokens when unlocked"],
395
+ type: "publicKey",
396
+ },
397
+ {
398
+ name: "state",
399
+ docs: ["The current state of the locker"],
400
+ type: {
401
+ defined: "PerformancePackageState",
402
+ },
403
+ },
404
+ {
405
+ name: "createKey",
406
+ docs: ["Used to derive the PDA"],
407
+ type: "publicKey",
408
+ },
409
+ {
410
+ name: "pdaBump",
411
+ docs: ["The PDA bump"],
412
+ type: "u8",
413
+ },
414
+ {
415
+ name: "performancePackageAuthority",
416
+ docs: [
417
+ "The authorized locker authority that can execute changes, usually the organization",
418
+ ],
419
+ type: "publicKey",
420
+ },
421
+ {
422
+ name: "tokenMint",
423
+ docs: ["The mint of the locked tokens"],
424
+ type: "publicKey",
425
+ },
426
+ {
427
+ name: "seqNum",
428
+ docs: [
429
+ "The sequence number of the performance package, used for indexing events",
430
+ ],
431
+ type: "u64",
432
+ },
433
+ {
434
+ name: "performancePackageTokenVault",
435
+ docs: ["The vault that stores the tokens"],
436
+ type: "publicKey",
437
+ },
438
+ ],
439
+ },
440
+ },
441
+ {
442
+ name: "changeRequest",
443
+ type: {
444
+ kind: "struct",
445
+ fields: [
446
+ {
447
+ name: "performancePackage",
448
+ docs: ["The performance package this change applies to"],
449
+ type: "publicKey",
450
+ },
451
+ {
452
+ name: "changeType",
453
+ docs: ["What is being changed"],
454
+ type: {
455
+ defined: "ChangeType",
456
+ },
457
+ },
458
+ {
459
+ name: "proposedAt",
460
+ docs: ["When the change was proposed"],
461
+ type: "i64",
462
+ },
463
+ {
464
+ name: "proposerType",
465
+ docs: [
466
+ "Who proposed this change (either token_recipient or locker_authority)",
467
+ ],
468
+ type: {
469
+ defined: "ProposerType",
470
+ },
471
+ },
472
+ {
473
+ name: "pdaNonce",
474
+ docs: ["Used to derive the PDA along with the proposer"],
475
+ type: "u32",
476
+ },
477
+ {
478
+ name: "pdaBump",
479
+ docs: ["The PDA bump"],
480
+ type: "u8",
481
+ },
482
+ ],
483
+ },
484
+ },
485
+ ],
486
+ types: [
487
+ {
488
+ name: "CommonFields",
489
+ type: {
490
+ kind: "struct",
491
+ fields: [
492
+ {
493
+ name: "slot",
494
+ type: "u64",
495
+ },
496
+ {
497
+ name: "unixTimestamp",
498
+ type: "i64",
499
+ },
500
+ {
501
+ name: "performancePackageSeqNum",
502
+ type: "u64",
503
+ },
504
+ ],
505
+ },
506
+ },
507
+ {
508
+ name: "ChangePerformancePackageAuthorityParams",
509
+ type: {
510
+ kind: "struct",
511
+ fields: [
512
+ {
513
+ name: "newPerformancePackageAuthority",
514
+ type: "publicKey",
515
+ },
516
+ ],
517
+ },
518
+ },
519
+ {
520
+ name: "InitializePerformancePackageParams",
521
+ type: {
522
+ kind: "struct",
523
+ fields: [
524
+ {
525
+ name: "tranches",
526
+ type: {
527
+ vec: {
528
+ defined: "Tranche",
529
+ },
530
+ },
531
+ },
532
+ {
533
+ name: "minUnlockTimestamp",
534
+ type: "i64",
535
+ },
536
+ {
537
+ name: "oracleConfig",
538
+ type: {
539
+ defined: "OracleConfig",
540
+ },
541
+ },
542
+ {
543
+ name: "twapLengthSeconds",
544
+ type: "u32",
545
+ },
546
+ {
547
+ name: "grantee",
548
+ type: "publicKey",
549
+ },
550
+ {
551
+ name: "performancePackageAuthority",
552
+ type: "publicKey",
553
+ },
554
+ ],
555
+ },
556
+ },
557
+ {
558
+ name: "ProposeChangeParams",
559
+ type: {
560
+ kind: "struct",
561
+ fields: [
562
+ {
563
+ name: "changeType",
564
+ type: {
565
+ defined: "ChangeType",
566
+ },
567
+ },
568
+ {
569
+ name: "pdaNonce",
570
+ type: "u32",
571
+ },
572
+ ],
573
+ },
574
+ },
575
+ {
576
+ name: "OracleConfig",
577
+ docs: [
578
+ "Starting at `byte_offset` in `oracle_account`, this program expects to read:",
579
+ "- 16 bytes for the aggregator, stored as a little endian u128",
580
+ "- 8 bytes for the slot that the aggregator was last updated, stored as a",
581
+ "little endian u64",
582
+ "",
583
+ "The aggregator should be a weighted sum of prices, where the weight is the",
584
+ "number of seconds between prices. Here's an example:",
585
+ "- at second 0, the aggregator is 0",
586
+ "- at second 1, the price is 10 and the aggregator is 10 (10 * 1)",
587
+ "- at second 4, the price is 11 and 3 seconds have passed, so the aggregator is",
588
+ "10 + 11 * 3 = 43",
589
+ "",
590
+ "This allows our program to read a TWAP over a time period by reading the",
591
+ "aggregator value at the beginning and at the end, and dividing the difference",
592
+ "by the number of seconds between the two.",
593
+ ],
594
+ type: {
595
+ kind: "struct",
596
+ fields: [
597
+ {
598
+ name: "oracleAccount",
599
+ type: "publicKey",
600
+ },
601
+ {
602
+ name: "byteOffset",
603
+ type: "u32",
604
+ },
605
+ ],
606
+ },
607
+ },
608
+ {
609
+ name: "Tranche",
610
+ type: {
611
+ kind: "struct",
612
+ fields: [
613
+ {
614
+ name: "priceThreshold",
615
+ docs: ["The price at which this tranch unlocks"],
616
+ type: "u128",
617
+ },
618
+ {
619
+ name: "tokenAmount",
620
+ docs: ["The amount of tokens in this tranch"],
621
+ type: "u64",
622
+ },
623
+ ],
624
+ },
625
+ },
626
+ {
627
+ name: "StoredTranche",
628
+ type: {
629
+ kind: "struct",
630
+ fields: [
631
+ {
632
+ name: "priceThreshold",
633
+ type: "u128",
634
+ },
635
+ {
636
+ name: "tokenAmount",
637
+ type: "u64",
638
+ },
639
+ {
640
+ name: "isUnlocked",
641
+ type: "bool",
642
+ },
643
+ ],
644
+ },
645
+ },
646
+ {
647
+ name: "PerformancePackageState",
648
+ type: {
649
+ kind: "enum",
650
+ variants: [
651
+ {
652
+ name: "Locked",
653
+ },
654
+ {
655
+ name: "Unlocking",
656
+ fields: [
657
+ {
658
+ name: "startAggregator",
659
+ docs: ["The aggregator value when unlocking started"],
660
+ type: "u128",
661
+ },
662
+ {
663
+ name: "startTimestamp",
664
+ docs: ["The timestamp when unlocking started"],
665
+ type: "i64",
666
+ },
667
+ ],
668
+ },
669
+ ],
670
+ },
671
+ },
672
+ {
673
+ name: "ChangeType",
674
+ type: {
675
+ kind: "enum",
676
+ variants: [
677
+ {
678
+ name: "Oracle",
679
+ fields: [
680
+ {
681
+ name: "newOracleConfig",
682
+ type: {
683
+ defined: "OracleConfig",
684
+ },
685
+ },
686
+ ],
687
+ },
688
+ {
689
+ name: "Recipient",
690
+ fields: [
691
+ {
692
+ name: "newRecipient",
693
+ type: "publicKey",
694
+ },
695
+ ],
696
+ },
697
+ ],
698
+ },
699
+ },
700
+ {
701
+ name: "ProposerType",
702
+ type: {
703
+ kind: "enum",
704
+ variants: [
705
+ {
706
+ name: "Recipient",
707
+ },
708
+ {
709
+ name: "Authority",
710
+ },
711
+ ],
712
+ },
713
+ },
714
+ ],
715
+ events: [
716
+ {
717
+ name: "PerformancePackageInitialized",
718
+ fields: [
719
+ {
720
+ name: "common",
721
+ type: {
722
+ defined: "CommonFields",
723
+ },
724
+ index: false,
725
+ },
726
+ {
727
+ name: "performancePackage",
728
+ type: "publicKey",
729
+ index: false,
730
+ },
731
+ ],
732
+ },
733
+ {
734
+ name: "UnlockStarted",
735
+ fields: [
736
+ {
737
+ name: "common",
738
+ type: {
739
+ defined: "CommonFields",
740
+ },
741
+ index: false,
742
+ },
743
+ {
744
+ name: "performancePackage",
745
+ type: "publicKey",
746
+ index: false,
747
+ },
748
+ {
749
+ name: "startAggregator",
750
+ type: "u128",
751
+ index: false,
752
+ },
753
+ {
754
+ name: "startTimestamp",
755
+ type: "i64",
756
+ index: false,
757
+ },
758
+ ],
759
+ },
760
+ {
761
+ name: "UnlockCompleted",
762
+ fields: [
763
+ {
764
+ name: "common",
765
+ type: {
766
+ defined: "CommonFields",
767
+ },
768
+ index: false,
769
+ },
770
+ {
771
+ name: "performancePackage",
772
+ type: "publicKey",
773
+ index: false,
774
+ },
775
+ {
776
+ name: "tokenAmount",
777
+ type: "u64",
778
+ index: false,
779
+ },
780
+ {
781
+ name: "recipient",
782
+ type: "publicKey",
783
+ index: false,
784
+ },
785
+ {
786
+ name: "twapPrice",
787
+ type: "u128",
788
+ index: false,
789
+ },
790
+ ],
791
+ },
792
+ {
793
+ name: "ChangeProposed",
794
+ fields: [
795
+ {
796
+ name: "common",
797
+ type: {
798
+ defined: "CommonFields",
799
+ },
800
+ index: false,
801
+ },
802
+ {
803
+ name: "locker",
804
+ type: "publicKey",
805
+ index: false,
806
+ },
807
+ {
808
+ name: "changeRequest",
809
+ type: "publicKey",
810
+ index: false,
811
+ },
812
+ {
813
+ name: "proposer",
814
+ type: "publicKey",
815
+ index: false,
816
+ },
817
+ {
818
+ name: "changeType",
819
+ type: {
820
+ defined: "ChangeType",
821
+ },
822
+ index: false,
823
+ },
824
+ ],
825
+ },
826
+ {
827
+ name: "ChangeExecuted",
828
+ fields: [
829
+ {
830
+ name: "common",
831
+ type: {
832
+ defined: "CommonFields",
833
+ },
834
+ index: false,
835
+ },
836
+ {
837
+ name: "performancePackage",
838
+ type: "publicKey",
839
+ index: false,
840
+ },
841
+ {
842
+ name: "changeRequest",
843
+ type: "publicKey",
844
+ index: false,
845
+ },
846
+ {
847
+ name: "executor",
848
+ type: "publicKey",
849
+ index: false,
850
+ },
851
+ {
852
+ name: "changeType",
853
+ type: {
854
+ defined: "ChangeType",
855
+ },
856
+ index: false,
857
+ },
858
+ ],
859
+ },
860
+ {
861
+ name: "PerformancePackageAuthorityChanged",
862
+ fields: [
863
+ {
864
+ name: "common",
865
+ type: {
866
+ defined: "CommonFields",
867
+ },
868
+ index: false,
869
+ },
870
+ {
871
+ name: "locker",
872
+ type: "publicKey",
873
+ index: false,
874
+ },
875
+ {
876
+ name: "oldAuthority",
877
+ type: "publicKey",
878
+ index: false,
879
+ },
880
+ {
881
+ name: "newAuthority",
882
+ type: "publicKey",
883
+ index: false,
884
+ },
885
+ ],
886
+ },
887
+ ],
888
+ errors: [
889
+ {
890
+ code: 6000,
891
+ name: "UnlockTimestampNotReached",
892
+ msg: "Unlock timestamp has not been reached yet",
893
+ },
894
+ {
895
+ code: 6001,
896
+ name: "UnlockTimestampInThePast",
897
+ msg: "Unlock timestamp must be in the future",
898
+ },
899
+ {
900
+ code: 6002,
901
+ name: "InvalidPerformancePackageState",
902
+ msg: "Performance package is not in the expected state",
903
+ },
904
+ {
905
+ code: 6003,
906
+ name: "TwapPeriodNotElapsed",
907
+ msg: "TWAP calculation failed",
908
+ },
909
+ {
910
+ code: 6004,
911
+ name: "PriceThresholdNotMet",
912
+ msg: "Price threshold not met",
913
+ },
914
+ {
915
+ code: 6005,
916
+ name: "InvalidOracleData",
917
+ msg: "Invalid oracle account data",
918
+ },
919
+ {
920
+ code: 6006,
921
+ name: "UnauthorizedChangeRequest",
922
+ msg: "Unauthorized to create or execute change request",
923
+ },
924
+ {
925
+ code: 6007,
926
+ name: "InvalidChangeRequest",
927
+ msg: "Change request does not match locker",
928
+ },
929
+ {
930
+ code: 6008,
931
+ name: "UnauthorizedLockerAuthority",
932
+ msg: "Unauthorized locker authority",
933
+ },
934
+ {
935
+ code: 6009,
936
+ name: "InvariantViolated",
937
+ msg: "An invariant was violated. You should get in contact with the MetaDAO team if you see this",
938
+ },
939
+ {
940
+ code: 6010,
941
+ name: "TranchePriceThresholdsNotMonotonic",
942
+ msg: "Tranche price thresholds must be monotonically increasing",
943
+ },
944
+ {
945
+ code: 6011,
946
+ name: "TrancheTokenAmountZero",
947
+ msg: "Tranche token amount must be greater than 0",
948
+ },
949
+ {
950
+ code: 6012,
951
+ name: "InvalidTwapLength",
952
+ msg: "TWAP length must be greater than or equal to 1 day and less than 1 year",
953
+ },
954
+ {
955
+ code: 6013,
956
+ name: "InvalidAdmin",
957
+ msg: "Invalid admin",
958
+ },
959
+ {
960
+ code: 6014,
961
+ name: "TotalTokenAmountOverflow",
962
+ msg: "Total token amount calculation would overflow",
963
+ },
964
+ {
965
+ code: 6015,
966
+ name: "RecipientAuthorityMustDiffer",
967
+ msg: "Recipient and performance package authority must be different keys",
968
+ },
969
+ ],
970
+ };
971
+ //# sourceMappingURL=price_based_performance_package.js.map