@macalinao/clients-mpl-core 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/accounts/assetV1.d.ts +30 -33
- package/dist/generated/accounts/assetV1.d.ts.map +1 -1
- package/dist/generated/accounts/assetV1.js +41 -45
- package/dist/generated/accounts/assetV1.js.map +1 -1
- package/dist/generated/accounts/collectionV1.d.ts +29 -33
- package/dist/generated/accounts/collectionV1.d.ts.map +1 -1
- package/dist/generated/accounts/collectionV1.js +40 -45
- package/dist/generated/accounts/collectionV1.js.map +1 -1
- package/dist/generated/accounts/groupV1.d.ts +33 -37
- package/dist/generated/accounts/groupV1.d.ts.map +1 -1
- package/dist/generated/accounts/groupV1.js +44 -49
- package/dist/generated/accounts/groupV1.js.map +1 -1
- package/dist/generated/accounts/hashedAssetV1.d.ts +21 -25
- package/dist/generated/accounts/hashedAssetV1.d.ts.map +1 -1
- package/dist/generated/accounts/hashedAssetV1.js +26 -37
- package/dist/generated/accounts/hashedAssetV1.js.map +1 -1
- package/dist/generated/accounts/index.d.ts +6 -14
- package/dist/generated/accounts/pluginHeaderV1.d.ts +21 -25
- package/dist/generated/accounts/pluginHeaderV1.d.ts.map +1 -1
- package/dist/generated/accounts/pluginHeaderV1.js +26 -37
- package/dist/generated/accounts/pluginHeaderV1.js.map +1 -1
- package/dist/generated/accounts/pluginRegistryV1.d.ts +25 -27
- package/dist/generated/accounts/pluginRegistryV1.d.ts.map +1 -1
- package/dist/generated/accounts/pluginRegistryV1.js +36 -39
- package/dist/generated/accounts/pluginRegistryV1.js.map +1 -1
- package/dist/generated/errors/index.d.ts +1 -9
- package/dist/generated/errors/mplCoreProgram.d.ts +71 -74
- package/dist/generated/errors/mplCoreProgram.d.ts.map +1 -1
- package/dist/generated/errors/mplCoreProgram.js +126 -133
- package/dist/generated/errors/mplCoreProgram.js.map +1 -1
- package/dist/generated/index.d.ts +167 -13
- package/dist/generated/instructions/addAssetsToGroupV1.d.ts +40 -53
- package/dist/generated/instructions/addAssetsToGroupV1.d.ts.map +1 -1
- package/dist/generated/instructions/addAssetsToGroupV1.js +77 -86
- package/dist/generated/instructions/addAssetsToGroupV1.js.map +1 -1
- package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.d.ts +43 -58
- package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.d.ts.map +1 -1
- package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.js +83 -95
- package/dist/generated/instructions/addCollectionExternalPluginAdapterV1.js.map +1 -1
- package/dist/generated/instructions/addCollectionPluginV1.d.ts +43 -58
- package/dist/generated/instructions/addCollectionPluginV1.d.ts.map +1 -1
- package/dist/generated/instructions/addCollectionPluginV1.js +83 -89
- package/dist/generated/instructions/addCollectionPluginV1.js.map +1 -1
- package/dist/generated/instructions/addCollectionsToGroupV1.d.ts +40 -53
- package/dist/generated/instructions/addCollectionsToGroupV1.d.ts.map +1 -1
- package/dist/generated/instructions/addCollectionsToGroupV1.js +77 -86
- package/dist/generated/instructions/addCollectionsToGroupV1.js.map +1 -1
- package/dist/generated/instructions/addExternalPluginAdapterV1.d.ts +46 -63
- package/dist/generated/instructions/addExternalPluginAdapterV1.d.ts.map +1 -1
- package/dist/generated/instructions/addExternalPluginAdapterV1.js +89 -98
- package/dist/generated/instructions/addExternalPluginAdapterV1.js.map +1 -1
- package/dist/generated/instructions/addGroupsToGroupV1.d.ts +40 -53
- package/dist/generated/instructions/addGroupsToGroupV1.d.ts.map +1 -1
- package/dist/generated/instructions/addGroupsToGroupV1.js +77 -86
- package/dist/generated/instructions/addGroupsToGroupV1.js.map +1 -1
- package/dist/generated/instructions/addPluginV1.d.ts +46 -63
- package/dist/generated/instructions/addPluginV1.d.ts.map +1 -1
- package/dist/generated/instructions/addPluginV1.js +89 -89
- package/dist/generated/instructions/addPluginV1.js.map +1 -1
- package/dist/generated/instructions/approveCollectionPluginAuthorityV1.d.ts +43 -58
- package/dist/generated/instructions/approveCollectionPluginAuthorityV1.d.ts.map +1 -1
- package/dist/generated/instructions/approveCollectionPluginAuthorityV1.js +83 -95
- package/dist/generated/instructions/approveCollectionPluginAuthorityV1.js.map +1 -1
- package/dist/generated/instructions/approvePluginAuthorityV1.d.ts +46 -63
- package/dist/generated/instructions/approvePluginAuthorityV1.d.ts.map +1 -1
- package/dist/generated/instructions/approvePluginAuthorityV1.js +89 -95
- package/dist/generated/instructions/approvePluginAuthorityV1.js.map +1 -1
- package/dist/generated/instructions/burnCollectionV1.d.ts +40 -53
- package/dist/generated/instructions/burnCollectionV1.d.ts.map +1 -1
- package/dist/generated/instructions/burnCollectionV1.js +76 -78
- package/dist/generated/instructions/burnCollectionV1.js.map +1 -1
- package/dist/generated/instructions/burnV1.d.ts +46 -63
- package/dist/generated/instructions/burnV1.d.ts.map +1 -1
- package/dist/generated/instructions/burnV1.js +88 -84
- package/dist/generated/instructions/burnV1.js.map +1 -1
- package/dist/generated/instructions/closeGroupV1.d.ts +37 -48
- package/dist/generated/instructions/closeGroupV1.d.ts.map +1 -1
- package/dist/generated/instructions/closeGroupV1.js +70 -75
- package/dist/generated/instructions/closeGroupV1.js.map +1 -1
- package/dist/generated/instructions/collect.d.ts +30 -39
- package/dist/generated/instructions/collect.d.ts.map +1 -1
- package/dist/generated/instructions/collect.js +55 -54
- package/dist/generated/instructions/collect.js.map +1 -1
- package/dist/generated/instructions/compressV1.d.ts +46 -63
- package/dist/generated/instructions/compressV1.d.ts.map +1 -1
- package/dist/generated/instructions/compressV1.js +89 -89
- package/dist/generated/instructions/compressV1.js.map +1 -1
- package/dist/generated/instructions/createCollectionV1.d.ts +40 -53
- package/dist/generated/instructions/createCollectionV1.d.ts.map +1 -1
- package/dist/generated/instructions/createCollectionV1.js +77 -89
- package/dist/generated/instructions/createCollectionV1.js.map +1 -1
- package/dist/generated/instructions/createCollectionV2.d.ts +40 -53
- package/dist/generated/instructions/createCollectionV2.d.ts.map +1 -1
- package/dist/generated/instructions/createCollectionV2.js +77 -89
- package/dist/generated/instructions/createCollectionV2.js.map +1 -1
- package/dist/generated/instructions/createGroupV1.d.ts +40 -53
- package/dist/generated/instructions/createGroupV1.d.ts.map +1 -1
- package/dist/generated/instructions/createGroupV1.js +77 -86
- package/dist/generated/instructions/createGroupV1.js.map +1 -1
- package/dist/generated/instructions/createV1.d.ts +52 -73
- package/dist/generated/instructions/createV1.d.ts.map +1 -1
- package/dist/generated/instructions/createV1.js +101 -98
- package/dist/generated/instructions/createV1.js.map +1 -1
- package/dist/generated/instructions/createV2.d.ts +52 -73
- package/dist/generated/instructions/createV2.d.ts.map +1 -1
- package/dist/generated/instructions/createV2.js +101 -98
- package/dist/generated/instructions/createV2.js.map +1 -1
- package/dist/generated/instructions/decompressV1.d.ts +46 -63
- package/dist/generated/instructions/decompressV1.d.ts.map +1 -1
- package/dist/generated/instructions/decompressV1.js +89 -89
- package/dist/generated/instructions/decompressV1.js.map +1 -1
- package/dist/generated/instructions/executeV1.d.ts +69 -68
- package/dist/generated/instructions/executeV1.d.ts.map +1 -1
- package/dist/generated/instructions/executeV1.js +155 -97
- package/dist/generated/instructions/executeV1.js.map +1 -1
- package/dist/generated/instructions/index.d.ts +42 -50
- package/dist/generated/instructions/removeAssetsFromGroupV1.d.ts +40 -53
- package/dist/generated/instructions/removeAssetsFromGroupV1.d.ts.map +1 -1
- package/dist/generated/instructions/removeAssetsFromGroupV1.js +77 -86
- package/dist/generated/instructions/removeAssetsFromGroupV1.js.map +1 -1
- package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.d.ts +43 -58
- package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.d.ts.map +1 -1
- package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.js +83 -95
- package/dist/generated/instructions/removeCollectionExternalPluginAdapterV1.js.map +1 -1
- package/dist/generated/instructions/removeCollectionPluginV1.d.ts +43 -58
- package/dist/generated/instructions/removeCollectionPluginV1.d.ts.map +1 -1
- package/dist/generated/instructions/removeCollectionPluginV1.js +83 -92
- package/dist/generated/instructions/removeCollectionPluginV1.js.map +1 -1
- package/dist/generated/instructions/removeCollectionsFromGroupV1.d.ts +40 -53
- package/dist/generated/instructions/removeCollectionsFromGroupV1.d.ts.map +1 -1
- package/dist/generated/instructions/removeCollectionsFromGroupV1.js +77 -92
- package/dist/generated/instructions/removeCollectionsFromGroupV1.js.map +1 -1
- package/dist/generated/instructions/removeExternalPluginAdapterV1.d.ts +46 -63
- package/dist/generated/instructions/removeExternalPluginAdapterV1.d.ts.map +1 -1
- package/dist/generated/instructions/removeExternalPluginAdapterV1.js +89 -98
- package/dist/generated/instructions/removeExternalPluginAdapterV1.js.map +1 -1
- package/dist/generated/instructions/removeGroupsFromGroupV1.d.ts +40 -53
- package/dist/generated/instructions/removeGroupsFromGroupV1.d.ts.map +1 -1
- package/dist/generated/instructions/removeGroupsFromGroupV1.js +77 -86
- package/dist/generated/instructions/removeGroupsFromGroupV1.js.map +1 -1
- package/dist/generated/instructions/removePluginV1.d.ts +46 -63
- package/dist/generated/instructions/removePluginV1.d.ts.map +1 -1
- package/dist/generated/instructions/removePluginV1.js +89 -89
- package/dist/generated/instructions/removePluginV1.js.map +1 -1
- package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.d.ts +43 -58
- package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.d.ts.map +1 -1
- package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.js +83 -95
- package/dist/generated/instructions/revokeCollectionPluginAuthorityV1.js.map +1 -1
- package/dist/generated/instructions/revokePluginAuthorityV1.d.ts +46 -63
- package/dist/generated/instructions/revokePluginAuthorityV1.d.ts.map +1 -1
- package/dist/generated/instructions/revokePluginAuthorityV1.js +89 -92
- package/dist/generated/instructions/revokePluginAuthorityV1.js.map +1 -1
- package/dist/generated/instructions/transferV1.d.ts +49 -68
- package/dist/generated/instructions/transferV1.d.ts.map +1 -1
- package/dist/generated/instructions/transferV1.js +94 -87
- package/dist/generated/instructions/transferV1.js.map +1 -1
- package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.d.ts +43 -58
- package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.d.ts.map +1 -1
- package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.js +83 -95
- package/dist/generated/instructions/updateCollectionExternalPluginAdapterV1.js.map +1 -1
- package/dist/generated/instructions/updateCollectionInfoV1.d.ts +34 -43
- package/dist/generated/instructions/updateCollectionInfoV1.d.ts.map +1 -1
- package/dist/generated/instructions/updateCollectionInfoV1.js +57 -72
- package/dist/generated/instructions/updateCollectionInfoV1.js.map +1 -1
- package/dist/generated/instructions/updateCollectionPluginV1.d.ts +43 -58
- package/dist/generated/instructions/updateCollectionPluginV1.d.ts.map +1 -1
- package/dist/generated/instructions/updateCollectionPluginV1.js +83 -92
- package/dist/generated/instructions/updateCollectionPluginV1.js.map +1 -1
- package/dist/generated/instructions/updateCollectionV1.d.ts +46 -63
- package/dist/generated/instructions/updateCollectionV1.d.ts.map +1 -1
- package/dist/generated/instructions/updateCollectionV1.js +89 -95
- package/dist/generated/instructions/updateCollectionV1.js.map +1 -1
- package/dist/generated/instructions/updateExternalPluginAdapterV1.d.ts +46 -63
- package/dist/generated/instructions/updateExternalPluginAdapterV1.d.ts.map +1 -1
- package/dist/generated/instructions/updateExternalPluginAdapterV1.js +89 -98
- package/dist/generated/instructions/updateExternalPluginAdapterV1.js.map +1 -1
- package/dist/generated/instructions/updateGroupV1.d.ts +43 -58
- package/dist/generated/instructions/updateGroupV1.d.ts.map +1 -1
- package/dist/generated/instructions/updateGroupV1.js +83 -89
- package/dist/generated/instructions/updateGroupV1.js.map +1 -1
- package/dist/generated/instructions/updatePluginV1.d.ts +46 -63
- package/dist/generated/instructions/updatePluginV1.d.ts.map +1 -1
- package/dist/generated/instructions/updatePluginV1.js +89 -89
- package/dist/generated/instructions/updatePluginV1.js.map +1 -1
- package/dist/generated/instructions/updateV1.d.ts +46 -63
- package/dist/generated/instructions/updateV1.d.ts.map +1 -1
- package/dist/generated/instructions/updateV1.js +89 -89
- package/dist/generated/instructions/updateV1.js.map +1 -1
- package/dist/generated/instructions/updateV2.d.ts +49 -68
- package/dist/generated/instructions/updateV2.d.ts.map +1 -1
- package/dist/generated/instructions/updateV2.js +95 -92
- package/dist/generated/instructions/updateV2.js.map +1 -1
- package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.d.ts +46 -63
- package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.d.ts.map +1 -1
- package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.js +89 -98
- package/dist/generated/instructions/writeCollectionExternalPluginAdapterDataV1.js.map +1 -1
- package/dist/generated/instructions/writeExternalPluginAdapterDataV1.d.ts +49 -68
- package/dist/generated/instructions/writeExternalPluginAdapterDataV1.d.ts.map +1 -1
- package/dist/generated/instructions/writeExternalPluginAdapterDataV1.js +95 -101
- package/dist/generated/instructions/writeExternalPluginAdapterDataV1.js.map +1 -1
- package/dist/generated/pdas/assetSigner.d.ts +14 -0
- package/dist/generated/pdas/assetSigner.d.ts.map +1 -0
- package/dist/generated/pdas/assetSigner.js +14 -0
- package/dist/generated/pdas/assetSigner.js.map +1 -0
- package/dist/generated/pdas/index.d.ts +1 -0
- package/dist/generated/programs/index.d.ts +1 -9
- package/dist/generated/programs/mplCoreProgram.d.ts +212 -167
- package/dist/generated/programs/mplCoreProgram.d.ts.map +1 -1
- package/dist/generated/programs/mplCoreProgram.js +596 -677
- package/dist/generated/programs/mplCoreProgram.js.map +1 -1
- package/dist/generated/types/addAssetsToGroupV1Args.d.ts +10 -13
- package/dist/generated/types/addAssetsToGroupV1Args.d.ts.map +1 -1
- package/dist/generated/types/addAssetsToGroupV1Args.js +10 -13
- package/dist/generated/types/addAssetsToGroupV1Args.js.map +1 -1
- package/dist/generated/types/addBlocker.d.ts +10 -13
- package/dist/generated/types/addBlocker.d.ts.map +1 -1
- package/dist/generated/types/addBlocker.js +10 -13
- package/dist/generated/types/addBlocker.js.map +1 -1
- package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.d.ts +13 -16
- package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.d.ts.map +1 -1
- package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.js +11 -18
- package/dist/generated/types/addCollectionExternalPluginAdapterV1Args.js.map +1 -1
- package/dist/generated/types/addCollectionPluginV1Args.d.ts +16 -18
- package/dist/generated/types/addCollectionPluginV1Args.d.ts.map +1 -1
- package/dist/generated/types/addCollectionPluginV1Args.js +13 -21
- package/dist/generated/types/addCollectionPluginV1Args.js.map +1 -1
- package/dist/generated/types/addCollectionsToGroupV1Args.d.ts +10 -13
- package/dist/generated/types/addCollectionsToGroupV1Args.d.ts.map +1 -1
- package/dist/generated/types/addCollectionsToGroupV1Args.js +10 -13
- package/dist/generated/types/addCollectionsToGroupV1Args.js.map +1 -1
- package/dist/generated/types/addExternalPluginAdapterV1Args.d.ts +13 -16
- package/dist/generated/types/addExternalPluginAdapterV1Args.d.ts.map +1 -1
- package/dist/generated/types/addExternalPluginAdapterV1Args.js +11 -18
- package/dist/generated/types/addExternalPluginAdapterV1Args.js.map +1 -1
- package/dist/generated/types/addGroupsToGroupV1Args.d.ts +11 -14
- package/dist/generated/types/addGroupsToGroupV1Args.d.ts.map +1 -1
- package/dist/generated/types/addGroupsToGroupV1Args.js +11 -14
- package/dist/generated/types/addGroupsToGroupV1Args.js.map +1 -1
- package/dist/generated/types/addPluginV1Args.d.ts +16 -18
- package/dist/generated/types/addPluginV1Args.d.ts.map +1 -1
- package/dist/generated/types/addPluginV1Args.js +13 -21
- package/dist/generated/types/addPluginV1Args.js.map +1 -1
- package/dist/generated/types/agentIdentity.d.ts +11 -14
- package/dist/generated/types/agentIdentity.d.ts.map +1 -1
- package/dist/generated/types/agentIdentity.js +11 -18
- package/dist/generated/types/agentIdentity.js.map +1 -1
- package/dist/generated/types/agentIdentityInitInfo.d.ts +19 -20
- package/dist/generated/types/agentIdentityInitInfo.d.ts.map +1 -1
- package/dist/generated/types/agentIdentityInitInfo.js +22 -35
- package/dist/generated/types/agentIdentityInitInfo.js.map +1 -1
- package/dist/generated/types/agentIdentityUpdateInfo.d.ts +16 -18
- package/dist/generated/types/agentIdentityUpdateInfo.d.ts.map +1 -1
- package/dist/generated/types/agentIdentityUpdateInfo.js +13 -39
- package/dist/generated/types/agentIdentityUpdateInfo.js.map +1 -1
- package/dist/generated/types/appData.d.ts +16 -18
- package/dist/generated/types/appData.d.ts.map +1 -1
- package/dist/generated/types/appData.js +12 -20
- package/dist/generated/types/appData.js.map +1 -1
- package/dist/generated/types/appDataInitInfo.d.ts +18 -20
- package/dist/generated/types/appDataInitInfo.d.ts.map +1 -1
- package/dist/generated/types/appDataInitInfo.js +21 -23
- package/dist/generated/types/appDataInitInfo.js.map +1 -1
- package/dist/generated/types/appDataUpdateInfo.d.ts +13 -16
- package/dist/generated/types/appDataUpdateInfo.d.ts.map +1 -1
- package/dist/generated/types/appDataUpdateInfo.js +12 -19
- package/dist/generated/types/appDataUpdateInfo.js.map +1 -1
- package/dist/generated/types/approveCollectionPluginAuthorityV1Args.d.ts +16 -18
- package/dist/generated/types/approveCollectionPluginAuthorityV1Args.d.ts.map +1 -1
- package/dist/generated/types/approveCollectionPluginAuthorityV1Args.js +12 -20
- package/dist/generated/types/approveCollectionPluginAuthorityV1Args.js.map +1 -1
- package/dist/generated/types/approvePluginAuthorityV1Args.d.ts +16 -18
- package/dist/generated/types/approvePluginAuthorityV1Args.d.ts.map +1 -1
- package/dist/generated/types/approvePluginAuthorityV1Args.js +12 -20
- package/dist/generated/types/approvePluginAuthorityV1Args.js.map +1 -1
- package/dist/generated/types/attribute.d.ts +12 -15
- package/dist/generated/types/attribute.d.ts.map +1 -1
- package/dist/generated/types/attribute.js +11 -20
- package/dist/generated/types/attribute.js.map +1 -1
- package/dist/generated/types/attributes.d.ts +13 -16
- package/dist/generated/types/attributes.d.ts.map +1 -1
- package/dist/generated/types/attributes.js +12 -19
- package/dist/generated/types/attributes.js.map +1 -1
- package/dist/generated/types/authority.d.ts +21 -24
- package/dist/generated/types/authority.d.ts.map +1 -1
- package/dist/generated/types/authority.js +31 -30
- package/dist/generated/types/authority.js.map +1 -1
- package/dist/generated/types/autograph.d.ts +13 -16
- package/dist/generated/types/autograph.d.ts.map +1 -1
- package/dist/generated/types/autograph.js +12 -19
- package/dist/generated/types/autograph.js.map +1 -1
- package/dist/generated/types/autographSignature.d.ts +12 -15
- package/dist/generated/types/autographSignature.d.ts.map +1 -1
- package/dist/generated/types/autographSignature.js +11 -20
- package/dist/generated/types/autographSignature.js.map +1 -1
- package/dist/generated/types/bubblegumV2.d.ts +10 -13
- package/dist/generated/types/bubblegumV2.d.ts.map +1 -1
- package/dist/generated/types/bubblegumV2.js +10 -13
- package/dist/generated/types/bubblegumV2.js.map +1 -1
- package/dist/generated/types/burnCollectionV1Args.d.ts +13 -16
- package/dist/generated/types/burnCollectionV1Args.d.ts.map +1 -1
- package/dist/generated/types/burnCollectionV1Args.js +12 -19
- package/dist/generated/types/burnCollectionV1Args.js.map +1 -1
- package/dist/generated/types/burnDelegate.d.ts +10 -13
- package/dist/generated/types/burnDelegate.d.ts.map +1 -1
- package/dist/generated/types/burnDelegate.js +10 -13
- package/dist/generated/types/burnDelegate.js.map +1 -1
- package/dist/generated/types/burnV1Args.d.ts +13 -16
- package/dist/generated/types/burnV1Args.d.ts.map +1 -1
- package/dist/generated/types/burnV1Args.js +12 -19
- package/dist/generated/types/burnV1Args.js.map +1 -1
- package/dist/generated/types/closeGroupV1Args.d.ts +10 -13
- package/dist/generated/types/closeGroupV1Args.d.ts.map +1 -1
- package/dist/generated/types/closeGroupV1Args.js +10 -13
- package/dist/generated/types/closeGroupV1Args.js.map +1 -1
- package/dist/generated/types/compressV1Args.d.ts +10 -13
- package/dist/generated/types/compressV1Args.d.ts.map +1 -1
- package/dist/generated/types/compressV1Args.js +10 -13
- package/dist/generated/types/compressV1Args.js.map +1 -1
- package/dist/generated/types/compressionProof.d.ts +24 -26
- package/dist/generated/types/compressionProof.d.ts.map +1 -1
- package/dist/generated/types/compressionProof.js +27 -29
- package/dist/generated/types/compressionProof.js.map +1 -1
- package/dist/generated/types/createCollectionV1Args.d.ts +17 -20
- package/dist/generated/types/createCollectionV1Args.d.ts.map +1 -1
- package/dist/generated/types/createCollectionV1Args.js +20 -29
- package/dist/generated/types/createCollectionV1Args.js.map +1 -1
- package/dist/generated/types/createCollectionV2Args.d.ts +20 -22
- package/dist/generated/types/createCollectionV2Args.d.ts.map +1 -1
- package/dist/generated/types/createCollectionV2Args.js +23 -37
- package/dist/generated/types/createCollectionV2Args.js.map +1 -1
- package/dist/generated/types/createGroupV1Args.d.ts +17 -20
- package/dist/generated/types/createGroupV1Args.d.ts.map +1 -1
- package/dist/generated/types/createGroupV1Args.js +20 -23
- package/dist/generated/types/createGroupV1Args.js.map +1 -1
- package/dist/generated/types/createV1Args.d.ts +20 -22
- package/dist/generated/types/createV1Args.d.ts.map +1 -1
- package/dist/generated/types/createV1Args.js +23 -31
- package/dist/generated/types/createV1Args.js.map +1 -1
- package/dist/generated/types/createV2Args.d.ts +23 -24
- package/dist/generated/types/createV2Args.d.ts.map +1 -1
- package/dist/generated/types/createV2Args.js +26 -39
- package/dist/generated/types/createV2Args.js.map +1 -1
- package/dist/generated/types/creator.d.ts +12 -15
- package/dist/generated/types/creator.d.ts.map +1 -1
- package/dist/generated/types/creator.js +11 -20
- package/dist/generated/types/creator.js.map +1 -1
- package/dist/generated/types/dataSection.d.ts +16 -18
- package/dist/generated/types/dataSection.d.ts.map +1 -1
- package/dist/generated/types/dataSection.js +12 -20
- package/dist/generated/types/dataSection.js.map +1 -1
- package/dist/generated/types/dataSectionInitInfo.d.ts +16 -18
- package/dist/generated/types/dataSectionInitInfo.d.ts.map +1 -1
- package/dist/generated/types/dataSectionInitInfo.js +12 -20
- package/dist/generated/types/dataSectionInitInfo.js.map +1 -1
- package/dist/generated/types/dataSectionUpdateInfo.d.ts +10 -13
- package/dist/generated/types/dataSectionUpdateInfo.d.ts.map +1 -1
- package/dist/generated/types/dataSectionUpdateInfo.js +10 -13
- package/dist/generated/types/dataSectionUpdateInfo.js.map +1 -1
- package/dist/generated/types/dataState.d.ts +12 -15
- package/dist/generated/types/dataState.d.ts.map +1 -1
- package/dist/generated/types/dataState.js +15 -18
- package/dist/generated/types/dataState.js.map +1 -1
- package/dist/generated/types/decompressV1Args.d.ts +13 -16
- package/dist/generated/types/decompressV1Args.d.ts.map +1 -1
- package/dist/generated/types/decompressV1Args.js +11 -14
- package/dist/generated/types/decompressV1Args.js.map +1 -1
- package/dist/generated/types/edition.d.ts +11 -14
- package/dist/generated/types/edition.d.ts.map +1 -1
- package/dist/generated/types/edition.js +11 -14
- package/dist/generated/types/edition.js.map +1 -1
- package/dist/generated/types/executeV1Args.d.ts +11 -14
- package/dist/generated/types/executeV1Args.d.ts.map +1 -1
- package/dist/generated/types/executeV1Args.js +11 -24
- package/dist/generated/types/executeV1Args.js.map +1 -1
- package/dist/generated/types/externalCheckResult.d.ts +11 -14
- package/dist/generated/types/externalCheckResult.d.ts.map +1 -1
- package/dist/generated/types/externalCheckResult.js +11 -14
- package/dist/generated/types/externalCheckResult.js.map +1 -1
- package/dist/generated/types/externalPluginAdapter.d.ts +54 -51
- package/dist/generated/types/externalPluginAdapter.d.ts.map +1 -1
- package/dist/generated/types/externalPluginAdapter.js +44 -99
- package/dist/generated/types/externalPluginAdapter.js.map +1 -1
- package/dist/generated/types/externalPluginAdapterInitInfo.d.ts +54 -51
- package/dist/generated/types/externalPluginAdapterInitInfo.d.ts.map +1 -1
- package/dist/generated/types/externalPluginAdapterInitInfo.js +44 -107
- package/dist/generated/types/externalPluginAdapterInitInfo.js.map +1 -1
- package/dist/generated/types/externalPluginAdapterKey.d.ts +47 -49
- package/dist/generated/types/externalPluginAdapterKey.d.ts.map +1 -1
- package/dist/generated/types/externalPluginAdapterKey.js +39 -77
- package/dist/generated/types/externalPluginAdapterKey.js.map +1 -1
- package/dist/generated/types/externalPluginAdapterSchema.d.ts +13 -16
- package/dist/generated/types/externalPluginAdapterSchema.d.ts.map +1 -1
- package/dist/generated/types/externalPluginAdapterSchema.js +16 -19
- package/dist/generated/types/externalPluginAdapterSchema.js.map +1 -1
- package/dist/generated/types/externalPluginAdapterType.d.ts +17 -20
- package/dist/generated/types/externalPluginAdapterType.d.ts.map +1 -1
- package/dist/generated/types/externalPluginAdapterType.js +20 -23
- package/dist/generated/types/externalPluginAdapterType.js.map +1 -1
- package/dist/generated/types/externalPluginAdapterUpdateInfo.d.ts +53 -51
- package/dist/generated/types/externalPluginAdapterUpdateInfo.d.ts.map +1 -1
- package/dist/generated/types/externalPluginAdapterUpdateInfo.js +41 -101
- package/dist/generated/types/externalPluginAdapterUpdateInfo.js.map +1 -1
- package/dist/generated/types/externalRegistryRecord.d.ts +26 -26
- package/dist/generated/types/externalRegistryRecord.d.ts.map +1 -1
- package/dist/generated/types/externalRegistryRecord.js +29 -41
- package/dist/generated/types/externalRegistryRecord.js.map +1 -1
- package/dist/generated/types/externalValidationResult.d.ts +13 -16
- package/dist/generated/types/externalValidationResult.d.ts.map +1 -1
- package/dist/generated/types/externalValidationResult.js +16 -19
- package/dist/generated/types/externalValidationResult.js.map +1 -1
- package/dist/generated/types/extraAccount.d.ts +68 -71
- package/dist/generated/types/extraAccount.d.ts.map +1 -1
- package/dist/generated/types/extraAccount.js +56 -127
- package/dist/generated/types/extraAccount.js.map +1 -1
- package/dist/generated/types/freezeDelegate.d.ts +11 -14
- package/dist/generated/types/freezeDelegate.d.ts.map +1 -1
- package/dist/generated/types/freezeDelegate.js +11 -14
- package/dist/generated/types/freezeDelegate.js.map +1 -1
- package/dist/generated/types/freezeExecute.d.ts +11 -14
- package/dist/generated/types/freezeExecute.d.ts.map +1 -1
- package/dist/generated/types/freezeExecute.js +11 -14
- package/dist/generated/types/freezeExecute.js.map +1 -1
- package/dist/generated/types/groups.d.ts +11 -14
- package/dist/generated/types/groups.d.ts.map +1 -1
- package/dist/generated/types/groups.js +11 -14
- package/dist/generated/types/groups.js.map +1 -1
- package/dist/generated/types/hashablePluginSchema.d.ts +18 -20
- package/dist/generated/types/hashablePluginSchema.d.ts.map +1 -1
- package/dist/generated/types/hashablePluginSchema.js +21 -23
- package/dist/generated/types/hashablePluginSchema.js.map +1 -1
- package/dist/generated/types/hashedAssetSchema.d.ts +12 -15
- package/dist/generated/types/hashedAssetSchema.d.ts.map +1 -1
- package/dist/generated/types/hashedAssetSchema.js +11 -26
- package/dist/generated/types/hashedAssetSchema.js.map +1 -1
- package/dist/generated/types/hookableLifecycleEvent.d.ts +15 -18
- package/dist/generated/types/hookableLifecycleEvent.d.ts.map +1 -1
- package/dist/generated/types/hookableLifecycleEvent.js +18 -21
- package/dist/generated/types/hookableLifecycleEvent.js.map +1 -1
- package/dist/generated/types/immutableMetadata.d.ts +10 -13
- package/dist/generated/types/immutableMetadata.d.ts.map +1 -1
- package/dist/generated/types/immutableMetadata.js +10 -13
- package/dist/generated/types/immutableMetadata.js.map +1 -1
- package/dist/generated/types/index.d.ts +116 -125
- package/dist/generated/types/key.d.ts +17 -20
- package/dist/generated/types/key.d.ts.map +1 -1
- package/dist/generated/types/key.js +20 -23
- package/dist/generated/types/key.js.map +1 -1
- package/dist/generated/types/lifecycleHook.d.ts +21 -22
- package/dist/generated/types/lifecycleHook.d.ts.map +1 -1
- package/dist/generated/types/lifecycleHook.js +24 -31
- package/dist/generated/types/lifecycleHook.js.map +1 -1
- package/dist/generated/types/lifecycleHookInitInfo.d.ts +27 -26
- package/dist/generated/types/lifecycleHookInitInfo.d.ts.map +1 -1
- package/dist/generated/types/lifecycleHookInitInfo.js +30 -47
- package/dist/generated/types/lifecycleHookInitInfo.js.map +1 -1
- package/dist/generated/types/lifecycleHookUpdateInfo.d.ts +20 -20
- package/dist/generated/types/lifecycleHookUpdateInfo.d.ts.map +1 -1
- package/dist/generated/types/lifecycleHookUpdateInfo.js +23 -41
- package/dist/generated/types/lifecycleHookUpdateInfo.js.map +1 -1
- package/dist/generated/types/linkedAppData.d.ts +16 -18
- package/dist/generated/types/linkedAppData.d.ts.map +1 -1
- package/dist/generated/types/linkedAppData.js +12 -20
- package/dist/generated/types/linkedAppData.js.map +1 -1
- package/dist/generated/types/linkedAppDataInitInfo.d.ts +18 -20
- package/dist/generated/types/linkedAppDataInitInfo.d.ts.map +1 -1
- package/dist/generated/types/linkedAppDataInitInfo.js +21 -23
- package/dist/generated/types/linkedAppDataInitInfo.js.map +1 -1
- package/dist/generated/types/linkedAppDataUpdateInfo.d.ts +13 -16
- package/dist/generated/types/linkedAppDataUpdateInfo.d.ts.map +1 -1
- package/dist/generated/types/linkedAppDataUpdateInfo.js +12 -19
- package/dist/generated/types/linkedAppDataUpdateInfo.js.map +1 -1
- package/dist/generated/types/linkedDataKey.d.ts +23 -26
- package/dist/generated/types/linkedDataKey.d.ts.map +1 -1
- package/dist/generated/types/linkedDataKey.js +22 -39
- package/dist/generated/types/linkedDataKey.js.map +1 -1
- package/dist/generated/types/linkedLifecycleHook.d.ts +21 -22
- package/dist/generated/types/linkedLifecycleHook.d.ts.map +1 -1
- package/dist/generated/types/linkedLifecycleHook.js +24 -31
- package/dist/generated/types/linkedLifecycleHook.js.map +1 -1
- package/dist/generated/types/linkedLifecycleHookInitInfo.d.ts +27 -26
- package/dist/generated/types/linkedLifecycleHookInitInfo.d.ts.map +1 -1
- package/dist/generated/types/linkedLifecycleHookInitInfo.js +30 -47
- package/dist/generated/types/linkedLifecycleHookInitInfo.js.map +1 -1
- package/dist/generated/types/linkedLifecycleHookUpdateInfo.d.ts +20 -20
- package/dist/generated/types/linkedLifecycleHookUpdateInfo.d.ts.map +1 -1
- package/dist/generated/types/linkedLifecycleHookUpdateInfo.js +23 -41
- package/dist/generated/types/linkedLifecycleHookUpdateInfo.js.map +1 -1
- package/dist/generated/types/masterEdition.d.ts +16 -19
- package/dist/generated/types/masterEdition.d.ts.map +1 -1
- package/dist/generated/types/masterEdition.js +19 -34
- package/dist/generated/types/masterEdition.js.map +1 -1
- package/dist/generated/types/oracle.d.ts +18 -20
- package/dist/generated/types/oracle.d.ts.map +1 -1
- package/dist/generated/types/oracle.js +21 -23
- package/dist/generated/types/oracle.js.map +1 -1
- package/dist/generated/types/oracleInitInfo.d.ts +25 -24
- package/dist/generated/types/oracleInitInfo.d.ts.map +1 -1
- package/dist/generated/types/oracleInitInfo.js +28 -39
- package/dist/generated/types/oracleInitInfo.js.map +1 -1
- package/dist/generated/types/oracleUpdateInfo.d.ts +20 -20
- package/dist/generated/types/oracleUpdateInfo.d.ts.map +1 -1
- package/dist/generated/types/oracleUpdateInfo.js +23 -35
- package/dist/generated/types/oracleUpdateInfo.js.map +1 -1
- package/dist/generated/types/oracleValidation.d.ts +27 -30
- package/dist/generated/types/oracleValidation.d.ts.map +1 -1
- package/dist/generated/types/oracleValidation.js +32 -43
- package/dist/generated/types/oracleValidation.js.map +1 -1
- package/dist/generated/types/permanentBurnDelegate.d.ts +10 -13
- package/dist/generated/types/permanentBurnDelegate.d.ts.map +1 -1
- package/dist/generated/types/permanentBurnDelegate.js +10 -13
- package/dist/generated/types/permanentBurnDelegate.js.map +1 -1
- package/dist/generated/types/permanentFreezeDelegate.d.ts +11 -14
- package/dist/generated/types/permanentFreezeDelegate.d.ts.map +1 -1
- package/dist/generated/types/permanentFreezeDelegate.js +11 -14
- package/dist/generated/types/permanentFreezeDelegate.js.map +1 -1
- package/dist/generated/types/permanentFreezeExecute.d.ts +11 -14
- package/dist/generated/types/permanentFreezeExecute.d.ts.map +1 -1
- package/dist/generated/types/permanentFreezeExecute.js +11 -14
- package/dist/generated/types/permanentFreezeExecute.js.map +1 -1
- package/dist/generated/types/permanentTransferDelegate.d.ts +10 -13
- package/dist/generated/types/permanentTransferDelegate.d.ts.map +1 -1
- package/dist/generated/types/permanentTransferDelegate.js +10 -13
- package/dist/generated/types/permanentTransferDelegate.js.map +1 -1
- package/dist/generated/types/plugin.d.ts +144 -129
- package/dist/generated/types/plugin.d.ts.map +1 -1
- package/dist/generated/types/plugin.js +80 -227
- package/dist/generated/types/plugin.js.map +1 -1
- package/dist/generated/types/pluginAuthorityPair.d.ts +16 -18
- package/dist/generated/types/pluginAuthorityPair.d.ts.map +1 -1
- package/dist/generated/types/pluginAuthorityPair.js +13 -21
- package/dist/generated/types/pluginAuthorityPair.js.map +1 -1
- package/dist/generated/types/pluginType.d.ts +29 -32
- package/dist/generated/types/pluginType.d.ts.map +1 -1
- package/dist/generated/types/pluginType.js +32 -35
- package/dist/generated/types/pluginType.js.map +1 -1
- package/dist/generated/types/registryRecord.d.ts +18 -20
- package/dist/generated/types/registryRecord.d.ts.map +1 -1
- package/dist/generated/types/registryRecord.js +21 -23
- package/dist/generated/types/registryRecord.js.map +1 -1
- package/dist/generated/types/relationshipEntry.d.ts +15 -18
- package/dist/generated/types/relationshipEntry.d.ts.map +1 -1
- package/dist/generated/types/relationshipEntry.js +12 -21
- package/dist/generated/types/relationshipEntry.js.map +1 -1
- package/dist/generated/types/relationshipKind.d.ts +14 -17
- package/dist/generated/types/relationshipKind.d.ts.map +1 -1
- package/dist/generated/types/relationshipKind.js +17 -20
- package/dist/generated/types/relationshipKind.js.map +1 -1
- package/dist/generated/types/removeAssetsFromGroupV1Args.d.ts +11 -14
- package/dist/generated/types/removeAssetsFromGroupV1Args.d.ts.map +1 -1
- package/dist/generated/types/removeAssetsFromGroupV1Args.js +11 -14
- package/dist/generated/types/removeAssetsFromGroupV1Args.js.map +1 -1
- package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.d.ts +13 -16
- package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.d.ts.map +1 -1
- package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.js +11 -14
- package/dist/generated/types/removeCollectionExternalPluginAdapterV1Args.js.map +1 -1
- package/dist/generated/types/removeCollectionPluginV1Args.d.ts +13 -16
- package/dist/generated/types/removeCollectionPluginV1Args.d.ts.map +1 -1
- package/dist/generated/types/removeCollectionPluginV1Args.js +11 -14
- package/dist/generated/types/removeCollectionPluginV1Args.js.map +1 -1
- package/dist/generated/types/removeCollectionsFromGroupV1Args.d.ts +11 -14
- package/dist/generated/types/removeCollectionsFromGroupV1Args.d.ts.map +1 -1
- package/dist/generated/types/removeCollectionsFromGroupV1Args.js +11 -18
- package/dist/generated/types/removeCollectionsFromGroupV1Args.js.map +1 -1
- package/dist/generated/types/removeExternalPluginAdapterV1Args.d.ts +13 -16
- package/dist/generated/types/removeExternalPluginAdapterV1Args.d.ts.map +1 -1
- package/dist/generated/types/removeExternalPluginAdapterV1Args.js +11 -14
- package/dist/generated/types/removeExternalPluginAdapterV1Args.js.map +1 -1
- package/dist/generated/types/removeGroupsFromGroupV1Args.d.ts +11 -14
- package/dist/generated/types/removeGroupsFromGroupV1Args.d.ts.map +1 -1
- package/dist/generated/types/removeGroupsFromGroupV1Args.js +11 -14
- package/dist/generated/types/removeGroupsFromGroupV1Args.js.map +1 -1
- package/dist/generated/types/removePluginV1Args.d.ts +13 -16
- package/dist/generated/types/removePluginV1Args.d.ts.map +1 -1
- package/dist/generated/types/removePluginV1Args.js +11 -14
- package/dist/generated/types/removePluginV1Args.js.map +1 -1
- package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.d.ts +13 -16
- package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.d.ts.map +1 -1
- package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.js +11 -14
- package/dist/generated/types/revokeCollectionPluginAuthorityV1Args.js.map +1 -1
- package/dist/generated/types/revokePluginAuthorityV1Args.d.ts +13 -16
- package/dist/generated/types/revokePluginAuthorityV1Args.d.ts.map +1 -1
- package/dist/generated/types/revokePluginAuthorityV1Args.js +11 -14
- package/dist/generated/types/revokePluginAuthorityV1Args.js.map +1 -1
- package/dist/generated/types/royalties.d.ts +18 -20
- package/dist/generated/types/royalties.d.ts.map +1 -1
- package/dist/generated/types/royalties.js +21 -23
- package/dist/generated/types/royalties.js.map +1 -1
- package/dist/generated/types/ruleSet.d.ts +20 -23
- package/dist/generated/types/ruleSet.d.ts.map +1 -1
- package/dist/generated/types/ruleSet.js +29 -48
- package/dist/generated/types/ruleSet.js.map +1 -1
- package/dist/generated/types/seed.d.ts +26 -29
- package/dist/generated/types/seed.d.ts.map +1 -1
- package/dist/generated/types/seed.js +35 -60
- package/dist/generated/types/seed.js.map +1 -1
- package/dist/generated/types/transferDelegate.d.ts +10 -13
- package/dist/generated/types/transferDelegate.d.ts.map +1 -1
- package/dist/generated/types/transferDelegate.js +10 -13
- package/dist/generated/types/transferDelegate.js.map +1 -1
- package/dist/generated/types/transferV1Args.d.ts +13 -16
- package/dist/generated/types/transferV1Args.d.ts.map +1 -1
- package/dist/generated/types/transferV1Args.js +12 -19
- package/dist/generated/types/transferV1Args.js.map +1 -1
- package/dist/generated/types/updateAuthority.d.ts +20 -23
- package/dist/generated/types/updateAuthority.d.ts.map +1 -1
- package/dist/generated/types/updateAuthority.js +29 -40
- package/dist/generated/types/updateAuthority.js.map +1 -1
- package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.d.ts +16 -18
- package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.d.ts.map +1 -1
- package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.js +12 -20
- package/dist/generated/types/updateCollectionExternalPluginAdapterV1Args.js.map +1 -1
- package/dist/generated/types/updateCollectionInfoV1Args.d.ts +15 -18
- package/dist/generated/types/updateCollectionInfoV1Args.d.ts.map +1 -1
- package/dist/generated/types/updateCollectionInfoV1Args.js +12 -21
- package/dist/generated/types/updateCollectionInfoV1Args.js.map +1 -1
- package/dist/generated/types/updateCollectionPluginV1Args.d.ts +13 -16
- package/dist/generated/types/updateCollectionPluginV1Args.d.ts.map +1 -1
- package/dist/generated/types/updateCollectionPluginV1Args.js +11 -14
- package/dist/generated/types/updateCollectionPluginV1Args.js.map +1 -1
- package/dist/generated/types/updateCollectionV1Args.d.ts +14 -17
- package/dist/generated/types/updateCollectionV1Args.d.ts.map +1 -1
- package/dist/generated/types/updateCollectionV1Args.js +11 -32
- package/dist/generated/types/updateCollectionV1Args.js.map +1 -1
- package/dist/generated/types/updateDelegate.d.ts +11 -14
- package/dist/generated/types/updateDelegate.d.ts.map +1 -1
- package/dist/generated/types/updateDelegate.js +11 -18
- package/dist/generated/types/updateDelegate.js.map +1 -1
- package/dist/generated/types/updateExternalPluginAdapterV1Args.d.ts +16 -18
- package/dist/generated/types/updateExternalPluginAdapterV1Args.d.ts.map +1 -1
- package/dist/generated/types/updateExternalPluginAdapterV1Args.js +12 -20
- package/dist/generated/types/updateExternalPluginAdapterV1Args.js.map +1 -1
- package/dist/generated/types/updateGroupV1Args.d.ts +14 -17
- package/dist/generated/types/updateGroupV1Args.d.ts.map +1 -1
- package/dist/generated/types/updateGroupV1Args.js +11 -32
- package/dist/generated/types/updateGroupV1Args.js.map +1 -1
- package/dist/generated/types/updatePluginV1Args.d.ts +13 -16
- package/dist/generated/types/updatePluginV1Args.d.ts.map +1 -1
- package/dist/generated/types/updatePluginV1Args.js +11 -14
- package/dist/generated/types/updatePluginV1Args.js.map +1 -1
- package/dist/generated/types/updateType.d.ts +13 -16
- package/dist/generated/types/updateType.d.ts.map +1 -1
- package/dist/generated/types/updateType.js +16 -19
- package/dist/generated/types/updateType.js.map +1 -1
- package/dist/generated/types/updateV1Args.d.ts +17 -20
- package/dist/generated/types/updateV1Args.d.ts.map +1 -1
- package/dist/generated/types/updateV1Args.js +20 -35
- package/dist/generated/types/updateV1Args.js.map +1 -1
- package/dist/generated/types/updateV2Args.d.ts +17 -20
- package/dist/generated/types/updateV2Args.d.ts.map +1 -1
- package/dist/generated/types/updateV2Args.js +20 -35
- package/dist/generated/types/updateV2Args.js.map +1 -1
- package/dist/generated/types/validationResult.d.ts +14 -17
- package/dist/generated/types/validationResult.d.ts.map +1 -1
- package/dist/generated/types/validationResult.js +17 -20
- package/dist/generated/types/validationResult.js.map +1 -1
- package/dist/generated/types/validationResultsOffset.d.ts +23 -26
- package/dist/generated/types/validationResultsOffset.d.ts.map +1 -1
- package/dist/generated/types/validationResultsOffset.js +29 -34
- package/dist/generated/types/validationResultsOffset.js.map +1 -1
- package/dist/generated/types/verifiedCreators.d.ts +13 -16
- package/dist/generated/types/verifiedCreators.d.ts.map +1 -1
- package/dist/generated/types/verifiedCreators.js +12 -19
- package/dist/generated/types/verifiedCreators.js.map +1 -1
- package/dist/generated/types/verifiedCreatorsSignature.d.ts +12 -15
- package/dist/generated/types/verifiedCreatorsSignature.d.ts.map +1 -1
- package/dist/generated/types/verifiedCreatorsSignature.js +11 -20
- package/dist/generated/types/verifiedCreatorsSignature.js.map +1 -1
- package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.d.ts +15 -18
- package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.d.ts.map +1 -1
- package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.js +12 -27
- package/dist/generated/types/writeCollectionExternalPluginAdapterDataV1Args.js.map +1 -1
- package/dist/generated/types/writeExternalPluginAdapterDataV1Args.d.ts +15 -18
- package/dist/generated/types/writeExternalPluginAdapterDataV1Args.d.ts.map +1 -1
- package/dist/generated/types/writeExternalPluginAdapterDataV1Args.js +12 -27
- package/dist/generated/types/writeExternalPluginAdapterDataV1Args.js.map +1 -1
- package/dist/index.d.ts +168 -8
- package/dist/index.js +168 -8
- package/package.json +7 -5
- package/src/generated/errors/mplCoreProgram.ts +3 -1
- package/src/generated/index.ts +1 -0
- package/src/generated/instructions/addAssetsToGroupV1.ts +5 -5
- package/src/generated/instructions/addCollectionExternalPluginAdapterV1.ts +6 -6
- package/src/generated/instructions/addCollectionPluginV1.ts +6 -6
- package/src/generated/instructions/addCollectionsToGroupV1.ts +5 -5
- package/src/generated/instructions/addExternalPluginAdapterV1.ts +7 -7
- package/src/generated/instructions/addGroupsToGroupV1.ts +5 -5
- package/src/generated/instructions/addPluginV1.ts +7 -7
- package/src/generated/instructions/approveCollectionPluginAuthorityV1.ts +6 -6
- package/src/generated/instructions/approvePluginAuthorityV1.ts +7 -7
- package/src/generated/instructions/burnCollectionV1.ts +5 -5
- package/src/generated/instructions/burnV1.ts +7 -7
- package/src/generated/instructions/closeGroupV1.ts +4 -4
- package/src/generated/instructions/collect.ts +3 -3
- package/src/generated/instructions/compressV1.ts +7 -7
- package/src/generated/instructions/createCollectionV1.ts +5 -5
- package/src/generated/instructions/createCollectionV2.ts +5 -5
- package/src/generated/instructions/createGroupV1.ts +5 -5
- package/src/generated/instructions/createV1.ts +9 -9
- package/src/generated/instructions/createV2.ts +9 -9
- package/src/generated/instructions/decompressV1.ts +7 -7
- package/src/generated/instructions/executeV1.ts +142 -9
- package/src/generated/instructions/removeAssetsFromGroupV1.ts +5 -5
- package/src/generated/instructions/removeCollectionExternalPluginAdapterV1.ts +6 -6
- package/src/generated/instructions/removeCollectionPluginV1.ts +6 -6
- package/src/generated/instructions/removeCollectionsFromGroupV1.ts +5 -5
- package/src/generated/instructions/removeExternalPluginAdapterV1.ts +7 -7
- package/src/generated/instructions/removeGroupsFromGroupV1.ts +5 -5
- package/src/generated/instructions/removePluginV1.ts +7 -7
- package/src/generated/instructions/revokeCollectionPluginAuthorityV1.ts +6 -6
- package/src/generated/instructions/revokePluginAuthorityV1.ts +7 -7
- package/src/generated/instructions/transferV1.ts +8 -8
- package/src/generated/instructions/updateCollectionExternalPluginAdapterV1.ts +6 -6
- package/src/generated/instructions/updateCollectionInfoV1.ts +3 -3
- package/src/generated/instructions/updateCollectionPluginV1.ts +6 -6
- package/src/generated/instructions/updateCollectionV1.ts +7 -7
- package/src/generated/instructions/updateExternalPluginAdapterV1.ts +7 -7
- package/src/generated/instructions/updateGroupV1.ts +6 -6
- package/src/generated/instructions/updatePluginV1.ts +7 -7
- package/src/generated/instructions/updateV1.ts +7 -7
- package/src/generated/instructions/updateV2.ts +8 -8
- package/src/generated/instructions/writeCollectionExternalPluginAdapterDataV1.ts +7 -7
- package/src/generated/instructions/writeExternalPluginAdapterDataV1.ts +8 -8
- package/src/generated/pdas/assetSigner.ts +36 -0
- package/{dist/generated/errors/index.js → src/generated/pdas/index.ts} +2 -2
- package/src/generated/programs/mplCoreProgram.ts +13 -5
- package/dist/.tsbuildinfo +0 -1
- package/dist/generated/accounts/index.d.ts.map +0 -1
- package/dist/generated/accounts/index.js +0 -14
- package/dist/generated/accounts/index.js.map +0 -1
- package/dist/generated/errors/index.d.ts.map +0 -1
- package/dist/generated/errors/index.js.map +0 -1
- package/dist/generated/index.d.ts.map +0 -1
- package/dist/generated/index.js +0 -13
- package/dist/generated/index.js.map +0 -1
- package/dist/generated/instructions/index.d.ts.map +0 -1
- package/dist/generated/instructions/index.js +0 -50
- package/dist/generated/instructions/index.js.map +0 -1
- package/dist/generated/programs/index.d.ts.map +0 -1
- package/dist/generated/programs/index.js +0 -9
- package/dist/generated/programs/index.js.map +0 -1
- package/dist/generated/types/index.d.ts.map +0 -1
- package/dist/generated/types/index.js +0 -125
- package/dist/generated/types/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addPluginV1.js","sourceRoot":"","sources":["../../../src/generated/instructions/addPluginV1.ts"],"names":[],"mappings":"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","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 { AddPluginV1Args, AddPluginV1ArgsArgs } 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 getAddPluginV1ArgsDecoder,\n getAddPluginV1ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const ADD_PLUGIN_V1_DISCRIMINATOR = 2;\n\nexport function getAddPluginV1DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(ADD_PLUGIN_V1_DISCRIMINATOR);\n}\n\nexport type AddPluginV1Instruction<\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 AddPluginV1InstructionData {\n discriminator: number;\n addPluginV1Args: AddPluginV1Args;\n}\n\nexport interface AddPluginV1InstructionDataArgs {\n addPluginV1Args: AddPluginV1ArgsArgs;\n}\n\nexport function getAddPluginV1InstructionDataEncoder(): Encoder<AddPluginV1InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\"addPluginV1Args\", getAddPluginV1ArgsEncoder()],\n ]),\n (value) => ({ ...value, discriminator: ADD_PLUGIN_V1_DISCRIMINATOR }),\n );\n}\n\nexport function getAddPluginV1InstructionDataDecoder(): Decoder<AddPluginV1InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\"addPluginV1Args\", getAddPluginV1ArgsDecoder()],\n ]);\n}\n\nexport function getAddPluginV1InstructionDataCodec(): Codec<\n AddPluginV1InstructionDataArgs,\n AddPluginV1InstructionData\n> {\n return combineCodec(\n getAddPluginV1InstructionDataEncoder(),\n getAddPluginV1InstructionDataDecoder(),\n );\n}\n\nexport interface AddPluginV1Input<\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 addPluginV1Args: AddPluginV1InstructionDataArgs[\"addPluginV1Args\"];\n}\n\nexport function getAddPluginV1Instruction<\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: AddPluginV1Input<\n TAccountAsset,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >,\n config?: { programAddress?: TProgramAddress },\n): AddPluginV1Instruction<\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: getAddPluginV1InstructionDataEncoder().encode(\n args as AddPluginV1InstructionDataArgs,\n ),\n programAddress,\n } as AddPluginV1Instruction<\n TProgramAddress,\n TAccountAsset,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >);\n}\n\nexport interface ParsedAddPluginV1Instruction<\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: AddPluginV1InstructionData;\n}\n\nexport function parseAddPluginV1Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedAddPluginV1Instruction<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: getAddPluginV1InstructionDataDecoder().decode(instruction.data),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"addPluginV1.js","names":[],"sources":["../../../src/generated/instructions/addPluginV1.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n AccountMeta,\n AccountSignerMeta,\n Address,\n Codec,\n Decoder,\n Encoder,\n Instruction,\n InstructionWithAccounts,\n InstructionWithData,\n ReadonlyAccount,\n ReadonlySignerAccount,\n ReadonlyUint8Array,\n TransactionSigner,\n WritableAccount,\n WritableSignerAccount,\n} from \"@solana/kit\";\nimport type { ResolvedInstructionAccount } from \"@solana/program-client-core\";\nimport type { AddPluginV1Args, AddPluginV1ArgsArgs } 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 getAddPluginV1ArgsDecoder,\n getAddPluginV1ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const ADD_PLUGIN_V1_DISCRIMINATOR = 2;\n\nexport function getAddPluginV1DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(ADD_PLUGIN_V1_DISCRIMINATOR);\n}\n\nexport type AddPluginV1Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountAsset extends string | AccountMeta<string> = string,\n TAccountCollection extends string | AccountMeta<string> = string,\n TAccountPayer extends string | AccountMeta<string> = string,\n TAccountAuthority extends string | AccountMeta<string> = string,\n TAccountSystemProgram extends\n | string\n | AccountMeta<string> = \"11111111111111111111111111111111\",\n TAccountLogWrapper extends string | AccountMeta<string> = string,\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountAsset extends string\n ? WritableAccount<TAccountAsset>\n : TAccountAsset,\n TAccountCollection extends string\n ? WritableAccount<TAccountCollection>\n : TAccountCollection,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountAuthority extends string\n ? ReadonlySignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n TAccountLogWrapper extends string\n ? ReadonlyAccount<TAccountLogWrapper>\n : TAccountLogWrapper,\n ...TRemainingAccounts,\n ]\n >;\n\nexport interface AddPluginV1InstructionData {\n discriminator: number;\n addPluginV1Args: AddPluginV1Args;\n}\n\nexport interface AddPluginV1InstructionDataArgs {\n addPluginV1Args: AddPluginV1ArgsArgs;\n}\n\nexport function getAddPluginV1InstructionDataEncoder(): Encoder<AddPluginV1InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\"addPluginV1Args\", getAddPluginV1ArgsEncoder()],\n ]),\n (value) => ({ ...value, discriminator: ADD_PLUGIN_V1_DISCRIMINATOR }),\n );\n}\n\nexport function getAddPluginV1InstructionDataDecoder(): Decoder<AddPluginV1InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\"addPluginV1Args\", getAddPluginV1ArgsDecoder()],\n ]);\n}\n\nexport function getAddPluginV1InstructionDataCodec(): Codec<\n AddPluginV1InstructionDataArgs,\n AddPluginV1InstructionData\n> {\n return combineCodec(\n getAddPluginV1InstructionDataEncoder(),\n getAddPluginV1InstructionDataDecoder(),\n );\n}\n\nexport interface AddPluginV1Input<\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 addPluginV1Args: AddPluginV1InstructionDataArgs[\"addPluginV1Args\"];\n}\n\nexport function getAddPluginV1Instruction<\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: AddPluginV1Input<\n TAccountAsset,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >,\n config?: { programAddress?: TProgramAddress },\n): AddPluginV1Instruction<\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: getAddPluginV1InstructionDataEncoder().encode(\n args as AddPluginV1InstructionDataArgs,\n ),\n programAddress,\n } as AddPluginV1Instruction<\n TProgramAddress,\n TAccountAsset,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >);\n}\n\nexport interface ParsedAddPluginV1Instruction<\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: AddPluginV1InstructionData;\n}\n\nexport function parseAddPluginV1Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedAddPluginV1Instruction<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: getAddPluginV1InstructionDataDecoder().decode(instruction.data),\n };\n}\n"],"mappings":";;;;;AA4CA,MAAa,8BAA8B;AAE3C,SAAgB,mCAAuD;CACrE,OAAO,aAAa,CAAC,CAAC,OAAA,CAAkC;AAC1D;AAkDA,SAAgB,uCAAgF;CAC9F,OAAO,iBACL,iBAAiB,CACf,CAAC,iBAAiB,aAAa,CAAC,GAChC,CAAC,mBAAmB,0BAA0B,CAAC,CACjD,CAAC,IACA,WAAW;EAAE,GAAG;EAAO,eAAA;CAA2C,EACrE;AACF;AAEA,SAAgB,uCAA4E;CAC1F,OAAO,iBAAiB,CACtB,CAAC,iBAAiB,aAAa,CAAC,GAChC,CAAC,mBAAmB,0BAA0B,CAAC,CACjD,CAAC;AACH;AAEA,SAAgB,qCAGd;CACA,OAAO,aACL,qCAAqC,GACrC,qCAAqC,CACvC;AACF;AAyBA,SAAgB,0BASd,OAQA,QASA;CAEA,MAAM,iBACJ,QAAQ,kBAAA;CAWV,MAAM,WAAW;EAPf,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,YAAY;GAAE,OAAO,MAAM,cAAc;GAAM,YAAY;EAAK;EAChE,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,WAAW;GAAE,OAAO,MAAM,aAAa;GAAM,YAAY;EAAM;EAC/D,eAAe;GAAE,OAAO,MAAM,iBAAiB;GAAM,YAAY;EAAM;EACvE,YAAY;GAAE,OAAO,MAAM,cAAc;GAAM,YAAY;EAAM;CAEnC;CAMhC,MAAM,OAAO,EAAE,GAAG,MAAM;CAGxB,IAAI,CAAC,SAAS,cAAc,OAC1B,SAAS,cAAc,QACrB;CAGJ,MAAM,iBAAiB,sBAAsB,gBAAgB,WAAW;CACxE,OAAO,OAAO,OAAO;EACnB,UAAU;GACR,eAAe,SAAS,SAAS,KAAK;GACtC,eAAe,cAAc,SAAS,UAAU;GAChD,eAAe,SAAS,SAAS,KAAK;GACtC,eAAe,aAAa,SAAS,SAAS;GAC9C,eAAe,iBAAiB,SAAS,aAAa;GACtD,eAAe,cAAc,SAAS,UAAU;EAClD;EACA,MAAM,qCAAqC,CAAC,CAAC,OAC3C,IACF;EACA;CACF,CAQC;AACH;AAwBA,SAAgB,4BAId,aAGuD;CACvD,IAAI,YAAY,SAAS,SAAS,GAChC,MAAM,IAAI,YACR,2DACA;EACE,oBAAoB,YAAY,SAAS;EACzC,sBAAsB;CACxB,CACF;CAEF,IAAI,eAAe;CACnB,MAAM,uBAAuB;EAC3B,MAAM,cAAe,YAAY,SAA2B;EAC5D,gBAAgB;EAChB,OAAO;CACT;CACA,MAAM,+BAA+B;EACnC,MAAM,cAAc,eAAe;EACnC,OAAO,YAAY,YAAA,iDACf,KAAA,IACA;CACN;CACA,OAAO;EACL,gBAAgB,YAAY;EAC5B,UAAU;GACR,OAAO,eAAe;GACtB,YAAY,uBAAuB;GACnC,OAAO,eAAe;GACtB,WAAW,uBAAuB;GAClC,eAAe,eAAe;GAC9B,YAAY,uBAAuB;EACrC;EACA,MAAM,qCAAqC,CAAC,CAAC,OAAO,YAAY,IAAI;CACtE;AACF"}
|
|
@@ -1,64 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export declare function getApproveCollectionPluginAuthorityV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
-
export type ApproveCollectionPluginAuthorityV1Instruction<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 ApproveCollectionPluginAuthorityV1InstructionData {
|
|
22
|
-
discriminator: number;
|
|
23
|
-
approveCollectionPluginAuthorityV1Args: ApproveCollectionPluginAuthorityV1Args;
|
|
1
|
+
import { ApproveCollectionPluginAuthorityV1Args, ApproveCollectionPluginAuthorityV1ArgsArgs } from "../types/approveCollectionPluginAuthorityV1Args.js";
|
|
2
|
+
import { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from "../programs/mplCoreProgram.js";
|
|
3
|
+
import { AccountMeta, AccountSignerMeta, Address, Codec, Decoder, Encoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount, WritableSignerAccount } from "@solana/kit";
|
|
4
|
+
|
|
5
|
+
//#region src/generated/instructions/approveCollectionPluginAuthorityV1.d.ts
|
|
6
|
+
declare const APPROVE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR = 9;
|
|
7
|
+
declare function getApproveCollectionPluginAuthorityV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
8
|
+
type ApproveCollectionPluginAuthorityV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountCollection extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountLogWrapper extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountCollection extends string ? WritableAccount<TAccountCollection> : TAccountCollection, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountLogWrapper extends string ? ReadonlyAccount<TAccountLogWrapper> : TAccountLogWrapper, ...TRemainingAccounts]>;
|
|
9
|
+
interface ApproveCollectionPluginAuthorityV1InstructionData {
|
|
10
|
+
discriminator: number;
|
|
11
|
+
approveCollectionPluginAuthorityV1Args: ApproveCollectionPluginAuthorityV1Args;
|
|
24
12
|
}
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
interface ApproveCollectionPluginAuthorityV1InstructionDataArgs {
|
|
14
|
+
approveCollectionPluginAuthorityV1Args: ApproveCollectionPluginAuthorityV1ArgsArgs;
|
|
27
15
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
16
|
+
declare function getApproveCollectionPluginAuthorityV1InstructionDataEncoder(): Encoder<ApproveCollectionPluginAuthorityV1InstructionDataArgs>;
|
|
17
|
+
declare function getApproveCollectionPluginAuthorityV1InstructionDataDecoder(): Decoder<ApproveCollectionPluginAuthorityV1InstructionData>;
|
|
18
|
+
declare function getApproveCollectionPluginAuthorityV1InstructionDataCodec(): Codec<ApproveCollectionPluginAuthorityV1InstructionDataArgs, ApproveCollectionPluginAuthorityV1InstructionData>;
|
|
19
|
+
interface ApproveCollectionPluginAuthorityV1Input<TAccountCollection extends string = string, TAccountPayer extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string, TAccountLogWrapper extends string = string> {
|
|
20
|
+
/** The address of the asset */
|
|
21
|
+
collection: Address<TAccountCollection>;
|
|
22
|
+
/** The account paying for the storage fees */
|
|
23
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
24
|
+
/** The owner or delegate of the asset */
|
|
25
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
26
|
+
/** The system program */
|
|
27
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
28
|
+
/** The SPL Noop Program */
|
|
29
|
+
logWrapper?: Address<TAccountLogWrapper>;
|
|
30
|
+
approveCollectionPluginAuthorityV1Args: ApproveCollectionPluginAuthorityV1InstructionDataArgs["approveCollectionPluginAuthorityV1Args"];
|
|
43
31
|
}
|
|
44
|
-
|
|
45
|
-
|
|
32
|
+
declare function getApproveCollectionPluginAuthorityV1Instruction<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: ApproveCollectionPluginAuthorityV1Input<TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>, config?: {
|
|
33
|
+
programAddress?: TProgramAddress;
|
|
46
34
|
}): ApproveCollectionPluginAuthorityV1Instruction<TProgramAddress, TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
systemProgram: TAccountMetas[3];
|
|
58
|
-
/** The SPL Noop Program */
|
|
59
|
-
logWrapper?: TAccountMetas[4] | undefined;
|
|
60
|
-
};
|
|
61
|
-
data: ApproveCollectionPluginAuthorityV1InstructionData;
|
|
35
|
+
interface ParsedApproveCollectionPluginAuthorityV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> {
|
|
36
|
+
programAddress: Address<TProgram>;
|
|
37
|
+
accounts: {
|
|
38
|
+
/** The address of the asset */collection: TAccountMetas[0]; /** The account paying for the storage fees */
|
|
39
|
+
payer: TAccountMetas[1]; /** The owner or delegate of the asset */
|
|
40
|
+
authority?: TAccountMetas[2] | undefined; /** The system program */
|
|
41
|
+
systemProgram: TAccountMetas[3]; /** The SPL Noop Program */
|
|
42
|
+
logWrapper?: TAccountMetas[4] | undefined;
|
|
43
|
+
};
|
|
44
|
+
data: ApproveCollectionPluginAuthorityV1InstructionData;
|
|
62
45
|
}
|
|
63
|
-
|
|
46
|
+
declare function parseApproveCollectionPluginAuthorityV1Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedApproveCollectionPluginAuthorityV1Instruction<TProgram, TAccountMetas>;
|
|
47
|
+
//#endregion
|
|
48
|
+
export { APPROVE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR, ApproveCollectionPluginAuthorityV1Input, ApproveCollectionPluginAuthorityV1Instruction, ApproveCollectionPluginAuthorityV1InstructionData, ApproveCollectionPluginAuthorityV1InstructionDataArgs, ParsedApproveCollectionPluginAuthorityV1Instruction, getApproveCollectionPluginAuthorityV1DiscriminatorBytes, getApproveCollectionPluginAuthorityV1Instruction, getApproveCollectionPluginAuthorityV1InstructionDataCodec, getApproveCollectionPluginAuthorityV1InstructionDataDecoder, getApproveCollectionPluginAuthorityV1InstructionDataEncoder, parseApproveCollectionPluginAuthorityV1Instruction };
|
|
64
49
|
//# sourceMappingURL=approveCollectionPluginAuthorityV1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approveCollectionPluginAuthorityV1.d.ts","
|
|
1
|
+
{"version":3,"file":"approveCollectionPluginAuthorityV1.d.ts","names":[],"sources":["../../../src/generated/instructions/approveCollectionPluginAuthorityV1.ts"],"mappings":";;;;;cA+Ca,oDAAA;AAAA,iBAEG,uDAAA,IAA2D,kBAAA;AAAA,KAM/D,6CAAA,kCACuB,gCAAA,sCACG,WAAA,kDACL,WAAA,sDACI,WAAA,0DAG/B,WAAA,mFACgC,WAAA,uDACA,WAAA,mBAClC,WAAA,CAAY,QAAA,IACd,mBAAA,CAAoB,kBAAA,IACpB,uBAAA,EAEI,kBAAA,kBACI,eAAA,CAAgB,kBAAA,IAChB,kBAAA,EACJ,aAAA,kBACI,qBAAA,CAAsB,aAAA,IACpB,iBAAA,CAAkB,aAAA,IACpB,aAAA,EACJ,iBAAA,kBACI,qBAAA,CAAsB,iBAAA,IACpB,iBAAA,CAAkB,iBAAA,IACpB,iBAAA,EACJ,qBAAA,kBACI,eAAA,CAAgB,qBAAA,IAChB,qBAAA,EACJ,kBAAA,kBACI,eAAA,CAAgB,kBAAA,IAChB,kBAAA,KACD,kBAAA;AAAA,UAIQ,iDAAA;EACf,aAAA;EACA,sCAAA,EAAwC,sCAAA;AAAA;AAAA,UAGzB,qDAAA;EACf,sCAAA,EAAwC,0CAAA;AAAA;AAAA,iBAG1B,2DAAA,IAA+D,OAAA,CAAQ,qDAAA;AAAA,iBAgBvE,2DAAA,IAA+D,OAAA,CAAQ,iDAAA;AAAA,iBAUvE,yDAAA,IAA6D,KAAA,CAC3E,qDAAA,EACA,iDAAA;AAAA,UAQe,uCAAA;;EAQf,UAAA,EAAY,OAAA,CAAQ,kBAAA;;EAEpB,KAAA,EAAO,iBAAA,CAAkB,aAAA;;EAEzB,SAAA,GAAY,iBAAA,CAAkB,iBAAA;;EAE9B,aAAA,GAAgB,OAAA,CAAQ,qBAAA;;EAExB,UAAA,GAAa,OAAA,CAAQ,kBAAA;EACrB,sCAAA,EAAwC,qDAAA;AAAA;AAAA,iBAG1B,gDAAA,qMAMU,OAAA,UAAiB,gCAAA,EAEzC,KAAA,EAAO,uCAAA,CACL,kBAAA,EACA,aAAA,EACA,iBAAA,EACA,qBAAA,EACA,kBAAA,GAEF,MAAA;EAAW,cAAA,GAAiB,eAAA;AAAA,IAC3B,6CAAA,CACD,eAAA,EACA,kBAAA,EACA,aAAA,EACA,iBAAA,EACA,qBAAA,EACA,kBAAA;AAAA,UAmDe,mDAAA,kCACkB,gCAAA,iCACF,WAAA,cAAyB,WAAA;EAExD,cAAA,EAAgB,OAAA,CAAQ,QAAA;EACxB,QAAA;IA9KmC,+BAgLjC,UAAA,EAAY,aAAA,KA7KV;IA+KF,KAAA,EAAO,aAAA,KA9K2B;IAgLlC,SAAA,GAAY,aAAA,iBA/KsB;IAiLlC,aAAA,EAAe,aAAA,KAhLH;IAkLZ,UAAA,GAAa,aAAA;EAAA;EAEf,IAAA,EAAM,iDAAA;AAAA;AAAA,iBAGQ,kDAAA,yDAEiB,WAAA,IAE/B,WAAA,EAAa,WAAA,CAAY,QAAA,IACvB,uBAAA,CAAwB,aAAA,IACxB,mBAAA,CAAoB,kBAAA,IACrB,mDAAA,CACD,QAAA,EACA,aAAA"}
|
|
@@ -1,103 +1,91 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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";
|
|
1
|
+
import { getApproveCollectionPluginAuthorityV1ArgsDecoder, getApproveCollectionPluginAuthorityV1ArgsEncoder } from "../types/approveCollectionPluginAuthorityV1Args.js";
|
|
2
|
+
import "../programs/mplCoreProgram.js";
|
|
3
|
+
import { SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, combineCodec, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, transformEncoder } from "@solana/kit";
|
|
9
4
|
import { getAccountMetaFactory } from "@solana/program-client-core";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return getU8Encoder().encode(APPROVE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR);
|
|
5
|
+
//#region src/generated/instructions/approveCollectionPluginAuthorityV1.ts
|
|
6
|
+
const APPROVE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR = 9;
|
|
7
|
+
function getApproveCollectionPluginAuthorityV1DiscriminatorBytes() {
|
|
8
|
+
return getU8Encoder().encode(9);
|
|
15
9
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
getApproveCollectionPluginAuthorityV1ArgsEncoder(),
|
|
22
|
-
],
|
|
23
|
-
]), (value) => ({
|
|
24
|
-
...value,
|
|
25
|
-
discriminator: APPROVE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR,
|
|
26
|
-
}));
|
|
10
|
+
function getApproveCollectionPluginAuthorityV1InstructionDataEncoder() {
|
|
11
|
+
return transformEncoder(getStructEncoder([["discriminator", getU8Encoder()], ["approveCollectionPluginAuthorityV1Args", getApproveCollectionPluginAuthorityV1ArgsEncoder()]]), (value) => ({
|
|
12
|
+
...value,
|
|
13
|
+
discriminator: 9
|
|
14
|
+
}));
|
|
27
15
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
["discriminator", getU8Decoder()],
|
|
31
|
-
[
|
|
32
|
-
"approveCollectionPluginAuthorityV1Args",
|
|
33
|
-
getApproveCollectionPluginAuthorityV1ArgsDecoder(),
|
|
34
|
-
],
|
|
35
|
-
]);
|
|
16
|
+
function getApproveCollectionPluginAuthorityV1InstructionDataDecoder() {
|
|
17
|
+
return getStructDecoder([["discriminator", getU8Decoder()], ["approveCollectionPluginAuthorityV1Args", getApproveCollectionPluginAuthorityV1ArgsDecoder()]]);
|
|
36
18
|
}
|
|
37
|
-
|
|
38
|
-
|
|
19
|
+
function getApproveCollectionPluginAuthorityV1InstructionDataCodec() {
|
|
20
|
+
return combineCodec(getApproveCollectionPluginAuthorityV1InstructionDataEncoder(), getApproveCollectionPluginAuthorityV1InstructionDataDecoder());
|
|
39
21
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
22
|
+
function getApproveCollectionPluginAuthorityV1Instruction(input, config) {
|
|
23
|
+
const programAddress = config?.programAddress ?? "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d";
|
|
24
|
+
const accounts = {
|
|
25
|
+
collection: {
|
|
26
|
+
value: input.collection ?? null,
|
|
27
|
+
isWritable: true
|
|
28
|
+
},
|
|
29
|
+
payer: {
|
|
30
|
+
value: input.payer ?? null,
|
|
31
|
+
isWritable: true
|
|
32
|
+
},
|
|
33
|
+
authority: {
|
|
34
|
+
value: input.authority ?? null,
|
|
35
|
+
isWritable: false
|
|
36
|
+
},
|
|
37
|
+
systemProgram: {
|
|
38
|
+
value: input.systemProgram ?? null,
|
|
39
|
+
isWritable: false
|
|
40
|
+
},
|
|
41
|
+
logWrapper: {
|
|
42
|
+
value: input.logWrapper ?? null,
|
|
43
|
+
isWritable: false
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const args = { ...input };
|
|
47
|
+
if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
48
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
49
|
+
return Object.freeze({
|
|
50
|
+
accounts: [
|
|
51
|
+
getAccountMeta("collection", accounts.collection),
|
|
52
|
+
getAccountMeta("payer", accounts.payer),
|
|
53
|
+
getAccountMeta("authority", accounts.authority),
|
|
54
|
+
getAccountMeta("systemProgram", accounts.systemProgram),
|
|
55
|
+
getAccountMeta("logWrapper", accounts.logWrapper)
|
|
56
|
+
],
|
|
57
|
+
data: getApproveCollectionPluginAuthorityV1InstructionDataEncoder().encode(args),
|
|
58
|
+
programAddress
|
|
59
|
+
});
|
|
71
60
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
logWrapper: getNextOptionalAccount(),
|
|
99
|
-
},
|
|
100
|
-
data: getApproveCollectionPluginAuthorityV1InstructionDataDecoder().decode(instruction.data),
|
|
101
|
-
};
|
|
61
|
+
function parseApproveCollectionPluginAuthorityV1Instruction(instruction) {
|
|
62
|
+
if (instruction.accounts.length < 5) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
63
|
+
actualAccountMetas: instruction.accounts.length,
|
|
64
|
+
expectedAccountMetas: 5
|
|
65
|
+
});
|
|
66
|
+
let accountIndex = 0;
|
|
67
|
+
const getNextAccount = () => {
|
|
68
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
69
|
+
accountIndex += 1;
|
|
70
|
+
return accountMeta;
|
|
71
|
+
};
|
|
72
|
+
const getNextOptionalAccount = () => {
|
|
73
|
+
const accountMeta = getNextAccount();
|
|
74
|
+
return accountMeta.address === "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d" ? void 0 : accountMeta;
|
|
75
|
+
};
|
|
76
|
+
return {
|
|
77
|
+
programAddress: instruction.programAddress,
|
|
78
|
+
accounts: {
|
|
79
|
+
collection: getNextAccount(),
|
|
80
|
+
payer: getNextAccount(),
|
|
81
|
+
authority: getNextOptionalAccount(),
|
|
82
|
+
systemProgram: getNextAccount(),
|
|
83
|
+
logWrapper: getNextOptionalAccount()
|
|
84
|
+
},
|
|
85
|
+
data: getApproveCollectionPluginAuthorityV1InstructionDataDecoder().decode(instruction.data)
|
|
86
|
+
};
|
|
102
87
|
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { APPROVE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR, getApproveCollectionPluginAuthorityV1DiscriminatorBytes, getApproveCollectionPluginAuthorityV1Instruction, getApproveCollectionPluginAuthorityV1InstructionDataCodec, getApproveCollectionPluginAuthorityV1InstructionDataDecoder, getApproveCollectionPluginAuthorityV1InstructionDataEncoder, parseApproveCollectionPluginAuthorityV1Instruction };
|
|
90
|
+
|
|
103
91
|
//# sourceMappingURL=approveCollectionPluginAuthorityV1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approveCollectionPluginAuthorityV1.js","sourceRoot":"","sources":["../../../src/generated/instructions/approveCollectionPluginAuthorityV1.ts"],"names":[],"mappings":"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","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 ApproveCollectionPluginAuthorityV1Args,\n ApproveCollectionPluginAuthorityV1ArgsArgs,\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 getApproveCollectionPluginAuthorityV1ArgsDecoder,\n getApproveCollectionPluginAuthorityV1ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const APPROVE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR = 9;\n\nexport function getApproveCollectionPluginAuthorityV1DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(\n APPROVE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR,\n );\n}\n\nexport type ApproveCollectionPluginAuthorityV1Instruction<\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 ApproveCollectionPluginAuthorityV1InstructionData {\n discriminator: number;\n approveCollectionPluginAuthorityV1Args: ApproveCollectionPluginAuthorityV1Args;\n}\n\nexport interface ApproveCollectionPluginAuthorityV1InstructionDataArgs {\n approveCollectionPluginAuthorityV1Args: ApproveCollectionPluginAuthorityV1ArgsArgs;\n}\n\nexport function getApproveCollectionPluginAuthorityV1InstructionDataEncoder(): Encoder<ApproveCollectionPluginAuthorityV1InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\n \"approveCollectionPluginAuthorityV1Args\",\n getApproveCollectionPluginAuthorityV1ArgsEncoder(),\n ],\n ]),\n (value) => ({\n ...value,\n discriminator: APPROVE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR,\n }),\n );\n}\n\nexport function getApproveCollectionPluginAuthorityV1InstructionDataDecoder(): Decoder<ApproveCollectionPluginAuthorityV1InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\n \"approveCollectionPluginAuthorityV1Args\",\n getApproveCollectionPluginAuthorityV1ArgsDecoder(),\n ],\n ]);\n}\n\nexport function getApproveCollectionPluginAuthorityV1InstructionDataCodec(): Codec<\n ApproveCollectionPluginAuthorityV1InstructionDataArgs,\n ApproveCollectionPluginAuthorityV1InstructionData\n> {\n return combineCodec(\n getApproveCollectionPluginAuthorityV1InstructionDataEncoder(),\n getApproveCollectionPluginAuthorityV1InstructionDataDecoder(),\n );\n}\n\nexport interface ApproveCollectionPluginAuthorityV1Input<\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 approveCollectionPluginAuthorityV1Args: ApproveCollectionPluginAuthorityV1InstructionDataArgs[\"approveCollectionPluginAuthorityV1Args\"];\n}\n\nexport function getApproveCollectionPluginAuthorityV1Instruction<\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: ApproveCollectionPluginAuthorityV1Input<\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >,\n config?: { programAddress?: TProgramAddress },\n): ApproveCollectionPluginAuthorityV1Instruction<\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: getApproveCollectionPluginAuthorityV1InstructionDataEncoder().encode(\n args as ApproveCollectionPluginAuthorityV1InstructionDataArgs,\n ),\n programAddress,\n } as ApproveCollectionPluginAuthorityV1Instruction<\n TProgramAddress,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >);\n}\n\nexport interface ParsedApproveCollectionPluginAuthorityV1Instruction<\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: ApproveCollectionPluginAuthorityV1InstructionData;\n}\n\nexport function parseApproveCollectionPluginAuthorityV1Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedApproveCollectionPluginAuthorityV1Instruction<\n TProgram,\n TAccountMetas\n> {\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: getApproveCollectionPluginAuthorityV1InstructionDataDecoder().decode(\n instruction.data,\n ),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"approveCollectionPluginAuthorityV1.js","names":[],"sources":["../../../src/generated/instructions/approveCollectionPluginAuthorityV1.ts"],"sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport type {\n AccountMeta,\n AccountSignerMeta,\n Address,\n Codec,\n Decoder,\n Encoder,\n Instruction,\n InstructionWithAccounts,\n InstructionWithData,\n ReadonlyAccount,\n ReadonlySignerAccount,\n ReadonlyUint8Array,\n TransactionSigner,\n WritableAccount,\n WritableSignerAccount,\n} from \"@solana/kit\";\nimport type { ResolvedInstructionAccount } from \"@solana/program-client-core\";\nimport type {\n ApproveCollectionPluginAuthorityV1Args,\n ApproveCollectionPluginAuthorityV1ArgsArgs,\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 getApproveCollectionPluginAuthorityV1ArgsDecoder,\n getApproveCollectionPluginAuthorityV1ArgsEncoder,\n} from \"../types/index.js\";\n\nexport const APPROVE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR = 9;\n\nexport function getApproveCollectionPluginAuthorityV1DiscriminatorBytes(): ReadonlyUint8Array {\n return getU8Encoder().encode(\n APPROVE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR,\n );\n}\n\nexport type ApproveCollectionPluginAuthorityV1Instruction<\n TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS,\n TAccountCollection extends string | AccountMeta<string> = string,\n TAccountPayer extends string | AccountMeta<string> = string,\n TAccountAuthority extends string | AccountMeta<string> = string,\n TAccountSystemProgram extends\n | string\n | AccountMeta<string> = \"11111111111111111111111111111111\",\n TAccountLogWrapper extends string | AccountMeta<string> = string,\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountCollection extends string\n ? WritableAccount<TAccountCollection>\n : TAccountCollection,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountAuthority extends string\n ? ReadonlySignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n TAccountLogWrapper extends string\n ? ReadonlyAccount<TAccountLogWrapper>\n : TAccountLogWrapper,\n ...TRemainingAccounts,\n ]\n >;\n\nexport interface ApproveCollectionPluginAuthorityV1InstructionData {\n discriminator: number;\n approveCollectionPluginAuthorityV1Args: ApproveCollectionPluginAuthorityV1Args;\n}\n\nexport interface ApproveCollectionPluginAuthorityV1InstructionDataArgs {\n approveCollectionPluginAuthorityV1Args: ApproveCollectionPluginAuthorityV1ArgsArgs;\n}\n\nexport function getApproveCollectionPluginAuthorityV1InstructionDataEncoder(): Encoder<ApproveCollectionPluginAuthorityV1InstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n [\"discriminator\", getU8Encoder()],\n [\n \"approveCollectionPluginAuthorityV1Args\",\n getApproveCollectionPluginAuthorityV1ArgsEncoder(),\n ],\n ]),\n (value) => ({\n ...value,\n discriminator: APPROVE_COLLECTION_PLUGIN_AUTHORITY_V1_DISCRIMINATOR,\n }),\n );\n}\n\nexport function getApproveCollectionPluginAuthorityV1InstructionDataDecoder(): Decoder<ApproveCollectionPluginAuthorityV1InstructionData> {\n return getStructDecoder([\n [\"discriminator\", getU8Decoder()],\n [\n \"approveCollectionPluginAuthorityV1Args\",\n getApproveCollectionPluginAuthorityV1ArgsDecoder(),\n ],\n ]);\n}\n\nexport function getApproveCollectionPluginAuthorityV1InstructionDataCodec(): Codec<\n ApproveCollectionPluginAuthorityV1InstructionDataArgs,\n ApproveCollectionPluginAuthorityV1InstructionData\n> {\n return combineCodec(\n getApproveCollectionPluginAuthorityV1InstructionDataEncoder(),\n getApproveCollectionPluginAuthorityV1InstructionDataDecoder(),\n );\n}\n\nexport interface ApproveCollectionPluginAuthorityV1Input<\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 approveCollectionPluginAuthorityV1Args: ApproveCollectionPluginAuthorityV1InstructionDataArgs[\"approveCollectionPluginAuthorityV1Args\"];\n}\n\nexport function getApproveCollectionPluginAuthorityV1Instruction<\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: ApproveCollectionPluginAuthorityV1Input<\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >,\n config?: { programAddress?: TProgramAddress },\n): ApproveCollectionPluginAuthorityV1Instruction<\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: getApproveCollectionPluginAuthorityV1InstructionDataEncoder().encode(\n args as ApproveCollectionPluginAuthorityV1InstructionDataArgs,\n ),\n programAddress,\n } as ApproveCollectionPluginAuthorityV1Instruction<\n TProgramAddress,\n TAccountCollection,\n TAccountPayer,\n TAccountAuthority,\n TAccountSystemProgram,\n TAccountLogWrapper\n >);\n}\n\nexport interface ParsedApproveCollectionPluginAuthorityV1Instruction<\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: ApproveCollectionPluginAuthorityV1InstructionData;\n}\n\nexport function parseApproveCollectionPluginAuthorityV1Instruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>,\n): ParsedApproveCollectionPluginAuthorityV1Instruction<\n TProgram,\n TAccountMetas\n> {\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: getApproveCollectionPluginAuthorityV1InstructionDataDecoder().decode(\n instruction.data,\n ),\n };\n}\n"],"mappings":";;;;;AA+CA,MAAa,uDAAuD;AAEpE,SAAgB,0DAA8E;CAC5F,OAAO,aAAa,CAAC,CAAC,OAAA,CAEtB;AACF;AA8CA,SAAgB,8DAA8H;CAC5I,OAAO,iBACL,iBAAiB,CACf,CAAC,iBAAiB,aAAa,CAAC,GAChC,CACE,0CACA,iDAAiD,CACnD,CACF,CAAC,IACA,WAAW;EACV,GAAG;EACH,eAAA;CACF,EACF;AACF;AAEA,SAAgB,8DAA0H;CACxI,OAAO,iBAAiB,CACtB,CAAC,iBAAiB,aAAa,CAAC,GAChC,CACE,0CACA,iDAAiD,CACnD,CACF,CAAC;AACH;AAEA,SAAgB,4DAGd;CACA,OAAO,aACL,4DAA4D,GAC5D,4DAA4D,CAC9D;AACF;AAsBA,SAAgB,iDAQd,OAOA,QAQA;CAEA,MAAM,iBACJ,QAAQ,kBAAA;CAUV,MAAM,WAAW;EANf,YAAY;GAAE,OAAO,MAAM,cAAc;GAAM,YAAY;EAAK;EAChE,OAAO;GAAE,OAAO,MAAM,SAAS;GAAM,YAAY;EAAK;EACtD,WAAW;GAAE,OAAO,MAAM,aAAa;GAAM,YAAY;EAAM;EAC/D,eAAe;GAAE,OAAO,MAAM,iBAAiB;GAAM,YAAY;EAAM;EACvE,YAAY;GAAE,OAAO,MAAM,cAAc;GAAM,YAAY;EAAM;CAEnC;CAMhC,MAAM,OAAO,EAAE,GAAG,MAAM;CAGxB,IAAI,CAAC,SAAS,cAAc,OAC1B,SAAS,cAAc,QACrB;CAGJ,MAAM,iBAAiB,sBAAsB,gBAAgB,WAAW;CACxE,OAAO,OAAO,OAAO;EACnB,UAAU;GACR,eAAe,cAAc,SAAS,UAAU;GAChD,eAAe,SAAS,SAAS,KAAK;GACtC,eAAe,aAAa,SAAS,SAAS;GAC9C,eAAe,iBAAiB,SAAS,aAAa;GACtD,eAAe,cAAc,SAAS,UAAU;EAClD;EACA,MAAM,4DAA4D,CAAC,CAAC,OAClE,IACF;EACA;CACF,CAOC;AACH;AAsBA,SAAgB,mDAId,aAMA;CACA,IAAI,YAAY,SAAS,SAAS,GAChC,MAAM,IAAI,YACR,2DACA;EACE,oBAAoB,YAAY,SAAS;EACzC,sBAAsB;CACxB,CACF;CAEF,IAAI,eAAe;CACnB,MAAM,uBAAuB;EAC3B,MAAM,cAAe,YAAY,SAA2B;EAC5D,gBAAgB;EAChB,OAAO;CACT;CACA,MAAM,+BAA+B;EACnC,MAAM,cAAc,eAAe;EACnC,OAAO,YAAY,YAAA,iDACf,KAAA,IACA;CACN;CACA,OAAO;EACL,gBAAgB,YAAY;EAC5B,UAAU;GACR,YAAY,eAAe;GAC3B,OAAO,eAAe;GACtB,WAAW,uBAAuB;GAClC,eAAe,eAAe;GAC9B,YAAY,uBAAuB;EACrC;EACA,MAAM,4DAA4D,CAAC,CAAC,OAClE,YAAY,IACd;CACF;AACF"}
|
|
@@ -1,69 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export declare function getApprovePluginAuthorityV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
-
export type ApprovePluginAuthorityV1Instruction<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 ApprovePluginAuthorityV1InstructionData {
|
|
23
|
-
discriminator: number;
|
|
24
|
-
approvePluginAuthorityV1Args: ApprovePluginAuthorityV1Args;
|
|
1
|
+
import { ApprovePluginAuthorityV1Args, ApprovePluginAuthorityV1ArgsArgs } from "../types/approvePluginAuthorityV1Args.js";
|
|
2
|
+
import { MPL_CORE_PROGRAM_PROGRAM_ADDRESS } from "../programs/mplCoreProgram.js";
|
|
3
|
+
import { AccountMeta, AccountSignerMeta, Address, Codec, Decoder, Encoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount, WritableSignerAccount } from "@solana/kit";
|
|
4
|
+
|
|
5
|
+
//#region src/generated/instructions/approvePluginAuthorityV1.d.ts
|
|
6
|
+
declare const APPROVE_PLUGIN_AUTHORITY_V1_DISCRIMINATOR = 8;
|
|
7
|
+
declare function getApprovePluginAuthorityV1DiscriminatorBytes(): ReadonlyUint8Array;
|
|
8
|
+
type ApprovePluginAuthorityV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountAsset extends string | AccountMeta<string> = string, TAccountCollection extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountLogWrapper extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountAsset extends string ? WritableAccount<TAccountAsset> : TAccountAsset, TAccountCollection extends string ? WritableAccount<TAccountCollection> : TAccountCollection, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountLogWrapper extends string ? ReadonlyAccount<TAccountLogWrapper> : TAccountLogWrapper, ...TRemainingAccounts]>;
|
|
9
|
+
interface ApprovePluginAuthorityV1InstructionData {
|
|
10
|
+
discriminator: number;
|
|
11
|
+
approvePluginAuthorityV1Args: ApprovePluginAuthorityV1Args;
|
|
25
12
|
}
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
interface ApprovePluginAuthorityV1InstructionDataArgs {
|
|
14
|
+
approvePluginAuthorityV1Args: ApprovePluginAuthorityV1ArgsArgs;
|
|
28
15
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
16
|
+
declare function getApprovePluginAuthorityV1InstructionDataEncoder(): Encoder<ApprovePluginAuthorityV1InstructionDataArgs>;
|
|
17
|
+
declare function getApprovePluginAuthorityV1InstructionDataDecoder(): Decoder<ApprovePluginAuthorityV1InstructionData>;
|
|
18
|
+
declare function getApprovePluginAuthorityV1InstructionDataCodec(): Codec<ApprovePluginAuthorityV1InstructionDataArgs, ApprovePluginAuthorityV1InstructionData>;
|
|
19
|
+
interface ApprovePluginAuthorityV1Input<TAccountAsset extends string = string, TAccountCollection extends string = string, TAccountPayer extends string = string, TAccountAuthority extends string = string, TAccountSystemProgram extends string = string, TAccountLogWrapper extends string = string> {
|
|
20
|
+
/** The address of the asset */
|
|
21
|
+
asset: Address<TAccountAsset>;
|
|
22
|
+
/** The collection to which the asset belongs */
|
|
23
|
+
collection?: Address<TAccountCollection>;
|
|
24
|
+
/** The account paying for the storage fees */
|
|
25
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
26
|
+
/** The owner or delegate of the asset */
|
|
27
|
+
authority?: TransactionSigner<TAccountAuthority>;
|
|
28
|
+
/** The system program */
|
|
29
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
30
|
+
/** The SPL Noop Program */
|
|
31
|
+
logWrapper?: Address<TAccountLogWrapper>;
|
|
32
|
+
approvePluginAuthorityV1Args: ApprovePluginAuthorityV1InstructionDataArgs["approvePluginAuthorityV1Args"];
|
|
46
33
|
}
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
declare function getApprovePluginAuthorityV1Instruction<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: ApprovePluginAuthorityV1Input<TAccountAsset, TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>, config?: {
|
|
35
|
+
programAddress?: TProgramAddress;
|
|
49
36
|
}): ApprovePluginAuthorityV1Instruction<TProgramAddress, TAccountAsset, TAccountCollection, TAccountPayer, TAccountAuthority, TAccountSystemProgram, TAccountLogWrapper>;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
/** The system program */
|
|
62
|
-
systemProgram: TAccountMetas[4];
|
|
63
|
-
/** The SPL Noop Program */
|
|
64
|
-
logWrapper?: TAccountMetas[5] | undefined;
|
|
65
|
-
};
|
|
66
|
-
data: ApprovePluginAuthorityV1InstructionData;
|
|
37
|
+
interface ParsedApprovePluginAuthorityV1Instruction<TProgram extends string = typeof MPL_CORE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> {
|
|
38
|
+
programAddress: Address<TProgram>;
|
|
39
|
+
accounts: {
|
|
40
|
+
/** The address of the asset */asset: TAccountMetas[0]; /** The collection to which the asset belongs */
|
|
41
|
+
collection?: TAccountMetas[1] | undefined; /** The account paying for the storage fees */
|
|
42
|
+
payer: TAccountMetas[2]; /** The owner or delegate of the asset */
|
|
43
|
+
authority?: TAccountMetas[3] | undefined; /** The system program */
|
|
44
|
+
systemProgram: TAccountMetas[4]; /** The SPL Noop Program */
|
|
45
|
+
logWrapper?: TAccountMetas[5] | undefined;
|
|
46
|
+
};
|
|
47
|
+
data: ApprovePluginAuthorityV1InstructionData;
|
|
67
48
|
}
|
|
68
|
-
|
|
49
|
+
declare function parseApprovePluginAuthorityV1Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedApprovePluginAuthorityV1Instruction<TProgram, TAccountMetas>;
|
|
50
|
+
//#endregion
|
|
51
|
+
export { APPROVE_PLUGIN_AUTHORITY_V1_DISCRIMINATOR, ApprovePluginAuthorityV1Input, ApprovePluginAuthorityV1Instruction, ApprovePluginAuthorityV1InstructionData, ApprovePluginAuthorityV1InstructionDataArgs, ParsedApprovePluginAuthorityV1Instruction, getApprovePluginAuthorityV1DiscriminatorBytes, getApprovePluginAuthorityV1Instruction, getApprovePluginAuthorityV1InstructionDataCodec, getApprovePluginAuthorityV1InstructionDataDecoder, getApprovePluginAuthorityV1InstructionDataEncoder, parseApprovePluginAuthorityV1Instruction };
|
|
69
52
|
//# sourceMappingURL=approvePluginAuthorityV1.d.ts.map
|