|
| 1 | + |
| 2 | + |
| 3 | +# Change Log - Version 4.0.0 |
| 4 | + |
| 5 | +This document serves as the change log for the ONIXLabs Corda Core API. |
| 6 | + |
| 7 | +## Release Notes |
| 8 | + |
| 9 | +This release supports major features in the ONIXLabs Corda Identity Framework, and the ONIXLabs Corda Business Network Management System. |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +### strictEquals _Extension Function_ |
| 14 | + |
| 15 | +**Module:** onixlabs-corda-core-contract |
| 16 | + |
| 17 | +**Package:** io.onixlabs.corda.core.contract |
| 18 | + |
| 19 | +Guarantees strict equality between the current `AbstractParty` and the other `AbstractParty`. |
| 20 | + |
| 21 | +```kotlin |
| 22 | +fun AbstractParty.strictEquals(other: AbstractParty): Boolean |
| 23 | +``` |
| 24 | + |
| 25 | +--- |
| 26 | + |
| 27 | +### StatePosition _Enum Class_ |
| 28 | + |
| 29 | +**Module:** onixlabs-corda-core-contract |
| 30 | + |
| 31 | +**Package:** io.onixlabs.corda.core.contract |
| 32 | + |
| 33 | +Determines the position of a state within a transaction. |
| 34 | + |
| 35 | +```kotlin |
| 36 | +enum class StatePosition |
| 37 | +``` |
| 38 | + |
| 39 | +#### Entries |
| 40 | + |
| 41 | +| Name | Description | |
| 42 | +| ------------- | ------------------------------------------------------------ | |
| 43 | +| **INPUT** | Defines that a resolvable should resolve from a transaction input state. | |
| 44 | +| **OUTPUT** | Defines that a resolvable should resolve from a transaction output state. | |
| 45 | +| **REFERENCE** | Defines that a resolvable should resolve from a transaction reference input state. | |
| 46 | + |
| 47 | +#### Remarks |
| 48 | + |
| 49 | +This class replaces `TransactionResolution` which has been part of the API since version 1.0.0, and includes new functionality to resolve input, output and reference states from a `LedgerTransaction` instance. |
| 50 | + |
| 51 | +--- |
| 52 | + |
| 53 | +### checkSufficientSessionsForCounterparties _Extension Function_ |
| 54 | + |
| 55 | +**Module:** onixlabs-corda-core-workflow |
| 56 | + |
| 57 | +**Package:** io.onixlabs.corda.core.workflow |
| 58 | + |
| 59 | +Checks that sufficient flow sessions have been provided for the specified counter-parties. |
| 60 | + |
| 61 | +```kotlin |
| 62 | +@Suspendable |
| 63 | +fun FlowLogic<*>.checkSufficientSessionsForCounterparties( |
| 64 | + sessions: Iterable<FlowSession>, |
| 65 | + counterparties: Iterable<AbstractParty>, |
| 66 | + projectParty: (AbstractParty) -> AbstractParty = { it } |
| 67 | +): Unit |
| 68 | +``` |
| 69 | + |
| 70 | +--- |
| 71 | + |
| 72 | +### checkSufficientSessionsForContractStates _Extension Function_ |
| 73 | + |
| 74 | +**Module:** onixlabs-corda-core-workflow |
| 75 | + |
| 76 | +**Package:** io.onixlabs.corda.core.workflow |
| 77 | + |
| 78 | +Checks that sufficient flow sessions have been provided for the specified states. |
| 79 | + |
| 80 | +```kotlin |
| 81 | +@Suspendable |
| 82 | +fun FlowLogic<*>.checkSufficientSessionsForContractStates( |
| 83 | + sessions: Iterable<FlowSession>, |
| 84 | + states: Iterable<ContractState>, |
| 85 | + partyProjection: (AbstractParty) -> AbstractParty = { it } |
| 86 | +): Unit |
| 87 | +``` |
| 88 | + |
| 89 | +--- |
| 90 | + |
| 91 | +### checkSufficientSessionsForContractStates _Extension Function_ |
| 92 | + |
| 93 | +**Module:** onixlabs-corda-core-workflow |
| 94 | + |
| 95 | +**Package:** io.onixlabs.corda.core.workflow |
| 96 | + |
| 97 | +Checks that sufficient flow sessions have been provided for the specified states. |
| 98 | + |
| 99 | +```kotlin |
| 100 | +@Suspendable |
| 101 | +fun FlowLogic<*>.checkSufficientSessionsForContractStates( |
| 102 | + sessions: Iterable<FlowSession>, |
| 103 | + vararg states: ContractState, |
| 104 | + projectParty: (AbstractParty) -> AbstractParty = { it } |
| 105 | +): Unit |
| 106 | +``` |
| 107 | + |
| 108 | +--- |
| 109 | + |
| 110 | +### checkSufficientSessionsForTransactionBuilder _Extension Function_ |
| 111 | + |
| 112 | +**Module:** onixlabs-corda-core-workflow |
| 113 | + |
| 114 | +**Package:** io.onixlabs.corda.core.workflow |
| 115 | + |
| 116 | +Checks that sufficient flow sessions have been provided for the specified transaction. |
| 117 | + |
| 118 | +```kotlin |
| 119 | +@Suspendable |
| 120 | +fun FlowLogic<*>.checkSufficientSessionsForTransactionBuilder( |
| 121 | + sessions: Iterable<FlowSession>, |
| 122 | + transaction: TransactionBuilder, |
| 123 | + partyProjection: (AbstractParty) -> AbstractParty = { it } |
| 124 | + projectParty: (AbstractParty) -> AbstractParty = { it } |
| 125 | +): Unit |
| 126 | +``` |
| 127 | + |
| 128 | +--- |
| 129 | + |
0 commit comments