corda / net.corda.core.transactions / ContractUpgradeWireTransaction

ContractUpgradeWireTransaction

data class ContractUpgradeWireTransaction : CoreTransaction

A special transaction for upgrading the contract of a state.

Types

Component

enum class Component

Constructors

<init>

ContractUpgradeWireTransaction(serializedComponents: List<OpaqueBytes>, privacySalt: PrivacySalt = PrivacySalt())ContractUpgradeWireTransaction(serializedComponents: List<OpaqueBytes>, privacySalt: PrivacySalt, digestService: DigestService)

A special transaction for upgrading the contract of a state.

Properties

digestService

val digestService: DigestService

id

val id: SecureHash

inputs

val inputs: List<StateRef>

The inputs of this transaction, containing state references only.

legacyContractAttachmentId

val legacyContractAttachmentId: SecureHash

networkParametersHash

val networkParametersHash: SecureHash?

Hash of the network parameters that were in force when the transaction was notarised. Null means, that the transaction was created on older version of Corda (before 4), resolution will default to initial parameters.

notary

val notary: Party

If present, the notary for this transaction. If absent then the transaction is not notarised at all. This is intended for issuance/genesis transactions that don't consume any other states and thus can't double spend anything.

outputs

val outputs: List<TransactionState<ContractState>>

This transaction does not contain any output states, outputs can be obtained by resolving a ContractUpgradeLedgerTransaction – outputs will be calculated on demand by applying the contract upgrade operation to inputs.

privacySalt

val privacySalt: PrivacySalt

Required for hiding components in ContractUpgradeFilteredTransaction.

references

val references: List<StateRef>

ContractUpgradeWireTransactions should not contain reference input states.

serializedComponents

val serializedComponents: List<OpaqueBytes>

Contains all of the transaction components in serialized form. This is used for calculating the transaction id in a deterministic fashion, since re-serializing properties may result in a different byte sequence depending on the serialization context.

upgradedContractAttachmentId

val upgradedContractAttachmentId: SecureHash

upgradedContractClassName

val upgradedContractClassName: ContractClassName

Functions

buildFilteredTransaction

fun buildFilteredTransaction(): ContractUpgradeFilteredTransaction

Constructs a filtered transaction: the inputs, the notary party and network parameters hash are always visible, while the rest are hidden.

copy

fun copy(serializedComponents: List<OpaqueBytes>, privacySalt: PrivacySalt): ContractUpgradeWireTransaction

Old version of ContractUpgradeWireTransaction.copy for sake of ABI compatibility.

resolve

fun resolve(services: ServicesForResolution, sigs: List<TransactionSignature>): ContractUpgradeLedgerTransaction

Resolves input states and contract attachments, and builds a ContractUpgradeLedgerTransaction.

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

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