@macalinao/clients-mpl-core 0.0.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/dist/generated/accounts/assetV1.d.ts +36 -0
- package/dist/generated/accounts/assetV1.d.ts.map +1 -0
- package/dist/generated/accounts/assetV1.js +53 -0
- package/dist/generated/accounts/assetV1.js.map +1 -0
- package/dist/generated/accounts/collectionV1.d.ts +35 -0
- package/dist/generated/accounts/collectionV1.d.ts.map +1 -0
- package/dist/generated/accounts/collectionV1.js +52 -0
- package/dist/generated/accounts/collectionV1.js.map +1 -0
- package/dist/generated/accounts/groupV1.d.ts +39 -0
- package/dist/generated/accounts/groupV1.d.ts.map +1 -0
- package/dist/generated/accounts/groupV1.js +56 -0
- package/dist/generated/accounts/groupV1.js.map +1 -0
- package/dist/generated/accounts/hashedAssetV1.d.ts +27 -0
- package/dist/generated/accounts/hashedAssetV1.d.ts.map +1 -0
- package/dist/generated/accounts/hashedAssetV1.js +38 -0
- package/dist/generated/accounts/hashedAssetV1.js.map +1 -0
- package/dist/generated/accounts/index.d.ts +6 -0
- package/dist/generated/accounts/pluginHeaderV1.d.ts +27 -0
- package/dist/generated/accounts/pluginHeaderV1.d.ts.map +1 -0
- package/dist/generated/accounts/pluginHeaderV1.js +38 -0
- package/dist/generated/accounts/pluginHeaderV1.js.map +1 -0
- package/dist/generated/accounts/pluginRegistryV1.d.ts +31 -0
- package/dist/generated/accounts/pluginRegistryV1.d.ts.map +1 -0
- package/dist/generated/accounts/pluginRegistryV1.js +48 -0
- package/dist/generated/accounts/pluginRegistryV1.js.map +1 -0
- package/dist/generated/errors/index.d.ts +1 -0
- package/dist/generated/errors/mplCoreProgram.d.ts +131 -0
- package/dist/generated/errors/mplCoreProgram.d.ts.map +1 -0
- package/dist/generated/errors/mplCoreProgram.js +188 -0
- package/dist/generated/errors/mplCoreProgram.js.map +1 -0
- package/dist/generated/index.d.ts +167 -0
- package/dist/generated/instructions/addAssetsToGroupV1.d.ts +46 -0
- package/dist/generated/instructions/addAssetsToGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/addAssetsToGroupV1.js +85 -0
- package/dist/generated/instructions/addAssetsToGroupV1.js.map +1 -0
- package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.d.ts +49 -0
- package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.d.ts.map +1 -0
- package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.js +91 -0
- package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.js.map +1 -0
- package/dist/generated/instructions/addCollectionPluginV1.d.ts +49 -0
- package/dist/generated/instructions/addCollectionPluginV1.d.ts.map +1 -0
- package/dist/generated/instructions/addCollectionPluginV1.js +91 -0
- package/dist/generated/instructions/addCollectionPluginV1.js.map +1 -0
- package/dist/generated/instructions/addCollectionsToGroupV1.d.ts +46 -0
- package/dist/generated/instructions/addCollectionsToGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/addCollectionsToGroupV1.js +85 -0
- package/dist/generated/instructions/addCollectionsToGroupV1.js.map +1 -0
- package/dist/generated/instructions/addExternalPluginAdapterV1.d.ts +52 -0
- package/dist/generated/instructions/addExternalPluginAdapterV1.d.ts.map +1 -0
- package/dist/generated/instructions/addExternalPluginAdapterV1.js +97 -0
- package/dist/generated/instructions/addExternalPluginAdapterV1.js.map +1 -0
- package/dist/generated/instructions/addGroupsToGroupV1.d.ts +46 -0
- package/dist/generated/instructions/addGroupsToGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/addGroupsToGroupV1.js +85 -0
- package/dist/generated/instructions/addGroupsToGroupV1.js.map +1 -0
- package/dist/generated/instructions/addPluginV1.d.ts +52 -0
- package/dist/generated/instructions/addPluginV1.d.ts.map +1 -0
- package/dist/generated/instructions/addPluginV1.js +97 -0
- package/dist/generated/instructions/addPluginV1.js.map +1 -0
- package/dist/generated/instructions/approveCollectionPluginAuthorityV1.d.ts +49 -0
- package/dist/generated/instructions/approveCollectionPluginAuthorityV1.d.ts.map +1 -0
- package/dist/generated/instructions/approveCollectionPluginAuthorityV1.js +91 -0
- package/dist/generated/instructions/approveCollectionPluginAuthorityV1.js.map +1 -0
- package/dist/generated/instructions/approvePluginAuthorityV1.d.ts +52 -0
- package/dist/generated/instructions/approvePluginAuthorityV1.d.ts.map +1 -0
- package/dist/generated/instructions/approvePluginAuthorityV1.js +97 -0
- package/dist/generated/instructions/approvePluginAuthorityV1.js.map +1 -0
- package/dist/generated/instructions/burnCollectionV1.d.ts +46 -0
- package/dist/generated/instructions/burnCollectionV1.d.ts.map +1 -0
- package/dist/generated/instructions/burnCollectionV1.js +84 -0
- package/dist/generated/instructions/burnCollectionV1.js.map +1 -0
- package/dist/generated/instructions/burnV1.d.ts +52 -0
- package/dist/generated/instructions/burnV1.d.ts.map +1 -0
- package/dist/generated/instructions/burnV1.js +96 -0
- package/dist/generated/instructions/burnV1.js.map +1 -0
- package/dist/generated/instructions/closeGroupV1.d.ts +43 -0
- package/dist/generated/instructions/closeGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/closeGroupV1.js +78 -0
- package/dist/generated/instructions/closeGroupV1.js.map +1 -0
- package/dist/generated/instructions/collect.d.ts +35 -0
- package/dist/generated/instructions/collect.d.ts.map +1 -0
- package/dist/generated/instructions/collect.js +63 -0
- package/dist/generated/instructions/collect.js.map +1 -0
- package/dist/generated/instructions/compressV1.d.ts +52 -0
- package/dist/generated/instructions/compressV1.d.ts.map +1 -0
- package/dist/generated/instructions/compressV1.js +97 -0
- package/dist/generated/instructions/compressV1.js.map +1 -0
- package/dist/generated/instructions/createCollectionV1.d.ts +46 -0
- package/dist/generated/instructions/createCollectionV1.d.ts.map +1 -0
- package/dist/generated/instructions/createCollectionV1.js +85 -0
- package/dist/generated/instructions/createCollectionV1.js.map +1 -0
- package/dist/generated/instructions/createCollectionV2.d.ts +46 -0
- package/dist/generated/instructions/createCollectionV2.d.ts.map +1 -0
- package/dist/generated/instructions/createCollectionV2.js +85 -0
- package/dist/generated/instructions/createCollectionV2.js.map +1 -0
- package/dist/generated/instructions/createGroupV1.d.ts +46 -0
- package/dist/generated/instructions/createGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/createGroupV1.js +85 -0
- package/dist/generated/instructions/createGroupV1.js.map +1 -0
- package/dist/generated/instructions/createV1.d.ts +58 -0
- package/dist/generated/instructions/createV1.d.ts.map +1 -0
- package/dist/generated/instructions/createV1.js +109 -0
- package/dist/generated/instructions/createV1.js.map +1 -0
- package/dist/generated/instructions/createV2.d.ts +58 -0
- package/dist/generated/instructions/createV2.d.ts.map +1 -0
- package/dist/generated/instructions/createV2.js +109 -0
- package/dist/generated/instructions/createV2.js.map +1 -0
- package/dist/generated/instructions/decompressV1.d.ts +52 -0
- package/dist/generated/instructions/decompressV1.d.ts.map +1 -0
- package/dist/generated/instructions/decompressV1.js +97 -0
- package/dist/generated/instructions/decompressV1.js.map +1 -0
- package/dist/generated/instructions/executeV1.d.ts +75 -0
- package/dist/generated/instructions/executeV1.d.ts.map +1 -0
- package/dist/generated/instructions/executeV1.js +162 -0
- package/dist/generated/instructions/executeV1.js.map +1 -0
- package/dist/generated/instructions/index.d.ts +42 -0
- package/dist/generated/instructions/removeAssetsFromGroupV1.d.ts +46 -0
- package/dist/generated/instructions/removeAssetsFromGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/removeAssetsFromGroupV1.js +85 -0
- package/dist/generated/instructions/removeAssetsFromGroupV1.js.map +1 -0
- package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.d.ts +49 -0
- package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.d.ts.map +1 -0
- package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.js +91 -0
- package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.js.map +1 -0
- package/dist/generated/instructions/removeCollectionPluginV1.d.ts +49 -0
- package/dist/generated/instructions/removeCollectionPluginV1.d.ts.map +1 -0
- package/dist/generated/instructions/removeCollectionPluginV1.js +91 -0
- package/dist/generated/instructions/removeCollectionPluginV1.js.map +1 -0
- package/dist/generated/instructions/removeCollectionsFromGroupV1.d.ts +46 -0
- package/dist/generated/instructions/removeCollectionsFromGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/removeCollectionsFromGroupV1.js +85 -0
- package/dist/generated/instructions/removeCollectionsFromGroupV1.js.map +1 -0
- package/dist/generated/instructions/removeExternalPluginAdapterV1.d.ts +52 -0
- package/dist/generated/instructions/removeExternalPluginAdapterV1.d.ts.map +1 -0
- package/dist/generated/instructions/removeExternalPluginAdapterV1.js +97 -0
- package/dist/generated/instructions/removeExternalPluginAdapterV1.js.map +1 -0
- package/dist/generated/instructions/removeGroupsFromGroupV1.d.ts +46 -0
- package/dist/generated/instructions/removeGroupsFromGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/removeGroupsFromGroupV1.js +85 -0
- package/dist/generated/instructions/removeGroupsFromGroupV1.js.map +1 -0
- package/dist/generated/instructions/removePluginV1.d.ts +52 -0
- package/dist/generated/instructions/removePluginV1.d.ts.map +1 -0
- package/dist/generated/instructions/removePluginV1.js +97 -0
- package/dist/generated/instructions/removePluginV1.js.map +1 -0
- package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.d.ts +49 -0
- package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.d.ts.map +1 -0
- package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.js +91 -0
- package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.js.map +1 -0
- package/dist/generated/instructions/revokePluginAuthorityV1.d.ts +52 -0
- package/dist/generated/instructions/revokePluginAuthorityV1.d.ts.map +1 -0
- package/dist/generated/instructions/revokePluginAuthorityV1.js +97 -0
- package/dist/generated/instructions/revokePluginAuthorityV1.js.map +1 -0
- package/dist/generated/instructions/transferV1.d.ts +55 -0
- package/dist/generated/instructions/transferV1.d.ts.map +1 -0
- package/dist/generated/instructions/transferV1.js +102 -0
- package/dist/generated/instructions/transferV1.js.map +1 -0
- package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.d.ts +49 -0
- package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.d.ts.map +1 -0
- package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.js +91 -0
- package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.js.map +1 -0
- package/dist/generated/instructions/updateCollectionInfoV1.d.ts +40 -0
- package/dist/generated/instructions/updateCollectionInfoV1.d.ts.map +1 -0
- package/dist/generated/instructions/updateCollectionInfoV1.js +65 -0
- package/dist/generated/instructions/updateCollectionInfoV1.js.map +1 -0
- package/dist/generated/instructions/updateCollectionPluginV1.d.ts +49 -0
- package/dist/generated/instructions/updateCollectionPluginV1.d.ts.map +1 -0
- package/dist/generated/instructions/updateCollectionPluginV1.js +91 -0
- package/dist/generated/instructions/updateCollectionPluginV1.js.map +1 -0
- package/dist/generated/instructions/updateCollectionV1.d.ts +52 -0
- package/dist/generated/instructions/updateCollectionV1.d.ts.map +1 -0
- package/dist/generated/instructions/updateCollectionV1.js +97 -0
- package/dist/generated/instructions/updateCollectionV1.js.map +1 -0
- package/dist/generated/instructions/updateExternalPluginAdapterV1.d.ts +52 -0
- package/dist/generated/instructions/updateExternalPluginAdapterV1.d.ts.map +1 -0
- package/dist/generated/instructions/updateExternalPluginAdapterV1.js +97 -0
- package/dist/generated/instructions/updateExternalPluginAdapterV1.js.map +1 -0
- package/dist/generated/instructions/updateGroupV1.d.ts +49 -0
- package/dist/generated/instructions/updateGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/updateGroupV1.js +91 -0
- package/dist/generated/instructions/updateGroupV1.js.map +1 -0
- package/dist/generated/instructions/updatePluginV1.d.ts +52 -0
- package/dist/generated/instructions/updatePluginV1.d.ts.map +1 -0
- package/dist/generated/instructions/updatePluginV1.js +97 -0
- package/dist/generated/instructions/updatePluginV1.js.map +1 -0
- package/dist/generated/instructions/updateV1.d.ts +52 -0
- package/dist/generated/instructions/updateV1.d.ts.map +1 -0
- package/dist/generated/instructions/updateV1.js +97 -0
- package/dist/generated/instructions/updateV1.js.map +1 -0
- package/dist/generated/instructions/updateV2.d.ts +55 -0
- package/dist/generated/instructions/updateV2.d.ts.map +1 -0
- package/dist/generated/instructions/updateV2.js +103 -0
- package/dist/generated/instructions/updateV2.js.map +1 -0
- package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.d.ts +52 -0
- package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.d.ts.map +1 -0
- package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.js +97 -0
- package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.js.map +1 -0
- package/dist/generated/instructions/writeExternalPluginAdapterDataV1.d.ts +55 -0
- package/dist/generated/instructions/writeExternalPluginAdapterDataV1.d.ts.map +1 -0
- package/dist/generated/instructions/writeExternalPluginAdapterDataV1.js +103 -0
- package/dist/generated/instructions/writeExternalPluginAdapterDataV1.js.map +1 -0
- package/dist/generated/pdas/assetSigner.d.ts +14 -0
- package/dist/generated/pdas/assetSigner.d.ts.map +1 -0
- package/dist/generated/pdas/assetSigner.js +14 -0
- package/dist/generated/pdas/assetSigner.js.map +1 -0
- package/dist/generated/pdas/index.d.ts +1 -0
- package/dist/generated/programs/index.d.ts +1 -0
- package/dist/generated/programs/mplCoreProgram.d.ts +263 -0
- package/dist/generated/programs/mplCoreProgram.d.ts.map +1 -0
- package/dist/generated/programs/mplCoreProgram.js +600 -0
- package/dist/generated/programs/mplCoreProgram.js.map +1 -0
- package/dist/generated/types/addAssetsToGroupV1Args.d.ts +11 -0
- package/dist/generated/types/addAssetsToGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/addAssetsToGroupV1Args.js +15 -0
- package/dist/generated/types/addAssetsToGroupV1Args.js.map +1 -0
- package/dist/generated/types/addBlocker.d.ts +11 -0
- package/dist/generated/types/addBlocker.d.ts.map +1 -0
- package/dist/generated/types/addBlocker.js +15 -0
- package/dist/generated/types/addBlocker.js.map +1 -0
- package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.d.ts +16 -0
- package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.d.ts.map +1 -0
- package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.js +16 -0
- package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.js.map +1 -0
- package/dist/generated/types/addCollectionPluginV1Args.d.ts +19 -0
- package/dist/generated/types/addCollectionPluginV1Args.d.ts.map +1 -0
- package/dist/generated/types/addCollectionPluginV1Args.js +17 -0
- package/dist/generated/types/addCollectionPluginV1Args.js.map +1 -0
- package/dist/generated/types/addCollectionsToGroupV1Args.d.ts +11 -0
- package/dist/generated/types/addCollectionsToGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/addCollectionsToGroupV1Args.js +15 -0
- package/dist/generated/types/addCollectionsToGroupV1Args.js.map +1 -0
- package/dist/generated/types/addExternalPluginAdapterV1Args.d.ts +16 -0
- package/dist/generated/types/addExternalPluginAdapterV1Args.d.ts.map +1 -0
- package/dist/generated/types/addExternalPluginAdapterV1Args.js +16 -0
- package/dist/generated/types/addExternalPluginAdapterV1Args.js.map +1 -0
- package/dist/generated/types/addGroupsToGroupV1Args.d.ts +13 -0
- package/dist/generated/types/addGroupsToGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/addGroupsToGroupV1Args.js +15 -0
- package/dist/generated/types/addGroupsToGroupV1Args.js.map +1 -0
- package/dist/generated/types/addPluginV1Args.d.ts +19 -0
- package/dist/generated/types/addPluginV1Args.d.ts.map +1 -0
- package/dist/generated/types/addPluginV1Args.js +17 -0
- package/dist/generated/types/addPluginV1Args.js.map +1 -0
- package/dist/generated/types/agentIdentity.d.ts +13 -0
- package/dist/generated/types/agentIdentity.d.ts.map +1 -0
- package/dist/generated/types/agentIdentity.js +15 -0
- package/dist/generated/types/agentIdentity.js.map +1 -0
- package/dist/generated/types/agentIdentityInitInfo.d.ts +22 -0
- package/dist/generated/types/agentIdentityInitInfo.d.ts.map +1 -0
- package/dist/generated/types/agentIdentityInitInfo.js +26 -0
- package/dist/generated/types/agentIdentityInitInfo.js.map +1 -0
- package/dist/generated/types/agentIdentityUpdateInfo.d.ts +19 -0
- package/dist/generated/types/agentIdentityUpdateInfo.d.ts.map +1 -0
- package/dist/generated/types/agentIdentityUpdateInfo.js +17 -0
- package/dist/generated/types/agentIdentityUpdateInfo.js.map +1 -0
- package/dist/generated/types/appData.d.ts +19 -0
- package/dist/generated/types/appData.d.ts.map +1 -0
- package/dist/generated/types/appData.js +17 -0
- package/dist/generated/types/appData.js.map +1 -0
- package/dist/generated/types/appDataInitInfo.d.ts +21 -0
- package/dist/generated/types/appDataInitInfo.d.ts.map +1 -0
- package/dist/generated/types/appDataInitInfo.js +25 -0
- package/dist/generated/types/appDataInitInfo.js.map +1 -0
- package/dist/generated/types/appDataUpdateInfo.d.ts +16 -0
- package/dist/generated/types/appDataUpdateInfo.d.ts.map +1 -0
- package/dist/generated/types/appDataUpdateInfo.js +16 -0
- package/dist/generated/types/appDataUpdateInfo.js.map +1 -0
- package/dist/generated/types/approveCollectionPluginAuthorityV1Args.d.ts +19 -0
- package/dist/generated/types/approveCollectionPluginAuthorityV1Args.d.ts.map +1 -0
- package/dist/generated/types/approveCollectionPluginAuthorityV1Args.js +17 -0
- package/dist/generated/types/approveCollectionPluginAuthorityV1Args.js.map +1 -0
- package/dist/generated/types/approvePluginAuthorityV1Args.d.ts +19 -0
- package/dist/generated/types/approvePluginAuthorityV1Args.d.ts.map +1 -0
- package/dist/generated/types/approvePluginAuthorityV1Args.js +17 -0
- package/dist/generated/types/approvePluginAuthorityV1Args.js.map +1 -0
- package/dist/generated/types/attribute.d.ts +14 -0
- package/dist/generated/types/attribute.d.ts.map +1 -0
- package/dist/generated/types/attribute.js +15 -0
- package/dist/generated/types/attribute.js.map +1 -0
- package/dist/generated/types/attributes.d.ts +16 -0
- package/dist/generated/types/attributes.d.ts.map +1 -0
- package/dist/generated/types/attributes.js +16 -0
- package/dist/generated/types/attributes.js.map +1 -0
- package/dist/generated/types/authority.d.ts +27 -0
- package/dist/generated/types/authority.d.ts.map +1 -0
- package/dist/generated/types/authority.js +37 -0
- package/dist/generated/types/authority.js.map +1 -0
- package/dist/generated/types/autograph.d.ts +16 -0
- package/dist/generated/types/autograph.d.ts.map +1 -0
- package/dist/generated/types/autograph.js +16 -0
- package/dist/generated/types/autograph.js.map +1 -0
- package/dist/generated/types/autographSignature.d.ts +14 -0
- package/dist/generated/types/autographSignature.d.ts.map +1 -0
- package/dist/generated/types/autographSignature.js +15 -0
- package/dist/generated/types/autographSignature.js.map +1 -0
- package/dist/generated/types/bubblegumV2.d.ts +11 -0
- package/dist/generated/types/bubblegumV2.d.ts.map +1 -0
- package/dist/generated/types/bubblegumV2.js +15 -0
- package/dist/generated/types/bubblegumV2.js.map +1 -0
- package/dist/generated/types/burnCollectionV1Args.d.ts +16 -0
- package/dist/generated/types/burnCollectionV1Args.d.ts.map +1 -0
- package/dist/generated/types/burnCollectionV1Args.js +16 -0
- package/dist/generated/types/burnCollectionV1Args.js.map +1 -0
- package/dist/generated/types/burnDelegate.d.ts +11 -0
- package/dist/generated/types/burnDelegate.d.ts.map +1 -0
- package/dist/generated/types/burnDelegate.js +15 -0
- package/dist/generated/types/burnDelegate.js.map +1 -0
- package/dist/generated/types/burnV1Args.d.ts +16 -0
- package/dist/generated/types/burnV1Args.d.ts.map +1 -0
- package/dist/generated/types/burnV1Args.js +16 -0
- package/dist/generated/types/burnV1Args.js.map +1 -0
- package/dist/generated/types/closeGroupV1Args.d.ts +11 -0
- package/dist/generated/types/closeGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/closeGroupV1Args.js +15 -0
- package/dist/generated/types/closeGroupV1Args.js.map +1 -0
- package/dist/generated/types/compressV1Args.d.ts +11 -0
- package/dist/generated/types/compressV1Args.d.ts.map +1 -0
- package/dist/generated/types/compressV1Args.js +15 -0
- package/dist/generated/types/compressV1Args.js.map +1 -0
- package/dist/generated/types/compressionProof.d.ts +27 -0
- package/dist/generated/types/compressionProof.d.ts.map +1 -0
- package/dist/generated/types/compressionProof.js +31 -0
- package/dist/generated/types/compressionProof.js.map +1 -0
- package/dist/generated/types/createCollectionV1Args.d.ts +20 -0
- package/dist/generated/types/createCollectionV1Args.d.ts.map +1 -0
- package/dist/generated/types/createCollectionV1Args.js +24 -0
- package/dist/generated/types/createCollectionV1Args.js.map +1 -0
- package/dist/generated/types/createCollectionV2Args.d.ts +23 -0
- package/dist/generated/types/createCollectionV2Args.d.ts.map +1 -0
- package/dist/generated/types/createCollectionV2Args.js +27 -0
- package/dist/generated/types/createCollectionV2Args.js.map +1 -0
- package/dist/generated/types/createGroupV1Args.d.ts +20 -0
- package/dist/generated/types/createGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/createGroupV1Args.js +24 -0
- package/dist/generated/types/createGroupV1Args.js.map +1 -0
- package/dist/generated/types/createV1Args.d.ts +23 -0
- package/dist/generated/types/createV1Args.d.ts.map +1 -0
- package/dist/generated/types/createV1Args.js +27 -0
- package/dist/generated/types/createV1Args.js.map +1 -0
- package/dist/generated/types/createV2Args.d.ts +26 -0
- package/dist/generated/types/createV2Args.d.ts.map +1 -0
- package/dist/generated/types/createV2Args.js +30 -0
- package/dist/generated/types/createV2Args.js.map +1 -0
- package/dist/generated/types/creator.d.ts +14 -0
- package/dist/generated/types/creator.d.ts.map +1 -0
- package/dist/generated/types/creator.js +15 -0
- package/dist/generated/types/creator.js.map +1 -0
- package/dist/generated/types/dataSection.d.ts +19 -0
- package/dist/generated/types/dataSection.d.ts.map +1 -0
- package/dist/generated/types/dataSection.js +17 -0
- package/dist/generated/types/dataSection.js.map +1 -0
- package/dist/generated/types/dataSectionInitInfo.d.ts +19 -0
- package/dist/generated/types/dataSectionInitInfo.d.ts.map +1 -0
- package/dist/generated/types/dataSectionInitInfo.js +17 -0
- package/dist/generated/types/dataSectionInitInfo.js.map +1 -0
- package/dist/generated/types/dataSectionUpdateInfo.d.ts +11 -0
- package/dist/generated/types/dataSectionUpdateInfo.d.ts.map +1 -0
- package/dist/generated/types/dataSectionUpdateInfo.js +15 -0
- package/dist/generated/types/dataSectionUpdateInfo.js.map +1 -0
- package/dist/generated/types/dataState.d.ts +14 -0
- package/dist/generated/types/dataState.d.ts.map +1 -0
- package/dist/generated/types/dataState.js +20 -0
- package/dist/generated/types/dataState.js.map +1 -0
- package/dist/generated/types/decompressV1Args.d.ts +16 -0
- package/dist/generated/types/decompressV1Args.d.ts.map +1 -0
- package/dist/generated/types/decompressV1Args.js +16 -0
- package/dist/generated/types/decompressV1Args.js.map +1 -0
- package/dist/generated/types/edition.d.ts +13 -0
- package/dist/generated/types/edition.d.ts.map +1 -0
- package/dist/generated/types/edition.js +15 -0
- package/dist/generated/types/edition.js.map +1 -0
- package/dist/generated/types/executeV1Args.d.ts +13 -0
- package/dist/generated/types/executeV1Args.d.ts.map +1 -0
- package/dist/generated/types/executeV1Args.js +15 -0
- package/dist/generated/types/executeV1Args.js.map +1 -0
- package/dist/generated/types/externalCheckResult.d.ts +13 -0
- package/dist/generated/types/externalCheckResult.d.ts.map +1 -0
- package/dist/generated/types/externalCheckResult.js +15 -0
- package/dist/generated/types/externalCheckResult.js.map +1 -0
- package/dist/generated/types/externalPluginAdapter.d.ts +70 -0
- package/dist/generated/types/externalPluginAdapter.d.ts.map +1 -0
- package/dist/generated/types/externalPluginAdapter.js +50 -0
- package/dist/generated/types/externalPluginAdapter.js.map +1 -0
- package/dist/generated/types/externalPluginAdapterInitInfo.d.ts +70 -0
- package/dist/generated/types/externalPluginAdapterInitInfo.d.ts.map +1 -0
- package/dist/generated/types/externalPluginAdapterInitInfo.js +50 -0
- package/dist/generated/types/externalPluginAdapterInitInfo.js.map +1 -0
- package/dist/generated/types/externalPluginAdapterKey.d.ts +63 -0
- package/dist/generated/types/externalPluginAdapterKey.d.ts.map +1 -0
- package/dist/generated/types/externalPluginAdapterKey.js +45 -0
- package/dist/generated/types/externalPluginAdapterKey.js.map +1 -0
- package/dist/generated/types/externalPluginAdapterSchema.d.ts +15 -0
- package/dist/generated/types/externalPluginAdapterSchema.d.ts.map +1 -0
- package/dist/generated/types/externalPluginAdapterSchema.js +21 -0
- package/dist/generated/types/externalPluginAdapterSchema.js.map +1 -0
- package/dist/generated/types/externalPluginAdapterType.d.ts +19 -0
- package/dist/generated/types/externalPluginAdapterType.d.ts.map +1 -0
- package/dist/generated/types/externalPluginAdapterType.js +25 -0
- package/dist/generated/types/externalPluginAdapterType.js.map +1 -0
- package/dist/generated/types/externalPluginAdapterUpdateInfo.d.ts +62 -0
- package/dist/generated/types/externalPluginAdapterUpdateInfo.d.ts.map +1 -0
- package/dist/generated/types/externalPluginAdapterUpdateInfo.js +47 -0
- package/dist/generated/types/externalPluginAdapterUpdateInfo.js.map +1 -0
- package/dist/generated/types/externalRegistryRecord.d.ts +29 -0
- package/dist/generated/types/externalRegistryRecord.d.ts.map +1 -0
- package/dist/generated/types/externalRegistryRecord.js +33 -0
- package/dist/generated/types/externalRegistryRecord.js.map +1 -0
- package/dist/generated/types/externalValidationResult.d.ts +15 -0
- package/dist/generated/types/externalValidationResult.d.ts.map +1 -0
- package/dist/generated/types/externalValidationResult.js +21 -0
- package/dist/generated/types/externalValidationResult.js.map +1 -0
- package/dist/generated/types/extraAccount.d.ts +84 -0
- package/dist/generated/types/extraAccount.d.ts.map +1 -0
- package/dist/generated/types/extraAccount.js +62 -0
- package/dist/generated/types/extraAccount.js.map +1 -0
- package/dist/generated/types/freezeDelegate.d.ts +13 -0
- package/dist/generated/types/freezeDelegate.d.ts.map +1 -0
- package/dist/generated/types/freezeDelegate.js +15 -0
- package/dist/generated/types/freezeDelegate.js.map +1 -0
- package/dist/generated/types/freezeExecute.d.ts +13 -0
- package/dist/generated/types/freezeExecute.d.ts.map +1 -0
- package/dist/generated/types/freezeExecute.js +15 -0
- package/dist/generated/types/freezeExecute.js.map +1 -0
- package/dist/generated/types/groups.d.ts +13 -0
- package/dist/generated/types/groups.d.ts.map +1 -0
- package/dist/generated/types/groups.js +15 -0
- package/dist/generated/types/groups.js.map +1 -0
- package/dist/generated/types/hashablePluginSchema.d.ts +21 -0
- package/dist/generated/types/hashablePluginSchema.d.ts.map +1 -0
- package/dist/generated/types/hashablePluginSchema.js +25 -0
- package/dist/generated/types/hashablePluginSchema.js.map +1 -0
- package/dist/generated/types/hashedAssetSchema.d.ts +14 -0
- package/dist/generated/types/hashedAssetSchema.d.ts.map +1 -0
- package/dist/generated/types/hashedAssetSchema.js +15 -0
- package/dist/generated/types/hashedAssetSchema.js.map +1 -0
- package/dist/generated/types/hookableLifecycleEvent.d.ts +17 -0
- package/dist/generated/types/hookableLifecycleEvent.d.ts.map +1 -0
- package/dist/generated/types/hookableLifecycleEvent.js +23 -0
- package/dist/generated/types/hookableLifecycleEvent.js.map +1 -0
- package/dist/generated/types/immutableMetadata.d.ts +11 -0
- package/dist/generated/types/immutableMetadata.d.ts.map +1 -0
- package/dist/generated/types/immutableMetadata.js +15 -0
- package/dist/generated/types/immutableMetadata.js.map +1 -0
- package/dist/generated/types/index.d.ts +116 -0
- package/dist/generated/types/key.d.ts +19 -0
- package/dist/generated/types/key.d.ts.map +1 -0
- package/dist/generated/types/key.js +25 -0
- package/dist/generated/types/key.js.map +1 -0
- package/dist/generated/types/lifecycleHook.d.ts +24 -0
- package/dist/generated/types/lifecycleHook.d.ts.map +1 -0
- package/dist/generated/types/lifecycleHook.js +28 -0
- package/dist/generated/types/lifecycleHook.js.map +1 -0
- package/dist/generated/types/lifecycleHookInitInfo.d.ts +30 -0
- package/dist/generated/types/lifecycleHookInitInfo.d.ts.map +1 -0
- package/dist/generated/types/lifecycleHookInitInfo.js +34 -0
- package/dist/generated/types/lifecycleHookInitInfo.js.map +1 -0
- package/dist/generated/types/lifecycleHookUpdateInfo.d.ts +23 -0
- package/dist/generated/types/lifecycleHookUpdateInfo.d.ts.map +1 -0
- package/dist/generated/types/lifecycleHookUpdateInfo.js +27 -0
- package/dist/generated/types/lifecycleHookUpdateInfo.js.map +1 -0
- package/dist/generated/types/linkedAppData.d.ts +19 -0
- package/dist/generated/types/linkedAppData.d.ts.map +1 -0
- package/dist/generated/types/linkedAppData.js +17 -0
- package/dist/generated/types/linkedAppData.js.map +1 -0
- package/dist/generated/types/linkedAppDataInitInfo.d.ts +21 -0
- package/dist/generated/types/linkedAppDataInitInfo.d.ts.map +1 -0
- package/dist/generated/types/linkedAppDataInitInfo.js +25 -0
- package/dist/generated/types/linkedAppDataInitInfo.js.map +1 -0
- package/dist/generated/types/linkedAppDataUpdateInfo.d.ts +16 -0
- package/dist/generated/types/linkedAppDataUpdateInfo.d.ts.map +1 -0
- package/dist/generated/types/linkedAppDataUpdateInfo.js +16 -0
- package/dist/generated/types/linkedAppDataUpdateInfo.js.map +1 -0
- package/dist/generated/types/linkedDataKey.d.ts +29 -0
- package/dist/generated/types/linkedDataKey.d.ts.map +1 -0
- package/dist/generated/types/linkedDataKey.js +28 -0
- package/dist/generated/types/linkedDataKey.js.map +1 -0
- package/dist/generated/types/linkedLifecycleHook.d.ts +24 -0
- package/dist/generated/types/linkedLifecycleHook.d.ts.map +1 -0
- package/dist/generated/types/linkedLifecycleHook.js +28 -0
- package/dist/generated/types/linkedLifecycleHook.js.map +1 -0
- package/dist/generated/types/linkedLifecycleHookInitInfo.d.ts +30 -0
- package/dist/generated/types/linkedLifecycleHookInitInfo.d.ts.map +1 -0
- package/dist/generated/types/linkedLifecycleHookInitInfo.js +34 -0
- package/dist/generated/types/linkedLifecycleHookInitInfo.js.map +1 -0
- package/dist/generated/types/linkedLifecycleHookUpdateInfo.d.ts +23 -0
- package/dist/generated/types/linkedLifecycleHookUpdateInfo.d.ts.map +1 -0
- package/dist/generated/types/linkedLifecycleHookUpdateInfo.js +27 -0
- package/dist/generated/types/linkedLifecycleHookUpdateInfo.js.map +1 -0
- package/dist/generated/types/masterEdition.d.ts +19 -0
- package/dist/generated/types/masterEdition.d.ts.map +1 -0
- package/dist/generated/types/masterEdition.js +23 -0
- package/dist/generated/types/masterEdition.js.map +1 -0
- package/dist/generated/types/oracle.d.ts +21 -0
- package/dist/generated/types/oracle.d.ts.map +1 -0
- package/dist/generated/types/oracle.js +25 -0
- package/dist/generated/types/oracle.js.map +1 -0
- package/dist/generated/types/oracleInitInfo.d.ts +28 -0
- package/dist/generated/types/oracleInitInfo.d.ts.map +1 -0
- package/dist/generated/types/oracleInitInfo.js +32 -0
- package/dist/generated/types/oracleInitInfo.js.map +1 -0
- package/dist/generated/types/oracleUpdateInfo.d.ts +23 -0
- package/dist/generated/types/oracleUpdateInfo.d.ts.map +1 -0
- package/dist/generated/types/oracleUpdateInfo.js +27 -0
- package/dist/generated/types/oracleUpdateInfo.js.map +1 -0
- package/dist/generated/types/oracleValidation.d.ts +33 -0
- package/dist/generated/types/oracleValidation.d.ts.map +1 -0
- package/dist/generated/types/oracleValidation.js +38 -0
- package/dist/generated/types/oracleValidation.js.map +1 -0
- package/dist/generated/types/permanentBurnDelegate.d.ts +11 -0
- package/dist/generated/types/permanentBurnDelegate.d.ts.map +1 -0
- package/dist/generated/types/permanentBurnDelegate.js +15 -0
- package/dist/generated/types/permanentBurnDelegate.js.map +1 -0
- package/dist/generated/types/permanentFreezeDelegate.d.ts +13 -0
- package/dist/generated/types/permanentFreezeDelegate.d.ts.map +1 -0
- package/dist/generated/types/permanentFreezeDelegate.js +15 -0
- package/dist/generated/types/permanentFreezeDelegate.js.map +1 -0
- package/dist/generated/types/permanentFreezeExecute.d.ts +13 -0
- package/dist/generated/types/permanentFreezeExecute.d.ts.map +1 -0
- package/dist/generated/types/permanentFreezeExecute.js +15 -0
- package/dist/generated/types/permanentFreezeExecute.js.map +1 -0
- package/dist/generated/types/permanentTransferDelegate.d.ts +11 -0
- package/dist/generated/types/permanentTransferDelegate.d.ts.map +1 -0
- package/dist/generated/types/permanentTransferDelegate.js +15 -0
- package/dist/generated/types/permanentTransferDelegate.js.map +1 -0
- package/dist/generated/types/plugin.d.ts +166 -0
- package/dist/generated/types/plugin.d.ts.map +1 -0
- package/dist/generated/types/plugin.js +86 -0
- package/dist/generated/types/plugin.js.map +1 -0
- package/dist/generated/types/pluginAuthorityPair.d.ts +19 -0
- package/dist/generated/types/pluginAuthorityPair.d.ts.map +1 -0
- package/dist/generated/types/pluginAuthorityPair.js +17 -0
- package/dist/generated/types/pluginAuthorityPair.js.map +1 -0
- package/dist/generated/types/pluginType.d.ts +31 -0
- package/dist/generated/types/pluginType.d.ts.map +1 -0
- package/dist/generated/types/pluginType.js +37 -0
- package/dist/generated/types/pluginType.js.map +1 -0
- package/dist/generated/types/registryRecord.d.ts +21 -0
- package/dist/generated/types/registryRecord.d.ts.map +1 -0
- package/dist/generated/types/registryRecord.js +25 -0
- package/dist/generated/types/registryRecord.js.map +1 -0
- package/dist/generated/types/relationshipEntry.d.ts +18 -0
- package/dist/generated/types/relationshipEntry.d.ts.map +1 -0
- package/dist/generated/types/relationshipEntry.js +16 -0
- package/dist/generated/types/relationshipEntry.js.map +1 -0
- package/dist/generated/types/relationshipKind.d.ts +16 -0
- package/dist/generated/types/relationshipKind.d.ts.map +1 -0
- package/dist/generated/types/relationshipKind.js +22 -0
- package/dist/generated/types/relationshipKind.js.map +1 -0
- package/dist/generated/types/removeAssetsFromGroupV1Args.d.ts +13 -0
- package/dist/generated/types/removeAssetsFromGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/removeAssetsFromGroupV1Args.js +15 -0
- package/dist/generated/types/removeAssetsFromGroupV1Args.js.map +1 -0
- package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.d.ts +16 -0
- package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.d.ts.map +1 -0
- package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.js +16 -0
- package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.js.map +1 -0
- package/dist/generated/types/removeCollectionPluginV1Args.d.ts +16 -0
- package/dist/generated/types/removeCollectionPluginV1Args.d.ts.map +1 -0
- package/dist/generated/types/removeCollectionPluginV1Args.js +16 -0
- package/dist/generated/types/removeCollectionPluginV1Args.js.map +1 -0
- package/dist/generated/types/removeCollectionsFromGroupV1Args.d.ts +13 -0
- package/dist/generated/types/removeCollectionsFromGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/removeCollectionsFromGroupV1Args.js +15 -0
- package/dist/generated/types/removeCollectionsFromGroupV1Args.js.map +1 -0
- package/dist/generated/types/removeExternalPluginAdapterV1Args.d.ts +16 -0
- package/dist/generated/types/removeExternalPluginAdapterV1Args.d.ts.map +1 -0
- package/dist/generated/types/removeExternalPluginAdapterV1Args.js +16 -0
- package/dist/generated/types/removeExternalPluginAdapterV1Args.js.map +1 -0
- package/dist/generated/types/removeGroupsFromGroupV1Args.d.ts +13 -0
- package/dist/generated/types/removeGroupsFromGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/removeGroupsFromGroupV1Args.js +15 -0
- package/dist/generated/types/removeGroupsFromGroupV1Args.js.map +1 -0
- package/dist/generated/types/removePluginV1Args.d.ts +16 -0
- package/dist/generated/types/removePluginV1Args.d.ts.map +1 -0
- package/dist/generated/types/removePluginV1Args.js +16 -0
- package/dist/generated/types/removePluginV1Args.js.map +1 -0
- package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.d.ts +16 -0
- package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.d.ts.map +1 -0
- package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.js +16 -0
- package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.js.map +1 -0
- package/dist/generated/types/revokePluginAuthorityV1Args.d.ts +16 -0
- package/dist/generated/types/revokePluginAuthorityV1Args.d.ts.map +1 -0
- package/dist/generated/types/revokePluginAuthorityV1Args.js +16 -0
- package/dist/generated/types/revokePluginAuthorityV1Args.js.map +1 -0
- package/dist/generated/types/royalties.d.ts +21 -0
- package/dist/generated/types/royalties.d.ts.map +1 -0
- package/dist/generated/types/royalties.js +25 -0
- package/dist/generated/types/royalties.js.map +1 -0
- package/dist/generated/types/ruleSet.d.ts +25 -0
- package/dist/generated/types/ruleSet.d.ts.map +1 -0
- package/dist/generated/types/ruleSet.js +35 -0
- package/dist/generated/types/ruleSet.js.map +1 -0
- package/dist/generated/types/seed.d.ts +34 -0
- package/dist/generated/types/seed.d.ts.map +1 -0
- package/dist/generated/types/seed.js +41 -0
- package/dist/generated/types/seed.js.map +1 -0
- package/dist/generated/types/transferDelegate.d.ts +11 -0
- package/dist/generated/types/transferDelegate.d.ts.map +1 -0
- package/dist/generated/types/transferDelegate.js +15 -0
- package/dist/generated/types/transferDelegate.js.map +1 -0
- package/dist/generated/types/transferV1Args.d.ts +16 -0
- package/dist/generated/types/transferV1Args.d.ts.map +1 -0
- package/dist/generated/types/transferV1Args.js +16 -0
- package/dist/generated/types/transferV1Args.js.map +1 -0
- package/dist/generated/types/updateAuthority.d.ts +25 -0
- package/dist/generated/types/updateAuthority.d.ts.map +1 -0
- package/dist/generated/types/updateAuthority.js +35 -0
- package/dist/generated/types/updateAuthority.js.map +1 -0
- package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.d.ts +19 -0
- package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.js +17 -0
- package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.js.map +1 -0
- package/dist/generated/types/updateCollectionInfoV1Args.d.ts +18 -0
- package/dist/generated/types/updateCollectionInfoV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateCollectionInfoV1Args.js +16 -0
- package/dist/generated/types/updateCollectionInfoV1Args.js.map +1 -0
- package/dist/generated/types/updateCollectionPluginV1Args.d.ts +16 -0
- package/dist/generated/types/updateCollectionPluginV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateCollectionPluginV1Args.js +16 -0
- package/dist/generated/types/updateCollectionPluginV1Args.js.map +1 -0
- package/dist/generated/types/updateCollectionV1Args.d.ts +17 -0
- package/dist/generated/types/updateCollectionV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateCollectionV1Args.js +15 -0
- package/dist/generated/types/updateCollectionV1Args.js.map +1 -0
- package/dist/generated/types/updateDelegate.d.ts +13 -0
- package/dist/generated/types/updateDelegate.d.ts.map +1 -0
- package/dist/generated/types/updateDelegate.js +15 -0
- package/dist/generated/types/updateDelegate.js.map +1 -0
- package/dist/generated/types/updateExternalPluginAdapterV1Args.d.ts +19 -0
- package/dist/generated/types/updateExternalPluginAdapterV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateExternalPluginAdapterV1Args.js +17 -0
- package/dist/generated/types/updateExternalPluginAdapterV1Args.js.map +1 -0
- package/dist/generated/types/updateGroupV1Args.d.ts +17 -0
- package/dist/generated/types/updateGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateGroupV1Args.js +15 -0
- package/dist/generated/types/updateGroupV1Args.js.map +1 -0
- package/dist/generated/types/updatePluginV1Args.d.ts +16 -0
- package/dist/generated/types/updatePluginV1Args.d.ts.map +1 -0
- package/dist/generated/types/updatePluginV1Args.js +16 -0
- package/dist/generated/types/updatePluginV1Args.js.map +1 -0
- package/dist/generated/types/updateType.d.ts +15 -0
- package/dist/generated/types/updateType.d.ts.map +1 -0
- package/dist/generated/types/updateType.js +21 -0
- package/dist/generated/types/updateType.js.map +1 -0
- package/dist/generated/types/updateV1Args.d.ts +20 -0
- package/dist/generated/types/updateV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateV1Args.js +24 -0
- package/dist/generated/types/updateV1Args.js.map +1 -0
- package/dist/generated/types/updateV2Args.d.ts +20 -0
- package/dist/generated/types/updateV2Args.d.ts.map +1 -0
- package/dist/generated/types/updateV2Args.js +24 -0
- package/dist/generated/types/updateV2Args.js.map +1 -0
- package/dist/generated/types/validationResult.d.ts +16 -0
- package/dist/generated/types/validationResult.d.ts.map +1 -0
- package/dist/generated/types/validationResult.js +22 -0
- package/dist/generated/types/validationResult.js.map +1 -0
- package/dist/generated/types/validationResultsOffset.d.ts +31 -0
- package/dist/generated/types/validationResultsOffset.d.ts.map +1 -0
- package/dist/generated/types/validationResultsOffset.js +35 -0
- package/dist/generated/types/validationResultsOffset.js.map +1 -0
- package/dist/generated/types/verifiedCreators.d.ts +16 -0
- package/dist/generated/types/verifiedCreators.d.ts.map +1 -0
- package/dist/generated/types/verifiedCreators.js +16 -0
- package/dist/generated/types/verifiedCreators.js.map +1 -0
- package/dist/generated/types/verifiedCreatorsSignature.d.ts +14 -0
- package/dist/generated/types/verifiedCreatorsSignature.d.ts.map +1 -0
- package/dist/generated/types/verifiedCreatorsSignature.js +15 -0
- package/dist/generated/types/verifiedCreatorsSignature.js.map +1 -0
- package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.d.ts +18 -0
- package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.d.ts.map +1 -0
- package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.js +16 -0
- package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.js.map +1 -0
- package/dist/generated/types/writeExternalPluginAdapterDataV1Args.d.ts +18 -0
- package/dist/generated/types/writeExternalPluginAdapterDataV1Args.d.ts.map +1 -0
- package/dist/generated/types/writeExternalPluginAdapterDataV1Args.js +16 -0
- package/dist/generated/types/writeExternalPluginAdapterDataV1Args.js.map +1 -0
- package/dist/index.d.ts +168 -0
- package/dist/index.js +168 -0
- package/package.json +52 -5
- package/src/generated/accounts/assetV1.ts +156 -0
- package/src/generated/accounts/collectionV1.ts +140 -0
- package/src/generated/accounts/groupV1.ts +150 -0
- package/src/generated/accounts/hashedAssetV1.ts +127 -0
- package/src/generated/accounts/index.ts +14 -0
- package/src/generated/accounts/pluginHeaderV1.ts +129 -0
- package/src/generated/accounts/pluginRegistryV1.ts +152 -0
- package/src/generated/errors/index.ts +9 -0
- package/src/generated/errors/mplCoreProgram.ts +324 -0
- package/src/generated/index.ts +14 -0
- package/src/generated/instructions/addAssetsToGroupV1.ts +267 -0
- package/src/generated/instructions/addCollectionExternalPluginAdapterV1.ts +294 -0
- package/src/generated/instructions/addCollectionPluginV1.ts +283 -0
- package/src/generated/instructions/addCollectionsToGroupV1.ts +267 -0
- package/src/generated/instructions/addExternalPluginAdapterV1.ts +305 -0
- package/src/generated/instructions/addGroupsToGroupV1.ts +267 -0
- package/src/generated/instructions/addPluginV1.ts +291 -0
- package/src/generated/instructions/approveCollectionPluginAuthorityV1.ts +294 -0
- package/src/generated/instructions/approvePluginAuthorityV1.ts +302 -0
- package/src/generated/instructions/burnCollectionV1.ts +253 -0
- package/src/generated/instructions/burnV1.ts +280 -0
- package/src/generated/instructions/closeGroupV1.ts +230 -0
- package/src/generated/instructions/collect.ts +176 -0
- package/src/generated/instructions/compressV1.ts +291 -0
- package/src/generated/instructions/createCollectionV1.ts +268 -0
- package/src/generated/instructions/createCollectionV2.ts +268 -0
- package/src/generated/instructions/createGroupV1.ts +265 -0
- package/src/generated/instructions/createV1.ts +327 -0
- package/src/generated/instructions/createV2.ts +327 -0
- package/src/generated/instructions/decompressV1.ts +291 -0
- package/src/generated/instructions/executeV1.ts +449 -0
- package/src/generated/instructions/index.ts +50 -0
- package/src/generated/instructions/removeAssetsFromGroupV1.ts +267 -0
- package/src/generated/instructions/removeCollectionExternalPluginAdapterV1.ts +294 -0
- package/src/generated/instructions/removeCollectionPluginV1.ts +286 -0
- package/src/generated/instructions/removeCollectionsFromGroupV1.ts +273 -0
- package/src/generated/instructions/removeExternalPluginAdapterV1.ts +305 -0
- package/src/generated/instructions/removeGroupsFromGroupV1.ts +267 -0
- package/src/generated/instructions/removePluginV1.ts +294 -0
- package/src/generated/instructions/revokeCollectionPluginAuthorityV1.ts +291 -0
- package/src/generated/instructions/revokePluginAuthorityV1.ts +299 -0
- package/src/generated/instructions/transferV1.ts +299 -0
- package/src/generated/instructions/updateCollectionExternalPluginAdapterV1.ts +294 -0
- package/src/generated/instructions/updateCollectionInfoV1.ts +221 -0
- package/src/generated/instructions/updateCollectionPluginV1.ts +286 -0
- package/src/generated/instructions/updateCollectionV1.ts +302 -0
- package/src/generated/instructions/updateExternalPluginAdapterV1.ts +305 -0
- package/src/generated/instructions/updateGroupV1.ts +281 -0
- package/src/generated/instructions/updatePluginV1.ts +294 -0
- package/src/generated/instructions/updateV1.ts +291 -0
- package/src/generated/instructions/updateV2.ts +307 -0
- package/src/generated/instructions/writeCollectionExternalPluginAdapterDataV1.ts +311 -0
- package/src/generated/instructions/writeExternalPluginAdapterDataV1.ts +323 -0
- package/src/generated/pdas/assetSigner.ts +36 -0
- package/src/generated/pdas/index.ts +9 -0
- package/src/generated/programs/index.ts +9 -0
- package/src/generated/programs/mplCoreProgram.ts +1434 -0
- package/src/generated/types/addAssetsToGroupV1Args.ts +36 -0
- package/src/generated/types/addBlocker.ts +33 -0
- package/src/generated/types/addCollectionExternalPluginAdapterV1Args.ts +48 -0
- package/src/generated/types/addCollectionPluginV1Args.ts +63 -0
- package/src/generated/types/addCollectionsToGroupV1Args.ts +36 -0
- package/src/generated/types/addExternalPluginAdapterV1Args.ts +48 -0
- package/src/generated/types/addGroupsToGroupV1Args.ts +42 -0
- package/src/generated/types/addPluginV1Args.ts +60 -0
- package/src/generated/types/agentIdentity.ts +45 -0
- package/src/generated/types/agentIdentityInitInfo.ts +106 -0
- package/src/generated/types/agentIdentityUpdateInfo.ts +108 -0
- package/src/generated/types/appData.ts +50 -0
- package/src/generated/types/appDataInitInfo.ts +69 -0
- package/src/generated/types/appDataUpdateInfo.ts +60 -0
- package/src/generated/types/approveCollectionPluginAuthorityV1Args.ts +56 -0
- package/src/generated/types/approvePluginAuthorityV1Args.ts +56 -0
- package/src/generated/types/attribute.ts +45 -0
- package/src/generated/types/attributes.ts +42 -0
- package/src/generated/types/authority.ts +87 -0
- package/src/generated/types/autograph.ts +45 -0
- package/src/generated/types/autographSignature.ts +53 -0
- package/src/generated/types/bubblegumV2.ts +33 -0
- package/src/generated/types/burnCollectionV1Args.ts +57 -0
- package/src/generated/types/burnDelegate.ts +33 -0
- package/src/generated/types/burnV1Args.ts +51 -0
- package/src/generated/types/closeGroupV1Args.ts +36 -0
- package/src/generated/types/compressV1Args.ts +33 -0
- package/src/generated/types/compressionProof.ts +88 -0
- package/src/generated/types/createCollectionV1Args.ts +79 -0
- package/src/generated/types/createCollectionV2Args.ts +100 -0
- package/src/generated/types/createGroupV1Args.ts +65 -0
- package/src/generated/types/createV1Args.ts +84 -0
- package/src/generated/types/createV2Args.ts +102 -0
- package/src/generated/types/creator.ts +48 -0
- package/src/generated/types/dataSection.ts +50 -0
- package/src/generated/types/dataSectionInitInfo.ts +56 -0
- package/src/generated/types/dataSectionUpdateInfo.ts +36 -0
- package/src/generated/types/dataState.ts +33 -0
- package/src/generated/types/decompressV1Args.ts +41 -0
- package/src/generated/types/edition.ts +38 -0
- package/src/generated/types/executeV1Args.ts +51 -0
- package/src/generated/types/externalCheckResult.ts +44 -0
- package/src/generated/types/externalPluginAdapter.ts +268 -0
- package/src/generated/types/externalPluginAdapterInitInfo.ts +287 -0
- package/src/generated/types/externalPluginAdapterKey.ts +231 -0
- package/src/generated/types/externalPluginAdapterSchema.ts +40 -0
- package/src/generated/types/externalPluginAdapterType.ts +44 -0
- package/src/generated/types/externalPluginAdapterUpdateInfo.ts +263 -0
- package/src/generated/types/externalRegistryRecord.ts +122 -0
- package/src/generated/types/externalValidationResult.ts +40 -0
- package/src/generated/types/extraAccount.ts +294 -0
- package/src/generated/types/freezeDelegate.ts +41 -0
- package/src/generated/types/freezeExecute.ts +41 -0
- package/src/generated/types/groups.ts +36 -0
- package/src/generated/types/hashablePluginSchema.ts +61 -0
- package/src/generated/types/hashedAssetSchema.ts +55 -0
- package/src/generated/types/hookableLifecycleEvent.ts +42 -0
- package/src/generated/types/immutableMetadata.ts +36 -0
- package/src/generated/types/index.ts +125 -0
- package/src/generated/types/key.ts +38 -0
- package/src/generated/types/lifecycleHook.ts +88 -0
- package/src/generated/types/lifecycleHookInitInfo.ts +129 -0
- package/src/generated/types/lifecycleHookUpdateInfo.ts +114 -0
- package/src/generated/types/linkedAppData.ts +53 -0
- package/src/generated/types/linkedAppDataInitInfo.ts +72 -0
- package/src/generated/types/linkedAppDataUpdateInfo.ts +60 -0
- package/src/generated/types/linkedDataKey.ts +107 -0
- package/src/generated/types/linkedLifecycleHook.ts +91 -0
- package/src/generated/types/linkedLifecycleHookInitInfo.ts +129 -0
- package/src/generated/types/linkedLifecycleHookUpdateInfo.ts +114 -0
- package/src/generated/types/masterEdition.ts +75 -0
- package/src/generated/types/oracle.ts +69 -0
- package/src/generated/types/oracleInitInfo.ts +116 -0
- package/src/generated/types/oracleUpdateInfo.ts +108 -0
- package/src/generated/types/oracleValidation.ts +124 -0
- package/src/generated/types/permanentBurnDelegate.ts +36 -0
- package/src/generated/types/permanentFreezeDelegate.ts +44 -0
- package/src/generated/types/permanentFreezeExecute.ts +44 -0
- package/src/generated/types/permanentTransferDelegate.ts +36 -0
- package/src/generated/types/plugin.ts +565 -0
- package/src/generated/types/pluginAuthorityPair.ts +63 -0
- package/src/generated/types/pluginType.ts +53 -0
- package/src/generated/types/registryRecord.ts +63 -0
- package/src/generated/types/relationshipEntry.ts +60 -0
- package/src/generated/types/relationshipKind.ts +41 -0
- package/src/generated/types/removeAssetsFromGroupV1Args.ts +42 -0
- package/src/generated/types/removeCollectionExternalPluginAdapterV1Args.ts +44 -0
- package/src/generated/types/removeCollectionPluginV1Args.ts +42 -0
- package/src/generated/types/removeCollectionsFromGroupV1Args.ts +47 -0
- package/src/generated/types/removeExternalPluginAdapterV1Args.ts +44 -0
- package/src/generated/types/removeGroupsFromGroupV1Args.ts +42 -0
- package/src/generated/types/removePluginV1Args.ts +42 -0
- package/src/generated/types/revokeCollectionPluginAuthorityV1Args.ts +42 -0
- package/src/generated/types/revokePluginAuthorityV1Args.ts +42 -0
- package/src/generated/types/royalties.ts +57 -0
- package/src/generated/types/ruleSet.ts +114 -0
- package/src/generated/types/seed.ts +140 -0
- package/src/generated/types/transferDelegate.ts +36 -0
- package/src/generated/types/transferV1Args.ts +54 -0
- package/src/generated/types/updateAuthority.ts +107 -0
- package/src/generated/types/updateCollectionExternalPluginAdapterV1Args.ts +56 -0
- package/src/generated/types/updateCollectionInfoV1Args.ts +56 -0
- package/src/generated/types/updateCollectionPluginV1Args.ts +38 -0
- package/src/generated/types/updateCollectionV1Args.ts +74 -0
- package/src/generated/types/updateDelegate.ts +43 -0
- package/src/generated/types/updateExternalPluginAdapterV1Args.ts +56 -0
- package/src/generated/types/updateGroupV1Args.ts +74 -0
- package/src/generated/types/updatePluginV1Args.ts +38 -0
- package/src/generated/types/updateType.ts +37 -0
- package/src/generated/types/updateV1Args.ts +77 -0
- package/src/generated/types/updateV2Args.ts +77 -0
- package/src/generated/types/validationResult.ts +41 -0
- package/src/generated/types/validationResultsOffset.ts +115 -0
- package/src/generated/types/verifiedCreators.ts +54 -0
- package/src/generated/types/verifiedCreatorsSignature.ts +54 -0
- package/src/generated/types/writeCollectionExternalPluginAdapterDataV1Args.ts +81 -0
- package/src/generated/types/writeExternalPluginAdapterDataV1Args.ts +81 -0
- package/src/index.ts +8 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCollectionV2.js","names":[],"sources":["../../../src/generated/instructions/createCollectionV2.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n AccountMeta,\n AccountSignerMeta,\n Address,\n Codec,\n Decoder,\n Encoder,\n Instruction,\n InstructionWithAccounts,\n InstructionWithData,\n ReadonlyAccount,\n ReadonlyUint8Array,\n TransactionSigner,\n WritableSignerAccount,\n} from \"@solana/kit\";\nimport type { ResolvedInstructionAccount } from \"@solana/program-client-core\";\nimport type {\n CreateCollectionV2Args,\n CreateCollectionV2ArgsArgs,\n} from \"../types/index.js\";\nimport {\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU8Decoder,\n getU8Encoder,\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n SolanaError,\n transformEncoder,\n} from \"@solana/kit\";\nimport { getAccountMetaFactory } from \"@solana/program-client-core\";\nimport { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from \"../programs/index.js\";\nimport {\n getCreateCollectionV2ArgsDecoder,\n getCreateCollectionV2ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const CREATE_COLLECTION_V2_DISCRIMINATOR = 21;\n\nexport function getCreateCollectionV2DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(CREATE_COLLECTION_V2_DISCRIMINATOR);\n}\n\nexport type CreateCollectionV2Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountCollection extends string | AccountMeta<string> = string,\n TAccountUpdateAuthority extends string | AccountMeta<string> = string,\n TAccountPayer extends string | AccountMeta<string> = string,\n TAccountSystemProgram extends\n | string\n | AccountMeta<string> = \"11111111111111111111111111111111\",\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountCollection extends string\n ? WritableSignerAccount<TAccountCollection> &\n AccountSignerMeta<TAccountCollection>\n : TAccountCollection,\n TAccountUpdateAuthority extends string\n ? ReadonlyAccount<TAccountUpdateAuthority>\n : TAccountUpdateAuthority,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n ...TRemainingAccounts,\n ]\n >;\n\nexport interface CreateCollectionV2InstructionData {\n discriminator: number;\n createCollectionV2Args: CreateCollectionV2Args;\n}\n\nexport interface CreateCollectionV2InstructionDataArgs {\n createCollectionV2Args: CreateCollectionV2ArgsArgs;\n}\n\nexport function getCreateCollectionV2InstructionDataEncoder(): Encoder<CreateCollectionV2InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\"createCollectionV2Args\", getCreateCollectionV2ArgsEncoder()],\n ]),\n (value) => ({\n ...value,\n discriminator: CREATE_COLLECTION_V2_DISCRIMINATOR,\n }),\n );\n}\n\nexport function getCreateCollectionV2InstructionDataDecoder(): Decoder<CreateCollectionV2InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\"createCollectionV2Args\", getCreateCollectionV2ArgsDecoder()],\n ]);\n}\n\nexport function getCreateCollectionV2InstructionDataCodec(): Codec<\n CreateCollectionV2InstructionDataArgs,\n CreateCollectionV2InstructionData\n> {\n return combineCodec(\n getCreateCollectionV2InstructionDataEncoder(),\n getCreateCollectionV2InstructionDataDecoder(),\n );\n}\n\nexport interface CreateCollectionV2Input<\n TAccountCollection extends string = string,\n TAccountUpdateAuthority extends string = string,\n TAccountPayer extends string = string,\n TAccountSystemProgram extends string = string,\n> {\n /** The address of the new asset */\n collection: TransactionSigner<TAccountCollection>;\n /** The authority of the new asset */\n updateAuthority?: Address<TAccountUpdateAuthority>;\n /** The account paying for the storage fees */\n payer: TransactionSigner<TAccountPayer>;\n /** The system program */\n systemProgram?: Address<TAccountSystemProgram>;\n createCollectionV2Args: CreateCollectionV2InstructionDataArgs[\"createCollectionV2Args\"];\n}\n\nexport function getCreateCollectionV2Instruction<\n TAccountCollection extends string,\n TAccountUpdateAuthority extends string,\n TAccountPayer extends string,\n TAccountSystemProgram extends string,\n TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: CreateCollectionV2Input<\n TAccountCollection,\n TAccountUpdateAuthority,\n TAccountPayer,\n TAccountSystemProgram\n >,\n config?: { programAddress?: TProgramAddress },\n): CreateCollectionV2Instruction<\n TProgramAddress,\n TAccountCollection,\n TAccountUpdateAuthority,\n TAccountPayer,\n TAccountSystemProgram\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? MPL_CORE_PROGRAM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n collection: { value: input.collection ?? null, isWritable: true },\n updateAuthority: {\n value: input.updateAuthority ?? null,\n isWritable: false,\n },\n payer: { value: input.payer ?? null, isWritable: true },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedInstructionAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n \"11111111111111111111111111111111\" as Address<\"11111111111111111111111111111111\">;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, \"programId\");\n return Object.freeze({\n accounts: [\n getAccountMeta(\"collection\", accounts.collection),\n getAccountMeta(\"updateAuthority\", accounts.updateAuthority),\n getAccountMeta(\"payer\", accounts.payer),\n getAccountMeta(\"systemProgram\", accounts.systemProgram),\n ],\n data: getCreateCollectionV2InstructionDataEncoder().encode(\n args as CreateCollectionV2InstructionDataArgs,\n ),\n programAddress,\n } as CreateCollectionV2Instruction<\n TProgramAddress,\n TAccountCollection,\n TAccountUpdateAuthority,\n TAccountPayer,\n TAccountSystemProgram\n >);\n}\n\nexport interface ParsedCreateCollectionV2Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],\n> {\n programAddress: Address<TProgram>;\n accounts: {\n /** The address of the new asset */\n collection: TAccountMetas[0];\n /** The authority of the new asset */\n updateAuthority?: TAccountMetas[1] | undefined;\n /** The account paying for the storage fees */\n payer: TAccountMetas[2];\n /** The system program */\n systemProgram: TAccountMetas[3];\n };\n data: CreateCollectionV2InstructionData;\n}\n\nexport function parseCreateCollectionV2Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedCreateCollectionV2Instruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 4) {\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n {\n actualAccountMetas: instruction.accounts.length,\n expectedAccountMetas: 4,\n },\n );\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n const getNextOptionalAccount = () => {\n const accountMeta = getNextAccount();\n return accountMeta.address === MPL_CORE_PROGRAM_PROGRAM_ADDRESS\n ? undefined\n : accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: {\n collection: getNextAccount(),\n updateAuthority: getNextOptionalAccount(),\n payer: getNextAccount(),\n systemProgram: getNextAccount(),\n },\n data: getCreateCollectionV2InstructionDataDecoder().decode(\n instruction.data,\n ),\n };\n}\n"],"mappings":";;;;;AA6CA,MAAa,qCAAqC;AAElD,SAAgB,0CAA8D;CAC5E,OAAO,aAAa,CAAC,CAAC,OAAA,EAAyC;AACjE;AA0CA,SAAgB,8CAA8F;CAC5G,OAAO,iBACL,iBAAiB,CACf,CAAC,iBAAiB,aAAa,CAAC,GAChC,CAAC,0BAA0B,iCAAiC,CAAC,CAC/D,CAAC,IACA,WAAW;EACV,GAAG;EACH,eAAA;CACF,EACF;AACF;AAEA,SAAgB,8CAA0F;CACxG,OAAO,iBAAiB,CACtB,CAAC,iBAAiB,aAAa,CAAC,GAChC,CAAC,0BAA0B,iCAAiC,CAAC,CAC/D,CAAC;AACH;AAEA,SAAgB,4CAGd;CACA,OAAO,aACL,4CAA4C,GAC5C,4CAA4C,CAC9C;AACF;AAmBA,SAAgB,iCAOd,OAMA,QAOA;CAEA,MAAM,iBACJ,QAAQ,kBAAA;CAYV,MAAM,WAAW;EARf,YAAY;GAAE,OAAO,MAAM,cAAc;GAAM,YAAY;EAAK;EAChE,iBAAiB;GACf,OAAO,MAAM,mBAAmB;GAChC,YAAY;EACd;EACA,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,eAAe;GAAE,OAAO,MAAM,iBAAiB;GAAM,YAAY;EAAM;CAEzC;CAMhC,MAAM,OAAO,EAAE,GAAG,MAAM;CAGxB,IAAI,CAAC,SAAS,cAAc,OAC1B,SAAS,cAAc,QACrB;CAGJ,MAAM,iBAAiB,sBAAsB,gBAAgB,WAAW;CACxE,OAAO,OAAO,OAAO;EACnB,UAAU;GACR,eAAe,cAAc,SAAS,UAAU;GAChD,eAAe,mBAAmB,SAAS,eAAe;GAC1D,eAAe,SAAS,SAAS,KAAK;GACtC,eAAe,iBAAiB,SAAS,aAAa;EACxD;EACA,MAAM,4CAA4C,CAAC,CAAC,OAClD,IACF;EACA;CACF,CAMC;AACH;AAoBA,SAAgB,mCAId,aAG8D;CAC9D,IAAI,YAAY,SAAS,SAAS,GAChC,MAAM,IAAI,YACR,2DACA;EACE,oBAAoB,YAAY,SAAS;EACzC,sBAAsB;CACxB,CACF;CAEF,IAAI,eAAe;CACnB,MAAM,uBAAuB;EAC3B,MAAM,cAAe,YAAY,SAA2B;EAC5D,gBAAgB;EAChB,OAAO;CACT;CACA,MAAM,+BAA+B;EACnC,MAAM,cAAc,eAAe;EACnC,OAAO,YAAY,YAAA,iDACf,KAAA,IACA;CACN;CACA,OAAO;EACL,gBAAgB,YAAY;EAC5B,UAAU;GACR,YAAY,eAAe;GAC3B,iBAAiB,uBAAuB;GACxC,OAAO,eAAe;GACtB,eAAe,eAAe;EAChC;EACA,MAAM,4CAA4C,CAAC,CAAC,OAClD,YAAY,IACd;CACF;AACF"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CreateGroupV1Args, CreateGroupV1ArgsArgs } from "../types/createGroupV1Args.js";
|
|
2
|
+
import { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from "../programs/mplCoreProgram.js";
|
|
3
|
+
import { AccountMeta, AccountSignerMeta, Address, Codec, Decoder, Encoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableSignerAccount } from "@solana/kit";
|
|
4
|
+
|
|
5
|
+
//#region src/generated/instructions/createGroupV1.d.ts
|
|
6
|
+
declare const CREATE_GROUP_V1_DISCRIMINATOR = 39;
|
|
7
|
+
declare function getCreateGroupV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
8
|
+
type CreateGroupV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountGroup extends string | AccountMeta<string> = string, TAccountUpdateAuthority extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountGroup extends string ? WritableSignerAccount<TAccountGroup> & AccountSignerMeta<TAccountGroup> : TAccountGroup, TAccountUpdateAuthority extends string ? ReadonlySignerAccount<TAccountUpdateAuthority> & AccountSignerMeta<TAccountUpdateAuthority> : TAccountUpdateAuthority, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
9
|
+
interface CreateGroupV1InstructionData {
|
|
10
|
+
discriminator: number;
|
|
11
|
+
createGroupV1Args: CreateGroupV1Args;
|
|
12
|
+
}
|
|
13
|
+
interface CreateGroupV1InstructionDataArgs {
|
|
14
|
+
createGroupV1Args: CreateGroupV1ArgsArgs;
|
|
15
|
+
}
|
|
16
|
+
declare function getCreateGroupV1InstructionDataEncoder(): Encoder<CreateGroupV1InstructionDataArgs>;
|
|
17
|
+
declare function getCreateGroupV1InstructionDataDecoder(): Decoder<CreateGroupV1InstructionData>;
|
|
18
|
+
declare function getCreateGroupV1InstructionDataCodec(): Codec<CreateGroupV1InstructionDataArgs, CreateGroupV1InstructionData>;
|
|
19
|
+
interface CreateGroupV1Input<TAccountGroup extends string = string, TAccountUpdateAuthority extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> {
|
|
20
|
+
/** The address of the new group */
|
|
21
|
+
group: TransactionSigner<TAccountGroup>;
|
|
22
|
+
/** The authority of the new group */
|
|
23
|
+
updateAuthority?: TransactionSigner<TAccountUpdateAuthority>;
|
|
24
|
+
/** The account paying for the storage fees */
|
|
25
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
26
|
+
/** The system program */
|
|
27
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
28
|
+
createGroupV1Args: CreateGroupV1InstructionDataArgs["createGroupV1Args"];
|
|
29
|
+
}
|
|
30
|
+
declare function getCreateGroupV1Instruction<TAccountGroup extends string, TAccountUpdateAuthority extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS>(input: CreateGroupV1Input<TAccountGroup, TAccountUpdateAuthority, TAccountPayer, TAccountSystemProgram>, config?: {
|
|
31
|
+
programAddress?: TProgramAddress;
|
|
32
|
+
}): CreateGroupV1Instruction<TProgramAddress, TAccountGroup, TAccountUpdateAuthority, TAccountPayer, TAccountSystemProgram>;
|
|
33
|
+
interface ParsedCreateGroupV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> {
|
|
34
|
+
programAddress: Address<TProgram>;
|
|
35
|
+
accounts: {
|
|
36
|
+
/** The address of the new group */group: TAccountMetas[0]; /** The authority of the new group */
|
|
37
|
+
updateAuthority?: TAccountMetas[1] | undefined; /** The account paying for the storage fees */
|
|
38
|
+
payer: TAccountMetas[2]; /** The system program */
|
|
39
|
+
systemProgram: TAccountMetas[3];
|
|
40
|
+
};
|
|
41
|
+
data: CreateGroupV1InstructionData;
|
|
42
|
+
}
|
|
43
|
+
declare function parseCreateGroupV1Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateGroupV1Instruction<TProgram, TAccountMetas>;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { CREATE_GROUP_V1_DISCRIMINATOR, CreateGroupV1Input, CreateGroupV1Instruction, CreateGroupV1InstructionData, CreateGroupV1InstructionDataArgs, ParsedCreateGroupV1Instruction, getCreateGroupV1DiscriminatorBytes, getCreateGroupV1Instruction, getCreateGroupV1InstructionDataCodec, getCreateGroupV1InstructionDataDecoder, getCreateGroupV1InstructionDataEncoder, parseCreateGroupV1Instruction };
|
|
46
|
+
//# sourceMappingURL=createGroupV1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGroupV1.d.ts","names":[],"sources":["../../../src/generated/instructions/createGroupV1.ts"],"mappings":";;;;;cA8Ca,6BAAA;AAAA,iBAEG,kCAAA,IAAsC,kBAAA;AAAA,KAI1C,wBAAA,kCACuB,gCAAA,iCACF,WAAA,4DACU,WAAA,kDACV,WAAA,0DAG3B,WAAA,mFACgC,WAAA,mBAClC,WAAA,CAAY,QAAA,IACd,mBAAA,CAAoB,kBAAA,IACpB,uBAAA,EAEI,aAAA,kBACI,qBAAA,CAAsB,aAAA,IACpB,iBAAA,CAAkB,aAAA,IACpB,aAAA,EACJ,uBAAA,kBACI,qBAAA,CAAsB,uBAAA,IACpB,iBAAA,CAAkB,uBAAA,IACpB,uBAAA,EACJ,aAAA,kBACI,qBAAA,CAAsB,aAAA,IACpB,iBAAA,CAAkB,aAAA,IACpB,aAAA,EACJ,qBAAA,kBACI,eAAA,CAAgB,qBAAA,IAChB,qBAAA,KACD,kBAAA;AAAA,UAIQ,4BAAA;EACf,aAAA;EACA,iBAAA,EAAmB,iBAAA;AAAA;AAAA,UAGJ,gCAAA;EACf,iBAAA,EAAmB,qBAAA;AAAA;AAAA,iBAGL,sCAAA,IAA0C,OAAA,CAAQ,gCAAA;AAAA,iBAUlD,sCAAA,IAA0C,OAAA,CAAQ,4BAAA;AAAA,iBAOlD,oCAAA,IAAwC,KAAA,CACtD,gCAAA,EACA,4BAAA;AAAA,UAQe,kBAAA;;EAOf,KAAA,EAAO,iBAAA,CAAkB,aAAA;;EAEzB,eAAA,GAAkB,iBAAA,CAAkB,uBAAA;;EAEpC,KAAA,EAAO,iBAAA,CAAkB,aAAA;;EAEzB,aAAA,GAAgB,OAAA,CAAQ,qBAAA;EACxB,iBAAA,EAAmB,gCAAA;AAAA;AAAA,iBAGL,2BAAA,mKAKU,OAAA,UAAiB,gCAAA,EAEzC,KAAA,EAAO,kBAAA,CACL,aAAA,EACA,uBAAA,EACA,aAAA,EACA,qBAAA,GAEF,MAAA;EAAW,cAAA,GAAiB,eAAA;AAAA,IAC3B,wBAAA,CACD,eAAA,EACA,aAAA,EACA,uBAAA,EACA,aAAA,EACA,qBAAA;AAAA,UAmDe,8BAAA,kCACkB,gCAAA,iCACF,WAAA,cAAyB,WAAA;EAExD,cAAA,EAAgB,OAAA,CAAQ,QAAA;EACxB,QAAA;IA7JyC,mCA+JvC,KAAA,EAAO,aAAA,KA9JsB;IAgK7B,eAAA,GAAkB,aAAA,iBA7JhB;IA+JF,KAAA,EAAO,aAAA,KA9J2B;IAgKlC,aAAA,EAAe,aAAA;EAAA;EAEjB,IAAA,EAAM,4BAAA;AAAA;AAAA,iBAGQ,6BAAA,yDAEiB,WAAA,IAE/B,WAAA,EAAa,WAAA,CAAY,QAAA,IACvB,uBAAA,CAAwB,aAAA,IACxB,mBAAA,CAAoB,kBAAA,IACrB,8BAAA,CAA+B,QAAA,EAAU,aAAA"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { getCreateGroupV1ArgsDecoder, getCreateGroupV1ArgsEncoder } from "../types/createGroupV1Args.js";
|
|
2
|
+
import "../programs/mplCoreProgram.js";
|
|
3
|
+
import { SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, combineCodec, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, transformEncoder } from "@solana/kit";
|
|
4
|
+
import { getAccountMetaFactory } from "@solana/program-client-core";
|
|
5
|
+
//#region src/generated/instructions/createGroupV1.ts
|
|
6
|
+
const CREATE_GROUP_V1_DISCRIMINATOR = 39;
|
|
7
|
+
function getCreateGroupV1DiscriminatorBytes() {
|
|
8
|
+
return getU8Encoder().encode(39);
|
|
9
|
+
}
|
|
10
|
+
function getCreateGroupV1InstructionDataEncoder() {
|
|
11
|
+
return transformEncoder(getStructEncoder([["discriminator", getU8Encoder()], ["createGroupV1Args", getCreateGroupV1ArgsEncoder()]]), (value) => ({
|
|
12
|
+
...value,
|
|
13
|
+
discriminator: 39
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
function getCreateGroupV1InstructionDataDecoder() {
|
|
17
|
+
return getStructDecoder([["discriminator", getU8Decoder()], ["createGroupV1Args", getCreateGroupV1ArgsDecoder()]]);
|
|
18
|
+
}
|
|
19
|
+
function getCreateGroupV1InstructionDataCodec() {
|
|
20
|
+
return combineCodec(getCreateGroupV1InstructionDataEncoder(), getCreateGroupV1InstructionDataDecoder());
|
|
21
|
+
}
|
|
22
|
+
function getCreateGroupV1Instruction(input, config) {
|
|
23
|
+
const programAddress = config?.programAddress ?? "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d";
|
|
24
|
+
const accounts = {
|
|
25
|
+
group: {
|
|
26
|
+
value: input.group ?? null,
|
|
27
|
+
isWritable: true
|
|
28
|
+
},
|
|
29
|
+
updateAuthority: {
|
|
30
|
+
value: input.updateAuthority ?? null,
|
|
31
|
+
isWritable: false
|
|
32
|
+
},
|
|
33
|
+
payer: {
|
|
34
|
+
value: input.payer ?? null,
|
|
35
|
+
isWritable: true
|
|
36
|
+
},
|
|
37
|
+
systemProgram: {
|
|
38
|
+
value: input.systemProgram ?? null,
|
|
39
|
+
isWritable: false
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const args = { ...input };
|
|
43
|
+
if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
44
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
45
|
+
return Object.freeze({
|
|
46
|
+
accounts: [
|
|
47
|
+
getAccountMeta("group", accounts.group),
|
|
48
|
+
getAccountMeta("updateAuthority", accounts.updateAuthority),
|
|
49
|
+
getAccountMeta("payer", accounts.payer),
|
|
50
|
+
getAccountMeta("systemProgram", accounts.systemProgram)
|
|
51
|
+
],
|
|
52
|
+
data: getCreateGroupV1InstructionDataEncoder().encode(args),
|
|
53
|
+
programAddress
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function parseCreateGroupV1Instruction(instruction) {
|
|
57
|
+
if (instruction.accounts.length < 4) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
58
|
+
actualAccountMetas: instruction.accounts.length,
|
|
59
|
+
expectedAccountMetas: 4
|
|
60
|
+
});
|
|
61
|
+
let accountIndex = 0;
|
|
62
|
+
const getNextAccount = () => {
|
|
63
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
64
|
+
accountIndex += 1;
|
|
65
|
+
return accountMeta;
|
|
66
|
+
};
|
|
67
|
+
const getNextOptionalAccount = () => {
|
|
68
|
+
const accountMeta = getNextAccount();
|
|
69
|
+
return accountMeta.address === "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d" ? void 0 : accountMeta;
|
|
70
|
+
};
|
|
71
|
+
return {
|
|
72
|
+
programAddress: instruction.programAddress,
|
|
73
|
+
accounts: {
|
|
74
|
+
group: getNextAccount(),
|
|
75
|
+
updateAuthority: getNextOptionalAccount(),
|
|
76
|
+
payer: getNextAccount(),
|
|
77
|
+
systemProgram: getNextAccount()
|
|
78
|
+
},
|
|
79
|
+
data: getCreateGroupV1InstructionDataDecoder().decode(instruction.data)
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
export { CREATE_GROUP_V1_DISCRIMINATOR, getCreateGroupV1DiscriminatorBytes, getCreateGroupV1Instruction, getCreateGroupV1InstructionDataCodec, getCreateGroupV1InstructionDataDecoder, getCreateGroupV1InstructionDataEncoder, parseCreateGroupV1Instruction };
|
|
84
|
+
|
|
85
|
+
//# sourceMappingURL=createGroupV1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGroupV1.js","names":[],"sources":["../../../src/generated/instructions/createGroupV1.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n AccountMeta,\n AccountSignerMeta,\n Address,\n Codec,\n Decoder,\n Encoder,\n Instruction,\n InstructionWithAccounts,\n InstructionWithData,\n ReadonlyAccount,\n ReadonlySignerAccount,\n ReadonlyUint8Array,\n TransactionSigner,\n WritableSignerAccount,\n} from \"@solana/kit\";\nimport type { ResolvedInstructionAccount } from \"@solana/program-client-core\";\nimport type {\n CreateGroupV1Args,\n CreateGroupV1ArgsArgs,\n} from \"../types/index.js\";\nimport {\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU8Decoder,\n getU8Encoder,\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n SolanaError,\n transformEncoder,\n} from \"@solana/kit\";\nimport { getAccountMetaFactory } from \"@solana/program-client-core\";\nimport { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from \"../programs/index.js\";\nimport {\n getCreateGroupV1ArgsDecoder,\n getCreateGroupV1ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const CREATE_GROUP_V1_DISCRIMINATOR = 39;\n\nexport function getCreateGroupV1DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(CREATE_GROUP_V1_DISCRIMINATOR);\n}\n\nexport type CreateGroupV1Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountGroup extends string | AccountMeta<string> = string,\n TAccountUpdateAuthority extends string | AccountMeta<string> = string,\n TAccountPayer extends string | AccountMeta<string> = string,\n TAccountSystemProgram extends\n | string\n | AccountMeta<string> = \"11111111111111111111111111111111\",\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountGroup extends string\n ? WritableSignerAccount<TAccountGroup> &\n AccountSignerMeta<TAccountGroup>\n : TAccountGroup,\n TAccountUpdateAuthority extends string\n ? ReadonlySignerAccount<TAccountUpdateAuthority> &\n AccountSignerMeta<TAccountUpdateAuthority>\n : TAccountUpdateAuthority,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n ...TRemainingAccounts,\n ]\n >;\n\nexport interface CreateGroupV1InstructionData {\n discriminator: number;\n createGroupV1Args: CreateGroupV1Args;\n}\n\nexport interface CreateGroupV1InstructionDataArgs {\n createGroupV1Args: CreateGroupV1ArgsArgs;\n}\n\nexport function getCreateGroupV1InstructionDataEncoder(): Encoder<CreateGroupV1InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\"createGroupV1Args\", getCreateGroupV1ArgsEncoder()],\n ]),\n (value) => ({ ...value, discriminator: CREATE_GROUP_V1_DISCRIMINATOR }),\n );\n}\n\nexport function getCreateGroupV1InstructionDataDecoder(): Decoder<CreateGroupV1InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\"createGroupV1Args\", getCreateGroupV1ArgsDecoder()],\n ]);\n}\n\nexport function getCreateGroupV1InstructionDataCodec(): Codec<\n CreateGroupV1InstructionDataArgs,\n CreateGroupV1InstructionData\n> {\n return combineCodec(\n getCreateGroupV1InstructionDataEncoder(),\n getCreateGroupV1InstructionDataDecoder(),\n );\n}\n\nexport interface CreateGroupV1Input<\n TAccountGroup extends string = string,\n TAccountUpdateAuthority extends string = string,\n TAccountPayer extends string = string,\n TAccountSystemProgram extends string = string,\n> {\n /** The address of the new group */\n group: TransactionSigner<TAccountGroup>;\n /** The authority of the new group */\n updateAuthority?: TransactionSigner<TAccountUpdateAuthority>;\n /** The account paying for the storage fees */\n payer: TransactionSigner<TAccountPayer>;\n /** The system program */\n systemProgram?: Address<TAccountSystemProgram>;\n createGroupV1Args: CreateGroupV1InstructionDataArgs[\"createGroupV1Args\"];\n}\n\nexport function getCreateGroupV1Instruction<\n TAccountGroup extends string,\n TAccountUpdateAuthority extends string,\n TAccountPayer extends string,\n TAccountSystemProgram extends string,\n TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: CreateGroupV1Input<\n TAccountGroup,\n TAccountUpdateAuthority,\n TAccountPayer,\n TAccountSystemProgram\n >,\n config?: { programAddress?: TProgramAddress },\n): CreateGroupV1Instruction<\n TProgramAddress,\n TAccountGroup,\n TAccountUpdateAuthority,\n TAccountPayer,\n TAccountSystemProgram\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? MPL_CORE_PROGRAM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n group: { value: input.group ?? null, isWritable: true },\n updateAuthority: {\n value: input.updateAuthority ?? null,\n isWritable: false,\n },\n payer: { value: input.payer ?? null, isWritable: true },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedInstructionAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n \"11111111111111111111111111111111\" as Address<\"11111111111111111111111111111111\">;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, \"programId\");\n return Object.freeze({\n accounts: [\n getAccountMeta(\"group\", accounts.group),\n getAccountMeta(\"updateAuthority\", accounts.updateAuthority),\n getAccountMeta(\"payer\", accounts.payer),\n getAccountMeta(\"systemProgram\", accounts.systemProgram),\n ],\n data: getCreateGroupV1InstructionDataEncoder().encode(\n args as CreateGroupV1InstructionDataArgs,\n ),\n programAddress,\n } as CreateGroupV1Instruction<\n TProgramAddress,\n TAccountGroup,\n TAccountUpdateAuthority,\n TAccountPayer,\n TAccountSystemProgram\n >);\n}\n\nexport interface ParsedCreateGroupV1Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],\n> {\n programAddress: Address<TProgram>;\n accounts: {\n /** The address of the new group */\n group: TAccountMetas[0];\n /** The authority of the new group */\n updateAuthority?: TAccountMetas[1] | undefined;\n /** The account paying for the storage fees */\n payer: TAccountMetas[2];\n /** The system program */\n systemProgram: TAccountMetas[3];\n };\n data: CreateGroupV1InstructionData;\n}\n\nexport function parseCreateGroupV1Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedCreateGroupV1Instruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 4) {\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n {\n actualAccountMetas: instruction.accounts.length,\n expectedAccountMetas: 4,\n },\n );\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n const getNextOptionalAccount = () => {\n const accountMeta = getNextAccount();\n return accountMeta.address === MPL_CORE_PROGRAM_PROGRAM_ADDRESS\n ? undefined\n : accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: {\n group: getNextAccount(),\n updateAuthority: getNextOptionalAccount(),\n payer: getNextAccount(),\n systemProgram: getNextAccount(),\n },\n data: getCreateGroupV1InstructionDataDecoder().decode(instruction.data),\n };\n}\n"],"mappings":";;;;;AA8CA,MAAa,gCAAgC;AAE7C,SAAgB,qCAAyD;CACvE,OAAO,aAAa,CAAC,CAAC,OAAA,EAAoC;AAC5D;AA2CA,SAAgB,yCAAoF;CAClG,OAAO,iBACL,iBAAiB,CACf,CAAC,iBAAiB,aAAa,CAAC,GAChC,CAAC,qBAAqB,4BAA4B,CAAC,CACrD,CAAC,IACA,WAAW;EAAE,GAAG;EAAO,eAAA;CAA6C,EACvE;AACF;AAEA,SAAgB,yCAAgF;CAC9F,OAAO,iBAAiB,CACtB,CAAC,iBAAiB,aAAa,CAAC,GAChC,CAAC,qBAAqB,4BAA4B,CAAC,CACrD,CAAC;AACH;AAEA,SAAgB,uCAGd;CACA,OAAO,aACL,uCAAuC,GACvC,uCAAuC,CACzC;AACF;AAmBA,SAAgB,4BAOd,OAMA,QAOA;CAEA,MAAM,iBACJ,QAAQ,kBAAA;CAYV,MAAM,WAAW;EARf,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,iBAAiB;GACf,OAAO,MAAM,mBAAmB;GAChC,YAAY;EACd;EACA,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,eAAe;GAAE,OAAO,MAAM,iBAAiB;GAAM,YAAY;EAAM;CAEzC;CAMhC,MAAM,OAAO,EAAE,GAAG,MAAM;CAGxB,IAAI,CAAC,SAAS,cAAc,OAC1B,SAAS,cAAc,QACrB;CAGJ,MAAM,iBAAiB,sBAAsB,gBAAgB,WAAW;CACxE,OAAO,OAAO,OAAO;EACnB,UAAU;GACR,eAAe,SAAS,SAAS,KAAK;GACtC,eAAe,mBAAmB,SAAS,eAAe;GAC1D,eAAe,SAAS,SAAS,KAAK;GACtC,eAAe,iBAAiB,SAAS,aAAa;EACxD;EACA,MAAM,uCAAuC,CAAC,CAAC,OAC7C,IACF;EACA;CACF,CAMC;AACH;AAoBA,SAAgB,8BAId,aAGyD;CACzD,IAAI,YAAY,SAAS,SAAS,GAChC,MAAM,IAAI,YACR,2DACA;EACE,oBAAoB,YAAY,SAAS;EACzC,sBAAsB;CACxB,CACF;CAEF,IAAI,eAAe;CACnB,MAAM,uBAAuB;EAC3B,MAAM,cAAe,YAAY,SAA2B;EAC5D,gBAAgB;EAChB,OAAO;CACT;CACA,MAAM,+BAA+B;EACnC,MAAM,cAAc,eAAe;EACnC,OAAO,YAAY,YAAA,iDACf,KAAA,IACA;CACN;CACA,OAAO;EACL,gBAAgB,YAAY;EAC5B,UAAU;GACR,OAAO,eAAe;GACtB,iBAAiB,uBAAuB;GACxC,OAAO,eAAe;GACtB,eAAe,eAAe;EAChC;EACA,MAAM,uCAAuC,CAAC,CAAC,OAAO,YAAY,IAAI;CACxE;AACF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { CreateV1Args, CreateV1ArgsArgs } from "../types/createV1Args.js";
|
|
2
|
+
import { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from "../programs/mplCoreProgram.js";
|
|
3
|
+
import { AccountMeta, AccountSignerMeta, Address, Codec, Decoder, Encoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount, WritableSignerAccount } from "@solana/kit";
|
|
4
|
+
|
|
5
|
+
//#region src/generated/instructions/createV1.d.ts
|
|
6
|
+
declare const CREATE_V1_DISCRIMINATOR = 0;
|
|
7
|
+
declare function getCreateV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
8
|
+
type CreateV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountAsset extends string | AccountMeta<string> = string, TAccountCollection extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountUpdateAuthority extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountLogWrapper extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountAsset extends string ? WritableSignerAccount<TAccountAsset> & AccountSignerMeta<TAccountAsset> : TAccountAsset, TAccountCollection extends string ? WritableAccount<TAccountCollection> : TAccountCollection, TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner, TAccountUpdateAuthority extends string ? ReadonlyAccount<TAccountUpdateAuthority> : TAccountUpdateAuthority, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountLogWrapper extends string ? ReadonlyAccount<TAccountLogWrapper> : TAccountLogWrapper, ...TRemainingAccounts]>;
|
|
9
|
+
interface CreateV1InstructionData {
|
|
10
|
+
discriminator: number;
|
|
11
|
+
createV1Args: CreateV1Args;
|
|
12
|
+
}
|
|
13
|
+
interface CreateV1InstructionDataArgs {
|
|
14
|
+
createV1Args: CreateV1ArgsArgs;
|
|
15
|
+
}
|
|
16
|
+
declare function getCreateV1InstructionDataEncoder(): Encoder<CreateV1InstructionDataArgs>;
|
|
17
|
+
declare function getCreateV1InstructionDataDecoder(): Decoder<CreateV1InstructionData>;
|
|
18
|
+
declare function getCreateV1InstructionDataCodec(): Codec<CreateV1InstructionDataArgs, CreateV1InstructionData>;
|
|
19
|
+
interface CreateV1Input<TAccountAsset extends string = string, TAccountCollection extends string = string, TAccountAuthority extends string = string, TAccountPayer extends string = string, TAccountOwner extends string = string, TAccountUpdateAuthority extends string = string, TAccountSystemProgram extends string = string, TAccountLogWrapper extends string = string> {
|
|
20
|
+
/** The address of the new asset */
|
|
21
|
+
asset: TransactionSigner<TAccountAsset>;
|
|
22
|
+
/** The collection to which the asset belongs */
|
|
23
|
+
collection?: Address<TAccountCollection>;
|
|
24
|
+
/** The authority signing for creation */
|
|
25
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
26
|
+
/** The account paying for the storage fees */
|
|
27
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
28
|
+
/** The owner of the new asset. Defaults to the authority if not present. */
|
|
29
|
+
owner?: Address<TAccountOwner>;
|
|
30
|
+
/** The authority on the new asset */
|
|
31
|
+
updateAuthority?: Address<TAccountUpdateAuthority>;
|
|
32
|
+
/** The system program */
|
|
33
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
34
|
+
/** The SPL Noop Program */
|
|
35
|
+
logWrapper?: Address<TAccountLogWrapper>;
|
|
36
|
+
createV1Args: CreateV1InstructionDataArgs["createV1Args"];
|
|
37
|
+
}
|
|
38
|
+
declare function getCreateV1Instruction<TAccountAsset extends string, TAccountCollection extends string, TAccountAuthority extends string, TAccountPayer extends string, TAccountOwner extends string, TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountLogWrapper extends string, TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS>(input: CreateV1Input<TAccountAsset, TAccountCollection, TAccountAuthority, TAccountPayer, TAccountOwner, TAccountUpdateAuthority, TAccountSystemProgram, TAccountLogWrapper>, config?: {
|
|
39
|
+
programAddress?: TProgramAddress;
|
|
40
|
+
}): CreateV1Instruction<TProgramAddress, TAccountAsset, TAccountCollection, TAccountAuthority, TAccountPayer, TAccountOwner, TAccountUpdateAuthority, TAccountSystemProgram, TAccountLogWrapper>;
|
|
41
|
+
interface ParsedCreateV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> {
|
|
42
|
+
programAddress: Address<TProgram>;
|
|
43
|
+
accounts: {
|
|
44
|
+
/** The address of the new asset */asset: TAccountMetas[0]; /** The collection to which the asset belongs */
|
|
45
|
+
collection?: TAccountMetas[1] | undefined; /** The authority signing for creation */
|
|
46
|
+
authority?: TAccountMetas[2] | undefined; /** The account paying for the storage fees */
|
|
47
|
+
payer: TAccountMetas[3]; /** The owner of the new asset. Defaults to the authority if not present. */
|
|
48
|
+
owner?: TAccountMetas[4] | undefined; /** The authority on the new asset */
|
|
49
|
+
updateAuthority?: TAccountMetas[5] | undefined; /** The system program */
|
|
50
|
+
systemProgram: TAccountMetas[6]; /** The SPL Noop Program */
|
|
51
|
+
logWrapper?: TAccountMetas[7] | undefined;
|
|
52
|
+
};
|
|
53
|
+
data: CreateV1InstructionData;
|
|
54
|
+
}
|
|
55
|
+
declare function parseCreateV1Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateV1Instruction<TProgram, TAccountMetas>;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { CREATE_V1_DISCRIMINATOR, CreateV1Input, CreateV1Instruction, CreateV1InstructionData, CreateV1InstructionDataArgs, ParsedCreateV1Instruction, getCreateV1DiscriminatorBytes, getCreateV1Instruction, getCreateV1InstructionDataCodec, getCreateV1InstructionDataDecoder, getCreateV1InstructionDataEncoder, parseCreateV1Instruction };
|
|
58
|
+
//# sourceMappingURL=createV1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createV1.d.ts","names":[],"sources":["../../../src/generated/instructions/createV1.ts"],"mappings":";;;;;cA4Ca,uBAAA;AAAA,iBAEG,6BAAA,IAAiC,kBAAA;AAAA,KAIrC,mBAAA,kCACuB,gCAAA,iCACF,WAAA,uDACK,WAAA,sDACD,WAAA,kDACJ,WAAA,kDACA,WAAA,4DACU,WAAA,0DAGrC,WAAA,mFACgC,WAAA,uDACA,WAAA,mBAClC,WAAA,CAAY,QAAA,IACd,mBAAA,CAAoB,kBAAA,IACpB,uBAAA,EAEI,aAAA,kBACI,qBAAA,CAAsB,aAAA,IACpB,iBAAA,CAAkB,aAAA,IACpB,aAAA,EACJ,kBAAA,kBACI,eAAA,CAAgB,kBAAA,IAChB,kBAAA,EACJ,iBAAA,kBACI,qBAAA,CAAsB,iBAAA,IACpB,iBAAA,CAAkB,iBAAA,IACpB,iBAAA,EACJ,aAAA,kBACI,qBAAA,CAAsB,aAAA,IACpB,iBAAA,CAAkB,aAAA,IACpB,aAAA,EACJ,aAAA,kBACI,eAAA,CAAgB,aAAA,IAChB,aAAA,EACJ,uBAAA,kBACI,eAAA,CAAgB,uBAAA,IAChB,uBAAA,EACJ,qBAAA,kBACI,eAAA,CAAgB,qBAAA,IAChB,qBAAA,EACJ,kBAAA,kBACI,eAAA,CAAgB,kBAAA,IAChB,kBAAA,KACD,kBAAA;AAAA,UAIQ,uBAAA;EACf,aAAA;EACA,YAAA,EAAc,YAAA;AAAA;AAAA,UAGC,2BAAA;EACf,YAAA,EAAc,gBAAA;AAAA;AAAA,iBAGA,iCAAA,IAAqC,OAAA,CAAQ,2BAAA;AAAA,iBAU7C,iCAAA,IAAqC,OAAA,CAAQ,uBAAA;AAAA,iBAO7C,+BAAA,IAAmC,KAAA,CACjD,2BAAA,EACA,uBAAA;AAAA,UAQe,aAAA;;EAWf,KAAA,EAAO,iBAAA,CAAkB,aAAA;;EAEzB,UAAA,GAAa,OAAA,CAAQ,kBAAA;;EAErB,SAAA,GAAY,iBAAA,CAAkB,iBAAA;;EAE9B,KAAA,EAAO,iBAAA,CAAkB,aAAA;;EAEzB,KAAA,GAAQ,OAAA,CAAQ,aAAA;;EAEhB,eAAA,GAAkB,OAAA,CAAQ,uBAAA;;EAE1B,aAAA,GAAgB,OAAA,CAAQ,qBAAA;;EAExB,UAAA,GAAa,OAAA,CAAQ,kBAAA;EACrB,YAAA,EAAc,2BAAA;AAAA;AAAA,iBAGA,sBAAA,ySASU,OAAA,UAAiB,gCAAA,EAEzC,KAAA,EAAO,aAAA,CACL,aAAA,EACA,kBAAA,EACA,iBAAA,EACA,aAAA,EACA,aAAA,EACA,uBAAA,EACA,qBAAA,EACA,kBAAA,GAEF,MAAA;EAAW,cAAA,GAAiB,eAAA;AAAA,IAC3B,mBAAA,CACD,eAAA,EACA,aAAA,EACA,kBAAA,EACA,iBAAA,EACA,aAAA,EACA,aAAA,EACA,uBAAA,EACA,qBAAA,EACA,kBAAA;AAAA,UA+De,yBAAA,kCACkB,gCAAA,iCACF,WAAA,cAAyB,WAAA;EAExD,cAAA,EAAgB,OAAA,CAAQ,QAAA;EACxB,QAAA;IAjNoC,mCAmNlC,KAAA,EAAO,aAAA,KAlN0B;IAoNjC,UAAA,GAAa,aAAA,iBAnNgB;IAqN7B,SAAA,GAAY,aAAA,iBApNiB;IAsN7B,KAAA,EAAO,aAAA,KArNgC;IAuNvC,KAAA,GAAQ,aAAA,iBApNN;IAsNF,eAAA,GAAkB,aAAA,iBArNgB;IAuNlC,aAAA,EAAe,aAAA,KAtNmB;IAwNlC,UAAA,GAAa,aAAA;EAAA;EAEf,IAAA,EAAM,uBAAA;AAAA;AAAA,iBAGQ,wBAAA,yDAEiB,WAAA,IAE/B,WAAA,EAAa,WAAA,CAAY,QAAA,IACvB,uBAAA,CAAwB,aAAA,IACxB,mBAAA,CAAoB,kBAAA,IACrB,yBAAA,CAA0B,QAAA,EAAU,aAAA"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { getCreateV1ArgsDecoder, getCreateV1ArgsEncoder } from "../types/createV1Args.js";
|
|
2
|
+
import "../programs/mplCoreProgram.js";
|
|
3
|
+
import { SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, combineCodec, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, transformEncoder } from "@solana/kit";
|
|
4
|
+
import { getAccountMetaFactory } from "@solana/program-client-core";
|
|
5
|
+
//#region src/generated/instructions/createV1.ts
|
|
6
|
+
const CREATE_V1_DISCRIMINATOR = 0;
|
|
7
|
+
function getCreateV1DiscriminatorBytes() {
|
|
8
|
+
return getU8Encoder().encode(0);
|
|
9
|
+
}
|
|
10
|
+
function getCreateV1InstructionDataEncoder() {
|
|
11
|
+
return transformEncoder(getStructEncoder([["discriminator", getU8Encoder()], ["createV1Args", getCreateV1ArgsEncoder()]]), (value) => ({
|
|
12
|
+
...value,
|
|
13
|
+
discriminator: 0
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
function getCreateV1InstructionDataDecoder() {
|
|
17
|
+
return getStructDecoder([["discriminator", getU8Decoder()], ["createV1Args", getCreateV1ArgsDecoder()]]);
|
|
18
|
+
}
|
|
19
|
+
function getCreateV1InstructionDataCodec() {
|
|
20
|
+
return combineCodec(getCreateV1InstructionDataEncoder(), getCreateV1InstructionDataDecoder());
|
|
21
|
+
}
|
|
22
|
+
function getCreateV1Instruction(input, config) {
|
|
23
|
+
const programAddress = config?.programAddress ?? "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d";
|
|
24
|
+
const accounts = {
|
|
25
|
+
asset: {
|
|
26
|
+
value: input.asset ?? null,
|
|
27
|
+
isWritable: true
|
|
28
|
+
},
|
|
29
|
+
collection: {
|
|
30
|
+
value: input.collection ?? null,
|
|
31
|
+
isWritable: true
|
|
32
|
+
},
|
|
33
|
+
authority: {
|
|
34
|
+
value: input.authority ?? null,
|
|
35
|
+
isWritable: false
|
|
36
|
+
},
|
|
37
|
+
payer: {
|
|
38
|
+
value: input.payer ?? null,
|
|
39
|
+
isWritable: true
|
|
40
|
+
},
|
|
41
|
+
owner: {
|
|
42
|
+
value: input.owner ?? null,
|
|
43
|
+
isWritable: false
|
|
44
|
+
},
|
|
45
|
+
updateAuthority: {
|
|
46
|
+
value: input.updateAuthority ?? null,
|
|
47
|
+
isWritable: false
|
|
48
|
+
},
|
|
49
|
+
systemProgram: {
|
|
50
|
+
value: input.systemProgram ?? null,
|
|
51
|
+
isWritable: false
|
|
52
|
+
},
|
|
53
|
+
logWrapper: {
|
|
54
|
+
value: input.logWrapper ?? null,
|
|
55
|
+
isWritable: false
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const args = { ...input };
|
|
59
|
+
if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
60
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
61
|
+
return Object.freeze({
|
|
62
|
+
accounts: [
|
|
63
|
+
getAccountMeta("asset", accounts.asset),
|
|
64
|
+
getAccountMeta("collection", accounts.collection),
|
|
65
|
+
getAccountMeta("authority", accounts.authority),
|
|
66
|
+
getAccountMeta("payer", accounts.payer),
|
|
67
|
+
getAccountMeta("owner", accounts.owner),
|
|
68
|
+
getAccountMeta("updateAuthority", accounts.updateAuthority),
|
|
69
|
+
getAccountMeta("systemProgram", accounts.systemProgram),
|
|
70
|
+
getAccountMeta("logWrapper", accounts.logWrapper)
|
|
71
|
+
],
|
|
72
|
+
data: getCreateV1InstructionDataEncoder().encode(args),
|
|
73
|
+
programAddress
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function parseCreateV1Instruction(instruction) {
|
|
77
|
+
if (instruction.accounts.length < 8) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
78
|
+
actualAccountMetas: instruction.accounts.length,
|
|
79
|
+
expectedAccountMetas: 8
|
|
80
|
+
});
|
|
81
|
+
let accountIndex = 0;
|
|
82
|
+
const getNextAccount = () => {
|
|
83
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
84
|
+
accountIndex += 1;
|
|
85
|
+
return accountMeta;
|
|
86
|
+
};
|
|
87
|
+
const getNextOptionalAccount = () => {
|
|
88
|
+
const accountMeta = getNextAccount();
|
|
89
|
+
return accountMeta.address === "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d" ? void 0 : accountMeta;
|
|
90
|
+
};
|
|
91
|
+
return {
|
|
92
|
+
programAddress: instruction.programAddress,
|
|
93
|
+
accounts: {
|
|
94
|
+
asset: getNextAccount(),
|
|
95
|
+
collection: getNextOptionalAccount(),
|
|
96
|
+
authority: getNextOptionalAccount(),
|
|
97
|
+
payer: getNextAccount(),
|
|
98
|
+
owner: getNextOptionalAccount(),
|
|
99
|
+
updateAuthority: getNextOptionalAccount(),
|
|
100
|
+
systemProgram: getNextAccount(),
|
|
101
|
+
logWrapper: getNextOptionalAccount()
|
|
102
|
+
},
|
|
103
|
+
data: getCreateV1InstructionDataDecoder().decode(instruction.data)
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
export { CREATE_V1_DISCRIMINATOR, getCreateV1DiscriminatorBytes, getCreateV1Instruction, getCreateV1InstructionDataCodec, getCreateV1InstructionDataDecoder, getCreateV1InstructionDataEncoder, parseCreateV1Instruction };
|
|
108
|
+
|
|
109
|
+
//# sourceMappingURL=createV1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createV1.js","names":[],"sources":["../../../src/generated/instructions/createV1.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n AccountMeta,\n AccountSignerMeta,\n Address,\n Codec,\n Decoder,\n Encoder,\n Instruction,\n InstructionWithAccounts,\n InstructionWithData,\n ReadonlyAccount,\n ReadonlySignerAccount,\n ReadonlyUint8Array,\n TransactionSigner,\n WritableAccount,\n WritableSignerAccount,\n} from \"@solana/kit\";\nimport type { ResolvedInstructionAccount } from \"@solana/program-client-core\";\nimport type { CreateV1Args, CreateV1ArgsArgs } from \"../types/index.js\";\nimport {\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU8Decoder,\n getU8Encoder,\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n SolanaError,\n transformEncoder,\n} from \"@solana/kit\";\nimport { getAccountMetaFactory } from \"@solana/program-client-core\";\nimport { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from \"../programs/index.js\";\nimport {\n getCreateV1ArgsDecoder,\n getCreateV1ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const CREATE_V1_DISCRIMINATOR = 0;\n\nexport function getCreateV1DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(CREATE_V1_DISCRIMINATOR);\n}\n\nexport type CreateV1Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountAsset extends string | AccountMeta<string> = string,\n TAccountCollection extends string | AccountMeta<string> = string,\n TAccountAuthority extends string | AccountMeta<string> = string,\n TAccountPayer extends string | AccountMeta<string> = string,\n TAccountOwner extends string | AccountMeta<string> = string,\n TAccountUpdateAuthority extends string | AccountMeta<string> = string,\n TAccountSystemProgram extends\n | string\n | AccountMeta<string> = \"11111111111111111111111111111111\",\n TAccountLogWrapper extends string | AccountMeta<string> = string,\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountAsset extends string\n ? WritableSignerAccount<TAccountAsset> &\n AccountSignerMeta<TAccountAsset>\n : TAccountAsset,\n TAccountCollection extends string\n ? WritableAccount<TAccountCollection>\n : TAccountCollection,\n TAccountAuthority extends string\n ? ReadonlySignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountOwner extends string\n ? ReadonlyAccount<TAccountOwner>\n : TAccountOwner,\n TAccountUpdateAuthority extends string\n ? ReadonlyAccount<TAccountUpdateAuthority>\n : TAccountUpdateAuthority,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n TAccountLogWrapper extends string\n ? ReadonlyAccount<TAccountLogWrapper>\n : TAccountLogWrapper,\n ...TRemainingAccounts,\n ]\n >;\n\nexport interface CreateV1InstructionData {\n discriminator: number;\n createV1Args: CreateV1Args;\n}\n\nexport interface CreateV1InstructionDataArgs {\n createV1Args: CreateV1ArgsArgs;\n}\n\nexport function getCreateV1InstructionDataEncoder(): Encoder<CreateV1InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\"createV1Args\", getCreateV1ArgsEncoder()],\n ]),\n (value) => ({ ...value, discriminator: CREATE_V1_DISCRIMINATOR }),\n );\n}\n\nexport function getCreateV1InstructionDataDecoder(): Decoder<CreateV1InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\"createV1Args\", getCreateV1ArgsDecoder()],\n ]);\n}\n\nexport function getCreateV1InstructionDataCodec(): Codec<\n CreateV1InstructionDataArgs,\n CreateV1InstructionData\n> {\n return combineCodec(\n getCreateV1InstructionDataEncoder(),\n getCreateV1InstructionDataDecoder(),\n );\n}\n\nexport interface CreateV1Input<\n TAccountAsset extends string = string,\n TAccountCollection extends string = string,\n TAccountAuthority extends string = string,\n TAccountPayer extends string = string,\n TAccountOwner extends string = string,\n TAccountUpdateAuthority extends string = string,\n TAccountSystemProgram extends string = string,\n TAccountLogWrapper extends string = string,\n> {\n /** The address of the new asset */\n asset: TransactionSigner<TAccountAsset>;\n /** The collection to which the asset belongs */\n collection?: Address<TAccountCollection>;\n /** The authority signing for creation */\n authority?: TransactionSigner<TAccountAuthority>;\n /** The account paying for the storage fees */\n payer: TransactionSigner<TAccountPayer>;\n /** The owner of the new asset. Defaults to the authority if not present. */\n owner?: Address<TAccountOwner>;\n /** The authority on the new asset */\n updateAuthority?: Address<TAccountUpdateAuthority>;\n /** The system program */\n systemProgram?: Address<TAccountSystemProgram>;\n /** The SPL Noop Program */\n logWrapper?: Address<TAccountLogWrapper>;\n createV1Args: CreateV1InstructionDataArgs[\"createV1Args\"];\n}\n\nexport function getCreateV1Instruction<\n TAccountAsset extends string,\n TAccountCollection extends string,\n TAccountAuthority extends string,\n TAccountPayer extends string,\n TAccountOwner extends string,\n TAccountUpdateAuthority extends string,\n TAccountSystemProgram extends string,\n TAccountLogWrapper extends string,\n TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: CreateV1Input<\n TAccountAsset,\n TAccountCollection,\n TAccountAuthority,\n TAccountPayer,\n TAccountOwner,\n TAccountUpdateAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >,\n config?: { programAddress?: TProgramAddress },\n): CreateV1Instruction<\n TProgramAddress,\n TAccountAsset,\n TAccountCollection,\n TAccountAuthority,\n TAccountPayer,\n TAccountOwner,\n TAccountUpdateAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? MPL_CORE_PROGRAM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n asset: { value: input.asset ?? null, isWritable: true },\n collection: { value: input.collection ?? null, isWritable: true },\n authority: { value: input.authority ?? null, isWritable: false },\n payer: { value: input.payer ?? null, isWritable: true },\n owner: { value: input.owner ?? null, isWritable: false },\n updateAuthority: {\n value: input.updateAuthority ?? null,\n isWritable: false,\n },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n logWrapper: { value: input.logWrapper ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedInstructionAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n \"11111111111111111111111111111111\" as Address<\"11111111111111111111111111111111\">;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, \"programId\");\n return Object.freeze({\n accounts: [\n getAccountMeta(\"asset\", accounts.asset),\n getAccountMeta(\"collection\", accounts.collection),\n getAccountMeta(\"authority\", accounts.authority),\n getAccountMeta(\"payer\", accounts.payer),\n getAccountMeta(\"owner\", accounts.owner),\n getAccountMeta(\"updateAuthority\", accounts.updateAuthority),\n getAccountMeta(\"systemProgram\", accounts.systemProgram),\n getAccountMeta(\"logWrapper\", accounts.logWrapper),\n ],\n data: getCreateV1InstructionDataEncoder().encode(\n args as CreateV1InstructionDataArgs,\n ),\n programAddress,\n } as CreateV1Instruction<\n TProgramAddress,\n TAccountAsset,\n TAccountCollection,\n TAccountAuthority,\n TAccountPayer,\n TAccountOwner,\n TAccountUpdateAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >);\n}\n\nexport interface ParsedCreateV1Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],\n> {\n programAddress: Address<TProgram>;\n accounts: {\n /** The address of the new asset */\n asset: TAccountMetas[0];\n /** The collection to which the asset belongs */\n collection?: TAccountMetas[1] | undefined;\n /** The authority signing for creation */\n authority?: TAccountMetas[2] | undefined;\n /** The account paying for the storage fees */\n payer: TAccountMetas[3];\n /** The owner of the new asset. Defaults to the authority if not present. */\n owner?: TAccountMetas[4] | undefined;\n /** The authority on the new asset */\n updateAuthority?: TAccountMetas[5] | undefined;\n /** The system program */\n systemProgram: TAccountMetas[6];\n /** The SPL Noop Program */\n logWrapper?: TAccountMetas[7] | undefined;\n };\n data: CreateV1InstructionData;\n}\n\nexport function parseCreateV1Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedCreateV1Instruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 8) {\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n {\n actualAccountMetas: instruction.accounts.length,\n expectedAccountMetas: 8,\n },\n );\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n const getNextOptionalAccount = () => {\n const accountMeta = getNextAccount();\n return accountMeta.address === MPL_CORE_PROGRAM_PROGRAM_ADDRESS\n ? undefined\n : accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: {\n asset: getNextAccount(),\n collection: getNextOptionalAccount(),\n authority: getNextOptionalAccount(),\n payer: getNextAccount(),\n owner: getNextOptionalAccount(),\n updateAuthority: getNextOptionalAccount(),\n systemProgram: getNextAccount(),\n logWrapper: getNextOptionalAccount(),\n },\n data: getCreateV1InstructionDataDecoder().decode(instruction.data),\n };\n}\n"],"mappings":";;;;;AA4CA,MAAa,0BAA0B;AAEvC,SAAgB,gCAAoD;CAClE,OAAO,aAAa,CAAC,CAAC,OAAA,CAA8B;AACtD;AA2DA,SAAgB,oCAA0E;CACxF,OAAO,iBACL,iBAAiB,CACf,CAAC,iBAAiB,aAAa,CAAC,GAChC,CAAC,gBAAgB,uBAAuB,CAAC,CAC3C,CAAC,IACA,WAAW;EAAE,GAAG;EAAO,eAAA;CAAuC,EACjE;AACF;AAEA,SAAgB,oCAAsE;CACpF,OAAO,iBAAiB,CACtB,CAAC,iBAAiB,aAAa,CAAC,GAChC,CAAC,gBAAgB,uBAAuB,CAAC,CAC3C,CAAC;AACH;AAEA,SAAgB,kCAGd;CACA,OAAO,aACL,kCAAkC,GAClC,kCAAkC,CACpC;AACF;AA+BA,SAAgB,uBAWd,OAUA,QAWA;CAEA,MAAM,iBACJ,QAAQ,kBAAA;CAgBV,MAAM,WAAW;EAZf,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,YAAY;GAAE,OAAO,MAAM,cAAc;GAAM,YAAY;EAAK;EAChE,WAAW;GAAE,OAAO,MAAM,aAAa;GAAM,YAAY;EAAM;EAC/D,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAM;EACvD,iBAAiB;GACf,OAAO,MAAM,mBAAmB;GAChC,YAAY;EACd;EACA,eAAe;GAAE,OAAO,MAAM,iBAAiB;GAAM,YAAY;EAAM;EACvE,YAAY;GAAE,OAAO,MAAM,cAAc;GAAM,YAAY;EAAM;CAEnC;CAMhC,MAAM,OAAO,EAAE,GAAG,MAAM;CAGxB,IAAI,CAAC,SAAS,cAAc,OAC1B,SAAS,cAAc,QACrB;CAGJ,MAAM,iBAAiB,sBAAsB,gBAAgB,WAAW;CACxE,OAAO,OAAO,OAAO;EACnB,UAAU;GACR,eAAe,SAAS,SAAS,KAAK;GACtC,eAAe,cAAc,SAAS,UAAU;GAChD,eAAe,aAAa,SAAS,SAAS;GAC9C,eAAe,SAAS,SAAS,KAAK;GACtC,eAAe,SAAS,SAAS,KAAK;GACtC,eAAe,mBAAmB,SAAS,eAAe;GAC1D,eAAe,iBAAiB,SAAS,aAAa;GACtD,eAAe,cAAc,SAAS,UAAU;EAClD;EACA,MAAM,kCAAkC,CAAC,CAAC,OACxC,IACF;EACA;CACF,CAUC;AACH;AA4BA,SAAgB,yBAId,aAGoD;CACpD,IAAI,YAAY,SAAS,SAAS,GAChC,MAAM,IAAI,YACR,2DACA;EACE,oBAAoB,YAAY,SAAS;EACzC,sBAAsB;CACxB,CACF;CAEF,IAAI,eAAe;CACnB,MAAM,uBAAuB;EAC3B,MAAM,cAAe,YAAY,SAA2B;EAC5D,gBAAgB;EAChB,OAAO;CACT;CACA,MAAM,+BAA+B;EACnC,MAAM,cAAc,eAAe;EACnC,OAAO,YAAY,YAAA,iDACf,KAAA,IACA;CACN;CACA,OAAO;EACL,gBAAgB,YAAY;EAC5B,UAAU;GACR,OAAO,eAAe;GACtB,YAAY,uBAAuB;GACnC,WAAW,uBAAuB;GAClC,OAAO,eAAe;GACtB,OAAO,uBAAuB;GAC9B,iBAAiB,uBAAuB;GACxC,eAAe,eAAe;GAC9B,YAAY,uBAAuB;EACrC;EACA,MAAM,kCAAkC,CAAC,CAAC,OAAO,YAAY,IAAI;CACnE;AACF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { CreateV2Args, CreateV2ArgsArgs } from "../types/createV2Args.js";
|
|
2
|
+
import { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from "../programs/mplCoreProgram.js";
|
|
3
|
+
import { AccountMeta, AccountSignerMeta, Address, Codec, Decoder, Encoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount, WritableSignerAccount } from "@solana/kit";
|
|
4
|
+
|
|
5
|
+
//#region src/generated/instructions/createV2.d.ts
|
|
6
|
+
declare const CREATE_V2_DISCRIMINATOR = 20;
|
|
7
|
+
declare function getCreateV2DiscriminatorBytes(): ReadonlyUint8Array;
|
|
8
|
+
type CreateV2Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountAsset extends string | AccountMeta<string> = string, TAccountCollection extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountUpdateAuthority extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountLogWrapper extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountAsset extends string ? WritableSignerAccount<TAccountAsset> & AccountSignerMeta<TAccountAsset> : TAccountAsset, TAccountCollection extends string ? WritableAccount<TAccountCollection> : TAccountCollection, TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner, TAccountUpdateAuthority extends string ? ReadonlyAccount<TAccountUpdateAuthority> : TAccountUpdateAuthority, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountLogWrapper extends string ? ReadonlyAccount<TAccountLogWrapper> : TAccountLogWrapper, ...TRemainingAccounts]>;
|
|
9
|
+
interface CreateV2InstructionData {
|
|
10
|
+
discriminator: number;
|
|
11
|
+
createV2Args: CreateV2Args;
|
|
12
|
+
}
|
|
13
|
+
interface CreateV2InstructionDataArgs {
|
|
14
|
+
createV2Args: CreateV2ArgsArgs;
|
|
15
|
+
}
|
|
16
|
+
declare function getCreateV2InstructionDataEncoder(): Encoder<CreateV2InstructionDataArgs>;
|
|
17
|
+
declare function getCreateV2InstructionDataDecoder(): Decoder<CreateV2InstructionData>;
|
|
18
|
+
declare function getCreateV2InstructionDataCodec(): Codec<CreateV2InstructionDataArgs, CreateV2InstructionData>;
|
|
19
|
+
interface CreateV2Input<TAccountAsset extends string = string, TAccountCollection extends string = string, TAccountAuthority extends string = string, TAccountPayer extends string = string, TAccountOwner extends string = string, TAccountUpdateAuthority extends string = string, TAccountSystemProgram extends string = string, TAccountLogWrapper extends string = string> {
|
|
20
|
+
/** The address of the new asset */
|
|
21
|
+
asset: TransactionSigner<TAccountAsset>;
|
|
22
|
+
/** The collection to which the asset belongs */
|
|
23
|
+
collection?: Address<TAccountCollection>;
|
|
24
|
+
/** The authority signing for creation */
|
|
25
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
26
|
+
/** The account paying for the storage fees */
|
|
27
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
28
|
+
/** The owner of the new asset. Defaults to the authority if not present. */
|
|
29
|
+
owner?: Address<TAccountOwner>;
|
|
30
|
+
/** The authority on the new asset */
|
|
31
|
+
updateAuthority?: Address<TAccountUpdateAuthority>;
|
|
32
|
+
/** The system program */
|
|
33
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
34
|
+
/** The SPL Noop Program */
|
|
35
|
+
logWrapper?: Address<TAccountLogWrapper>;
|
|
36
|
+
createV2Args: CreateV2InstructionDataArgs["createV2Args"];
|
|
37
|
+
}
|
|
38
|
+
declare function getCreateV2Instruction<TAccountAsset extends string, TAccountCollection extends string, TAccountAuthority extends string, TAccountPayer extends string, TAccountOwner extends string, TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountLogWrapper extends string, TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS>(input: CreateV2Input<TAccountAsset, TAccountCollection, TAccountAuthority, TAccountPayer, TAccountOwner, TAccountUpdateAuthority, TAccountSystemProgram, TAccountLogWrapper>, config?: {
|
|
39
|
+
programAddress?: TProgramAddress;
|
|
40
|
+
}): CreateV2Instruction<TProgramAddress, TAccountAsset, TAccountCollection, TAccountAuthority, TAccountPayer, TAccountOwner, TAccountUpdateAuthority, TAccountSystemProgram, TAccountLogWrapper>;
|
|
41
|
+
interface ParsedCreateV2Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> {
|
|
42
|
+
programAddress: Address<TProgram>;
|
|
43
|
+
accounts: {
|
|
44
|
+
/** The address of the new asset */asset: TAccountMetas[0]; /** The collection to which the asset belongs */
|
|
45
|
+
collection?: TAccountMetas[1] | undefined; /** The authority signing for creation */
|
|
46
|
+
authority?: TAccountMetas[2] | undefined; /** The account paying for the storage fees */
|
|
47
|
+
payer: TAccountMetas[3]; /** The owner of the new asset. Defaults to the authority if not present. */
|
|
48
|
+
owner?: TAccountMetas[4] | undefined; /** The authority on the new asset */
|
|
49
|
+
updateAuthority?: TAccountMetas[5] | undefined; /** The system program */
|
|
50
|
+
systemProgram: TAccountMetas[6]; /** The SPL Noop Program */
|
|
51
|
+
logWrapper?: TAccountMetas[7] | undefined;
|
|
52
|
+
};
|
|
53
|
+
data: CreateV2InstructionData;
|
|
54
|
+
}
|
|
55
|
+
declare function parseCreateV2Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateV2Instruction<TProgram, TAccountMetas>;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { CREATE_V2_DISCRIMINATOR, CreateV2Input, CreateV2Instruction, CreateV2InstructionData, CreateV2InstructionDataArgs, ParsedCreateV2Instruction, getCreateV2DiscriminatorBytes, getCreateV2Instruction, getCreateV2InstructionDataCodec, getCreateV2InstructionDataDecoder, getCreateV2InstructionDataEncoder, parseCreateV2Instruction };
|
|
58
|
+
//# sourceMappingURL=createV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createV2.d.ts","names":[],"sources":["../../../src/generated/instructions/createV2.ts"],"mappings":";;;;;cA4Ca,uBAAA;AAAA,iBAEG,6BAAA,IAAiC,kBAAA;AAAA,KAIrC,mBAAA,kCACuB,gCAAA,iCACF,WAAA,uDACK,WAAA,sDACD,WAAA,kDACJ,WAAA,kDACA,WAAA,4DACU,WAAA,0DAGrC,WAAA,mFACgC,WAAA,uDACA,WAAA,mBAClC,WAAA,CAAY,QAAA,IACd,mBAAA,CAAoB,kBAAA,IACpB,uBAAA,EAEI,aAAA,kBACI,qBAAA,CAAsB,aAAA,IACpB,iBAAA,CAAkB,aAAA,IACpB,aAAA,EACJ,kBAAA,kBACI,eAAA,CAAgB,kBAAA,IAChB,kBAAA,EACJ,iBAAA,kBACI,qBAAA,CAAsB,iBAAA,IACpB,iBAAA,CAAkB,iBAAA,IACpB,iBAAA,EACJ,aAAA,kBACI,qBAAA,CAAsB,aAAA,IACpB,iBAAA,CAAkB,aAAA,IACpB,aAAA,EACJ,aAAA,kBACI,eAAA,CAAgB,aAAA,IAChB,aAAA,EACJ,uBAAA,kBACI,eAAA,CAAgB,uBAAA,IAChB,uBAAA,EACJ,qBAAA,kBACI,eAAA,CAAgB,qBAAA,IAChB,qBAAA,EACJ,kBAAA,kBACI,eAAA,CAAgB,kBAAA,IAChB,kBAAA,KACD,kBAAA;AAAA,UAIQ,uBAAA;EACf,aAAA;EACA,YAAA,EAAc,YAAA;AAAA;AAAA,UAGC,2BAAA;EACf,YAAA,EAAc,gBAAA;AAAA;AAAA,iBAGA,iCAAA,IAAqC,OAAA,CAAQ,2BAAA;AAAA,iBAU7C,iCAAA,IAAqC,OAAA,CAAQ,uBAAA;AAAA,iBAO7C,+BAAA,IAAmC,KAAA,CACjD,2BAAA,EACA,uBAAA;AAAA,UAQe,aAAA;;EAWf,KAAA,EAAO,iBAAA,CAAkB,aAAA;;EAEzB,UAAA,GAAa,OAAA,CAAQ,kBAAA;;EAErB,SAAA,GAAY,iBAAA,CAAkB,iBAAA;;EAE9B,KAAA,EAAO,iBAAA,CAAkB,aAAA;;EAEzB,KAAA,GAAQ,OAAA,CAAQ,aAAA;;EAEhB,eAAA,GAAkB,OAAA,CAAQ,uBAAA;;EAE1B,aAAA,GAAgB,OAAA,CAAQ,qBAAA;;EAExB,UAAA,GAAa,OAAA,CAAQ,kBAAA;EACrB,YAAA,EAAc,2BAAA;AAAA;AAAA,iBAGA,sBAAA,ySASU,OAAA,UAAiB,gCAAA,EAEzC,KAAA,EAAO,aAAA,CACL,aAAA,EACA,kBAAA,EACA,iBAAA,EACA,aAAA,EACA,aAAA,EACA,uBAAA,EACA,qBAAA,EACA,kBAAA,GAEF,MAAA;EAAW,cAAA,GAAiB,eAAA;AAAA,IAC3B,mBAAA,CACD,eAAA,EACA,aAAA,EACA,kBAAA,EACA,iBAAA,EACA,aAAA,EACA,aAAA,EACA,uBAAA,EACA,qBAAA,EACA,kBAAA;AAAA,UA+De,yBAAA,kCACkB,gCAAA,iCACF,WAAA,cAAyB,WAAA;EAExD,cAAA,EAAgB,OAAA,CAAQ,QAAA;EACxB,QAAA;IAjNoC,mCAmNlC,KAAA,EAAO,aAAA,KAlN0B;IAoNjC,UAAA,GAAa,aAAA,iBAnNgB;IAqN7B,SAAA,GAAY,aAAA,iBApNiB;IAsN7B,KAAA,EAAO,aAAA,KArNgC;IAuNvC,KAAA,GAAQ,aAAA,iBApNN;IAsNF,eAAA,GAAkB,aAAA,iBArNgB;IAuNlC,aAAA,EAAe,aAAA,KAtNmB;IAwNlC,UAAA,GAAa,aAAA;EAAA;EAEf,IAAA,EAAM,uBAAA;AAAA;AAAA,iBAGQ,wBAAA,yDAEiB,WAAA,IAE/B,WAAA,EAAa,WAAA,CAAY,QAAA,IACvB,uBAAA,CAAwB,aAAA,IACxB,mBAAA,CAAoB,kBAAA,IACrB,yBAAA,CAA0B,QAAA,EAAU,aAAA"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { getCreateV2ArgsDecoder, getCreateV2ArgsEncoder } from "../types/createV2Args.js";
|
|
2
|
+
import "../programs/mplCoreProgram.js";
|
|
3
|
+
import { SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, combineCodec, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, transformEncoder } from "@solana/kit";
|
|
4
|
+
import { getAccountMetaFactory } from "@solana/program-client-core";
|
|
5
|
+
//#region src/generated/instructions/createV2.ts
|
|
6
|
+
const CREATE_V2_DISCRIMINATOR = 20;
|
|
7
|
+
function getCreateV2DiscriminatorBytes() {
|
|
8
|
+
return getU8Encoder().encode(20);
|
|
9
|
+
}
|
|
10
|
+
function getCreateV2InstructionDataEncoder() {
|
|
11
|
+
return transformEncoder(getStructEncoder([["discriminator", getU8Encoder()], ["createV2Args", getCreateV2ArgsEncoder()]]), (value) => ({
|
|
12
|
+
...value,
|
|
13
|
+
discriminator: 20
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
function getCreateV2InstructionDataDecoder() {
|
|
17
|
+
return getStructDecoder([["discriminator", getU8Decoder()], ["createV2Args", getCreateV2ArgsDecoder()]]);
|
|
18
|
+
}
|
|
19
|
+
function getCreateV2InstructionDataCodec() {
|
|
20
|
+
return combineCodec(getCreateV2InstructionDataEncoder(), getCreateV2InstructionDataDecoder());
|
|
21
|
+
}
|
|
22
|
+
function getCreateV2Instruction(input, config) {
|
|
23
|
+
const programAddress = config?.programAddress ?? "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d";
|
|
24
|
+
const accounts = {
|
|
25
|
+
asset: {
|
|
26
|
+
value: input.asset ?? null,
|
|
27
|
+
isWritable: true
|
|
28
|
+
},
|
|
29
|
+
collection: {
|
|
30
|
+
value: input.collection ?? null,
|
|
31
|
+
isWritable: true
|
|
32
|
+
},
|
|
33
|
+
authority: {
|
|
34
|
+
value: input.authority ?? null,
|
|
35
|
+
isWritable: false
|
|
36
|
+
},
|
|
37
|
+
payer: {
|
|
38
|
+
value: input.payer ?? null,
|
|
39
|
+
isWritable: true
|
|
40
|
+
},
|
|
41
|
+
owner: {
|
|
42
|
+
value: input.owner ?? null,
|
|
43
|
+
isWritable: false
|
|
44
|
+
},
|
|
45
|
+
updateAuthority: {
|
|
46
|
+
value: input.updateAuthority ?? null,
|
|
47
|
+
isWritable: false
|
|
48
|
+
},
|
|
49
|
+
systemProgram: {
|
|
50
|
+
value: input.systemProgram ?? null,
|
|
51
|
+
isWritable: false
|
|
52
|
+
},
|
|
53
|
+
logWrapper: {
|
|
54
|
+
value: input.logWrapper ?? null,
|
|
55
|
+
isWritable: false
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const args = { ...input };
|
|
59
|
+
if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
60
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
61
|
+
return Object.freeze({
|
|
62
|
+
accounts: [
|
|
63
|
+
getAccountMeta("asset", accounts.asset),
|
|
64
|
+
getAccountMeta("collection", accounts.collection),
|
|
65
|
+
getAccountMeta("authority", accounts.authority),
|
|
66
|
+
getAccountMeta("payer", accounts.payer),
|
|
67
|
+
getAccountMeta("owner", accounts.owner),
|
|
68
|
+
getAccountMeta("updateAuthority", accounts.updateAuthority),
|
|
69
|
+
getAccountMeta("systemProgram", accounts.systemProgram),
|
|
70
|
+
getAccountMeta("logWrapper", accounts.logWrapper)
|
|
71
|
+
],
|
|
72
|
+
data: getCreateV2InstructionDataEncoder().encode(args),
|
|
73
|
+
programAddress
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function parseCreateV2Instruction(instruction) {
|
|
77
|
+
if (instruction.accounts.length < 8) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
78
|
+
actualAccountMetas: instruction.accounts.length,
|
|
79
|
+
expectedAccountMetas: 8
|
|
80
|
+
});
|
|
81
|
+
let accountIndex = 0;
|
|
82
|
+
const getNextAccount = () => {
|
|
83
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
84
|
+
accountIndex += 1;
|
|
85
|
+
return accountMeta;
|
|
86
|
+
};
|
|
87
|
+
const getNextOptionalAccount = () => {
|
|
88
|
+
const accountMeta = getNextAccount();
|
|
89
|
+
return accountMeta.address === "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d" ? void 0 : accountMeta;
|
|
90
|
+
};
|
|
91
|
+
return {
|
|
92
|
+
programAddress: instruction.programAddress,
|
|
93
|
+
accounts: {
|
|
94
|
+
asset: getNextAccount(),
|
|
95
|
+
collection: getNextOptionalAccount(),
|
|
96
|
+
authority: getNextOptionalAccount(),
|
|
97
|
+
payer: getNextAccount(),
|
|
98
|
+
owner: getNextOptionalAccount(),
|
|
99
|
+
updateAuthority: getNextOptionalAccount(),
|
|
100
|
+
systemProgram: getNextAccount(),
|
|
101
|
+
logWrapper: getNextOptionalAccount()
|
|
102
|
+
},
|
|
103
|
+
data: getCreateV2InstructionDataDecoder().decode(instruction.data)
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
export { CREATE_V2_DISCRIMINATOR, getCreateV2DiscriminatorBytes, getCreateV2Instruction, getCreateV2InstructionDataCodec, getCreateV2InstructionDataDecoder, getCreateV2InstructionDataEncoder, parseCreateV2Instruction };
|
|
108
|
+
|
|
109
|
+
//# sourceMappingURL=createV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createV2.js","names":[],"sources":["../../../src/generated/instructions/createV2.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n AccountMeta,\n AccountSignerMeta,\n Address,\n Codec,\n Decoder,\n Encoder,\n Instruction,\n InstructionWithAccounts,\n InstructionWithData,\n ReadonlyAccount,\n ReadonlySignerAccount,\n ReadonlyUint8Array,\n TransactionSigner,\n WritableAccount,\n WritableSignerAccount,\n} from \"@solana/kit\";\nimport type { ResolvedInstructionAccount } from \"@solana/program-client-core\";\nimport type { CreateV2Args, CreateV2ArgsArgs } from \"../types/index.js\";\nimport {\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU8Decoder,\n getU8Encoder,\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n SolanaError,\n transformEncoder,\n} from \"@solana/kit\";\nimport { getAccountMetaFactory } from \"@solana/program-client-core\";\nimport { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from \"../programs/index.js\";\nimport {\n getCreateV2ArgsDecoder,\n getCreateV2ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const CREATE_V2_DISCRIMINATOR = 20;\n\nexport function getCreateV2DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(CREATE_V2_DISCRIMINATOR);\n}\n\nexport type CreateV2Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountAsset extends string | AccountMeta<string> = string,\n TAccountCollection extends string | AccountMeta<string> = string,\n TAccountAuthority extends string | AccountMeta<string> = string,\n TAccountPayer extends string | AccountMeta<string> = string,\n TAccountOwner extends string | AccountMeta<string> = string,\n TAccountUpdateAuthority extends string | AccountMeta<string> = string,\n TAccountSystemProgram extends\n | string\n | AccountMeta<string> = \"11111111111111111111111111111111\",\n TAccountLogWrapper extends string | AccountMeta<string> = string,\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountAsset extends string\n ? WritableSignerAccount<TAccountAsset> &\n AccountSignerMeta<TAccountAsset>\n : TAccountAsset,\n TAccountCollection extends string\n ? WritableAccount<TAccountCollection>\n : TAccountCollection,\n TAccountAuthority extends string\n ? ReadonlySignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountOwner extends string\n ? ReadonlyAccount<TAccountOwner>\n : TAccountOwner,\n TAccountUpdateAuthority extends string\n ? ReadonlyAccount<TAccountUpdateAuthority>\n : TAccountUpdateAuthority,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n TAccountLogWrapper extends string\n ? ReadonlyAccount<TAccountLogWrapper>\n : TAccountLogWrapper,\n ...TRemainingAccounts,\n ]\n >;\n\nexport interface CreateV2InstructionData {\n discriminator: number;\n createV2Args: CreateV2Args;\n}\n\nexport interface CreateV2InstructionDataArgs {\n createV2Args: CreateV2ArgsArgs;\n}\n\nexport function getCreateV2InstructionDataEncoder(): Encoder<CreateV2InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\"createV2Args\", getCreateV2ArgsEncoder()],\n ]),\n (value) => ({ ...value, discriminator: CREATE_V2_DISCRIMINATOR }),\n );\n}\n\nexport function getCreateV2InstructionDataDecoder(): Decoder<CreateV2InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\"createV2Args\", getCreateV2ArgsDecoder()],\n ]);\n}\n\nexport function getCreateV2InstructionDataCodec(): Codec<\n CreateV2InstructionDataArgs,\n CreateV2InstructionData\n> {\n return combineCodec(\n getCreateV2InstructionDataEncoder(),\n getCreateV2InstructionDataDecoder(),\n );\n}\n\nexport interface CreateV2Input<\n TAccountAsset extends string = string,\n TAccountCollection extends string = string,\n TAccountAuthority extends string = string,\n TAccountPayer extends string = string,\n TAccountOwner extends string = string,\n TAccountUpdateAuthority extends string = string,\n TAccountSystemProgram extends string = string,\n TAccountLogWrapper extends string = string,\n> {\n /** The address of the new asset */\n asset: TransactionSigner<TAccountAsset>;\n /** The collection to which the asset belongs */\n collection?: Address<TAccountCollection>;\n /** The authority signing for creation */\n authority?: TransactionSigner<TAccountAuthority>;\n /** The account paying for the storage fees */\n payer: TransactionSigner<TAccountPayer>;\n /** The owner of the new asset. Defaults to the authority if not present. */\n owner?: Address<TAccountOwner>;\n /** The authority on the new asset */\n updateAuthority?: Address<TAccountUpdateAuthority>;\n /** The system program */\n systemProgram?: Address<TAccountSystemProgram>;\n /** The SPL Noop Program */\n logWrapper?: Address<TAccountLogWrapper>;\n createV2Args: CreateV2InstructionDataArgs[\"createV2Args\"];\n}\n\nexport function getCreateV2Instruction<\n TAccountAsset extends string,\n TAccountCollection extends string,\n TAccountAuthority extends string,\n TAccountPayer extends string,\n TAccountOwner extends string,\n TAccountUpdateAuthority extends string,\n TAccountSystemProgram extends string,\n TAccountLogWrapper extends string,\n TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: CreateV2Input<\n TAccountAsset,\n TAccountCollection,\n TAccountAuthority,\n TAccountPayer,\n TAccountOwner,\n TAccountUpdateAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >,\n config?: { programAddress?: TProgramAddress },\n): CreateV2Instruction<\n TProgramAddress,\n TAccountAsset,\n TAccountCollection,\n TAccountAuthority,\n TAccountPayer,\n TAccountOwner,\n TAccountUpdateAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? MPL_CORE_PROGRAM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n asset: { value: input.asset ?? null, isWritable: true },\n collection: { value: input.collection ?? null, isWritable: true },\n authority: { value: input.authority ?? null, isWritable: false },\n payer: { value: input.payer ?? null, isWritable: true },\n owner: { value: input.owner ?? null, isWritable: false },\n updateAuthority: {\n value: input.updateAuthority ?? null,\n isWritable: false,\n },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n logWrapper: { value: input.logWrapper ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedInstructionAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n \"11111111111111111111111111111111\" as Address<\"11111111111111111111111111111111\">;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, \"programId\");\n return Object.freeze({\n accounts: [\n getAccountMeta(\"asset\", accounts.asset),\n getAccountMeta(\"collection\", accounts.collection),\n getAccountMeta(\"authority\", accounts.authority),\n getAccountMeta(\"payer\", accounts.payer),\n getAccountMeta(\"owner\", accounts.owner),\n getAccountMeta(\"updateAuthority\", accounts.updateAuthority),\n getAccountMeta(\"systemProgram\", accounts.systemProgram),\n getAccountMeta(\"logWrapper\", accounts.logWrapper),\n ],\n data: getCreateV2InstructionDataEncoder().encode(\n args as CreateV2InstructionDataArgs,\n ),\n programAddress,\n } as CreateV2Instruction<\n TProgramAddress,\n TAccountAsset,\n TAccountCollection,\n TAccountAuthority,\n TAccountPayer,\n TAccountOwner,\n TAccountUpdateAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >);\n}\n\nexport interface ParsedCreateV2Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],\n> {\n programAddress: Address<TProgram>;\n accounts: {\n /** The address of the new asset */\n asset: TAccountMetas[0];\n /** The collection to which the asset belongs */\n collection?: TAccountMetas[1] | undefined;\n /** The authority signing for creation */\n authority?: TAccountMetas[2] | undefined;\n /** The account paying for the storage fees */\n payer: TAccountMetas[3];\n /** The owner of the new asset. Defaults to the authority if not present. */\n owner?: TAccountMetas[4] | undefined;\n /** The authority on the new asset */\n updateAuthority?: TAccountMetas[5] | undefined;\n /** The system program */\n systemProgram: TAccountMetas[6];\n /** The SPL Noop Program */\n logWrapper?: TAccountMetas[7] | undefined;\n };\n data: CreateV2InstructionData;\n}\n\nexport function parseCreateV2Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedCreateV2Instruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 8) {\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n {\n actualAccountMetas: instruction.accounts.length,\n expectedAccountMetas: 8,\n },\n );\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n const getNextOptionalAccount = () => {\n const accountMeta = getNextAccount();\n return accountMeta.address === MPL_CORE_PROGRAM_PROGRAM_ADDRESS\n ? undefined\n : accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: {\n asset: getNextAccount(),\n collection: getNextOptionalAccount(),\n authority: getNextOptionalAccount(),\n payer: getNextAccount(),\n owner: getNextOptionalAccount(),\n updateAuthority: getNextOptionalAccount(),\n systemProgram: getNextAccount(),\n logWrapper: getNextOptionalAccount(),\n },\n data: getCreateV2InstructionDataDecoder().decode(instruction.data),\n };\n}\n"],"mappings":";;;;;AA4CA,MAAa,0BAA0B;AAEvC,SAAgB,gCAAoD;CAClE,OAAO,aAAa,CAAC,CAAC,OAAA,EAA8B;AACtD;AA2DA,SAAgB,oCAA0E;CACxF,OAAO,iBACL,iBAAiB,CACf,CAAC,iBAAiB,aAAa,CAAC,GAChC,CAAC,gBAAgB,uBAAuB,CAAC,CAC3C,CAAC,IACA,WAAW;EAAE,GAAG;EAAO,eAAA;CAAuC,EACjE;AACF;AAEA,SAAgB,oCAAsE;CACpF,OAAO,iBAAiB,CACtB,CAAC,iBAAiB,aAAa,CAAC,GAChC,CAAC,gBAAgB,uBAAuB,CAAC,CAC3C,CAAC;AACH;AAEA,SAAgB,kCAGd;CACA,OAAO,aACL,kCAAkC,GAClC,kCAAkC,CACpC;AACF;AA+BA,SAAgB,uBAWd,OAUA,QAWA;CAEA,MAAM,iBACJ,QAAQ,kBAAA;CAgBV,MAAM,WAAW;EAZf,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,YAAY;GAAE,OAAO,MAAM,cAAc;GAAM,YAAY;EAAK;EAChE,WAAW;GAAE,OAAO,MAAM,aAAa;GAAM,YAAY;EAAM;EAC/D,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAM;EACvD,iBAAiB;GACf,OAAO,MAAM,mBAAmB;GAChC,YAAY;EACd;EACA,eAAe;GAAE,OAAO,MAAM,iBAAiB;GAAM,YAAY;EAAM;EACvE,YAAY;GAAE,OAAO,MAAM,cAAc;GAAM,YAAY;EAAM;CAEnC;CAMhC,MAAM,OAAO,EAAE,GAAG,MAAM;CAGxB,IAAI,CAAC,SAAS,cAAc,OAC1B,SAAS,cAAc,QACrB;CAGJ,MAAM,iBAAiB,sBAAsB,gBAAgB,WAAW;CACxE,OAAO,OAAO,OAAO;EACnB,UAAU;GACR,eAAe,SAAS,SAAS,KAAK;GACtC,eAAe,cAAc,SAAS,UAAU;GAChD,eAAe,aAAa,SAAS,SAAS;GAC9C,eAAe,SAAS,SAAS,KAAK;GACtC,eAAe,SAAS,SAAS,KAAK;GACtC,eAAe,mBAAmB,SAAS,eAAe;GAC1D,eAAe,iBAAiB,SAAS,aAAa;GACtD,eAAe,cAAc,SAAS,UAAU;EAClD;EACA,MAAM,kCAAkC,CAAC,CAAC,OACxC,IACF;EACA;CACF,CAUC;AACH;AA4BA,SAAgB,yBAId,aAGoD;CACpD,IAAI,YAAY,SAAS,SAAS,GAChC,MAAM,IAAI,YACR,2DACA;EACE,oBAAoB,YAAY,SAAS;EACzC,sBAAsB;CACxB,CACF;CAEF,IAAI,eAAe;CACnB,MAAM,uBAAuB;EAC3B,MAAM,cAAe,YAAY,SAA2B;EAC5D,gBAAgB;EAChB,OAAO;CACT;CACA,MAAM,+BAA+B;EACnC,MAAM,cAAc,eAAe;EACnC,OAAO,YAAY,YAAA,iDACf,KAAA,IACA;CACN;CACA,OAAO;EACL,gBAAgB,YAAY;EAC5B,UAAU;GACR,OAAO,eAAe;GACtB,YAAY,uBAAuB;GACnC,WAAW,uBAAuB;GAClC,OAAO,eAAe;GACtB,OAAO,uBAAuB;GAC9B,iBAAiB,uBAAuB;GACxC,eAAe,eAAe;GAC9B,YAAY,uBAAuB;EACrC;EACA,MAAM,kCAAkC,CAAC,CAAC,OAAO,YAAY,IAAI;CACnE;AACF"}
|