Skip to content

Commit 00210ed

Browse files
Updated v3 changelog.
1 parent 0a1d3d9 commit 00210ed

File tree

1 file changed

+134
-0
lines changed

1 file changed

+134
-0
lines changed

docs/CHANGELOG-3.0.0.md

+134
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,138 @@ data class SignatureData(
4848
4949
---
5050

51+
### SendTransactionStep _Object_
52+
53+
**Module:** onixlabs-corda-core-workflow
54+
55+
**Package:** io.onixlabs.corda.core.workflow
56+
57+
Represents a progress tracker step indicating that a signed transaction is being sent.
58+
59+
```kotlin
60+
object SendTransactionStep : Step
61+
```
62+
63+
### Remarks
64+
65+
The `publishTransaction` extension function uses this as the default `progressTrackerStep` argument, however you can replace it with your own progress tracker step.
66+
67+
---
68+
69+
### ReceiveTransactionStep _Object_
70+
71+
**Module:** onixlabs-corda-core-workflow
72+
73+
**Package:** io.onixlabs.corda.core.workflow
74+
75+
Represents a progress tracker step indicating that a signed transaction is being received.
76+
77+
```kotlin
78+
object SendTransactionStep : Step
79+
```
80+
81+
### Remarks
82+
83+
The `publishTransactionHandler` extension function uses this as the default `progressTrackerStep` argument, however you can replace it with your own progress tracker step.
84+
85+
---
86+
87+
### publishTransaction _Extension Function_
88+
89+
**Module:** onixlabs-corda-core-workflow
90+
91+
**Package:** io.onixlabs.corda.core.workflow
92+
93+
Publishes a `SignedTransaction` to the specified flow sessions.
94+
95+
```kotlin
96+
@Suspendable
97+
fun FlowLogic<*>.publishTransaction(
98+
transaction: SignedTransaction,
99+
sessions: Set<FlowSession>,
100+
progressTrackerStep: Step = SendTransactionStep
101+
): SignedTransaction
102+
```
103+
104+
#### Remarks
105+
106+
To use this function, `SendTransactionStep` will need to be evident in your progress tracker, unless you replace the default argument with your own progress tracker step.
107+
108+
---
109+
110+
### publishTransactionHandler _Extension Function_
111+
112+
**Module:** onixlabs-corda-core-workflow
113+
114+
**Package:** io.onixlabs.corda.core.workflow
115+
116+
Handles and records a published `SignedTransaction`.
117+
118+
```kotlin
119+
@Suspendable
120+
fun FlowLogic<*>.publishTransactionHandler(
121+
session: FlowSession,
122+
statesToRecord: StatesToRecord = StatesToRecord.ALL_VISIBLE,
123+
checkSufficientSignatures: Boolean = true,
124+
progressTrackerStep: Step = ReceiveTransactionStep
125+
): SignedTransaction
126+
```
127+
128+
#### Remarks
129+
130+
To use this function, `ReceiveTransactionStep` will need to be evident in your progress tracker, unless you replace the default argument with your own progress tracker step.
131+
132+
---
133+
134+
### finalizeTransaction _Extension Function_
135+
136+
**Module:** onixlabs-corda-core-workflow
137+
138+
**Package:** io.onixlabs.corda.core.workflow
139+
140+
Finalizes a transaction.
141+
142+
```kotlin
143+
@Suspendable
144+
fun FlowLogic<*>.finalizeTransaction(
145+
transaction: SignedTransaction,
146+
sessions: Iterable<FlowSession> = emptyList(),
147+
counterpartyStatesToRecord: StatesToRecord = StatesToRecord.ONLY_RELEVANT,
148+
ourStatesToRecord: StatesToRecord = StatesToRecord.ONLY_RELEVANT
149+
): SignedTransaction
150+
```
151+
152+
> 🔵 **INFORMATION**
153+
>
154+
> This API exists in version 2.1.0 however in version 3.0.0 there are two notable changes:
155+
>
156+
> 1. The `sessions` parameter provides a default `emptyList()` argument; useful for finalising local transactions.
157+
> 2. `SendStatesToRecordStep` only needs to be evident in your progress tracker when finalising transactions with counter-parties. For local transactions, this progress tracker step can be omitted.
158+
159+
---
160+
161+
### StatesToRecordBySession _Class_
162+
163+
**Module:** onixlabs-corda-core-workflow
164+
165+
**Package:** io.onixlabs.corda.core.workflow
166+
167+
Represents a mapping of `FlowSession` to `StatesToRecord`, allowing a transaction initiator to specify how each counter-party should record the states of a transaction.
168+
```kotlin
169+
class StatesToRecordBySession(
170+
statesToRecordBySession: Map<FlowSession, StatesToRecord> = emptyMap()
171+
)
172+
```
173+
174+
### Remarks
175+
176+
> 🔵 **INFORMATION**
177+
>
178+
> This API exists in version 2.1.0 however in version 3.0.0, there are two notable changes:
179+
>
180+
> 1. `addSession` has been renamed to `setSessionStatesToRecord`. If a flow session already exists in the underlying map, this function will overwrite its `StatesToRecord` value. If a flow session doesn't exist in the underlying map, this function will add the flow session to the underlying map with the specified `StatesToRecord` value.
181+
> 2. `addMissionSession` has been renamed to `addSessionStatesToRecord`. If a flow session already exists in the underlying map, this function will ignore the addition. If a flow session doesn't exist in the underlying map, this function will add the flow session to the underlying map with the specified `StatesToRecord` value.
182+
183+
---
184+
51185
###

0 commit comments

Comments
 (0)