@macalinao/clients-mpl-core 0.0.0 → 0.2.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/.tsbuildinfo +1 -0
- package/dist/generated/accounts/assetV1.d.ts +39 -0
- package/dist/generated/accounts/assetV1.d.ts.map +1 -0
- package/dist/generated/accounts/assetV1.js +57 -0
- package/dist/generated/accounts/assetV1.js.map +1 -0
- package/dist/generated/accounts/collectionV1.d.ts +39 -0
- package/dist/generated/accounts/collectionV1.d.ts.map +1 -0
- package/dist/generated/accounts/collectionV1.js +57 -0
- package/dist/generated/accounts/collectionV1.js.map +1 -0
- package/dist/generated/accounts/groupV1.d.ts +43 -0
- package/dist/generated/accounts/groupV1.d.ts.map +1 -0
- package/dist/generated/accounts/groupV1.js +61 -0
- package/dist/generated/accounts/groupV1.js.map +1 -0
- package/dist/generated/accounts/hashedAssetV1.d.ts +31 -0
- package/dist/generated/accounts/hashedAssetV1.d.ts.map +1 -0
- package/dist/generated/accounts/hashedAssetV1.js +49 -0
- package/dist/generated/accounts/hashedAssetV1.js.map +1 -0
- package/dist/generated/accounts/index.d.ts +14 -0
- package/dist/generated/accounts/index.d.ts.map +1 -0
- package/dist/generated/accounts/index.js +14 -0
- package/dist/generated/accounts/index.js.map +1 -0
- package/dist/generated/accounts/pluginHeaderV1.d.ts +31 -0
- package/dist/generated/accounts/pluginHeaderV1.d.ts.map +1 -0
- package/dist/generated/accounts/pluginHeaderV1.js +49 -0
- package/dist/generated/accounts/pluginHeaderV1.js.map +1 -0
- package/dist/generated/accounts/pluginRegistryV1.d.ts +33 -0
- package/dist/generated/accounts/pluginRegistryV1.d.ts.map +1 -0
- package/dist/generated/accounts/pluginRegistryV1.js +51 -0
- package/dist/generated/accounts/pluginRegistryV1.js.map +1 -0
- package/dist/generated/errors/index.d.ts +9 -0
- package/dist/generated/errors/index.d.ts.map +1 -0
- package/dist/generated/errors/index.js +9 -0
- package/dist/generated/errors/index.js.map +1 -0
- package/dist/generated/errors/mplCoreProgram.d.ts +134 -0
- package/dist/generated/errors/mplCoreProgram.d.ts.map +1 -0
- package/dist/generated/errors/mplCoreProgram.js +195 -0
- package/dist/generated/errors/mplCoreProgram.js.map +1 -0
- package/dist/generated/index.d.ts +13 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +13 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/instructions/addAssetsToGroupV1.d.ts +59 -0
- package/dist/generated/instructions/addAssetsToGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/addAssetsToGroupV1.js +94 -0
- package/dist/generated/instructions/addAssetsToGroupV1.js.map +1 -0
- package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.d.ts +64 -0
- package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.d.ts.map +1 -0
- package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.js +103 -0
- package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.js.map +1 -0
- package/dist/generated/instructions/addCollectionPluginV1.d.ts +64 -0
- package/dist/generated/instructions/addCollectionPluginV1.d.ts.map +1 -0
- package/dist/generated/instructions/addCollectionPluginV1.js +97 -0
- package/dist/generated/instructions/addCollectionPluginV1.js.map +1 -0
- package/dist/generated/instructions/addCollectionsToGroupV1.d.ts +59 -0
- package/dist/generated/instructions/addCollectionsToGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/addCollectionsToGroupV1.js +94 -0
- package/dist/generated/instructions/addCollectionsToGroupV1.js.map +1 -0
- package/dist/generated/instructions/addExternalPluginAdapterV1.d.ts +69 -0
- package/dist/generated/instructions/addExternalPluginAdapterV1.d.ts.map +1 -0
- package/dist/generated/instructions/addExternalPluginAdapterV1.js +106 -0
- package/dist/generated/instructions/addExternalPluginAdapterV1.js.map +1 -0
- package/dist/generated/instructions/addGroupsToGroupV1.d.ts +59 -0
- package/dist/generated/instructions/addGroupsToGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/addGroupsToGroupV1.js +94 -0
- package/dist/generated/instructions/addGroupsToGroupV1.js.map +1 -0
- package/dist/generated/instructions/addPluginV1.d.ts +69 -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 +64 -0
- package/dist/generated/instructions/approveCollectionPluginAuthorityV1.d.ts.map +1 -0
- package/dist/generated/instructions/approveCollectionPluginAuthorityV1.js +103 -0
- package/dist/generated/instructions/approveCollectionPluginAuthorityV1.js.map +1 -0
- package/dist/generated/instructions/approvePluginAuthorityV1.d.ts +69 -0
- package/dist/generated/instructions/approvePluginAuthorityV1.d.ts.map +1 -0
- package/dist/generated/instructions/approvePluginAuthorityV1.js +103 -0
- package/dist/generated/instructions/approvePluginAuthorityV1.js.map +1 -0
- package/dist/generated/instructions/burnCollectionV1.d.ts +59 -0
- package/dist/generated/instructions/burnCollectionV1.d.ts.map +1 -0
- package/dist/generated/instructions/burnCollectionV1.js +86 -0
- package/dist/generated/instructions/burnCollectionV1.js.map +1 -0
- package/dist/generated/instructions/burnV1.d.ts +69 -0
- package/dist/generated/instructions/burnV1.d.ts.map +1 -0
- package/dist/generated/instructions/burnV1.js +92 -0
- package/dist/generated/instructions/burnV1.js.map +1 -0
- package/dist/generated/instructions/closeGroupV1.d.ts +54 -0
- package/dist/generated/instructions/closeGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/closeGroupV1.js +83 -0
- package/dist/generated/instructions/closeGroupV1.js.map +1 -0
- package/dist/generated/instructions/collect.d.ts +44 -0
- package/dist/generated/instructions/collect.d.ts.map +1 -0
- package/dist/generated/instructions/collect.js +62 -0
- package/dist/generated/instructions/collect.js.map +1 -0
- package/dist/generated/instructions/compressV1.d.ts +69 -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 +59 -0
- package/dist/generated/instructions/createCollectionV1.d.ts.map +1 -0
- package/dist/generated/instructions/createCollectionV1.js +97 -0
- package/dist/generated/instructions/createCollectionV1.js.map +1 -0
- package/dist/generated/instructions/createCollectionV2.d.ts +59 -0
- package/dist/generated/instructions/createCollectionV2.d.ts.map +1 -0
- package/dist/generated/instructions/createCollectionV2.js +97 -0
- package/dist/generated/instructions/createCollectionV2.js.map +1 -0
- package/dist/generated/instructions/createGroupV1.d.ts +59 -0
- package/dist/generated/instructions/createGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/createGroupV1.js +94 -0
- package/dist/generated/instructions/createGroupV1.js.map +1 -0
- package/dist/generated/instructions/createV1.d.ts +79 -0
- package/dist/generated/instructions/createV1.d.ts.map +1 -0
- package/dist/generated/instructions/createV1.js +106 -0
- package/dist/generated/instructions/createV1.js.map +1 -0
- package/dist/generated/instructions/createV2.d.ts +79 -0
- package/dist/generated/instructions/createV2.d.ts.map +1 -0
- package/dist/generated/instructions/createV2.js +106 -0
- package/dist/generated/instructions/createV2.js.map +1 -0
- package/dist/generated/instructions/decompressV1.d.ts +69 -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 +74 -0
- package/dist/generated/instructions/executeV1.d.ts.map +1 -0
- package/dist/generated/instructions/executeV1.js +104 -0
- package/dist/generated/instructions/executeV1.js.map +1 -0
- package/dist/generated/instructions/index.d.ts +50 -0
- package/dist/generated/instructions/index.d.ts.map +1 -0
- package/dist/generated/instructions/index.js +50 -0
- package/dist/generated/instructions/index.js.map +1 -0
- package/dist/generated/instructions/removeAssetsFromGroupV1.d.ts +59 -0
- package/dist/generated/instructions/removeAssetsFromGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/removeAssetsFromGroupV1.js +94 -0
- package/dist/generated/instructions/removeAssetsFromGroupV1.js.map +1 -0
- package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.d.ts +64 -0
- package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.d.ts.map +1 -0
- package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.js +103 -0
- package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.js.map +1 -0
- package/dist/generated/instructions/removeCollectionPluginV1.d.ts +64 -0
- package/dist/generated/instructions/removeCollectionPluginV1.d.ts.map +1 -0
- package/dist/generated/instructions/removeCollectionPluginV1.js +100 -0
- package/dist/generated/instructions/removeCollectionPluginV1.js.map +1 -0
- package/dist/generated/instructions/removeCollectionsFromGroupV1.d.ts +59 -0
- package/dist/generated/instructions/removeCollectionsFromGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/removeCollectionsFromGroupV1.js +100 -0
- package/dist/generated/instructions/removeCollectionsFromGroupV1.js.map +1 -0
- package/dist/generated/instructions/removeExternalPluginAdapterV1.d.ts +69 -0
- package/dist/generated/instructions/removeExternalPluginAdapterV1.d.ts.map +1 -0
- package/dist/generated/instructions/removeExternalPluginAdapterV1.js +106 -0
- package/dist/generated/instructions/removeExternalPluginAdapterV1.js.map +1 -0
- package/dist/generated/instructions/removeGroupsFromGroupV1.d.ts +59 -0
- package/dist/generated/instructions/removeGroupsFromGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/removeGroupsFromGroupV1.js +94 -0
- package/dist/generated/instructions/removeGroupsFromGroupV1.js.map +1 -0
- package/dist/generated/instructions/removePluginV1.d.ts +69 -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 +64 -0
- package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.d.ts.map +1 -0
- package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.js +103 -0
- package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.js.map +1 -0
- package/dist/generated/instructions/revokePluginAuthorityV1.d.ts +69 -0
- package/dist/generated/instructions/revokePluginAuthorityV1.d.ts.map +1 -0
- package/dist/generated/instructions/revokePluginAuthorityV1.js +100 -0
- package/dist/generated/instructions/revokePluginAuthorityV1.js.map +1 -0
- package/dist/generated/instructions/transferV1.d.ts +74 -0
- package/dist/generated/instructions/transferV1.d.ts.map +1 -0
- package/dist/generated/instructions/transferV1.js +95 -0
- package/dist/generated/instructions/transferV1.js.map +1 -0
- package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.d.ts +64 -0
- package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.d.ts.map +1 -0
- package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.js +103 -0
- package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.js.map +1 -0
- package/dist/generated/instructions/updateCollectionInfoV1.d.ts +49 -0
- package/dist/generated/instructions/updateCollectionInfoV1.d.ts.map +1 -0
- package/dist/generated/instructions/updateCollectionInfoV1.js +80 -0
- package/dist/generated/instructions/updateCollectionInfoV1.js.map +1 -0
- package/dist/generated/instructions/updateCollectionPluginV1.d.ts +64 -0
- package/dist/generated/instructions/updateCollectionPluginV1.d.ts.map +1 -0
- package/dist/generated/instructions/updateCollectionPluginV1.js +100 -0
- package/dist/generated/instructions/updateCollectionPluginV1.js.map +1 -0
- package/dist/generated/instructions/updateCollectionV1.d.ts +69 -0
- package/dist/generated/instructions/updateCollectionV1.d.ts.map +1 -0
- package/dist/generated/instructions/updateCollectionV1.js +103 -0
- package/dist/generated/instructions/updateCollectionV1.js.map +1 -0
- package/dist/generated/instructions/updateExternalPluginAdapterV1.d.ts +69 -0
- package/dist/generated/instructions/updateExternalPluginAdapterV1.d.ts.map +1 -0
- package/dist/generated/instructions/updateExternalPluginAdapterV1.js +106 -0
- package/dist/generated/instructions/updateExternalPluginAdapterV1.js.map +1 -0
- package/dist/generated/instructions/updateGroupV1.d.ts +64 -0
- package/dist/generated/instructions/updateGroupV1.d.ts.map +1 -0
- package/dist/generated/instructions/updateGroupV1.js +97 -0
- package/dist/generated/instructions/updateGroupV1.js.map +1 -0
- package/dist/generated/instructions/updatePluginV1.d.ts +69 -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 +69 -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 +74 -0
- package/dist/generated/instructions/updateV2.d.ts.map +1 -0
- package/dist/generated/instructions/updateV2.js +100 -0
- package/dist/generated/instructions/updateV2.js.map +1 -0
- package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.d.ts +69 -0
- package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.d.ts.map +1 -0
- package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.js +106 -0
- package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.js.map +1 -0
- package/dist/generated/instructions/writeExternalPluginAdapterDataV1.d.ts +74 -0
- package/dist/generated/instructions/writeExternalPluginAdapterDataV1.d.ts.map +1 -0
- package/dist/generated/instructions/writeExternalPluginAdapterDataV1.js +109 -0
- package/dist/generated/instructions/writeExternalPluginAdapterDataV1.js.map +1 -0
- package/dist/generated/programs/index.d.ts +9 -0
- package/dist/generated/programs/index.d.ts.map +1 -0
- package/dist/generated/programs/index.js +9 -0
- package/dist/generated/programs/index.js.map +1 -0
- package/dist/generated/programs/mplCoreProgram.d.ts +218 -0
- package/dist/generated/programs/mplCoreProgram.d.ts.map +1 -0
- package/dist/generated/programs/mplCoreProgram.js +681 -0
- package/dist/generated/programs/mplCoreProgram.js.map +1 -0
- package/dist/generated/types/addAssetsToGroupV1Args.d.ts +14 -0
- package/dist/generated/types/addAssetsToGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/addAssetsToGroupV1Args.js +18 -0
- package/dist/generated/types/addAssetsToGroupV1Args.js.map +1 -0
- package/dist/generated/types/addBlocker.d.ts +14 -0
- package/dist/generated/types/addBlocker.d.ts.map +1 -0
- package/dist/generated/types/addBlocker.js +18 -0
- package/dist/generated/types/addBlocker.js.map +1 -0
- package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.d.ts +19 -0
- package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.d.ts.map +1 -0
- package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.js +23 -0
- package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.js.map +1 -0
- package/dist/generated/types/addCollectionPluginV1Args.d.ts +21 -0
- package/dist/generated/types/addCollectionPluginV1Args.d.ts.map +1 -0
- package/dist/generated/types/addCollectionPluginV1Args.js +25 -0
- package/dist/generated/types/addCollectionPluginV1Args.js.map +1 -0
- package/dist/generated/types/addCollectionsToGroupV1Args.d.ts +14 -0
- package/dist/generated/types/addCollectionsToGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/addCollectionsToGroupV1Args.js +18 -0
- package/dist/generated/types/addCollectionsToGroupV1Args.js.map +1 -0
- package/dist/generated/types/addExternalPluginAdapterV1Args.d.ts +19 -0
- package/dist/generated/types/addExternalPluginAdapterV1Args.d.ts.map +1 -0
- package/dist/generated/types/addExternalPluginAdapterV1Args.js +23 -0
- package/dist/generated/types/addExternalPluginAdapterV1Args.js.map +1 -0
- package/dist/generated/types/addGroupsToGroupV1Args.d.ts +16 -0
- package/dist/generated/types/addGroupsToGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/addGroupsToGroupV1Args.js +18 -0
- package/dist/generated/types/addGroupsToGroupV1Args.js.map +1 -0
- package/dist/generated/types/addPluginV1Args.d.ts +21 -0
- package/dist/generated/types/addPluginV1Args.d.ts.map +1 -0
- package/dist/generated/types/addPluginV1Args.js +25 -0
- package/dist/generated/types/addPluginV1Args.js.map +1 -0
- package/dist/generated/types/agentIdentity.d.ts +16 -0
- package/dist/generated/types/agentIdentity.d.ts.map +1 -0
- package/dist/generated/types/agentIdentity.js +22 -0
- package/dist/generated/types/agentIdentity.js.map +1 -0
- package/dist/generated/types/agentIdentityInitInfo.d.ts +23 -0
- package/dist/generated/types/agentIdentityInitInfo.d.ts.map +1 -0
- package/dist/generated/types/agentIdentityInitInfo.js +39 -0
- package/dist/generated/types/agentIdentityInitInfo.js.map +1 -0
- package/dist/generated/types/agentIdentityUpdateInfo.d.ts +21 -0
- package/dist/generated/types/agentIdentityUpdateInfo.d.ts.map +1 -0
- package/dist/generated/types/agentIdentityUpdateInfo.js +43 -0
- package/dist/generated/types/agentIdentityUpdateInfo.js.map +1 -0
- package/dist/generated/types/appData.d.ts +21 -0
- package/dist/generated/types/appData.d.ts.map +1 -0
- package/dist/generated/types/appData.js +25 -0
- package/dist/generated/types/appData.js.map +1 -0
- package/dist/generated/types/appDataInitInfo.d.ts +23 -0
- package/dist/generated/types/appDataInitInfo.d.ts.map +1 -0
- package/dist/generated/types/appDataInitInfo.js +27 -0
- package/dist/generated/types/appDataInitInfo.js.map +1 -0
- package/dist/generated/types/appDataUpdateInfo.d.ts +19 -0
- package/dist/generated/types/appDataUpdateInfo.d.ts.map +1 -0
- package/dist/generated/types/appDataUpdateInfo.js +23 -0
- package/dist/generated/types/appDataUpdateInfo.js.map +1 -0
- package/dist/generated/types/approveCollectionPluginAuthorityV1Args.d.ts +21 -0
- package/dist/generated/types/approveCollectionPluginAuthorityV1Args.d.ts.map +1 -0
- package/dist/generated/types/approveCollectionPluginAuthorityV1Args.js +25 -0
- package/dist/generated/types/approveCollectionPluginAuthorityV1Args.js.map +1 -0
- package/dist/generated/types/approvePluginAuthorityV1Args.d.ts +21 -0
- package/dist/generated/types/approvePluginAuthorityV1Args.d.ts.map +1 -0
- package/dist/generated/types/approvePluginAuthorityV1Args.js +25 -0
- package/dist/generated/types/approvePluginAuthorityV1Args.js.map +1 -0
- package/dist/generated/types/attribute.d.ts +17 -0
- package/dist/generated/types/attribute.d.ts.map +1 -0
- package/dist/generated/types/attribute.js +24 -0
- package/dist/generated/types/attribute.js.map +1 -0
- package/dist/generated/types/attributes.d.ts +19 -0
- package/dist/generated/types/attributes.d.ts.map +1 -0
- package/dist/generated/types/attributes.js +23 -0
- package/dist/generated/types/attributes.js.map +1 -0
- package/dist/generated/types/authority.d.ts +30 -0
- package/dist/generated/types/authority.d.ts.map +1 -0
- package/dist/generated/types/authority.js +36 -0
- package/dist/generated/types/authority.js.map +1 -0
- package/dist/generated/types/autograph.d.ts +19 -0
- package/dist/generated/types/autograph.d.ts.map +1 -0
- package/dist/generated/types/autograph.js +23 -0
- package/dist/generated/types/autograph.js.map +1 -0
- package/dist/generated/types/autographSignature.d.ts +17 -0
- package/dist/generated/types/autographSignature.d.ts.map +1 -0
- package/dist/generated/types/autographSignature.js +24 -0
- package/dist/generated/types/autographSignature.js.map +1 -0
- package/dist/generated/types/bubblegumV2.d.ts +14 -0
- package/dist/generated/types/bubblegumV2.d.ts.map +1 -0
- package/dist/generated/types/bubblegumV2.js +18 -0
- package/dist/generated/types/bubblegumV2.js.map +1 -0
- package/dist/generated/types/burnCollectionV1Args.d.ts +19 -0
- package/dist/generated/types/burnCollectionV1Args.d.ts.map +1 -0
- package/dist/generated/types/burnCollectionV1Args.js +23 -0
- package/dist/generated/types/burnCollectionV1Args.js.map +1 -0
- package/dist/generated/types/burnDelegate.d.ts +14 -0
- package/dist/generated/types/burnDelegate.d.ts.map +1 -0
- package/dist/generated/types/burnDelegate.js +18 -0
- package/dist/generated/types/burnDelegate.js.map +1 -0
- package/dist/generated/types/burnV1Args.d.ts +19 -0
- package/dist/generated/types/burnV1Args.d.ts.map +1 -0
- package/dist/generated/types/burnV1Args.js +23 -0
- package/dist/generated/types/burnV1Args.js.map +1 -0
- package/dist/generated/types/closeGroupV1Args.d.ts +14 -0
- package/dist/generated/types/closeGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/closeGroupV1Args.js +18 -0
- package/dist/generated/types/closeGroupV1Args.js.map +1 -0
- package/dist/generated/types/compressV1Args.d.ts +14 -0
- package/dist/generated/types/compressV1Args.d.ts.map +1 -0
- package/dist/generated/types/compressV1Args.js +18 -0
- package/dist/generated/types/compressV1Args.js.map +1 -0
- package/dist/generated/types/compressionProof.d.ts +29 -0
- package/dist/generated/types/compressionProof.d.ts.map +1 -0
- package/dist/generated/types/compressionProof.js +33 -0
- package/dist/generated/types/compressionProof.js.map +1 -0
- package/dist/generated/types/createCollectionV1Args.d.ts +23 -0
- package/dist/generated/types/createCollectionV1Args.d.ts.map +1 -0
- package/dist/generated/types/createCollectionV1Args.js +33 -0
- package/dist/generated/types/createCollectionV1Args.js.map +1 -0
- package/dist/generated/types/createCollectionV2Args.d.ts +25 -0
- package/dist/generated/types/createCollectionV2Args.d.ts.map +1 -0
- package/dist/generated/types/createCollectionV2Args.js +41 -0
- package/dist/generated/types/createCollectionV2Args.js.map +1 -0
- package/dist/generated/types/createGroupV1Args.d.ts +23 -0
- package/dist/generated/types/createGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/createGroupV1Args.js +27 -0
- package/dist/generated/types/createGroupV1Args.js.map +1 -0
- package/dist/generated/types/createV1Args.d.ts +25 -0
- package/dist/generated/types/createV1Args.d.ts.map +1 -0
- package/dist/generated/types/createV1Args.js +35 -0
- package/dist/generated/types/createV1Args.js.map +1 -0
- package/dist/generated/types/createV2Args.d.ts +27 -0
- package/dist/generated/types/createV2Args.d.ts.map +1 -0
- package/dist/generated/types/createV2Args.js +43 -0
- package/dist/generated/types/createV2Args.js.map +1 -0
- package/dist/generated/types/creator.d.ts +17 -0
- package/dist/generated/types/creator.d.ts.map +1 -0
- package/dist/generated/types/creator.js +24 -0
- package/dist/generated/types/creator.js.map +1 -0
- package/dist/generated/types/dataSection.d.ts +21 -0
- package/dist/generated/types/dataSection.d.ts.map +1 -0
- package/dist/generated/types/dataSection.js +25 -0
- package/dist/generated/types/dataSection.js.map +1 -0
- package/dist/generated/types/dataSectionInitInfo.d.ts +21 -0
- package/dist/generated/types/dataSectionInitInfo.d.ts.map +1 -0
- package/dist/generated/types/dataSectionInitInfo.js +25 -0
- package/dist/generated/types/dataSectionInitInfo.js.map +1 -0
- package/dist/generated/types/dataSectionUpdateInfo.d.ts +14 -0
- package/dist/generated/types/dataSectionUpdateInfo.d.ts.map +1 -0
- package/dist/generated/types/dataSectionUpdateInfo.js +18 -0
- package/dist/generated/types/dataSectionUpdateInfo.js.map +1 -0
- package/dist/generated/types/dataState.d.ts +17 -0
- package/dist/generated/types/dataState.d.ts.map +1 -0
- package/dist/generated/types/dataState.js +23 -0
- package/dist/generated/types/dataState.js.map +1 -0
- package/dist/generated/types/decompressV1Args.d.ts +19 -0
- package/dist/generated/types/decompressV1Args.d.ts.map +1 -0
- package/dist/generated/types/decompressV1Args.js +19 -0
- package/dist/generated/types/decompressV1Args.js.map +1 -0
- package/dist/generated/types/edition.d.ts +16 -0
- package/dist/generated/types/edition.d.ts.map +1 -0
- package/dist/generated/types/edition.js +18 -0
- package/dist/generated/types/edition.js.map +1 -0
- package/dist/generated/types/executeV1Args.d.ts +16 -0
- package/dist/generated/types/executeV1Args.d.ts.map +1 -0
- package/dist/generated/types/executeV1Args.js +28 -0
- package/dist/generated/types/executeV1Args.js.map +1 -0
- package/dist/generated/types/externalCheckResult.d.ts +16 -0
- package/dist/generated/types/externalCheckResult.d.ts.map +1 -0
- package/dist/generated/types/externalCheckResult.js +18 -0
- package/dist/generated/types/externalCheckResult.js.map +1 -0
- package/dist/generated/types/externalPluginAdapter.d.ts +67 -0
- package/dist/generated/types/externalPluginAdapter.d.ts.map +1 -0
- package/dist/generated/types/externalPluginAdapter.js +105 -0
- package/dist/generated/types/externalPluginAdapter.js.map +1 -0
- package/dist/generated/types/externalPluginAdapterInitInfo.d.ts +67 -0
- package/dist/generated/types/externalPluginAdapterInitInfo.d.ts.map +1 -0
- package/dist/generated/types/externalPluginAdapterInitInfo.js +113 -0
- package/dist/generated/types/externalPluginAdapterInitInfo.js.map +1 -0
- package/dist/generated/types/externalPluginAdapterKey.d.ts +65 -0
- package/dist/generated/types/externalPluginAdapterKey.d.ts.map +1 -0
- package/dist/generated/types/externalPluginAdapterKey.js +83 -0
- package/dist/generated/types/externalPluginAdapterKey.js.map +1 -0
- package/dist/generated/types/externalPluginAdapterSchema.d.ts +18 -0
- package/dist/generated/types/externalPluginAdapterSchema.d.ts.map +1 -0
- package/dist/generated/types/externalPluginAdapterSchema.js +24 -0
- package/dist/generated/types/externalPluginAdapterSchema.js.map +1 -0
- package/dist/generated/types/externalPluginAdapterType.d.ts +22 -0
- package/dist/generated/types/externalPluginAdapterType.d.ts.map +1 -0
- package/dist/generated/types/externalPluginAdapterType.js +28 -0
- package/dist/generated/types/externalPluginAdapterType.js.map +1 -0
- package/dist/generated/types/externalPluginAdapterUpdateInfo.d.ts +60 -0
- package/dist/generated/types/externalPluginAdapterUpdateInfo.d.ts.map +1 -0
- package/dist/generated/types/externalPluginAdapterUpdateInfo.js +107 -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 +45 -0
- package/dist/generated/types/externalRegistryRecord.js.map +1 -0
- package/dist/generated/types/externalValidationResult.d.ts +18 -0
- package/dist/generated/types/externalValidationResult.d.ts.map +1 -0
- package/dist/generated/types/externalValidationResult.js +24 -0
- package/dist/generated/types/externalValidationResult.js.map +1 -0
- package/dist/generated/types/extraAccount.d.ts +87 -0
- package/dist/generated/types/extraAccount.d.ts.map +1 -0
- package/dist/generated/types/extraAccount.js +133 -0
- package/dist/generated/types/extraAccount.js.map +1 -0
- package/dist/generated/types/freezeDelegate.d.ts +16 -0
- package/dist/generated/types/freezeDelegate.d.ts.map +1 -0
- package/dist/generated/types/freezeDelegate.js +18 -0
- package/dist/generated/types/freezeDelegate.js.map +1 -0
- package/dist/generated/types/freezeExecute.d.ts +16 -0
- package/dist/generated/types/freezeExecute.d.ts.map +1 -0
- package/dist/generated/types/freezeExecute.js +18 -0
- package/dist/generated/types/freezeExecute.js.map +1 -0
- package/dist/generated/types/groups.d.ts +16 -0
- package/dist/generated/types/groups.d.ts.map +1 -0
- package/dist/generated/types/groups.js +18 -0
- package/dist/generated/types/groups.js.map +1 -0
- package/dist/generated/types/hashablePluginSchema.d.ts +23 -0
- package/dist/generated/types/hashablePluginSchema.d.ts.map +1 -0
- package/dist/generated/types/hashablePluginSchema.js +27 -0
- package/dist/generated/types/hashablePluginSchema.js.map +1 -0
- package/dist/generated/types/hashedAssetSchema.d.ts +17 -0
- package/dist/generated/types/hashedAssetSchema.d.ts.map +1 -0
- package/dist/generated/types/hashedAssetSchema.js +30 -0
- package/dist/generated/types/hashedAssetSchema.js.map +1 -0
- package/dist/generated/types/hookableLifecycleEvent.d.ts +20 -0
- package/dist/generated/types/hookableLifecycleEvent.d.ts.map +1 -0
- package/dist/generated/types/hookableLifecycleEvent.js +26 -0
- package/dist/generated/types/hookableLifecycleEvent.js.map +1 -0
- package/dist/generated/types/immutableMetadata.d.ts +14 -0
- package/dist/generated/types/immutableMetadata.d.ts.map +1 -0
- package/dist/generated/types/immutableMetadata.js +18 -0
- package/dist/generated/types/immutableMetadata.js.map +1 -0
- package/dist/generated/types/index.d.ts +125 -0
- package/dist/generated/types/index.d.ts.map +1 -0
- package/dist/generated/types/index.js +125 -0
- package/dist/generated/types/index.js.map +1 -0
- package/dist/generated/types/key.d.ts +22 -0
- package/dist/generated/types/key.d.ts.map +1 -0
- package/dist/generated/types/key.js +28 -0
- package/dist/generated/types/key.js.map +1 -0
- package/dist/generated/types/lifecycleHook.d.ts +25 -0
- package/dist/generated/types/lifecycleHook.d.ts.map +1 -0
- package/dist/generated/types/lifecycleHook.js +35 -0
- package/dist/generated/types/lifecycleHook.js.map +1 -0
- package/dist/generated/types/lifecycleHookInitInfo.d.ts +29 -0
- package/dist/generated/types/lifecycleHookInitInfo.d.ts.map +1 -0
- package/dist/generated/types/lifecycleHookInitInfo.js +51 -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 +45 -0
- package/dist/generated/types/lifecycleHookUpdateInfo.js.map +1 -0
- package/dist/generated/types/linkedAppData.d.ts +21 -0
- package/dist/generated/types/linkedAppData.d.ts.map +1 -0
- package/dist/generated/types/linkedAppData.js +25 -0
- package/dist/generated/types/linkedAppData.js.map +1 -0
- package/dist/generated/types/linkedAppDataInitInfo.d.ts +23 -0
- package/dist/generated/types/linkedAppDataInitInfo.d.ts.map +1 -0
- package/dist/generated/types/linkedAppDataInitInfo.js +27 -0
- package/dist/generated/types/linkedAppDataInitInfo.js.map +1 -0
- package/dist/generated/types/linkedAppDataUpdateInfo.d.ts +19 -0
- package/dist/generated/types/linkedAppDataUpdateInfo.d.ts.map +1 -0
- package/dist/generated/types/linkedAppDataUpdateInfo.js +23 -0
- package/dist/generated/types/linkedAppDataUpdateInfo.js.map +1 -0
- package/dist/generated/types/linkedDataKey.d.ts +32 -0
- package/dist/generated/types/linkedDataKey.d.ts.map +1 -0
- package/dist/generated/types/linkedDataKey.js +45 -0
- package/dist/generated/types/linkedDataKey.js.map +1 -0
- package/dist/generated/types/linkedLifecycleHook.d.ts +25 -0
- package/dist/generated/types/linkedLifecycleHook.d.ts.map +1 -0
- package/dist/generated/types/linkedLifecycleHook.js +35 -0
- package/dist/generated/types/linkedLifecycleHook.js.map +1 -0
- package/dist/generated/types/linkedLifecycleHookInitInfo.d.ts +29 -0
- package/dist/generated/types/linkedLifecycleHookInitInfo.d.ts.map +1 -0
- package/dist/generated/types/linkedLifecycleHookInitInfo.js +51 -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 +45 -0
- package/dist/generated/types/linkedLifecycleHookUpdateInfo.js.map +1 -0
- package/dist/generated/types/masterEdition.d.ts +22 -0
- package/dist/generated/types/masterEdition.d.ts.map +1 -0
- package/dist/generated/types/masterEdition.js +38 -0
- package/dist/generated/types/masterEdition.js.map +1 -0
- package/dist/generated/types/oracle.d.ts +23 -0
- package/dist/generated/types/oracle.d.ts.map +1 -0
- package/dist/generated/types/oracle.js +27 -0
- package/dist/generated/types/oracle.js.map +1 -0
- package/dist/generated/types/oracleInitInfo.d.ts +27 -0
- package/dist/generated/types/oracleInitInfo.d.ts.map +1 -0
- package/dist/generated/types/oracleInitInfo.js +43 -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 +39 -0
- package/dist/generated/types/oracleUpdateInfo.js.map +1 -0
- package/dist/generated/types/oracleValidation.d.ts +36 -0
- package/dist/generated/types/oracleValidation.d.ts.map +1 -0
- package/dist/generated/types/oracleValidation.js +49 -0
- package/dist/generated/types/oracleValidation.js.map +1 -0
- package/dist/generated/types/permanentBurnDelegate.d.ts +14 -0
- package/dist/generated/types/permanentBurnDelegate.d.ts.map +1 -0
- package/dist/generated/types/permanentBurnDelegate.js +18 -0
- package/dist/generated/types/permanentBurnDelegate.js.map +1 -0
- package/dist/generated/types/permanentFreezeDelegate.d.ts +16 -0
- package/dist/generated/types/permanentFreezeDelegate.d.ts.map +1 -0
- package/dist/generated/types/permanentFreezeDelegate.js +18 -0
- package/dist/generated/types/permanentFreezeDelegate.js.map +1 -0
- package/dist/generated/types/permanentFreezeExecute.d.ts +16 -0
- package/dist/generated/types/permanentFreezeExecute.d.ts.map +1 -0
- package/dist/generated/types/permanentFreezeExecute.js +18 -0
- package/dist/generated/types/permanentFreezeExecute.js.map +1 -0
- package/dist/generated/types/permanentTransferDelegate.d.ts +14 -0
- package/dist/generated/types/permanentTransferDelegate.d.ts.map +1 -0
- package/dist/generated/types/permanentTransferDelegate.js +18 -0
- package/dist/generated/types/permanentTransferDelegate.js.map +1 -0
- package/dist/generated/types/plugin.d.ts +151 -0
- package/dist/generated/types/plugin.d.ts.map +1 -0
- package/dist/generated/types/plugin.js +233 -0
- package/dist/generated/types/plugin.js.map +1 -0
- package/dist/generated/types/pluginAuthorityPair.d.ts +21 -0
- package/dist/generated/types/pluginAuthorityPair.d.ts.map +1 -0
- package/dist/generated/types/pluginAuthorityPair.js +25 -0
- package/dist/generated/types/pluginAuthorityPair.js.map +1 -0
- package/dist/generated/types/pluginType.d.ts +34 -0
- package/dist/generated/types/pluginType.d.ts.map +1 -0
- package/dist/generated/types/pluginType.js +40 -0
- package/dist/generated/types/pluginType.js.map +1 -0
- package/dist/generated/types/registryRecord.d.ts +23 -0
- package/dist/generated/types/registryRecord.d.ts.map +1 -0
- package/dist/generated/types/registryRecord.js +27 -0
- package/dist/generated/types/registryRecord.js.map +1 -0
- package/dist/generated/types/relationshipEntry.d.ts +21 -0
- package/dist/generated/types/relationshipEntry.d.ts.map +1 -0
- package/dist/generated/types/relationshipEntry.js +25 -0
- package/dist/generated/types/relationshipEntry.js.map +1 -0
- package/dist/generated/types/relationshipKind.d.ts +19 -0
- package/dist/generated/types/relationshipKind.d.ts.map +1 -0
- package/dist/generated/types/relationshipKind.js +25 -0
- package/dist/generated/types/relationshipKind.js.map +1 -0
- package/dist/generated/types/removeAssetsFromGroupV1Args.d.ts +16 -0
- package/dist/generated/types/removeAssetsFromGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/removeAssetsFromGroupV1Args.js +18 -0
- package/dist/generated/types/removeAssetsFromGroupV1Args.js.map +1 -0
- package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.d.ts +19 -0
- package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.d.ts.map +1 -0
- package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.js +19 -0
- package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.js.map +1 -0
- package/dist/generated/types/removeCollectionPluginV1Args.d.ts +19 -0
- package/dist/generated/types/removeCollectionPluginV1Args.d.ts.map +1 -0
- package/dist/generated/types/removeCollectionPluginV1Args.js +19 -0
- package/dist/generated/types/removeCollectionPluginV1Args.js.map +1 -0
- package/dist/generated/types/removeCollectionsFromGroupV1Args.d.ts +16 -0
- package/dist/generated/types/removeCollectionsFromGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/removeCollectionsFromGroupV1Args.js +22 -0
- package/dist/generated/types/removeCollectionsFromGroupV1Args.js.map +1 -0
- package/dist/generated/types/removeExternalPluginAdapterV1Args.d.ts +19 -0
- package/dist/generated/types/removeExternalPluginAdapterV1Args.d.ts.map +1 -0
- package/dist/generated/types/removeExternalPluginAdapterV1Args.js +19 -0
- package/dist/generated/types/removeExternalPluginAdapterV1Args.js.map +1 -0
- package/dist/generated/types/removeGroupsFromGroupV1Args.d.ts +16 -0
- package/dist/generated/types/removeGroupsFromGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/removeGroupsFromGroupV1Args.js +18 -0
- package/dist/generated/types/removeGroupsFromGroupV1Args.js.map +1 -0
- package/dist/generated/types/removePluginV1Args.d.ts +19 -0
- package/dist/generated/types/removePluginV1Args.d.ts.map +1 -0
- package/dist/generated/types/removePluginV1Args.js +19 -0
- package/dist/generated/types/removePluginV1Args.js.map +1 -0
- package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.d.ts +19 -0
- package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.d.ts.map +1 -0
- package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.js +19 -0
- package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.js.map +1 -0
- package/dist/generated/types/revokePluginAuthorityV1Args.d.ts +19 -0
- package/dist/generated/types/revokePluginAuthorityV1Args.d.ts.map +1 -0
- package/dist/generated/types/revokePluginAuthorityV1Args.js +19 -0
- package/dist/generated/types/revokePluginAuthorityV1Args.js.map +1 -0
- package/dist/generated/types/royalties.d.ts +23 -0
- package/dist/generated/types/royalties.d.ts.map +1 -0
- package/dist/generated/types/royalties.js +27 -0
- package/dist/generated/types/royalties.js.map +1 -0
- package/dist/generated/types/ruleSet.d.ts +28 -0
- package/dist/generated/types/ruleSet.d.ts.map +1 -0
- package/dist/generated/types/ruleSet.js +54 -0
- package/dist/generated/types/ruleSet.js.map +1 -0
- package/dist/generated/types/seed.d.ts +37 -0
- package/dist/generated/types/seed.d.ts.map +1 -0
- package/dist/generated/types/seed.js +66 -0
- package/dist/generated/types/seed.js.map +1 -0
- package/dist/generated/types/transferDelegate.d.ts +14 -0
- package/dist/generated/types/transferDelegate.d.ts.map +1 -0
- package/dist/generated/types/transferDelegate.js +18 -0
- package/dist/generated/types/transferDelegate.js.map +1 -0
- package/dist/generated/types/transferV1Args.d.ts +19 -0
- package/dist/generated/types/transferV1Args.d.ts.map +1 -0
- package/dist/generated/types/transferV1Args.js +23 -0
- package/dist/generated/types/transferV1Args.js.map +1 -0
- package/dist/generated/types/updateAuthority.d.ts +28 -0
- package/dist/generated/types/updateAuthority.d.ts.map +1 -0
- package/dist/generated/types/updateAuthority.js +46 -0
- package/dist/generated/types/updateAuthority.js.map +1 -0
- package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.d.ts +21 -0
- package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.js +25 -0
- package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.js.map +1 -0
- package/dist/generated/types/updateCollectionInfoV1Args.d.ts +21 -0
- package/dist/generated/types/updateCollectionInfoV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateCollectionInfoV1Args.js +25 -0
- package/dist/generated/types/updateCollectionInfoV1Args.js.map +1 -0
- package/dist/generated/types/updateCollectionPluginV1Args.d.ts +19 -0
- package/dist/generated/types/updateCollectionPluginV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateCollectionPluginV1Args.js +19 -0
- package/dist/generated/types/updateCollectionPluginV1Args.js.map +1 -0
- package/dist/generated/types/updateCollectionV1Args.d.ts +20 -0
- package/dist/generated/types/updateCollectionV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateCollectionV1Args.js +36 -0
- package/dist/generated/types/updateCollectionV1Args.js.map +1 -0
- package/dist/generated/types/updateDelegate.d.ts +16 -0
- package/dist/generated/types/updateDelegate.d.ts.map +1 -0
- package/dist/generated/types/updateDelegate.js +22 -0
- package/dist/generated/types/updateDelegate.js.map +1 -0
- package/dist/generated/types/updateExternalPluginAdapterV1Args.d.ts +21 -0
- package/dist/generated/types/updateExternalPluginAdapterV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateExternalPluginAdapterV1Args.js +25 -0
- package/dist/generated/types/updateExternalPluginAdapterV1Args.js.map +1 -0
- package/dist/generated/types/updateGroupV1Args.d.ts +20 -0
- package/dist/generated/types/updateGroupV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateGroupV1Args.js +36 -0
- package/dist/generated/types/updateGroupV1Args.js.map +1 -0
- package/dist/generated/types/updatePluginV1Args.d.ts +19 -0
- package/dist/generated/types/updatePluginV1Args.d.ts.map +1 -0
- package/dist/generated/types/updatePluginV1Args.js +19 -0
- package/dist/generated/types/updatePluginV1Args.js.map +1 -0
- package/dist/generated/types/updateType.d.ts +18 -0
- package/dist/generated/types/updateType.d.ts.map +1 -0
- package/dist/generated/types/updateType.js +24 -0
- package/dist/generated/types/updateType.js.map +1 -0
- package/dist/generated/types/updateV1Args.d.ts +23 -0
- package/dist/generated/types/updateV1Args.d.ts.map +1 -0
- package/dist/generated/types/updateV1Args.js +39 -0
- package/dist/generated/types/updateV1Args.js.map +1 -0
- package/dist/generated/types/updateV2Args.d.ts +23 -0
- package/dist/generated/types/updateV2Args.d.ts.map +1 -0
- package/dist/generated/types/updateV2Args.js +39 -0
- package/dist/generated/types/updateV2Args.js.map +1 -0
- package/dist/generated/types/validationResult.d.ts +19 -0
- package/dist/generated/types/validationResult.d.ts.map +1 -0
- package/dist/generated/types/validationResult.js +25 -0
- package/dist/generated/types/validationResult.js.map +1 -0
- package/dist/generated/types/validationResultsOffset.d.ts +34 -0
- package/dist/generated/types/validationResultsOffset.d.ts.map +1 -0
- package/dist/generated/types/validationResultsOffset.js +40 -0
- package/dist/generated/types/validationResultsOffset.js.map +1 -0
- package/dist/generated/types/verifiedCreators.d.ts +19 -0
- package/dist/generated/types/verifiedCreators.d.ts.map +1 -0
- package/dist/generated/types/verifiedCreators.js +23 -0
- package/dist/generated/types/verifiedCreators.js.map +1 -0
- package/dist/generated/types/verifiedCreatorsSignature.d.ts +17 -0
- package/dist/generated/types/verifiedCreatorsSignature.d.ts.map +1 -0
- package/dist/generated/types/verifiedCreatorsSignature.js +24 -0
- package/dist/generated/types/verifiedCreatorsSignature.js.map +1 -0
- package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.d.ts +21 -0
- package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.d.ts.map +1 -0
- package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.js +31 -0
- package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.js.map +1 -0
- package/dist/generated/types/writeExternalPluginAdapterDataV1Args.d.ts +21 -0
- package/dist/generated/types/writeExternalPluginAdapterDataV1Args.d.ts.map +1 -0
- package/dist/generated/types/writeExternalPluginAdapterDataV1Args.js +31 -0
- package/dist/generated/types/writeExternalPluginAdapterDataV1Args.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/package.json +50 -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 +322 -0
- package/src/generated/index.ts +13 -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 +316 -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/programs/index.ts +9 -0
- package/src/generated/programs/mplCoreProgram.ts +1426 -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,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { combineCodec, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, transformEncoder, } from "@solana/kit";
|
|
9
|
+
import { getAccountMetaFactory } from "@solana/program-client-core";
|
|
10
|
+
import { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
|
+
import { getRemoveGroupsFromGroupV1ArgsDecoder, getRemoveGroupsFromGroupV1ArgsEncoder, } from "../types/index.js";
|
|
12
|
+
export const REMOVE_GROUPS_FROM_GROUP_V1_DISCRIMINATOR = 38;
|
|
13
|
+
export function getRemoveGroupsFromGroupV1DiscriminatorBytes() {
|
|
14
|
+
return getU8Encoder().encode(REMOVE_GROUPS_FROM_GROUP_V1_DISCRIMINATOR);
|
|
15
|
+
}
|
|
16
|
+
export function getRemoveGroupsFromGroupV1InstructionDataEncoder() {
|
|
17
|
+
return transformEncoder(getStructEncoder([
|
|
18
|
+
["discriminator", getU8Encoder()],
|
|
19
|
+
["removeGroupsFromGroupV1Args", getRemoveGroupsFromGroupV1ArgsEncoder()],
|
|
20
|
+
]), (value) => ({
|
|
21
|
+
...value,
|
|
22
|
+
discriminator: REMOVE_GROUPS_FROM_GROUP_V1_DISCRIMINATOR,
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
export function getRemoveGroupsFromGroupV1InstructionDataDecoder() {
|
|
26
|
+
return getStructDecoder([
|
|
27
|
+
["discriminator", getU8Decoder()],
|
|
28
|
+
["removeGroupsFromGroupV1Args", getRemoveGroupsFromGroupV1ArgsDecoder()],
|
|
29
|
+
]);
|
|
30
|
+
}
|
|
31
|
+
export function getRemoveGroupsFromGroupV1InstructionDataCodec() {
|
|
32
|
+
return combineCodec(getRemoveGroupsFromGroupV1InstructionDataEncoder(), getRemoveGroupsFromGroupV1InstructionDataDecoder());
|
|
33
|
+
}
|
|
34
|
+
export function getRemoveGroupsFromGroupV1Instruction(input, config) {
|
|
35
|
+
// Program address.
|
|
36
|
+
const programAddress = config?.programAddress ?? MPL_CORE_PROGRAM_PROGRAM_ADDRESS;
|
|
37
|
+
// Original accounts.
|
|
38
|
+
const originalAccounts = {
|
|
39
|
+
parentGroup: { value: input.parentGroup ?? null, isWritable: true },
|
|
40
|
+
payer: { value: input.payer ?? null, isWritable: true },
|
|
41
|
+
authority: { value: input.authority ?? null, isWritable: false },
|
|
42
|
+
systemProgram: { value: input.systemProgram ?? null, isWritable: false },
|
|
43
|
+
};
|
|
44
|
+
const accounts = originalAccounts;
|
|
45
|
+
// Original args.
|
|
46
|
+
const args = { ...input };
|
|
47
|
+
// Resolve default values.
|
|
48
|
+
if (!accounts.systemProgram.value) {
|
|
49
|
+
accounts.systemProgram.value =
|
|
50
|
+
"11111111111111111111111111111111";
|
|
51
|
+
}
|
|
52
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
53
|
+
return Object.freeze({
|
|
54
|
+
accounts: [
|
|
55
|
+
getAccountMeta("parentGroup", accounts.parentGroup),
|
|
56
|
+
getAccountMeta("payer", accounts.payer),
|
|
57
|
+
getAccountMeta("authority", accounts.authority),
|
|
58
|
+
getAccountMeta("systemProgram", accounts.systemProgram),
|
|
59
|
+
],
|
|
60
|
+
data: getRemoveGroupsFromGroupV1InstructionDataEncoder().encode(args),
|
|
61
|
+
programAddress,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
export function parseRemoveGroupsFromGroupV1Instruction(instruction) {
|
|
65
|
+
if (instruction.accounts.length < 4) {
|
|
66
|
+
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
67
|
+
actualAccountMetas: instruction.accounts.length,
|
|
68
|
+
expectedAccountMetas: 4,
|
|
69
|
+
});
|
|
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 === MPL_CORE_PROGRAM_PROGRAM_ADDRESS
|
|
80
|
+
? undefined
|
|
81
|
+
: accountMeta;
|
|
82
|
+
};
|
|
83
|
+
return {
|
|
84
|
+
programAddress: instruction.programAddress,
|
|
85
|
+
accounts: {
|
|
86
|
+
parentGroup: getNextAccount(),
|
|
87
|
+
payer: getNextAccount(),
|
|
88
|
+
authority: getNextOptionalAccount(),
|
|
89
|
+
systemProgram: getNextAccount(),
|
|
90
|
+
},
|
|
91
|
+
data: getRemoveGroupsFromGroupV1InstructionDataDecoder().decode(instruction.data),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=removeGroupsFromGroupV1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeGroupsFromGroupV1.js","sourceRoot":"","sources":["../../../src/generated/instructions/removeGroupsFromGroupV1.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAwBH,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EACL,qCAAqC,EACrC,qCAAqC,GACtC,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,yCAAyC,GAAG,EAAE,CAAC;AAE5D,MAAM,UAAU,4CAA4C;IAC1D,OAAO,YAAY,EAAE,CAAC,MAAM,CAAC,yCAAyC,CAAC,CAAC;AAC1E,CAAC;AA0CD,MAAM,UAAU,gDAAgD;IAC9D,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,YAAY,EAAE,CA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1C,QAAQ,EAAE;YACR,WAAW,EAAE,cAAc,EAAE;YAC7B,KAAK,EAAE,cAAc,EAAE;YACvB,SAAS,EAAE,sBAAsB,EAAE;YACnC,aAAa,EAAE,cAAc,EAAE;SAChC;QACD,IAAI,EAAE,gDAAgD,EAAE,CAAC,MAAM,CAC7D,WAAW,CAAC,IAAI,CACjB;KACF,CAAC;AACJ,CAAC","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 RemoveGroupsFromGroupV1Args,\n RemoveGroupsFromGroupV1ArgsArgs,\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 getRemoveGroupsFromGroupV1ArgsDecoder,\n getRemoveGroupsFromGroupV1ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const REMOVE_GROUPS_FROM_GROUP_V1_DISCRIMINATOR = 38;\n\nexport function getRemoveGroupsFromGroupV1DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(REMOVE_GROUPS_FROM_GROUP_V1_DISCRIMINATOR);\n}\n\nexport type RemoveGroupsFromGroupV1Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountParentGroup extends string | AccountMeta = string,\n TAccountPayer extends string | AccountMeta = string,\n TAccountAuthority extends string | AccountMeta = string,\n TAccountSystemProgram extends\n | string\n | AccountMeta = \"11111111111111111111111111111111\",\n TRemainingAccounts extends readonly AccountMeta[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountParentGroup extends string\n ? WritableAccount<TAccountParentGroup>\n : TAccountParentGroup,\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 ...TRemainingAccounts,\n ]\n >;\n\nexport interface RemoveGroupsFromGroupV1InstructionData {\n discriminator: number;\n removeGroupsFromGroupV1Args: RemoveGroupsFromGroupV1Args;\n}\n\nexport interface RemoveGroupsFromGroupV1InstructionDataArgs {\n removeGroupsFromGroupV1Args: RemoveGroupsFromGroupV1ArgsArgs;\n}\n\nexport function getRemoveGroupsFromGroupV1InstructionDataEncoder(): Encoder<RemoveGroupsFromGroupV1InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\"removeGroupsFromGroupV1Args\", getRemoveGroupsFromGroupV1ArgsEncoder()],\n ]),\n (value) => ({\n ...value,\n discriminator: REMOVE_GROUPS_FROM_GROUP_V1_DISCRIMINATOR,\n }),\n );\n}\n\nexport function getRemoveGroupsFromGroupV1InstructionDataDecoder(): Decoder<RemoveGroupsFromGroupV1InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\"removeGroupsFromGroupV1Args\", getRemoveGroupsFromGroupV1ArgsDecoder()],\n ]);\n}\n\nexport function getRemoveGroupsFromGroupV1InstructionDataCodec(): Codec<\n RemoveGroupsFromGroupV1InstructionDataArgs,\n RemoveGroupsFromGroupV1InstructionData\n> {\n return combineCodec(\n getRemoveGroupsFromGroupV1InstructionDataEncoder(),\n getRemoveGroupsFromGroupV1InstructionDataDecoder(),\n );\n}\n\nexport interface RemoveGroupsFromGroupV1Input<\n TAccountParentGroup extends string = string,\n TAccountPayer extends string = string,\n TAccountAuthority extends string = string,\n TAccountSystemProgram extends string = string,\n> {\n /** The address of the parent group to modify */\n parentGroup: Address<TAccountParentGroup>;\n /** The account paying for storage fees */\n payer: TransactionSigner<TAccountPayer>;\n /** The update authority of the parent and child groups */\n authority?: TransactionSigner<TAccountAuthority>;\n /** The system program */\n systemProgram?: Address<TAccountSystemProgram>;\n removeGroupsFromGroupV1Args: RemoveGroupsFromGroupV1InstructionDataArgs[\"removeGroupsFromGroupV1Args\"];\n}\n\nexport function getRemoveGroupsFromGroupV1Instruction<\n TAccountParentGroup extends string,\n TAccountPayer extends string,\n TAccountAuthority extends string,\n TAccountSystemProgram extends string,\n TProgramAddress extends Address = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: RemoveGroupsFromGroupV1Input<\n TAccountParentGroup,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram\n >,\n config?: { programAddress?: TProgramAddress },\n): RemoveGroupsFromGroupV1Instruction<\n TProgramAddress,\n TAccountParentGroup,\n TAccountPayer,\n TAccountAuthority,\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 parentGroup: { value: input.parentGroup ?? 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 };\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(\"parentGroup\", accounts.parentGroup),\n getAccountMeta(\"payer\", accounts.payer),\n getAccountMeta(\"authority\", accounts.authority),\n getAccountMeta(\"systemProgram\", accounts.systemProgram),\n ],\n data: getRemoveGroupsFromGroupV1InstructionDataEncoder().encode(\n args as RemoveGroupsFromGroupV1InstructionDataArgs,\n ),\n programAddress,\n } as RemoveGroupsFromGroupV1Instruction<\n TProgramAddress,\n TAccountParentGroup,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram\n >);\n}\n\nexport interface ParsedRemoveGroupsFromGroupV1Instruction<\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 parent group to modify */\n parentGroup: TAccountMetas[0];\n /** The account paying for storage fees */\n payer: TAccountMetas[1];\n /** The update authority of the parent and child groups */\n authority?: TAccountMetas[2] | undefined;\n /** The system program */\n systemProgram: TAccountMetas[3];\n };\n data: RemoveGroupsFromGroupV1InstructionData;\n}\n\nexport function parseRemoveGroupsFromGroupV1Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedRemoveGroupsFromGroupV1Instruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 4) {\n throw new SolanaError(\n SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,\n {\n actualAccountMetas: instruction.accounts.length,\n expectedAccountMetas: 4,\n },\n );\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n const getNextOptionalAccount = () => {\n const accountMeta = getNextAccount();\n return accountMeta.address === MPL_CORE_PROGRAM_PROGRAM_ADDRESS\n ? undefined\n : accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: {\n parentGroup: getNextAccount(),\n payer: getNextAccount(),\n authority: getNextOptionalAccount(),\n systemProgram: getNextAccount(),\n },\n data: getRemoveGroupsFromGroupV1InstructionDataDecoder().decode(\n instruction.data,\n ),\n };\n}\n"]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import type { AccountMeta, AccountSignerMeta, Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount, WritableSignerAccount } from "@solana/kit";
|
|
9
|
+
import type { RemovePluginV1Args, RemovePluginV1ArgsArgs } from "../types/index.js";
|
|
10
|
+
import { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
|
+
export declare const REMOVE_PLUGIN_V1_DISCRIMINATOR = 4;
|
|
12
|
+
export declare function getRemovePluginV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
export type RemovePluginV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountAsset extends string | AccountMeta = string, TAccountCollection extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TAccountLogWrapper extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
+
TAccountAsset extends string ? WritableAccount<TAccountAsset> : TAccountAsset,
|
|
15
|
+
TAccountCollection extends string ? WritableAccount<TAccountCollection> : TAccountCollection,
|
|
16
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
17
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
18
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
19
|
+
TAccountLogWrapper extends string ? ReadonlyAccount<TAccountLogWrapper> : TAccountLogWrapper,
|
|
20
|
+
...TRemainingAccounts
|
|
21
|
+
]>;
|
|
22
|
+
export interface RemovePluginV1InstructionData {
|
|
23
|
+
discriminator: number;
|
|
24
|
+
removePluginV1Args: RemovePluginV1Args;
|
|
25
|
+
}
|
|
26
|
+
export interface RemovePluginV1InstructionDataArgs {
|
|
27
|
+
removePluginV1Args: RemovePluginV1ArgsArgs;
|
|
28
|
+
}
|
|
29
|
+
export declare function getRemovePluginV1InstructionDataEncoder(): FixedSizeEncoder<RemovePluginV1InstructionDataArgs>;
|
|
30
|
+
export declare function getRemovePluginV1InstructionDataDecoder(): FixedSizeDecoder<RemovePluginV1InstructionData>;
|
|
31
|
+
export declare function getRemovePluginV1InstructionDataCodec(): FixedSizeCodec<RemovePluginV1InstructionDataArgs, RemovePluginV1InstructionData>;
|
|
32
|
+
export interface RemovePluginV1Input<TAccountAsset extends string = string, TAccountCollection extends string = string, TAccountPayer extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string, TAccountLogWrapper extends string = string> {
|
|
33
|
+
/** The address of the asset */
|
|
34
|
+
asset: Address<TAccountAsset>;
|
|
35
|
+
/** The collection to which the asset belongs */
|
|
36
|
+
collection?: Address<TAccountCollection>;
|
|
37
|
+
/** The account paying for the storage fees */
|
|
38
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
39
|
+
/** The owner or delegate of the asset */
|
|
40
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
41
|
+
/** The system program */
|
|
42
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
43
|
+
/** The SPL Noop Program */
|
|
44
|
+
logWrapper?: Address<TAccountLogWrapper>;
|
|
45
|
+
removePluginV1Args: RemovePluginV1InstructionDataArgs["removePluginV1Args"];
|
|
46
|
+
}
|
|
47
|
+
export declare function getRemovePluginV1Instruction<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: RemovePluginV1Input<TAccountAsset, TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>, config?: {
|
|
48
|
+
programAddress?: TProgramAddress;
|
|
49
|
+
}): RemovePluginV1Instruction<TProgramAddress, TAccountAsset, TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>;
|
|
50
|
+
export interface ParsedRemovePluginV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> {
|
|
51
|
+
programAddress: Address<TProgram>;
|
|
52
|
+
accounts: {
|
|
53
|
+
/** The address of the asset */
|
|
54
|
+
asset: TAccountMetas[0];
|
|
55
|
+
/** The collection to which the asset belongs */
|
|
56
|
+
collection?: TAccountMetas[1] | undefined;
|
|
57
|
+
/** The account paying for the storage fees */
|
|
58
|
+
payer: TAccountMetas[2];
|
|
59
|
+
/** The owner or delegate of the asset */
|
|
60
|
+
authority?: TAccountMetas[3] | undefined;
|
|
61
|
+
/** The system program */
|
|
62
|
+
systemProgram: TAccountMetas[4];
|
|
63
|
+
/** The SPL Noop Program */
|
|
64
|
+
logWrapper?: TAccountMetas[5] | undefined;
|
|
65
|
+
};
|
|
66
|
+
data: RemovePluginV1InstructionData;
|
|
67
|
+
}
|
|
68
|
+
export declare function parseRemovePluginV1Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRemovePluginV1Instruction<TProgram, TAccountMetas>;
|
|
69
|
+
//# sourceMappingURL=removePluginV1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removePluginV1.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/removePluginV1.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EACV,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAY3B,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAMxE,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD,wBAAgB,mCAAmC,IAAI,kBAAkB,CAExE;AAED,MAAM,MAAM,yBAAyB,CACnC,QAAQ,SAAS,MAAM,GAAG,OAAO,gCAAgC,EACjE,aAAa,SAAS,MAAM,GAAG,WAAW,GAAG,MAAM,EACnD,kBAAkB,SAAS,MAAM,GAAG,WAAW,GAAG,MAAM,EACxD,aAAa,SAAS,MAAM,GAAG,WAAW,GAAG,MAAM,EACnD,iBAAiB,SAAS,MAAM,GAAG,WAAW,GAAG,MAAM,E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G,OAAO,gCAAgC,EACjE,aAAa,SAAS,SAAS,WAAW,EAAE,GAAG,SAAS,WAAW,EAAE;IAErE,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,+BAA+B;QAC/B,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,gDAAgD;QAChD,UAAU,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;QAC1C,8CAA8C;QAC9C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,yCAAyC;QACzC,SAAS,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;QACzC,yBAAyB;QACzB,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAChC,2BAA2B;QAC3B,UAAU,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;KAC3C,CAAC;IACF,IAAI,EAAE,6BAA6B,CAAC;CACrC;AAED,wBAAgB,8BAA8B,CAC5C,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,+BAA+B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAkC1D"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { combineCodec, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, transformEncoder, } from "@solana/kit";
|
|
9
|
+
import { getAccountMetaFactory } from "@solana/program-client-core";
|
|
10
|
+
import { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
|
+
import { getRemovePluginV1ArgsDecoder, getRemovePluginV1ArgsEncoder, } from "../types/index.js";
|
|
12
|
+
export const REMOVE_PLUGIN_V1_DISCRIMINATOR = 4;
|
|
13
|
+
export function getRemovePluginV1DiscriminatorBytes() {
|
|
14
|
+
return getU8Encoder().encode(REMOVE_PLUGIN_V1_DISCRIMINATOR);
|
|
15
|
+
}
|
|
16
|
+
export function getRemovePluginV1InstructionDataEncoder() {
|
|
17
|
+
return transformEncoder(getStructEncoder([
|
|
18
|
+
["discriminator", getU8Encoder()],
|
|
19
|
+
["removePluginV1Args", getRemovePluginV1ArgsEncoder()],
|
|
20
|
+
]), (value) => ({ ...value, discriminator: REMOVE_PLUGIN_V1_DISCRIMINATOR }));
|
|
21
|
+
}
|
|
22
|
+
export function getRemovePluginV1InstructionDataDecoder() {
|
|
23
|
+
return getStructDecoder([
|
|
24
|
+
["discriminator", getU8Decoder()],
|
|
25
|
+
["removePluginV1Args", getRemovePluginV1ArgsDecoder()],
|
|
26
|
+
]);
|
|
27
|
+
}
|
|
28
|
+
export function getRemovePluginV1InstructionDataCodec() {
|
|
29
|
+
return combineCodec(getRemovePluginV1InstructionDataEncoder(), getRemovePluginV1InstructionDataDecoder());
|
|
30
|
+
}
|
|
31
|
+
export function getRemovePluginV1Instruction(input, config) {
|
|
32
|
+
// Program address.
|
|
33
|
+
const programAddress = config?.programAddress ?? MPL_CORE_PROGRAM_PROGRAM_ADDRESS;
|
|
34
|
+
// Original accounts.
|
|
35
|
+
const originalAccounts = {
|
|
36
|
+
asset: { value: input.asset ?? null, isWritable: true },
|
|
37
|
+
collection: { value: input.collection ?? null, isWritable: true },
|
|
38
|
+
payer: { value: input.payer ?? null, isWritable: true },
|
|
39
|
+
authority: { value: input.authority ?? null, isWritable: false },
|
|
40
|
+
systemProgram: { value: input.systemProgram ?? null, isWritable: false },
|
|
41
|
+
logWrapper: { value: input.logWrapper ?? null, isWritable: false },
|
|
42
|
+
};
|
|
43
|
+
const accounts = originalAccounts;
|
|
44
|
+
// Original args.
|
|
45
|
+
const args = { ...input };
|
|
46
|
+
// Resolve default values.
|
|
47
|
+
if (!accounts.systemProgram.value) {
|
|
48
|
+
accounts.systemProgram.value =
|
|
49
|
+
"11111111111111111111111111111111";
|
|
50
|
+
}
|
|
51
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
52
|
+
return Object.freeze({
|
|
53
|
+
accounts: [
|
|
54
|
+
getAccountMeta("asset", accounts.asset),
|
|
55
|
+
getAccountMeta("collection", accounts.collection),
|
|
56
|
+
getAccountMeta("payer", accounts.payer),
|
|
57
|
+
getAccountMeta("authority", accounts.authority),
|
|
58
|
+
getAccountMeta("systemProgram", accounts.systemProgram),
|
|
59
|
+
getAccountMeta("logWrapper", accounts.logWrapper),
|
|
60
|
+
],
|
|
61
|
+
data: getRemovePluginV1InstructionDataEncoder().encode(args),
|
|
62
|
+
programAddress,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
export function parseRemovePluginV1Instruction(instruction) {
|
|
66
|
+
if (instruction.accounts.length < 6) {
|
|
67
|
+
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
68
|
+
actualAccountMetas: instruction.accounts.length,
|
|
69
|
+
expectedAccountMetas: 6,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
let accountIndex = 0;
|
|
73
|
+
const getNextAccount = () => {
|
|
74
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
75
|
+
accountIndex += 1;
|
|
76
|
+
return accountMeta;
|
|
77
|
+
};
|
|
78
|
+
const getNextOptionalAccount = () => {
|
|
79
|
+
const accountMeta = getNextAccount();
|
|
80
|
+
return accountMeta.address === MPL_CORE_PROGRAM_PROGRAM_ADDRESS
|
|
81
|
+
? undefined
|
|
82
|
+
: accountMeta;
|
|
83
|
+
};
|
|
84
|
+
return {
|
|
85
|
+
programAddress: instruction.programAddress,
|
|
86
|
+
accounts: {
|
|
87
|
+
asset: getNextAccount(),
|
|
88
|
+
collection: getNextOptionalAccount(),
|
|
89
|
+
payer: getNextAccount(),
|
|
90
|
+
authority: getNextOptionalAccount(),
|
|
91
|
+
systemProgram: getNextAccount(),
|
|
92
|
+
logWrapper: getNextOptionalAccount(),
|
|
93
|
+
},
|
|
94
|
+
data: getRemovePluginV1InstructionDataDecoder().decode(instruction.data),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=removePluginV1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removePluginV1.js","sourceRoot":"","sources":["../../../src/generated/instructions/removePluginV1.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAwBH,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC;AAEhD,MAAM,UAAU,mCAAmC;IACjD,OAAO,YAAY,EAAE,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC;AAC/D,CAAC;AAkDD,MAAM,UAAU,uCAAuC;IACrD,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,YAAY,EAAE,CAAC;QACjC,CAAC,oBAAoB,EAAE,4BAA4B,EAAE,CAAC;KACvD,CAAC,EACF,CAAC,KAAK,EAAE,E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G,EAAE;QAClC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;QACrC,OAAO,WAAW,CAAC,OAAO,KAAK,gCAAgC;YAC7D,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,WAAW,CAAC;IAClB,CAAC,CAAC;IACF,OAAO;QACL,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,QAAQ,EAAE;YACR,KAAK,EAAE,cAAc,EAAE;YACvB,UAAU,EAAE,sBAAsB,EAAE;YACpC,KAAK,EAAE,cAAc,EAAE;YACvB,SAAS,EAAE,sBAAsB,EAAE;YACnC,aAAa,EAAE,cAAc,EAAE;YAC/B,UAAU,EAAE,sBAAsB,EAAE;SACrC;QACD,IAAI,EAAE,uCAAuC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KACzE,CAAC;AACJ,CAAC","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 FixedSizeCodec,\n FixedSizeDecoder,\n FixedSizeEncoder,\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 RemovePluginV1Args,\n RemovePluginV1ArgsArgs,\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 getRemovePluginV1ArgsDecoder,\n getRemovePluginV1ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const REMOVE_PLUGIN_V1_DISCRIMINATOR = 4;\n\nexport function getRemovePluginV1DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(REMOVE_PLUGIN_V1_DISCRIMINATOR);\n}\n\nexport type RemovePluginV1Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountAsset extends string | AccountMeta = string,\n TAccountCollection extends string | AccountMeta = string,\n TAccountPayer extends string | AccountMeta = string,\n TAccountAuthority extends string | AccountMeta = string,\n TAccountSystemProgram extends\n | string\n | AccountMeta = \"11111111111111111111111111111111\",\n TAccountLogWrapper extends string | AccountMeta = string,\n TRemainingAccounts extends readonly AccountMeta[] = [],\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 RemovePluginV1InstructionData {\n discriminator: number;\n removePluginV1Args: RemovePluginV1Args;\n}\n\nexport interface RemovePluginV1InstructionDataArgs {\n removePluginV1Args: RemovePluginV1ArgsArgs;\n}\n\nexport function getRemovePluginV1InstructionDataEncoder(): FixedSizeEncoder<RemovePluginV1InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\"removePluginV1Args\", getRemovePluginV1ArgsEncoder()],\n ]),\n (value) => ({ ...value, discriminator: REMOVE_PLUGIN_V1_DISCRIMINATOR }),\n );\n}\n\nexport function getRemovePluginV1InstructionDataDecoder(): FixedSizeDecoder<RemovePluginV1InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\"removePluginV1Args\", getRemovePluginV1ArgsDecoder()],\n ]);\n}\n\nexport function getRemovePluginV1InstructionDataCodec(): FixedSizeCodec<\n RemovePluginV1InstructionDataArgs,\n RemovePluginV1InstructionData\n> {\n return combineCodec(\n getRemovePluginV1InstructionDataEncoder(),\n getRemovePluginV1InstructionDataDecoder(),\n );\n}\n\nexport interface RemovePluginV1Input<\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 removePluginV1Args: RemovePluginV1InstructionDataArgs[\"removePluginV1Args\"];\n}\n\nexport function getRemovePluginV1Instruction<\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: RemovePluginV1Input<\n TAccountAsset,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >,\n config?: { programAddress?: TProgramAddress },\n): RemovePluginV1Instruction<\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: getRemovePluginV1InstructionDataEncoder().encode(\n args as RemovePluginV1InstructionDataArgs,\n ),\n programAddress,\n } as RemovePluginV1Instruction<\n TProgramAddress,\n TAccountAsset,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >);\n}\n\nexport interface ParsedRemovePluginV1Instruction<\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: RemovePluginV1InstructionData;\n}\n\nexport function parseRemovePluginV1Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedRemovePluginV1Instruction<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: getRemovePluginV1InstructionDataDecoder().decode(instruction.data),\n };\n}\n"]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import type { AccountMeta, AccountSignerMeta, Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount, WritableSignerAccount } from "@solana/kit";
|
|
9
|
+
import type { RevokeCollectionPluginAuthorityV1Args, RevokeCollectionPluginAuthorityV1ArgsArgs } from "../types/index.js";
|
|
10
|
+
import { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
|
+
export declare const REVOKE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR = 11;
|
|
12
|
+
export declare function getRevokeCollectionPluginAuthorityV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
export type RevokeCollectionPluginAuthorityV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountCollection extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TAccountLogWrapper extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
+
TAccountCollection extends string ? WritableAccount<TAccountCollection> : TAccountCollection,
|
|
15
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
16
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
17
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
18
|
+
TAccountLogWrapper extends string ? ReadonlyAccount<TAccountLogWrapper> : TAccountLogWrapper,
|
|
19
|
+
...TRemainingAccounts
|
|
20
|
+
]>;
|
|
21
|
+
export interface RevokeCollectionPluginAuthorityV1InstructionData {
|
|
22
|
+
discriminator: number;
|
|
23
|
+
revokeCollectionPluginAuthorityV1Args: RevokeCollectionPluginAuthorityV1Args;
|
|
24
|
+
}
|
|
25
|
+
export interface RevokeCollectionPluginAuthorityV1InstructionDataArgs {
|
|
26
|
+
revokeCollectionPluginAuthorityV1Args: RevokeCollectionPluginAuthorityV1ArgsArgs;
|
|
27
|
+
}
|
|
28
|
+
export declare function getRevokeCollectionPluginAuthorityV1InstructionDataEncoder(): FixedSizeEncoder<RevokeCollectionPluginAuthorityV1InstructionDataArgs>;
|
|
29
|
+
export declare function getRevokeCollectionPluginAuthorityV1InstructionDataDecoder(): FixedSizeDecoder<RevokeCollectionPluginAuthorityV1InstructionData>;
|
|
30
|
+
export declare function getRevokeCollectionPluginAuthorityV1InstructionDataCodec(): FixedSizeCodec<RevokeCollectionPluginAuthorityV1InstructionDataArgs, RevokeCollectionPluginAuthorityV1InstructionData>;
|
|
31
|
+
export interface RevokeCollectionPluginAuthorityV1Input<TAccountCollection extends string = string, TAccountPayer extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string, TAccountLogWrapper extends string = string> {
|
|
32
|
+
/** The address of the asset */
|
|
33
|
+
collection: Address<TAccountCollection>;
|
|
34
|
+
/** The account paying for the storage fees */
|
|
35
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
36
|
+
/** The owner or delegate of the asset */
|
|
37
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
38
|
+
/** The system program */
|
|
39
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
40
|
+
/** The SPL Noop Program */
|
|
41
|
+
logWrapper?: Address<TAccountLogWrapper>;
|
|
42
|
+
revokeCollectionPluginAuthorityV1Args: RevokeCollectionPluginAuthorityV1InstructionDataArgs["revokeCollectionPluginAuthorityV1Args"];
|
|
43
|
+
}
|
|
44
|
+
export declare function getRevokeCollectionPluginAuthorityV1Instruction<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: RevokeCollectionPluginAuthorityV1Input<TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>, config?: {
|
|
45
|
+
programAddress?: TProgramAddress;
|
|
46
|
+
}): RevokeCollectionPluginAuthorityV1Instruction<TProgramAddress, TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>;
|
|
47
|
+
export interface ParsedRevokeCollectionPluginAuthorityV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> {
|
|
48
|
+
programAddress: Address<TProgram>;
|
|
49
|
+
accounts: {
|
|
50
|
+
/** The address of the asset */
|
|
51
|
+
collection: TAccountMetas[0];
|
|
52
|
+
/** The account paying for the storage fees */
|
|
53
|
+
payer: TAccountMetas[1];
|
|
54
|
+
/** The owner or delegate of the asset */
|
|
55
|
+
authority?: TAccountMetas[2] | undefined;
|
|
56
|
+
/** The system program */
|
|
57
|
+
systemProgram: TAccountMetas[3];
|
|
58
|
+
/** The SPL Noop Program */
|
|
59
|
+
logWrapper?: TAccountMetas[4] | undefined;
|
|
60
|
+
};
|
|
61
|
+
data: RevokeCollectionPluginAuthorityV1InstructionData;
|
|
62
|
+
}
|
|
63
|
+
export declare function parseRevokeCollectionPluginAuthorityV1Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevokeCollectionPluginAuthorityV1Instruction<TProgram, TAccountMetas>;
|
|
64
|
+
//# sourceMappingURL=revokeCollectionPluginAuthorityV1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revokeCollectionPluginAuthorityV1.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/revokeCollectionPluginAuthorityV1.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAA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mC7E"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { combineCodec, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, transformEncoder, } from "@solana/kit";
|
|
9
|
+
import { getAccountMetaFactory } from "@solana/program-client-core";
|
|
10
|
+
import { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
|
+
import { getRevokeCollectionPluginAuthorityV1ArgsDecoder, getRevokeCollectionPluginAuthorityV1ArgsEncoder, } from "../types/index.js";
|
|
12
|
+
export const REVOKE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR = 11;
|
|
13
|
+
export function getRevokeCollectionPluginAuthorityV1DiscriminatorBytes() {
|
|
14
|
+
return getU8Encoder().encode(REVOKE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR);
|
|
15
|
+
}
|
|
16
|
+
export function getRevokeCollectionPluginAuthorityV1InstructionDataEncoder() {
|
|
17
|
+
return transformEncoder(getStructEncoder([
|
|
18
|
+
["discriminator", getU8Encoder()],
|
|
19
|
+
[
|
|
20
|
+
"revokeCollectionPluginAuthorityV1Args",
|
|
21
|
+
getRevokeCollectionPluginAuthorityV1ArgsEncoder(),
|
|
22
|
+
],
|
|
23
|
+
]), (value) => ({
|
|
24
|
+
...value,
|
|
25
|
+
discriminator: REVOKE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR,
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
export function getRevokeCollectionPluginAuthorityV1InstructionDataDecoder() {
|
|
29
|
+
return getStructDecoder([
|
|
30
|
+
["discriminator", getU8Decoder()],
|
|
31
|
+
[
|
|
32
|
+
"revokeCollectionPluginAuthorityV1Args",
|
|
33
|
+
getRevokeCollectionPluginAuthorityV1ArgsDecoder(),
|
|
34
|
+
],
|
|
35
|
+
]);
|
|
36
|
+
}
|
|
37
|
+
export function getRevokeCollectionPluginAuthorityV1InstructionDataCodec() {
|
|
38
|
+
return combineCodec(getRevokeCollectionPluginAuthorityV1InstructionDataEncoder(), getRevokeCollectionPluginAuthorityV1InstructionDataDecoder());
|
|
39
|
+
}
|
|
40
|
+
export function getRevokeCollectionPluginAuthorityV1Instruction(input, config) {
|
|
41
|
+
// Program address.
|
|
42
|
+
const programAddress = config?.programAddress ?? MPL_CORE_PROGRAM_PROGRAM_ADDRESS;
|
|
43
|
+
// Original accounts.
|
|
44
|
+
const originalAccounts = {
|
|
45
|
+
collection: { value: input.collection ?? null, isWritable: true },
|
|
46
|
+
payer: { value: input.payer ?? null, isWritable: true },
|
|
47
|
+
authority: { value: input.authority ?? null, isWritable: false },
|
|
48
|
+
systemProgram: { value: input.systemProgram ?? null, isWritable: false },
|
|
49
|
+
logWrapper: { value: input.logWrapper ?? null, isWritable: false },
|
|
50
|
+
};
|
|
51
|
+
const accounts = originalAccounts;
|
|
52
|
+
// Original args.
|
|
53
|
+
const args = { ...input };
|
|
54
|
+
// Resolve default values.
|
|
55
|
+
if (!accounts.systemProgram.value) {
|
|
56
|
+
accounts.systemProgram.value =
|
|
57
|
+
"11111111111111111111111111111111";
|
|
58
|
+
}
|
|
59
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
60
|
+
return Object.freeze({
|
|
61
|
+
accounts: [
|
|
62
|
+
getAccountMeta("collection", accounts.collection),
|
|
63
|
+
getAccountMeta("payer", accounts.payer),
|
|
64
|
+
getAccountMeta("authority", accounts.authority),
|
|
65
|
+
getAccountMeta("systemProgram", accounts.systemProgram),
|
|
66
|
+
getAccountMeta("logWrapper", accounts.logWrapper),
|
|
67
|
+
],
|
|
68
|
+
data: getRevokeCollectionPluginAuthorityV1InstructionDataEncoder().encode(args),
|
|
69
|
+
programAddress,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
export function parseRevokeCollectionPluginAuthorityV1Instruction(instruction) {
|
|
73
|
+
if (instruction.accounts.length < 5) {
|
|
74
|
+
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
75
|
+
actualAccountMetas: instruction.accounts.length,
|
|
76
|
+
expectedAccountMetas: 5,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
let accountIndex = 0;
|
|
80
|
+
const getNextAccount = () => {
|
|
81
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
82
|
+
accountIndex += 1;
|
|
83
|
+
return accountMeta;
|
|
84
|
+
};
|
|
85
|
+
const getNextOptionalAccount = () => {
|
|
86
|
+
const accountMeta = getNextAccount();
|
|
87
|
+
return accountMeta.address === MPL_CORE_PROGRAM_PROGRAM_ADDRESS
|
|
88
|
+
? undefined
|
|
89
|
+
: accountMeta;
|
|
90
|
+
};
|
|
91
|
+
return {
|
|
92
|
+
programAddress: instruction.programAddress,
|
|
93
|
+
accounts: {
|
|
94
|
+
collection: getNextAccount(),
|
|
95
|
+
payer: getNextAccount(),
|
|
96
|
+
authority: getNextOptionalAccount(),
|
|
97
|
+
systemProgram: getNextAccount(),
|
|
98
|
+
logWrapper: getNextOptionalAccount(),
|
|
99
|
+
},
|
|
100
|
+
data: getRevokeCollectionPluginAuthorityV1InstructionDataDecoder().decode(instruction.data),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=revokeCollectionPluginAuthorityV1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revokeCollectionPluginAuthorityV1.js","sourceRoot":"","sources":["../../../src/generated/instructions/revokeCollectionPluginAuthorityV1.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG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C;AAsBD,MAAM,UAAU,iDAAiD,CAI/D,WAEyC;IAEzC,IAAI,WAAW,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,WAAW,CACnB,yDAAyD,EACzD;YACE,kBAAkB,EAAE,WAAW,CAAC,QAAQ,CAAC,MAAM;YAC/C,oBAAoB,EAAE,CAAC;SACxB,CACF,CAAC;IACJ,CAAC;IACD,IAAI,YAAY,GAAG,CAAC,CAAC;IACrB,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,MAAM,WAAW,GAAI,WAAW,CAAC,QAA0B,CAAC,YAAY,CAAE,CAAC;QAC3E,YAAY,IAAI,CAAC,CAAC;QAClB,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC;IACF,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAClC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;QACrC,OAAO,WAAW,CAAC,OAAO,KAAK,gCAAgC;YAC7D,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,WAAW,CAAC;IAClB,CAAC,CAAC;IACF,OAAO;QACL,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,QAAQ,EAAE;YACR,UAAU,EAAE,cAAc,EAAE;YAC5B,KAAK,EAAE,cAAc,EAAE;YACvB,SAAS,EAAE,sBAAsB,EAAE;YACnC,aAAa,EAAE,cAAc,EAAE;YAC/B,UAAU,EAAE,sBAAsB,EAAE;SACrC;QACD,IAAI,EAAE,0DAA0D,EAAE,CAAC,MAAM,CACvE,WAAW,CAAC,IAAI,CACjB;KACF,CAAC;AACJ,CAAC","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 FixedSizeCodec,\n FixedSizeDecoder,\n FixedSizeEncoder,\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 RevokeCollectionPluginAuthorityV1Args,\n RevokeCollectionPluginAuthorityV1ArgsArgs,\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 getRevokeCollectionPluginAuthorityV1ArgsDecoder,\n getRevokeCollectionPluginAuthorityV1ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const REVOKE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR = 11;\n\nexport function getRevokeCollectionPluginAuthorityV1DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(\n REVOKE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR,\n );\n}\n\nexport type RevokeCollectionPluginAuthorityV1Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountCollection extends string | AccountMeta = string,\n TAccountPayer extends string | AccountMeta = string,\n TAccountAuthority extends string | AccountMeta = string,\n TAccountSystemProgram extends\n | string\n | AccountMeta = \"11111111111111111111111111111111\",\n TAccountLogWrapper extends string | AccountMeta = string,\n TRemainingAccounts extends readonly AccountMeta[] = [],\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 TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n TAccountLogWrapper extends string\n ? ReadonlyAccount<TAccountLogWrapper>\n : TAccountLogWrapper,\n ...TRemainingAccounts,\n ]\n >;\n\nexport interface RevokeCollectionPluginAuthorityV1InstructionData {\n discriminator: number;\n revokeCollectionPluginAuthorityV1Args: RevokeCollectionPluginAuthorityV1Args;\n}\n\nexport interface RevokeCollectionPluginAuthorityV1InstructionDataArgs {\n revokeCollectionPluginAuthorityV1Args: RevokeCollectionPluginAuthorityV1ArgsArgs;\n}\n\nexport function getRevokeCollectionPluginAuthorityV1InstructionDataEncoder(): FixedSizeEncoder<RevokeCollectionPluginAuthorityV1InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\n \"revokeCollectionPluginAuthorityV1Args\",\n getRevokeCollectionPluginAuthorityV1ArgsEncoder(),\n ],\n ]),\n (value) => ({\n ...value,\n discriminator: REVOKE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR,\n }),\n );\n}\n\nexport function getRevokeCollectionPluginAuthorityV1InstructionDataDecoder(): FixedSizeDecoder<RevokeCollectionPluginAuthorityV1InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\n \"revokeCollectionPluginAuthorityV1Args\",\n getRevokeCollectionPluginAuthorityV1ArgsDecoder(),\n ],\n ]);\n}\n\nexport function getRevokeCollectionPluginAuthorityV1InstructionDataCodec(): FixedSizeCodec<\n RevokeCollectionPluginAuthorityV1InstructionDataArgs,\n RevokeCollectionPluginAuthorityV1InstructionData\n> {\n return combineCodec(\n getRevokeCollectionPluginAuthorityV1InstructionDataEncoder(),\n getRevokeCollectionPluginAuthorityV1InstructionDataDecoder(),\n );\n}\n\nexport interface RevokeCollectionPluginAuthorityV1Input<\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 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 revokeCollectionPluginAuthorityV1Args: RevokeCollectionPluginAuthorityV1InstructionDataArgs[\"revokeCollectionPluginAuthorityV1Args\"];\n}\n\nexport function getRevokeCollectionPluginAuthorityV1Instruction<\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: RevokeCollectionPluginAuthorityV1Input<\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >,\n config?: { programAddress?: TProgramAddress },\n): RevokeCollectionPluginAuthorityV1Instruction<\n TProgramAddress,\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 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(\"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: getRevokeCollectionPluginAuthorityV1InstructionDataEncoder().encode(\n args as RevokeCollectionPluginAuthorityV1InstructionDataArgs,\n ),\n programAddress,\n } as RevokeCollectionPluginAuthorityV1Instruction<\n TProgramAddress,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >);\n}\n\nexport interface ParsedRevokeCollectionPluginAuthorityV1Instruction<\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 owner or delegate of the asset */\n authority?: TAccountMetas[2] | undefined;\n /** The system program */\n systemProgram: TAccountMetas[3];\n /** The SPL Noop Program */\n logWrapper?: TAccountMetas[4] | undefined;\n };\n data: RevokeCollectionPluginAuthorityV1InstructionData;\n}\n\nexport function parseRevokeCollectionPluginAuthorityV1Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedRevokeCollectionPluginAuthorityV1Instruction<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 collection: getNextAccount(),\n payer: getNextAccount(),\n authority: getNextOptionalAccount(),\n systemProgram: getNextAccount(),\n logWrapper: getNextOptionalAccount(),\n },\n data: getRevokeCollectionPluginAuthorityV1InstructionDataDecoder().decode(\n instruction.data,\n ),\n };\n}\n"]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import type { AccountMeta, AccountSignerMeta, Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount, WritableSignerAccount } from "@solana/kit";
|
|
9
|
+
import type { RevokePluginAuthorityV1Args, RevokePluginAuthorityV1ArgsArgs } from "../types/index.js";
|
|
10
|
+
import { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
|
+
export declare const REVOKE_PLUGIN_AUTHORITY_V1_DISCRIMINATOR = 10;
|
|
12
|
+
export declare function getRevokePluginAuthorityV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
export type RevokePluginAuthorityV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountAsset extends string | AccountMeta = string, TAccountCollection extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TAccountLogWrapper extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
+
TAccountAsset extends string ? WritableAccount<TAccountAsset> : TAccountAsset,
|
|
15
|
+
TAccountCollection extends string ? WritableAccount<TAccountCollection> : TAccountCollection,
|
|
16
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
17
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
18
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
19
|
+
TAccountLogWrapper extends string ? ReadonlyAccount<TAccountLogWrapper> : TAccountLogWrapper,
|
|
20
|
+
...TRemainingAccounts
|
|
21
|
+
]>;
|
|
22
|
+
export interface RevokePluginAuthorityV1InstructionData {
|
|
23
|
+
discriminator: number;
|
|
24
|
+
revokePluginAuthorityV1Args: RevokePluginAuthorityV1Args;
|
|
25
|
+
}
|
|
26
|
+
export interface RevokePluginAuthorityV1InstructionDataArgs {
|
|
27
|
+
revokePluginAuthorityV1Args: RevokePluginAuthorityV1ArgsArgs;
|
|
28
|
+
}
|
|
29
|
+
export declare function getRevokePluginAuthorityV1InstructionDataEncoder(): FixedSizeEncoder<RevokePluginAuthorityV1InstructionDataArgs>;
|
|
30
|
+
export declare function getRevokePluginAuthorityV1InstructionDataDecoder(): FixedSizeDecoder<RevokePluginAuthorityV1InstructionData>;
|
|
31
|
+
export declare function getRevokePluginAuthorityV1InstructionDataCodec(): FixedSizeCodec<RevokePluginAuthorityV1InstructionDataArgs, RevokePluginAuthorityV1InstructionData>;
|
|
32
|
+
export interface RevokePluginAuthorityV1Input<TAccountAsset extends string = string, TAccountCollection extends string = string, TAccountPayer extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string, TAccountLogWrapper extends string = string> {
|
|
33
|
+
/** The address of the asset */
|
|
34
|
+
asset: Address<TAccountAsset>;
|
|
35
|
+
/** The collection to which the asset belongs */
|
|
36
|
+
collection?: Address<TAccountCollection>;
|
|
37
|
+
/** The account paying for the storage fees */
|
|
38
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
39
|
+
/** The owner or delegate of the asset */
|
|
40
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
41
|
+
/** The system program */
|
|
42
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
43
|
+
/** The SPL Noop Program */
|
|
44
|
+
logWrapper?: Address<TAccountLogWrapper>;
|
|
45
|
+
revokePluginAuthorityV1Args: RevokePluginAuthorityV1InstructionDataArgs["revokePluginAuthorityV1Args"];
|
|
46
|
+
}
|
|
47
|
+
export declare function getRevokePluginAuthorityV1Instruction<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: RevokePluginAuthorityV1Input<TAccountAsset, TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>, config?: {
|
|
48
|
+
programAddress?: TProgramAddress;
|
|
49
|
+
}): RevokePluginAuthorityV1Instruction<TProgramAddress, TAccountAsset, TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>;
|
|
50
|
+
export interface ParsedRevokePluginAuthorityV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> {
|
|
51
|
+
programAddress: Address<TProgram>;
|
|
52
|
+
accounts: {
|
|
53
|
+
/** The address of the asset */
|
|
54
|
+
asset: TAccountMetas[0];
|
|
55
|
+
/** The collection to which the asset belongs */
|
|
56
|
+
collection?: TAccountMetas[1] | undefined;
|
|
57
|
+
/** The account paying for the storage fees */
|
|
58
|
+
payer: TAccountMetas[2];
|
|
59
|
+
/** The owner or delegate of the asset */
|
|
60
|
+
authority?: TAccountMetas[3] | undefined;
|
|
61
|
+
/** The system program */
|
|
62
|
+
systemProgram: TAccountMetas[4];
|
|
63
|
+
/** The SPL Noop Program */
|
|
64
|
+
logWrapper?: TAccountMetas[5] | undefined;
|
|
65
|
+
};
|
|
66
|
+
data: RevokePluginAuthorityV1InstructionData;
|
|
67
|
+
}
|
|
68
|
+
export declare function parseRevokePluginAuthorityV1Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRevokePluginAuthorityV1Instruction<TProgram, TAccountMetas>;
|
|
69
|
+
//# sourceMappingURL=revokePluginAuthorityV1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revokePluginAuthorityV1.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/revokePluginAuthorityV1.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EACV,2BAA2B,EAC3B,+BAA+B,EAChC,MAAM,mBAAmB,CAAC;AAY3B,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAMxE,eAAO,MAAM,wCAAwC,KAAK,CAAC;AAE3D,wBAAgB,4CAA4C,IAAI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