MetaplexBubblegumProgram.updateMetadata constructor
MetaplexBubblegumProgram.updateMetadata({
- required SolAddress treeAuthority,
- required SolAddress authority,
- SolAddress? collectionMint,
- SolAddress? collectionMetadata,
- SolAddress? collectionAuthorityRecordPda,
- required SolAddress leafOwner,
- required SolAddress leafDelegate,
- required SolAddress payer,
- required SolAddress merkleTree,
- required SolAddress logWrapper,
- required SolAddress compressionProgram,
- required SolAddress tokenMetadataProgram,
- required MetaplexBubblegumUpdateMetadataLayout layout,
- List<
AccountMeta> anchorRemainingAccounts = const [], - SolAddress systemProgram = SystemProgramConst.programId,
Implementation
factory MetaplexBubblegumProgram.updateMetadata({
required SolAddress treeAuthority,
required SolAddress authority,
SolAddress? collectionMint,
SolAddress? collectionMetadata,
SolAddress? collectionAuthorityRecordPda,
required SolAddress leafOwner,
required SolAddress leafDelegate,
required SolAddress payer,
required SolAddress merkleTree,
required SolAddress logWrapper,
required SolAddress compressionProgram,
required SolAddress tokenMetadataProgram,
required MetaplexBubblegumUpdateMetadataLayout layout,
List<AccountMeta> anchorRemainingAccounts = const [],
SolAddress systemProgram = SystemProgramConst.programId,
}) {
return MetaplexBubblegumProgram(keys: [
treeAuthority.toReadOnly(),
authority.toSigner(),
collectionMint?.toReadOnly() ??
MetaplexBubblegumProgramConst.programId.toReadOnly(),
collectionMetadata?.toReadOnly() ??
MetaplexBubblegumProgramConst.programId.toReadOnly(),
collectionAuthorityRecordPda?.toReadOnly() ??
MetaplexBubblegumProgramConst.programId.toReadOnly(),
leafOwner.toReadOnly(),
leafDelegate.toReadOnly(),
payer.toSigner(),
merkleTree.toWritable(),
logWrapper.toReadOnly(),
compressionProgram.toReadOnly(),
tokenMetadataProgram.toReadOnly(),
systemProgram.toReadOnly(),
...anchorRemainingAccounts
], programId: MetaplexBubblegumProgramConst.programId, layout: layout);
}