public UpgradedContractWithLegacyConstraint<OldState extends ContractState,NewState extends ContractState> extends UpgradedContract<OldState,NewState>
This interface allows specifying a custom legacy contract constraint for upgraded contracts. The default for interface UpgradedContract
is class WhitelistedByZoneAttachmentConstraint
.
public UpgradedContractWithLegacyConstraint()
@NotNull AttachmentConstraint getLegacyContractConstraint()
A validator for the legacy (pre-upgrade) contract attachments on the transaction.