@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":"updateCollectionV1.js","names":[],"sources":["../../../src/generated/instructions/updateCollectionV1.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 {\n UpdateCollectionV1Args,\n UpdateCollectionV1ArgsArgs,\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 getUpdateCollectionV1ArgsDecoder,\n getUpdateCollectionV1ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const UPDATE_COLLECTION_V1_DISCRIMINATOR = 16;\n\nexport function getUpdateCollectionV1DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(UPDATE_COLLECTION_V1_DISCRIMINATOR);\n}\n\nexport type UpdateCollectionV1Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountCollection extends string | AccountMeta<string> = string,\n TAccountPayer extends string | AccountMeta<string> = string,\n TAccountAuthority extends string | AccountMeta<string> = string,\n TAccountNewUpdateAuthority 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 TAccountCollection extends string\n ? WritableAccount<TAccountCollection>\n : TAccountCollection,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountAuthority extends string\n ? ReadonlySignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\n TAccountNewUpdateAuthority extends string\n ? ReadonlyAccount<TAccountNewUpdateAuthority>\n : TAccountNewUpdateAuthority,\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 UpdateCollectionV1InstructionData {\n discriminator: number;\n updateCollectionV1Args: UpdateCollectionV1Args;\n}\n\nexport interface UpdateCollectionV1InstructionDataArgs {\n updateCollectionV1Args: UpdateCollectionV1ArgsArgs;\n}\n\nexport function getUpdateCollectionV1InstructionDataEncoder(): Encoder<UpdateCollectionV1InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\"updateCollectionV1Args\", getUpdateCollectionV1ArgsEncoder()],\n ]),\n (value) => ({\n ...value,\n discriminator: UPDATE_COLLECTION_V1_DISCRIMINATOR,\n }),\n );\n}\n\nexport function getUpdateCollectionV1InstructionDataDecoder(): Decoder<UpdateCollectionV1InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\"updateCollectionV1Args\", getUpdateCollectionV1ArgsDecoder()],\n ]);\n}\n\nexport function getUpdateCollectionV1InstructionDataCodec(): Codec<\n UpdateCollectionV1InstructionDataArgs,\n UpdateCollectionV1InstructionData\n> {\n return combineCodec(\n getUpdateCollectionV1InstructionDataEncoder(),\n getUpdateCollectionV1InstructionDataDecoder(),\n );\n}\n\nexport interface UpdateCollectionV1Input<\n TAccountCollection extends string = string,\n TAccountPayer extends string = string,\n TAccountAuthority extends string = string,\n TAccountNewUpdateAuthority extends string = string,\n TAccountSystemProgram extends string = string,\n TAccountLogWrapper extends string = string,\n> {\n /** The address of the asset */\n collection: Address<TAccountCollection>;\n /** The account paying for the storage fees */\n payer: TransactionSigner<TAccountPayer>;\n /** The update authority or update authority delegate of the asset */\n authority?: TransactionSigner<TAccountAuthority>;\n /** The new update authority of the asset */\n newUpdateAuthority?: Address<TAccountNewUpdateAuthority>;\n /** The system program */\n systemProgram?: Address<TAccountSystemProgram>;\n /** The SPL Noop Program */\n logWrapper?: Address<TAccountLogWrapper>;\n updateCollectionV1Args: UpdateCollectionV1InstructionDataArgs[\"updateCollectionV1Args\"];\n}\n\nexport function getUpdateCollectionV1Instruction<\n TAccountCollection extends string,\n TAccountPayer extends string,\n TAccountAuthority extends string,\n TAccountNewUpdateAuthority extends string,\n TAccountSystemProgram extends string,\n TAccountLogWrapper extends string,\n TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: UpdateCollectionV1Input<\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountNewUpdateAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >,\n config?: { programAddress?: TProgramAddress },\n): UpdateCollectionV1Instruction<\n TProgramAddress,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountNewUpdateAuthority,\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 collection: { value: input.collection ?? null, isWritable: true },\n payer: { value: input.payer ?? null, isWritable: true },\n authority: { value: input.authority ?? null, isWritable: false },\n newUpdateAuthority: {\n value: input.newUpdateAuthority ?? 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(\"collection\", accounts.collection),\n getAccountMeta(\"payer\", accounts.payer),\n getAccountMeta(\"authority\", accounts.authority),\n getAccountMeta(\"newUpdateAuthority\", accounts.newUpdateAuthority),\n getAccountMeta(\"systemProgram\", accounts.systemProgram),\n getAccountMeta(\"logWrapper\", accounts.logWrapper),\n ],\n data: getUpdateCollectionV1InstructionDataEncoder().encode(\n args as UpdateCollectionV1InstructionDataArgs,\n ),\n programAddress,\n } as UpdateCollectionV1Instruction<\n TProgramAddress,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountNewUpdateAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >);\n}\n\nexport interface ParsedUpdateCollectionV1Instruction<\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 asset */\n collection: TAccountMetas[0];\n /** The account paying for the storage fees */\n payer: TAccountMetas[1];\n /** The update authority or update authority delegate of the asset */\n authority?: TAccountMetas[2] | undefined;\n /** The new update authority of the asset */\n newUpdateAuthority?: TAccountMetas[3] | undefined;\n /** The system program */\n systemProgram: TAccountMetas[4];\n /** The SPL Noop Program */\n logWrapper?: TAccountMetas[5] | undefined;\n };\n data: UpdateCollectionV1InstructionData;\n}\n\nexport function parseUpdateCollectionV1Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedUpdateCollectionV1Instruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 6) {\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n {\n actualAccountMetas: instruction.accounts.length,\n expectedAccountMetas: 6,\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 payer: getNextAccount(),\n authority: getNextOptionalAccount(),\n newUpdateAuthority: getNextOptionalAccount(),\n systemProgram: getNextAccount(),\n logWrapper: getNextOptionalAccount(),\n },\n data: getUpdateCollectionV1InstructionDataDecoder().decode(\n instruction.data,\n ),\n };\n}\n"],"mappings":";;;;;AA+CA,MAAa,qCAAqC;AAElD,SAAgB,0CAA8D;CAC5E,OAAO,aAAa,CAAC,CAAC,OAAA,EAAyC;AACjE;AAkDA,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;AAyBA,SAAgB,iCASd,OAQA,QASA;CAEA,MAAM,iBACJ,QAAQ,kBAAA;CAcV,MAAM,WAAW;EAVf,YAAY;GAAE,OAAO,MAAM,cAAc;GAAM,YAAY;EAAK;EAChE,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,WAAW;GAAE,OAAO,MAAM,aAAa;GAAM,YAAY;EAAM;EAC/D,oBAAoB;GAClB,OAAO,MAAM,sBAAsB;GACnC,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,cAAc,SAAS,UAAU;GAChD,eAAe,SAAS,SAAS,KAAK;GACtC,eAAe,aAAa,SAAS,SAAS;GAC9C,eAAe,sBAAsB,SAAS,kBAAkB;GAChE,eAAe,iBAAiB,SAAS,aAAa;GACtD,eAAe,cAAc,SAAS,UAAU;EAClD;EACA,MAAM,4CAA4C,CAAC,CAAC,OAClD,IACF;EACA;CACF,CAQC;AACH;AAwBA,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,OAAO,eAAe;GACtB,WAAW,uBAAuB;GAClC,oBAAoB,uBAAuB;GAC3C,eAAe,eAAe;GAC9B,YAAY,uBAAuB;EACrC;EACA,MAAM,4CAA4C,CAAC,CAAC,OAClD,YAAY,IACd;CACF;AACF"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { UpdateExternalPluginAdapterV1Args, UpdateExternalPluginAdapterV1ArgsArgs } from "../types/updateExternalPluginAdapterV1Args.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/updateExternalPluginAdapterV1.d.ts
|
|
6
|
+
declare const UPDATE_EXTERNAL_PLUGIN_ADAPTER_V1_DISCRIMINATOR = 26;
|
|
7
|
+
declare function getUpdateExternalPluginAdapterV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
8
|
+
type UpdateExternalPluginAdapterV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountAsset extends string | AccountMeta<string> = string, TAccountCollection extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountAuthority 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 ? WritableAccount<TAccountAsset> : TAccountAsset, TAccountCollection extends string ? WritableAccount<TAccountCollection> : TAccountCollection, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountLogWrapper extends string ? ReadonlyAccount<TAccountLogWrapper> : TAccountLogWrapper, ...TRemainingAccounts]>;
|
|
9
|
+
interface UpdateExternalPluginAdapterV1InstructionData {
|
|
10
|
+
discriminator: number;
|
|
11
|
+
updateExternalPluginAdapterV1Args: UpdateExternalPluginAdapterV1Args;
|
|
12
|
+
}
|
|
13
|
+
interface UpdateExternalPluginAdapterV1InstructionDataArgs {
|
|
14
|
+
updateExternalPluginAdapterV1Args: UpdateExternalPluginAdapterV1ArgsArgs;
|
|
15
|
+
}
|
|
16
|
+
declare function getUpdateExternalPluginAdapterV1InstructionDataEncoder(): Encoder<UpdateExternalPluginAdapterV1InstructionDataArgs>;
|
|
17
|
+
declare function getUpdateExternalPluginAdapterV1InstructionDataDecoder(): Decoder<UpdateExternalPluginAdapterV1InstructionData>;
|
|
18
|
+
declare function getUpdateExternalPluginAdapterV1InstructionDataCodec(): Codec<UpdateExternalPluginAdapterV1InstructionDataArgs, UpdateExternalPluginAdapterV1InstructionData>;
|
|
19
|
+
interface UpdateExternalPluginAdapterV1Input<TAccountAsset extends string = string, TAccountCollection extends string = string, TAccountPayer extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string, TAccountLogWrapper extends string = string> {
|
|
20
|
+
/** The address of the asset */
|
|
21
|
+
asset: Address<TAccountAsset>;
|
|
22
|
+
/** The collection to which the asset belongs */
|
|
23
|
+
collection?: Address<TAccountCollection>;
|
|
24
|
+
/** The account paying for the storage fees */
|
|
25
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
26
|
+
/** The owner or delegate of the asset */
|
|
27
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
28
|
+
/** The system program */
|
|
29
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
30
|
+
/** The SPL Noop Program */
|
|
31
|
+
logWrapper?: Address<TAccountLogWrapper>;
|
|
32
|
+
updateExternalPluginAdapterV1Args: UpdateExternalPluginAdapterV1InstructionDataArgs["updateExternalPluginAdapterV1Args"];
|
|
33
|
+
}
|
|
34
|
+
declare function getUpdateExternalPluginAdapterV1Instruction<TAccountAsset extends string, TAccountCollection extends string, TAccountPayer extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TAccountLogWrapper extends string, TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS>(input: UpdateExternalPluginAdapterV1Input<TAccountAsset, TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>, config?: {
|
|
35
|
+
programAddress?: TProgramAddress;
|
|
36
|
+
}): UpdateExternalPluginAdapterV1Instruction<TProgramAddress, TAccountAsset, TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>;
|
|
37
|
+
interface ParsedUpdateExternalPluginAdapterV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> {
|
|
38
|
+
programAddress: Address<TProgram>;
|
|
39
|
+
accounts: {
|
|
40
|
+
/** The address of the asset */asset: TAccountMetas[0]; /** The collection to which the asset belongs */
|
|
41
|
+
collection?: TAccountMetas[1] | undefined; /** The account paying for the storage fees */
|
|
42
|
+
payer: TAccountMetas[2]; /** The owner or delegate of the asset */
|
|
43
|
+
authority?: TAccountMetas[3] | undefined; /** The system program */
|
|
44
|
+
systemProgram: TAccountMetas[4]; /** The SPL Noop Program */
|
|
45
|
+
logWrapper?: TAccountMetas[5] | undefined;
|
|
46
|
+
};
|
|
47
|
+
data: UpdateExternalPluginAdapterV1InstructionData;
|
|
48
|
+
}
|
|
49
|
+
declare function parseUpdateExternalPluginAdapterV1Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateExternalPluginAdapterV1Instruction<TProgram, TAccountMetas>;
|
|
50
|
+
//#endregion
|
|
51
|
+
export { ParsedUpdateExternalPluginAdapterV1Instruction, UPDATE_EXTERNAL_PLUGIN_ADAPTER_V1_DISCRIMINATOR, UpdateExternalPluginAdapterV1Input, UpdateExternalPluginAdapterV1Instruction, UpdateExternalPluginAdapterV1InstructionData, UpdateExternalPluginAdapterV1InstructionDataArgs, getUpdateExternalPluginAdapterV1DiscriminatorBytes, getUpdateExternalPluginAdapterV1Instruction, getUpdateExternalPluginAdapterV1InstructionDataCodec, getUpdateExternalPluginAdapterV1InstructionDataDecoder, getUpdateExternalPluginAdapterV1InstructionDataEncoder, parseUpdateExternalPluginAdapterV1Instruction };
|
|
52
|
+
//# sourceMappingURL=updateExternalPluginAdapterV1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateExternalPluginAdapterV1.d.ts","names":[],"sources":["../../../src/generated/instructions/updateExternalPluginAdapterV1.ts"],"mappings":";;;;;cA+Ca,+CAAA;AAAA,iBAEG,kDAAA,IAAsD,kBAAA;AAAA,KAI1D,wCAAA,kCACuB,gCAAA,iCACF,WAAA,uDACK,WAAA,kDACL,WAAA,sDACI,WAAA,0DAG/B,WAAA,mFACgC,WAAA,uDACA,WAAA,mBAClC,WAAA,CAAY,QAAA,IACd,mBAAA,CAAoB,kBAAA,IACpB,uBAAA,EAEI,aAAA,kBACI,eAAA,CAAgB,aAAA,IAChB,aAAA,EACJ,kBAAA,kBACI,eAAA,CAAgB,kBAAA,IAChB,kBAAA,EACJ,aAAA,kBACI,qBAAA,CAAsB,aAAA,IACpB,iBAAA,CAAkB,aAAA,IACpB,aAAA,EACJ,iBAAA,kBACI,qBAAA,CAAsB,iBAAA,IACpB,iBAAA,CAAkB,iBAAA,IACpB,iBAAA,EACJ,qBAAA,kBACI,eAAA,CAAgB,qBAAA,IAChB,qBAAA,EACJ,kBAAA,kBACI,eAAA,CAAgB,kBAAA,IAChB,kBAAA,KACD,kBAAA;AAAA,UAIQ,4CAAA;EACf,aAAA;EACA,iCAAA,EAAmC,iCAAA;AAAA;AAAA,UAGpB,gDAAA;EACf,iCAAA,EAAmC,qCAAA;AAAA;AAAA,iBAGrB,sDAAA,IAA0D,OAAA,CAAQ,gDAAA;AAAA,iBAgBlE,sDAAA,IAA0D,OAAA,CAAQ,4CAAA;AAAA,iBAUlE,oDAAA,IAAwD,KAAA,CACtE,gDAAA,EACA,4CAAA;AAAA,UAQe,kCAAA;;EASf,KAAA,EAAO,OAAA,CAAQ,aAAA;;EAEf,UAAA,GAAa,OAAA,CAAQ,kBAAA;;EAErB,KAAA,EAAO,iBAAA,CAAkB,aAAA;;EAEzB,SAAA,GAAY,iBAAA,CAAkB,iBAAA;;EAE9B,aAAA,GAAgB,OAAA,CAAQ,qBAAA;;EAExB,UAAA,GAAa,OAAA,CAAQ,kBAAA;EACrB,iCAAA,EAAmC,gDAAA;AAAA;AAAA,iBAGrB,2CAAA,mOAOU,OAAA,UAAiB,gCAAA,EAEzC,KAAA,EAAO,kCAAA,CACL,aAAA,EACA,kBAAA,EACA,aAAA,EACA,iBAAA,EACA,qBAAA,EACA,kBAAA,GAEF,MAAA;EAAW,cAAA,GAAiB,eAAA;AAAA,IAC3B,wCAAA,CACD,eAAA,EACA,aAAA,EACA,kBAAA,EACA,aAAA,EACA,iBAAA,EACA,qBAAA,EACA,kBAAA;AAAA,UAsDe,8CAAA,kCACkB,gCAAA,iCACF,WAAA,cAAyB,WAAA;EAExD,cAAA,EAAgB,OAAA,CAAQ,QAAA;EACxB,QAAA;IA3L+B,+BA6L7B,KAAA,EAAO,aAAA,KA5L0B;IA8LjC,UAAA,GAAa,aAAA,iBA3LX;IA6LF,KAAA,EAAO,aAAA,KA5L2B;IA8LlC,SAAA,GAAY,aAAA,iBA7LsB;IA+LlC,aAAA,EAAe,aAAA,KA9LH;IAgMZ,UAAA,GAAa,aAAA;EAAA;EAEf,IAAA,EAAM,4CAAA;AAAA;AAAA,iBAGQ,6CAAA,yDAEiB,WAAA,IAE/B,WAAA,EAAa,WAAA,CAAY,QAAA,IACvB,uBAAA,CAAwB,aAAA,IACxB,mBAAA,CAAoB,kBAAA,IACrB,8CAAA,CAA+C,QAAA,EAAU,aAAA"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { getUpdateExternalPluginAdapterV1ArgsDecoder, getUpdateExternalPluginAdapterV1ArgsEncoder } from "../types/updateExternalPluginAdapterV1Args.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/updateExternalPluginAdapterV1.ts
|
|
6
|
+
const UPDATE_EXTERNAL_PLUGIN_ADAPTER_V1_DISCRIMINATOR = 26;
|
|
7
|
+
function getUpdateExternalPluginAdapterV1DiscriminatorBytes() {
|
|
8
|
+
return getU8Encoder().encode(26);
|
|
9
|
+
}
|
|
10
|
+
function getUpdateExternalPluginAdapterV1InstructionDataEncoder() {
|
|
11
|
+
return transformEncoder(getStructEncoder([["discriminator", getU8Encoder()], ["updateExternalPluginAdapterV1Args", getUpdateExternalPluginAdapterV1ArgsEncoder()]]), (value) => ({
|
|
12
|
+
...value,
|
|
13
|
+
discriminator: 26
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
function getUpdateExternalPluginAdapterV1InstructionDataDecoder() {
|
|
17
|
+
return getStructDecoder([["discriminator", getU8Decoder()], ["updateExternalPluginAdapterV1Args", getUpdateExternalPluginAdapterV1ArgsDecoder()]]);
|
|
18
|
+
}
|
|
19
|
+
function getUpdateExternalPluginAdapterV1InstructionDataCodec() {
|
|
20
|
+
return combineCodec(getUpdateExternalPluginAdapterV1InstructionDataEncoder(), getUpdateExternalPluginAdapterV1InstructionDataDecoder());
|
|
21
|
+
}
|
|
22
|
+
function getUpdateExternalPluginAdapterV1Instruction(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
|
+
payer: {
|
|
34
|
+
value: input.payer ?? null,
|
|
35
|
+
isWritable: true
|
|
36
|
+
},
|
|
37
|
+
authority: {
|
|
38
|
+
value: input.authority ?? null,
|
|
39
|
+
isWritable: false
|
|
40
|
+
},
|
|
41
|
+
systemProgram: {
|
|
42
|
+
value: input.systemProgram ?? null,
|
|
43
|
+
isWritable: false
|
|
44
|
+
},
|
|
45
|
+
logWrapper: {
|
|
46
|
+
value: input.logWrapper ?? null,
|
|
47
|
+
isWritable: false
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const args = { ...input };
|
|
51
|
+
if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
52
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
53
|
+
return Object.freeze({
|
|
54
|
+
accounts: [
|
|
55
|
+
getAccountMeta("asset", accounts.asset),
|
|
56
|
+
getAccountMeta("collection", accounts.collection),
|
|
57
|
+
getAccountMeta("payer", accounts.payer),
|
|
58
|
+
getAccountMeta("authority", accounts.authority),
|
|
59
|
+
getAccountMeta("systemProgram", accounts.systemProgram),
|
|
60
|
+
getAccountMeta("logWrapper", accounts.logWrapper)
|
|
61
|
+
],
|
|
62
|
+
data: getUpdateExternalPluginAdapterV1InstructionDataEncoder().encode(args),
|
|
63
|
+
programAddress
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function parseUpdateExternalPluginAdapterV1Instruction(instruction) {
|
|
67
|
+
if (instruction.accounts.length < 6) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
68
|
+
actualAccountMetas: instruction.accounts.length,
|
|
69
|
+
expectedAccountMetas: 6
|
|
70
|
+
});
|
|
71
|
+
let accountIndex = 0;
|
|
72
|
+
const getNextAccount = () => {
|
|
73
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
74
|
+
accountIndex += 1;
|
|
75
|
+
return accountMeta;
|
|
76
|
+
};
|
|
77
|
+
const getNextOptionalAccount = () => {
|
|
78
|
+
const accountMeta = getNextAccount();
|
|
79
|
+
return accountMeta.address === "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d" ? void 0 : accountMeta;
|
|
80
|
+
};
|
|
81
|
+
return {
|
|
82
|
+
programAddress: instruction.programAddress,
|
|
83
|
+
accounts: {
|
|
84
|
+
asset: getNextAccount(),
|
|
85
|
+
collection: getNextOptionalAccount(),
|
|
86
|
+
payer: getNextAccount(),
|
|
87
|
+
authority: getNextOptionalAccount(),
|
|
88
|
+
systemProgram: getNextAccount(),
|
|
89
|
+
logWrapper: getNextOptionalAccount()
|
|
90
|
+
},
|
|
91
|
+
data: getUpdateExternalPluginAdapterV1InstructionDataDecoder().decode(instruction.data)
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
export { UPDATE_EXTERNAL_PLUGIN_ADAPTER_V1_DISCRIMINATOR, getUpdateExternalPluginAdapterV1DiscriminatorBytes, getUpdateExternalPluginAdapterV1Instruction, getUpdateExternalPluginAdapterV1InstructionDataCodec, getUpdateExternalPluginAdapterV1InstructionDataDecoder, getUpdateExternalPluginAdapterV1InstructionDataEncoder, parseUpdateExternalPluginAdapterV1Instruction };
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=updateExternalPluginAdapterV1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateExternalPluginAdapterV1.js","names":[],"sources":["../../../src/generated/instructions/updateExternalPluginAdapterV1.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 {\n UpdateExternalPluginAdapterV1Args,\n UpdateExternalPluginAdapterV1ArgsArgs,\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 getUpdateExternalPluginAdapterV1ArgsDecoder,\n getUpdateExternalPluginAdapterV1ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const UPDATE_EXTERNAL_PLUGIN_ADAPTER_V1_DISCRIMINATOR = 26;\n\nexport function getUpdateExternalPluginAdapterV1DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(UPDATE_EXTERNAL_PLUGIN_ADAPTER_V1_DISCRIMINATOR);\n}\n\nexport type UpdateExternalPluginAdapterV1Instruction<\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 TAccountPayer extends string | AccountMeta<string> = string,\n TAccountAuthority 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 ? WritableAccount<TAccountAsset>\n : TAccountAsset,\n TAccountCollection extends string\n ? WritableAccount<TAccountCollection>\n : TAccountCollection,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountAuthority extends string\n ? ReadonlySignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\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 UpdateExternalPluginAdapterV1InstructionData {\n discriminator: number;\n updateExternalPluginAdapterV1Args: UpdateExternalPluginAdapterV1Args;\n}\n\nexport interface UpdateExternalPluginAdapterV1InstructionDataArgs {\n updateExternalPluginAdapterV1Args: UpdateExternalPluginAdapterV1ArgsArgs;\n}\n\nexport function getUpdateExternalPluginAdapterV1InstructionDataEncoder(): Encoder<UpdateExternalPluginAdapterV1InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\n \"updateExternalPluginAdapterV1Args\",\n getUpdateExternalPluginAdapterV1ArgsEncoder(),\n ],\n ]),\n (value) => ({\n ...value,\n discriminator: UPDATE_EXTERNAL_PLUGIN_ADAPTER_V1_DISCRIMINATOR,\n }),\n );\n}\n\nexport function getUpdateExternalPluginAdapterV1InstructionDataDecoder(): Decoder<UpdateExternalPluginAdapterV1InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\n \"updateExternalPluginAdapterV1Args\",\n getUpdateExternalPluginAdapterV1ArgsDecoder(),\n ],\n ]);\n}\n\nexport function getUpdateExternalPluginAdapterV1InstructionDataCodec(): Codec<\n UpdateExternalPluginAdapterV1InstructionDataArgs,\n UpdateExternalPluginAdapterV1InstructionData\n> {\n return combineCodec(\n getUpdateExternalPluginAdapterV1InstructionDataEncoder(),\n getUpdateExternalPluginAdapterV1InstructionDataDecoder(),\n );\n}\n\nexport interface UpdateExternalPluginAdapterV1Input<\n TAccountAsset extends string = string,\n TAccountCollection extends string = string,\n TAccountPayer extends string = string,\n TAccountAuthority extends string = string,\n TAccountSystemProgram extends string = string,\n TAccountLogWrapper extends string = string,\n> {\n /** The address of the asset */\n asset: Address<TAccountAsset>;\n /** The collection to which the asset belongs */\n collection?: Address<TAccountCollection>;\n /** The account paying for the storage fees */\n payer: TransactionSigner<TAccountPayer>;\n /** The owner or delegate of the asset */\n authority?: TransactionSigner<TAccountAuthority>;\n /** The system program */\n systemProgram?: Address<TAccountSystemProgram>;\n /** The SPL Noop Program */\n logWrapper?: Address<TAccountLogWrapper>;\n updateExternalPluginAdapterV1Args: UpdateExternalPluginAdapterV1InstructionDataArgs[\"updateExternalPluginAdapterV1Args\"];\n}\n\nexport function getUpdateExternalPluginAdapterV1Instruction<\n TAccountAsset extends string,\n TAccountCollection extends string,\n TAccountPayer extends string,\n TAccountAuthority extends string,\n TAccountSystemProgram extends string,\n TAccountLogWrapper extends string,\n TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: UpdateExternalPluginAdapterV1Input<\n TAccountAsset,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >,\n config?: { programAddress?: TProgramAddress },\n): UpdateExternalPluginAdapterV1Instruction<\n TProgramAddress,\n TAccountAsset,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\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 payer: { value: input.payer ?? null, isWritable: true },\n authority: { value: input.authority ?? null, isWritable: false },\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(\"payer\", accounts.payer),\n getAccountMeta(\"authority\", accounts.authority),\n getAccountMeta(\"systemProgram\", accounts.systemProgram),\n getAccountMeta(\"logWrapper\", accounts.logWrapper),\n ],\n data: getUpdateExternalPluginAdapterV1InstructionDataEncoder().encode(\n args as UpdateExternalPluginAdapterV1InstructionDataArgs,\n ),\n programAddress,\n } as UpdateExternalPluginAdapterV1Instruction<\n TProgramAddress,\n TAccountAsset,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >);\n}\n\nexport interface ParsedUpdateExternalPluginAdapterV1Instruction<\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 asset */\n asset: TAccountMetas[0];\n /** The collection to which the asset belongs */\n collection?: TAccountMetas[1] | undefined;\n /** The account paying for the storage fees */\n payer: TAccountMetas[2];\n /** The owner or delegate of the asset */\n authority?: TAccountMetas[3] | undefined;\n /** The system program */\n systemProgram: TAccountMetas[4];\n /** The SPL Noop Program */\n logWrapper?: TAccountMetas[5] | undefined;\n };\n data: UpdateExternalPluginAdapterV1InstructionData;\n}\n\nexport function parseUpdateExternalPluginAdapterV1Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedUpdateExternalPluginAdapterV1Instruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 6) {\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n {\n actualAccountMetas: instruction.accounts.length,\n expectedAccountMetas: 6,\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 payer: getNextAccount(),\n authority: getNextOptionalAccount(),\n systemProgram: getNextAccount(),\n logWrapper: getNextOptionalAccount(),\n },\n data: getUpdateExternalPluginAdapterV1InstructionDataDecoder().decode(\n instruction.data,\n ),\n };\n}\n"],"mappings":";;;;;AA+CA,MAAa,kDAAkD;AAE/D,SAAgB,qDAAyE;CACvF,OAAO,aAAa,CAAC,CAAC,OAAA,EAAsD;AAC9E;AAkDA,SAAgB,yDAAoH;CAClI,OAAO,iBACL,iBAAiB,CACf,CAAC,iBAAiB,aAAa,CAAC,GAChC,CACE,qCACA,4CAA4C,CAC9C,CACF,CAAC,IACA,WAAW;EACV,GAAG;EACH,eAAA;CACF,EACF;AACF;AAEA,SAAgB,yDAAgH;CAC9H,OAAO,iBAAiB,CACtB,CAAC,iBAAiB,aAAa,CAAC,GAChC,CACE,qCACA,4CAA4C,CAC9C,CACF,CAAC;AACH;AAEA,SAAgB,uDAGd;CACA,OAAO,aACL,uDAAuD,GACvD,uDAAuD,CACzD;AACF;AAyBA,SAAgB,4CASd,OAQA,QASA;CAEA,MAAM,iBACJ,QAAQ,kBAAA;CAWV,MAAM,WAAW;EAPf,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,YAAY;GAAE,OAAO,MAAM,cAAc;GAAM,YAAY;EAAK;EAChE,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,WAAW;GAAE,OAAO,MAAM,aAAa;GAAM,YAAY;EAAM;EAC/D,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,SAAS,SAAS,KAAK;GACtC,eAAe,aAAa,SAAS,SAAS;GAC9C,eAAe,iBAAiB,SAAS,aAAa;GACtD,eAAe,cAAc,SAAS,UAAU;EAClD;EACA,MAAM,uDAAuD,CAAC,CAAC,OAC7D,IACF;EACA;CACF,CAQC;AACH;AAwBA,SAAgB,8CAId,aAGyE;CACzE,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,OAAO,eAAe;GACtB,WAAW,uBAAuB;GAClC,eAAe,eAAe;GAC9B,YAAY,uBAAuB;EACrC;EACA,MAAM,uDAAuD,CAAC,CAAC,OAC7D,YAAY,IACd;CACF;AACF"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { UpdateGroupV1Args, UpdateGroupV1ArgsArgs } from "../types/updateGroupV1Args.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/updateGroupV1.d.ts
|
|
6
|
+
declare const UPDATE_GROUP_V1_DISCRIMINATOR = 41;
|
|
7
|
+
declare function getUpdateGroupV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
8
|
+
type UpdateGroupV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountGroup extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountNewUpdateAuthority extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountGroup extends string ? WritableAccount<TAccountGroup> : TAccountGroup, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority, TAccountNewUpdateAuthority extends string ? ReadonlyAccount<TAccountNewUpdateAuthority> : TAccountNewUpdateAuthority, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
9
|
+
interface UpdateGroupV1InstructionData {
|
|
10
|
+
discriminator: number;
|
|
11
|
+
updateGroupV1Args: UpdateGroupV1Args;
|
|
12
|
+
}
|
|
13
|
+
interface UpdateGroupV1InstructionDataArgs {
|
|
14
|
+
updateGroupV1Args: UpdateGroupV1ArgsArgs;
|
|
15
|
+
}
|
|
16
|
+
declare function getUpdateGroupV1InstructionDataEncoder(): Encoder<UpdateGroupV1InstructionDataArgs>;
|
|
17
|
+
declare function getUpdateGroupV1InstructionDataDecoder(): Decoder<UpdateGroupV1InstructionData>;
|
|
18
|
+
declare function getUpdateGroupV1InstructionDataCodec(): Codec<UpdateGroupV1InstructionDataArgs, UpdateGroupV1InstructionData>;
|
|
19
|
+
interface UpdateGroupV1Input<TAccountGroup extends string = string, TAccountPayer extends string = string, TAccountAuthority extends string = string, TAccountNewUpdateAuthority extends string = string, TAccountSystemProgram extends string = string> {
|
|
20
|
+
/** The address of the group to update */
|
|
21
|
+
group: Address<TAccountGroup>;
|
|
22
|
+
/** The account paying for the storage fees */
|
|
23
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
24
|
+
/** The update authority of the group */
|
|
25
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
26
|
+
/** The new update authority of the group */
|
|
27
|
+
newUpdateAuthority?: Address<TAccountNewUpdateAuthority>;
|
|
28
|
+
/** The system program */
|
|
29
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
30
|
+
updateGroupV1Args: UpdateGroupV1InstructionDataArgs["updateGroupV1Args"];
|
|
31
|
+
}
|
|
32
|
+
declare function getUpdateGroupV1Instruction<TAccountGroup extends string, TAccountPayer extends string, TAccountAuthority extends string, TAccountNewUpdateAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS>(input: UpdateGroupV1Input<TAccountGroup, TAccountPayer, TAccountAuthority, TAccountNewUpdateAuthority, TAccountSystemProgram>, config?: {
|
|
33
|
+
programAddress?: TProgramAddress;
|
|
34
|
+
}): UpdateGroupV1Instruction<TProgramAddress, TAccountGroup, TAccountPayer, TAccountAuthority, TAccountNewUpdateAuthority, TAccountSystemProgram>;
|
|
35
|
+
interface ParsedUpdateGroupV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> {
|
|
36
|
+
programAddress: Address<TProgram>;
|
|
37
|
+
accounts: {
|
|
38
|
+
/** The address of the group to update */group: TAccountMetas[0]; /** The account paying for the storage fees */
|
|
39
|
+
payer: TAccountMetas[1]; /** The update authority of the group */
|
|
40
|
+
authority?: TAccountMetas[2] | undefined; /** The new update authority of the group */
|
|
41
|
+
newUpdateAuthority?: TAccountMetas[3] | undefined; /** The system program */
|
|
42
|
+
systemProgram: TAccountMetas[4];
|
|
43
|
+
};
|
|
44
|
+
data: UpdateGroupV1InstructionData;
|
|
45
|
+
}
|
|
46
|
+
declare function parseUpdateGroupV1Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateGroupV1Instruction<TProgram, TAccountMetas>;
|
|
47
|
+
//#endregion
|
|
48
|
+
export { ParsedUpdateGroupV1Instruction, UPDATE_GROUP_V1_DISCRIMINATOR, UpdateGroupV1Input, UpdateGroupV1Instruction, UpdateGroupV1InstructionData, UpdateGroupV1InstructionDataArgs, getUpdateGroupV1DiscriminatorBytes, getUpdateGroupV1Instruction, getUpdateGroupV1InstructionDataCodec, getUpdateGroupV1InstructionDataDecoder, getUpdateGroupV1InstructionDataEncoder, parseUpdateGroupV1Instruction };
|
|
49
|
+
//# sourceMappingURL=updateGroupV1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateGroupV1.d.ts","names":[],"sources":["../../../src/generated/instructions/updateGroupV1.ts"],"mappings":";;;;;cA+Ca,6BAAA;AAAA,iBAEG,kCAAA,IAAsC,kBAAA;AAAA,KAI1C,wBAAA,kCACuB,gCAAA,iCACF,WAAA,kDACA,WAAA,sDACI,WAAA,+DACS,WAAA,0DAGxC,WAAA,mFACgC,WAAA,mBAClC,WAAA,CAAY,QAAA,IACd,mBAAA,CAAoB,kBAAA,IACpB,uBAAA,EAEI,aAAA,kBACI,eAAA,CAAgB,aAAA,IAChB,aAAA,EACJ,aAAA,kBACI,qBAAA,CAAsB,aAAA,IACpB,iBAAA,CAAkB,aAAA,IACpB,aAAA,EACJ,iBAAA,kBACI,qBAAA,CAAsB,iBAAA,IACpB,iBAAA,CAAkB,iBAAA,IACpB,iBAAA,EACJ,0BAAA,kBACI,eAAA,CAAgB,0BAAA,IAChB,0BAAA,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;;EAQf,KAAA,EAAO,OAAA,CAAQ,aAAA;;EAEf,KAAA,EAAO,iBAAA,CAAkB,aAAA;;EAEzB,SAAA,GAAY,iBAAA,CAAkB,iBAAA;;EAE9B,kBAAA,GAAqB,OAAA,CAAQ,0BAAA;;EAE7B,aAAA,GAAgB,OAAA,CAAQ,qBAAA;EACxB,iBAAA,EAAmB,gCAAA;AAAA;AAAA,iBAGL,2BAAA,wMAMU,OAAA,UAAiB,gCAAA,EAEzC,KAAA,EAAO,kBAAA,CACL,aAAA,EACA,aAAA,EACA,iBAAA,EACA,0BAAA,EACA,qBAAA,GAEF,MAAA;EAAW,cAAA,GAAiB,eAAA;AAAA,IAC3B,wBAAA,CACD,eAAA,EACA,aAAA,EACA,aAAA,EACA,iBAAA,EACA,0BAAA,EACA,qBAAA;AAAA,UAsDe,8BAAA,kCACkB,gCAAA,iCACF,WAAA,cAAyB,WAAA;EAExD,cAAA,EAAgB,OAAA,CAAQ,QAAA;EACxB,QAAA;IAxKmC,yCA0KjC,KAAA,EAAO,aAAA,KAzKmC;IA2K1C,KAAA,EAAO,aAAA,KAxKL;IA0KF,SAAA,GAAY,aAAA,iBAzKsB;IA2KlC,kBAAA,GAAqB,aAAA,iBA1KT;IA4KZ,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,91 @@
|
|
|
1
|
+
import { getUpdateGroupV1ArgsDecoder, getUpdateGroupV1ArgsEncoder } from "../types/updateGroupV1Args.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/updateGroupV1.ts
|
|
6
|
+
const UPDATE_GROUP_V1_DISCRIMINATOR = 41;
|
|
7
|
+
function getUpdateGroupV1DiscriminatorBytes() {
|
|
8
|
+
return getU8Encoder().encode(41);
|
|
9
|
+
}
|
|
10
|
+
function getUpdateGroupV1InstructionDataEncoder() {
|
|
11
|
+
return transformEncoder(getStructEncoder([["discriminator", getU8Encoder()], ["updateGroupV1Args", getUpdateGroupV1ArgsEncoder()]]), (value) => ({
|
|
12
|
+
...value,
|
|
13
|
+
discriminator: 41
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
function getUpdateGroupV1InstructionDataDecoder() {
|
|
17
|
+
return getStructDecoder([["discriminator", getU8Decoder()], ["updateGroupV1Args", getUpdateGroupV1ArgsDecoder()]]);
|
|
18
|
+
}
|
|
19
|
+
function getUpdateGroupV1InstructionDataCodec() {
|
|
20
|
+
return combineCodec(getUpdateGroupV1InstructionDataEncoder(), getUpdateGroupV1InstructionDataDecoder());
|
|
21
|
+
}
|
|
22
|
+
function getUpdateGroupV1Instruction(input, config) {
|
|
23
|
+
const programAddress = config?.programAddress ?? "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d";
|
|
24
|
+
const accounts = {
|
|
25
|
+
group: {
|
|
26
|
+
value: input.group ?? null,
|
|
27
|
+
isWritable: true
|
|
28
|
+
},
|
|
29
|
+
payer: {
|
|
30
|
+
value: input.payer ?? null,
|
|
31
|
+
isWritable: true
|
|
32
|
+
},
|
|
33
|
+
authority: {
|
|
34
|
+
value: input.authority ?? null,
|
|
35
|
+
isWritable: false
|
|
36
|
+
},
|
|
37
|
+
newUpdateAuthority: {
|
|
38
|
+
value: input.newUpdateAuthority ?? null,
|
|
39
|
+
isWritable: false
|
|
40
|
+
},
|
|
41
|
+
systemProgram: {
|
|
42
|
+
value: input.systemProgram ?? null,
|
|
43
|
+
isWritable: false
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const args = { ...input };
|
|
47
|
+
if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
48
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
49
|
+
return Object.freeze({
|
|
50
|
+
accounts: [
|
|
51
|
+
getAccountMeta("group", accounts.group),
|
|
52
|
+
getAccountMeta("payer", accounts.payer),
|
|
53
|
+
getAccountMeta("authority", accounts.authority),
|
|
54
|
+
getAccountMeta("newUpdateAuthority", accounts.newUpdateAuthority),
|
|
55
|
+
getAccountMeta("systemProgram", accounts.systemProgram)
|
|
56
|
+
],
|
|
57
|
+
data: getUpdateGroupV1InstructionDataEncoder().encode(args),
|
|
58
|
+
programAddress
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function parseUpdateGroupV1Instruction(instruction) {
|
|
62
|
+
if (instruction.accounts.length < 5) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
63
|
+
actualAccountMetas: instruction.accounts.length,
|
|
64
|
+
expectedAccountMetas: 5
|
|
65
|
+
});
|
|
66
|
+
let accountIndex = 0;
|
|
67
|
+
const getNextAccount = () => {
|
|
68
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
69
|
+
accountIndex += 1;
|
|
70
|
+
return accountMeta;
|
|
71
|
+
};
|
|
72
|
+
const getNextOptionalAccount = () => {
|
|
73
|
+
const accountMeta = getNextAccount();
|
|
74
|
+
return accountMeta.address === "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d" ? void 0 : accountMeta;
|
|
75
|
+
};
|
|
76
|
+
return {
|
|
77
|
+
programAddress: instruction.programAddress,
|
|
78
|
+
accounts: {
|
|
79
|
+
group: getNextAccount(),
|
|
80
|
+
payer: getNextAccount(),
|
|
81
|
+
authority: getNextOptionalAccount(),
|
|
82
|
+
newUpdateAuthority: getNextOptionalAccount(),
|
|
83
|
+
systemProgram: getNextAccount()
|
|
84
|
+
},
|
|
85
|
+
data: getUpdateGroupV1InstructionDataDecoder().decode(instruction.data)
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { UPDATE_GROUP_V1_DISCRIMINATOR, getUpdateGroupV1DiscriminatorBytes, getUpdateGroupV1Instruction, getUpdateGroupV1InstructionDataCodec, getUpdateGroupV1InstructionDataDecoder, getUpdateGroupV1InstructionDataEncoder, parseUpdateGroupV1Instruction };
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=updateGroupV1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateGroupV1.js","names":[],"sources":["../../../src/generated/instructions/updateGroupV1.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 {\n UpdateGroupV1Args,\n UpdateGroupV1ArgsArgs,\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 getUpdateGroupV1ArgsDecoder,\n getUpdateGroupV1ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const UPDATE_GROUP_V1_DISCRIMINATOR = 41;\n\nexport function getUpdateGroupV1DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(UPDATE_GROUP_V1_DISCRIMINATOR);\n}\n\nexport type UpdateGroupV1Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountGroup extends string | AccountMeta<string> = string,\n TAccountPayer extends string | AccountMeta<string> = string,\n TAccountAuthority extends string | AccountMeta<string> = string,\n TAccountNewUpdateAuthority 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 ? WritableAccount<TAccountGroup>\n : TAccountGroup,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountAuthority extends string\n ? ReadonlySignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\n TAccountNewUpdateAuthority extends string\n ? ReadonlyAccount<TAccountNewUpdateAuthority>\n : TAccountNewUpdateAuthority,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n ...TRemainingAccounts,\n ]\n >;\n\nexport interface UpdateGroupV1InstructionData {\n discriminator: number;\n updateGroupV1Args: UpdateGroupV1Args;\n}\n\nexport interface UpdateGroupV1InstructionDataArgs {\n updateGroupV1Args: UpdateGroupV1ArgsArgs;\n}\n\nexport function getUpdateGroupV1InstructionDataEncoder(): Encoder<UpdateGroupV1InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\"updateGroupV1Args\", getUpdateGroupV1ArgsEncoder()],\n ]),\n (value) => ({ ...value, discriminator: UPDATE_GROUP_V1_DISCRIMINATOR }),\n );\n}\n\nexport function getUpdateGroupV1InstructionDataDecoder(): Decoder<UpdateGroupV1InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\"updateGroupV1Args\", getUpdateGroupV1ArgsDecoder()],\n ]);\n}\n\nexport function getUpdateGroupV1InstructionDataCodec(): Codec<\n UpdateGroupV1InstructionDataArgs,\n UpdateGroupV1InstructionData\n> {\n return combineCodec(\n getUpdateGroupV1InstructionDataEncoder(),\n getUpdateGroupV1InstructionDataDecoder(),\n );\n}\n\nexport interface UpdateGroupV1Input<\n TAccountGroup extends string = string,\n TAccountPayer extends string = string,\n TAccountAuthority extends string = string,\n TAccountNewUpdateAuthority extends string = string,\n TAccountSystemProgram extends string = string,\n> {\n /** The address of the group to update */\n group: Address<TAccountGroup>;\n /** The account paying for the storage fees */\n payer: TransactionSigner<TAccountPayer>;\n /** The update authority of the group */\n authority?: TransactionSigner<TAccountAuthority>;\n /** The new update authority of the group */\n newUpdateAuthority?: Address<TAccountNewUpdateAuthority>;\n /** The system program */\n systemProgram?: Address<TAccountSystemProgram>;\n updateGroupV1Args: UpdateGroupV1InstructionDataArgs[\"updateGroupV1Args\"];\n}\n\nexport function getUpdateGroupV1Instruction<\n TAccountGroup extends string,\n TAccountPayer extends string,\n TAccountAuthority extends string,\n TAccountNewUpdateAuthority extends string,\n TAccountSystemProgram extends string,\n TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: UpdateGroupV1Input<\n TAccountGroup,\n TAccountPayer,\n TAccountAuthority,\n TAccountNewUpdateAuthority,\n TAccountSystemProgram\n >,\n config?: { programAddress?: TProgramAddress },\n): UpdateGroupV1Instruction<\n TProgramAddress,\n TAccountGroup,\n TAccountPayer,\n TAccountAuthority,\n TAccountNewUpdateAuthority,\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 payer: { value: input.payer ?? null, isWritable: true },\n authority: { value: input.authority ?? null, isWritable: false },\n newUpdateAuthority: {\n value: input.newUpdateAuthority ?? null,\n isWritable: false,\n },\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(\"payer\", accounts.payer),\n getAccountMeta(\"authority\", accounts.authority),\n getAccountMeta(\"newUpdateAuthority\", accounts.newUpdateAuthority),\n getAccountMeta(\"systemProgram\", accounts.systemProgram),\n ],\n data: getUpdateGroupV1InstructionDataEncoder().encode(\n args as UpdateGroupV1InstructionDataArgs,\n ),\n programAddress,\n } as UpdateGroupV1Instruction<\n TProgramAddress,\n TAccountGroup,\n TAccountPayer,\n TAccountAuthority,\n TAccountNewUpdateAuthority,\n TAccountSystemProgram\n >);\n}\n\nexport interface ParsedUpdateGroupV1Instruction<\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 group to update */\n group: TAccountMetas[0];\n /** The account paying for the storage fees */\n payer: TAccountMetas[1];\n /** The update authority of the group */\n authority?: TAccountMetas[2] | undefined;\n /** The new update authority of the group */\n newUpdateAuthority?: TAccountMetas[3] | undefined;\n /** The system program */\n systemProgram: TAccountMetas[4];\n };\n data: UpdateGroupV1InstructionData;\n}\n\nexport function parseUpdateGroupV1Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedUpdateGroupV1Instruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 5) {\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n {\n actualAccountMetas: instruction.accounts.length,\n expectedAccountMetas: 5,\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 payer: getNextAccount(),\n authority: getNextOptionalAccount(),\n newUpdateAuthority: getNextOptionalAccount(),\n systemProgram: getNextAccount(),\n },\n data: getUpdateGroupV1InstructionDataDecoder().decode(instruction.data),\n };\n}\n"],"mappings":";;;;;AA+CA,MAAa,gCAAgC;AAE7C,SAAgB,qCAAyD;CACvE,OAAO,aAAa,CAAC,CAAC,OAAA,EAAoC;AAC5D;AA8CA,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;AAsBA,SAAgB,4BAQd,OAOA,QAQA;CAEA,MAAM,iBACJ,QAAQ,kBAAA;CAaV,MAAM,WAAW;EATf,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,WAAW;GAAE,OAAO,MAAM,aAAa;GAAM,YAAY;EAAM;EAC/D,oBAAoB;GAClB,OAAO,MAAM,sBAAsB;GACnC,YAAY;EACd;EACA,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,SAAS,SAAS,KAAK;GACtC,eAAe,aAAa,SAAS,SAAS;GAC9C,eAAe,sBAAsB,SAAS,kBAAkB;GAChE,eAAe,iBAAiB,SAAS,aAAa;EACxD;EACA,MAAM,uCAAuC,CAAC,CAAC,OAC7C,IACF;EACA;CACF,CAOC;AACH;AAsBA,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,OAAO,eAAe;GACtB,WAAW,uBAAuB;GAClC,oBAAoB,uBAAuB;GAC3C,eAAe,eAAe;EAChC;EACA,MAAM,uCAAuC,CAAC,CAAC,OAAO,YAAY,IAAI;CACxE;AACF"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { UpdatePluginV1Args, UpdatePluginV1ArgsArgs } from "../types/updatePluginV1Args.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/updatePluginV1.d.ts
|
|
6
|
+
declare const UPDATE_PLUGIN_V1_DISCRIMINATOR = 6;
|
|
7
|
+
declare function getUpdatePluginV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
8
|
+
type UpdatePluginV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountAsset extends string | AccountMeta<string> = string, TAccountCollection extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountAuthority 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 ? WritableAccount<TAccountAsset> : TAccountAsset, TAccountCollection extends string ? WritableAccount<TAccountCollection> : TAccountCollection, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountLogWrapper extends string ? ReadonlyAccount<TAccountLogWrapper> : TAccountLogWrapper, ...TRemainingAccounts]>;
|
|
9
|
+
interface UpdatePluginV1InstructionData {
|
|
10
|
+
discriminator: number;
|
|
11
|
+
updatePluginV1Args: UpdatePluginV1Args;
|
|
12
|
+
}
|
|
13
|
+
interface UpdatePluginV1InstructionDataArgs {
|
|
14
|
+
updatePluginV1Args: UpdatePluginV1ArgsArgs;
|
|
15
|
+
}
|
|
16
|
+
declare function getUpdatePluginV1InstructionDataEncoder(): Encoder<UpdatePluginV1InstructionDataArgs>;
|
|
17
|
+
declare function getUpdatePluginV1InstructionDataDecoder(): Decoder<UpdatePluginV1InstructionData>;
|
|
18
|
+
declare function getUpdatePluginV1InstructionDataCodec(): Codec<UpdatePluginV1InstructionDataArgs, UpdatePluginV1InstructionData>;
|
|
19
|
+
interface UpdatePluginV1Input<TAccountAsset extends string = string, TAccountCollection extends string = string, TAccountPayer extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string, TAccountLogWrapper extends string = string> {
|
|
20
|
+
/** The address of the asset */
|
|
21
|
+
asset: Address<TAccountAsset>;
|
|
22
|
+
/** The collection to which the asset belongs */
|
|
23
|
+
collection?: Address<TAccountCollection>;
|
|
24
|
+
/** The account paying for the storage fees */
|
|
25
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
26
|
+
/** The owner or delegate of the asset */
|
|
27
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
28
|
+
/** The system program */
|
|
29
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
30
|
+
/** The SPL Noop Program */
|
|
31
|
+
logWrapper?: Address<TAccountLogWrapper>;
|
|
32
|
+
updatePluginV1Args: UpdatePluginV1InstructionDataArgs["updatePluginV1Args"];
|
|
33
|
+
}
|
|
34
|
+
declare function getUpdatePluginV1Instruction<TAccountAsset extends string, TAccountCollection extends string, TAccountPayer extends string, TAccountAuthority extends string, TAccountSystemProgram extends string, TAccountLogWrapper extends string, TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS>(input: UpdatePluginV1Input<TAccountAsset, TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>, config?: {
|
|
35
|
+
programAddress?: TProgramAddress;
|
|
36
|
+
}): UpdatePluginV1Instruction<TProgramAddress, TAccountAsset, TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>;
|
|
37
|
+
interface ParsedUpdatePluginV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> {
|
|
38
|
+
programAddress: Address<TProgram>;
|
|
39
|
+
accounts: {
|
|
40
|
+
/** The address of the asset */asset: TAccountMetas[0]; /** The collection to which the asset belongs */
|
|
41
|
+
collection?: TAccountMetas[1] | undefined; /** The account paying for the storage fees */
|
|
42
|
+
payer: TAccountMetas[2]; /** The owner or delegate of the asset */
|
|
43
|
+
authority?: TAccountMetas[3] | undefined; /** The system program */
|
|
44
|
+
systemProgram: TAccountMetas[4]; /** The SPL Noop Program */
|
|
45
|
+
logWrapper?: TAccountMetas[5] | undefined;
|
|
46
|
+
};
|
|
47
|
+
data: UpdatePluginV1InstructionData;
|
|
48
|
+
}
|
|
49
|
+
declare function parseUpdatePluginV1Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdatePluginV1Instruction<TProgram, TAccountMetas>;
|
|
50
|
+
//#endregion
|
|
51
|
+
export { ParsedUpdatePluginV1Instruction, UPDATE_PLUGIN_V1_DISCRIMINATOR, UpdatePluginV1Input, UpdatePluginV1Instruction, UpdatePluginV1InstructionData, UpdatePluginV1InstructionDataArgs, getUpdatePluginV1DiscriminatorBytes, getUpdatePluginV1Instruction, getUpdatePluginV1InstructionDataCodec, getUpdatePluginV1InstructionDataDecoder, getUpdatePluginV1InstructionDataEncoder, parseUpdatePluginV1Instruction };
|
|
52
|
+
//# sourceMappingURL=updatePluginV1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatePluginV1.d.ts","names":[],"sources":["../../../src/generated/instructions/updatePluginV1.ts"],"mappings":";;;;;cA+Ca,8BAAA;AAAA,iBAEG,mCAAA,IAAuC,kBAAA;AAAA,KAI3C,yBAAA,kCACuB,gCAAA,iCACF,WAAA,uDACK,WAAA,kDACL,WAAA,sDACI,WAAA,0DAG/B,WAAA,mFACgC,WAAA,uDACA,WAAA,mBAClC,WAAA,CAAY,QAAA,IACd,mBAAA,CAAoB,kBAAA,IACpB,uBAAA,EAEI,aAAA,kBACI,eAAA,CAAgB,aAAA,IAChB,aAAA,EACJ,kBAAA,kBACI,eAAA,CAAgB,kBAAA,IAChB,kBAAA,EACJ,aAAA,kBACI,qBAAA,CAAsB,aAAA,IACpB,iBAAA,CAAkB,aAAA,IACpB,aAAA,EACJ,iBAAA,kBACI,qBAAA,CAAsB,iBAAA,IACpB,iBAAA,CAAkB,iBAAA,IACpB,iBAAA,EACJ,qBAAA,kBACI,eAAA,CAAgB,qBAAA,IAChB,qBAAA,EACJ,kBAAA,kBACI,eAAA,CAAgB,kBAAA,IAChB,kBAAA,KACD,kBAAA;AAAA,UAIQ,6BAAA;EACf,aAAA;EACA,kBAAA,EAAoB,kBAAA;AAAA;AAAA,UAGL,iCAAA;EACf,kBAAA,EAAoB,sBAAA;AAAA;AAAA,iBAGN,uCAAA,IAA2C,OAAA,CAAQ,iCAAA;AAAA,iBAUnD,uCAAA,IAA2C,OAAA,CAAQ,6BAAA;AAAA,iBAOnD,qCAAA,IAAyC,KAAA,CACvD,iCAAA,EACA,6BAAA;AAAA,UAQe,mBAAA;;EASf,KAAA,EAAO,OAAA,CAAQ,aAAA;;EAEf,UAAA,GAAa,OAAA,CAAQ,kBAAA;;EAErB,KAAA,EAAO,iBAAA,CAAkB,aAAA;;EAEzB,SAAA,GAAY,iBAAA,CAAkB,iBAAA;;EAE9B,aAAA,GAAgB,OAAA,CAAQ,qBAAA;;EAExB,UAAA,GAAa,OAAA,CAAQ,kBAAA;EACrB,kBAAA,EAAoB,iCAAA;AAAA;AAAA,iBAGN,4BAAA,mOAOU,OAAA,UAAiB,gCAAA,EAEzC,KAAA,EAAO,mBAAA,CACL,aAAA,EACA,kBAAA,EACA,aAAA,EACA,iBAAA,EACA,qBAAA,EACA,kBAAA,GAEF,MAAA;EAAW,cAAA,GAAiB,eAAA;AAAA,IAC3B,yBAAA,CACD,eAAA,EACA,aAAA,EACA,kBAAA,EACA,aAAA,EACA,iBAAA,EACA,qBAAA,EACA,kBAAA;AAAA,UAsDe,+BAAA,kCACkB,gCAAA,iCACF,WAAA,cAAyB,WAAA;EAExD,cAAA,EAAgB,OAAA,CAAQ,QAAA;EACxB,QAAA;IAlL+B,+BAoL7B,KAAA,EAAO,aAAA,KAnL0B;IAqLjC,UAAA,GAAa,aAAA,iBAlLX;IAoLF,KAAA,EAAO,aAAA,KAnL2B;IAqLlC,SAAA,GAAY,aAAA,iBApLsB;IAsLlC,aAAA,EAAe,aAAA,KArLH;IAuLZ,UAAA,GAAa,aAAA;EAAA;EAEf,IAAA,EAAM,6BAAA;AAAA;AAAA,iBAGQ,8BAAA,yDAEiB,WAAA,IAE/B,WAAA,EAAa,WAAA,CAAY,QAAA,IACvB,uBAAA,CAAwB,aAAA,IACxB,mBAAA,CAAoB,kBAAA,IACrB,+BAAA,CAAgC,QAAA,EAAU,aAAA"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { getUpdatePluginV1ArgsDecoder, getUpdatePluginV1ArgsEncoder } from "../types/updatePluginV1Args.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/updatePluginV1.ts
|
|
6
|
+
const UPDATE_PLUGIN_V1_DISCRIMINATOR = 6;
|
|
7
|
+
function getUpdatePluginV1DiscriminatorBytes() {
|
|
8
|
+
return getU8Encoder().encode(6);
|
|
9
|
+
}
|
|
10
|
+
function getUpdatePluginV1InstructionDataEncoder() {
|
|
11
|
+
return transformEncoder(getStructEncoder([["discriminator", getU8Encoder()], ["updatePluginV1Args", getUpdatePluginV1ArgsEncoder()]]), (value) => ({
|
|
12
|
+
...value,
|
|
13
|
+
discriminator: 6
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
function getUpdatePluginV1InstructionDataDecoder() {
|
|
17
|
+
return getStructDecoder([["discriminator", getU8Decoder()], ["updatePluginV1Args", getUpdatePluginV1ArgsDecoder()]]);
|
|
18
|
+
}
|
|
19
|
+
function getUpdatePluginV1InstructionDataCodec() {
|
|
20
|
+
return combineCodec(getUpdatePluginV1InstructionDataEncoder(), getUpdatePluginV1InstructionDataDecoder());
|
|
21
|
+
}
|
|
22
|
+
function getUpdatePluginV1Instruction(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
|
+
payer: {
|
|
34
|
+
value: input.payer ?? null,
|
|
35
|
+
isWritable: true
|
|
36
|
+
},
|
|
37
|
+
authority: {
|
|
38
|
+
value: input.authority ?? null,
|
|
39
|
+
isWritable: false
|
|
40
|
+
},
|
|
41
|
+
systemProgram: {
|
|
42
|
+
value: input.systemProgram ?? null,
|
|
43
|
+
isWritable: false
|
|
44
|
+
},
|
|
45
|
+
logWrapper: {
|
|
46
|
+
value: input.logWrapper ?? null,
|
|
47
|
+
isWritable: false
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const args = { ...input };
|
|
51
|
+
if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
52
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
53
|
+
return Object.freeze({
|
|
54
|
+
accounts: [
|
|
55
|
+
getAccountMeta("asset", accounts.asset),
|
|
56
|
+
getAccountMeta("collection", accounts.collection),
|
|
57
|
+
getAccountMeta("payer", accounts.payer),
|
|
58
|
+
getAccountMeta("authority", accounts.authority),
|
|
59
|
+
getAccountMeta("systemProgram", accounts.systemProgram),
|
|
60
|
+
getAccountMeta("logWrapper", accounts.logWrapper)
|
|
61
|
+
],
|
|
62
|
+
data: getUpdatePluginV1InstructionDataEncoder().encode(args),
|
|
63
|
+
programAddress
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function parseUpdatePluginV1Instruction(instruction) {
|
|
67
|
+
if (instruction.accounts.length < 6) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
68
|
+
actualAccountMetas: instruction.accounts.length,
|
|
69
|
+
expectedAccountMetas: 6
|
|
70
|
+
});
|
|
71
|
+
let accountIndex = 0;
|
|
72
|
+
const getNextAccount = () => {
|
|
73
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
74
|
+
accountIndex += 1;
|
|
75
|
+
return accountMeta;
|
|
76
|
+
};
|
|
77
|
+
const getNextOptionalAccount = () => {
|
|
78
|
+
const accountMeta = getNextAccount();
|
|
79
|
+
return accountMeta.address === "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d" ? void 0 : accountMeta;
|
|
80
|
+
};
|
|
81
|
+
return {
|
|
82
|
+
programAddress: instruction.programAddress,
|
|
83
|
+
accounts: {
|
|
84
|
+
asset: getNextAccount(),
|
|
85
|
+
collection: getNextOptionalAccount(),
|
|
86
|
+
payer: getNextAccount(),
|
|
87
|
+
authority: getNextOptionalAccount(),
|
|
88
|
+
systemProgram: getNextAccount(),
|
|
89
|
+
logWrapper: getNextOptionalAccount()
|
|
90
|
+
},
|
|
91
|
+
data: getUpdatePluginV1InstructionDataDecoder().decode(instruction.data)
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
export { UPDATE_PLUGIN_V1_DISCRIMINATOR, getUpdatePluginV1DiscriminatorBytes, getUpdatePluginV1Instruction, getUpdatePluginV1InstructionDataCodec, getUpdatePluginV1InstructionDataDecoder, getUpdatePluginV1InstructionDataEncoder, parseUpdatePluginV1Instruction };
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=updatePluginV1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatePluginV1.js","names":[],"sources":["../../../src/generated/instructions/updatePluginV1.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 {\n UpdatePluginV1Args,\n UpdatePluginV1ArgsArgs,\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 getUpdatePluginV1ArgsDecoder,\n getUpdatePluginV1ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const UPDATE_PLUGIN_V1_DISCRIMINATOR = 6;\n\nexport function getUpdatePluginV1DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(UPDATE_PLUGIN_V1_DISCRIMINATOR);\n}\n\nexport type UpdatePluginV1Instruction<\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 TAccountPayer extends string | AccountMeta<string> = string,\n TAccountAuthority 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 ? WritableAccount<TAccountAsset>\n : TAccountAsset,\n TAccountCollection extends string\n ? WritableAccount<TAccountCollection>\n : TAccountCollection,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountAuthority extends string\n ? ReadonlySignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\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 UpdatePluginV1InstructionData {\n discriminator: number;\n updatePluginV1Args: UpdatePluginV1Args;\n}\n\nexport interface UpdatePluginV1InstructionDataArgs {\n updatePluginV1Args: UpdatePluginV1ArgsArgs;\n}\n\nexport function getUpdatePluginV1InstructionDataEncoder(): Encoder<UpdatePluginV1InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\"updatePluginV1Args\", getUpdatePluginV1ArgsEncoder()],\n ]),\n (value) => ({ ...value, discriminator: UPDATE_PLUGIN_V1_DISCRIMINATOR }),\n );\n}\n\nexport function getUpdatePluginV1InstructionDataDecoder(): Decoder<UpdatePluginV1InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\"updatePluginV1Args\", getUpdatePluginV1ArgsDecoder()],\n ]);\n}\n\nexport function getUpdatePluginV1InstructionDataCodec(): Codec<\n UpdatePluginV1InstructionDataArgs,\n UpdatePluginV1InstructionData\n> {\n return combineCodec(\n getUpdatePluginV1InstructionDataEncoder(),\n getUpdatePluginV1InstructionDataDecoder(),\n );\n}\n\nexport interface UpdatePluginV1Input<\n TAccountAsset extends string = string,\n TAccountCollection extends string = string,\n TAccountPayer extends string = string,\n TAccountAuthority extends string = string,\n TAccountSystemProgram extends string = string,\n TAccountLogWrapper extends string = string,\n> {\n /** The address of the asset */\n asset: Address<TAccountAsset>;\n /** The collection to which the asset belongs */\n collection?: Address<TAccountCollection>;\n /** The account paying for the storage fees */\n payer: TransactionSigner<TAccountPayer>;\n /** The owner or delegate of the asset */\n authority?: TransactionSigner<TAccountAuthority>;\n /** The system program */\n systemProgram?: Address<TAccountSystemProgram>;\n /** The SPL Noop Program */\n logWrapper?: Address<TAccountLogWrapper>;\n updatePluginV1Args: UpdatePluginV1InstructionDataArgs[\"updatePluginV1Args\"];\n}\n\nexport function getUpdatePluginV1Instruction<\n TAccountAsset extends string,\n TAccountCollection extends string,\n TAccountPayer extends string,\n TAccountAuthority extends string,\n TAccountSystemProgram extends string,\n TAccountLogWrapper extends string,\n TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: UpdatePluginV1Input<\n TAccountAsset,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >,\n config?: { programAddress?: TProgramAddress },\n): UpdatePluginV1Instruction<\n TProgramAddress,\n TAccountAsset,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\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 payer: { value: input.payer ?? null, isWritable: true },\n authority: { value: input.authority ?? null, isWritable: false },\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(\"payer\", accounts.payer),\n getAccountMeta(\"authority\", accounts.authority),\n getAccountMeta(\"systemProgram\", accounts.systemProgram),\n getAccountMeta(\"logWrapper\", accounts.logWrapper),\n ],\n data: getUpdatePluginV1InstructionDataEncoder().encode(\n args as UpdatePluginV1InstructionDataArgs,\n ),\n programAddress,\n } as UpdatePluginV1Instruction<\n TProgramAddress,\n TAccountAsset,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >);\n}\n\nexport interface ParsedUpdatePluginV1Instruction<\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 asset */\n asset: TAccountMetas[0];\n /** The collection to which the asset belongs */\n collection?: TAccountMetas[1] | undefined;\n /** The account paying for the storage fees */\n payer: TAccountMetas[2];\n /** The owner or delegate of the asset */\n authority?: TAccountMetas[3] | undefined;\n /** The system program */\n systemProgram: TAccountMetas[4];\n /** The SPL Noop Program */\n logWrapper?: TAccountMetas[5] | undefined;\n };\n data: UpdatePluginV1InstructionData;\n}\n\nexport function parseUpdatePluginV1Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedUpdatePluginV1Instruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 6) {\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n {\n actualAccountMetas: instruction.accounts.length,\n expectedAccountMetas: 6,\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 payer: getNextAccount(),\n authority: getNextOptionalAccount(),\n systemProgram: getNextAccount(),\n logWrapper: getNextOptionalAccount(),\n },\n data: getUpdatePluginV1InstructionDataDecoder().decode(instruction.data),\n };\n}\n"],"mappings":";;;;;AA+CA,MAAa,iCAAiC;AAE9C,SAAgB,sCAA0D;CACxE,OAAO,aAAa,CAAC,CAAC,OAAA,CAAqC;AAC7D;AAkDA,SAAgB,0CAAsF;CACpG,OAAO,iBACL,iBAAiB,CACf,CAAC,iBAAiB,aAAa,CAAC,GAChC,CAAC,sBAAsB,6BAA6B,CAAC,CACvD,CAAC,IACA,WAAW;EAAE,GAAG;EAAO,eAAA;CAA8C,EACxE;AACF;AAEA,SAAgB,0CAAkF;CAChG,OAAO,iBAAiB,CACtB,CAAC,iBAAiB,aAAa,CAAC,GAChC,CAAC,sBAAsB,6BAA6B,CAAC,CACvD,CAAC;AACH;AAEA,SAAgB,wCAGd;CACA,OAAO,aACL,wCAAwC,GACxC,wCAAwC,CAC1C;AACF;AAyBA,SAAgB,6BASd,OAQA,QASA;CAEA,MAAM,iBACJ,QAAQ,kBAAA;CAWV,MAAM,WAAW;EAPf,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,YAAY;GAAE,OAAO,MAAM,cAAc;GAAM,YAAY;EAAK;EAChE,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,WAAW;GAAE,OAAO,MAAM,aAAa;GAAM,YAAY;EAAM;EAC/D,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,SAAS,SAAS,KAAK;GACtC,eAAe,aAAa,SAAS,SAAS;GAC9C,eAAe,iBAAiB,SAAS,aAAa;GACtD,eAAe,cAAc,SAAS,UAAU;EAClD;EACA,MAAM,wCAAwC,CAAC,CAAC,OAC9C,IACF;EACA;CACF,CAQC;AACH;AAwBA,SAAgB,+BAId,aAG0D;CAC1D,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,OAAO,eAAe;GACtB,WAAW,uBAAuB;GAClC,eAAe,eAAe;GAC9B,YAAY,uBAAuB;EACrC;EACA,MAAM,wCAAwC,CAAC,CAAC,OAAO,YAAY,IAAI;CACzE;AACF"}
|