MetaplexTokenMetaDataProgram.lockV1 constructor
MetaplexTokenMetaDataProgram.lockV1({
- required SolAddress authority,
- required SolAddress token,
- required SolAddress mint,
- required SolAddress metadata,
- required SolAddress payer,
- required SolAddress sysvarInstructions,
- required MetaplexTokenMetaDataLockV1Layout layout,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress? tokenOwner,
- SolAddress? edition,
- SolAddress? tokenRecord,
- SolAddress? splTokenProgram,
- SolAddress? authorizationRulesProgram,
- SolAddress? authorizationRules,
Implementation
factory MetaplexTokenMetaDataProgram.lockV1({
required SolAddress authority,
required SolAddress token,
required SolAddress mint,
required SolAddress metadata,
required SolAddress payer,
required SolAddress sysvarInstructions,
required MetaplexTokenMetaDataLockV1Layout layout,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress? tokenOwner,
SolAddress? edition,
SolAddress? tokenRecord,
SolAddress? splTokenProgram,
SolAddress? authorizationRulesProgram,
SolAddress? authorizationRules,
}) {
return MetaplexTokenMetaDataProgram(keys: [
authority.toSigner(),
tokenOwner?.toReadOnly() ??
MetaplexTokenMetaDataProgramConst.programId.toReadOnly(),
token.toWritable(),
mint.toReadOnly(),
metadata.toWritable(),
edition?.toReadOnly() ??
MetaplexTokenMetaDataProgramConst.programId.toReadOnly(),
tokenRecord?.toWritable() ??
MetaplexTokenMetaDataProgramConst.programId.toReadOnly(),
payer.toSignerAndWritable(),
systemProgram.toReadOnly(),
sysvarInstructions.toReadOnly(),
splTokenProgram?.toReadOnly() ??
MetaplexTokenMetaDataProgramConst.programId.toReadOnly(),
authorizationRulesProgram?.toReadOnly() ??
MetaplexTokenMetaDataProgramConst.programId.toReadOnly(),
authorizationRules?.toReadOnly() ??
MetaplexTokenMetaDataProgramConst.programId.toReadOnly(),
], programId: MetaplexTokenMetaDataProgramConst.programId, layout: layout);
}