Skip to content

Commit dfc291c

Browse files
committed
update README
1 parent 793dcec commit dfc291c

File tree

13 files changed

+18
-88
lines changed

13 files changed

+18
-88
lines changed

Features/state-reissuance/.gitignore

Lines changed: 0 additions & 78 deletions
This file was deleted.

Features/state-reissuance/README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Once land title has been issued to PartyB, he could transfer it to PartyC. Go to
4444
`start TransferLandTitleFlow owner: PartyC, plotIdentifier: <plot-identifier>`
4545

4646
You could find the `plot-identifier` from the result of the vaultQuery command used earlier to query the ledgers.
47+
![Screenshot](image/1.jpeg)
4748

4849
Verify the land title has been correctly tranferred to PartyC by querying the ledgers of PartyA and PartyC using the below command
4950

@@ -68,6 +69,7 @@ reissuance request. To accept the request goto PartyA's (issuer) terminal and ru
6869

6970
The `<output-index>` and `<trnx-hash>` are of the transaction which created the state to the reissued. They can be found
7071
in the `ReissuanceRequest` queried earlier.
72+
![Screenshot](image/2.jpeg)
7173

7274
On successful completion of the above flow, the a duplicate land title would be issued, however it would be currently
7375
locked and it could not be spend. In order to spend it, the older state which was requested to be reissued must be exited
@@ -81,14 +83,20 @@ Once the previous land title is exited, unlock the reissued land title using the
8183

8284
`start UnlockReissuedLandStateFlow reissuedRef: {index: <output-index>, txhash: <tx-hash>}, reissuanceLockRef: {index: <output-index>, txhash: <tx-hash>}, exitTrnxId: <tx-hash>`
8385

84-
The `reissuedRef` is the stateRef of the reissued state, `reissuanceLockRef` is the stateRef of the reissuance lock generated,
85-
which can queried usinf `run vaultQuery contractStateType: com.r3.corda.lib.reissuance.states.ReissuanceLock` and `exitTrnxId` is the
86-
transaction hash of the transaction used to exit the older state.
87-
86+
The `reissuedRef` is the stateRef of the reissued state.
87+
![Screenshot](image/3.jpeg)
88+
89+
And the `reissuanceLockRef` is the stateRef of the reissuance lock generated, which can queried using `run vaultQuery contractStateType: com.r3.corda.lib.reissuance.states.ReissuanceLock`
90+
![Screenshot](image/4.jpeg)
91+
And the `exitTrnxId` is the transaction hash of the transaction used to exit the older state.
92+
![Screenshot](image/5.jpeg)
93+
8894
Note that the lock uses the encumbrance feature of Corda. You can check out the sample on encumbrance [here](https://github.com/corda/samples-java/tree/master/Features/encumbrance-avatar)
8995

90-
Now the reissue process is completed and the reissued state can be spent freely.
91-
96+
Now with all the information input into the function call, the reissue process is completed and the reissued state can be spent freely.
9297

98+
![Screenshot](image/6.jpeg)
9399

100+
You can see the encumbrance field is restored to `null` again, meaning the state is free to be transacted again.
101+
![Screenshot](image/7.jpeg)
94102

Features/state-reissuance/contracts/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cordapp {
55
targetPlatformVersion corda_platform_version
66
minimumPlatformVersion corda_platform_version
77
contract {
8-
name "Template Contracts"
8+
name "State Re-Issuance Contracts"
99
vendor "Corda Open Source"
1010
licence "Apache License, Version 2.0"
1111
versionId 1

Features/state-reissuance/contracts/src/test/java/net/corda/samples/statereissuance/contracts/ContractTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
public class ContractTests {
15-
private final MockServices ledgerServices = new MockServices(Arrays.asList("com.template"));
15+
private final MockServices ledgerServices = new MockServices(Arrays.asList("net.corda.samples.statereissuance"));
1616
TestIdentity alice = new TestIdentity(new CordaX500Name("Alice", "TestLand", "US"));
1717
TestIdentity bob = new TestIdentity(new CordaX500Name("Alice", "TestLand", "US"));
1818

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
name=Test
2-
group=com.template
2+
group=com.statereissuance
33
version=0.1
277 KB
Loading
283 KB
Loading
323 KB
Loading
364 KB
Loading
91.1 KB
Loading

0 commit comments

Comments
 (0)