You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This folder features Corda Accounts sample projects.
3
+
This folder features Corda Accounts sample projects. Learn more about [Accounts](https://training.corda.net/libraries/accounts-lib/).
4
4
5
5
### [Supply Chain](./supplychain):
6
+
7
+
<imgsrc="../webIDE.png" />
8
+
6
9
This CorDapp mimics a supply chain transaction, where the deal is incorporated among different teams in the companies on both side of the trade.
7
10
8
11
### [Tic Tac Thor](./tictacthor):
9
-
This CorDapp recreates the game of Tic Tac Toe via Corda. It primarilly demonstrates how you can have linear state transactions between cross-node accounts.
12
+
This CorDapp recreates the game of Tic Tac Toe via Corda. It primarily demonstrates how you can have [LinearState](https://docs.corda.net/docs/corda-os/api-states.html#linearstate) transactions between cross-node accounts.
This CorDapp demonstrates an ticket booking system with a collaboration of Corda Account Libray and TokenSDK.
16
+
This CorDapp demonstrates an ticket booking system with a collaboration of Corda [Accounts](https://training.corda.net/libraries/accounts-lib/)and [Tokens](https://training.corda.net/libraries/tokens-sdk/).
From the above chart, you can see the flow is going back and forth between different parties' accounts. Please follow the instruction below to experience the Accounts library.
10
+
11
+
From the above chart, you can see the flow is going back and forth between different parties' accounts. Please follow the instruction below to experience the [Accounts](https://training.corda.net/libraries/accounts-lib/) library.
11
12
12
13
# Setting up
13
14
Go into the project directory and build the project
This is creating 3 accounts under Seller's node and sharing with their specific conterpartie's node or account.
48
+
This is creating 3 accounts under Seller's node and sharing with their specific conterparty's node or account.
48
49
49
-
[Optional]: You can run a vaultQuery to see the accoutnInfo that been stored at each node by using:
50
+
[Optional]: You can run a vaultQuery to see the [AccountInfo](https://training.corda.net/libraries/accounts-lib/#design) that been stored at each node by using:
50
51
```
51
52
run vaultQuery contractStateType: com.r3.corda.lib.accounts.contracts.states.AccountInfo
Copy file name to clipboardExpand all lines: Accounts/tictacthor/README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# Tic Tac Thor
2
-
This CorDapp recreates the game of Tic Tac Toe via Corda. It primarilly demonstrates how you can have linear state transactions between cross-node accounts.
2
+
This CorDapp recreates the game of Tic Tac Toe via Corda. It primarilly demonstrates how you can have [LinearState](https://docs.corda.net/docs/corda-os/api-states.html#linearstate) transactions between cross-node accounts.
@@ -30,10 +31,10 @@ From here, you can start play the game by changing the very last number from the
30
31
│3│4│5│ -> │ │X│ │
31
32
│6│7│8│ │ │ │ │
32
33
```
33
-
The Game will automatically end when one player win the game.
34
+
The Game will automatically end when one player wins the game.
34
35
You can also run `run vaultQuery contractStateType: net.corda.samples.tictacthor.states.BoardState` at any given time to see the board games stored in vault.
35
36
36
-
now if you want to fast fard the game, Play the following moves in order:
37
+
now if you want to fast forward the game, Play the following moves in order:
37
38
According to syntax: we should have `http://localhost:8080/submitMove/PeterLi/DavidWinner/3` for the first move below.
38
39
```
39
40
* Peter: 3 │O│ │ │
@@ -48,7 +49,7 @@ We can play a bit more about the accounts. Now let's create two accounts, a new
48
49
* Create an account on SoE node: `http://localhost:8090/createAccount/ThorG`
49
50
Now, try to have Anthony play a game with Thor while start a new game between Peter and David. It worked!
50
51
51
-
One key feature about account is that, each account's data is segregated, meaning each account will not be able to see other account's data. In this sample cordapp, the game is queried by account name. Therefore, we see that each account only knows about the game that he participated. Account Peter doesn't know anything about the game between Thor and Anthony.
52
+
One key feature about account is that, each account's data is segregated, meaning that it can be enforced that each account will not be able to see other account's data. In this sample cordapp, the game is queried by account name. Therefore, we see that each account only knows about the game that he participated. Account Peter doesn't know anything about the game between Thor and Anthony.
52
53
53
54
## Credit
54
55
This project is inspired and evolved from a simple [tic-tac-toe](https://github.com/thorgilman/tictactoe) game on Corda by Thor Gilman.
Copy file name to clipboardExpand all lines: Accounts/worldcupticketbooking/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
## Introduction
5
5
This sample shows you how to integrate accounts and tokens. This sample talks about a scenario where typically when the Cricket season starts, BCCI (Board of Control for Cricket) starts selling tickets.
6
-
As of now there are multiple dealers whom the BCCI issues tickets and further these dealers sell tickets to their client. We are trying to simulate similar functionality maintaining the entore issuance and selling
6
+
As of now there are multiple dealers whom the BCCI issues tickets and further these dealers sell tickets to their client. We are trying to simulate similar functionality maintaining the entire issuance and selling
7
7
of the tickets on Corda Platform.
8
8
9
9
## Flow logic of the sample application
@@ -57,7 +57,7 @@ Run the above command on the Bank node, which will issue 20 USD to buyer1 accoun
57
57
flow start QuerybyAccount whoAmI: buyer1
58
58
```
59
59
You can check balance of buyer1 account at Dealer1's node
60
-
[Option] You can also run the below command to confirm if 20 USD fungible tokens are stored at Dealer1's node. The current holder field in the output will be an AnonymousParty which specifies an account.
60
+
[Option] You can also run the below command to confirm if 20 USD fungible tokens are stored at Dealer1's node. The current holder field in the output will be an [AnonymousParty](https://docs.corda.net/docs/corda-os/4.4/api-identity.html#party) which specifies an account.
61
61
```
62
62
run vaultQuery contractStateType : com.r3.corda.lib.tokens.contracts.states.FungibleToken
63
63
```
@@ -94,7 +94,7 @@ Note that, the current holder it will be a key representing the account.
This is the DVP flow where the buyer(buyer1 account on Dealer1 node) account will pay cash to seller account(agent1 account on Dealer1 node), and the seller accountwill transfer the ticket token to the buyer. Again, replace the `<XXX-XXX-XXXX-XXXXX>` with the uuid generated in step 6.
97
+
This is the DVP flow where the buyer(buyer1 account on Dealer1 node) account will pay cash to seller account(agent1 account on Dealer1 node), and the seller account will transfer the ticket token to the buyer. Again, replace the `<XXX-XXX-XXXX-XXXXX>` with the uuid generated in step 6.
98
98
99
99
### Step 7
100
100
Now lets continue the flow logic to intiate an ticket sale between buyer1 and buyer3. Go to Dealer2 node and run the following code:
@@ -121,7 +121,7 @@ At Dealer2 node
121
121
flow start QuerybyAccount whoAmI: buyer3
122
122
123
123
```
124
-
Confirm who owns the FungibleToken (cash) and NonFungibleToken (ticket) again by running this on Dealer1's node.
124
+
Confirm who owns the [FungibleToken](https://training.corda.net/libraries/tokens-sdk/#fungibletoken) (cash) and [NonFungibleToken](https://training.corda.net/libraries/tokens-sdk/#nonfungibletoken) (ticket) again by running this on Dealer1's node.
Copy file name to clipboardExpand all lines: Advanced/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,8 @@
3
3
This folder features Advanced sample projects, each of them demonstrates a complex cordapp that uses multiple features of Corda.
4
4
5
5
### [auction cordapp](./auction-cordapp):
6
-
An blockchain application that leverages different features of Corda like SchedulableState, StatePointer
7
-
and OwnableState. It also demonstrates how to perform a DvP (Delivery vs Payment) transaction on Corda.
6
+
An blockchain application that leverages different features of Corda like [SchedulableState](https://docs.corda.net/docs/corda-os/event-scheduling.html#how-to-implement-scheduled-events), [StatePointer](https://docs.corda.net/docs/corda-os/api-states.html#state-pointers)
7
+
and [OwnableState](https://docs.corda.net/docs/corda-os/api-states.html#ownablestate). It also demonstrates how to perform a DvP (Delivery vs Payment) transaction on Corda.
8
8
9
9
### [negotiation cordapp](./negotiation-cordapp):
10
10
An application that depicts the businsess negotiation and communication process over a distributed ledger system.
Copy file name to clipboardExpand all lines: Advanced/auction-cordapp/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# auction cordapp
2
2
3
3
This CorDapp serves as a demo of building an auction application on Corda. It leverages
4
-
different features of Corda like `SchedulableState`, `StatePointer` and `OwnableState`. It also demonstrate
4
+
different features of Corda like [SchedulableState](https://docs.corda.net/docs/corda-os/event-scheduling.html#how-to-implement-scheduled-events), [StatePointer](https://docs.corda.net/docs/corda-os/api-states.html#state-pointers) and [OwnableState](https://docs.corda.net/docs/corda-os/api-states.html#ownablestate). It also demonstrate
5
5
how to perform a DvP (Delivery vs Payment) transaction on Corda.
6
6
7
7
It has a full-functional client included and an angular UI to interact with the nodes.
Copy file name to clipboardExpand all lines: Advanced/negotiation-cordapp/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
.# negotiation cordapp
1
+
# negotiation cordapp
2
2
3
3
This CorDapp shows how multi-party negotiation is handled on the Corda ledger, in the absence of an API for user
4
4
interaction.
@@ -22,7 +22,7 @@ We start with the proposal flow implemented in [ProposalFlow.java](./workflows/s
22
22
The modification of the proposal is implemented in [ModificationFlow.java](./workflows/src/main/java/negotiation/flows/ModificationFlow.java#L42-L49).
23
23
24
24
25
-
In the [AcceptanceFlow](./workflows/src/main/java/negotiation/flows/AcceptanceFlow.java#L42-L75), we receive the modified ProposalState and it's converted into a TradeState.
25
+
In the [AcceptanceFlow.java](./workflows/src/main/java/negotiation/flows/AcceptanceFlow.java#L42-L75), we receive the modified ProposalState and it's converted into a TradeState.
Copy file name to clipboardExpand all lines: Advanced/obligation-cordapp/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ The first flows are the ones that issue the original cash and assets. You can fi
20
20
The next flow is the one that transfers ownership of that asset over to another party. That can be found in [IOUTransferFlow.java](./workflows/src/main/java/net/corda/samples/flows/IOUTransferFlow.java#L132-L159).
21
21
22
22
23
-
Finally, once we have the ability to transfer assets, we just need to settle up. That functiionality can be found [here in IOUSettleFlow.java](./workflows/src/main/java/net/corda/samples/flows/IOUSettleFlow.java#L54-L116)
23
+
Finally, once we have the ability to transfer assets, we just need to settle up. That functiionality can be found here in [IOUSettleFlow.java](./workflows/src/main/java/net/corda/samples/flows/IOUSettleFlow.java#L54-L116)
Copy file name to clipboardExpand all lines: Basic/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## samples-java/basic-cordapps
2
2
3
-
This folder features basic sample projects, each of them demonstrates low level cordapp functionalities, such rpc connection, messing, and etc.
3
+
This folder features basic sample projects, each of them demonstrates low level cordapp functionalities, such [RPC connection](https://docs.corda.net/docs/corda-os/api-rpc.html#api-rpc-operations), messaging, etc.
4
4
5
5
### [database access](./flow-database-access):
6
6
This CorDapp provides a simple example of how the node database can be accessed within flows. In this case, the flows maintain a table of cryptocurrency values in the node's database.
0 commit comments