Skip to content

Commit 547f9e1

Browse files
committed
update lending sample
1 parent e06343a commit 547f9e1

File tree

27 files changed

+273
-276
lines changed

27 files changed

+273
-276
lines changed
45.1 KB
Binary file not shown.

Advanced/syndicated-lending/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ Then type: (to run the nodes)
2929

3030
## Interacting with the CorDapp
3131

32-
PartyA (as a borrower) starts the `SubmitProjectProposalFlow` in order to submit the project details to a group of
32+
PeterCo (as a borrower) starts the `SubmitProjectProposalFlow` in order to submit the project details to a group of
3333
lenders and request for funds.
3434

35-
Go to PartyA's terminal and run the below command
35+
Go to PeterCo's terminal and run the below command
3636

3737
```
38-
start SubmitProjectProposalFlow lenders: [PartyB, PartyC], projectDescription: "Overseas Expansion", projectCost: 10000000, loanAmount: 8000000
38+
start SubmitProjectProposalFlow lenders: [BankOfAshu, BankOfSneha], projectDescription: "Overseas Expansion", projectCost: 10000000, loanAmount: 8000000
3939
```
4040

4141
Validate the project details are created and shared with the lenders successfully by running the vaultQuery command in each
@@ -47,10 +47,10 @@ run vaultQuery contractStateType: net.corda.samples.lending.states.ProjectState
4747

4848
Once the lenders have verified the project details and done their due deligence, they could submit bids for loan.
4949

50-
Goto PartyB's terminal and run the below command. The project-id can be found using the vaultQuery command shown earlier.
50+
Goto BankOfAshu's terminal and run the below command. The project-id can be found using the vaultQuery command shown earlier.
5151

5252
```
53-
start SubmitLoanBidFlow borrower: PartyA, loanAmount: 8000000, tenure: 5, rateofInterest: 4.0, transactionFees: 20000, projectIdentifier: <project_id>
53+
start SubmitLoanBidFlow borrower: PeterCo, loanAmount: 8000000, tenure: 5, rateofInterest: 4.0, transactionFees: 20000, projectIdentifier: <project_id>
5454
```
5555

5656
Validate the loanBid is submitted successfully by running the vaultQuery command below:
@@ -61,7 +61,7 @@ run vaultQuery contractStateType: net.corda.samples.lending.states.LoanBidState
6161

6262
Now the borrower can inspect the loan terms and approve the loan bid, to start the syndication process.
6363

64-
Go to PartyA's terminal and run the below command. The loanbid-identifier can be found using the vaultQuery command used earlier.
64+
Go to PeterCo's terminal and run the below command. The loanbid-identifier can be found using the vaultQuery command used earlier.
6565

6666
```
6767
start ApproveLoanBidFlow bidIdentifier: <loanbid-identifier>
@@ -70,10 +70,10 @@ start ApproveLoanBidFlow bidIdentifier: <loanbid-identifier>
7070
One the loan bid has been approved by the borrower, the lender can start the process of creating the syndicate by
7171
acting as the lead bank and approach participating bank for funds.
7272

73-
Goto PartyB's terminal and run the below command.
73+
Goto BankOfAshu's terminal and run the below command.
7474

7575
```
76-
start CreateSyndicateFlow participantBanks: [PartyC, PartyD], projectIdentifier: <project-identifier>, loanDetailIdentifier: <loanbid-identifier>
76+
start CreateSyndicateFlow participantBanks: [BankOfSneha, BankOfTom], projectIdentifier: <project-identifier>, loanDetailIdentifier: <loanbid-identifier>
7777
```
7878

7979
Verify the syndicate is created using the below command:
@@ -83,7 +83,7 @@ run vaultQuery contractStateType: net.corda.samples.lending.states.SyndicateStat
8383
```
8484

8585
On receiving the syndicate creation request, participating banks could verify the project and loan terms and submit
86-
bids for the amount of fund they wish to lend by using the below flow.
86+
bids for the amount of fund they wish to lend by using the below flow in BankOfSneha or BankOfTom node.
8787

8888
```
8989
start SyndicateBidFlow$Initiator syndicateIdentifier: <syndicate-id>, bidAmount: <lending-amount>

Advanced/syndicated-lending/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
114114
}
115115
}
116116
node {
117-
name "O=PartyA,L=London,C=GB"
117+
name "O=PeterCo,L=London,C=GB"
118118
p2pPort 10005
119119
rpcSettings {
120120
address("localhost:10006")
@@ -123,7 +123,7 @@ task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
123123
rpcUsers = [[ user: "user1", "password": "test", "permissions": ["ALL"]]]
124124
}
125125
node {
126-
name "O=PartyB,L=New York,C=US"
126+
name "O=BankOfAshu,L=New York,C=US"
127127
p2pPort 10008
128128
rpcSettings {
129129
address("localhost:10009")
@@ -132,7 +132,7 @@ task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
132132
rpcUsers = [[ user: "user1", "password": "test", "permissions": ["ALL"]]]
133133
}
134134
node {
135-
name "O=PartyC,L=New York,C=US"
135+
name "O=BankOfSneha,L=New York,C=US"
136136
p2pPort 10011
137137
rpcSettings {
138138
address("localhost:10012")
@@ -141,7 +141,7 @@ task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
141141
rpcUsers = [[ user: "user1", "password": "test", "permissions": ["ALL"]]]
142142
}
143143
node {
144-
name "O=PartyD,L=New York,C=US"
144+
name "O=BankOfTom,L=New York,C=US"
145145
p2pPort 10014
146146
rpcSettings {
147147
address("localhost:10016")

Advanced/syndicated-lending/clients/build.gradle

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

Advanced/syndicated-lending/clients/src/main/java/net/corda/samples/lending/Client.java

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

Advanced/syndicated-lending/clients/src/main/java/net/corda/samples/lending/webserver/Controller.java

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

Advanced/syndicated-lending/clients/src/main/java/net/corda/samples/lending/webserver/NodeRPCConnection.java

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

Advanced/syndicated-lending/clients/src/main/java/net/corda/samples/lending/webserver/Starter.java

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

Advanced/syndicated-lending/clients/src/main/resources/static/app.js

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

Advanced/syndicated-lending/clients/src/main/resources/static/index.html

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

0 commit comments

Comments
 (0)