public class ContractUpgradeFlow
A flow to be used for upgrading state objects of an old contract to a new contract.
The class ContractUpgradeFlow.Instigator
assembles the transaction for contract upgrade and sends out change proposals to all participants
(class ContractUpgradeFlow.Acceptor
) of that state. If participants agree to the proposed change, they each sign the transaction.
Finally, class ContractUpgradeFlow.Instigator
sends the transaction containing all signatures back to each participant so they can record it and
use the new updated state for future transactions.
Modifier and Type | Class and Description |
---|---|
static class |
ContractUpgradeFlow.Acceptor |
static class |
ContractUpgradeFlow.Instigator<OldState extends ContractState,NewState extends ContractState> |
Modifier and Type | Field and Description |
---|---|
static ContractUpgradeFlow |
INSTANCE
A flow to be used for upgrading state objects of an old contract to a new contract.
|
Modifier and Type | Method and Description |
---|---|
static void |
verify(TransactionForContract tx) |
static void |
verify(ContractState input,
ContractState output,
Command commandData) |
public static ContractUpgradeFlow INSTANCE
A flow to be used for upgrading state objects of an old contract to a new contract.
The class ContractUpgradeFlow.Instigator
assembles the transaction for contract upgrade and sends out change proposals to all participants
(class ContractUpgradeFlow.Acceptor
) of that state. If participants agree to the proposed change, they each sign the transaction.
Finally, class ContractUpgradeFlow.Instigator
sends the transaction containing all signatures back to each participant so they can record it and
use the new updated state for future transactions.
public static void verify(TransactionForContract tx)
public static void verify(ContractState input, ContractState output, Command commandData)