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
### [World Cup Ticket Booking](./worldcupticketbooking):
20
+
21
+
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. 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 of the tickets on Corda Platform.
Copy file name to clipboardExpand all lines: Accounts/supplychain/README.md
+19-14Lines changed: 19 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Accounts_SupplyChain
2
2
3
-
For More information regarding the Accounts Library, please read at: https://github.com/corda/accounts/blob/master/docs.md
3
+
For more information regarding the Accounts Library, please read at: https://github.com/corda/accounts/blob/master/docs.md
4
4
5
5
This sample describes a mock/simple supply chain business flow.
6
6
@@ -10,18 +10,23 @@ This sample describes a mock/simple supply chain business flow.
10
10
11
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.
12
12
13
-
# Setting up
13
+
14
+
## Pre-Requisites
15
+
16
+
For development environment setup, please refer to: [Setup Guide](https://docs.r3.com/en/platform/corda/4.9/community/getting-set-up.html).
17
+
18
+
## Runnning the nodes
14
19
Go into the project directory and build the project
15
20
```
16
-
./gradlew clean deployNodes
21
+
./gradlew clean build deployNodes
17
22
```
18
23
Run the project
19
24
```
20
25
./build/nodes/runnodes
21
26
```
22
27
Now, you should have four Corda terminals opened automatically.
This is creating 3 accounts under Seller's node and sharing with their specific conterparty's node or account.
53
+
This is creating 3 accounts under Seller's node and sharing with their specific counterparty's node or account.
49
54
50
55
[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:
51
56
```
52
57
run vaultQuery contractStateType: com.r3.corda.lib.accounts.contracts.states.AccountInfo
53
58
```
54
-
# Shell Instructions (Part 2) - Executing Business Flows
55
-
## Step 1: Seller's sales team send inovice of $500 to Buyer's procurement team
59
+
##Shell Instructions (Part 2) - Executing Business Flows
60
+
###Step 1: Seller's sales team send invoice for $500 to Buyer's procurement team
You see that the invoice state amount 500 is returned. You can also replace the BuyerProcurement with BuyerWarehouse to see that the non-relevant accounts has no visiblity about the invoice state.
65
70
66
-
## Step 2: Buyer's procurement team will send an internal message to Buyer's Buyer's finance team
71
+
###Step 2: Buyer's procurement team will send an internal message to Buyer's Buyer's finance team
Copy file name to clipboardExpand all lines: Accounts/tictacthor/README.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,31 +1,36 @@
1
1
# Tic Tac Thor
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.
2
+
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.
API Syntax: `http://localhost:8080/submitMove/WHO-AM-I/MY-COUNTERPART/POSITION`
27
32
28
-
From here, you can start play the game by changing the very last number from the `submitMove`API call. The game board is representated by an 1-D array: What we just ran can transfer into a tic-tac-toe game board like the one we see on the right.
33
+
From here, you can start play the game by changing the very last number from the `submitMove`API call. The game board is represented by an 1-D array: What we just ran can transfer into a tic-tac-toe game board like the one we see on the right.
29
34
```
30
35
│0│1│2│ │O│ │ │
31
36
│3│4│5│ -> │ │X│ │
@@ -34,7 +39,7 @@ From here, you can start play the game by changing the very last number from the
34
39
The Game will automatically end when one player wins the game.
35
40
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.
36
41
37
-
now if you want to fastforward the game, Play the following moves in order:
42
+
now if you want to fast-forward the game, Play the following moves in order:
38
43
According to syntax: we should have `http://localhost:8080/submitMove/PeterLi/DavidWinner/3` for the first move below.
39
44
```
40
45
* Peter: 3 │O│ │ │
@@ -49,7 +54,7 @@ We can play a bit more about the accounts. Now let's create two accounts, a new
49
54
* Create an account on SoE node: `http://localhost:8090/createAccount/ThorG`
50
55
Now, try to have Anthony play a game with Thor while start a new game between Peter and David. It worked!
51
56
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.
57
+
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.
53
58
54
59
## Credit
55
60
This project is inspired and evolved from a simple [tic-tac-toe](https://github.com/thorgilman/tictactoe) game on Corda by Thor Gilman.
0 commit comments