Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
peterli-r3 committed Aug 10, 2023
1 parent 18bda2b commit 3a8f625
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions java-samples/encumbrance-pawn-shop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ and cannot be transferred to another party till the loan has been repaid.
<img width="1000" alt="Encumbrance Flow" src="./encumbrance-sample.png">
</p>



## Usage


Expand Down Expand Up @@ -59,7 +61,7 @@ Now request for a Loan from Bob, pick Alice VNode's identity again. Go to POST /
"clientRequestId": "request-loan",
"flowClassName": "com.r3.developers.samples.encumbrance.workflows.RequestLoanFlow",
"requestBody": {
"lender": "CN=Bob, OU=Test Dept, O=R3, L=London, C=GB",
"lender": "CN=Charlie, OU=Test Dept, O=R3, L=London, C=GB",
"loanAmount": 1000,
"collateral": "<asset-id>" // Check Viewing Data in the Vault Section on get this
}
Expand Down Expand Up @@ -90,7 +92,7 @@ Now try to transfer the Asset to Charlie, pick Alice VNode's identity. Go to POS
"flowClassName": "com.r3.developers.samples.encumbrance.workflows.TransferAssetFlow",
"requestBody": {
"assetId": "<asset-id>", // Check Viewing Data in the Vault Section on get this
"buyer": "CN=Charlie, OU=Test Dept, O=R3, L=London, C=GB"
"buyer": "CN=Bob, OU=Test Dept, O=R3, L=London, C=GB"
}
}
This would result in an error, since the Asset is encumbered with the Loan and hence locked until the loan is repaid.
Expand All @@ -116,7 +118,7 @@ Once the Loan is settled, the asset is unlocked and can be transferred. To trans
"flowClassName": "com.r3.developers.samples.encumbrance.workflows.TransferAssetFlow",
"requestBody": {
"assetId": "<asset-id>",
"buyer": "CN=Charlie, OU=Test Dept, O=R3, L=London, C=GB"
"buyer": "CN=Bob, OU=Test Dept, O=R3, L=London, C=GB"
}
}
The transfer should not complete successfully.
The transfer should now complete successfully.
8 changes: 4 additions & 4 deletions kotlin-samples/encumbrance-pawn-shop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Now request for a Loan from Bob, pick Alice VNode's identity again. Go to POST /
"clientRequestId": "request-loan",
"flowClassName": "com.r3.developers.samples.encumbrance.workflows.RequestLoanFlow",
"requestBody": {
"lender": "CN=Bob, OU=Test Dept, O=R3, L=London, C=GB",
"lender": "CN=Charlie, OU=Test Dept, O=R3, L=London, C=GB",
"loanAmount": 1000,
"collateral": "<asset-id>" // Check Viewing Data in the Vault Section on get this
}
Expand Down Expand Up @@ -92,7 +92,7 @@ Now try to transfer the Asset to Charlie, pick Alice VNode's identity. Go to POS
"flowClassName": "com.r3.developers.samples.encumbrance.workflows.TransferAssetFlow",
"requestBody": {
"assetId": "<asset-id>", // Check Viewing Data in the Vault Section on get this
"buyer": "CN=Charlie, OU=Test Dept, O=R3, L=London, C=GB"
"buyer": "CN=Bob, OU=Test Dept, O=R3, L=London, C=GB"
}
}
This would result in an error, since the Asset is encumbered with the Loan and hence locked until the loan is repaid.
Expand All @@ -118,7 +118,7 @@ Once the Loan is settled, the asset is unlocked and can be transferred. To trans
"flowClassName": "com.r3.developers.samples.encumbrance.workflows.TransferAssetFlow",
"requestBody": {
"assetId": "<asset-id>",
"buyer": "CN=Charlie, OU=Test Dept, O=R3, L=London, C=GB"
"buyer": "CN=Bob, OU=Test Dept, O=R3, L=London, C=GB"
}
}
The transfer should not complete successfully.
The transfer should now complete successfully.

0 comments on commit 3a8f625

Please sign in to comment.