@DoNotImplement public ContractUpgradeService
The interface ContractUpgradeService is responsible for securely upgrading contract state objects according to
a specified and mutually agreed (amongst participants) contract version.
See also class ContractUpgradeFlow to understand the workflow associated with contract upgrades.
@Nullable
java.lang.String getAuthorisedContractUpgrade(@NotNull
StateRef ref)
Get contracts we would be willing to upgrade the suggested contract to.
void storeAuthorisedContractUpgrade(@NotNull
StateRef ref,
@NotNull
java.lang.Class<? extends net.corda.core.contracts.UpgradedContract<?,?>> upgradedContractClass)
Store authorised state ref and associated UpgradeContract class
void removeAuthorisedContractUpgrade(@NotNull
StateRef ref)
Remove a previously authorised state ref