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
You must download the latest source [here](https://github.com/corda/token-sdk) and then run the gradle task 'publishToMavenLocal'
11
11
12
12
---
13
-
This cordapp demonstrates the new Java Apis released with TokenSDK 1.2
13
+
This CorDapp demonstrates the new Java APIs released with Token SDK 1.2
14
14
15
15
For an exploratory overview of usage, checkout the following blog post: [here](https://medium.com/corda/corda-tokens-made-easy-with-new-java-apis-83095693d72)
16
16
@@ -36,7 +36,7 @@ Additionally two new Java Builder classes have been added to allow easy creation
36
36
- FungibleTokenBuilder
37
37
- NonFungibleTokenBuilder
38
38
39
-
The Cordapp will allow International Planetary Council (IPC) residents to use their local currencies to either purchase unique spaceships (represented by NonFungibleToken) OR invest in partial ownership of a spaceship (represented by a FungibleToken).
39
+
The CorDapp will allow International Planetary Council (IPC) residents to use their local currencies to either purchase unique spaceships (represented by NonFungibleToken) OR invest in partial ownership of a spaceship (represented by a FungibleToken).
40
40
41
41
Examples of the new Java APIs will be used throughout and identified as such.
42
42
@@ -47,7 +47,7 @@ Examples of the new Java APIs will be used throughout and identified as such.
47
47
48
48
### Flows
49
49
50
-
Flows are executed through the `FlowTests` class in the workflows module. They can also be run through the CrashShell.
50
+
Flows are executed through the `FlowTests` class in the workflows module. They can also be run through the CRaSH shell.
Copy file name to clipboardExpand all lines: Tokens/spaceships-javaAPIs/contracts/src/main/java/net/corda/examples/spaceships/states/SpaceshipTokenType.java
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -98,9 +98,7 @@ public List<Party> getMaintainers() {
98
98
publicUniqueIdentifiergetLinearId() {
99
99
returnlinearId;
100
100
}
101
-
102
-
103
-
101
+
104
102
/* This method returns a TokenPointer by using the linear Id of the evolvable state */
Copy file name to clipboardExpand all lines: Tokens/spaceships-javaAPIs/workflows/src/main/java/net/corda/examples/spaceships/flows/BuySpaceshipFlows.java
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@
35
35
* To achieve this the steps are:
36
36
* 1. Buyer requests the value/sale price of the ship he wants to purchase identified by UUID
37
37
* 2. Seller queries his inventory of ships and grabs the value of the associated UUID and sends to Buyer
38
-
* 3. Buyer checks to see if he has the money to pay - if not throws exception which ends the flow.
38
+
* 3. Buyer checks to see if he has the money to pay - if not throws exception which ends the flow
39
39
* 4. Seller sends the transaction of ownership (the tx that created his ownership token) and sends it to Buyer
40
40
* 5. Buyer creates transaction with the required currency tokens going to seller, and the ship token going to buyer
41
41
* 6. Transaction is signed and finalised
@@ -69,21 +69,21 @@ public SignedTransaction call() throws FlowException {
69
69
70
70
paymentAmount = shipValue; // first we will try to pay in the native currency of the ship's value
71
71
72
-
// check if we have enough funds to afford this currency and amount
72
+
// Check if we have enough funds to afford this currency and amount
73
73
// tokenBalance returns Amount<TokenType> which represents the quantity of this TokenType (currency) in our vault
Copy file name to clipboardExpand all lines: Tokens/spaceships-javaAPIs/workflows/src/main/java/net/corda/examples/spaceships/flows/InvestSpaceshipFlows.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ public sharesOwnedInSpaceshipResponder(FlowSession counterpartySession) {
Copy file name to clipboardExpand all lines: Tokens/spaceships-javaAPIs/workflows/src/main/java/net/corda/examples/spaceships/flows/IssueSpaceshipFlows.java
0 commit comments