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.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthorisedContractUpgrade(StateRef ref)
Get contracts we would be willing to upgrade the suggested contract to.
|
void |
removeAuthorisedContractUpgrade(StateRef ref)
Remove a previously authorised state ref
|
void |
storeAuthorisedContractUpgrade(StateRef ref,
java.lang.Class<? extends net.corda.core.contracts.UpgradedContract<?,?>> upgradedContractClass)
Store authorised state ref and associated UpgradeContract class
|
java.lang.String getAuthorisedContractUpgrade(StateRef ref)
Get contracts we would be willing to upgrade the suggested contract to.
void storeAuthorisedContractUpgrade(StateRef ref, java.lang.Class<? extends net.corda.core.contracts.UpgradedContract<?,?>> upgradedContractClass)
Store authorised state ref and associated UpgradeContract class
void removeAuthorisedContractUpgrade(StateRef ref)
Remove a previously authorised state ref