Remove Schedulable states from core-deterministic. (#5975)

This commit is contained in:
Chris Rankin 2020-02-18 09:10:19 +00:00 committed by GitHub
parent 396a579c8b
commit 17f5bfc53b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,8 +134,7 @@ interface LinearState : ContractState {
val linearId: UniqueIdentifier val linearId: UniqueIdentifier
} }
// DOCEND 2 // DOCEND 2
@DeleteForDJVM
@KeepForDJVM
interface SchedulableState : ContractState { interface SchedulableState : ContractState {
/** /**
* Indicate whether there is some activity to be performed at some future point in time with respect to this * Indicate whether there is some activity to be performed at some future point in time with respect to this
@ -146,7 +145,6 @@ interface SchedulableState : ContractState {
* *
* @return null if there is no activity to schedule. * @return null if there is no activity to schedule.
*/ */
@DeleteForDJVM
fun nextScheduledActivity(thisStateRef: StateRef, flowLogicRefFactory: FlowLogicRefFactory): ScheduledActivity? fun nextScheduledActivity(thisStateRef: StateRef, flowLogicRefFactory: FlowLogicRefFactory): ScheduledActivity?
} }
@ -176,6 +174,7 @@ data class StateAndRef<out T : ContractState>(val state: TransactionState<T>, va
// DOCEND 7 // DOCEND 7
/** A wrapper for a [StateAndRef] indicating that it should be added to a transaction as a reference input state. */ /** A wrapper for a [StateAndRef] indicating that it should be added to a transaction as a reference input state. */
@KeepForDJVM
data class ReferencedStateAndRef<out T : ContractState>(val stateAndRef: StateAndRef<T>) data class ReferencedStateAndRef<out T : ContractState>(val stateAndRef: StateAndRef<T>)
/** Filters a list of [StateAndRef] objects according to the type of the states */ /** Filters a list of [StateAndRef] objects according to the type of the states */