@macalinao/clients-mpl-bubblegum 0.3.1 → 0.3.2

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 (324) hide show
  1. package/dist/generated/accounts/index.d.ts +2 -1
  2. package/dist/generated/accounts/treeConfig.d.ts +22 -7
  3. package/dist/generated/accounts/treeConfig.d.ts.map +1 -1
  4. package/dist/generated/accounts/treeConfig.js +7 -0
  5. package/dist/generated/accounts/treeConfig.js.map +1 -1
  6. package/dist/generated/accounts/voucher.d.ts +14 -7
  7. package/dist/generated/accounts/voucher.d.ts.map +1 -1
  8. package/dist/generated/accounts/voucher.js +7 -0
  9. package/dist/generated/accounts/voucher.js.map +1 -1
  10. package/dist/generated/errors/bubblegum.d.ts +0 -1
  11. package/dist/generated/errors/bubblegum.d.ts.map +1 -1
  12. package/dist/generated/errors/bubblegum.js +66 -59
  13. package/dist/generated/errors/bubblegum.js.map +1 -1
  14. package/dist/generated/errors/index.d.ts +2 -1
  15. package/dist/generated/index.d.ts +8 -1
  16. package/dist/generated/instructions/burn.d.ts +141 -17
  17. package/dist/generated/instructions/burn.d.ts.map +1 -1
  18. package/dist/generated/instructions/burn.js +23 -0
  19. package/dist/generated/instructions/burn.js.map +1 -1
  20. package/dist/generated/instructions/burnV2.d.ts +179 -31
  21. package/dist/generated/instructions/burnV2.d.ts.map +1 -1
  22. package/dist/generated/instructions/burnV2.js +21 -0
  23. package/dist/generated/instructions/burnV2.js.map +1 -1
  24. package/dist/generated/instructions/cancelRedeem.d.ts +99 -13
  25. package/dist/generated/instructions/cancelRedeem.d.ts.map +1 -1
  26. package/dist/generated/instructions/cancelRedeem.js +19 -0
  27. package/dist/generated/instructions/cancelRedeem.js.map +1 -1
  28. package/dist/generated/instructions/closeTreeV2.d.ts +85 -19
  29. package/dist/generated/instructions/closeTreeV2.d.ts.map +1 -1
  30. package/dist/generated/instructions/closeTreeV2.js +21 -0
  31. package/dist/generated/instructions/closeTreeV2.js.map +1 -1
  32. package/dist/generated/instructions/collectV2.d.ts +20 -7
  33. package/dist/generated/instructions/collectV2.d.ts.map +1 -1
  34. package/dist/generated/instructions/collectV2.js +10 -0
  35. package/dist/generated/instructions/collectV2.js.map +1 -1
  36. package/dist/generated/instructions/compress.d.ts +119 -9
  37. package/dist/generated/instructions/compress.d.ts.map +1 -1
  38. package/dist/generated/instructions/compress.js +21 -0
  39. package/dist/generated/instructions/compress.js.map +1 -1
  40. package/dist/generated/instructions/createTree.d.ts +117 -11
  41. package/dist/generated/instructions/createTree.d.ts.map +1 -1
  42. package/dist/generated/instructions/createTree.js +23 -0
  43. package/dist/generated/instructions/createTree.js.map +1 -1
  44. package/dist/generated/instructions/createTreeV2.d.ts +109 -14
  45. package/dist/generated/instructions/createTreeV2.d.ts.map +1 -1
  46. package/dist/generated/instructions/createTreeV2.js +23 -0
  47. package/dist/generated/instructions/createTreeV2.js.map +1 -1
  48. package/dist/generated/instructions/decompressV1.d.ts +106 -11
  49. package/dist/generated/instructions/decompressV1.d.ts.map +1 -1
  50. package/dist/generated/instructions/decompressV1.js +25 -0
  51. package/dist/generated/instructions/decompressV1.js.map +1 -1
  52. package/dist/generated/instructions/delegate.d.ts +140 -17
  53. package/dist/generated/instructions/delegate.d.ts.map +1 -1
  54. package/dist/generated/instructions/delegate.js +19 -0
  55. package/dist/generated/instructions/delegate.js.map +1 -1
  56. package/dist/generated/instructions/delegateAndFreezeV2.d.ts +171 -27
  57. package/dist/generated/instructions/delegateAndFreezeV2.d.ts.map +1 -1
  58. package/dist/generated/instructions/delegateAndFreezeV2.js +17 -0
  59. package/dist/generated/instructions/delegateAndFreezeV2.js.map +1 -1
  60. package/dist/generated/instructions/delegateV2.d.ts +169 -27
  61. package/dist/generated/instructions/delegateV2.d.ts.map +1 -1
  62. package/dist/generated/instructions/delegateV2.js +15 -0
  63. package/dist/generated/instructions/delegateV2.js.map +1 -1
  64. package/dist/generated/instructions/freezeV2.d.ts +174 -28
  65. package/dist/generated/instructions/freezeV2.d.ts.map +1 -1
  66. package/dist/generated/instructions/freezeV2.js +23 -0
  67. package/dist/generated/instructions/freezeV2.js.map +1 -1
  68. package/dist/generated/instructions/index.d.ts +2 -1
  69. package/dist/generated/instructions/mintToCollectionV1.d.ts +171 -20
  70. package/dist/generated/instructions/mintToCollectionV1.d.ts.map +1 -1
  71. package/dist/generated/instructions/mintToCollectionV1.js +23 -0
  72. package/dist/generated/instructions/mintToCollectionV1.js.map +1 -1
  73. package/dist/generated/instructions/mintV1.d.ts +109 -11
  74. package/dist/generated/instructions/mintV1.d.ts.map +1 -1
  75. package/dist/generated/instructions/mintV1.js +21 -0
  76. package/dist/generated/instructions/mintV1.js.map +1 -1
  77. package/dist/generated/instructions/mintV2.d.ts +163 -17
  78. package/dist/generated/instructions/mintV2.d.ts.map +1 -1
  79. package/dist/generated/instructions/mintV2.js +45 -0
  80. package/dist/generated/instructions/mintV2.js.map +1 -1
  81. package/dist/generated/instructions/redeem.d.ts +153 -17
  82. package/dist/generated/instructions/redeem.d.ts.map +1 -1
  83. package/dist/generated/instructions/redeem.js +23 -0
  84. package/dist/generated/instructions/redeem.js.map +1 -1
  85. package/dist/generated/instructions/setAndVerifyCollection.d.ts +222 -38
  86. package/dist/generated/instructions/setAndVerifyCollection.d.ts.map +1 -1
  87. package/dist/generated/instructions/setAndVerifyCollection.js +21 -0
  88. package/dist/generated/instructions/setAndVerifyCollection.js.map +1 -1
  89. package/dist/generated/instructions/setCollectionV2.d.ts +186 -39
  90. package/dist/generated/instructions/setCollectionV2.d.ts.map +1 -1
  91. package/dist/generated/instructions/setCollectionV2.js +21 -0
  92. package/dist/generated/instructions/setCollectionV2.js.map +1 -1
  93. package/dist/generated/instructions/setDecompressableState.d.ts +40 -9
  94. package/dist/generated/instructions/setDecompressableState.d.ts.map +1 -1
  95. package/dist/generated/instructions/setDecompressableState.js +13 -0
  96. package/dist/generated/instructions/setDecompressableState.js.map +1 -1
  97. package/dist/generated/instructions/setDecompressibleState.d.ts +41 -9
  98. package/dist/generated/instructions/setDecompressibleState.d.ts.map +1 -1
  99. package/dist/generated/instructions/setDecompressibleState.js +14 -0
  100. package/dist/generated/instructions/setDecompressibleState.js.map +1 -1
  101. package/dist/generated/instructions/setNonTransferableV2.d.ts +166 -31
  102. package/dist/generated/instructions/setNonTransferableV2.d.ts.map +1 -1
  103. package/dist/generated/instructions/setNonTransferableV2.js +23 -0
  104. package/dist/generated/instructions/setNonTransferableV2.js.map +1 -1
  105. package/dist/generated/instructions/setTreeDelegate.d.ts +65 -9
  106. package/dist/generated/instructions/setTreeDelegate.d.ts.map +1 -1
  107. package/dist/generated/instructions/setTreeDelegate.js +21 -0
  108. package/dist/generated/instructions/setTreeDelegate.js.map +1 -1
  109. package/dist/generated/instructions/thawAndRevokeV2.d.ts +158 -24
  110. package/dist/generated/instructions/thawAndRevokeV2.d.ts.map +1 -1
  111. package/dist/generated/instructions/thawAndRevokeV2.js +17 -0
  112. package/dist/generated/instructions/thawAndRevokeV2.js.map +1 -1
  113. package/dist/generated/instructions/thawV2.d.ts +166 -28
  114. package/dist/generated/instructions/thawV2.d.ts.map +1 -1
  115. package/dist/generated/instructions/thawV2.js +15 -0
  116. package/dist/generated/instructions/thawV2.js.map +1 -1
  117. package/dist/generated/instructions/transfer.d.ts +140 -17
  118. package/dist/generated/instructions/transfer.d.ts.map +1 -1
  119. package/dist/generated/instructions/transfer.js +19 -0
  120. package/dist/generated/instructions/transfer.js.map +1 -1
  121. package/dist/generated/instructions/transferV2.d.ts +167 -31
  122. package/dist/generated/instructions/transferV2.d.ts.map +1 -1
  123. package/dist/generated/instructions/transferV2.js +21 -0
  124. package/dist/generated/instructions/transferV2.js.map +1 -1
  125. package/dist/generated/instructions/unverifyCollection.d.ts +215 -38
  126. package/dist/generated/instructions/unverifyCollection.d.ts.map +1 -1
  127. package/dist/generated/instructions/unverifyCollection.js +19 -0
  128. package/dist/generated/instructions/unverifyCollection.js.map +1 -1
  129. package/dist/generated/instructions/unverifyCreator.d.ts +161 -17
  130. package/dist/generated/instructions/unverifyCreator.d.ts.map +1 -1
  131. package/dist/generated/instructions/unverifyCreator.js +19 -0
  132. package/dist/generated/instructions/unverifyCreator.js.map +1 -1
  133. package/dist/generated/instructions/unverifyCreatorV2.d.ts +143 -21
  134. package/dist/generated/instructions/unverifyCreatorV2.d.ts.map +1 -1
  135. package/dist/generated/instructions/unverifyCreatorV2.js +19 -0
  136. package/dist/generated/instructions/unverifyCreatorV2.js.map +1 -1
  137. package/dist/generated/instructions/updateAssetDataV2.d.ts +180 -28
  138. package/dist/generated/instructions/updateAssetDataV2.d.ts.map +1 -1
  139. package/dist/generated/instructions/updateAssetDataV2.js +21 -0
  140. package/dist/generated/instructions/updateAssetDataV2.js.map +1 -1
  141. package/dist/generated/instructions/updateMetadata.d.ts +183 -28
  142. package/dist/generated/instructions/updateMetadata.d.ts.map +1 -1
  143. package/dist/generated/instructions/updateMetadata.js +21 -0
  144. package/dist/generated/instructions/updateMetadata.js.map +1 -1
  145. package/dist/generated/instructions/updateMetadataV2.d.ts +162 -27
  146. package/dist/generated/instructions/updateMetadataV2.d.ts.map +1 -1
  147. package/dist/generated/instructions/updateMetadataV2.js +19 -0
  148. package/dist/generated/instructions/updateMetadataV2.js.map +1 -1
  149. package/dist/generated/instructions/verifyCollection.d.ts +215 -38
  150. package/dist/generated/instructions/verifyCollection.d.ts.map +1 -1
  151. package/dist/generated/instructions/verifyCollection.js +19 -0
  152. package/dist/generated/instructions/verifyCollection.js.map +1 -1
  153. package/dist/generated/instructions/verifyCreator.d.ts +161 -17
  154. package/dist/generated/instructions/verifyCreator.d.ts.map +1 -1
  155. package/dist/generated/instructions/verifyCreator.js +19 -0
  156. package/dist/generated/instructions/verifyCreator.js.map +1 -1
  157. package/dist/generated/instructions/verifyCreatorV2.d.ts +143 -21
  158. package/dist/generated/instructions/verifyCreatorV2.d.ts.map +1 -1
  159. package/dist/generated/instructions/verifyCreatorV2.js +19 -0
  160. package/dist/generated/instructions/verifyCreatorV2.js.map +1 -1
  161. package/dist/generated/pdas/assetId.d.ts +2 -3
  162. package/dist/generated/pdas/assetId.d.ts.map +1 -1
  163. package/dist/generated/pdas/assetId.js +7 -0
  164. package/dist/generated/pdas/assetId.js.map +1 -1
  165. package/dist/generated/pdas/bubblegumSigner.d.ts +0 -1
  166. package/dist/generated/pdas/bubblegumSigner.d.ts.map +1 -1
  167. package/dist/generated/pdas/bubblegumSigner.js +7 -0
  168. package/dist/generated/pdas/bubblegumSigner.js.map +1 -1
  169. package/dist/generated/pdas/index.d.ts +2 -1
  170. package/dist/generated/pdas/masterEdition.d.ts +2 -3
  171. package/dist/generated/pdas/masterEdition.d.ts.map +1 -1
  172. package/dist/generated/pdas/masterEdition.js +7 -0
  173. package/dist/generated/pdas/masterEdition.js.map +1 -1
  174. package/dist/generated/pdas/metadata.d.ts +2 -3
  175. package/dist/generated/pdas/metadata.d.ts.map +1 -1
  176. package/dist/generated/pdas/metadata.js +7 -0
  177. package/dist/generated/pdas/metadata.js.map +1 -1
  178. package/dist/generated/pdas/mintAuthority.d.ts +2 -3
  179. package/dist/generated/pdas/mintAuthority.d.ts.map +1 -1
  180. package/dist/generated/pdas/mintAuthority.js +7 -0
  181. package/dist/generated/pdas/mintAuthority.js.map +1 -1
  182. package/dist/generated/pdas/treeConfig.d.ts +2 -3
  183. package/dist/generated/pdas/treeConfig.d.ts.map +1 -1
  184. package/dist/generated/pdas/treeConfig.js +7 -0
  185. package/dist/generated/pdas/treeConfig.js.map +1 -1
  186. package/dist/generated/pdas/voucher.d.ts +2 -3
  187. package/dist/generated/pdas/voucher.d.ts.map +1 -1
  188. package/dist/generated/pdas/voucher.js +7 -0
  189. package/dist/generated/pdas/voucher.js.map +1 -1
  190. package/dist/generated/programs/bubblegum.d.ts +17 -12
  191. package/dist/generated/programs/bubblegum.d.ts.map +1 -1
  192. package/dist/generated/programs/bubblegum.js +11 -1
  193. package/dist/generated/programs/bubblegum.js.map +1 -1
  194. package/dist/generated/programs/index.d.ts +2 -1
  195. package/dist/generated/programs/mplTokenMetadata.d.ts +8 -8
  196. package/dist/generated/programs/mplTokenMetadata.d.ts.map +1 -1
  197. package/dist/generated/programs/mplTokenMetadata.js +7 -0
  198. package/dist/generated/programs/mplTokenMetadata.js.map +1 -1
  199. package/dist/generated/types/assetDataSchema.d.ts +4 -1
  200. package/dist/generated/types/assetDataSchema.d.ts.map +1 -1
  201. package/dist/generated/types/assetDataSchema.js +11 -0
  202. package/dist/generated/types/assetDataSchema.js.map +1 -1
  203. package/dist/generated/types/bubblegumEventType.d.ts +4 -1
  204. package/dist/generated/types/bubblegumEventType.d.ts.map +1 -1
  205. package/dist/generated/types/bubblegumEventType.js +11 -0
  206. package/dist/generated/types/bubblegumEventType.js.map +1 -1
  207. package/dist/generated/types/collection.d.ts +9 -3
  208. package/dist/generated/types/collection.d.ts.map +1 -1
  209. package/dist/generated/types/collection.js +7 -0
  210. package/dist/generated/types/collection.js.map +1 -1
  211. package/dist/generated/types/creator.d.ts +9 -7
  212. package/dist/generated/types/creator.d.ts.map +1 -1
  213. package/dist/generated/types/creator.js +7 -0
  214. package/dist/generated/types/creator.js.map +1 -1
  215. package/dist/generated/types/decompressibleState.d.ts +5 -1
  216. package/dist/generated/types/decompressibleState.d.ts.map +1 -1
  217. package/dist/generated/types/decompressibleState.js +12 -0
  218. package/dist/generated/types/decompressibleState.js.map +1 -1
  219. package/dist/generated/types/index.d.ts +2 -1
  220. package/dist/generated/types/instructionName.d.ts +4 -1
  221. package/dist/generated/types/instructionName.d.ts.map +1 -1
  222. package/dist/generated/types/instructionName.js +11 -0
  223. package/dist/generated/types/instructionName.js.map +1 -1
  224. package/dist/generated/types/leafSchema.d.ts +51 -13
  225. package/dist/generated/types/leafSchema.d.ts.map +1 -1
  226. package/dist/generated/types/leafSchema.js +7 -0
  227. package/dist/generated/types/leafSchema.js.map +1 -1
  228. package/dist/generated/types/metadataArgs.d.ts +19 -7
  229. package/dist/generated/types/metadataArgs.d.ts.map +1 -1
  230. package/dist/generated/types/metadataArgs.js +7 -0
  231. package/dist/generated/types/metadataArgs.js.map +1 -1
  232. package/dist/generated/types/metadataArgsV2.d.ts +14 -7
  233. package/dist/generated/types/metadataArgsV2.d.ts.map +1 -1
  234. package/dist/generated/types/metadataArgsV2.js +7 -0
  235. package/dist/generated/types/metadataArgsV2.js.map +1 -1
  236. package/dist/generated/types/tokenProgramVersion.d.ts +1 -1
  237. package/dist/generated/types/tokenProgramVersion.d.ts.map +1 -1
  238. package/dist/generated/types/tokenProgramVersion.js +8 -0
  239. package/dist/generated/types/tokenProgramVersion.js.map +1 -1
  240. package/dist/generated/types/tokenStandard.d.ts +5 -1
  241. package/dist/generated/types/tokenStandard.d.ts.map +1 -1
  242. package/dist/generated/types/tokenStandard.js +12 -0
  243. package/dist/generated/types/tokenStandard.js.map +1 -1
  244. package/dist/generated/types/updateArgs.d.ts +26 -7
  245. package/dist/generated/types/updateArgs.d.ts.map +1 -1
  246. package/dist/generated/types/updateArgs.js +7 -0
  247. package/dist/generated/types/updateArgs.js.map +1 -1
  248. package/dist/generated/types/useMethod.d.ts +1 -1
  249. package/dist/generated/types/useMethod.d.ts.map +1 -1
  250. package/dist/generated/types/useMethod.js +8 -0
  251. package/dist/generated/types/useMethod.js.map +1 -1
  252. package/dist/generated/types/uses.d.ts +16 -5
  253. package/dist/generated/types/uses.d.ts.map +1 -1
  254. package/dist/generated/types/uses.js +7 -0
  255. package/dist/generated/types/uses.js.map +1 -1
  256. package/dist/generated/types/version.d.ts +5 -1
  257. package/dist/generated/types/version.d.ts.map +1 -1
  258. package/dist/generated/types/version.js +12 -0
  259. package/dist/generated/types/version.js.map +1 -1
  260. package/dist/index.d.ts +1 -0
  261. package/package.json +6 -6
  262. package/src/generated/accounts/treeConfig.ts +36 -27
  263. package/src/generated/accounts/voucher.ts +30 -23
  264. package/src/generated/errors/bubblegum.ts +121 -154
  265. package/src/generated/instructions/burn.ts +157 -35
  266. package/src/generated/instructions/burnV2.ts +197 -52
  267. package/src/generated/instructions/cancelRedeem.ts +116 -32
  268. package/src/generated/instructions/closeTreeV2.ts +96 -35
  269. package/src/generated/instructions/collectV2.ts +34 -23
  270. package/src/generated/instructions/compress.ts +136 -30
  271. package/src/generated/instructions/createTree.ts +137 -33
  272. package/src/generated/instructions/createTreeV2.ts +128 -36
  273. package/src/generated/instructions/decompressV1.ts +124 -31
  274. package/src/generated/instructions/delegate.ts +159 -38
  275. package/src/generated/instructions/delegateAndFreezeV2.ts +191 -51
  276. package/src/generated/instructions/delegateV2.ts +189 -51
  277. package/src/generated/instructions/freezeV2.ts +193 -49
  278. package/src/generated/instructions/mintToCollectionV1.ts +186 -37
  279. package/src/generated/instructions/mintV1.ts +127 -31
  280. package/src/generated/instructions/mintV2.ts +184 -45
  281. package/src/generated/instructions/redeem.ts +172 -38
  282. package/src/generated/instructions/setAndVerifyCollection.ts +236 -54
  283. package/src/generated/instructions/setCollectionV2.ts +202 -58
  284. package/src/generated/instructions/setDecompressableState.ts +59 -31
  285. package/src/generated/instructions/setDecompressibleState.ts +60 -31
  286. package/src/generated/instructions/setNonTransferableV2.ts +184 -52
  287. package/src/generated/instructions/setTreeDelegate.ts +82 -28
  288. package/src/generated/instructions/thawAndRevokeV2.ts +179 -48
  289. package/src/generated/instructions/thawV2.ts +185 -49
  290. package/src/generated/instructions/transfer.ts +156 -35
  291. package/src/generated/instructions/transferV2.ts +185 -52
  292. package/src/generated/instructions/unverifyCollection.ts +229 -54
  293. package/src/generated/instructions/unverifyCreator.ts +181 -39
  294. package/src/generated/instructions/unverifyCreatorV2.ts +164 -46
  295. package/src/generated/instructions/updateAssetDataV2.ts +200 -50
  296. package/src/generated/instructions/updateMetadata.ts +200 -52
  297. package/src/generated/instructions/updateMetadataV2.ts +183 -54
  298. package/src/generated/instructions/verifyCollection.ts +229 -54
  299. package/src/generated/instructions/verifyCreator.ts +181 -39
  300. package/src/generated/instructions/verifyCreatorV2.ts +164 -46
  301. package/src/generated/pdas/assetId.ts +4 -3
  302. package/src/generated/pdas/bubblegumSigner.ts +6 -2
  303. package/src/generated/pdas/masterEdition.ts +4 -3
  304. package/src/generated/pdas/metadata.ts +4 -3
  305. package/src/generated/pdas/mintAuthority.ts +8 -4
  306. package/src/generated/pdas/treeConfig.ts +8 -4
  307. package/src/generated/pdas/voucher.ts +4 -3
  308. package/src/generated/programs/bubblegum.ts +146 -144
  309. package/src/generated/programs/mplTokenMetadata.ts +5 -10
  310. package/src/generated/types/assetDataSchema.ts +14 -8
  311. package/src/generated/types/bubblegumEventType.ts +13 -7
  312. package/src/generated/types/collection.ts +13 -8
  313. package/src/generated/types/creator.ts +11 -10
  314. package/src/generated/types/decompressibleState.ts +14 -7
  315. package/src/generated/types/instructionName.ts +46 -40
  316. package/src/generated/types/leafSchema.ts +59 -22
  317. package/src/generated/types/metadataArgs.ts +35 -27
  318. package/src/generated/types/metadataArgsV2.ts +23 -20
  319. package/src/generated/types/tokenProgramVersion.ts +10 -7
  320. package/src/generated/types/tokenStandard.ts +16 -9
  321. package/src/generated/types/updateArgs.ts +36 -15
  322. package/src/generated/types/useMethod.ts +11 -8
  323. package/src/generated/types/uses.ts +24 -11
  324. package/src/generated/types/version.ts +14 -7
@@ -1,56 +1,145 @@
1
1
  import { MetadataArgs, MetadataArgsArgs } from "../types/metadataArgs.js";
2
+ import "../types/index.js";
2
3
  import { BUBBLEGUM_PROGRAM_ADDRESS } from "../programs/bubblegum.js";
4
+ import "../programs/index.js";
3
5
  import { AccountMeta, AccountSignerMeta, Address, Codec, Decoder, Encoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount } from "@solana/kit";
4
-
5
6
  //#region src/generated/instructions/unverifyCollection.d.ts
6
7
  declare const UNVERIFY_COLLECTION_DISCRIMINATOR: ReadonlyUint8Array;
7
8
  declare function getUnverifyCollectionDiscriminatorBytes(): ReadonlyUint8Array;
8
9
  type UnverifyCollectionInstruction<TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS, TAccountTreeAuthority extends string | AccountMeta<string> = string, TAccountLeafOwner extends string | AccountMeta<string> = string, TAccountLeafDelegate extends string | AccountMeta<string> = string, TAccountMerkleTree extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountTreeDelegate extends string | AccountMeta<string> = string, TAccountCollectionAuthority extends string | AccountMeta<string> = string, TAccountCollectionAuthorityRecordPda extends string | AccountMeta<string> = "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY", TAccountCollectionMint extends string | AccountMeta<string> = string, TAccountCollectionMetadata extends string | AccountMeta<string> = string, TAccountEditionAccount extends string | AccountMeta<string> = string, TAccountBubblegumSigner extends string | AccountMeta<string> = string, TAccountLogWrapper extends string | AccountMeta<string> = "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV", TAccountCompressionProgram extends string | AccountMeta<string> = "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK", TAccountTokenMetadataProgram extends string | AccountMeta<string> = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountTreeAuthority extends string ? ReadonlyAccount<TAccountTreeAuthority> : TAccountTreeAuthority, TAccountLeafOwner extends string ? ReadonlyAccount<TAccountLeafOwner> : TAccountLeafOwner, TAccountLeafDelegate extends string ? ReadonlyAccount<TAccountLeafDelegate> : TAccountLeafDelegate, TAccountMerkleTree extends string ? WritableAccount<TAccountMerkleTree> : TAccountMerkleTree, TAccountPayer extends string ? ReadonlySignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountTreeDelegate extends string ? ReadonlyAccount<TAccountTreeDelegate> : TAccountTreeDelegate, TAccountCollectionAuthority extends string ? ReadonlySignerAccount<TAccountCollectionAuthority> & AccountSignerMeta<TAccountCollectionAuthority> : TAccountCollectionAuthority, TAccountCollectionAuthorityRecordPda extends string ? ReadonlyAccount<TAccountCollectionAuthorityRecordPda> : TAccountCollectionAuthorityRecordPda, TAccountCollectionMint extends string ? ReadonlyAccount<TAccountCollectionMint> : TAccountCollectionMint, TAccountCollectionMetadata extends string ? WritableAccount<TAccountCollectionMetadata> : TAccountCollectionMetadata, TAccountEditionAccount extends string ? ReadonlyAccount<TAccountEditionAccount> : TAccountEditionAccount, TAccountBubblegumSigner extends string ? ReadonlyAccount<TAccountBubblegumSigner> : TAccountBubblegumSigner, TAccountLogWrapper extends string ? ReadonlyAccount<TAccountLogWrapper> : TAccountLogWrapper, TAccountCompressionProgram extends string ? ReadonlyAccount<TAccountCompressionProgram> : TAccountCompressionProgram, TAccountTokenMetadataProgram extends string ? ReadonlyAccount<TAccountTokenMetadataProgram> : TAccountTokenMetadataProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
9
- interface UnverifyCollectionInstructionData {
10
+ type UnverifyCollectionInstructionData = {
10
11
  discriminator: ReadonlyUint8Array;
11
- root: number[];
12
- dataHash: number[];
13
- creatorHash: number[];
12
+ /**
13
+ * Current Merkle root of the tree, used together with the Merkle proof
14
+ * (passed as remaining accounts) to verify the leaf being operated on.
15
+ */
16
+ root: Array<number>;
17
+ /**
18
+ * Keccak256 hash of the leaf's metadata, used together with `root` to
19
+ * verify the leaf before it is modified.
20
+ */
21
+ dataHash: Array<number>;
22
+ /**
23
+ * Keccak256 hash of the leaf's creators array, used together with
24
+ * `root` to verify the leaf before it is modified.
25
+ */
26
+ creatorHash: Array<number>;
27
+ /**
28
+ * Tree-scoped nonce identifying the leaf, equal to the tree's
29
+ * `numMinted` at the time the leaf was minted. Combined with the tree
30
+ * address to derive the leaf's asset id.
31
+ */
14
32
  nonce: bigint;
33
+ /**
34
+ * Position of the leaf within the Merkle tree, used with the Merkle
35
+ * proof to locate and verify the leaf.
36
+ */
15
37
  index: number;
38
+ /**
39
+ * The leaf's current metadata args, verified against `dataHash` before
40
+ * its collection is marked unverified.
41
+ */
16
42
  message: MetadataArgs;
17
- }
18
- interface UnverifyCollectionInstructionDataArgs {
19
- root: number[];
20
- dataHash: number[];
21
- creatorHash: number[];
43
+ };
44
+ type UnverifyCollectionInstructionDataArgs = {
45
+ /**
46
+ * Current Merkle root of the tree, used together with the Merkle proof
47
+ * (passed as remaining accounts) to verify the leaf being operated on.
48
+ */
49
+ root: Array<number>;
50
+ /**
51
+ * Keccak256 hash of the leaf's metadata, used together with `root` to
52
+ * verify the leaf before it is modified.
53
+ */
54
+ dataHash: Array<number>;
55
+ /**
56
+ * Keccak256 hash of the leaf's creators array, used together with
57
+ * `root` to verify the leaf before it is modified.
58
+ */
59
+ creatorHash: Array<number>;
60
+ /**
61
+ * Tree-scoped nonce identifying the leaf, equal to the tree's
62
+ * `numMinted` at the time the leaf was minted. Combined with the tree
63
+ * address to derive the leaf's asset id.
64
+ */
22
65
  nonce: number | bigint;
66
+ /**
67
+ * Position of the leaf within the Merkle tree, used with the Merkle
68
+ * proof to locate and verify the leaf.
69
+ */
23
70
  index: number;
71
+ /**
72
+ * The leaf's current metadata args, verified against `dataHash` before
73
+ * its collection is marked unverified.
74
+ */
24
75
  message: MetadataArgsArgs;
25
- }
76
+ };
26
77
  declare function getUnverifyCollectionInstructionDataEncoder(): Encoder<UnverifyCollectionInstructionDataArgs>;
27
78
  declare function getUnverifyCollectionInstructionDataDecoder(): Decoder<UnverifyCollectionInstructionData>;
28
79
  declare function getUnverifyCollectionInstructionDataCodec(): Codec<UnverifyCollectionInstructionDataArgs, UnverifyCollectionInstructionData>;
29
- interface UnverifyCollectionAsyncInput<TAccountTreeAuthority extends string = string, TAccountLeafOwner extends string = string, TAccountLeafDelegate extends string = string, TAccountMerkleTree extends string = string, TAccountPayer extends string = string, TAccountTreeDelegate extends string = string, TAccountCollectionAuthority extends string = string, TAccountCollectionAuthorityRecordPda extends string = string, TAccountCollectionMint extends string = string, TAccountCollectionMetadata extends string = string, TAccountEditionAccount extends string = string, TAccountBubblegumSigner extends string = string, TAccountLogWrapper extends string = string, TAccountCompressionProgram extends string = string, TAccountTokenMetadataProgram extends string = string, TAccountSystemProgram extends string = string> {
80
+ type UnverifyCollectionAsyncInput<TAccountTreeAuthority extends string = string, TAccountLeafOwner extends string = string, TAccountLeafDelegate extends string = string, TAccountMerkleTree extends string = string, TAccountPayer extends string = string, TAccountTreeDelegate extends string = string, TAccountCollectionAuthority extends string = string, TAccountCollectionAuthorityRecordPda extends string = string, TAccountCollectionMint extends string = string, TAccountCollectionMetadata extends string = string, TAccountEditionAccount extends string = string, TAccountBubblegumSigner extends string = string, TAccountLogWrapper extends string = string, TAccountCompressionProgram extends string = string, TAccountTokenMetadataProgram extends string = string, TAccountSystemProgram extends string = string> = {
81
+ /**
82
+ * The tree's `TreeConfig` PDA, which stores its configuration and acts
83
+ * as the tree's authority for CPIs into the compression program.
84
+ */
30
85
  treeAuthority?: Address<TAccountTreeAuthority>;
86
+ /** Owner of the compressed NFT leaf being operated on. */
31
87
  leafOwner: Address<TAccountLeafOwner>;
88
+ /**
89
+ * Delegate authority for the leaf; defaults to the leaf owner when no
90
+ * delegate is set.
91
+ */
32
92
  leafDelegate: Address<TAccountLeafDelegate>;
93
+ /**
94
+ * The concurrent Merkle tree account storing the compressed leaves,
95
+ * owned by the account compression program.
96
+ */
33
97
  merkleTree: Address<TAccountMerkleTree>;
98
+ /** Account that pays for the transaction and any account rent. */
34
99
  payer: TransactionSigner<TAccountPayer>;
35
100
  /**
36
- * This account is checked to be a signer in
37
- * the case of `set_and_verify_collection` where
38
- * we are actually changing the NFT metadata.
39
- */
101
+ * Checked as a signer here because this instruction path shares logic
102
+ * with `setAndVerifyCollection`, which actually changes the leaf's
103
+ * metadata.
104
+ */
40
105
  treeDelegate: Address<TAccountTreeDelegate>;
106
+ /**
107
+ * Authority of the collection the asset is being added to or removed
108
+ * from (typically the collection's update authority or a delegate).
109
+ */
41
110
  collectionAuthority: TransactionSigner<TAccountCollectionAuthority>;
42
111
  /**
43
- * If there is no collecton authority record PDA then
44
- * this must be the Bubblegum program address.
45
- */
112
+ * If there is no collection authority record PDA, pass the Bubblegum
113
+ * program address instead.
114
+ */
46
115
  collectionAuthorityRecordPda?: Address<TAccountCollectionAuthorityRecordPda>;
116
+ /** Mint account of the Token Metadata collection NFT. */
47
117
  collectionMint: Address<TAccountCollectionMint>;
118
+ /** Metadata account of the Token Metadata collection NFT. */
48
119
  collectionMetadata?: Address<TAccountCollectionMetadata>;
120
+ /** Master edition account of the Token Metadata collection NFT. */
49
121
  editionAccount?: Address<TAccountEditionAccount>;
122
+ /**
123
+ * PDA Bubblegum uses to sign the CPI into the Token Metadata program
124
+ * that (un)verifies the collection.
125
+ */
50
126
  bubblegumSigner?: Address<TAccountBubblegumSigner>;
127
+ /**
128
+ * The SPL/MPL Noop program, used to log leaf data so off-chain indexers
129
+ * can reconstruct the tree.
130
+ */
51
131
  logWrapper?: Address<TAccountLogWrapper>;
132
+ /**
133
+ * The SPL/MPL Account Compression program that owns and manages the
134
+ * Merkle tree.
135
+ */
52
136
  compressionProgram?: Address<TAccountCompressionProgram>;
137
+ /**
138
+ * The Token Metadata program, invoked to read or (un)verify the
139
+ * legacy collection accounts.
140
+ */
53
141
  tokenMetadataProgram?: Address<TAccountTokenMetadataProgram>;
142
+ /** The Solana System program. */
54
143
  systemProgram?: Address<TAccountSystemProgram>;
55
144
  root: UnverifyCollectionInstructionDataArgs["root"];
56
145
  dataHash: UnverifyCollectionInstructionDataArgs["dataHash"];
@@ -58,35 +147,79 @@ interface UnverifyCollectionAsyncInput<TAccountTreeAuthority extends string = st
58
147
  nonce: UnverifyCollectionInstructionDataArgs["nonce"];
59
148
  index: UnverifyCollectionInstructionDataArgs["index"];
60
149
  message: UnverifyCollectionInstructionDataArgs["message"];
61
- }
150
+ };
151
+ /**
152
+ * Unverifies a previously verified collection from a leaf node.
153
+ *
154
+ * Marks the `collection` field of the leaf's metadata as unverified,
155
+ * without removing the collection reference itself.
156
+ */
62
157
  declare function getUnverifyCollectionInstructionAsync<TAccountTreeAuthority extends string, TAccountLeafOwner extends string, TAccountLeafDelegate extends string, TAccountMerkleTree extends string, TAccountPayer extends string, TAccountTreeDelegate extends string, TAccountCollectionAuthority extends string, TAccountCollectionAuthorityRecordPda extends string, TAccountCollectionMint extends string, TAccountCollectionMetadata extends string, TAccountEditionAccount extends string, TAccountBubblegumSigner extends string, TAccountLogWrapper extends string, TAccountCompressionProgram extends string, TAccountTokenMetadataProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof BUBBLEGUM_PROGRAM_ADDRESS>(input: UnverifyCollectionAsyncInput<TAccountTreeAuthority, TAccountLeafOwner, TAccountLeafDelegate, TAccountMerkleTree, TAccountPayer, TAccountTreeDelegate, TAccountCollectionAuthority, TAccountCollectionAuthorityRecordPda, TAccountCollectionMint, TAccountCollectionMetadata, TAccountEditionAccount, TAccountBubblegumSigner, TAccountLogWrapper, TAccountCompressionProgram, TAccountTokenMetadataProgram, TAccountSystemProgram>, config?: {
63
158
  programAddress?: TProgramAddress;
64
159
  }): Promise<UnverifyCollectionInstruction<TProgramAddress, TAccountTreeAuthority, TAccountLeafOwner, TAccountLeafDelegate, TAccountMerkleTree, TAccountPayer, TAccountTreeDelegate, TAccountCollectionAuthority, TAccountCollectionAuthorityRecordPda, TAccountCollectionMint, TAccountCollectionMetadata, TAccountEditionAccount, TAccountBubblegumSigner, TAccountLogWrapper, TAccountCompressionProgram, TAccountTokenMetadataProgram, TAccountSystemProgram>>;
65
- interface UnverifyCollectionInput<TAccountTreeAuthority extends string = string, TAccountLeafOwner extends string = string, TAccountLeafDelegate extends string = string, TAccountMerkleTree extends string = string, TAccountPayer extends string = string, TAccountTreeDelegate extends string = string, TAccountCollectionAuthority extends string = string, TAccountCollectionAuthorityRecordPda extends string = string, TAccountCollectionMint extends string = string, TAccountCollectionMetadata extends string = string, TAccountEditionAccount extends string = string, TAccountBubblegumSigner extends string = string, TAccountLogWrapper extends string = string, TAccountCompressionProgram extends string = string, TAccountTokenMetadataProgram extends string = string, TAccountSystemProgram extends string = string> {
160
+ type UnverifyCollectionInput<TAccountTreeAuthority extends string = string, TAccountLeafOwner extends string = string, TAccountLeafDelegate extends string = string, TAccountMerkleTree extends string = string, TAccountPayer extends string = string, TAccountTreeDelegate extends string = string, TAccountCollectionAuthority extends string = string, TAccountCollectionAuthorityRecordPda extends string = string, TAccountCollectionMint extends string = string, TAccountCollectionMetadata extends string = string, TAccountEditionAccount extends string = string, TAccountBubblegumSigner extends string = string, TAccountLogWrapper extends string = string, TAccountCompressionProgram extends string = string, TAccountTokenMetadataProgram extends string = string, TAccountSystemProgram extends string = string> = {
161
+ /**
162
+ * The tree's `TreeConfig` PDA, which stores its configuration and acts
163
+ * as the tree's authority for CPIs into the compression program.
164
+ */
66
165
  treeAuthority: Address<TAccountTreeAuthority>;
166
+ /** Owner of the compressed NFT leaf being operated on. */
67
167
  leafOwner: Address<TAccountLeafOwner>;
168
+ /**
169
+ * Delegate authority for the leaf; defaults to the leaf owner when no
170
+ * delegate is set.
171
+ */
68
172
  leafDelegate: Address<TAccountLeafDelegate>;
173
+ /**
174
+ * The concurrent Merkle tree account storing the compressed leaves,
175
+ * owned by the account compression program.
176
+ */
69
177
  merkleTree: Address<TAccountMerkleTree>;
178
+ /** Account that pays for the transaction and any account rent. */
70
179
  payer: TransactionSigner<TAccountPayer>;
71
180
  /**
72
- * This account is checked to be a signer in
73
- * the case of `set_and_verify_collection` where
74
- * we are actually changing the NFT metadata.
75
- */
181
+ * Checked as a signer here because this instruction path shares logic
182
+ * with `setAndVerifyCollection`, which actually changes the leaf's
183
+ * metadata.
184
+ */
76
185
  treeDelegate: Address<TAccountTreeDelegate>;
186
+ /**
187
+ * Authority of the collection the asset is being added to or removed
188
+ * from (typically the collection's update authority or a delegate).
189
+ */
77
190
  collectionAuthority: TransactionSigner<TAccountCollectionAuthority>;
78
191
  /**
79
- * If there is no collecton authority record PDA then
80
- * this must be the Bubblegum program address.
81
- */
192
+ * If there is no collection authority record PDA, pass the Bubblegum
193
+ * program address instead.
194
+ */
82
195
  collectionAuthorityRecordPda?: Address<TAccountCollectionAuthorityRecordPda>;
196
+ /** Mint account of the Token Metadata collection NFT. */
83
197
  collectionMint: Address<TAccountCollectionMint>;
198
+ /** Metadata account of the Token Metadata collection NFT. */
84
199
  collectionMetadata: Address<TAccountCollectionMetadata>;
200
+ /** Master edition account of the Token Metadata collection NFT. */
85
201
  editionAccount: Address<TAccountEditionAccount>;
202
+ /**
203
+ * PDA Bubblegum uses to sign the CPI into the Token Metadata program
204
+ * that (un)verifies the collection.
205
+ */
86
206
  bubblegumSigner: Address<TAccountBubblegumSigner>;
207
+ /**
208
+ * The SPL/MPL Noop program, used to log leaf data so off-chain indexers
209
+ * can reconstruct the tree.
210
+ */
87
211
  logWrapper?: Address<TAccountLogWrapper>;
212
+ /**
213
+ * The SPL/MPL Account Compression program that owns and manages the
214
+ * Merkle tree.
215
+ */
88
216
  compressionProgram?: Address<TAccountCompressionProgram>;
217
+ /**
218
+ * The Token Metadata program, invoked to read or (un)verify the
219
+ * legacy collection accounts.
220
+ */
89
221
  tokenMetadataProgram?: Address<TAccountTokenMetadataProgram>;
222
+ /** The Solana System program. */
90
223
  systemProgram?: Address<TAccountSystemProgram>;
91
224
  root: UnverifyCollectionInstructionDataArgs["root"];
92
225
  dataHash: UnverifyCollectionInstructionDataArgs["dataHash"];
@@ -94,41 +227,85 @@ interface UnverifyCollectionInput<TAccountTreeAuthority extends string = string,
94
227
  nonce: UnverifyCollectionInstructionDataArgs["nonce"];
95
228
  index: UnverifyCollectionInstructionDataArgs["index"];
96
229
  message: UnverifyCollectionInstructionDataArgs["message"];
97
- }
230
+ };
231
+ /**
232
+ * Unverifies a previously verified collection from a leaf node.
233
+ *
234
+ * Marks the `collection` field of the leaf's metadata as unverified,
235
+ * without removing the collection reference itself.
236
+ */
98
237
  declare function getUnverifyCollectionInstruction<TAccountTreeAuthority extends string, TAccountLeafOwner extends string, TAccountLeafDelegate extends string, TAccountMerkleTree extends string, TAccountPayer extends string, TAccountTreeDelegate extends string, TAccountCollectionAuthority extends string, TAccountCollectionAuthorityRecordPda extends string, TAccountCollectionMint extends string, TAccountCollectionMetadata extends string, TAccountEditionAccount extends string, TAccountBubblegumSigner extends string, TAccountLogWrapper extends string, TAccountCompressionProgram extends string, TAccountTokenMetadataProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof BUBBLEGUM_PROGRAM_ADDRESS>(input: UnverifyCollectionInput<TAccountTreeAuthority, TAccountLeafOwner, TAccountLeafDelegate, TAccountMerkleTree, TAccountPayer, TAccountTreeDelegate, TAccountCollectionAuthority, TAccountCollectionAuthorityRecordPda, TAccountCollectionMint, TAccountCollectionMetadata, TAccountEditionAccount, TAccountBubblegumSigner, TAccountLogWrapper, TAccountCompressionProgram, TAccountTokenMetadataProgram, TAccountSystemProgram>, config?: {
99
238
  programAddress?: TProgramAddress;
100
239
  }): UnverifyCollectionInstruction<TProgramAddress, TAccountTreeAuthority, TAccountLeafOwner, TAccountLeafDelegate, TAccountMerkleTree, TAccountPayer, TAccountTreeDelegate, TAccountCollectionAuthority, TAccountCollectionAuthorityRecordPda, TAccountCollectionMint, TAccountCollectionMetadata, TAccountEditionAccount, TAccountBubblegumSigner, TAccountLogWrapper, TAccountCompressionProgram, TAccountTokenMetadataProgram, TAccountSystemProgram>;
101
- interface ParsedUnverifyCollectionInstruction<TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> {
240
+ type ParsedUnverifyCollectionInstruction<TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
102
241
  programAddress: Address<TProgram>;
103
242
  accounts: {
243
+ /**
244
+ * The tree's `TreeConfig` PDA, which stores its configuration and acts
245
+ * as the tree's authority for CPIs into the compression program.
246
+ */
104
247
  treeAuthority: TAccountMetas[0];
248
+ /** Owner of the compressed NFT leaf being operated on. */
105
249
  leafOwner: TAccountMetas[1];
250
+ /**
251
+ * Delegate authority for the leaf; defaults to the leaf owner when no
252
+ * delegate is set.
253
+ */
106
254
  leafDelegate: TAccountMetas[2];
255
+ /**
256
+ * The concurrent Merkle tree account storing the compressed leaves,
257
+ * owned by the account compression program.
258
+ */
107
259
  merkleTree: TAccountMetas[3];
260
+ /** Account that pays for the transaction and any account rent. */
108
261
  payer: TAccountMetas[4];
109
262
  /**
110
- * This account is checked to be a signer in
111
- * the case of `set_and_verify_collection` where
112
- * we are actually changing the NFT metadata.
113
- */
263
+ * Checked as a signer here because this instruction path shares logic
264
+ * with `setAndVerifyCollection`, which actually changes the leaf's
265
+ * metadata.
266
+ */
114
267
  treeDelegate: TAccountMetas[5];
268
+ /**
269
+ * Authority of the collection the asset is being added to or removed
270
+ * from (typically the collection's update authority or a delegate).
271
+ */
115
272
  collectionAuthority: TAccountMetas[6];
116
273
  /**
117
- * If there is no collecton authority record PDA then
118
- * this must be the Bubblegum program address.
119
- */
274
+ * If there is no collection authority record PDA, pass the Bubblegum
275
+ * program address instead.
276
+ */
120
277
  collectionAuthorityRecordPda: TAccountMetas[7];
278
+ /** Mint account of the Token Metadata collection NFT. */
121
279
  collectionMint: TAccountMetas[8];
280
+ /** Metadata account of the Token Metadata collection NFT. */
122
281
  collectionMetadata: TAccountMetas[9];
282
+ /** Master edition account of the Token Metadata collection NFT. */
123
283
  editionAccount: TAccountMetas[10];
284
+ /**
285
+ * PDA Bubblegum uses to sign the CPI into the Token Metadata program
286
+ * that (un)verifies the collection.
287
+ */
124
288
  bubblegumSigner: TAccountMetas[11];
289
+ /**
290
+ * The SPL/MPL Noop program, used to log leaf data so off-chain indexers
291
+ * can reconstruct the tree.
292
+ */
125
293
  logWrapper: TAccountMetas[12];
294
+ /**
295
+ * The SPL/MPL Account Compression program that owns and manages the
296
+ * Merkle tree.
297
+ */
126
298
  compressionProgram: TAccountMetas[13];
299
+ /**
300
+ * The Token Metadata program, invoked to read or (un)verify the
301
+ * legacy collection accounts.
302
+ */
127
303
  tokenMetadataProgram: TAccountMetas[14];
304
+ /** The Solana System program. */
128
305
  systemProgram: TAccountMetas[15];
129
306
  };
130
307
  data: UnverifyCollectionInstructionData;
131
- }
308
+ };
132
309
  declare function parseUnverifyCollectionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUnverifyCollectionInstruction<TProgram, TAccountMetas>;
133
310
  //#endregion
134
311
  export { ParsedUnverifyCollectionInstruction, UNVERIFY_COLLECTION_DISCRIMINATOR, UnverifyCollectionAsyncInput, UnverifyCollectionInput, UnverifyCollectionInstruction, UnverifyCollectionInstructionData, UnverifyCollectionInstructionDataArgs, getUnverifyCollectionDiscriminatorBytes, getUnverifyCollectionInstruction, getUnverifyCollectionInstructionAsync, getUnverifyCollectionInstructionDataCodec, getUnverifyCollectionInstructionDataDecoder, getUnverifyCollectionInstructionDataEncoder, parseUnverifyCollectionInstruction };
@@ -1 +1 @@
1
- {"version":3,"file":"unverifyCollection.d.ts","names":[],"sources":["../../../src/generated/instructions/unverifyCollection.ts"],"mappings":";;;;;cA+Da,iCAAA,EAAmC,kBAAA;AAAA,iBAGhC,uCAAA,IAA2C,kBAAA;AAAA,KAM/C,6BAAA,kCACuB,yBAAA,yCACM,WAAA,sDACJ,WAAA,yDACG,WAAA,uDACF,WAAA,kDACL,WAAA,yDACO,WAAA,gEACO,WAAA,yEACS,WAAA,mGAEd,WAAA,+DACI,WAAA,2DACJ,WAAA,4DACC,WAAA,uDACL,WAAA,sGAEQ,WAAA,wGAEE,WAAA,iGAEP,WAAA,mFAEH,WAAA,mBAClC,WAAA,CAAY,QAAA,IACd,mBAAA,CAAoB,kBAAA,IAC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EACA,sBAAA,EACA,uBAAA,EACA,kBAAA,EACA,0BAAA,EACA,4BAAA,EACA,qBAAA,GAEF,MAAA;EAAW,cAAA,GAAiB,eAAA;AAAA,IAC3B,6BAAA,CACD,eAAA,EACA,qBAAA,EACA,iBAAA,EACA,oBAAA,EACA,kBAAA,EACA,aAAA,EACA,oBAAA,EACA,2BAAA,EACA,oCAAA,EACA,sBAAA,EACA,0BAAA,EACA,sBAAA,EACA,uBAAA,EACA,kBAAA,EACA,0BAAA,EACA,4BAAA,EACA,qBAAA;AAAA,UAwHe,mCAAA,kCACkB,yBAAA,iCACF,WAAA,cAAyB,WAAA;EAExD,cAAA,EAAgB,OAAA,CAAQ,QAAA;EACxB,QAAA;IACE,aAAA,EAAe,aAAA;IACf,SAAA,EAAW,aAAA;IACX,YAAA,EAAc,aAAA;IACd,UAAA,EAAY,aAAA;IACZ,KAAA,EAAO,aAAA;IAvjBe;;;;;IA6jBtB,YAAA,EAAc,aAAA;IACd,mBAAA,EAAqB,aAAA;IAxjBf;;;;IA6jBN,4BAAA,EAA8B,aAAA;IAC9B,cAAA,EAAgB,aAAA;IAChB,kBAAA,EAAoB,aAAA;IACpB,cAAA,EAAgB,aAAA;IAChB,eAAA,EAAiB,aAAA;IACjB,UAAA,EAAY,aAAA;IACZ,kBAAA,EAAoB,aAAA;IACpB,oBAAA,EAAsB,aAAA;IACtB,aAAA,EAAe,aAAA;EAAA;EAEjB,IAAA,EAAM,iCAAA;AAAA;AAAA,iBAGQ,kCAAA,yDAEiB,WAAA,IAE/B,WAAA,EAAa,WAAA,CAAY,QAAA,IACvB,uBAAA,CAAwB,aAAA,IACxB,mBAAA,CAAoB,kBAAA,IACrB,mCAAA,CAAoC,QAAA,EAAU,aAAA"}
1
+ {"version":3,"file":"unverifyCollection.d.ts","names":[],"sources":["../../../src/generated/instructions/unverifyCollection.ts"],"mappings":";;;;;;cA8Da,mCAAmC;iBAGhC,2CAA2C;KAM/C,8BACV,iCAAiC,2BACjC,uCAAuC,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AKrB,qBAAqB,QAAQ;;;;;EAK7B,uBAAuB,QAAQ;;EAE/B,gBAAgB,QAAQ;EACxB,MAAM;EACN,UAAU;EACV,aAAa;EACb,OAAO;EACP,OAAO;EACP,SAAS;;;;;;;;iBASK,iCACd,sCACA,kCACA,qCACA,mCACA,8BACA,qCACA,4CACA,qDACA,uCACA,2CACA,uCACA,wCACA,mCACA,2CACA,6CACA,sCACA,wBAAwB,iBAAiB,2BAEzC,OAAO,wBACL,uBACA,mBACA,sBACA,oBACA,eACA,sBACA,6BACA,sCACA,wBACA,4BACA,wBACA,yBACA,oBACA,4BACA,8BACA,wBAEF;EAAW,iBAAiB;IAC3B,8BACD,iBACA,uBACA,mBACA,sBACA,oBACA,eACA,sBACA,6BACA,sCACA,wBACA,4BACA,wBACA,yBACA,oBACA,4BACA,8BACA;KAwHU,oCACV,iCAAiC,2BACjC,+BAA+B,yBAAyB;EAExD,gBAAgB,QAAQ;EACxB;;;;;IAKE,eAAe;;IAEf,WAAW;;;;;IAKX,cAAc;;;;;IAKd,YAAY;;IAEZ,OAAO;;;;;;IAMP,cAAc;;;;;IAKd,qBAAqB;;;;;IAKrB,8BAA8B;;IAE9B,gBAAgB;;IAEhB,oBAAoB;;IAEpB,gBAAgB;;;;;IAKhB,iBAAiB;;;;;IAKjB,YAAY;;;;;IAKZ,oBAAoB;;;;;IAKpB,sBAAsB;;IAEtB,eAAe;;EAEjB,MAAM;;iBAGQ,mCACd,yBACA,+BAA+B,eAE/B,aAAa,YAAY,YACvB,wBAAwB,iBACxB,oBAAoB,sBACrB,oCAAoC,UAAU"}
@@ -7,6 +7,13 @@ import "../programs/bubblegum.js";
7
7
  import { SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, address, combineCodec, fixDecoderSize, fixEncoderSize, getArrayDecoder, getArrayEncoder, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU32Decoder, getU32Encoder, getU64Decoder, getU64Encoder, getU8Decoder, getU8Encoder, transformEncoder } from "@solana/kit";
8
8
  import { getAccountMetaFactory, getAddressFromResolvedInstructionAccount } from "@solana/program-client-core";
9
9
  //#region src/generated/instructions/unverifyCollection.ts
10
+ /**
11
+ * This code was AUTOGENERATED using the Codama library.
12
+ * Please DO NOT EDIT THIS FILE, instead use visitors
13
+ * to add features, then rerun Codama to update it.
14
+ *
15
+ * @see https://github.com/codama-idl/codama
16
+ */
10
17
  const UNVERIFY_COLLECTION_DISCRIMINATOR = new Uint8Array([
11
18
  250,
12
19
  251,
@@ -48,6 +55,12 @@ function getUnverifyCollectionInstructionDataDecoder() {
48
55
  function getUnverifyCollectionInstructionDataCodec() {
49
56
  return combineCodec(getUnverifyCollectionInstructionDataEncoder(), getUnverifyCollectionInstructionDataDecoder());
50
57
  }
58
+ /**
59
+ * Unverifies a previously verified collection from a leaf node.
60
+ *
61
+ * Marks the `collection` field of the leaf's metadata as unverified,
62
+ * without removing the collection reference itself.
63
+ */
51
64
  async function getUnverifyCollectionInstructionAsync(input, config) {
52
65
  const programAddress = config?.programAddress ?? "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY";
53
66
  const accounts = {
@@ -159,6 +172,12 @@ async function getUnverifyCollectionInstructionAsync(input, config) {
159
172
  programAddress
160
173
  });
161
174
  }
175
+ /**
176
+ * Unverifies a previously verified collection from a leaf node.
177
+ *
178
+ * Marks the `collection` field of the leaf's metadata as unverified,
179
+ * without removing the collection reference itself.
180
+ */
162
181
  function getUnverifyCollectionInstruction(input, config) {
163
182
  const programAddress = config?.programAddress ?? "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY";
164
183
  const accounts = {