@macalinao/clients-mpl-core 0.0.0 → 0.3.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 (854) hide show
  1. package/README.md +15 -1
  2. package/dist/generated/accounts/assetV1.d.ts +36 -0
  3. package/dist/generated/accounts/assetV1.d.ts.map +1 -0
  4. package/dist/generated/accounts/assetV1.js +53 -0
  5. package/dist/generated/accounts/assetV1.js.map +1 -0
  6. package/dist/generated/accounts/collectionV1.d.ts +35 -0
  7. package/dist/generated/accounts/collectionV1.d.ts.map +1 -0
  8. package/dist/generated/accounts/collectionV1.js +52 -0
  9. package/dist/generated/accounts/collectionV1.js.map +1 -0
  10. package/dist/generated/accounts/groupV1.d.ts +39 -0
  11. package/dist/generated/accounts/groupV1.d.ts.map +1 -0
  12. package/dist/generated/accounts/groupV1.js +56 -0
  13. package/dist/generated/accounts/groupV1.js.map +1 -0
  14. package/dist/generated/accounts/hashedAssetV1.d.ts +27 -0
  15. package/dist/generated/accounts/hashedAssetV1.d.ts.map +1 -0
  16. package/dist/generated/accounts/hashedAssetV1.js +38 -0
  17. package/dist/generated/accounts/hashedAssetV1.js.map +1 -0
  18. package/dist/generated/accounts/index.d.ts +6 -0
  19. package/dist/generated/accounts/pluginHeaderV1.d.ts +27 -0
  20. package/dist/generated/accounts/pluginHeaderV1.d.ts.map +1 -0
  21. package/dist/generated/accounts/pluginHeaderV1.js +38 -0
  22. package/dist/generated/accounts/pluginHeaderV1.js.map +1 -0
  23. package/dist/generated/accounts/pluginRegistryV1.d.ts +31 -0
  24. package/dist/generated/accounts/pluginRegistryV1.d.ts.map +1 -0
  25. package/dist/generated/accounts/pluginRegistryV1.js +48 -0
  26. package/dist/generated/accounts/pluginRegistryV1.js.map +1 -0
  27. package/dist/generated/errors/index.d.ts +1 -0
  28. package/dist/generated/errors/mplCoreProgram.d.ts +131 -0
  29. package/dist/generated/errors/mplCoreProgram.d.ts.map +1 -0
  30. package/dist/generated/errors/mplCoreProgram.js +188 -0
  31. package/dist/generated/errors/mplCoreProgram.js.map +1 -0
  32. package/dist/generated/index.d.ts +167 -0
  33. package/dist/generated/instructions/addAssetsToGroupV1.d.ts +46 -0
  34. package/dist/generated/instructions/addAssetsToGroupV1.d.ts.map +1 -0
  35. package/dist/generated/instructions/addAssetsToGroupV1.js +85 -0
  36. package/dist/generated/instructions/addAssetsToGroupV1.js.map +1 -0
  37. package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.d.ts +49 -0
  38. package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.d.ts.map +1 -0
  39. package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.js +91 -0
  40. package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.js.map +1 -0
  41. package/dist/generated/instructions/addCollectionPluginV1.d.ts +49 -0
  42. package/dist/generated/instructions/addCollectionPluginV1.d.ts.map +1 -0
  43. package/dist/generated/instructions/addCollectionPluginV1.js +91 -0
  44. package/dist/generated/instructions/addCollectionPluginV1.js.map +1 -0
  45. package/dist/generated/instructions/addCollectionsToGroupV1.d.ts +46 -0
  46. package/dist/generated/instructions/addCollectionsToGroupV1.d.ts.map +1 -0
  47. package/dist/generated/instructions/addCollectionsToGroupV1.js +85 -0
  48. package/dist/generated/instructions/addCollectionsToGroupV1.js.map +1 -0
  49. package/dist/generated/instructions/addExternalPluginAdapterV1.d.ts +52 -0
  50. package/dist/generated/instructions/addExternalPluginAdapterV1.d.ts.map +1 -0
  51. package/dist/generated/instructions/addExternalPluginAdapterV1.js +97 -0
  52. package/dist/generated/instructions/addExternalPluginAdapterV1.js.map +1 -0
  53. package/dist/generated/instructions/addGroupsToGroupV1.d.ts +46 -0
  54. package/dist/generated/instructions/addGroupsToGroupV1.d.ts.map +1 -0
  55. package/dist/generated/instructions/addGroupsToGroupV1.js +85 -0
  56. package/dist/generated/instructions/addGroupsToGroupV1.js.map +1 -0
  57. package/dist/generated/instructions/addPluginV1.d.ts +52 -0
  58. package/dist/generated/instructions/addPluginV1.d.ts.map +1 -0
  59. package/dist/generated/instructions/addPluginV1.js +97 -0
  60. package/dist/generated/instructions/addPluginV1.js.map +1 -0
  61. package/dist/generated/instructions/approveCollectionPluginAuthorityV1.d.ts +49 -0
  62. package/dist/generated/instructions/approveCollectionPluginAuthorityV1.d.ts.map +1 -0
  63. package/dist/generated/instructions/approveCollectionPluginAuthorityV1.js +91 -0
  64. package/dist/generated/instructions/approveCollectionPluginAuthorityV1.js.map +1 -0
  65. package/dist/generated/instructions/approvePluginAuthorityV1.d.ts +52 -0
  66. package/dist/generated/instructions/approvePluginAuthorityV1.d.ts.map +1 -0
  67. package/dist/generated/instructions/approvePluginAuthorityV1.js +97 -0
  68. package/dist/generated/instructions/approvePluginAuthorityV1.js.map +1 -0
  69. package/dist/generated/instructions/burnCollectionV1.d.ts +46 -0
  70. package/dist/generated/instructions/burnCollectionV1.d.ts.map +1 -0
  71. package/dist/generated/instructions/burnCollectionV1.js +84 -0
  72. package/dist/generated/instructions/burnCollectionV1.js.map +1 -0
  73. package/dist/generated/instructions/burnV1.d.ts +52 -0
  74. package/dist/generated/instructions/burnV1.d.ts.map +1 -0
  75. package/dist/generated/instructions/burnV1.js +96 -0
  76. package/dist/generated/instructions/burnV1.js.map +1 -0
  77. package/dist/generated/instructions/closeGroupV1.d.ts +43 -0
  78. package/dist/generated/instructions/closeGroupV1.d.ts.map +1 -0
  79. package/dist/generated/instructions/closeGroupV1.js +78 -0
  80. package/dist/generated/instructions/closeGroupV1.js.map +1 -0
  81. package/dist/generated/instructions/collect.d.ts +35 -0
  82. package/dist/generated/instructions/collect.d.ts.map +1 -0
  83. package/dist/generated/instructions/collect.js +63 -0
  84. package/dist/generated/instructions/collect.js.map +1 -0
  85. package/dist/generated/instructions/compressV1.d.ts +52 -0
  86. package/dist/generated/instructions/compressV1.d.ts.map +1 -0
  87. package/dist/generated/instructions/compressV1.js +97 -0
  88. package/dist/generated/instructions/compressV1.js.map +1 -0
  89. package/dist/generated/instructions/createCollectionV1.d.ts +46 -0
  90. package/dist/generated/instructions/createCollectionV1.d.ts.map +1 -0
  91. package/dist/generated/instructions/createCollectionV1.js +85 -0
  92. package/dist/generated/instructions/createCollectionV1.js.map +1 -0
  93. package/dist/generated/instructions/createCollectionV2.d.ts +46 -0
  94. package/dist/generated/instructions/createCollectionV2.d.ts.map +1 -0
  95. package/dist/generated/instructions/createCollectionV2.js +85 -0
  96. package/dist/generated/instructions/createCollectionV2.js.map +1 -0
  97. package/dist/generated/instructions/createGroupV1.d.ts +46 -0
  98. package/dist/generated/instructions/createGroupV1.d.ts.map +1 -0
  99. package/dist/generated/instructions/createGroupV1.js +85 -0
  100. package/dist/generated/instructions/createGroupV1.js.map +1 -0
  101. package/dist/generated/instructions/createV1.d.ts +58 -0
  102. package/dist/generated/instructions/createV1.d.ts.map +1 -0
  103. package/dist/generated/instructions/createV1.js +109 -0
  104. package/dist/generated/instructions/createV1.js.map +1 -0
  105. package/dist/generated/instructions/createV2.d.ts +58 -0
  106. package/dist/generated/instructions/createV2.d.ts.map +1 -0
  107. package/dist/generated/instructions/createV2.js +109 -0
  108. package/dist/generated/instructions/createV2.js.map +1 -0
  109. package/dist/generated/instructions/decompressV1.d.ts +52 -0
  110. package/dist/generated/instructions/decompressV1.d.ts.map +1 -0
  111. package/dist/generated/instructions/decompressV1.js +97 -0
  112. package/dist/generated/instructions/decompressV1.js.map +1 -0
  113. package/dist/generated/instructions/executeV1.d.ts +75 -0
  114. package/dist/generated/instructions/executeV1.d.ts.map +1 -0
  115. package/dist/generated/instructions/executeV1.js +162 -0
  116. package/dist/generated/instructions/executeV1.js.map +1 -0
  117. package/dist/generated/instructions/index.d.ts +42 -0
  118. package/dist/generated/instructions/removeAssetsFromGroupV1.d.ts +46 -0
  119. package/dist/generated/instructions/removeAssetsFromGroupV1.d.ts.map +1 -0
  120. package/dist/generated/instructions/removeAssetsFromGroupV1.js +85 -0
  121. package/dist/generated/instructions/removeAssetsFromGroupV1.js.map +1 -0
  122. package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.d.ts +49 -0
  123. package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.d.ts.map +1 -0
  124. package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.js +91 -0
  125. package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.js.map +1 -0
  126. package/dist/generated/instructions/removeCollectionPluginV1.d.ts +49 -0
  127. package/dist/generated/instructions/removeCollectionPluginV1.d.ts.map +1 -0
  128. package/dist/generated/instructions/removeCollectionPluginV1.js +91 -0
  129. package/dist/generated/instructions/removeCollectionPluginV1.js.map +1 -0
  130. package/dist/generated/instructions/removeCollectionsFromGroupV1.d.ts +46 -0
  131. package/dist/generated/instructions/removeCollectionsFromGroupV1.d.ts.map +1 -0
  132. package/dist/generated/instructions/removeCollectionsFromGroupV1.js +85 -0
  133. package/dist/generated/instructions/removeCollectionsFromGroupV1.js.map +1 -0
  134. package/dist/generated/instructions/removeExternalPluginAdapterV1.d.ts +52 -0
  135. package/dist/generated/instructions/removeExternalPluginAdapterV1.d.ts.map +1 -0
  136. package/dist/generated/instructions/removeExternalPluginAdapterV1.js +97 -0
  137. package/dist/generated/instructions/removeExternalPluginAdapterV1.js.map +1 -0
  138. package/dist/generated/instructions/removeGroupsFromGroupV1.d.ts +46 -0
  139. package/dist/generated/instructions/removeGroupsFromGroupV1.d.ts.map +1 -0
  140. package/dist/generated/instructions/removeGroupsFromGroupV1.js +85 -0
  141. package/dist/generated/instructions/removeGroupsFromGroupV1.js.map +1 -0
  142. package/dist/generated/instructions/removePluginV1.d.ts +52 -0
  143. package/dist/generated/instructions/removePluginV1.d.ts.map +1 -0
  144. package/dist/generated/instructions/removePluginV1.js +97 -0
  145. package/dist/generated/instructions/removePluginV1.js.map +1 -0
  146. package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.d.ts +49 -0
  147. package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.d.ts.map +1 -0
  148. package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.js +91 -0
  149. package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.js.map +1 -0
  150. package/dist/generated/instructions/revokePluginAuthorityV1.d.ts +52 -0
  151. package/dist/generated/instructions/revokePluginAuthorityV1.d.ts.map +1 -0
  152. package/dist/generated/instructions/revokePluginAuthorityV1.js +97 -0
  153. package/dist/generated/instructions/revokePluginAuthorityV1.js.map +1 -0
  154. package/dist/generated/instructions/transferV1.d.ts +55 -0
  155. package/dist/generated/instructions/transferV1.d.ts.map +1 -0
  156. package/dist/generated/instructions/transferV1.js +102 -0
  157. package/dist/generated/instructions/transferV1.js.map +1 -0
  158. package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.d.ts +49 -0
  159. package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.d.ts.map +1 -0
  160. package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.js +91 -0
  161. package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.js.map +1 -0
  162. package/dist/generated/instructions/updateCollectionInfoV1.d.ts +40 -0
  163. package/dist/generated/instructions/updateCollectionInfoV1.d.ts.map +1 -0
  164. package/dist/generated/instructions/updateCollectionInfoV1.js +65 -0
  165. package/dist/generated/instructions/updateCollectionInfoV1.js.map +1 -0
  166. package/dist/generated/instructions/updateCollectionPluginV1.d.ts +49 -0
  167. package/dist/generated/instructions/updateCollectionPluginV1.d.ts.map +1 -0
  168. package/dist/generated/instructions/updateCollectionPluginV1.js +91 -0
  169. package/dist/generated/instructions/updateCollectionPluginV1.js.map +1 -0
  170. package/dist/generated/instructions/updateCollectionV1.d.ts +52 -0
  171. package/dist/generated/instructions/updateCollectionV1.d.ts.map +1 -0
  172. package/dist/generated/instructions/updateCollectionV1.js +97 -0
  173. package/dist/generated/instructions/updateCollectionV1.js.map +1 -0
  174. package/dist/generated/instructions/updateExternalPluginAdapterV1.d.ts +52 -0
  175. package/dist/generated/instructions/updateExternalPluginAdapterV1.d.ts.map +1 -0
  176. package/dist/generated/instructions/updateExternalPluginAdapterV1.js +97 -0
  177. package/dist/generated/instructions/updateExternalPluginAdapterV1.js.map +1 -0
  178. package/dist/generated/instructions/updateGroupV1.d.ts +49 -0
  179. package/dist/generated/instructions/updateGroupV1.d.ts.map +1 -0
  180. package/dist/generated/instructions/updateGroupV1.js +91 -0
  181. package/dist/generated/instructions/updateGroupV1.js.map +1 -0
  182. package/dist/generated/instructions/updatePluginV1.d.ts +52 -0
  183. package/dist/generated/instructions/updatePluginV1.d.ts.map +1 -0
  184. package/dist/generated/instructions/updatePluginV1.js +97 -0
  185. package/dist/generated/instructions/updatePluginV1.js.map +1 -0
  186. package/dist/generated/instructions/updateV1.d.ts +52 -0
  187. package/dist/generated/instructions/updateV1.d.ts.map +1 -0
  188. package/dist/generated/instructions/updateV1.js +97 -0
  189. package/dist/generated/instructions/updateV1.js.map +1 -0
  190. package/dist/generated/instructions/updateV2.d.ts +55 -0
  191. package/dist/generated/instructions/updateV2.d.ts.map +1 -0
  192. package/dist/generated/instructions/updateV2.js +103 -0
  193. package/dist/generated/instructions/updateV2.js.map +1 -0
  194. package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.d.ts +52 -0
  195. package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.d.ts.map +1 -0
  196. package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.js +97 -0
  197. package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.js.map +1 -0
  198. package/dist/generated/instructions/writeExternalPluginAdapterDataV1.d.ts +55 -0
  199. package/dist/generated/instructions/writeExternalPluginAdapterDataV1.d.ts.map +1 -0
  200. package/dist/generated/instructions/writeExternalPluginAdapterDataV1.js +103 -0
  201. package/dist/generated/instructions/writeExternalPluginAdapterDataV1.js.map +1 -0
  202. package/dist/generated/pdas/assetSigner.d.ts +14 -0
  203. package/dist/generated/pdas/assetSigner.d.ts.map +1 -0
  204. package/dist/generated/pdas/assetSigner.js +14 -0
  205. package/dist/generated/pdas/assetSigner.js.map +1 -0
  206. package/dist/generated/pdas/index.d.ts +1 -0
  207. package/dist/generated/programs/index.d.ts +1 -0
  208. package/dist/generated/programs/mplCoreProgram.d.ts +263 -0
  209. package/dist/generated/programs/mplCoreProgram.d.ts.map +1 -0
  210. package/dist/generated/programs/mplCoreProgram.js +600 -0
  211. package/dist/generated/programs/mplCoreProgram.js.map +1 -0
  212. package/dist/generated/types/addAssetsToGroupV1Args.d.ts +11 -0
  213. package/dist/generated/types/addAssetsToGroupV1Args.d.ts.map +1 -0
  214. package/dist/generated/types/addAssetsToGroupV1Args.js +15 -0
  215. package/dist/generated/types/addAssetsToGroupV1Args.js.map +1 -0
  216. package/dist/generated/types/addBlocker.d.ts +11 -0
  217. package/dist/generated/types/addBlocker.d.ts.map +1 -0
  218. package/dist/generated/types/addBlocker.js +15 -0
  219. package/dist/generated/types/addBlocker.js.map +1 -0
  220. package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.d.ts +16 -0
  221. package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.d.ts.map +1 -0
  222. package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.js +16 -0
  223. package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.js.map +1 -0
  224. package/dist/generated/types/addCollectionPluginV1Args.d.ts +19 -0
  225. package/dist/generated/types/addCollectionPluginV1Args.d.ts.map +1 -0
  226. package/dist/generated/types/addCollectionPluginV1Args.js +17 -0
  227. package/dist/generated/types/addCollectionPluginV1Args.js.map +1 -0
  228. package/dist/generated/types/addCollectionsToGroupV1Args.d.ts +11 -0
  229. package/dist/generated/types/addCollectionsToGroupV1Args.d.ts.map +1 -0
  230. package/dist/generated/types/addCollectionsToGroupV1Args.js +15 -0
  231. package/dist/generated/types/addCollectionsToGroupV1Args.js.map +1 -0
  232. package/dist/generated/types/addExternalPluginAdapterV1Args.d.ts +16 -0
  233. package/dist/generated/types/addExternalPluginAdapterV1Args.d.ts.map +1 -0
  234. package/dist/generated/types/addExternalPluginAdapterV1Args.js +16 -0
  235. package/dist/generated/types/addExternalPluginAdapterV1Args.js.map +1 -0
  236. package/dist/generated/types/addGroupsToGroupV1Args.d.ts +13 -0
  237. package/dist/generated/types/addGroupsToGroupV1Args.d.ts.map +1 -0
  238. package/dist/generated/types/addGroupsToGroupV1Args.js +15 -0
  239. package/dist/generated/types/addGroupsToGroupV1Args.js.map +1 -0
  240. package/dist/generated/types/addPluginV1Args.d.ts +19 -0
  241. package/dist/generated/types/addPluginV1Args.d.ts.map +1 -0
  242. package/dist/generated/types/addPluginV1Args.js +17 -0
  243. package/dist/generated/types/addPluginV1Args.js.map +1 -0
  244. package/dist/generated/types/agentIdentity.d.ts +13 -0
  245. package/dist/generated/types/agentIdentity.d.ts.map +1 -0
  246. package/dist/generated/types/agentIdentity.js +15 -0
  247. package/dist/generated/types/agentIdentity.js.map +1 -0
  248. package/dist/generated/types/agentIdentityInitInfo.d.ts +22 -0
  249. package/dist/generated/types/agentIdentityInitInfo.d.ts.map +1 -0
  250. package/dist/generated/types/agentIdentityInitInfo.js +26 -0
  251. package/dist/generated/types/agentIdentityInitInfo.js.map +1 -0
  252. package/dist/generated/types/agentIdentityUpdateInfo.d.ts +19 -0
  253. package/dist/generated/types/agentIdentityUpdateInfo.d.ts.map +1 -0
  254. package/dist/generated/types/agentIdentityUpdateInfo.js +17 -0
  255. package/dist/generated/types/agentIdentityUpdateInfo.js.map +1 -0
  256. package/dist/generated/types/appData.d.ts +19 -0
  257. package/dist/generated/types/appData.d.ts.map +1 -0
  258. package/dist/generated/types/appData.js +17 -0
  259. package/dist/generated/types/appData.js.map +1 -0
  260. package/dist/generated/types/appDataInitInfo.d.ts +21 -0
  261. package/dist/generated/types/appDataInitInfo.d.ts.map +1 -0
  262. package/dist/generated/types/appDataInitInfo.js +25 -0
  263. package/dist/generated/types/appDataInitInfo.js.map +1 -0
  264. package/dist/generated/types/appDataUpdateInfo.d.ts +16 -0
  265. package/dist/generated/types/appDataUpdateInfo.d.ts.map +1 -0
  266. package/dist/generated/types/appDataUpdateInfo.js +16 -0
  267. package/dist/generated/types/appDataUpdateInfo.js.map +1 -0
  268. package/dist/generated/types/approveCollectionPluginAuthorityV1Args.d.ts +19 -0
  269. package/dist/generated/types/approveCollectionPluginAuthorityV1Args.d.ts.map +1 -0
  270. package/dist/generated/types/approveCollectionPluginAuthorityV1Args.js +17 -0
  271. package/dist/generated/types/approveCollectionPluginAuthorityV1Args.js.map +1 -0
  272. package/dist/generated/types/approvePluginAuthorityV1Args.d.ts +19 -0
  273. package/dist/generated/types/approvePluginAuthorityV1Args.d.ts.map +1 -0
  274. package/dist/generated/types/approvePluginAuthorityV1Args.js +17 -0
  275. package/dist/generated/types/approvePluginAuthorityV1Args.js.map +1 -0
  276. package/dist/generated/types/attribute.d.ts +14 -0
  277. package/dist/generated/types/attribute.d.ts.map +1 -0
  278. package/dist/generated/types/attribute.js +15 -0
  279. package/dist/generated/types/attribute.js.map +1 -0
  280. package/dist/generated/types/attributes.d.ts +16 -0
  281. package/dist/generated/types/attributes.d.ts.map +1 -0
  282. package/dist/generated/types/attributes.js +16 -0
  283. package/dist/generated/types/attributes.js.map +1 -0
  284. package/dist/generated/types/authority.d.ts +27 -0
  285. package/dist/generated/types/authority.d.ts.map +1 -0
  286. package/dist/generated/types/authority.js +37 -0
  287. package/dist/generated/types/authority.js.map +1 -0
  288. package/dist/generated/types/autograph.d.ts +16 -0
  289. package/dist/generated/types/autograph.d.ts.map +1 -0
  290. package/dist/generated/types/autograph.js +16 -0
  291. package/dist/generated/types/autograph.js.map +1 -0
  292. package/dist/generated/types/autographSignature.d.ts +14 -0
  293. package/dist/generated/types/autographSignature.d.ts.map +1 -0
  294. package/dist/generated/types/autographSignature.js +15 -0
  295. package/dist/generated/types/autographSignature.js.map +1 -0
  296. package/dist/generated/types/bubblegumV2.d.ts +11 -0
  297. package/dist/generated/types/bubblegumV2.d.ts.map +1 -0
  298. package/dist/generated/types/bubblegumV2.js +15 -0
  299. package/dist/generated/types/bubblegumV2.js.map +1 -0
  300. package/dist/generated/types/burnCollectionV1Args.d.ts +16 -0
  301. package/dist/generated/types/burnCollectionV1Args.d.ts.map +1 -0
  302. package/dist/generated/types/burnCollectionV1Args.js +16 -0
  303. package/dist/generated/types/burnCollectionV1Args.js.map +1 -0
  304. package/dist/generated/types/burnDelegate.d.ts +11 -0
  305. package/dist/generated/types/burnDelegate.d.ts.map +1 -0
  306. package/dist/generated/types/burnDelegate.js +15 -0
  307. package/dist/generated/types/burnDelegate.js.map +1 -0
  308. package/dist/generated/types/burnV1Args.d.ts +16 -0
  309. package/dist/generated/types/burnV1Args.d.ts.map +1 -0
  310. package/dist/generated/types/burnV1Args.js +16 -0
  311. package/dist/generated/types/burnV1Args.js.map +1 -0
  312. package/dist/generated/types/closeGroupV1Args.d.ts +11 -0
  313. package/dist/generated/types/closeGroupV1Args.d.ts.map +1 -0
  314. package/dist/generated/types/closeGroupV1Args.js +15 -0
  315. package/dist/generated/types/closeGroupV1Args.js.map +1 -0
  316. package/dist/generated/types/compressV1Args.d.ts +11 -0
  317. package/dist/generated/types/compressV1Args.d.ts.map +1 -0
  318. package/dist/generated/types/compressV1Args.js +15 -0
  319. package/dist/generated/types/compressV1Args.js.map +1 -0
  320. package/dist/generated/types/compressionProof.d.ts +27 -0
  321. package/dist/generated/types/compressionProof.d.ts.map +1 -0
  322. package/dist/generated/types/compressionProof.js +31 -0
  323. package/dist/generated/types/compressionProof.js.map +1 -0
  324. package/dist/generated/types/createCollectionV1Args.d.ts +20 -0
  325. package/dist/generated/types/createCollectionV1Args.d.ts.map +1 -0
  326. package/dist/generated/types/createCollectionV1Args.js +24 -0
  327. package/dist/generated/types/createCollectionV1Args.js.map +1 -0
  328. package/dist/generated/types/createCollectionV2Args.d.ts +23 -0
  329. package/dist/generated/types/createCollectionV2Args.d.ts.map +1 -0
  330. package/dist/generated/types/createCollectionV2Args.js +27 -0
  331. package/dist/generated/types/createCollectionV2Args.js.map +1 -0
  332. package/dist/generated/types/createGroupV1Args.d.ts +20 -0
  333. package/dist/generated/types/createGroupV1Args.d.ts.map +1 -0
  334. package/dist/generated/types/createGroupV1Args.js +24 -0
  335. package/dist/generated/types/createGroupV1Args.js.map +1 -0
  336. package/dist/generated/types/createV1Args.d.ts +23 -0
  337. package/dist/generated/types/createV1Args.d.ts.map +1 -0
  338. package/dist/generated/types/createV1Args.js +27 -0
  339. package/dist/generated/types/createV1Args.js.map +1 -0
  340. package/dist/generated/types/createV2Args.d.ts +26 -0
  341. package/dist/generated/types/createV2Args.d.ts.map +1 -0
  342. package/dist/generated/types/createV2Args.js +30 -0
  343. package/dist/generated/types/createV2Args.js.map +1 -0
  344. package/dist/generated/types/creator.d.ts +14 -0
  345. package/dist/generated/types/creator.d.ts.map +1 -0
  346. package/dist/generated/types/creator.js +15 -0
  347. package/dist/generated/types/creator.js.map +1 -0
  348. package/dist/generated/types/dataSection.d.ts +19 -0
  349. package/dist/generated/types/dataSection.d.ts.map +1 -0
  350. package/dist/generated/types/dataSection.js +17 -0
  351. package/dist/generated/types/dataSection.js.map +1 -0
  352. package/dist/generated/types/dataSectionInitInfo.d.ts +19 -0
  353. package/dist/generated/types/dataSectionInitInfo.d.ts.map +1 -0
  354. package/dist/generated/types/dataSectionInitInfo.js +17 -0
  355. package/dist/generated/types/dataSectionInitInfo.js.map +1 -0
  356. package/dist/generated/types/dataSectionUpdateInfo.d.ts +11 -0
  357. package/dist/generated/types/dataSectionUpdateInfo.d.ts.map +1 -0
  358. package/dist/generated/types/dataSectionUpdateInfo.js +15 -0
  359. package/dist/generated/types/dataSectionUpdateInfo.js.map +1 -0
  360. package/dist/generated/types/dataState.d.ts +14 -0
  361. package/dist/generated/types/dataState.d.ts.map +1 -0
  362. package/dist/generated/types/dataState.js +20 -0
  363. package/dist/generated/types/dataState.js.map +1 -0
  364. package/dist/generated/types/decompressV1Args.d.ts +16 -0
  365. package/dist/generated/types/decompressV1Args.d.ts.map +1 -0
  366. package/dist/generated/types/decompressV1Args.js +16 -0
  367. package/dist/generated/types/decompressV1Args.js.map +1 -0
  368. package/dist/generated/types/edition.d.ts +13 -0
  369. package/dist/generated/types/edition.d.ts.map +1 -0
  370. package/dist/generated/types/edition.js +15 -0
  371. package/dist/generated/types/edition.js.map +1 -0
  372. package/dist/generated/types/executeV1Args.d.ts +13 -0
  373. package/dist/generated/types/executeV1Args.d.ts.map +1 -0
  374. package/dist/generated/types/executeV1Args.js +15 -0
  375. package/dist/generated/types/executeV1Args.js.map +1 -0
  376. package/dist/generated/types/externalCheckResult.d.ts +13 -0
  377. package/dist/generated/types/externalCheckResult.d.ts.map +1 -0
  378. package/dist/generated/types/externalCheckResult.js +15 -0
  379. package/dist/generated/types/externalCheckResult.js.map +1 -0
  380. package/dist/generated/types/externalPluginAdapter.d.ts +70 -0
  381. package/dist/generated/types/externalPluginAdapter.d.ts.map +1 -0
  382. package/dist/generated/types/externalPluginAdapter.js +50 -0
  383. package/dist/generated/types/externalPluginAdapter.js.map +1 -0
  384. package/dist/generated/types/externalPluginAdapterInitInfo.d.ts +70 -0
  385. package/dist/generated/types/externalPluginAdapterInitInfo.d.ts.map +1 -0
  386. package/dist/generated/types/externalPluginAdapterInitInfo.js +50 -0
  387. package/dist/generated/types/externalPluginAdapterInitInfo.js.map +1 -0
  388. package/dist/generated/types/externalPluginAdapterKey.d.ts +63 -0
  389. package/dist/generated/types/externalPluginAdapterKey.d.ts.map +1 -0
  390. package/dist/generated/types/externalPluginAdapterKey.js +45 -0
  391. package/dist/generated/types/externalPluginAdapterKey.js.map +1 -0
  392. package/dist/generated/types/externalPluginAdapterSchema.d.ts +15 -0
  393. package/dist/generated/types/externalPluginAdapterSchema.d.ts.map +1 -0
  394. package/dist/generated/types/externalPluginAdapterSchema.js +21 -0
  395. package/dist/generated/types/externalPluginAdapterSchema.js.map +1 -0
  396. package/dist/generated/types/externalPluginAdapterType.d.ts +19 -0
  397. package/dist/generated/types/externalPluginAdapterType.d.ts.map +1 -0
  398. package/dist/generated/types/externalPluginAdapterType.js +25 -0
  399. package/dist/generated/types/externalPluginAdapterType.js.map +1 -0
  400. package/dist/generated/types/externalPluginAdapterUpdateInfo.d.ts +62 -0
  401. package/dist/generated/types/externalPluginAdapterUpdateInfo.d.ts.map +1 -0
  402. package/dist/generated/types/externalPluginAdapterUpdateInfo.js +47 -0
  403. package/dist/generated/types/externalPluginAdapterUpdateInfo.js.map +1 -0
  404. package/dist/generated/types/externalRegistryRecord.d.ts +29 -0
  405. package/dist/generated/types/externalRegistryRecord.d.ts.map +1 -0
  406. package/dist/generated/types/externalRegistryRecord.js +33 -0
  407. package/dist/generated/types/externalRegistryRecord.js.map +1 -0
  408. package/dist/generated/types/externalValidationResult.d.ts +15 -0
  409. package/dist/generated/types/externalValidationResult.d.ts.map +1 -0
  410. package/dist/generated/types/externalValidationResult.js +21 -0
  411. package/dist/generated/types/externalValidationResult.js.map +1 -0
  412. package/dist/generated/types/extraAccount.d.ts +84 -0
  413. package/dist/generated/types/extraAccount.d.ts.map +1 -0
  414. package/dist/generated/types/extraAccount.js +62 -0
  415. package/dist/generated/types/extraAccount.js.map +1 -0
  416. package/dist/generated/types/freezeDelegate.d.ts +13 -0
  417. package/dist/generated/types/freezeDelegate.d.ts.map +1 -0
  418. package/dist/generated/types/freezeDelegate.js +15 -0
  419. package/dist/generated/types/freezeDelegate.js.map +1 -0
  420. package/dist/generated/types/freezeExecute.d.ts +13 -0
  421. package/dist/generated/types/freezeExecute.d.ts.map +1 -0
  422. package/dist/generated/types/freezeExecute.js +15 -0
  423. package/dist/generated/types/freezeExecute.js.map +1 -0
  424. package/dist/generated/types/groups.d.ts +13 -0
  425. package/dist/generated/types/groups.d.ts.map +1 -0
  426. package/dist/generated/types/groups.js +15 -0
  427. package/dist/generated/types/groups.js.map +1 -0
  428. package/dist/generated/types/hashablePluginSchema.d.ts +21 -0
  429. package/dist/generated/types/hashablePluginSchema.d.ts.map +1 -0
  430. package/dist/generated/types/hashablePluginSchema.js +25 -0
  431. package/dist/generated/types/hashablePluginSchema.js.map +1 -0
  432. package/dist/generated/types/hashedAssetSchema.d.ts +14 -0
  433. package/dist/generated/types/hashedAssetSchema.d.ts.map +1 -0
  434. package/dist/generated/types/hashedAssetSchema.js +15 -0
  435. package/dist/generated/types/hashedAssetSchema.js.map +1 -0
  436. package/dist/generated/types/hookableLifecycleEvent.d.ts +17 -0
  437. package/dist/generated/types/hookableLifecycleEvent.d.ts.map +1 -0
  438. package/dist/generated/types/hookableLifecycleEvent.js +23 -0
  439. package/dist/generated/types/hookableLifecycleEvent.js.map +1 -0
  440. package/dist/generated/types/immutableMetadata.d.ts +11 -0
  441. package/dist/generated/types/immutableMetadata.d.ts.map +1 -0
  442. package/dist/generated/types/immutableMetadata.js +15 -0
  443. package/dist/generated/types/immutableMetadata.js.map +1 -0
  444. package/dist/generated/types/index.d.ts +116 -0
  445. package/dist/generated/types/key.d.ts +19 -0
  446. package/dist/generated/types/key.d.ts.map +1 -0
  447. package/dist/generated/types/key.js +25 -0
  448. package/dist/generated/types/key.js.map +1 -0
  449. package/dist/generated/types/lifecycleHook.d.ts +24 -0
  450. package/dist/generated/types/lifecycleHook.d.ts.map +1 -0
  451. package/dist/generated/types/lifecycleHook.js +28 -0
  452. package/dist/generated/types/lifecycleHook.js.map +1 -0
  453. package/dist/generated/types/lifecycleHookInitInfo.d.ts +30 -0
  454. package/dist/generated/types/lifecycleHookInitInfo.d.ts.map +1 -0
  455. package/dist/generated/types/lifecycleHookInitInfo.js +34 -0
  456. package/dist/generated/types/lifecycleHookInitInfo.js.map +1 -0
  457. package/dist/generated/types/lifecycleHookUpdateInfo.d.ts +23 -0
  458. package/dist/generated/types/lifecycleHookUpdateInfo.d.ts.map +1 -0
  459. package/dist/generated/types/lifecycleHookUpdateInfo.js +27 -0
  460. package/dist/generated/types/lifecycleHookUpdateInfo.js.map +1 -0
  461. package/dist/generated/types/linkedAppData.d.ts +19 -0
  462. package/dist/generated/types/linkedAppData.d.ts.map +1 -0
  463. package/dist/generated/types/linkedAppData.js +17 -0
  464. package/dist/generated/types/linkedAppData.js.map +1 -0
  465. package/dist/generated/types/linkedAppDataInitInfo.d.ts +21 -0
  466. package/dist/generated/types/linkedAppDataInitInfo.d.ts.map +1 -0
  467. package/dist/generated/types/linkedAppDataInitInfo.js +25 -0
  468. package/dist/generated/types/linkedAppDataInitInfo.js.map +1 -0
  469. package/dist/generated/types/linkedAppDataUpdateInfo.d.ts +16 -0
  470. package/dist/generated/types/linkedAppDataUpdateInfo.d.ts.map +1 -0
  471. package/dist/generated/types/linkedAppDataUpdateInfo.js +16 -0
  472. package/dist/generated/types/linkedAppDataUpdateInfo.js.map +1 -0
  473. package/dist/generated/types/linkedDataKey.d.ts +29 -0
  474. package/dist/generated/types/linkedDataKey.d.ts.map +1 -0
  475. package/dist/generated/types/linkedDataKey.js +28 -0
  476. package/dist/generated/types/linkedDataKey.js.map +1 -0
  477. package/dist/generated/types/linkedLifecycleHook.d.ts +24 -0
  478. package/dist/generated/types/linkedLifecycleHook.d.ts.map +1 -0
  479. package/dist/generated/types/linkedLifecycleHook.js +28 -0
  480. package/dist/generated/types/linkedLifecycleHook.js.map +1 -0
  481. package/dist/generated/types/linkedLifecycleHookInitInfo.d.ts +30 -0
  482. package/dist/generated/types/linkedLifecycleHookInitInfo.d.ts.map +1 -0
  483. package/dist/generated/types/linkedLifecycleHookInitInfo.js +34 -0
  484. package/dist/generated/types/linkedLifecycleHookInitInfo.js.map +1 -0
  485. package/dist/generated/types/linkedLifecycleHookUpdateInfo.d.ts +23 -0
  486. package/dist/generated/types/linkedLifecycleHookUpdateInfo.d.ts.map +1 -0
  487. package/dist/generated/types/linkedLifecycleHookUpdateInfo.js +27 -0
  488. package/dist/generated/types/linkedLifecycleHookUpdateInfo.js.map +1 -0
  489. package/dist/generated/types/masterEdition.d.ts +19 -0
  490. package/dist/generated/types/masterEdition.d.ts.map +1 -0
  491. package/dist/generated/types/masterEdition.js +23 -0
  492. package/dist/generated/types/masterEdition.js.map +1 -0
  493. package/dist/generated/types/oracle.d.ts +21 -0
  494. package/dist/generated/types/oracle.d.ts.map +1 -0
  495. package/dist/generated/types/oracle.js +25 -0
  496. package/dist/generated/types/oracle.js.map +1 -0
  497. package/dist/generated/types/oracleInitInfo.d.ts +28 -0
  498. package/dist/generated/types/oracleInitInfo.d.ts.map +1 -0
  499. package/dist/generated/types/oracleInitInfo.js +32 -0
  500. package/dist/generated/types/oracleInitInfo.js.map +1 -0
  501. package/dist/generated/types/oracleUpdateInfo.d.ts +23 -0
  502. package/dist/generated/types/oracleUpdateInfo.d.ts.map +1 -0
  503. package/dist/generated/types/oracleUpdateInfo.js +27 -0
  504. package/dist/generated/types/oracleUpdateInfo.js.map +1 -0
  505. package/dist/generated/types/oracleValidation.d.ts +33 -0
  506. package/dist/generated/types/oracleValidation.d.ts.map +1 -0
  507. package/dist/generated/types/oracleValidation.js +38 -0
  508. package/dist/generated/types/oracleValidation.js.map +1 -0
  509. package/dist/generated/types/permanentBurnDelegate.d.ts +11 -0
  510. package/dist/generated/types/permanentBurnDelegate.d.ts.map +1 -0
  511. package/dist/generated/types/permanentBurnDelegate.js +15 -0
  512. package/dist/generated/types/permanentBurnDelegate.js.map +1 -0
  513. package/dist/generated/types/permanentFreezeDelegate.d.ts +13 -0
  514. package/dist/generated/types/permanentFreezeDelegate.d.ts.map +1 -0
  515. package/dist/generated/types/permanentFreezeDelegate.js +15 -0
  516. package/dist/generated/types/permanentFreezeDelegate.js.map +1 -0
  517. package/dist/generated/types/permanentFreezeExecute.d.ts +13 -0
  518. package/dist/generated/types/permanentFreezeExecute.d.ts.map +1 -0
  519. package/dist/generated/types/permanentFreezeExecute.js +15 -0
  520. package/dist/generated/types/permanentFreezeExecute.js.map +1 -0
  521. package/dist/generated/types/permanentTransferDelegate.d.ts +11 -0
  522. package/dist/generated/types/permanentTransferDelegate.d.ts.map +1 -0
  523. package/dist/generated/types/permanentTransferDelegate.js +15 -0
  524. package/dist/generated/types/permanentTransferDelegate.js.map +1 -0
  525. package/dist/generated/types/plugin.d.ts +166 -0
  526. package/dist/generated/types/plugin.d.ts.map +1 -0
  527. package/dist/generated/types/plugin.js +86 -0
  528. package/dist/generated/types/plugin.js.map +1 -0
  529. package/dist/generated/types/pluginAuthorityPair.d.ts +19 -0
  530. package/dist/generated/types/pluginAuthorityPair.d.ts.map +1 -0
  531. package/dist/generated/types/pluginAuthorityPair.js +17 -0
  532. package/dist/generated/types/pluginAuthorityPair.js.map +1 -0
  533. package/dist/generated/types/pluginType.d.ts +31 -0
  534. package/dist/generated/types/pluginType.d.ts.map +1 -0
  535. package/dist/generated/types/pluginType.js +37 -0
  536. package/dist/generated/types/pluginType.js.map +1 -0
  537. package/dist/generated/types/registryRecord.d.ts +21 -0
  538. package/dist/generated/types/registryRecord.d.ts.map +1 -0
  539. package/dist/generated/types/registryRecord.js +25 -0
  540. package/dist/generated/types/registryRecord.js.map +1 -0
  541. package/dist/generated/types/relationshipEntry.d.ts +18 -0
  542. package/dist/generated/types/relationshipEntry.d.ts.map +1 -0
  543. package/dist/generated/types/relationshipEntry.js +16 -0
  544. package/dist/generated/types/relationshipEntry.js.map +1 -0
  545. package/dist/generated/types/relationshipKind.d.ts +16 -0
  546. package/dist/generated/types/relationshipKind.d.ts.map +1 -0
  547. package/dist/generated/types/relationshipKind.js +22 -0
  548. package/dist/generated/types/relationshipKind.js.map +1 -0
  549. package/dist/generated/types/removeAssetsFromGroupV1Args.d.ts +13 -0
  550. package/dist/generated/types/removeAssetsFromGroupV1Args.d.ts.map +1 -0
  551. package/dist/generated/types/removeAssetsFromGroupV1Args.js +15 -0
  552. package/dist/generated/types/removeAssetsFromGroupV1Args.js.map +1 -0
  553. package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.d.ts +16 -0
  554. package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.d.ts.map +1 -0
  555. package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.js +16 -0
  556. package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.js.map +1 -0
  557. package/dist/generated/types/removeCollectionPluginV1Args.d.ts +16 -0
  558. package/dist/generated/types/removeCollectionPluginV1Args.d.ts.map +1 -0
  559. package/dist/generated/types/removeCollectionPluginV1Args.js +16 -0
  560. package/dist/generated/types/removeCollectionPluginV1Args.js.map +1 -0
  561. package/dist/generated/types/removeCollectionsFromGroupV1Args.d.ts +13 -0
  562. package/dist/generated/types/removeCollectionsFromGroupV1Args.d.ts.map +1 -0
  563. package/dist/generated/types/removeCollectionsFromGroupV1Args.js +15 -0
  564. package/dist/generated/types/removeCollectionsFromGroupV1Args.js.map +1 -0
  565. package/dist/generated/types/removeExternalPluginAdapterV1Args.d.ts +16 -0
  566. package/dist/generated/types/removeExternalPluginAdapterV1Args.d.ts.map +1 -0
  567. package/dist/generated/types/removeExternalPluginAdapterV1Args.js +16 -0
  568. package/dist/generated/types/removeExternalPluginAdapterV1Args.js.map +1 -0
  569. package/dist/generated/types/removeGroupsFromGroupV1Args.d.ts +13 -0
  570. package/dist/generated/types/removeGroupsFromGroupV1Args.d.ts.map +1 -0
  571. package/dist/generated/types/removeGroupsFromGroupV1Args.js +15 -0
  572. package/dist/generated/types/removeGroupsFromGroupV1Args.js.map +1 -0
  573. package/dist/generated/types/removePluginV1Args.d.ts +16 -0
  574. package/dist/generated/types/removePluginV1Args.d.ts.map +1 -0
  575. package/dist/generated/types/removePluginV1Args.js +16 -0
  576. package/dist/generated/types/removePluginV1Args.js.map +1 -0
  577. package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.d.ts +16 -0
  578. package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.d.ts.map +1 -0
  579. package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.js +16 -0
  580. package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.js.map +1 -0
  581. package/dist/generated/types/revokePluginAuthorityV1Args.d.ts +16 -0
  582. package/dist/generated/types/revokePluginAuthorityV1Args.d.ts.map +1 -0
  583. package/dist/generated/types/revokePluginAuthorityV1Args.js +16 -0
  584. package/dist/generated/types/revokePluginAuthorityV1Args.js.map +1 -0
  585. package/dist/generated/types/royalties.d.ts +21 -0
  586. package/dist/generated/types/royalties.d.ts.map +1 -0
  587. package/dist/generated/types/royalties.js +25 -0
  588. package/dist/generated/types/royalties.js.map +1 -0
  589. package/dist/generated/types/ruleSet.d.ts +25 -0
  590. package/dist/generated/types/ruleSet.d.ts.map +1 -0
  591. package/dist/generated/types/ruleSet.js +35 -0
  592. package/dist/generated/types/ruleSet.js.map +1 -0
  593. package/dist/generated/types/seed.d.ts +34 -0
  594. package/dist/generated/types/seed.d.ts.map +1 -0
  595. package/dist/generated/types/seed.js +41 -0
  596. package/dist/generated/types/seed.js.map +1 -0
  597. package/dist/generated/types/transferDelegate.d.ts +11 -0
  598. package/dist/generated/types/transferDelegate.d.ts.map +1 -0
  599. package/dist/generated/types/transferDelegate.js +15 -0
  600. package/dist/generated/types/transferDelegate.js.map +1 -0
  601. package/dist/generated/types/transferV1Args.d.ts +16 -0
  602. package/dist/generated/types/transferV1Args.d.ts.map +1 -0
  603. package/dist/generated/types/transferV1Args.js +16 -0
  604. package/dist/generated/types/transferV1Args.js.map +1 -0
  605. package/dist/generated/types/updateAuthority.d.ts +25 -0
  606. package/dist/generated/types/updateAuthority.d.ts.map +1 -0
  607. package/dist/generated/types/updateAuthority.js +35 -0
  608. package/dist/generated/types/updateAuthority.js.map +1 -0
  609. package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.d.ts +19 -0
  610. package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.d.ts.map +1 -0
  611. package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.js +17 -0
  612. package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.js.map +1 -0
  613. package/dist/generated/types/updateCollectionInfoV1Args.d.ts +18 -0
  614. package/dist/generated/types/updateCollectionInfoV1Args.d.ts.map +1 -0
  615. package/dist/generated/types/updateCollectionInfoV1Args.js +16 -0
  616. package/dist/generated/types/updateCollectionInfoV1Args.js.map +1 -0
  617. package/dist/generated/types/updateCollectionPluginV1Args.d.ts +16 -0
  618. package/dist/generated/types/updateCollectionPluginV1Args.d.ts.map +1 -0
  619. package/dist/generated/types/updateCollectionPluginV1Args.js +16 -0
  620. package/dist/generated/types/updateCollectionPluginV1Args.js.map +1 -0
  621. package/dist/generated/types/updateCollectionV1Args.d.ts +17 -0
  622. package/dist/generated/types/updateCollectionV1Args.d.ts.map +1 -0
  623. package/dist/generated/types/updateCollectionV1Args.js +15 -0
  624. package/dist/generated/types/updateCollectionV1Args.js.map +1 -0
  625. package/dist/generated/types/updateDelegate.d.ts +13 -0
  626. package/dist/generated/types/updateDelegate.d.ts.map +1 -0
  627. package/dist/generated/types/updateDelegate.js +15 -0
  628. package/dist/generated/types/updateDelegate.js.map +1 -0
  629. package/dist/generated/types/updateExternalPluginAdapterV1Args.d.ts +19 -0
  630. package/dist/generated/types/updateExternalPluginAdapterV1Args.d.ts.map +1 -0
  631. package/dist/generated/types/updateExternalPluginAdapterV1Args.js +17 -0
  632. package/dist/generated/types/updateExternalPluginAdapterV1Args.js.map +1 -0
  633. package/dist/generated/types/updateGroupV1Args.d.ts +17 -0
  634. package/dist/generated/types/updateGroupV1Args.d.ts.map +1 -0
  635. package/dist/generated/types/updateGroupV1Args.js +15 -0
  636. package/dist/generated/types/updateGroupV1Args.js.map +1 -0
  637. package/dist/generated/types/updatePluginV1Args.d.ts +16 -0
  638. package/dist/generated/types/updatePluginV1Args.d.ts.map +1 -0
  639. package/dist/generated/types/updatePluginV1Args.js +16 -0
  640. package/dist/generated/types/updatePluginV1Args.js.map +1 -0
  641. package/dist/generated/types/updateType.d.ts +15 -0
  642. package/dist/generated/types/updateType.d.ts.map +1 -0
  643. package/dist/generated/types/updateType.js +21 -0
  644. package/dist/generated/types/updateType.js.map +1 -0
  645. package/dist/generated/types/updateV1Args.d.ts +20 -0
  646. package/dist/generated/types/updateV1Args.d.ts.map +1 -0
  647. package/dist/generated/types/updateV1Args.js +24 -0
  648. package/dist/generated/types/updateV1Args.js.map +1 -0
  649. package/dist/generated/types/updateV2Args.d.ts +20 -0
  650. package/dist/generated/types/updateV2Args.d.ts.map +1 -0
  651. package/dist/generated/types/updateV2Args.js +24 -0
  652. package/dist/generated/types/updateV2Args.js.map +1 -0
  653. package/dist/generated/types/validationResult.d.ts +16 -0
  654. package/dist/generated/types/validationResult.d.ts.map +1 -0
  655. package/dist/generated/types/validationResult.js +22 -0
  656. package/dist/generated/types/validationResult.js.map +1 -0
  657. package/dist/generated/types/validationResultsOffset.d.ts +31 -0
  658. package/dist/generated/types/validationResultsOffset.d.ts.map +1 -0
  659. package/dist/generated/types/validationResultsOffset.js +35 -0
  660. package/dist/generated/types/validationResultsOffset.js.map +1 -0
  661. package/dist/generated/types/verifiedCreators.d.ts +16 -0
  662. package/dist/generated/types/verifiedCreators.d.ts.map +1 -0
  663. package/dist/generated/types/verifiedCreators.js +16 -0
  664. package/dist/generated/types/verifiedCreators.js.map +1 -0
  665. package/dist/generated/types/verifiedCreatorsSignature.d.ts +14 -0
  666. package/dist/generated/types/verifiedCreatorsSignature.d.ts.map +1 -0
  667. package/dist/generated/types/verifiedCreatorsSignature.js +15 -0
  668. package/dist/generated/types/verifiedCreatorsSignature.js.map +1 -0
  669. package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.d.ts +18 -0
  670. package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.d.ts.map +1 -0
  671. package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.js +16 -0
  672. package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.js.map +1 -0
  673. package/dist/generated/types/writeExternalPluginAdapterDataV1Args.d.ts +18 -0
  674. package/dist/generated/types/writeExternalPluginAdapterDataV1Args.d.ts.map +1 -0
  675. package/dist/generated/types/writeExternalPluginAdapterDataV1Args.js +16 -0
  676. package/dist/generated/types/writeExternalPluginAdapterDataV1Args.js.map +1 -0
  677. package/dist/index.d.ts +168 -0
  678. package/dist/index.js +168 -0
  679. package/package.json +52 -5
  680. package/src/generated/accounts/assetV1.ts +156 -0
  681. package/src/generated/accounts/collectionV1.ts +140 -0
  682. package/src/generated/accounts/groupV1.ts +150 -0
  683. package/src/generated/accounts/hashedAssetV1.ts +127 -0
  684. package/src/generated/accounts/index.ts +14 -0
  685. package/src/generated/accounts/pluginHeaderV1.ts +129 -0
  686. package/src/generated/accounts/pluginRegistryV1.ts +152 -0
  687. package/src/generated/errors/index.ts +9 -0
  688. package/src/generated/errors/mplCoreProgram.ts +324 -0
  689. package/src/generated/index.ts +14 -0
  690. package/src/generated/instructions/addAssetsToGroupV1.ts +267 -0
  691. package/src/generated/instructions/addCollectionExternalPluginAdapterV1.ts +294 -0
  692. package/src/generated/instructions/addCollectionPluginV1.ts +283 -0
  693. package/src/generated/instructions/addCollectionsToGroupV1.ts +267 -0
  694. package/src/generated/instructions/addExternalPluginAdapterV1.ts +305 -0
  695. package/src/generated/instructions/addGroupsToGroupV1.ts +267 -0
  696. package/src/generated/instructions/addPluginV1.ts +291 -0
  697. package/src/generated/instructions/approveCollectionPluginAuthorityV1.ts +294 -0
  698. package/src/generated/instructions/approvePluginAuthorityV1.ts +302 -0
  699. package/src/generated/instructions/burnCollectionV1.ts +253 -0
  700. package/src/generated/instructions/burnV1.ts +280 -0
  701. package/src/generated/instructions/closeGroupV1.ts +230 -0
  702. package/src/generated/instructions/collect.ts +176 -0
  703. package/src/generated/instructions/compressV1.ts +291 -0
  704. package/src/generated/instructions/createCollectionV1.ts +268 -0
  705. package/src/generated/instructions/createCollectionV2.ts +268 -0
  706. package/src/generated/instructions/createGroupV1.ts +265 -0
  707. package/src/generated/instructions/createV1.ts +327 -0
  708. package/src/generated/instructions/createV2.ts +327 -0
  709. package/src/generated/instructions/decompressV1.ts +291 -0
  710. package/src/generated/instructions/executeV1.ts +449 -0
  711. package/src/generated/instructions/index.ts +50 -0
  712. package/src/generated/instructions/removeAssetsFromGroupV1.ts +267 -0
  713. package/src/generated/instructions/removeCollectionExternalPluginAdapterV1.ts +294 -0
  714. package/src/generated/instructions/removeCollectionPluginV1.ts +286 -0
  715. package/src/generated/instructions/removeCollectionsFromGroupV1.ts +273 -0
  716. package/src/generated/instructions/removeExternalPluginAdapterV1.ts +305 -0
  717. package/src/generated/instructions/removeGroupsFromGroupV1.ts +267 -0
  718. package/src/generated/instructions/removePluginV1.ts +294 -0
  719. package/src/generated/instructions/revokeCollectionPluginAuthorityV1.ts +291 -0
  720. package/src/generated/instructions/revokePluginAuthorityV1.ts +299 -0
  721. package/src/generated/instructions/transferV1.ts +299 -0
  722. package/src/generated/instructions/updateCollectionExternalPluginAdapterV1.ts +294 -0
  723. package/src/generated/instructions/updateCollectionInfoV1.ts +221 -0
  724. package/src/generated/instructions/updateCollectionPluginV1.ts +286 -0
  725. package/src/generated/instructions/updateCollectionV1.ts +302 -0
  726. package/src/generated/instructions/updateExternalPluginAdapterV1.ts +305 -0
  727. package/src/generated/instructions/updateGroupV1.ts +281 -0
  728. package/src/generated/instructions/updatePluginV1.ts +294 -0
  729. package/src/generated/instructions/updateV1.ts +291 -0
  730. package/src/generated/instructions/updateV2.ts +307 -0
  731. package/src/generated/instructions/writeCollectionExternalPluginAdapterDataV1.ts +311 -0
  732. package/src/generated/instructions/writeExternalPluginAdapterDataV1.ts +323 -0
  733. package/src/generated/pdas/assetSigner.ts +36 -0
  734. package/src/generated/pdas/index.ts +9 -0
  735. package/src/generated/programs/index.ts +9 -0
  736. package/src/generated/programs/mplCoreProgram.ts +1434 -0
  737. package/src/generated/types/addAssetsToGroupV1Args.ts +36 -0
  738. package/src/generated/types/addBlocker.ts +33 -0
  739. package/src/generated/types/addCollectionExternalPluginAdapterV1Args.ts +48 -0
  740. package/src/generated/types/addCollectionPluginV1Args.ts +63 -0
  741. package/src/generated/types/addCollectionsToGroupV1Args.ts +36 -0
  742. package/src/generated/types/addExternalPluginAdapterV1Args.ts +48 -0
  743. package/src/generated/types/addGroupsToGroupV1Args.ts +42 -0
  744. package/src/generated/types/addPluginV1Args.ts +60 -0
  745. package/src/generated/types/agentIdentity.ts +45 -0
  746. package/src/generated/types/agentIdentityInitInfo.ts +106 -0
  747. package/src/generated/types/agentIdentityUpdateInfo.ts +108 -0
  748. package/src/generated/types/appData.ts +50 -0
  749. package/src/generated/types/appDataInitInfo.ts +69 -0
  750. package/src/generated/types/appDataUpdateInfo.ts +60 -0
  751. package/src/generated/types/approveCollectionPluginAuthorityV1Args.ts +56 -0
  752. package/src/generated/types/approvePluginAuthorityV1Args.ts +56 -0
  753. package/src/generated/types/attribute.ts +45 -0
  754. package/src/generated/types/attributes.ts +42 -0
  755. package/src/generated/types/authority.ts +87 -0
  756. package/src/generated/types/autograph.ts +45 -0
  757. package/src/generated/types/autographSignature.ts +53 -0
  758. package/src/generated/types/bubblegumV2.ts +33 -0
  759. package/src/generated/types/burnCollectionV1Args.ts +57 -0
  760. package/src/generated/types/burnDelegate.ts +33 -0
  761. package/src/generated/types/burnV1Args.ts +51 -0
  762. package/src/generated/types/closeGroupV1Args.ts +36 -0
  763. package/src/generated/types/compressV1Args.ts +33 -0
  764. package/src/generated/types/compressionProof.ts +88 -0
  765. package/src/generated/types/createCollectionV1Args.ts +79 -0
  766. package/src/generated/types/createCollectionV2Args.ts +100 -0
  767. package/src/generated/types/createGroupV1Args.ts +65 -0
  768. package/src/generated/types/createV1Args.ts +84 -0
  769. package/src/generated/types/createV2Args.ts +102 -0
  770. package/src/generated/types/creator.ts +48 -0
  771. package/src/generated/types/dataSection.ts +50 -0
  772. package/src/generated/types/dataSectionInitInfo.ts +56 -0
  773. package/src/generated/types/dataSectionUpdateInfo.ts +36 -0
  774. package/src/generated/types/dataState.ts +33 -0
  775. package/src/generated/types/decompressV1Args.ts +41 -0
  776. package/src/generated/types/edition.ts +38 -0
  777. package/src/generated/types/executeV1Args.ts +51 -0
  778. package/src/generated/types/externalCheckResult.ts +44 -0
  779. package/src/generated/types/externalPluginAdapter.ts +268 -0
  780. package/src/generated/types/externalPluginAdapterInitInfo.ts +287 -0
  781. package/src/generated/types/externalPluginAdapterKey.ts +231 -0
  782. package/src/generated/types/externalPluginAdapterSchema.ts +40 -0
  783. package/src/generated/types/externalPluginAdapterType.ts +44 -0
  784. package/src/generated/types/externalPluginAdapterUpdateInfo.ts +263 -0
  785. package/src/generated/types/externalRegistryRecord.ts +122 -0
  786. package/src/generated/types/externalValidationResult.ts +40 -0
  787. package/src/generated/types/extraAccount.ts +294 -0
  788. package/src/generated/types/freezeDelegate.ts +41 -0
  789. package/src/generated/types/freezeExecute.ts +41 -0
  790. package/src/generated/types/groups.ts +36 -0
  791. package/src/generated/types/hashablePluginSchema.ts +61 -0
  792. package/src/generated/types/hashedAssetSchema.ts +55 -0
  793. package/src/generated/types/hookableLifecycleEvent.ts +42 -0
  794. package/src/generated/types/immutableMetadata.ts +36 -0
  795. package/src/generated/types/index.ts +125 -0
  796. package/src/generated/types/key.ts +38 -0
  797. package/src/generated/types/lifecycleHook.ts +88 -0
  798. package/src/generated/types/lifecycleHookInitInfo.ts +129 -0
  799. package/src/generated/types/lifecycleHookUpdateInfo.ts +114 -0
  800. package/src/generated/types/linkedAppData.ts +53 -0
  801. package/src/generated/types/linkedAppDataInitInfo.ts +72 -0
  802. package/src/generated/types/linkedAppDataUpdateInfo.ts +60 -0
  803. package/src/generated/types/linkedDataKey.ts +107 -0
  804. package/src/generated/types/linkedLifecycleHook.ts +91 -0
  805. package/src/generated/types/linkedLifecycleHookInitInfo.ts +129 -0
  806. package/src/generated/types/linkedLifecycleHookUpdateInfo.ts +114 -0
  807. package/src/generated/types/masterEdition.ts +75 -0
  808. package/src/generated/types/oracle.ts +69 -0
  809. package/src/generated/types/oracleInitInfo.ts +116 -0
  810. package/src/generated/types/oracleUpdateInfo.ts +108 -0
  811. package/src/generated/types/oracleValidation.ts +124 -0
  812. package/src/generated/types/permanentBurnDelegate.ts +36 -0
  813. package/src/generated/types/permanentFreezeDelegate.ts +44 -0
  814. package/src/generated/types/permanentFreezeExecute.ts +44 -0
  815. package/src/generated/types/permanentTransferDelegate.ts +36 -0
  816. package/src/generated/types/plugin.ts +565 -0
  817. package/src/generated/types/pluginAuthorityPair.ts +63 -0
  818. package/src/generated/types/pluginType.ts +53 -0
  819. package/src/generated/types/registryRecord.ts +63 -0
  820. package/src/generated/types/relationshipEntry.ts +60 -0
  821. package/src/generated/types/relationshipKind.ts +41 -0
  822. package/src/generated/types/removeAssetsFromGroupV1Args.ts +42 -0
  823. package/src/generated/types/removeCollectionExternalPluginAdapterV1Args.ts +44 -0
  824. package/src/generated/types/removeCollectionPluginV1Args.ts +42 -0
  825. package/src/generated/types/removeCollectionsFromGroupV1Args.ts +47 -0
  826. package/src/generated/types/removeExternalPluginAdapterV1Args.ts +44 -0
  827. package/src/generated/types/removeGroupsFromGroupV1Args.ts +42 -0
  828. package/src/generated/types/removePluginV1Args.ts +42 -0
  829. package/src/generated/types/revokeCollectionPluginAuthorityV1Args.ts +42 -0
  830. package/src/generated/types/revokePluginAuthorityV1Args.ts +42 -0
  831. package/src/generated/types/royalties.ts +57 -0
  832. package/src/generated/types/ruleSet.ts +114 -0
  833. package/src/generated/types/seed.ts +140 -0
  834. package/src/generated/types/transferDelegate.ts +36 -0
  835. package/src/generated/types/transferV1Args.ts +54 -0
  836. package/src/generated/types/updateAuthority.ts +107 -0
  837. package/src/generated/types/updateCollectionExternalPluginAdapterV1Args.ts +56 -0
  838. package/src/generated/types/updateCollectionInfoV1Args.ts +56 -0
  839. package/src/generated/types/updateCollectionPluginV1Args.ts +38 -0
  840. package/src/generated/types/updateCollectionV1Args.ts +74 -0
  841. package/src/generated/types/updateDelegate.ts +43 -0
  842. package/src/generated/types/updateExternalPluginAdapterV1Args.ts +56 -0
  843. package/src/generated/types/updateGroupV1Args.ts +74 -0
  844. package/src/generated/types/updatePluginV1Args.ts +38 -0
  845. package/src/generated/types/updateType.ts +37 -0
  846. package/src/generated/types/updateV1Args.ts +77 -0
  847. package/src/generated/types/updateV2Args.ts +77 -0
  848. package/src/generated/types/validationResult.ts +41 -0
  849. package/src/generated/types/validationResultsOffset.ts +115 -0
  850. package/src/generated/types/verifiedCreators.ts +54 -0
  851. package/src/generated/types/verifiedCreatorsSignature.ts +54 -0
  852. package/src/generated/types/writeCollectionExternalPluginAdapterDataV1Args.ts +81 -0
  853. package/src/generated/types/writeExternalPluginAdapterDataV1Args.ts +81 -0
  854. package/src/index.ts +8 -0
@@ -0,0 +1,48 @@
1
+ import { getExternalRegistryRecordDecoder, getExternalRegistryRecordEncoder } from "../types/externalRegistryRecord.js";
2
+ import { getKeyDecoder, getKeyEncoder } from "../types/key.js";
3
+ import { getRegistryRecordDecoder, getRegistryRecordEncoder } from "../types/registryRecord.js";
4
+ import { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, getArrayDecoder, getArrayEncoder, getStructDecoder, getStructEncoder } from "@solana/kit";
5
+ //#region src/generated/accounts/pluginRegistryV1.ts
6
+ /** Gets the encoder for {@link PluginRegistryV1Args} account data. */
7
+ function getPluginRegistryV1Encoder() {
8
+ return getStructEncoder([
9
+ ["key", getKeyEncoder()],
10
+ ["registry", getArrayEncoder(getRegistryRecordEncoder())],
11
+ ["externalRegistry", getArrayEncoder(getExternalRegistryRecordEncoder())]
12
+ ]);
13
+ }
14
+ /** Gets the decoder for {@link PluginRegistryV1} account data. */
15
+ function getPluginRegistryV1Decoder() {
16
+ return getStructDecoder([
17
+ ["key", getKeyDecoder()],
18
+ ["registry", getArrayDecoder(getRegistryRecordDecoder())],
19
+ ["externalRegistry", getArrayDecoder(getExternalRegistryRecordDecoder())]
20
+ ]);
21
+ }
22
+ /** Gets the codec for {@link PluginRegistryV1} account data. */
23
+ function getPluginRegistryV1Codec() {
24
+ return combineCodec(getPluginRegistryV1Encoder(), getPluginRegistryV1Decoder());
25
+ }
26
+ function decodePluginRegistryV1(encodedAccount) {
27
+ return decodeAccount(encodedAccount, getPluginRegistryV1Decoder());
28
+ }
29
+ async function fetchPluginRegistryV1(rpc, address, config) {
30
+ const maybeAccount = await fetchMaybePluginRegistryV1(rpc, address, config);
31
+ assertAccountExists(maybeAccount);
32
+ return maybeAccount;
33
+ }
34
+ async function fetchMaybePluginRegistryV1(rpc, address, config) {
35
+ return decodePluginRegistryV1(await fetchEncodedAccount(rpc, address, config));
36
+ }
37
+ async function fetchAllPluginRegistryV1(rpc, addresses, config) {
38
+ const maybeAccounts = await fetchAllMaybePluginRegistryV1(rpc, addresses, config);
39
+ assertAccountsExist(maybeAccounts);
40
+ return maybeAccounts;
41
+ }
42
+ async function fetchAllMaybePluginRegistryV1(rpc, addresses, config) {
43
+ return (await fetchEncodedAccounts(rpc, addresses, config)).map((maybeAccount) => decodePluginRegistryV1(maybeAccount));
44
+ }
45
+ //#endregion
46
+ export { decodePluginRegistryV1, fetchAllMaybePluginRegistryV1, fetchAllPluginRegistryV1, fetchMaybePluginRegistryV1, fetchPluginRegistryV1, getPluginRegistryV1Codec, getPluginRegistryV1Decoder, getPluginRegistryV1Encoder };
47
+
48
+ //# sourceMappingURL=pluginRegistryV1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pluginRegistryV1.js","names":[],"sources":["../../../src/generated/accounts/pluginRegistryV1.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n Account,\n Address,\n Codec,\n Decoder,\n EncodedAccount,\n Encoder,\n FetchAccountConfig,\n FetchAccountsConfig,\n MaybeAccount,\n MaybeEncodedAccount,\n} from \"@solana/kit\";\nimport type {\n ExternalRegistryRecord,\n ExternalRegistryRecordArgs,\n Key,\n KeyArgs,\n RegistryRecord,\n RegistryRecordArgs,\n} from \"../types/index.js\";\nimport {\n assertAccountExists,\n assertAccountsExist,\n combineCodec,\n decodeAccount,\n fetchEncodedAccount,\n fetchEncodedAccounts,\n getArrayDecoder,\n getArrayEncoder,\n getStructDecoder,\n getStructEncoder,\n} from \"@solana/kit\";\nimport {\n getExternalRegistryRecordDecoder,\n getExternalRegistryRecordEncoder,\n getKeyDecoder,\n getKeyEncoder,\n getRegistryRecordDecoder,\n getRegistryRecordEncoder,\n} from \"../types/index.js\";\n\nexport interface PluginRegistryV1 {\n key: Key;\n registry: RegistryRecord[];\n externalRegistry: ExternalRegistryRecord[];\n}\n\nexport interface PluginRegistryV1Args {\n key: KeyArgs;\n registry: RegistryRecordArgs[];\n externalRegistry: ExternalRegistryRecordArgs[];\n}\n\n/** Gets the encoder for {@link PluginRegistryV1Args} account data. */\nexport function getPluginRegistryV1Encoder(): Encoder<PluginRegistryV1Args> {\n return getStructEncoder([\n [\"key\", getKeyEncoder()],\n [\"registry\", getArrayEncoder(getRegistryRecordEncoder())],\n [\"externalRegistry\", getArrayEncoder(getExternalRegistryRecordEncoder())],\n ]);\n}\n\n/** Gets the decoder for {@link PluginRegistryV1} account data. */\nexport function getPluginRegistryV1Decoder(): Decoder<PluginRegistryV1> {\n return getStructDecoder([\n [\"key\", getKeyDecoder()],\n [\"registry\", getArrayDecoder(getRegistryRecordDecoder())],\n [\"externalRegistry\", getArrayDecoder(getExternalRegistryRecordDecoder())],\n ]);\n}\n\n/** Gets the codec for {@link PluginRegistryV1} account data. */\nexport function getPluginRegistryV1Codec(): Codec<\n PluginRegistryV1Args,\n PluginRegistryV1\n> {\n return combineCodec(\n getPluginRegistryV1Encoder(),\n getPluginRegistryV1Decoder(),\n );\n}\n\nexport function decodePluginRegistryV1<TAddress extends string = string>(\n encodedAccount: EncodedAccount<TAddress>,\n): Account<PluginRegistryV1, TAddress>;\nexport function decodePluginRegistryV1<TAddress extends string = string>(\n encodedAccount: MaybeEncodedAccount<TAddress>,\n): MaybeAccount<PluginRegistryV1, TAddress>;\nexport function decodePluginRegistryV1<TAddress extends string = string>(\n encodedAccount: EncodedAccount<TAddress> | MaybeEncodedAccount<TAddress>,\n):\n | Account<PluginRegistryV1, TAddress>\n | MaybeAccount<PluginRegistryV1, TAddress> {\n return decodeAccount(\n encodedAccount as MaybeEncodedAccount<TAddress>,\n getPluginRegistryV1Decoder(),\n );\n}\n\nexport async function fetchPluginRegistryV1<TAddress extends string = string>(\n rpc: Parameters<typeof fetchEncodedAccount>[0],\n address: Address<TAddress>,\n config?: FetchAccountConfig,\n): Promise<Account<PluginRegistryV1, TAddress>> {\n const maybeAccount = await fetchMaybePluginRegistryV1(rpc, address, config);\n assertAccountExists(maybeAccount);\n return maybeAccount;\n}\n\nexport async function fetchMaybePluginRegistryV1<\n TAddress extends string = string,\n>(\n rpc: Parameters<typeof fetchEncodedAccount>[0],\n address: Address<TAddress>,\n config?: FetchAccountConfig,\n): Promise<MaybeAccount<PluginRegistryV1, TAddress>> {\n const maybeAccount = await fetchEncodedAccount(rpc, address, config);\n return decodePluginRegistryV1(maybeAccount);\n}\n\nexport async function fetchAllPluginRegistryV1(\n rpc: Parameters<typeof fetchEncodedAccounts>[0],\n addresses: Address[],\n config?: FetchAccountsConfig,\n): Promise<Account<PluginRegistryV1>[]> {\n const maybeAccounts = await fetchAllMaybePluginRegistryV1(\n rpc,\n addresses,\n config,\n );\n assertAccountsExist(maybeAccounts);\n return maybeAccounts;\n}\n\nexport async function fetchAllMaybePluginRegistryV1(\n rpc: Parameters<typeof fetchEncodedAccounts>[0],\n addresses: Address[],\n config?: FetchAccountsConfig,\n): Promise<MaybeAccount<PluginRegistryV1>[]> {\n const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);\n return maybeAccounts.map((maybeAccount) =>\n decodePluginRegistryV1(maybeAccount),\n );\n}\n"],"mappings":";;;;;;AA8DA,SAAgB,6BAA4D;CAC1E,OAAO,iBAAiB;EACtB,CAAC,OAAO,cAAc,CAAC;EACvB,CAAC,YAAY,gBAAgB,yBAAyB,CAAC,CAAC;EACxD,CAAC,oBAAoB,gBAAgB,iCAAiC,CAAC,CAAC;CAC1E,CAAC;AACH;;AAGA,SAAgB,6BAAwD;CACtE,OAAO,iBAAiB;EACtB,CAAC,OAAO,cAAc,CAAC;EACvB,CAAC,YAAY,gBAAgB,yBAAyB,CAAC,CAAC;EACxD,CAAC,oBAAoB,gBAAgB,iCAAiC,CAAC,CAAC;CAC1E,CAAC;AACH;;AAGA,SAAgB,2BAGd;CACA,OAAO,aACL,2BAA2B,GAC3B,2BAA2B,CAC7B;AACF;AAQA,SAAgB,uBACd,gBAG2C;CAC3C,OAAO,cACL,gBACA,2BAA2B,CAC7B;AACF;AAEA,eAAsB,sBACpB,KACA,SACA,QAC8C;CAC9C,MAAM,eAAe,MAAM,2BAA2B,KAAK,SAAS,MAAM;CAC1E,oBAAoB,YAAY;CAChC,OAAO;AACT;AAEA,eAAsB,2BAGpB,KACA,SACA,QACmD;CAEnD,OAAO,uBAAuB,MADH,oBAAoB,KAAK,SAAS,MAAM,CACzB;AAC5C;AAEA,eAAsB,yBACpB,KACA,WACA,QACsC;CACtC,MAAM,gBAAgB,MAAM,8BAC1B,KACA,WACA,MACF;CACA,oBAAoB,aAAa;CACjC,OAAO;AACT;AAEA,eAAsB,8BACpB,KACA,WACA,QAC2C;CAE3C,QAAO,MADqB,qBAAqB,KAAK,WAAW,MAAM,EAAA,CAClD,KAAK,iBACxB,uBAAuB,YAAY,CACrC;AACF"}
@@ -0,0 +1 @@
1
+ import { MPL_CORE_PROGRAM_ERROR__AGENT_IDENTITY_MUST_SIGN, MPL_CORE_PROGRAM_ERROR__ALREADY_COMPRESSED, MPL_CORE_PROGRAM_ERROR__ALREADY_DECOMPRESSED, MPL_CORE_PROGRAM_ERROR__ASSET_IS_FROZEN, MPL_CORE_PROGRAM_ERROR__BLOCKED_BY_BUBBLEGUM_V2, MPL_CORE_PROGRAM_ERROR__CANNOT_ADD_DATA_SECTION, MPL_CORE_PROGRAM_ERROR__CANNOT_BURN_COLLECTION, MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_MASTER_WITH_SUPPLY, MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_PRINTS, MPL_CORE_PROGRAM_ERROR__CANNOT_REDELEGATE, MPL_CORE_PROGRAM_ERROR__COLLECTION_MUST_BE_EMPTY, MPL_CORE_PROGRAM_ERROR__CONFLICTING_AUTHORITY, MPL_CORE_PROGRAM_ERROR__DESERIALIZATION_ERROR, MPL_CORE_PROGRAM_ERROR__DUPLICATE_ENTRY, MPL_CORE_PROGRAM_ERROR__DUPLICATE_LIFECYCLE_CHECKS, MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_ALREADY_EXISTS, MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_NOT_FOUND, MPL_CORE_PROGRAM_ERROR__GROUP_MUST_BE_EMPTY, MPL_CORE_PROGRAM_ERROR__GROUP_NESTING_DEPTH_EXCEEDED, MPL_CORE_PROGRAM_ERROR__GROUP_VECTOR_FULL, MPL_CORE_PROGRAM_ERROR__INCONSISTENT_GROUP_RELATIONSHIP, MPL_CORE_PROGRAM_ERROR__INCORRECT_ACCOUNT, MPL_CORE_PROGRAM_ERROR__INCORRECT_ASSET_HASH, MPL_CORE_PROGRAM_ERROR__INVALID_ASSET, MPL_CORE_PROGRAM_ERROR__INVALID_AUTHORITY, MPL_CORE_PROGRAM_ERROR__INVALID_COLLECTION, MPL_CORE_PROGRAM_ERROR__INVALID_EXECUTE_PDA, MPL_CORE_PROGRAM_ERROR__INVALID_LOG_WRAPPER_PROGRAM, MPL_CORE_PROGRAM_ERROR__INVALID_ORACLE_ACCOUNT_DATA, MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN, MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_ADAPTER_TARGET, MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_OPERATION, MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_SETTING, MPL_CORE_PROGRAM_ERROR__INVALID_SYSTEM_PROGRAM, MPL_CORE_PROGRAM_ERROR__MISSING_ASSET, MPL_CORE_PROGRAM_ERROR__MISSING_COLLECTION, MPL_CORE_PROGRAM_ERROR__MISSING_COMPRESSION_PROOF, MPL_CORE_PROGRAM_ERROR__MISSING_EXTERNAL_PLUGIN_ADAPTER_ACCOUNT, MPL_CORE_PROGRAM_ERROR__MISSING_NEW_OWNER, MPL_CORE_PROGRAM_ERROR__MISSING_SIGNER, MPL_CORE_PROGRAM_ERROR__MISSING_SYSTEM_PROGRAM, MPL_CORE_PROGRAM_ERROR__MISSING_UPDATE_AUTHORITY, MPL_CORE_PROGRAM_ERROR__NOT_AVAILABLE, MPL_CORE_PROGRAM_ERROR__NO_APPROVALS, MPL_CORE_PROGRAM_ERROR__NO_DATA_SOURCES, MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW, MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW_ERROR, MPL_CORE_PROGRAM_ERROR__ORACLE_CAN_REJECT_ONLY, MPL_CORE_PROGRAM_ERROR__PERMANENT_DELEGATES_PREVENT_MOVE, MPL_CORE_PROGRAM_ERROR__PLUGINS_NOT_INITIALIZED, MPL_CORE_PROGRAM_ERROR__PLUGIN_ALREADY_EXISTS, MPL_CORE_PROGRAM_ERROR__PLUGIN_NOT_FOUND, MPL_CORE_PROGRAM_ERROR__REQUIRES_LIFECYCLE_CHECK, MPL_CORE_PROGRAM_ERROR__SERIALIZATION_ERROR, MPL_CORE_PROGRAM_ERROR__TWO_DATA_SOURCES, MPL_CORE_PROGRAM_ERROR__UNINITIALIZED_ORACLE_ACCOUNT, MPL_CORE_PROGRAM_ERROR__UNSUPPORTED_OPERATION, MplCoreProgramError, getMplCoreProgramErrorMessage, isMplCoreProgramError } from "./mplCoreProgram.js";
@@ -0,0 +1,131 @@
1
+ import { Address, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, SolanaError } from "@solana/kit";
2
+
3
+ //#region src/generated/errors/mplCoreProgram.d.ts
4
+ /** InvalidSystemProgram: Invalid System Program */
5
+ declare const MPL_CORE_PROGRAM_ERROR__INVALID_SYSTEM_PROGRAM = 0;
6
+ /** DeserializationError: Error deserializing account */
7
+ declare const MPL_CORE_PROGRAM_ERROR__DESERIALIZATION_ERROR = 1;
8
+ /** SerializationError: Error serializing account */
9
+ declare const MPL_CORE_PROGRAM_ERROR__SERIALIZATION_ERROR = 2;
10
+ /** PluginsNotInitialized: Plugins not initialized */
11
+ declare const MPL_CORE_PROGRAM_ERROR__PLUGINS_NOT_INITIALIZED = 3;
12
+ /** PluginNotFound: Plugin not found */
13
+ declare const MPL_CORE_PROGRAM_ERROR__PLUGIN_NOT_FOUND = 4;
14
+ /** NumericalOverflow: Numerical Overflow */
15
+ declare const MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW = 5;
16
+ /** IncorrectAccount: Incorrect account */
17
+ declare const MPL_CORE_PROGRAM_ERROR__INCORRECT_ACCOUNT = 6;
18
+ /** IncorrectAssetHash: Incorrect asset hash */
19
+ declare const MPL_CORE_PROGRAM_ERROR__INCORRECT_ASSET_HASH = 7;
20
+ /** InvalidPlugin: Invalid Plugin */
21
+ declare const MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN = 8;
22
+ /** InvalidAuthority: Invalid Authority */
23
+ declare const MPL_CORE_PROGRAM_ERROR__INVALID_AUTHORITY = 9;
24
+ /** AssetIsFrozen: Cannot transfer a frozen asset */
25
+ declare const MPL_CORE_PROGRAM_ERROR__ASSET_IS_FROZEN = 10;
26
+ /** MissingCompressionProof: Missing compression proof */
27
+ declare const MPL_CORE_PROGRAM_ERROR__MISSING_COMPRESSION_PROOF = 11;
28
+ /** CannotMigrateMasterWithSupply: Cannot migrate a master edition used for prints */
29
+ declare const MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_MASTER_WITH_SUPPLY = 12;
30
+ /** CannotMigratePrints: Cannot migrate a print edition */
31
+ declare const MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_PRINTS = 13;
32
+ /** CannotBurnCollection: Cannot burn a collection NFT */
33
+ declare const MPL_CORE_PROGRAM_ERROR__CANNOT_BURN_COLLECTION = 14;
34
+ /** PluginAlreadyExists: Plugin already exists */
35
+ declare const MPL_CORE_PROGRAM_ERROR__PLUGIN_ALREADY_EXISTS = 15;
36
+ /** NumericalOverflowError: Numerical overflow */
37
+ declare const MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW_ERROR = 16;
38
+ /** AlreadyCompressed: Already compressed account */
39
+ declare const MPL_CORE_PROGRAM_ERROR__ALREADY_COMPRESSED = 17;
40
+ /** AlreadyDecompressed: Already decompressed account */
41
+ declare const MPL_CORE_PROGRAM_ERROR__ALREADY_DECOMPRESSED = 18;
42
+ /** InvalidCollection: Invalid Collection passed in */
43
+ declare const MPL_CORE_PROGRAM_ERROR__INVALID_COLLECTION = 19;
44
+ /** MissingUpdateAuthority: Missing update authority */
45
+ declare const MPL_CORE_PROGRAM_ERROR__MISSING_UPDATE_AUTHORITY = 20;
46
+ /** MissingNewOwner: Missing new owner */
47
+ declare const MPL_CORE_PROGRAM_ERROR__MISSING_NEW_OWNER = 21;
48
+ /** MissingSystemProgram: Missing system program */
49
+ declare const MPL_CORE_PROGRAM_ERROR__MISSING_SYSTEM_PROGRAM = 22;
50
+ /** NotAvailable: Feature not available */
51
+ declare const MPL_CORE_PROGRAM_ERROR__NOT_AVAILABLE = 23;
52
+ /** InvalidAsset: Invalid Asset passed in */
53
+ declare const MPL_CORE_PROGRAM_ERROR__INVALID_ASSET = 24;
54
+ /** MissingCollection: Missing collection */
55
+ declare const MPL_CORE_PROGRAM_ERROR__MISSING_COLLECTION = 25;
56
+ /** NoApprovals: Neither the asset or any plugins have approved this operation */
57
+ declare const MPL_CORE_PROGRAM_ERROR__NO_APPROVALS = 26;
58
+ /** CannotRedelegate: Plugin Manager cannot redelegate a delegated plugin without revoking first */
59
+ declare const MPL_CORE_PROGRAM_ERROR__CANNOT_REDELEGATE = 27;
60
+ /** InvalidPluginSetting: Invalid setting for plugin */
61
+ declare const MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_SETTING = 28;
62
+ /** ConflictingAuthority: Cannot specify both an update authority and collection on an asset */
63
+ declare const MPL_CORE_PROGRAM_ERROR__CONFLICTING_AUTHORITY = 29;
64
+ /** InvalidLogWrapperProgram: Invalid Log Wrapper Program */
65
+ declare const MPL_CORE_PROGRAM_ERROR__INVALID_LOG_WRAPPER_PROGRAM = 30;
66
+ /** ExternalPluginAdapterNotFound: External Plugin Adapter not found */
67
+ declare const MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_NOT_FOUND = 31;
68
+ /** ExternalPluginAdapterAlreadyExists: External Plugin Adapter already exists */
69
+ declare const MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_ALREADY_EXISTS = 32;
70
+ /** MissingAsset: Missing asset needed for extra account PDA derivation */
71
+ declare const MPL_CORE_PROGRAM_ERROR__MISSING_ASSET = 33;
72
+ /** MissingExternalPluginAdapterAccount: Missing account needed for external plugin adapter */
73
+ declare const MPL_CORE_PROGRAM_ERROR__MISSING_EXTERNAL_PLUGIN_ADAPTER_ACCOUNT = 34;
74
+ /** OracleCanRejectOnly: Oracle external plugin adapter can only be configured to reject */
75
+ declare const MPL_CORE_PROGRAM_ERROR__ORACLE_CAN_REJECT_ONLY = 35;
76
+ /** RequiresLifecycleCheck: External plugin adapter must have at least one lifecycle check */
77
+ declare const MPL_CORE_PROGRAM_ERROR__REQUIRES_LIFECYCLE_CHECK = 36;
78
+ /** DuplicateLifecycleChecks: Duplicate lifecycle checks were provided for external plugin adapter */
79
+ declare const MPL_CORE_PROGRAM_ERROR__DUPLICATE_LIFECYCLE_CHECKS = 37;
80
+ /** InvalidOracleAccountData: Could not read from oracle account */
81
+ declare const MPL_CORE_PROGRAM_ERROR__INVALID_ORACLE_ACCOUNT_DATA = 38;
82
+ /** UninitializedOracleAccount: Oracle account is uninitialized */
83
+ declare const MPL_CORE_PROGRAM_ERROR__UNINITIALIZED_ORACLE_ACCOUNT = 39;
84
+ /** MissingSigner: Missing required signer for operation */
85
+ declare const MPL_CORE_PROGRAM_ERROR__MISSING_SIGNER = 40;
86
+ /** InvalidPluginOperation: Invalid plugin operation */
87
+ declare const MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_OPERATION = 41;
88
+ /** CollectionMustBeEmpty: Collection must be empty to be burned */
89
+ declare const MPL_CORE_PROGRAM_ERROR__COLLECTION_MUST_BE_EMPTY = 42;
90
+ /** TwoDataSources: Two data sources provided, only one is allowed */
91
+ declare const MPL_CORE_PROGRAM_ERROR__TWO_DATA_SOURCES = 43;
92
+ /** UnsupportedOperation: External Plugin does not support this operation */
93
+ declare const MPL_CORE_PROGRAM_ERROR__UNSUPPORTED_OPERATION = 44;
94
+ /** NoDataSources: No data sources provided, one is required */
95
+ declare const MPL_CORE_PROGRAM_ERROR__NO_DATA_SOURCES = 45;
96
+ /** InvalidPluginAdapterTarget: This plugin adapter cannot be added to an Asset */
97
+ declare const MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_ADAPTER_TARGET = 46;
98
+ /** CannotAddDataSection: Cannot add a Data Section without a linked external plugin */
99
+ declare const MPL_CORE_PROGRAM_ERROR__CANNOT_ADD_DATA_SECTION = 47;
100
+ /** PermanentDelegatesPreventMove: Cannot move asset to collection with permanent delegates */
101
+ declare const MPL_CORE_PROGRAM_ERROR__PERMANENT_DELEGATES_PREVENT_MOVE = 48;
102
+ /** InvalidExecutePda: Invalid Signing PDA for Asset or Collection Execute */
103
+ declare const MPL_CORE_PROGRAM_ERROR__INVALID_EXECUTE_PDA = 49;
104
+ /** BlockedByBubblegumV2: Bubblegum V2 Plugin limits other plugins */
105
+ declare const MPL_CORE_PROGRAM_ERROR__BLOCKED_BY_BUBBLEGUM_V2 = 50;
106
+ /** AgentIdentityMustSign: Agent Identity Program must sign */
107
+ declare const MPL_CORE_PROGRAM_ERROR__AGENT_IDENTITY_MUST_SIGN = 51;
108
+ /** GroupMustBeEmpty: Group must be empty to be closed */
109
+ declare const MPL_CORE_PROGRAM_ERROR__GROUP_MUST_BE_EMPTY = 52;
110
+ /** DuplicateEntry: Duplicate entry provided when adding relationships to a group */
111
+ declare const MPL_CORE_PROGRAM_ERROR__DUPLICATE_ENTRY = 53;
112
+ /** GroupVectorFull: Group vector is at maximum capacity */
113
+ declare const MPL_CORE_PROGRAM_ERROR__GROUP_VECTOR_FULL = 54;
114
+ /** GroupNestingDepthExceeded: Group nesting depth exceeded */
115
+ declare const MPL_CORE_PROGRAM_ERROR__GROUP_NESTING_DEPTH_EXCEEDED = 55;
116
+ /** InconsistentGroupRelationship: Bidirectional group relationship is inconsistent */
117
+ declare const MPL_CORE_PROGRAM_ERROR__INCONSISTENT_GROUP_RELATIONSHIP = 56;
118
+ type MplCoreProgramError = typeof MPL_CORE_PROGRAM_ERROR__AGENT_IDENTITY_MUST_SIGN | typeof MPL_CORE_PROGRAM_ERROR__ALREADY_COMPRESSED | typeof MPL_CORE_PROGRAM_ERROR__ALREADY_DECOMPRESSED | typeof MPL_CORE_PROGRAM_ERROR__ASSET_IS_FROZEN | typeof MPL_CORE_PROGRAM_ERROR__BLOCKED_BY_BUBBLEGUM_V2 | typeof MPL_CORE_PROGRAM_ERROR__CANNOT_ADD_DATA_SECTION | typeof MPL_CORE_PROGRAM_ERROR__CANNOT_BURN_COLLECTION | typeof MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_MASTER_WITH_SUPPLY | typeof MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_PRINTS | typeof MPL_CORE_PROGRAM_ERROR__CANNOT_REDELEGATE | typeof MPL_CORE_PROGRAM_ERROR__COLLECTION_MUST_BE_EMPTY | typeof MPL_CORE_PROGRAM_ERROR__CONFLICTING_AUTHORITY | typeof MPL_CORE_PROGRAM_ERROR__DESERIALIZATION_ERROR | typeof MPL_CORE_PROGRAM_ERROR__DUPLICATE_ENTRY | typeof MPL_CORE_PROGRAM_ERROR__DUPLICATE_LIFECYCLE_CHECKS | typeof MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_ALREADY_EXISTS | typeof MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_NOT_FOUND | typeof MPL_CORE_PROGRAM_ERROR__GROUP_MUST_BE_EMPTY | typeof MPL_CORE_PROGRAM_ERROR__GROUP_NESTING_DEPTH_EXCEEDED | typeof MPL_CORE_PROGRAM_ERROR__GROUP_VECTOR_FULL | typeof MPL_CORE_PROGRAM_ERROR__INCONSISTENT_GROUP_RELATIONSHIP | typeof MPL_CORE_PROGRAM_ERROR__INCORRECT_ACCOUNT | typeof MPL_CORE_PROGRAM_ERROR__INCORRECT_ASSET_HASH | typeof MPL_CORE_PROGRAM_ERROR__INVALID_ASSET | typeof MPL_CORE_PROGRAM_ERROR__INVALID_AUTHORITY | typeof MPL_CORE_PROGRAM_ERROR__INVALID_COLLECTION | typeof MPL_CORE_PROGRAM_ERROR__INVALID_EXECUTE_PDA | typeof MPL_CORE_PROGRAM_ERROR__INVALID_LOG_WRAPPER_PROGRAM | typeof MPL_CORE_PROGRAM_ERROR__INVALID_ORACLE_ACCOUNT_DATA | typeof MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN | typeof MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_ADAPTER_TARGET | typeof MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_OPERATION | typeof MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_SETTING | typeof MPL_CORE_PROGRAM_ERROR__INVALID_SYSTEM_PROGRAM | typeof MPL_CORE_PROGRAM_ERROR__MISSING_ASSET | typeof MPL_CORE_PROGRAM_ERROR__MISSING_COLLECTION | typeof MPL_CORE_PROGRAM_ERROR__MISSING_COMPRESSION_PROOF | typeof MPL_CORE_PROGRAM_ERROR__MISSING_EXTERNAL_PLUGIN_ADAPTER_ACCOUNT | typeof MPL_CORE_PROGRAM_ERROR__MISSING_NEW_OWNER | typeof MPL_CORE_PROGRAM_ERROR__MISSING_SIGNER | typeof MPL_CORE_PROGRAM_ERROR__MISSING_SYSTEM_PROGRAM | typeof MPL_CORE_PROGRAM_ERROR__MISSING_UPDATE_AUTHORITY | typeof MPL_CORE_PROGRAM_ERROR__NO_APPROVALS | typeof MPL_CORE_PROGRAM_ERROR__NO_DATA_SOURCES | typeof MPL_CORE_PROGRAM_ERROR__NOT_AVAILABLE | typeof MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW | typeof MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW_ERROR | typeof MPL_CORE_PROGRAM_ERROR__ORACLE_CAN_REJECT_ONLY | typeof MPL_CORE_PROGRAM_ERROR__PERMANENT_DELEGATES_PREVENT_MOVE | typeof MPL_CORE_PROGRAM_ERROR__PLUGIN_ALREADY_EXISTS | typeof MPL_CORE_PROGRAM_ERROR__PLUGIN_NOT_FOUND | typeof MPL_CORE_PROGRAM_ERROR__PLUGINS_NOT_INITIALIZED | typeof MPL_CORE_PROGRAM_ERROR__REQUIRES_LIFECYCLE_CHECK | typeof MPL_CORE_PROGRAM_ERROR__SERIALIZATION_ERROR | typeof MPL_CORE_PROGRAM_ERROR__TWO_DATA_SOURCES | typeof MPL_CORE_PROGRAM_ERROR__UNINITIALIZED_ORACLE_ACCOUNT | typeof MPL_CORE_PROGRAM_ERROR__UNSUPPORTED_OPERATION;
119
+ declare function getMplCoreProgramErrorMessage(code: MplCoreProgramError): string;
120
+ declare function isMplCoreProgramError<TProgramErrorCode extends MplCoreProgramError>(error: unknown, transactionMessage: {
121
+ instructions: Record<number, {
122
+ programAddress: Address;
123
+ }>;
124
+ }, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
125
+ context: Readonly<{
126
+ code: TProgramErrorCode;
127
+ }>;
128
+ }>;
129
+ //#endregion
130
+ export { MPL_CORE_PROGRAM_ERROR__AGENT_IDENTITY_MUST_SIGN, MPL_CORE_PROGRAM_ERROR__ALREADY_COMPRESSED, MPL_CORE_PROGRAM_ERROR__ALREADY_DECOMPRESSED, MPL_CORE_PROGRAM_ERROR__ASSET_IS_FROZEN, MPL_CORE_PROGRAM_ERROR__BLOCKED_BY_BUBBLEGUM_V2, MPL_CORE_PROGRAM_ERROR__CANNOT_ADD_DATA_SECTION, MPL_CORE_PROGRAM_ERROR__CANNOT_BURN_COLLECTION, MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_MASTER_WITH_SUPPLY, MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_PRINTS, MPL_CORE_PROGRAM_ERROR__CANNOT_REDELEGATE, MPL_CORE_PROGRAM_ERROR__COLLECTION_MUST_BE_EMPTY, MPL_CORE_PROGRAM_ERROR__CONFLICTING_AUTHORITY, MPL_CORE_PROGRAM_ERROR__DESERIALIZATION_ERROR, MPL_CORE_PROGRAM_ERROR__DUPLICATE_ENTRY, MPL_CORE_PROGRAM_ERROR__DUPLICATE_LIFECYCLE_CHECKS, MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_ALREADY_EXISTS, MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_NOT_FOUND, MPL_CORE_PROGRAM_ERROR__GROUP_MUST_BE_EMPTY, MPL_CORE_PROGRAM_ERROR__GROUP_NESTING_DEPTH_EXCEEDED, MPL_CORE_PROGRAM_ERROR__GROUP_VECTOR_FULL, MPL_CORE_PROGRAM_ERROR__INCONSISTENT_GROUP_RELATIONSHIP, MPL_CORE_PROGRAM_ERROR__INCORRECT_ACCOUNT, MPL_CORE_PROGRAM_ERROR__INCORRECT_ASSET_HASH, MPL_CORE_PROGRAM_ERROR__INVALID_ASSET, MPL_CORE_PROGRAM_ERROR__INVALID_AUTHORITY, MPL_CORE_PROGRAM_ERROR__INVALID_COLLECTION, MPL_CORE_PROGRAM_ERROR__INVALID_EXECUTE_PDA, MPL_CORE_PROGRAM_ERROR__INVALID_LOG_WRAPPER_PROGRAM, MPL_CORE_PROGRAM_ERROR__INVALID_ORACLE_ACCOUNT_DATA, MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN, MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_ADAPTER_TARGET, MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_OPERATION, MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_SETTING, MPL_CORE_PROGRAM_ERROR__INVALID_SYSTEM_PROGRAM, MPL_CORE_PROGRAM_ERROR__MISSING_ASSET, MPL_CORE_PROGRAM_ERROR__MISSING_COLLECTION, MPL_CORE_PROGRAM_ERROR__MISSING_COMPRESSION_PROOF, MPL_CORE_PROGRAM_ERROR__MISSING_EXTERNAL_PLUGIN_ADAPTER_ACCOUNT, MPL_CORE_PROGRAM_ERROR__MISSING_NEW_OWNER, MPL_CORE_PROGRAM_ERROR__MISSING_SIGNER, MPL_CORE_PROGRAM_ERROR__MISSING_SYSTEM_PROGRAM, MPL_CORE_PROGRAM_ERROR__MISSING_UPDATE_AUTHORITY, MPL_CORE_PROGRAM_ERROR__NOT_AVAILABLE, MPL_CORE_PROGRAM_ERROR__NO_APPROVALS, MPL_CORE_PROGRAM_ERROR__NO_DATA_SOURCES, MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW, MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW_ERROR, MPL_CORE_PROGRAM_ERROR__ORACLE_CAN_REJECT_ONLY, MPL_CORE_PROGRAM_ERROR__PERMANENT_DELEGATES_PREVENT_MOVE, MPL_CORE_PROGRAM_ERROR__PLUGINS_NOT_INITIALIZED, MPL_CORE_PROGRAM_ERROR__PLUGIN_ALREADY_EXISTS, MPL_CORE_PROGRAM_ERROR__PLUGIN_NOT_FOUND, MPL_CORE_PROGRAM_ERROR__REQUIRES_LIFECYCLE_CHECK, MPL_CORE_PROGRAM_ERROR__SERIALIZATION_ERROR, MPL_CORE_PROGRAM_ERROR__TWO_DATA_SOURCES, MPL_CORE_PROGRAM_ERROR__UNINITIALIZED_ORACLE_ACCOUNT, MPL_CORE_PROGRAM_ERROR__UNSUPPORTED_OPERATION, MplCoreProgramError, getMplCoreProgramErrorMessage, isMplCoreProgramError };
131
+ //# sourceMappingURL=mplCoreProgram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mplCoreProgram.d.ts","names":[],"sources":["../../../src/generated/errors/mplCoreProgram.ts"],"mappings":";;;AAmBA;AAAA,cAFa,8CAAA;;cAEA,6CAAA;AAAA;AAAA,cAEA,2CAAA;;cAEA,+CAAA;;cAEA,wCAAA;AAFb;AAAA,cAIa,0CAAA;;cAEA,yCAAA;AANA;AAAA,cAQA,4CAAA;;cAEA,sCAAA;;cAEA,yCAAA;AARb;AAAA,cAUa,uCAAA;;cAEA,iDAAA;AAZA;AAAA,cAcA,yDAAA;;cAEA,6CAAA;;cAEA,8CAAA;AAdb;AAAA,cAgBa,6CAAA;;cAEA,gDAAA;AAlBA;AAAA,cAoBA,0CAAA;;cAEA,4CAAA;;cAEA,0CAAA;AApBb;AAAA,cAsBa,gDAAA;;cAEA,yCAAA;AAxBA;AAAA,cA0BA,8CAAA;;cAEA,qCAAA;;cAEA,qCAAA;AA1Bb;AAAA,cA4Ba,0CAAA;;cAEA,oCAAA;AA9BA;AAAA,cAgCA,yCAAA;;cAEA,8CAAA;;cAEA,6CAAA;AAhCb;AAAA,cAkCa,mDAAA;;cAEA,yDAAA;AApCA;AAAA,cAsCA,8DAAA;;cAEA,qCAAA;;cAEA,+DAAA;AAtCb;AAAA,cAwCa,8CAAA;;cAEA,gDAAA;AA1CA;AAAA,cA4CA,kDAAA;;cAEA,mDAAA;;cAEA,oDAAA;AA5Cb;AAAA,cA8Ca,sCAAA;;cAEA,gDAAA;AAhDA;AAAA,cAkDA,gDAAA;;cAEA,wCAAA;;cAEA,6CAAA;AAlDb;AAAA,cAoDa,uCAAA;;cAEA,qDAAA;AAtDA;AAAA,cAwDA,+CAAA;;cAEA,wDAAA;;cAEA,2CAAA;AAxDb;AAAA,cA0Da,+CAAA;;cAEA,gDAAA;AA5DA;AAAA,cA8DA,2CAAA;;cAEA,uCAAA;;cAEA,yCAAA;AA9Db;AAAA,cAgEa,oDAAA;;cAEA,uDAAA;AAAA,KAED,mBAAA,UACD,gDAAA,UACA,0CAAA,UACA,4CAAA,UACA,uCAAA,UACA,+CAAA,UACA,+CAAA,UACA,8CAAA,UACA,yDAAA,UACA,6CAAA,UACA,yCAAA,UACA,gDAAA,UACA,6CAAA,UACA,6CAAA,UACA,uCAAA,UACA,kDAAA,UACA,8DAAA,UACA,yDAAA,UACA,2CAAA,UACA,oDAAA,UACA,yCAAA,UACA,uDAAA,UACA,yCAAA,UACA,4CAAA,UACA,qCAAA,UACA,yCAAA,UACA,0CAAA,UACA,2CAAA,UACA,mDAAA,UACA,mDAAA,UACA,sCAAA,UACA,qDAAA,UACA,gDAAA,UACA,8CAAA,UACA,8CAAA,UACA,qCAAA,UACA,0CAAA,UACA,iDAAA,UACA,+DAAA,UACA,yCAAA,UACA,sCAAA,UACA,8CAAA,UACA,gDAAA,UACA,oCAAA,UACA,uCAAA,UACA,qCAAA,UACA,0CAAA,UACA,gDAAA,UACA,8CAAA,UACA,wDAAA,UACA,6CAAA,UACA,wCAAA,UACA,+CAAA,UACA,gDAAA,UACA,2CAAA,UACA,wCAAA,UACA,oDAAA,UACA,6CAAA;AAAA,iBA2GK,6BAAA,CACd,IAAM,EAAA,mBAAA;AAAA,iBAWQ,qBAAA,2BACY,mBAAA,EAE1B,KAAA,WACA,kBAAA;EACE,YAAA,EAAc,MAAA;IAAiB,cAAA,EAAgB,OAAA;EAAA;AAAA,GAEjD,IAAA,GAAO,iBAAA,GACN,KAAA,IAAS,WAAA,QAAmB,uCAAA,IAC7B,QAAA;EAAW,OAAA,EAAS,QAAA;IAAW,IAAA,EAAM,iBAAA;EAAA;AAAA"}
@@ -0,0 +1,188 @@
1
+ import { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from "../programs/mplCoreProgram.js";
2
+ import { isProgramError } from "@solana/kit";
3
+ //#region src/generated/errors/mplCoreProgram.ts
4
+ /** InvalidSystemProgram: Invalid System Program */
5
+ const MPL_CORE_PROGRAM_ERROR__INVALID_SYSTEM_PROGRAM = 0;
6
+ /** DeserializationError: Error deserializing account */
7
+ const MPL_CORE_PROGRAM_ERROR__DESERIALIZATION_ERROR = 1;
8
+ /** SerializationError: Error serializing account */
9
+ const MPL_CORE_PROGRAM_ERROR__SERIALIZATION_ERROR = 2;
10
+ /** PluginsNotInitialized: Plugins not initialized */
11
+ const MPL_CORE_PROGRAM_ERROR__PLUGINS_NOT_INITIALIZED = 3;
12
+ /** PluginNotFound: Plugin not found */
13
+ const MPL_CORE_PROGRAM_ERROR__PLUGIN_NOT_FOUND = 4;
14
+ /** NumericalOverflow: Numerical Overflow */
15
+ const MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW = 5;
16
+ /** IncorrectAccount: Incorrect account */
17
+ const MPL_CORE_PROGRAM_ERROR__INCORRECT_ACCOUNT = 6;
18
+ /** IncorrectAssetHash: Incorrect asset hash */
19
+ const MPL_CORE_PROGRAM_ERROR__INCORRECT_ASSET_HASH = 7;
20
+ /** InvalidPlugin: Invalid Plugin */
21
+ const MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN = 8;
22
+ /** InvalidAuthority: Invalid Authority */
23
+ const MPL_CORE_PROGRAM_ERROR__INVALID_AUTHORITY = 9;
24
+ /** AssetIsFrozen: Cannot transfer a frozen asset */
25
+ const MPL_CORE_PROGRAM_ERROR__ASSET_IS_FROZEN = 10;
26
+ /** MissingCompressionProof: Missing compression proof */
27
+ const MPL_CORE_PROGRAM_ERROR__MISSING_COMPRESSION_PROOF = 11;
28
+ /** CannotMigrateMasterWithSupply: Cannot migrate a master edition used for prints */
29
+ const MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_MASTER_WITH_SUPPLY = 12;
30
+ /** CannotMigratePrints: Cannot migrate a print edition */
31
+ const MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_PRINTS = 13;
32
+ /** CannotBurnCollection: Cannot burn a collection NFT */
33
+ const MPL_CORE_PROGRAM_ERROR__CANNOT_BURN_COLLECTION = 14;
34
+ /** PluginAlreadyExists: Plugin already exists */
35
+ const MPL_CORE_PROGRAM_ERROR__PLUGIN_ALREADY_EXISTS = 15;
36
+ /** NumericalOverflowError: Numerical overflow */
37
+ const MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW_ERROR = 16;
38
+ /** AlreadyCompressed: Already compressed account */
39
+ const MPL_CORE_PROGRAM_ERROR__ALREADY_COMPRESSED = 17;
40
+ /** AlreadyDecompressed: Already decompressed account */
41
+ const MPL_CORE_PROGRAM_ERROR__ALREADY_DECOMPRESSED = 18;
42
+ /** InvalidCollection: Invalid Collection passed in */
43
+ const MPL_CORE_PROGRAM_ERROR__INVALID_COLLECTION = 19;
44
+ /** MissingUpdateAuthority: Missing update authority */
45
+ const MPL_CORE_PROGRAM_ERROR__MISSING_UPDATE_AUTHORITY = 20;
46
+ /** MissingNewOwner: Missing new owner */
47
+ const MPL_CORE_PROGRAM_ERROR__MISSING_NEW_OWNER = 21;
48
+ /** MissingSystemProgram: Missing system program */
49
+ const MPL_CORE_PROGRAM_ERROR__MISSING_SYSTEM_PROGRAM = 22;
50
+ /** NotAvailable: Feature not available */
51
+ const MPL_CORE_PROGRAM_ERROR__NOT_AVAILABLE = 23;
52
+ /** InvalidAsset: Invalid Asset passed in */
53
+ const MPL_CORE_PROGRAM_ERROR__INVALID_ASSET = 24;
54
+ /** MissingCollection: Missing collection */
55
+ const MPL_CORE_PROGRAM_ERROR__MISSING_COLLECTION = 25;
56
+ /** NoApprovals: Neither the asset or any plugins have approved this operation */
57
+ const MPL_CORE_PROGRAM_ERROR__NO_APPROVALS = 26;
58
+ /** CannotRedelegate: Plugin Manager cannot redelegate a delegated plugin without revoking first */
59
+ const MPL_CORE_PROGRAM_ERROR__CANNOT_REDELEGATE = 27;
60
+ /** InvalidPluginSetting: Invalid setting for plugin */
61
+ const MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_SETTING = 28;
62
+ /** ConflictingAuthority: Cannot specify both an update authority and collection on an asset */
63
+ const MPL_CORE_PROGRAM_ERROR__CONFLICTING_AUTHORITY = 29;
64
+ /** InvalidLogWrapperProgram: Invalid Log Wrapper Program */
65
+ const MPL_CORE_PROGRAM_ERROR__INVALID_LOG_WRAPPER_PROGRAM = 30;
66
+ /** ExternalPluginAdapterNotFound: External Plugin Adapter not found */
67
+ const MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_NOT_FOUND = 31;
68
+ /** ExternalPluginAdapterAlreadyExists: External Plugin Adapter already exists */
69
+ const MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_ALREADY_EXISTS = 32;
70
+ /** MissingAsset: Missing asset needed for extra account PDA derivation */
71
+ const MPL_CORE_PROGRAM_ERROR__MISSING_ASSET = 33;
72
+ /** MissingExternalPluginAdapterAccount: Missing account needed for external plugin adapter */
73
+ const MPL_CORE_PROGRAM_ERROR__MISSING_EXTERNAL_PLUGIN_ADAPTER_ACCOUNT = 34;
74
+ /** OracleCanRejectOnly: Oracle external plugin adapter can only be configured to reject */
75
+ const MPL_CORE_PROGRAM_ERROR__ORACLE_CAN_REJECT_ONLY = 35;
76
+ /** RequiresLifecycleCheck: External plugin adapter must have at least one lifecycle check */
77
+ const MPL_CORE_PROGRAM_ERROR__REQUIRES_LIFECYCLE_CHECK = 36;
78
+ /** DuplicateLifecycleChecks: Duplicate lifecycle checks were provided for external plugin adapter */
79
+ const MPL_CORE_PROGRAM_ERROR__DUPLICATE_LIFECYCLE_CHECKS = 37;
80
+ /** InvalidOracleAccountData: Could not read from oracle account */
81
+ const MPL_CORE_PROGRAM_ERROR__INVALID_ORACLE_ACCOUNT_DATA = 38;
82
+ /** UninitializedOracleAccount: Oracle account is uninitialized */
83
+ const MPL_CORE_PROGRAM_ERROR__UNINITIALIZED_ORACLE_ACCOUNT = 39;
84
+ /** MissingSigner: Missing required signer for operation */
85
+ const MPL_CORE_PROGRAM_ERROR__MISSING_SIGNER = 40;
86
+ /** InvalidPluginOperation: Invalid plugin operation */
87
+ const MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_OPERATION = 41;
88
+ /** CollectionMustBeEmpty: Collection must be empty to be burned */
89
+ const MPL_CORE_PROGRAM_ERROR__COLLECTION_MUST_BE_EMPTY = 42;
90
+ /** TwoDataSources: Two data sources provided, only one is allowed */
91
+ const MPL_CORE_PROGRAM_ERROR__TWO_DATA_SOURCES = 43;
92
+ /** UnsupportedOperation: External Plugin does not support this operation */
93
+ const MPL_CORE_PROGRAM_ERROR__UNSUPPORTED_OPERATION = 44;
94
+ /** NoDataSources: No data sources provided, one is required */
95
+ const MPL_CORE_PROGRAM_ERROR__NO_DATA_SOURCES = 45;
96
+ /** InvalidPluginAdapterTarget: This plugin adapter cannot be added to an Asset */
97
+ const MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_ADAPTER_TARGET = 46;
98
+ /** CannotAddDataSection: Cannot add a Data Section without a linked external plugin */
99
+ const MPL_CORE_PROGRAM_ERROR__CANNOT_ADD_DATA_SECTION = 47;
100
+ /** PermanentDelegatesPreventMove: Cannot move asset to collection with permanent delegates */
101
+ const MPL_CORE_PROGRAM_ERROR__PERMANENT_DELEGATES_PREVENT_MOVE = 48;
102
+ /** InvalidExecutePda: Invalid Signing PDA for Asset or Collection Execute */
103
+ const MPL_CORE_PROGRAM_ERROR__INVALID_EXECUTE_PDA = 49;
104
+ /** BlockedByBubblegumV2: Bubblegum V2 Plugin limits other plugins */
105
+ const MPL_CORE_PROGRAM_ERROR__BLOCKED_BY_BUBBLEGUM_V2 = 50;
106
+ /** AgentIdentityMustSign: Agent Identity Program must sign */
107
+ const MPL_CORE_PROGRAM_ERROR__AGENT_IDENTITY_MUST_SIGN = 51;
108
+ /** GroupMustBeEmpty: Group must be empty to be closed */
109
+ const MPL_CORE_PROGRAM_ERROR__GROUP_MUST_BE_EMPTY = 52;
110
+ /** DuplicateEntry: Duplicate entry provided when adding relationships to a group */
111
+ const MPL_CORE_PROGRAM_ERROR__DUPLICATE_ENTRY = 53;
112
+ /** GroupVectorFull: Group vector is at maximum capacity */
113
+ const MPL_CORE_PROGRAM_ERROR__GROUP_VECTOR_FULL = 54;
114
+ /** GroupNestingDepthExceeded: Group nesting depth exceeded */
115
+ const MPL_CORE_PROGRAM_ERROR__GROUP_NESTING_DEPTH_EXCEEDED = 55;
116
+ /** InconsistentGroupRelationship: Bidirectional group relationship is inconsistent */
117
+ const MPL_CORE_PROGRAM_ERROR__INCONSISTENT_GROUP_RELATIONSHIP = 56;
118
+ let mplCoreProgramErrorMessages;
119
+ if (process.env.NODE_ENV !== "production") mplCoreProgramErrorMessages = {
120
+ [51]: "Agent Identity Program must sign",
121
+ [17]: "Already compressed account",
122
+ [18]: "Already decompressed account",
123
+ [10]: "Cannot transfer a frozen asset",
124
+ [50]: "Bubblegum V2 Plugin limits other plugins",
125
+ [47]: "Cannot add a Data Section without a linked external plugin",
126
+ [14]: "Cannot burn a collection NFT",
127
+ [12]: "Cannot migrate a master edition used for prints",
128
+ [13]: "Cannot migrate a print edition",
129
+ [27]: "Plugin Manager cannot redelegate a delegated plugin without revoking first",
130
+ [42]: "Collection must be empty to be burned",
131
+ [29]: "Cannot specify both an update authority and collection on an asset",
132
+ [1]: "Error deserializing account",
133
+ [53]: "Duplicate entry provided when adding relationships to a group",
134
+ [37]: "Duplicate lifecycle checks were provided for external plugin adapter ",
135
+ [32]: "External Plugin Adapter already exists",
136
+ [31]: "External Plugin Adapter not found",
137
+ [52]: "Group must be empty to be closed",
138
+ [55]: "Group nesting depth exceeded",
139
+ [54]: "Group vector is at maximum capacity",
140
+ [56]: "Bidirectional group relationship is inconsistent",
141
+ [6]: "Incorrect account",
142
+ [7]: "Incorrect asset hash",
143
+ [24]: "Invalid Asset passed in",
144
+ [9]: "Invalid Authority",
145
+ [19]: "Invalid Collection passed in",
146
+ [49]: "Invalid Signing PDA for Asset or Collection Execute",
147
+ [30]: "Invalid Log Wrapper Program",
148
+ [38]: "Could not read from oracle account",
149
+ [8]: "Invalid Plugin",
150
+ [46]: "This plugin adapter cannot be added to an Asset",
151
+ [41]: "Invalid plugin operation",
152
+ [28]: "Invalid setting for plugin",
153
+ [0]: "Invalid System Program",
154
+ [33]: "Missing asset needed for extra account PDA derivation",
155
+ [25]: "Missing collection",
156
+ [11]: "Missing compression proof",
157
+ [34]: "Missing account needed for external plugin adapter",
158
+ [21]: "Missing new owner",
159
+ [40]: "Missing required signer for operation",
160
+ [22]: "Missing system program",
161
+ [20]: "Missing update authority",
162
+ [26]: "Neither the asset or any plugins have approved this operation",
163
+ [45]: "No data sources provided, one is required",
164
+ [23]: "Feature not available",
165
+ [5]: "Numerical Overflow",
166
+ [16]: "Numerical overflow",
167
+ [35]: "Oracle external plugin adapter can only be configured to reject",
168
+ [48]: "Cannot move asset to collection with permanent delegates",
169
+ [15]: "Plugin already exists",
170
+ [4]: "Plugin not found",
171
+ [3]: "Plugins not initialized",
172
+ [36]: "External plugin adapter must have at least one lifecycle check",
173
+ [2]: "Error serializing account",
174
+ [43]: "Two data sources provided, only one is allowed",
175
+ [39]: "Oracle account is uninitialized",
176
+ [44]: "External Plugin does not support this operation"
177
+ };
178
+ function getMplCoreProgramErrorMessage(code) {
179
+ if (process.env.NODE_ENV !== "production") return mplCoreProgramErrorMessages[code];
180
+ return "Error message not available in production bundles.";
181
+ }
182
+ function isMplCoreProgramError(error, transactionMessage, code) {
183
+ return isProgramError(error, transactionMessage, MPL_CORE_PROGRAM_PROGRAM_ADDRESS, code);
184
+ }
185
+ //#endregion
186
+ export { MPL_CORE_PROGRAM_ERROR__AGENT_IDENTITY_MUST_SIGN, MPL_CORE_PROGRAM_ERROR__ALREADY_COMPRESSED, MPL_CORE_PROGRAM_ERROR__ALREADY_DECOMPRESSED, MPL_CORE_PROGRAM_ERROR__ASSET_IS_FROZEN, MPL_CORE_PROGRAM_ERROR__BLOCKED_BY_BUBBLEGUM_V2, MPL_CORE_PROGRAM_ERROR__CANNOT_ADD_DATA_SECTION, MPL_CORE_PROGRAM_ERROR__CANNOT_BURN_COLLECTION, MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_MASTER_WITH_SUPPLY, MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_PRINTS, MPL_CORE_PROGRAM_ERROR__CANNOT_REDELEGATE, MPL_CORE_PROGRAM_ERROR__COLLECTION_MUST_BE_EMPTY, MPL_CORE_PROGRAM_ERROR__CONFLICTING_AUTHORITY, MPL_CORE_PROGRAM_ERROR__DESERIALIZATION_ERROR, MPL_CORE_PROGRAM_ERROR__DUPLICATE_ENTRY, MPL_CORE_PROGRAM_ERROR__DUPLICATE_LIFECYCLE_CHECKS, MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_ALREADY_EXISTS, MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_NOT_FOUND, MPL_CORE_PROGRAM_ERROR__GROUP_MUST_BE_EMPTY, MPL_CORE_PROGRAM_ERROR__GROUP_NESTING_DEPTH_EXCEEDED, MPL_CORE_PROGRAM_ERROR__GROUP_VECTOR_FULL, MPL_CORE_PROGRAM_ERROR__INCONSISTENT_GROUP_RELATIONSHIP, MPL_CORE_PROGRAM_ERROR__INCORRECT_ACCOUNT, MPL_CORE_PROGRAM_ERROR__INCORRECT_ASSET_HASH, MPL_CORE_PROGRAM_ERROR__INVALID_ASSET, MPL_CORE_PROGRAM_ERROR__INVALID_AUTHORITY, MPL_CORE_PROGRAM_ERROR__INVALID_COLLECTION, MPL_CORE_PROGRAM_ERROR__INVALID_EXECUTE_PDA, MPL_CORE_PROGRAM_ERROR__INVALID_LOG_WRAPPER_PROGRAM, MPL_CORE_PROGRAM_ERROR__INVALID_ORACLE_ACCOUNT_DATA, MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN, MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_ADAPTER_TARGET, MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_OPERATION, MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_SETTING, MPL_CORE_PROGRAM_ERROR__INVALID_SYSTEM_PROGRAM, MPL_CORE_PROGRAM_ERROR__MISSING_ASSET, MPL_CORE_PROGRAM_ERROR__MISSING_COLLECTION, MPL_CORE_PROGRAM_ERROR__MISSING_COMPRESSION_PROOF, MPL_CORE_PROGRAM_ERROR__MISSING_EXTERNAL_PLUGIN_ADAPTER_ACCOUNT, MPL_CORE_PROGRAM_ERROR__MISSING_NEW_OWNER, MPL_CORE_PROGRAM_ERROR__MISSING_SIGNER, MPL_CORE_PROGRAM_ERROR__MISSING_SYSTEM_PROGRAM, MPL_CORE_PROGRAM_ERROR__MISSING_UPDATE_AUTHORITY, MPL_CORE_PROGRAM_ERROR__NOT_AVAILABLE, MPL_CORE_PROGRAM_ERROR__NO_APPROVALS, MPL_CORE_PROGRAM_ERROR__NO_DATA_SOURCES, MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW, MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW_ERROR, MPL_CORE_PROGRAM_ERROR__ORACLE_CAN_REJECT_ONLY, MPL_CORE_PROGRAM_ERROR__PERMANENT_DELEGATES_PREVENT_MOVE, MPL_CORE_PROGRAM_ERROR__PLUGINS_NOT_INITIALIZED, MPL_CORE_PROGRAM_ERROR__PLUGIN_ALREADY_EXISTS, MPL_CORE_PROGRAM_ERROR__PLUGIN_NOT_FOUND, MPL_CORE_PROGRAM_ERROR__REQUIRES_LIFECYCLE_CHECK, MPL_CORE_PROGRAM_ERROR__SERIALIZATION_ERROR, MPL_CORE_PROGRAM_ERROR__TWO_DATA_SOURCES, MPL_CORE_PROGRAM_ERROR__UNINITIALIZED_ORACLE_ACCOUNT, MPL_CORE_PROGRAM_ERROR__UNSUPPORTED_OPERATION, getMplCoreProgramErrorMessage, isMplCoreProgramError };
187
+
188
+ //# sourceMappingURL=mplCoreProgram.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mplCoreProgram.js","names":[],"sources":["../../../src/generated/errors/mplCoreProgram.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n Address,\n SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM,\n SolanaError,\n} from \"@solana/kit\";\nimport { isProgramError } from \"@solana/kit\";\nimport { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from \"../programs/index.js\";\n\n/** InvalidSystemProgram: Invalid System Program */\nexport const MPL_CORE_PROGRAM_ERROR__INVALID_SYSTEM_PROGRAM = 0x0; // 0\n/** DeserializationError: Error deserializing account */\nexport const MPL_CORE_PROGRAM_ERROR__DESERIALIZATION_ERROR = 0x1; // 1\n/** SerializationError: Error serializing account */\nexport const MPL_CORE_PROGRAM_ERROR__SERIALIZATION_ERROR = 0x2; // 2\n/** PluginsNotInitialized: Plugins not initialized */\nexport const MPL_CORE_PROGRAM_ERROR__PLUGINS_NOT_INITIALIZED = 0x3; // 3\n/** PluginNotFound: Plugin not found */\nexport const MPL_CORE_PROGRAM_ERROR__PLUGIN_NOT_FOUND = 0x4; // 4\n/** NumericalOverflow: Numerical Overflow */\nexport const MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW = 0x5; // 5\n/** IncorrectAccount: Incorrect account */\nexport const MPL_CORE_PROGRAM_ERROR__INCORRECT_ACCOUNT = 0x6; // 6\n/** IncorrectAssetHash: Incorrect asset hash */\nexport const MPL_CORE_PROGRAM_ERROR__INCORRECT_ASSET_HASH = 0x7; // 7\n/** InvalidPlugin: Invalid Plugin */\nexport const MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN = 0x8; // 8\n/** InvalidAuthority: Invalid Authority */\nexport const MPL_CORE_PROGRAM_ERROR__INVALID_AUTHORITY = 0x9; // 9\n/** AssetIsFrozen: Cannot transfer a frozen asset */\nexport const MPL_CORE_PROGRAM_ERROR__ASSET_IS_FROZEN = 0xa; // 10\n/** MissingCompressionProof: Missing compression proof */\nexport const MPL_CORE_PROGRAM_ERROR__MISSING_COMPRESSION_PROOF = 0xb; // 11\n/** CannotMigrateMasterWithSupply: Cannot migrate a master edition used for prints */\nexport const MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_MASTER_WITH_SUPPLY = 0xc; // 12\n/** CannotMigratePrints: Cannot migrate a print edition */\nexport const MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_PRINTS = 0xd; // 13\n/** CannotBurnCollection: Cannot burn a collection NFT */\nexport const MPL_CORE_PROGRAM_ERROR__CANNOT_BURN_COLLECTION = 0xe; // 14\n/** PluginAlreadyExists: Plugin already exists */\nexport const MPL_CORE_PROGRAM_ERROR__PLUGIN_ALREADY_EXISTS = 0xf; // 15\n/** NumericalOverflowError: Numerical overflow */\nexport const MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW_ERROR = 0x10; // 16\n/** AlreadyCompressed: Already compressed account */\nexport const MPL_CORE_PROGRAM_ERROR__ALREADY_COMPRESSED = 0x11; // 17\n/** AlreadyDecompressed: Already decompressed account */\nexport const MPL_CORE_PROGRAM_ERROR__ALREADY_DECOMPRESSED = 0x12; // 18\n/** InvalidCollection: Invalid Collection passed in */\nexport const MPL_CORE_PROGRAM_ERROR__INVALID_COLLECTION = 0x13; // 19\n/** MissingUpdateAuthority: Missing update authority */\nexport const MPL_CORE_PROGRAM_ERROR__MISSING_UPDATE_AUTHORITY = 0x14; // 20\n/** MissingNewOwner: Missing new owner */\nexport const MPL_CORE_PROGRAM_ERROR__MISSING_NEW_OWNER = 0x15; // 21\n/** MissingSystemProgram: Missing system program */\nexport const MPL_CORE_PROGRAM_ERROR__MISSING_SYSTEM_PROGRAM = 0x16; // 22\n/** NotAvailable: Feature not available */\nexport const MPL_CORE_PROGRAM_ERROR__NOT_AVAILABLE = 0x17; // 23\n/** InvalidAsset: Invalid Asset passed in */\nexport const MPL_CORE_PROGRAM_ERROR__INVALID_ASSET = 0x18; // 24\n/** MissingCollection: Missing collection */\nexport const MPL_CORE_PROGRAM_ERROR__MISSING_COLLECTION = 0x19; // 25\n/** NoApprovals: Neither the asset or any plugins have approved this operation */\nexport const MPL_CORE_PROGRAM_ERROR__NO_APPROVALS = 0x1a; // 26\n/** CannotRedelegate: Plugin Manager cannot redelegate a delegated plugin without revoking first */\nexport const MPL_CORE_PROGRAM_ERROR__CANNOT_REDELEGATE = 0x1b; // 27\n/** InvalidPluginSetting: Invalid setting for plugin */\nexport const MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_SETTING = 0x1c; // 28\n/** ConflictingAuthority: Cannot specify both an update authority and collection on an asset */\nexport const MPL_CORE_PROGRAM_ERROR__CONFLICTING_AUTHORITY = 0x1d; // 29\n/** InvalidLogWrapperProgram: Invalid Log Wrapper Program */\nexport const MPL_CORE_PROGRAM_ERROR__INVALID_LOG_WRAPPER_PROGRAM = 0x1e; // 30\n/** ExternalPluginAdapterNotFound: External Plugin Adapter not found */\nexport const MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_NOT_FOUND = 0x1f; // 31\n/** ExternalPluginAdapterAlreadyExists: External Plugin Adapter already exists */\nexport const MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_ALREADY_EXISTS = 0x20; // 32\n/** MissingAsset: Missing asset needed for extra account PDA derivation */\nexport const MPL_CORE_PROGRAM_ERROR__MISSING_ASSET = 0x21; // 33\n/** MissingExternalPluginAdapterAccount: Missing account needed for external plugin adapter */\nexport const MPL_CORE_PROGRAM_ERROR__MISSING_EXTERNAL_PLUGIN_ADAPTER_ACCOUNT = 0x22; // 34\n/** OracleCanRejectOnly: Oracle external plugin adapter can only be configured to reject */\nexport const MPL_CORE_PROGRAM_ERROR__ORACLE_CAN_REJECT_ONLY = 0x23; // 35\n/** RequiresLifecycleCheck: External plugin adapter must have at least one lifecycle check */\nexport const MPL_CORE_PROGRAM_ERROR__REQUIRES_LIFECYCLE_CHECK = 0x24; // 36\n/** DuplicateLifecycleChecks: Duplicate lifecycle checks were provided for external plugin adapter */\nexport const MPL_CORE_PROGRAM_ERROR__DUPLICATE_LIFECYCLE_CHECKS = 0x25; // 37\n/** InvalidOracleAccountData: Could not read from oracle account */\nexport const MPL_CORE_PROGRAM_ERROR__INVALID_ORACLE_ACCOUNT_DATA = 0x26; // 38\n/** UninitializedOracleAccount: Oracle account is uninitialized */\nexport const MPL_CORE_PROGRAM_ERROR__UNINITIALIZED_ORACLE_ACCOUNT = 0x27; // 39\n/** MissingSigner: Missing required signer for operation */\nexport const MPL_CORE_PROGRAM_ERROR__MISSING_SIGNER = 0x28; // 40\n/** InvalidPluginOperation: Invalid plugin operation */\nexport const MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_OPERATION = 0x29; // 41\n/** CollectionMustBeEmpty: Collection must be empty to be burned */\nexport const MPL_CORE_PROGRAM_ERROR__COLLECTION_MUST_BE_EMPTY = 0x2a; // 42\n/** TwoDataSources: Two data sources provided, only one is allowed */\nexport const MPL_CORE_PROGRAM_ERROR__TWO_DATA_SOURCES = 0x2b; // 43\n/** UnsupportedOperation: External Plugin does not support this operation */\nexport const MPL_CORE_PROGRAM_ERROR__UNSUPPORTED_OPERATION = 0x2c; // 44\n/** NoDataSources: No data sources provided, one is required */\nexport const MPL_CORE_PROGRAM_ERROR__NO_DATA_SOURCES = 0x2d; // 45\n/** InvalidPluginAdapterTarget: This plugin adapter cannot be added to an Asset */\nexport const MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_ADAPTER_TARGET = 0x2e; // 46\n/** CannotAddDataSection: Cannot add a Data Section without a linked external plugin */\nexport const MPL_CORE_PROGRAM_ERROR__CANNOT_ADD_DATA_SECTION = 0x2f; // 47\n/** PermanentDelegatesPreventMove: Cannot move asset to collection with permanent delegates */\nexport const MPL_CORE_PROGRAM_ERROR__PERMANENT_DELEGATES_PREVENT_MOVE = 0x30; // 48\n/** InvalidExecutePda: Invalid Signing PDA for Asset or Collection Execute */\nexport const MPL_CORE_PROGRAM_ERROR__INVALID_EXECUTE_PDA = 0x31; // 49\n/** BlockedByBubblegumV2: Bubblegum V2 Plugin limits other plugins */\nexport const MPL_CORE_PROGRAM_ERROR__BLOCKED_BY_BUBBLEGUM_V2 = 0x32; // 50\n/** AgentIdentityMustSign: Agent Identity Program must sign */\nexport const MPL_CORE_PROGRAM_ERROR__AGENT_IDENTITY_MUST_SIGN = 0x33; // 51\n/** GroupMustBeEmpty: Group must be empty to be closed */\nexport const MPL_CORE_PROGRAM_ERROR__GROUP_MUST_BE_EMPTY = 0x34; // 52\n/** DuplicateEntry: Duplicate entry provided when adding relationships to a group */\nexport const MPL_CORE_PROGRAM_ERROR__DUPLICATE_ENTRY = 0x35; // 53\n/** GroupVectorFull: Group vector is at maximum capacity */\nexport const MPL_CORE_PROGRAM_ERROR__GROUP_VECTOR_FULL = 0x36; // 54\n/** GroupNestingDepthExceeded: Group nesting depth exceeded */\nexport const MPL_CORE_PROGRAM_ERROR__GROUP_NESTING_DEPTH_EXCEEDED = 0x37; // 55\n/** InconsistentGroupRelationship: Bidirectional group relationship is inconsistent */\nexport const MPL_CORE_PROGRAM_ERROR__INCONSISTENT_GROUP_RELATIONSHIP = 0x38; // 56\n\nexport type MplCoreProgramError =\n | typeof MPL_CORE_PROGRAM_ERROR__AGENT_IDENTITY_MUST_SIGN\n | typeof MPL_CORE_PROGRAM_ERROR__ALREADY_COMPRESSED\n | typeof MPL_CORE_PROGRAM_ERROR__ALREADY_DECOMPRESSED\n | typeof MPL_CORE_PROGRAM_ERROR__ASSET_IS_FROZEN\n | typeof MPL_CORE_PROGRAM_ERROR__BLOCKED_BY_BUBBLEGUM_V2\n | typeof MPL_CORE_PROGRAM_ERROR__CANNOT_ADD_DATA_SECTION\n | typeof MPL_CORE_PROGRAM_ERROR__CANNOT_BURN_COLLECTION\n | typeof MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_MASTER_WITH_SUPPLY\n | typeof MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_PRINTS\n | typeof MPL_CORE_PROGRAM_ERROR__CANNOT_REDELEGATE\n | typeof MPL_CORE_PROGRAM_ERROR__COLLECTION_MUST_BE_EMPTY\n | typeof MPL_CORE_PROGRAM_ERROR__CONFLICTING_AUTHORITY\n | typeof MPL_CORE_PROGRAM_ERROR__DESERIALIZATION_ERROR\n | typeof MPL_CORE_PROGRAM_ERROR__DUPLICATE_ENTRY\n | typeof MPL_CORE_PROGRAM_ERROR__DUPLICATE_LIFECYCLE_CHECKS\n | typeof MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_ALREADY_EXISTS\n | typeof MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_NOT_FOUND\n | typeof MPL_CORE_PROGRAM_ERROR__GROUP_MUST_BE_EMPTY\n | typeof MPL_CORE_PROGRAM_ERROR__GROUP_NESTING_DEPTH_EXCEEDED\n | typeof MPL_CORE_PROGRAM_ERROR__GROUP_VECTOR_FULL\n | typeof MPL_CORE_PROGRAM_ERROR__INCONSISTENT_GROUP_RELATIONSHIP\n | typeof MPL_CORE_PROGRAM_ERROR__INCORRECT_ACCOUNT\n | typeof MPL_CORE_PROGRAM_ERROR__INCORRECT_ASSET_HASH\n | typeof MPL_CORE_PROGRAM_ERROR__INVALID_ASSET\n | typeof MPL_CORE_PROGRAM_ERROR__INVALID_AUTHORITY\n | typeof MPL_CORE_PROGRAM_ERROR__INVALID_COLLECTION\n | typeof MPL_CORE_PROGRAM_ERROR__INVALID_EXECUTE_PDA\n | typeof MPL_CORE_PROGRAM_ERROR__INVALID_LOG_WRAPPER_PROGRAM\n | typeof MPL_CORE_PROGRAM_ERROR__INVALID_ORACLE_ACCOUNT_DATA\n | typeof MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN\n | typeof MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_ADAPTER_TARGET\n | typeof MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_OPERATION\n | typeof MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_SETTING\n | typeof MPL_CORE_PROGRAM_ERROR__INVALID_SYSTEM_PROGRAM\n | typeof MPL_CORE_PROGRAM_ERROR__MISSING_ASSET\n | typeof MPL_CORE_PROGRAM_ERROR__MISSING_COLLECTION\n | typeof MPL_CORE_PROGRAM_ERROR__MISSING_COMPRESSION_PROOF\n | typeof MPL_CORE_PROGRAM_ERROR__MISSING_EXTERNAL_PLUGIN_ADAPTER_ACCOUNT\n | typeof MPL_CORE_PROGRAM_ERROR__MISSING_NEW_OWNER\n | typeof MPL_CORE_PROGRAM_ERROR__MISSING_SIGNER\n | typeof MPL_CORE_PROGRAM_ERROR__MISSING_SYSTEM_PROGRAM\n | typeof MPL_CORE_PROGRAM_ERROR__MISSING_UPDATE_AUTHORITY\n | typeof MPL_CORE_PROGRAM_ERROR__NO_APPROVALS\n | typeof MPL_CORE_PROGRAM_ERROR__NO_DATA_SOURCES\n | typeof MPL_CORE_PROGRAM_ERROR__NOT_AVAILABLE\n | typeof MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW\n | typeof MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW_ERROR\n | typeof MPL_CORE_PROGRAM_ERROR__ORACLE_CAN_REJECT_ONLY\n | typeof MPL_CORE_PROGRAM_ERROR__PERMANENT_DELEGATES_PREVENT_MOVE\n | typeof MPL_CORE_PROGRAM_ERROR__PLUGIN_ALREADY_EXISTS\n | typeof MPL_CORE_PROGRAM_ERROR__PLUGIN_NOT_FOUND\n | typeof MPL_CORE_PROGRAM_ERROR__PLUGINS_NOT_INITIALIZED\n | typeof MPL_CORE_PROGRAM_ERROR__REQUIRES_LIFECYCLE_CHECK\n | typeof MPL_CORE_PROGRAM_ERROR__SERIALIZATION_ERROR\n | typeof MPL_CORE_PROGRAM_ERROR__TWO_DATA_SOURCES\n | typeof MPL_CORE_PROGRAM_ERROR__UNINITIALIZED_ORACLE_ACCOUNT\n | typeof MPL_CORE_PROGRAM_ERROR__UNSUPPORTED_OPERATION;\n\nlet mplCoreProgramErrorMessages:\n | Record<MplCoreProgramError, string>\n | undefined;\nif (process.env.NODE_ENV !== \"production\") {\n mplCoreProgramErrorMessages = {\n [MPL_CORE_PROGRAM_ERROR__AGENT_IDENTITY_MUST_SIGN]:\n \"Agent Identity Program must sign\",\n [MPL_CORE_PROGRAM_ERROR__ALREADY_COMPRESSED]: \"Already compressed account\",\n [MPL_CORE_PROGRAM_ERROR__ALREADY_DECOMPRESSED]:\n \"Already decompressed account\",\n [MPL_CORE_PROGRAM_ERROR__ASSET_IS_FROZEN]: \"Cannot transfer a frozen asset\",\n [MPL_CORE_PROGRAM_ERROR__BLOCKED_BY_BUBBLEGUM_V2]:\n \"Bubblegum V2 Plugin limits other plugins\",\n [MPL_CORE_PROGRAM_ERROR__CANNOT_ADD_DATA_SECTION]:\n \"Cannot add a Data Section without a linked external plugin\",\n [MPL_CORE_PROGRAM_ERROR__CANNOT_BURN_COLLECTION]:\n \"Cannot burn a collection NFT\",\n [MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_MASTER_WITH_SUPPLY]:\n \"Cannot migrate a master edition used for prints\",\n [MPL_CORE_PROGRAM_ERROR__CANNOT_MIGRATE_PRINTS]:\n \"Cannot migrate a print edition\",\n [MPL_CORE_PROGRAM_ERROR__CANNOT_REDELEGATE]:\n \"Plugin Manager cannot redelegate a delegated plugin without revoking first\",\n [MPL_CORE_PROGRAM_ERROR__COLLECTION_MUST_BE_EMPTY]:\n \"Collection must be empty to be burned\",\n [MPL_CORE_PROGRAM_ERROR__CONFLICTING_AUTHORITY]:\n \"Cannot specify both an update authority and collection on an asset\",\n [MPL_CORE_PROGRAM_ERROR__DESERIALIZATION_ERROR]:\n \"Error deserializing account\",\n [MPL_CORE_PROGRAM_ERROR__DUPLICATE_ENTRY]:\n \"Duplicate entry provided when adding relationships to a group\",\n [MPL_CORE_PROGRAM_ERROR__DUPLICATE_LIFECYCLE_CHECKS]:\n \"Duplicate lifecycle checks were provided for external plugin adapter \",\n [MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_ALREADY_EXISTS]:\n \"External Plugin Adapter already exists\",\n [MPL_CORE_PROGRAM_ERROR__EXTERNAL_PLUGIN_ADAPTER_NOT_FOUND]:\n \"External Plugin Adapter not found\",\n [MPL_CORE_PROGRAM_ERROR__GROUP_MUST_BE_EMPTY]:\n \"Group must be empty to be closed\",\n [MPL_CORE_PROGRAM_ERROR__GROUP_NESTING_DEPTH_EXCEEDED]:\n \"Group nesting depth exceeded\",\n [MPL_CORE_PROGRAM_ERROR__GROUP_VECTOR_FULL]:\n \"Group vector is at maximum capacity\",\n [MPL_CORE_PROGRAM_ERROR__INCONSISTENT_GROUP_RELATIONSHIP]:\n \"Bidirectional group relationship is inconsistent\",\n [MPL_CORE_PROGRAM_ERROR__INCORRECT_ACCOUNT]: \"Incorrect account\",\n [MPL_CORE_PROGRAM_ERROR__INCORRECT_ASSET_HASH]: \"Incorrect asset hash\",\n [MPL_CORE_PROGRAM_ERROR__INVALID_ASSET]: \"Invalid Asset passed in\",\n [MPL_CORE_PROGRAM_ERROR__INVALID_AUTHORITY]: \"Invalid Authority\",\n [MPL_CORE_PROGRAM_ERROR__INVALID_COLLECTION]:\n \"Invalid Collection passed in\",\n [MPL_CORE_PROGRAM_ERROR__INVALID_EXECUTE_PDA]:\n \"Invalid Signing PDA for Asset or Collection Execute\",\n [MPL_CORE_PROGRAM_ERROR__INVALID_LOG_WRAPPER_PROGRAM]:\n \"Invalid Log Wrapper Program\",\n [MPL_CORE_PROGRAM_ERROR__INVALID_ORACLE_ACCOUNT_DATA]:\n \"Could not read from oracle account\",\n [MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN]: \"Invalid Plugin\",\n [MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_ADAPTER_TARGET]:\n \"This plugin adapter cannot be added to an Asset\",\n [MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_OPERATION]:\n \"Invalid plugin operation\",\n [MPL_CORE_PROGRAM_ERROR__INVALID_PLUGIN_SETTING]:\n \"Invalid setting for plugin\",\n [MPL_CORE_PROGRAM_ERROR__INVALID_SYSTEM_PROGRAM]: \"Invalid System Program\",\n [MPL_CORE_PROGRAM_ERROR__MISSING_ASSET]:\n \"Missing asset needed for extra account PDA derivation\",\n [MPL_CORE_PROGRAM_ERROR__MISSING_COLLECTION]: \"Missing collection\",\n [MPL_CORE_PROGRAM_ERROR__MISSING_COMPRESSION_PROOF]:\n \"Missing compression proof\",\n [MPL_CORE_PROGRAM_ERROR__MISSING_EXTERNAL_PLUGIN_ADAPTER_ACCOUNT]:\n \"Missing account needed for external plugin adapter\",\n [MPL_CORE_PROGRAM_ERROR__MISSING_NEW_OWNER]: \"Missing new owner\",\n [MPL_CORE_PROGRAM_ERROR__MISSING_SIGNER]:\n \"Missing required signer for operation\",\n [MPL_CORE_PROGRAM_ERROR__MISSING_SYSTEM_PROGRAM]: \"Missing system program\",\n [MPL_CORE_PROGRAM_ERROR__MISSING_UPDATE_AUTHORITY]:\n \"Missing update authority\",\n [MPL_CORE_PROGRAM_ERROR__NO_APPROVALS]:\n \"Neither the asset or any plugins have approved this operation\",\n [MPL_CORE_PROGRAM_ERROR__NO_DATA_SOURCES]:\n \"No data sources provided, one is required\",\n [MPL_CORE_PROGRAM_ERROR__NOT_AVAILABLE]: \"Feature not available\",\n [MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW]: \"Numerical Overflow\",\n [MPL_CORE_PROGRAM_ERROR__NUMERICAL_OVERFLOW_ERROR]: \"Numerical overflow\",\n [MPL_CORE_PROGRAM_ERROR__ORACLE_CAN_REJECT_ONLY]:\n \"Oracle external plugin adapter can only be configured to reject\",\n [MPL_CORE_PROGRAM_ERROR__PERMANENT_DELEGATES_PREVENT_MOVE]:\n \"Cannot move asset to collection with permanent delegates\",\n [MPL_CORE_PROGRAM_ERROR__PLUGIN_ALREADY_EXISTS]: \"Plugin already exists\",\n [MPL_CORE_PROGRAM_ERROR__PLUGIN_NOT_FOUND]: \"Plugin not found\",\n [MPL_CORE_PROGRAM_ERROR__PLUGINS_NOT_INITIALIZED]:\n \"Plugins not initialized\",\n [MPL_CORE_PROGRAM_ERROR__REQUIRES_LIFECYCLE_CHECK]:\n \"External plugin adapter must have at least one lifecycle check\",\n [MPL_CORE_PROGRAM_ERROR__SERIALIZATION_ERROR]: \"Error serializing account\",\n [MPL_CORE_PROGRAM_ERROR__TWO_DATA_SOURCES]:\n \"Two data sources provided, only one is allowed\",\n [MPL_CORE_PROGRAM_ERROR__UNINITIALIZED_ORACLE_ACCOUNT]:\n \"Oracle account is uninitialized\",\n [MPL_CORE_PROGRAM_ERROR__UNSUPPORTED_OPERATION]:\n \"External Plugin does not support this operation\",\n };\n}\n\nexport function getMplCoreProgramErrorMessage(\n code: MplCoreProgramError,\n): string {\n if (process.env.NODE_ENV !== \"production\") {\n return (mplCoreProgramErrorMessages as Record<MplCoreProgramError, string>)[\n code\n ];\n }\n\n return \"Error message not available in production bundles.\";\n}\n\nexport function isMplCoreProgramError<\n TProgramErrorCode extends MplCoreProgramError,\n>(\n error: unknown,\n transactionMessage: {\n instructions: Record<number, { programAddress: Address }>;\n },\n code?: TProgramErrorCode,\n): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> &\n Readonly<{ context: Readonly<{ code: TProgramErrorCode }> }> {\n return isProgramError<TProgramErrorCode>(\n error,\n transactionMessage,\n MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n code,\n );\n}\n"],"mappings":";;;;AAiBA,MAAa,iDAAiD;;AAE9D,MAAa,gDAAgD;;AAE7D,MAAa,8CAA8C;;AAE3D,MAAa,kDAAkD;;AAE/D,MAAa,2CAA2C;;AAExD,MAAa,6CAA6C;;AAE1D,MAAa,4CAA4C;;AAEzD,MAAa,+CAA+C;;AAE5D,MAAa,yCAAyC;;AAEtD,MAAa,4CAA4C;;AAEzD,MAAa,0CAA0C;;AAEvD,MAAa,oDAAoD;;AAEjE,MAAa,4DAA4D;;AAEzE,MAAa,gDAAgD;;AAE7D,MAAa,iDAAiD;;AAE9D,MAAa,gDAAgD;;AAE7D,MAAa,mDAAmD;;AAEhE,MAAa,6CAA6C;;AAE1D,MAAa,+CAA+C;;AAE5D,MAAa,6CAA6C;;AAE1D,MAAa,mDAAmD;;AAEhE,MAAa,4CAA4C;;AAEzD,MAAa,iDAAiD;;AAE9D,MAAa,wCAAwC;;AAErD,MAAa,wCAAwC;;AAErD,MAAa,6CAA6C;;AAE1D,MAAa,uCAAuC;;AAEpD,MAAa,4CAA4C;;AAEzD,MAAa,iDAAiD;;AAE9D,MAAa,gDAAgD;;AAE7D,MAAa,sDAAsD;;AAEnE,MAAa,4DAA4D;;AAEzE,MAAa,iEAAiE;;AAE9E,MAAa,wCAAwC;;AAErD,MAAa,kEAAkE;;AAE/E,MAAa,iDAAiD;;AAE9D,MAAa,mDAAmD;;AAEhE,MAAa,qDAAqD;;AAElE,MAAa,sDAAsD;;AAEnE,MAAa,uDAAuD;;AAEpE,MAAa,yCAAyC;;AAEtD,MAAa,mDAAmD;;AAEhE,MAAa,mDAAmD;;AAEhE,MAAa,2CAA2C;;AAExD,MAAa,gDAAgD;;AAE7D,MAAa,0CAA0C;;AAEvD,MAAa,wDAAwD;;AAErE,MAAa,kDAAkD;;AAE/D,MAAa,2DAA2D;;AAExE,MAAa,8CAA8C;;AAE3D,MAAa,kDAAkD;;AAE/D,MAAa,mDAAmD;;AAEhE,MAAa,8CAA8C;;AAE3D,MAAa,0CAA0C;;AAEvD,MAAa,4CAA4C;;AAEzD,MAAa,uDAAuD;;AAEpE,MAAa,0DAA0D;AA6DvE,IAAI;AAGJ,IAAI,QAAQ,IAAI,aAAa,cAC3B,8BAA8B;OAE1B;OAC4C;OAE5C;OACyC;OAEzC;OAEA;OAEA;OAEA;OAEA;OAEA;OAEA;OAEA;MAEA;OAEA;OAEA;OAEA;OAEA;OAEA;OAEA;OAEA;OAEA;MAC2C;MACG;OACP;MACI;OAE3C;OAEA;OAEA;OAEA;MACwC;OAExC;OAEA;OAEA;MACgD;OAEhD;OAC4C;OAE5C;OAEA;OAC2C;OAE3C;OACgD;OAEhD;OAEA;OAEA;OACuC;MACK;OACM;OAElD;OAEA;OAC+C;MACL;MAE1C;OAEA;MAC6C;OAE7C;OAEA;OAEA;AACJ;AAGF,SAAgB,8BACd,MACQ;CACR,IAAI,QAAQ,IAAI,aAAa,cAC3B,OAAQ,4BACN;CAIJ,OAAO;AACT;AAEA,SAAgB,sBAGd,OACA,oBAGA,MAE6D;CAC7D,OAAO,eACL,OACA,oBACA,kCACA,IACF;AACF"}