public class ContractUpgradeWireTransaction extends CoreTransaction
A special transaction for upgrading the contract of a state.
Modifier and Type | Class and Description |
---|---|
static class |
ContractUpgradeWireTransaction.Companion |
Modifier and Type | Field and Description |
---|---|
static ContractUpgradeWireTransaction.Companion |
Companion |
Constructor and Description |
---|
ContractUpgradeWireTransaction(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents,
PrivacySalt privacySalt,
DigestService digestService)
A special transaction for upgrading the contract of a state.
|
ContractUpgradeWireTransaction(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents,
PrivacySalt privacySalt) |
Modifier and Type | Method and Description |
---|---|
ContractUpgradeFilteredTransaction |
buildFilteredTransaction()
Constructs a filtered transaction: the inputs, the notary party and network parameters hash are always visible, while the rest are hidden.
|
java.util.List<net.corda.core.utilities.OpaqueBytes> |
component1()
Contains all of the transaction components in serialized form.
|
PrivacySalt |
component2()
Required for hiding components in
|
DigestService |
component3() |
ContractUpgradeWireTransaction |
copy(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents,
PrivacySalt privacySalt)
Old version of
ContractUpgradeWireTransaction.copy for sake of ABI compatibility. |
ContractUpgradeWireTransaction |
copy(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents,
PrivacySalt privacySalt,
DigestService digestService)
A special transaction for upgrading the contract of a state.
|
boolean |
equals(java.lang.Object p) |
DigestService |
getDigestService() |
SecureHash |
getId() |
java.util.List<net.corda.core.contracts.StateRef> |
getInputs()
The inputs of this transaction, containing state references only.
|
SecureHash |
getLegacyContractAttachmentId() |
SecureHash |
getNetworkParametersHash()
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.
|
Party |
getNotary()
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.
|
java.util.List<net.corda.core.contracts.TransactionState> |
getOutputs()
This transaction does not contain any output states, outputs can be obtained by resolving a
class ContractUpgradeLedgerTransaction – outputs will be calculated on demand by applying the contract
upgrade operation to inputs. |
PrivacySalt |
getPrivacySalt()
Required for hiding components in
|
java.util.List<net.corda.core.contracts.StateRef> |
getReferences()
ContractUpgradeWireTransactions should not contain reference input states.
|
java.util.List<net.corda.core.utilities.OpaqueBytes> |
getSerializedComponents()
Contains all of the transaction components in serialized form.
|
SecureHash |
getUpgradedContractAttachmentId() |
java.lang.String |
getUpgradedContractClassName() |
int |
hashCode() |
ContractUpgradeLedgerTransaction |
resolve(ServicesForResolution services,
java.util.List<net.corda.core.crypto.TransactionSignature> sigs)
Resolves input states and contract attachments, and builds a ContractUpgradeLedgerTransaction.
|
java.lang.String |
toString() |
getInputs, getNetworkParametersHash, getReferences
checkBaseInvariants, filterOutRefs, filterOutputs, findOutRef, findOutput, getInputs, getNotary, getOutput, getOutputStates, getOutputs, getReferences, outRef, outRef, outRefsOfType, outputsOfType, toString
getId
public static ContractUpgradeWireTransaction.Companion Companion
public ContractUpgradeWireTransaction(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents, PrivacySalt privacySalt, DigestService digestService)
A special transaction for upgrading the contract of a state.
serializedComponents
- Contains all of the transaction components in serialized form.This is used for calculating the transaction id in a deterministic fashion, since re-serializing propertiesmay result in a different byte sequence depending on the serialization context.privacySalt
- Required for hiding components in class ContractUpgradeFilteredTransaction
.public ContractUpgradeWireTransaction(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents, PrivacySalt privacySalt)
public java.util.List<net.corda.core.contracts.StateRef> getInputs()
The inputs of this transaction, containing state references only.
public Party getNotary()
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.
public SecureHash getLegacyContractAttachmentId()
public java.lang.String getUpgradedContractClassName()
public SecureHash getUpgradedContractAttachmentId()
public SecureHash getNetworkParametersHash()
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.
public ContractUpgradeWireTransaction copy(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents, PrivacySalt privacySalt)
Old version of ContractUpgradeWireTransaction.copy
for sake of ABI compatibility.
ContractUpgradeWireTransaction.copy
public java.util.List<net.corda.core.contracts.TransactionState> getOutputs()
This transaction does not contain any output states, outputs can be obtained by resolving a
class ContractUpgradeLedgerTransaction
– outputs will be calculated on demand by applying the contract
upgrade operation to inputs.
class ContractUpgradeLedgerTransaction
public java.util.List<net.corda.core.contracts.StateRef> getReferences()
ContractUpgradeWireTransactions should not contain reference input states.
public SecureHash getId()
public ContractUpgradeLedgerTransaction resolve(ServicesForResolution services, java.util.List<net.corda.core.crypto.TransactionSignature> sigs)
Resolves input states and contract attachments, and builds a ContractUpgradeLedgerTransaction.
public ContractUpgradeFilteredTransaction buildFilteredTransaction()
Constructs a filtered transaction: the inputs, the notary party and network parameters hash are always visible, while the rest are hidden.
public java.util.List<net.corda.core.utilities.OpaqueBytes> getSerializedComponents()
Contains all of the transaction components in serialized form.
This is used for calculating the transaction id in a deterministic fashion, since re-serializing propertiesmay result in a different byte sequence depending on the serialization context.
public PrivacySalt getPrivacySalt()
Required for hiding components in
class ContractUpgradeFilteredTransaction
public DigestService getDigestService()
public java.util.List<net.corda.core.utilities.OpaqueBytes> component1()
Contains all of the transaction components in serialized form.
This is used for calculating the transaction id in a deterministic fashion, since re-serializing propertiesmay result in a different byte sequence depending on the serialization context.
public PrivacySalt component2()
Required for hiding components in
class ContractUpgradeFilteredTransaction
public DigestService component3()
public ContractUpgradeWireTransaction copy(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents, PrivacySalt privacySalt, DigestService digestService)
A special transaction for upgrading the contract of a state.
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)