ContractUpgradeService - corda

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 | Get contracts we would be willing to upgrade the suggested contract to. `abstract fun getAuthorisedContractUpgrade(ref: StateRef): String?`
#### removeAuthorisedContractUpgrade | Remove a previously authorised state ref `abstract fun removeAuthorisedContractUpgrade(ref: StateRef): Unit`
#### storeAuthorisedContractUpgrade | Store authorised state ref and associated UpgradeContract class `abstract fun storeAuthorisedContractUpgrade(ref: StateRef, upgradedContractClass: Class<out UpgradedContract<*, *>>): Unit`