corda / net.corda.core.contracts / ContractAttachment

ContractAttachment

class ContractAttachment : Attachment

Wrap an attachment in this if it is to be used as an executable contract attachment

Constructors

<init>

ContractAttachment(attachment: Attachment, contract: ContractClassName, additionalContracts: Set<ContractClassName> = emptySet(), uploader: String? = null)

Wrap an attachment in this if it is to be used as an executable contract attachment

Properties

additionalContracts

val additionalContracts: Set<ContractClassName>

Additional contract names contained within the JAR.

allContracts

val allContracts: Set<ContractClassName>

attachment

val attachment: Attachment

The attachment representing the contract JAR

contract

val contract: ContractClassName

The contract name contained within the JAR. A Contract attachment has to contain at least 1 contract.

uploader

val uploader: String?

Functions

toString

fun toString(): String

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

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