public class ContractUpgradeFlow
A flow to be used for authorising and upgrading state objects of an old contract to a new contract.
This assembles the transaction for contract upgrade and sends out change proposals to all participants of that state. If participants agree to the proposed change, they each sign the transaction. Finally, the transaction containing all signatures is sent 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.Authorise
Authorise a contract state upgrade.
|
static class |
ContractUpgradeFlow.Deauthorise
Deauthorise a contract state upgrade.
This will remove the upgrade authorisation from persistent store (and prevent any further upgrade)
|
static class |
ContractUpgradeFlow.Initiate<OldState extends ContractState,NewState extends ContractState>
This flow begins the contract upgrade process.
|
Modifier and Type | Field and Description |
---|---|
static ContractUpgradeFlow |
INSTANCE
A flow to be used for authorising and upgrading state objects of an old contract to a new contract.
|
public static ContractUpgradeFlow INSTANCE
A flow to be used for authorising and upgrading state objects of an old contract to a new contract.
This assembles the transaction for contract upgrade and sends out change proposals to all participants of that state. If participants agree to the proposed change, they each sign the transaction. Finally, the transaction containing all signatures is sent back to each participant so they can record it and use the new updated state for future transactions.