corda / net.corda.core.node.services / ContractUpgradeService

ContractUpgradeService

@DoNotImplement interface ContractUpgradeService

The ContractUpgradeService is responsible for securely upgrading contract state objects according to a specified and mutually agreed (amongst participants) contract version. See also ContractUpgradeFlow to understand the workflow associated with contract upgrades.

Functions

getAuthorisedContractUpgrade

abstract fun getAuthorisedContractUpgrade(ref: StateRef): String?

Get contracts we would be willing to upgrade the suggested contract to.

removeAuthorisedContractUpgrade

abstract fun removeAuthorisedContractUpgrade(ref: StateRef): Unit

Remove a previously authorised state ref

storeAuthorisedContractUpgrade

abstract fun storeAuthorisedContractUpgrade(ref: StateRef, upgradedContractClass: Class<out UpgradedContract<*, *>>): Unit

Store authorised state ref and associated UpgradeContract class

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

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