corda / net.corda.core.contracts / AutomaticPlaceholderConstraint

AutomaticPlaceholderConstraint

object AutomaticPlaceholderConstraint : AttachmentConstraint

This AttachmentConstraint is a convenience class that acts as a placeholder and will be automatically resolved by the platform when set on an output state. It is the default constraint of all output states.

The resolution occurs in TransactionBuilder.toWireTransaction and is based on the input states and the attachments. If the Contract was not annotated with NoConstraintPropagation, then the platform will ensure the correct constraint propagation.

Functions

isSatisfiedBy

fun isSatisfiedBy(attachment: Attachment): Boolean

Returns whether the given contract attachment can be used with the ContractState associated with this constraint object.

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.