@macalinao/clients-mpl-bubblegum 0.3.0 → 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 +8 -12
  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 +163 -44
  266. package/src/generated/instructions/burnV2.ts +205 -64
  267. package/src/generated/instructions/cancelRedeem.ts +122 -41
  268. package/src/generated/instructions/closeTreeV2.ts +102 -44
  269. package/src/generated/instructions/collectV2.ts +34 -23
  270. package/src/generated/instructions/compress.ts +146 -45
  271. package/src/generated/instructions/createTree.ts +143 -42
  272. package/src/generated/instructions/createTreeV2.ts +134 -45
  273. package/src/generated/instructions/decompressV1.ts +136 -49
  274. package/src/generated/instructions/delegate.ts +165 -47
  275. package/src/generated/instructions/delegateAndFreezeV2.ts +197 -60
  276. package/src/generated/instructions/delegateV2.ts +195 -60
  277. package/src/generated/instructions/freezeV2.ts +199 -58
  278. package/src/generated/instructions/mintToCollectionV1.ts +196 -52
  279. package/src/generated/instructions/mintV1.ts +133 -40
  280. package/src/generated/instructions/mintV2.ts +192 -57
  281. package/src/generated/instructions/redeem.ts +178 -47
  282. package/src/generated/instructions/setAndVerifyCollection.ts +246 -69
  283. package/src/generated/instructions/setCollectionV2.ts +212 -73
  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 +190 -61
  287. package/src/generated/instructions/setTreeDelegate.ts +84 -31
  288. package/src/generated/instructions/thawAndRevokeV2.ts +185 -57
  289. package/src/generated/instructions/thawV2.ts +191 -58
  290. package/src/generated/instructions/transfer.ts +162 -44
  291. package/src/generated/instructions/transferV2.ts +191 -61
  292. package/src/generated/instructions/unverifyCollection.ts +239 -69
  293. package/src/generated/instructions/unverifyCreator.ts +187 -48
  294. package/src/generated/instructions/unverifyCreatorV2.ts +170 -55
  295. package/src/generated/instructions/updateAssetDataV2.ts +206 -59
  296. package/src/generated/instructions/updateMetadata.ts +210 -67
  297. package/src/generated/instructions/updateMetadataV2.ts +189 -63
  298. package/src/generated/instructions/verifyCollection.ts +239 -69
  299. package/src/generated/instructions/verifyCreator.ts +187 -48
  300. package/src/generated/instructions/verifyCreatorV2.ts +170 -55
  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
@@ -6,128 +6,128 @@
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
 
9
- import type {
10
- Address,
11
- SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM,
12
- SolanaError,
9
+ import {
10
+ isProgramError,
11
+ type Address,
12
+ type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM,
13
+ type SolanaError,
13
14
  } from "@solana/kit";
14
- import { isProgramError } from "@solana/kit";
15
15
  import { BUBBLEGUM_PROGRAM_ADDRESS } from "../programs/index.js";
16
16
 
17
17
  /** AssetOwnerMismatch: Asset Owner Does not match */
18
- export const BUBBLEGUM_ERROR__ASSET_OWNER_MISMATCH = 0x17_70; // 6000
18
+ export const BUBBLEGUM_ERROR__ASSET_OWNER_MISMATCH = 0x1770; // 6000
19
19
  /** PublicKeyMismatch: PublicKeyMismatch */
20
- export const BUBBLEGUM_ERROR__PUBLIC_KEY_MISMATCH = 0x17_71; // 6001
20
+ export const BUBBLEGUM_ERROR__PUBLIC_KEY_MISMATCH = 0x1771; // 6001
21
21
  /** HashingMismatch: Hashing Mismatch Within Leaf Schema */
22
- export const BUBBLEGUM_ERROR__HASHING_MISMATCH = 0x17_72; // 6002
22
+ export const BUBBLEGUM_ERROR__HASHING_MISMATCH = 0x1772; // 6002
23
23
  /** UnsupportedSchemaVersion: Unsupported Schema Version */
24
- export const BUBBLEGUM_ERROR__UNSUPPORTED_SCHEMA_VERSION = 0x17_73; // 6003
24
+ export const BUBBLEGUM_ERROR__UNSUPPORTED_SCHEMA_VERSION = 0x1773; // 6003
25
25
  /** CreatorShareTotalMustBe100: Creator shares must sum to 100 */
26
- export const BUBBLEGUM_ERROR__CREATOR_SHARE_TOTAL_MUST_BE100 = 0x17_74; // 6004
26
+ export const BUBBLEGUM_ERROR__CREATOR_SHARE_TOTAL_MUST_BE100 = 0x1774; // 6004
27
27
  /** DuplicateCreatorAddress: No duplicate creator addresses in metadata */
28
- export const BUBBLEGUM_ERROR__DUPLICATE_CREATOR_ADDRESS = 0x17_75; // 6005
28
+ export const BUBBLEGUM_ERROR__DUPLICATE_CREATOR_ADDRESS = 0x1775; // 6005
29
29
  /** CreatorDidNotVerify: Creator did not verify the metadata */
30
- export const BUBBLEGUM_ERROR__CREATOR_DID_NOT_VERIFY = 0x17_76; // 6006
30
+ export const BUBBLEGUM_ERROR__CREATOR_DID_NOT_VERIFY = 0x1776; // 6006
31
31
  /** CreatorNotFound: Creator not found in creator Vec */
32
- export const BUBBLEGUM_ERROR__CREATOR_NOT_FOUND = 0x17_77; // 6007
32
+ export const BUBBLEGUM_ERROR__CREATOR_NOT_FOUND = 0x1777; // 6007
33
33
  /** NoCreatorsPresent: No creators in creator Vec */
34
- export const BUBBLEGUM_ERROR__NO_CREATORS_PRESENT = 0x17_78; // 6008
34
+ export const BUBBLEGUM_ERROR__NO_CREATORS_PRESENT = 0x1778; // 6008
35
35
  /** CreatorHashMismatch: User-provided creator Vec must result in same user-provided creator hash */
36
- export const BUBBLEGUM_ERROR__CREATOR_HASH_MISMATCH = 0x17_79; // 6009
36
+ export const BUBBLEGUM_ERROR__CREATOR_HASH_MISMATCH = 0x1779; // 6009
37
37
  /** DataHashMismatch: User-provided metadata must result in same user-provided data hash */
38
- export const BUBBLEGUM_ERROR__DATA_HASH_MISMATCH = 0x17_7a; // 6010
38
+ export const BUBBLEGUM_ERROR__DATA_HASH_MISMATCH = 0x177a; // 6010
39
39
  /** CreatorsTooLong: Creators list too long */
40
- export const BUBBLEGUM_ERROR__CREATORS_TOO_LONG = 0x17_7b; // 6011
40
+ export const BUBBLEGUM_ERROR__CREATORS_TOO_LONG = 0x177b; // 6011
41
41
  /** MetadataNameTooLong: Name in metadata is too long */
42
- export const BUBBLEGUM_ERROR__METADATA_NAME_TOO_LONG = 0x17_7c; // 6012
42
+ export const BUBBLEGUM_ERROR__METADATA_NAME_TOO_LONG = 0x177c; // 6012
43
43
  /** MetadataSymbolTooLong: Symbol in metadata is too long */
44
- export const BUBBLEGUM_ERROR__METADATA_SYMBOL_TOO_LONG = 0x17_7d; // 6013
44
+ export const BUBBLEGUM_ERROR__METADATA_SYMBOL_TOO_LONG = 0x177d; // 6013
45
45
  /** MetadataUriTooLong: Uri in metadata is too long */
46
- export const BUBBLEGUM_ERROR__METADATA_URI_TOO_LONG = 0x17_7e; // 6014
46
+ export const BUBBLEGUM_ERROR__METADATA_URI_TOO_LONG = 0x177e; // 6014
47
47
  /** MetadataBasisPointsTooHigh: Basis points in metadata cannot exceed 10000 */
48
- export const BUBBLEGUM_ERROR__METADATA_BASIS_POINTS_TOO_HIGH = 0x17_7f; // 6015
48
+ export const BUBBLEGUM_ERROR__METADATA_BASIS_POINTS_TOO_HIGH = 0x177f; // 6015
49
49
  /** TreeAuthorityIncorrect: Tree creator or tree delegate must sign. */
50
- export const BUBBLEGUM_ERROR__TREE_AUTHORITY_INCORRECT = 0x17_80; // 6016
50
+ export const BUBBLEGUM_ERROR__TREE_AUTHORITY_INCORRECT = 0x1780; // 6016
51
51
  /** InsufficientMintCapacity: Not enough unapproved mints left */
52
- export const BUBBLEGUM_ERROR__INSUFFICIENT_MINT_CAPACITY = 0x17_81; // 6017
52
+ export const BUBBLEGUM_ERROR__INSUFFICIENT_MINT_CAPACITY = 0x1781; // 6017
53
53
  /** NumericalOverflowError: NumericalOverflowError */
54
- export const BUBBLEGUM_ERROR__NUMERICAL_OVERFLOW_ERROR = 0x17_82; // 6018
54
+ export const BUBBLEGUM_ERROR__NUMERICAL_OVERFLOW_ERROR = 0x1782; // 6018
55
55
  /** IncorrectOwner: Incorrect account owner */
56
- export const BUBBLEGUM_ERROR__INCORRECT_OWNER = 0x17_83; // 6019
56
+ export const BUBBLEGUM_ERROR__INCORRECT_OWNER = 0x1783; // 6019
57
57
  /** CollectionCannotBeVerifiedInThisInstruction: Cannot Verify Collection in this Instruction */
58
- export const BUBBLEGUM_ERROR__COLLECTION_CANNOT_BE_VERIFIED_IN_THIS_INSTRUCTION = 0x17_84; // 6020
58
+ export const BUBBLEGUM_ERROR__COLLECTION_CANNOT_BE_VERIFIED_IN_THIS_INSTRUCTION = 0x1784; // 6020
59
59
  /** CollectionNotFound: Collection Not Found on Metadata */
60
- export const BUBBLEGUM_ERROR__COLLECTION_NOT_FOUND = 0x17_85; // 6021
60
+ export const BUBBLEGUM_ERROR__COLLECTION_NOT_FOUND = 0x1785; // 6021
61
61
  /** AlreadyVerified: Collection item is already verified. */
62
- export const BUBBLEGUM_ERROR__ALREADY_VERIFIED = 0x17_86; // 6022
62
+ export const BUBBLEGUM_ERROR__ALREADY_VERIFIED = 0x1786; // 6022
63
63
  /** AlreadyUnverified: Collection item is already unverified. */
64
- export const BUBBLEGUM_ERROR__ALREADY_UNVERIFIED = 0x17_87; // 6023
64
+ export const BUBBLEGUM_ERROR__ALREADY_UNVERIFIED = 0x1787; // 6023
65
65
  /** UpdateAuthorityIncorrect: Incorrect leaf metadata update authority. */
66
- export const BUBBLEGUM_ERROR__UPDATE_AUTHORITY_INCORRECT = 0x17_88; // 6024
66
+ export const BUBBLEGUM_ERROR__UPDATE_AUTHORITY_INCORRECT = 0x1788; // 6024
67
67
  /** LeafAuthorityMustSign: This transaction must be signed by either the leaf owner or leaf delegate */
68
- export const BUBBLEGUM_ERROR__LEAF_AUTHORITY_MUST_SIGN = 0x17_89; // 6025
68
+ export const BUBBLEGUM_ERROR__LEAF_AUTHORITY_MUST_SIGN = 0x1789; // 6025
69
69
  /** CollectionMustBeSized: Collection Not Compatable with Compression, Must be Sized */
70
- export const BUBBLEGUM_ERROR__COLLECTION_MUST_BE_SIZED = 0x17_8a; // 6026
70
+ export const BUBBLEGUM_ERROR__COLLECTION_MUST_BE_SIZED = 0x178a; // 6026
71
71
  /** MetadataMintMismatch: Metadata mint does not match collection mint */
72
- export const BUBBLEGUM_ERROR__METADATA_MINT_MISMATCH = 0x17_8b; // 6027
72
+ export const BUBBLEGUM_ERROR__METADATA_MINT_MISMATCH = 0x178b; // 6027
73
73
  /** InvalidCollectionAuthority: Invalid collection authority */
74
- export const BUBBLEGUM_ERROR__INVALID_COLLECTION_AUTHORITY = 0x17_8c; // 6028
74
+ export const BUBBLEGUM_ERROR__INVALID_COLLECTION_AUTHORITY = 0x178c; // 6028
75
75
  /** InvalidDelegateRecord: Invalid delegate record pda derivation */
76
- export const BUBBLEGUM_ERROR__INVALID_DELEGATE_RECORD = 0x17_8d; // 6029
76
+ export const BUBBLEGUM_ERROR__INVALID_DELEGATE_RECORD = 0x178d; // 6029
77
77
  /** CollectionMasterEditionAccountInvalid: Edition account doesnt match collection */
78
- export const BUBBLEGUM_ERROR__COLLECTION_MASTER_EDITION_ACCOUNT_INVALID = 0x17_8e; // 6030
78
+ export const BUBBLEGUM_ERROR__COLLECTION_MASTER_EDITION_ACCOUNT_INVALID = 0x178e; // 6030
79
79
  /** CollectionMustBeAUniqueMasterEdition: Collection Must Be a Unique Master Edition v2 */
80
- export const BUBBLEGUM_ERROR__COLLECTION_MUST_BE_A_UNIQUE_MASTER_EDITION = 0x17_8f; // 6031
80
+ export const BUBBLEGUM_ERROR__COLLECTION_MUST_BE_A_UNIQUE_MASTER_EDITION = 0x178f; // 6031
81
81
  /** UnknownExternalError: Could not convert external error to BubblegumError */
82
- export const BUBBLEGUM_ERROR__UNKNOWN_EXTERNAL_ERROR = 0x17_90; // 6032
82
+ export const BUBBLEGUM_ERROR__UNKNOWN_EXTERNAL_ERROR = 0x1790; // 6032
83
83
  /** DecompressionDisabled: Decompression is disabled for this tree. */
84
- export const BUBBLEGUM_ERROR__DECOMPRESSION_DISABLED = 0x17_91; // 6033
84
+ export const BUBBLEGUM_ERROR__DECOMPRESSION_DISABLED = 0x1791; // 6033
85
85
  /** MissingCollectionMintAccount: Missing collection mint account */
86
- export const BUBBLEGUM_ERROR__MISSING_COLLECTION_MINT_ACCOUNT = 0x17_92; // 6034
86
+ export const BUBBLEGUM_ERROR__MISSING_COLLECTION_MINT_ACCOUNT = 0x1792; // 6034
87
87
  /** MissingCollectionMetadataAccount: Missing collection metadata account */
88
- export const BUBBLEGUM_ERROR__MISSING_COLLECTION_METADATA_ACCOUNT = 0x17_93; // 6035
88
+ export const BUBBLEGUM_ERROR__MISSING_COLLECTION_METADATA_ACCOUNT = 0x1793; // 6035
89
89
  /** CollectionMismatch: Collection mismatch */
90
- export const BUBBLEGUM_ERROR__COLLECTION_MISMATCH = 0x17_94; // 6036
90
+ export const BUBBLEGUM_ERROR__COLLECTION_MISMATCH = 0x1794; // 6036
91
91
  /** MetadataImmutable: Metadata not mutable */
92
- export const BUBBLEGUM_ERROR__METADATA_IMMUTABLE = 0x17_95; // 6037
92
+ export const BUBBLEGUM_ERROR__METADATA_IMMUTABLE = 0x1795; // 6037
93
93
  /** PrimarySaleCanOnlyBeFlippedToTrue: Can only update primary sale to true */
94
- export const BUBBLEGUM_ERROR__PRIMARY_SALE_CAN_ONLY_BE_FLIPPED_TO_TRUE = 0x17_96; // 6038
94
+ export const BUBBLEGUM_ERROR__PRIMARY_SALE_CAN_ONLY_BE_FLIPPED_TO_TRUE = 0x1796; // 6038
95
95
  /** CreatorDidNotUnverify: Creator did not unverify the metadata */
96
- export const BUBBLEGUM_ERROR__CREATOR_DID_NOT_UNVERIFY = 0x17_97; // 6039
96
+ export const BUBBLEGUM_ERROR__CREATOR_DID_NOT_UNVERIFY = 0x1797; // 6039
97
97
  /** InvalidTokenStandard: Only NonFungible standard is supported */
98
- export const BUBBLEGUM_ERROR__INVALID_TOKEN_STANDARD = 0x17_98; // 6040
98
+ export const BUBBLEGUM_ERROR__INVALID_TOKEN_STANDARD = 0x1798; // 6040
99
99
  /** InvalidCanopySize: Canopy size should be set bigger for this tree */
100
- export const BUBBLEGUM_ERROR__INVALID_CANOPY_SIZE = 0x17_99; // 6041
100
+ export const BUBBLEGUM_ERROR__INVALID_CANOPY_SIZE = 0x1799; // 6041
101
101
  /** InvalidLogWrapper: Invalid log wrapper program */
102
- export const BUBBLEGUM_ERROR__INVALID_LOG_WRAPPER = 0x17_9a; // 6042
102
+ export const BUBBLEGUM_ERROR__INVALID_LOG_WRAPPER = 0x179a; // 6042
103
103
  /** InvalidCompressionProgram: Invalid compression program */
104
- export const BUBBLEGUM_ERROR__INVALID_COMPRESSION_PROGRAM = 0x17_9b; // 6043
104
+ export const BUBBLEGUM_ERROR__INVALID_COMPRESSION_PROGRAM = 0x179b; // 6043
105
105
  /** LeafMustBeDelegated: Leaf must be delegated to someone other than the leaf owner */
106
- export const BUBBLEGUM_ERROR__LEAF_MUST_BE_DELEGATED = 0x17_9c; // 6044
106
+ export const BUBBLEGUM_ERROR__LEAF_MUST_BE_DELEGATED = 0x179c; // 6044
107
107
  /** AssetIsFrozen: Asset is frozen */
108
- export const BUBBLEGUM_ERROR__ASSET_IS_FROZEN = 0x17_9d; // 6045
108
+ export const BUBBLEGUM_ERROR__ASSET_IS_FROZEN = 0x179d; // 6045
109
109
  /** AssetIsNonTransferable: Asset is non-transferable */
110
- export const BUBBLEGUM_ERROR__ASSET_IS_NON_TRANSFERABLE = 0x17_9e; // 6046
110
+ export const BUBBLEGUM_ERROR__ASSET_IS_NON_TRANSFERABLE = 0x179e; // 6046
111
111
  /** InvalidAuthority: Invalid authority */
112
- export const BUBBLEGUM_ERROR__INVALID_AUTHORITY = 0x17_9f; // 6047
112
+ export const BUBBLEGUM_ERROR__INVALID_AUTHORITY = 0x179f; // 6047
113
113
  /** CollectionIsFrozen: Collection is frozen */
114
- export const BUBBLEGUM_ERROR__COLLECTION_IS_FROZEN = 0x17_a0; // 6048
114
+ export const BUBBLEGUM_ERROR__COLLECTION_IS_FROZEN = 0x17a0; // 6048
115
115
  /** CollectionMustHaveBubblegumPlugin: Core collections must have the Bubblegum V2 plugin on them */
116
- export const BUBBLEGUM_ERROR__COLLECTION_MUST_HAVE_BUBBLEGUM_PLUGIN = 0x17_a1; // 6049
116
+ export const BUBBLEGUM_ERROR__COLLECTION_MUST_HAVE_BUBBLEGUM_PLUGIN = 0x17a1; // 6049
117
117
  /** NotAvailable: Feature not currently available */
118
- export const BUBBLEGUM_ERROR__NOT_AVAILABLE = 0x17_a2; // 6050
118
+ export const BUBBLEGUM_ERROR__NOT_AVAILABLE = 0x17a2; // 6050
119
119
  /** MissingCollectionAccount: Missing collection account */
120
- export const BUBBLEGUM_ERROR__MISSING_COLLECTION_ACCOUNT = 0x17_a3; // 6051
120
+ export const BUBBLEGUM_ERROR__MISSING_COLLECTION_ACCOUNT = 0x17a3; // 6051
121
121
  /** AssetDataLengthTooLong: Asset data length too long */
122
- export const BUBBLEGUM_ERROR__ASSET_DATA_LENGTH_TOO_LONG = 0x17_a4; // 6052
122
+ export const BUBBLEGUM_ERROR__ASSET_DATA_LENGTH_TOO_LONG = 0x17a4; // 6052
123
123
  /** AlreadyInCollection: Item is already in the collection */
124
- export const BUBBLEGUM_ERROR__ALREADY_IN_COLLECTION = 0x17_a5; // 6053
124
+ export const BUBBLEGUM_ERROR__ALREADY_IN_COLLECTION = 0x17a5; // 6053
125
125
  /** AlreadyNotInCollection: Item is already not in a collection */
126
- export const BUBBLEGUM_ERROR__ALREADY_NOT_IN_COLLECTION = 0x17_a6; // 6054
126
+ export const BUBBLEGUM_ERROR__ALREADY_NOT_IN_COLLECTION = 0x17a6; // 6054
127
127
  /** MissingMplCoreCpiSignerAccount: Missing mpl-core CPI signer account */
128
- export const BUBBLEGUM_ERROR__MISSING_MPL_CORE_CPI_SIGNER_ACCOUNT = 0x17_a7; // 6055
128
+ export const BUBBLEGUM_ERROR__MISSING_MPL_CORE_CPI_SIGNER_ACCOUNT = 0x17a7; // 6055
129
129
  /** AssetIsNotFrozen: Asset is not frozen */
130
- export const BUBBLEGUM_ERROR__ASSET_IS_NOT_FROZEN = 0x17_a8; // 6056
130
+ export const BUBBLEGUM_ERROR__ASSET_IS_NOT_FROZEN = 0x17a8; // 6056
131
131
 
132
132
  export type BubblegumError =
133
133
  | typeof BUBBLEGUM_ERROR__ALREADY_IN_COLLECTION
@@ -189,103 +189,70 @@ export type BubblegumError =
189
189
  | typeof BUBBLEGUM_ERROR__UPDATE_AUTHORITY_INCORRECT;
190
190
 
191
191
  let bubblegumErrorMessages: Record<BubblegumError, string> | undefined;
192
- if (process.env.NODE_ENV !== "production") {
192
+ if (process.env["NODE_ENV"] !== "production") {
193
193
  bubblegumErrorMessages = {
194
- [BUBBLEGUM_ERROR__ALREADY_IN_COLLECTION]:
195
- "Item is already in the collection",
196
- [BUBBLEGUM_ERROR__ALREADY_NOT_IN_COLLECTION]:
197
- "Item is already not in a collection",
198
- [BUBBLEGUM_ERROR__ALREADY_UNVERIFIED]:
199
- "Collection item is already unverified.",
200
- [BUBBLEGUM_ERROR__ALREADY_VERIFIED]: "Collection item is already verified.",
201
- [BUBBLEGUM_ERROR__ASSET_DATA_LENGTH_TOO_LONG]: "Asset data length too long",
202
- [BUBBLEGUM_ERROR__ASSET_IS_FROZEN]: "Asset is frozen",
203
- [BUBBLEGUM_ERROR__ASSET_IS_NON_TRANSFERABLE]: "Asset is non-transferable",
204
- [BUBBLEGUM_ERROR__ASSET_IS_NOT_FROZEN]: "Asset is not frozen",
205
- [BUBBLEGUM_ERROR__ASSET_OWNER_MISMATCH]: "Asset Owner Does not match",
206
- [BUBBLEGUM_ERROR__COLLECTION_CANNOT_BE_VERIFIED_IN_THIS_INSTRUCTION]:
207
- "Cannot Verify Collection in this Instruction",
208
- [BUBBLEGUM_ERROR__COLLECTION_IS_FROZEN]: "Collection is frozen",
209
- [BUBBLEGUM_ERROR__COLLECTION_MASTER_EDITION_ACCOUNT_INVALID]:
210
- "Edition account doesnt match collection",
211
- [BUBBLEGUM_ERROR__COLLECTION_MISMATCH]: "Collection mismatch",
212
- [BUBBLEGUM_ERROR__COLLECTION_MUST_BE_A_UNIQUE_MASTER_EDITION]:
213
- "Collection Must Be a Unique Master Edition v2",
214
- [BUBBLEGUM_ERROR__COLLECTION_MUST_BE_SIZED]:
215
- "Collection Not Compatable with Compression, Must be Sized",
216
- [BUBBLEGUM_ERROR__COLLECTION_MUST_HAVE_BUBBLEGUM_PLUGIN]:
217
- "Core collections must have the Bubblegum V2 plugin on them",
218
- [BUBBLEGUM_ERROR__COLLECTION_NOT_FOUND]: "Collection Not Found on Metadata",
219
- [BUBBLEGUM_ERROR__CREATOR_DID_NOT_UNVERIFY]:
220
- "Creator did not unverify the metadata",
221
- [BUBBLEGUM_ERROR__CREATOR_DID_NOT_VERIFY]:
222
- "Creator did not verify the metadata",
223
- [BUBBLEGUM_ERROR__CREATOR_HASH_MISMATCH]:
224
- "User-provided creator Vec must result in same user-provided creator hash",
225
- [BUBBLEGUM_ERROR__CREATOR_NOT_FOUND]: "Creator not found in creator Vec",
226
- [BUBBLEGUM_ERROR__CREATOR_SHARE_TOTAL_MUST_BE100]:
227
- "Creator shares must sum to 100",
228
- [BUBBLEGUM_ERROR__CREATORS_TOO_LONG]: "Creators list too long",
229
- [BUBBLEGUM_ERROR__DATA_HASH_MISMATCH]:
230
- "User-provided metadata must result in same user-provided data hash",
231
- [BUBBLEGUM_ERROR__DECOMPRESSION_DISABLED]:
232
- "Decompression is disabled for this tree.",
233
- [BUBBLEGUM_ERROR__DUPLICATE_CREATOR_ADDRESS]:
234
- "No duplicate creator addresses in metadata",
235
- [BUBBLEGUM_ERROR__HASHING_MISMATCH]: "Hashing Mismatch Within Leaf Schema",
236
- [BUBBLEGUM_ERROR__INCORRECT_OWNER]: "Incorrect account owner",
237
- [BUBBLEGUM_ERROR__INSUFFICIENT_MINT_CAPACITY]:
238
- "Not enough unapproved mints left",
239
- [BUBBLEGUM_ERROR__INVALID_AUTHORITY]: "Invalid authority",
240
- [BUBBLEGUM_ERROR__INVALID_CANOPY_SIZE]:
241
- "Canopy size should be set bigger for this tree",
242
- [BUBBLEGUM_ERROR__INVALID_COLLECTION_AUTHORITY]:
243
- "Invalid collection authority",
244
- [BUBBLEGUM_ERROR__INVALID_COMPRESSION_PROGRAM]:
245
- "Invalid compression program",
246
- [BUBBLEGUM_ERROR__INVALID_DELEGATE_RECORD]:
247
- "Invalid delegate record pda derivation",
248
- [BUBBLEGUM_ERROR__INVALID_LOG_WRAPPER]: "Invalid log wrapper program",
249
- [BUBBLEGUM_ERROR__INVALID_TOKEN_STANDARD]:
250
- "Only NonFungible standard is supported",
251
- [BUBBLEGUM_ERROR__LEAF_AUTHORITY_MUST_SIGN]:
252
- "This transaction must be signed by either the leaf owner or leaf delegate",
253
- [BUBBLEGUM_ERROR__LEAF_MUST_BE_DELEGATED]:
254
- "Leaf must be delegated to someone other than the leaf owner",
255
- [BUBBLEGUM_ERROR__METADATA_BASIS_POINTS_TOO_HIGH]:
256
- "Basis points in metadata cannot exceed 10000",
257
- [BUBBLEGUM_ERROR__METADATA_IMMUTABLE]: "Metadata not mutable",
258
- [BUBBLEGUM_ERROR__METADATA_MINT_MISMATCH]:
259
- "Metadata mint does not match collection mint",
260
- [BUBBLEGUM_ERROR__METADATA_NAME_TOO_LONG]: "Name in metadata is too long",
261
- [BUBBLEGUM_ERROR__METADATA_SYMBOL_TOO_LONG]:
262
- "Symbol in metadata is too long",
263
- [BUBBLEGUM_ERROR__METADATA_URI_TOO_LONG]: "Uri in metadata is too long",
264
- [BUBBLEGUM_ERROR__MISSING_COLLECTION_ACCOUNT]: "Missing collection account",
265
- [BUBBLEGUM_ERROR__MISSING_COLLECTION_METADATA_ACCOUNT]:
266
- "Missing collection metadata account",
267
- [BUBBLEGUM_ERROR__MISSING_COLLECTION_MINT_ACCOUNT]:
268
- "Missing collection mint account",
269
- [BUBBLEGUM_ERROR__MISSING_MPL_CORE_CPI_SIGNER_ACCOUNT]:
270
- "Missing mpl-core CPI signer account",
271
- [BUBBLEGUM_ERROR__NO_CREATORS_PRESENT]: "No creators in creator Vec",
272
- [BUBBLEGUM_ERROR__NOT_AVAILABLE]: "Feature not currently available",
273
- [BUBBLEGUM_ERROR__NUMERICAL_OVERFLOW_ERROR]: "NumericalOverflowError",
274
- [BUBBLEGUM_ERROR__PRIMARY_SALE_CAN_ONLY_BE_FLIPPED_TO_TRUE]:
275
- "Can only update primary sale to true",
276
- [BUBBLEGUM_ERROR__PUBLIC_KEY_MISMATCH]: "PublicKeyMismatch",
277
- [BUBBLEGUM_ERROR__TREE_AUTHORITY_INCORRECT]:
278
- "Tree creator or tree delegate must sign.",
279
- [BUBBLEGUM_ERROR__UNKNOWN_EXTERNAL_ERROR]:
280
- "Could not convert external error to BubblegumError",
281
- [BUBBLEGUM_ERROR__UNSUPPORTED_SCHEMA_VERSION]: "Unsupported Schema Version",
282
- [BUBBLEGUM_ERROR__UPDATE_AUTHORITY_INCORRECT]:
283
- "Incorrect leaf metadata update authority.",
194
+ [BUBBLEGUM_ERROR__ALREADY_IN_COLLECTION]: `Item is already in the collection`,
195
+ [BUBBLEGUM_ERROR__ALREADY_NOT_IN_COLLECTION]: `Item is already not in a collection`,
196
+ [BUBBLEGUM_ERROR__ALREADY_UNVERIFIED]: `Collection item is already unverified.`,
197
+ [BUBBLEGUM_ERROR__ALREADY_VERIFIED]: `Collection item is already verified.`,
198
+ [BUBBLEGUM_ERROR__ASSET_DATA_LENGTH_TOO_LONG]: `Asset data length too long`,
199
+ [BUBBLEGUM_ERROR__ASSET_IS_FROZEN]: `Asset is frozen`,
200
+ [BUBBLEGUM_ERROR__ASSET_IS_NON_TRANSFERABLE]: `Asset is non-transferable`,
201
+ [BUBBLEGUM_ERROR__ASSET_IS_NOT_FROZEN]: `Asset is not frozen`,
202
+ [BUBBLEGUM_ERROR__ASSET_OWNER_MISMATCH]: `Asset Owner Does not match`,
203
+ [BUBBLEGUM_ERROR__COLLECTION_CANNOT_BE_VERIFIED_IN_THIS_INSTRUCTION]: `Cannot Verify Collection in this Instruction`,
204
+ [BUBBLEGUM_ERROR__COLLECTION_IS_FROZEN]: `Collection is frozen`,
205
+ [BUBBLEGUM_ERROR__COLLECTION_MASTER_EDITION_ACCOUNT_INVALID]: `Edition account doesnt match collection`,
206
+ [BUBBLEGUM_ERROR__COLLECTION_MISMATCH]: `Collection mismatch`,
207
+ [BUBBLEGUM_ERROR__COLLECTION_MUST_BE_A_UNIQUE_MASTER_EDITION]: `Collection Must Be a Unique Master Edition v2`,
208
+ [BUBBLEGUM_ERROR__COLLECTION_MUST_BE_SIZED]: `Collection Not Compatable with Compression, Must be Sized`,
209
+ [BUBBLEGUM_ERROR__COLLECTION_MUST_HAVE_BUBBLEGUM_PLUGIN]: `Core collections must have the Bubblegum V2 plugin on them`,
210
+ [BUBBLEGUM_ERROR__COLLECTION_NOT_FOUND]: `Collection Not Found on Metadata`,
211
+ [BUBBLEGUM_ERROR__CREATOR_DID_NOT_UNVERIFY]: `Creator did not unverify the metadata`,
212
+ [BUBBLEGUM_ERROR__CREATOR_DID_NOT_VERIFY]: `Creator did not verify the metadata`,
213
+ [BUBBLEGUM_ERROR__CREATOR_HASH_MISMATCH]: `User-provided creator Vec must result in same user-provided creator hash`,
214
+ [BUBBLEGUM_ERROR__CREATOR_NOT_FOUND]: `Creator not found in creator Vec`,
215
+ [BUBBLEGUM_ERROR__CREATOR_SHARE_TOTAL_MUST_BE100]: `Creator shares must sum to 100`,
216
+ [BUBBLEGUM_ERROR__CREATORS_TOO_LONG]: `Creators list too long`,
217
+ [BUBBLEGUM_ERROR__DATA_HASH_MISMATCH]: `User-provided metadata must result in same user-provided data hash`,
218
+ [BUBBLEGUM_ERROR__DECOMPRESSION_DISABLED]: `Decompression is disabled for this tree.`,
219
+ [BUBBLEGUM_ERROR__DUPLICATE_CREATOR_ADDRESS]: `No duplicate creator addresses in metadata`,
220
+ [BUBBLEGUM_ERROR__HASHING_MISMATCH]: `Hashing Mismatch Within Leaf Schema`,
221
+ [BUBBLEGUM_ERROR__INCORRECT_OWNER]: `Incorrect account owner`,
222
+ [BUBBLEGUM_ERROR__INSUFFICIENT_MINT_CAPACITY]: `Not enough unapproved mints left`,
223
+ [BUBBLEGUM_ERROR__INVALID_AUTHORITY]: `Invalid authority`,
224
+ [BUBBLEGUM_ERROR__INVALID_CANOPY_SIZE]: `Canopy size should be set bigger for this tree`,
225
+ [BUBBLEGUM_ERROR__INVALID_COLLECTION_AUTHORITY]: `Invalid collection authority`,
226
+ [BUBBLEGUM_ERROR__INVALID_COMPRESSION_PROGRAM]: `Invalid compression program`,
227
+ [BUBBLEGUM_ERROR__INVALID_DELEGATE_RECORD]: `Invalid delegate record pda derivation`,
228
+ [BUBBLEGUM_ERROR__INVALID_LOG_WRAPPER]: `Invalid log wrapper program`,
229
+ [BUBBLEGUM_ERROR__INVALID_TOKEN_STANDARD]: `Only NonFungible standard is supported`,
230
+ [BUBBLEGUM_ERROR__LEAF_AUTHORITY_MUST_SIGN]: `This transaction must be signed by either the leaf owner or leaf delegate`,
231
+ [BUBBLEGUM_ERROR__LEAF_MUST_BE_DELEGATED]: `Leaf must be delegated to someone other than the leaf owner`,
232
+ [BUBBLEGUM_ERROR__METADATA_BASIS_POINTS_TOO_HIGH]: `Basis points in metadata cannot exceed 10000`,
233
+ [BUBBLEGUM_ERROR__METADATA_IMMUTABLE]: `Metadata not mutable`,
234
+ [BUBBLEGUM_ERROR__METADATA_MINT_MISMATCH]: `Metadata mint does not match collection mint`,
235
+ [BUBBLEGUM_ERROR__METADATA_NAME_TOO_LONG]: `Name in metadata is too long`,
236
+ [BUBBLEGUM_ERROR__METADATA_SYMBOL_TOO_LONG]: `Symbol in metadata is too long`,
237
+ [BUBBLEGUM_ERROR__METADATA_URI_TOO_LONG]: `Uri in metadata is too long`,
238
+ [BUBBLEGUM_ERROR__MISSING_COLLECTION_ACCOUNT]: `Missing collection account`,
239
+ [BUBBLEGUM_ERROR__MISSING_COLLECTION_METADATA_ACCOUNT]: `Missing collection metadata account`,
240
+ [BUBBLEGUM_ERROR__MISSING_COLLECTION_MINT_ACCOUNT]: `Missing collection mint account`,
241
+ [BUBBLEGUM_ERROR__MISSING_MPL_CORE_CPI_SIGNER_ACCOUNT]: `Missing mpl-core CPI signer account`,
242
+ [BUBBLEGUM_ERROR__NO_CREATORS_PRESENT]: `No creators in creator Vec`,
243
+ [BUBBLEGUM_ERROR__NOT_AVAILABLE]: `Feature not currently available`,
244
+ [BUBBLEGUM_ERROR__NUMERICAL_OVERFLOW_ERROR]: `NumericalOverflowError`,
245
+ [BUBBLEGUM_ERROR__PRIMARY_SALE_CAN_ONLY_BE_FLIPPED_TO_TRUE]: `Can only update primary sale to true`,
246
+ [BUBBLEGUM_ERROR__PUBLIC_KEY_MISMATCH]: `PublicKeyMismatch`,
247
+ [BUBBLEGUM_ERROR__TREE_AUTHORITY_INCORRECT]: `Tree creator or tree delegate must sign.`,
248
+ [BUBBLEGUM_ERROR__UNKNOWN_EXTERNAL_ERROR]: `Could not convert external error to BubblegumError`,
249
+ [BUBBLEGUM_ERROR__UNSUPPORTED_SCHEMA_VERSION]: `Unsupported Schema Version`,
250
+ [BUBBLEGUM_ERROR__UPDATE_AUTHORITY_INCORRECT]: `Incorrect leaf metadata update authority.`,
284
251
  };
285
252
  }
286
253
 
287
254
  export function getBubblegumErrorMessage(code: BubblegumError): string {
288
- if (process.env.NODE_ENV !== "production") {
255
+ if (process.env["NODE_ENV"] !== "production") {
289
256
  return (bubblegumErrorMessages as Record<BubblegumError, string>)[code];
290
257
  }
291
258