OldState- the old contract state (can be
interface ContractStateor other common supertype if this supports upgrading more than one state).
NewState- the upgraded contract state.
public UpgradedContract<OldState extends ContractState,NewState extends ContractState> extends Contract
Interface which can upgrade state objects issued by a contract to a new state object issued by a different contract.
NewState upgrade(OldState state)
Upgrade contract's state object to a new state object.