Skip to content

Commit 4199807

Browse files
authored
Update README.md
1 parent 77b4ac0 commit 4199807

File tree

1 file changed

+1
-14
lines changed
  • Features/referencestates-sanctionsbody

1 file changed

+1
-14
lines changed

Features/referencestates-sanctionsbody/README.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
1-
# reference state cordapp [<img src="../../webIDE.png" height=25 />](https://ide.corda.net/?folder=/home/coder/samples-java/Features/referencestates-sanctionsbody)
1+
# Sanctionbody -- ReferenceState
22

33
This CorDapp demonstrates the use of [reference states](https://training.corda.net/corda-details/reference-states/) in a transaction and in the verification method of a contract.
44

55
## Concepts
6-
7-
86
This CorDapp allows two nodes to enter into an IOU agreement, but enforces that both parties belong to a list of sanctioned entities. This list of sanctioned entities is taken from a referenced SanctionedEntities state.
97

10-
### Flows
11-
12-
Next, we want to issue an IOU, this happens in [IOUIssueFlow](./workflows/src/main/java/com.example.flow/IOUIssueFlow.java#L150-L173)
13-
14-
15-
We've seen how to successfully send an IOU to a non-sanctioned party, so what if we want to send one to a sanctioned party? First we need to update the sanction list which you'll find in [UpdateSanctionsListFlow](./workflows/src/main/java/com.example.flow/UpdateSanctionsListFlow.java#L45-L90).
16-
17-
18-
We need to update the reference before we use it in a new transaction, we receive our sanctionslist with the [GetSanctionsListFlow](./workflows/src/main/java/com.example.flow/GetSanctionsListFlow.java#L51-L63)
19-
20-
218
## Usage
229

2310

0 commit comments

Comments
 (0)