future = a.startFlow(flow);
+// network.runNetwork();
+//
+// //successful query means the state is stored at node b's vault. Flow went through.
+// QueryCriteria inputCriteria = new QueryCriteria.VaultQueryCriteria().withStatus(Vault.StateStatus.UNCONSUMED);
+// TemplateState state = b.getServices().getVaultService().queryBy(TemplateState.class,inputCriteria)
+// .getStates().get(0).getState().getData();
+// }
+//}
diff --git a/Features/notarychange-iou/README.md b/Features/notarychange-iou/README.md
index 3c8fb849..dedf06ac 100644
--- a/Features/notarychange-iou/README.md
+++ b/Features/notarychange-iou/README.md
@@ -6,14 +6,14 @@ using one of the Corda library flow called `NotaryChangeFlow`.
## Concepts
Notary is a critical component of a Corda network. It helps prevent double-spending
-attempts in a Corda network. Thus all states issued in Corda are tied to a Notary.
+attempts in a Corda network. Thus, all states issued in Corda are tied to a Notary.
Any transaction involving the update of a state must be notarised from the Notary
that the state is tied to, since other notaries wouldn't have seen any previous
transaction involving the state would not be able to prevent a double spending
attempt.
However, a need to spend a state at a notary other than the one its tied to
-become unavoidable at times. Thus Corda provides `NotaryChangeFlow` to cater to such
+become unavoidable at times. Thus, Corda provides `NotaryChangeFlow` to cater to such
needs.
This demo uses the IOU Demo to demonstrate a Notary Change Transaction. Here we would
@@ -25,14 +25,14 @@ issue an IOU at a particular Notary and try to settle the IOU at a different Not
### Pre-Requisites
-See https://docs.corda.net/getting-set-up.html.
+For development environment setup, please refer to: [Setup Guide](https://docs.r3.com/en/platform/corda/4.10/community/getting-set-up.html).
### Running the CorDapp
Open a terminal and go to the project root directory and type: (to deploy the
nodes using bootstrapper)
```
-./gradlew clean deployNodes
+./gradlew clean build deployNodes
```
Then type: (to run the nodes)
```
@@ -40,8 +40,6 @@ Then type: (to run the nodes)
```
This should bring up 4 nodes (PartyA, PartyB, NotaryA and NotaryB) in 4 different terminals.
-If you have any questions during setup, please go to
-https://docs.corda.net/getting-set-up.html for detailed setup instructions.
To issue an IOU go to PartyA terminal and run:
```
diff --git a/Features/notarychange-iou/build.gradle b/Features/notarychange-iou/build.gradle
index 222c2d6f..9e7afa01 100644
--- a/Features/notarychange-iou/build.gradle
+++ b/Features/notarychange-iou/build.gradle
@@ -21,7 +21,7 @@ buildscript {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda-releases' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
}
dependencies {
@@ -40,7 +40,7 @@ allprojects {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://jitpack.io' }
}
@@ -85,7 +85,7 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+ cordaDriver "net.corda:corda-shell:4.10"
}
diff --git a/Features/notarychange-iou/repositories.gradle b/Features/notarychange-iou/repositories.gradle
index 3198e5c6..8be7b630 100644
--- a/Features/notarychange-iou/repositories.gradle
+++ b/Features/notarychange-iou/repositories.gradle
@@ -3,6 +3,6 @@ repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
diff --git a/Features/observablestates-tradereporting/README.md b/Features/observablestates-tradereporting/README.md
index 3cf7affb..5d130bf1 100644
--- a/Features/observablestates-tradereporting/README.md
+++ b/Features/observablestates-tradereporting/README.md
@@ -1,6 +1,6 @@
# Trade Reporting -- ObservableStates
-This CorDapp shows how Corda's [observable states](https://docs.corda.net/docs/corda-os/4.4/tutorial-observer-nodes.html#observer-nodes) feature works. Observable states is the ability for nodes who are not
+This CorDapp shows how Corda's observable states feature works. Observable states is the ability for nodes who are not
participants in a transaction to still store them if the transactions are sent to them.
@@ -24,18 +24,18 @@ In this CorDapp, the seller runs the `TradeAndReport` flow to create a new `High
## Pre-Requisites
-For development environment setup, please refer to: [Setup Guide](https://docs.corda.net/getting-set-up.html).
+For development environment setup, please refer to: [Setup Guide](https://docs.r3.com/en/platform/corda/4.10/community/getting-set-up.html).
### Deploy and run the node
```
-./greadlew deployNodes
+./greadlew clean build deployNodes
./build/node/runnodes
```
### Interacting with the nodes:
-Go to the [CRaSH](https://docs.corda.net/docs/corda-os/shell.html) shell of Seller, and create a new `HighlyRegulatedState`
+Go to the interactive node shell of Seller, and create a new `HighlyRegulatedState`
start TradeAndReport buyer: Buyer, stateRegulator: StateRegulator, nationalRegulator: NationalRegulator
diff --git a/Features/observablestates-tradereporting/build.gradle b/Features/observablestates-tradereporting/build.gradle
index 3cb98727..c9854356 100644
--- a/Features/observablestates-tradereporting/build.gradle
+++ b/Features/observablestates-tradereporting/build.gradle
@@ -20,7 +20,7 @@ buildscript {//properties that you need to build the project
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda-releases' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
}
dependencies {
@@ -38,7 +38,7 @@ allprojects {//Properties that you need to compile your project (The application
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://jitpack.io' }
}
@@ -79,7 +79,7 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+ cordaDriver "net.corda:corda-shell:4.10"
}
diff --git a/Features/observablestates-tradereporting/repositories.gradle b/Features/observablestates-tradereporting/repositories.gradle
index 3198e5c6..8be7b630 100644
--- a/Features/observablestates-tradereporting/repositories.gradle
+++ b/Features/observablestates-tradereporting/repositories.gradle
@@ -3,6 +3,6 @@ repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
diff --git a/Features/oracle-primenumber/README.md b/Features/oracle-primenumber/README.md
index bef5585a..93bd4d00 100644
--- a/Features/oracle-primenumber/README.md
+++ b/Features/oracle-primenumber/README.md
@@ -26,25 +26,25 @@ This repo is split into three CorDapps:
## Pre-Requisites
-For development environment setup, please refer to: [Setup Guide](https://docs.corda.net/getting-set-up.html).
+For development environment setup, please refer to: [Setup Guide](https://docs.r3.com/en/platform/corda/4.10/community/getting-set-up.html).
### Running the CorDapp
Open a terminal and go to the project root directory and type: (to deploy the nodes using bootstrapper)
```
-./gradlew clean deployNodes
+./gradlew clean build deployNodes
```
Then type: (to run the nodes)
```
./build/nodes/runnodes
```
-Go to the [CRaSH](https://docs.corda.net/docs/corda-os/shell.html) shell for PartyA, and request the 5th prime from the oracle using the `CreatePrime` flow:
+Go to the interactive node shell for PartyA, and request the 5th prime from the oracle using the `CreatePrime` flow:
flow start CreatePrime index: 5
We can then see the state wrapping the 5th prime (11) in our vault by running:
- run vaultQuery contractStateType: net.corda.examples.oracle.base.states.PrimeState
+ run vaultQuery contractStateType: net.corda.samples.oracle.states.PrimeState
diff --git a/Features/oracle-primenumber/build.gradle b/Features/oracle-primenumber/build.gradle
index 856d05a4..66c3fbdb 100644
--- a/Features/oracle-primenumber/build.gradle
+++ b/Features/oracle-primenumber/build.gradle
@@ -20,7 +20,7 @@ buildscript {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda-releases' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
}
dependencies {
@@ -38,7 +38,7 @@ allprojects {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://jitpack.io' }
}
@@ -91,7 +91,7 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+ cordaDriver "net.corda:corda-shell:4.10"
testCompile "junit:junit:$junit_version"
testCompile "$corda_release_group:corda-node-driver:$corda_release_version"
diff --git a/Features/oracle-primenumber/contracts/src/test/java/net/corda/samples/oracle/contracts/PrimeContractTests.java b/Features/oracle-primenumber/contracts/src/test/java/net/corda/samples/oracle/contracts/PrimeContractTests.java
index 683b5679..eb1d95c5 100644
--- a/Features/oracle-primenumber/contracts/src/test/java/net/corda/samples/oracle/contracts/PrimeContractTests.java
+++ b/Features/oracle-primenumber/contracts/src/test/java/net/corda/samples/oracle/contracts/PrimeContractTests.java
@@ -11,9 +11,11 @@
import org.junit.Test;
import java.util.Arrays;
+import java.util.Optional;
import static net.corda.testing.node.NodeTestUtils.transaction;
-import static org.jgroups.util.Util.assertEquals;
+import static org.junit.Assert.assertEquals;
+import static org.wildfly.common.Assert.assertTrue;
public class PrimeContractTests {
@@ -39,8 +41,8 @@ public void contractImplementsContract() {
@Test
public void constructorTest() {
- assertEquals(1, st.getN());
- assertEquals(5, st.getNthPrime());
+ assertTrue(st.getN() == 1);
+ assertTrue( st.getNthPrime() == 5);
}
@Test
diff --git a/Features/oracle-primenumber/contracts/src/test/java/net/corda/samples/oracle/states/PrimeStateTests.java b/Features/oracle-primenumber/contracts/src/test/java/net/corda/samples/oracle/states/PrimeStateTests.java
index d24010c1..1f95c722 100644
--- a/Features/oracle-primenumber/contracts/src/test/java/net/corda/samples/oracle/states/PrimeStateTests.java
+++ b/Features/oracle-primenumber/contracts/src/test/java/net/corda/samples/oracle/states/PrimeStateTests.java
@@ -4,8 +4,8 @@
import net.corda.testing.core.TestIdentity;
import org.junit.Test;
-import static org.jgroups.util.Util.assertTrue;
import static org.junit.Assert.assertEquals;
+import static org.wildfly.common.Assert.assertTrue;
public class PrimeStateTests {
diff --git a/Features/oracle-primenumber/repositories.gradle b/Features/oracle-primenumber/repositories.gradle
index 3198e5c6..8be7b630 100644
--- a/Features/oracle-primenumber/repositories.gradle
+++ b/Features/oracle-primenumber/repositories.gradle
@@ -3,6 +3,6 @@ repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
diff --git a/Features/oracle-primenumber/workflows/src/test/java/net/corda/samples/oracle/flows/PrimeClientTests.java b/Features/oracle-primenumber/workflows/src/test/java/net/corda/samples/oracle/flows/PrimeClientTests.java
index 95899565..c33b32f6 100644
--- a/Features/oracle-primenumber/workflows/src/test/java/net/corda/samples/oracle/flows/PrimeClientTests.java
+++ b/Features/oracle-primenumber/workflows/src/test/java/net/corda/samples/oracle/flows/PrimeClientTests.java
@@ -12,7 +12,7 @@
import java.util.concurrent.ExecutionException;
-import static org.jgroups.util.Util.assertEquals;
+import static org.junit.Assert.assertEquals;
public class PrimeClientTests {
diff --git a/Features/postgres-cordapp/README.md b/Features/postgres-cordapp/README.md
index 7a5f4cdd..9eebfb8f 100644
--- a/Features/postgres-cordapp/README.md
+++ b/Features/postgres-cordapp/README.md
@@ -1,12 +1,12 @@
-# Postgres Cordapp
+# Postgres CorDapp
The latest versions of Corda Open Source support H2 and Postgres.H2 is the default database while this application will
-demonstrate to you how to run corda with a postgres. The cordapp being used is another copy of the yo cordapp, as the
+demonstrate to you how to run corda with a postgres. The CorDapp being used is another copy of the yo CorDapp, as the
majority of the work here is in simply configuring the sql database connection.
## Pre-Requisites
-See https://docs.corda.net/getting-set-up.html.
+For development environment setup, please refer to: [Setup Guide](https://docs.r3.com/en/platform/corda/4.10/community/getting-set-up.html).
## Usage
@@ -58,7 +58,7 @@ docker exec -i postgres_for_corda psql -U postgres -p 5432 -h localhost postgres
docker exec -i postgres_for_corda psql -U postgres -p 5432 -h localhost postgres -c "\dg"
```
-### Connencting to your database with dbeaver
+### Connecting to your database with dbeaver
You can connect to your db with all kinds of tools like dbeaver, just open up a new connection, specify `postgreSQL` in
the search bar.
diff --git a/Features/postgres-cordapp/build.gradle b/Features/postgres-cordapp/build.gradle
index 2692b179..f11c0efa 100644
--- a/Features/postgres-cordapp/build.gradle
+++ b/Features/postgres-cordapp/build.gradle
@@ -23,7 +23,7 @@ buildscript {//properties that you need to build the project
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda-releases' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
}
dependencies {
@@ -42,7 +42,7 @@ allprojects {//Properties that you need to compile your project (The application
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://jitpack.io' }
}
@@ -83,7 +83,7 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+ cordaDriver "net.corda:corda-shell:4.10"
cordaDriver "org.postgresql:postgresql:42.2.19"
}
diff --git a/Features/postgres-cordapp/repositories.gradle b/Features/postgres-cordapp/repositories.gradle
index 3198e5c6..8be7b630 100644
--- a/Features/postgres-cordapp/repositories.gradle
+++ b/Features/postgres-cordapp/repositories.gradle
@@ -3,6 +3,6 @@ repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
diff --git a/Features/queryablestate-carinsurance/README.md b/Features/queryablestate-carinsurance/README.md
index 0e94c408..f7f39dea 100644
--- a/Features/queryablestate-carinsurance/README.md
+++ b/Features/queryablestate-carinsurance/README.md
@@ -1,6 +1,6 @@
# Car Insurance -- QueryableState
-This CorDapp demonstrates [QueryableState](https://docs.corda.net/docs/corda-os/api-persistence.html) works in Corda. Corda allows developers
+This CorDapp demonstrates [QueryableState](https://docs.r3.com/en/platform/corda/4.10/enterprise/cordapps/api-states.html#the-queryablestate-and-schedulablestate-interfaces) works in Corda. Corda allows developers
to have the ability to expose some or all parts of their states to a custom database
table using an ORM tools. To support this feature the state must implement
`QueryableState`.
@@ -8,7 +8,7 @@ table using an ORM tools. To support this feature the state must implement
In this CorDapp we would use an `Insurance` state and persist its properties in a
custom table in the database. The `Insurance` state among other fields also
contains an `VehicleDetail` object, which is the asset being insured. We have used
-this `VehicleDetail` to demonstrate _One-to-One_ relationship. Similarly we also
+this `VehicleDetail` to demonstrate _One-to-One_ relationship. Similarly, we also
have a list of `Claim` objects in the `Insurance` state which represents claims
made against the insurance. We use them to demonstrate _One-to-Many_ relationship.
@@ -16,31 +16,31 @@ made against the insurance. We use them to demonstrate _One-to-Many_ relationshi
## Concepts
-A spring boot client is provided with the cordapp, which exposes two REST endpoints
-(see `Controller` in the clients module) to trigger the flows.
+A spring boot client is provided with the CorDapp, which exposes two REST endpoints
+(see `Controller` in the clients' module) to trigger the flows.
Use the command `./gradlew bootRun` in the project root folder to run the [Spring Boot
Server](https://spring.io/projects/spring-boot#overview).
### Flows
-There are two flow in this cordapp:
+There are two flow in this CorDapp:
-1. IssueInsurance: It creates the insurance state with the associated vehicle information.
+1. `IssueInsurance`: It creates the insurance state with the associated vehicle information.
-2. InsuranceClaim: It creates the claims against the insurance.
+2. `InsuranceClaim`: It creates the claims against the insurance.
## Usage
## Pre-Requisites
-For development environment setup, please refer to: [Setup Guide](https://docs.corda.net/getting-set-up.html).
+For development environment setup, please refer to: [Setup Guide](https://docs.r3.com/en/platform/corda/4.10/community/getting-set-up.html).
### Running the CorDapp
Open a terminal and go to the project root directory and type: (to deploy the nodes using bootstrapper)
```
-./gradlew clean deployNodes
+./gradlew clean build deployNodes
```
Then type: (to run the nodes)
```
@@ -50,7 +50,8 @@ Then type: (to run the nodes)
### Interacting with the nodes
The Postman collection containing API's calls to the REST endpoints can be imported
-from the link: https://www.getpostman.com/collections/ddc01c13b8ab4b5e853b.
+from [this link](https://www.getpostman.com/collections/ddc01c13b8ab4b5e853b).
+
Use the option Import > Import from Link option in Postman to import the collection.
diff --git a/Features/queryablestate-carinsurance/build.gradle b/Features/queryablestate-carinsurance/build.gradle
index f8be7030..a2f9fd30 100644
--- a/Features/queryablestate-carinsurance/build.gradle
+++ b/Features/queryablestate-carinsurance/build.gradle
@@ -24,7 +24,7 @@ buildscript {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda-releases' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
}
dependencies {
@@ -44,7 +44,7 @@ allprojects {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://jitpack.io' }
}
@@ -84,7 +84,8 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+
+ cordaDriver "net.corda:corda-shell:4.10"
}
diff --git a/Features/queryablestate-carinsurance/contracts/build.gradle b/Features/queryablestate-carinsurance/contracts/build.gradle
index 12dcbf54..6e7348cc 100644
--- a/Features/queryablestate-carinsurance/contracts/build.gradle
+++ b/Features/queryablestate-carinsurance/contracts/build.gradle
@@ -44,6 +44,6 @@ dependencies {
// Corda dependencies.
cordaCompile "$corda_core_release_group:corda-core:$corda_core_release_version"
cordaRuntime "$corda_release_group:corda:$corda_release_version"
- compileOnly "$corda_release_group:corda-testserver-impl:$corda_release_version"
+
testCompile "$corda_release_group:corda-node-driver:$corda_release_version"
}
diff --git a/Features/queryablestate-carinsurance/contracts/src/test/java/net/corda/samples/carinsurance/states/InsuranceStateTests.java b/Features/queryablestate-carinsurance/contracts/src/test/java/net/corda/samples/carinsurance/states/InsuranceStateTests.java
index 8a78e4a8..c94b494c 100644
--- a/Features/queryablestate-carinsurance/contracts/src/test/java/net/corda/samples/carinsurance/states/InsuranceStateTests.java
+++ b/Features/queryablestate-carinsurance/contracts/src/test/java/net/corda/samples/carinsurance/states/InsuranceStateTests.java
@@ -7,8 +7,9 @@
import java.util.Arrays;
-import static org.jgroups.util.Util.assertEquals;
-import static org.jgroups.util.Util.assertTrue;
+import static org.junit.Assert.assertEquals;
+import static org.wildfly.common.Assert.assertTrue;
+
public class InsuranceStateTests {
diff --git a/Features/queryablestate-carinsurance/contracts/src/test/java/net/corda/samples/carinsurance/states/VehicleDetailTests.java b/Features/queryablestate-carinsurance/contracts/src/test/java/net/corda/samples/carinsurance/states/VehicleDetailTests.java
index 547a62a8..b03ef72a 100644
--- a/Features/queryablestate-carinsurance/contracts/src/test/java/net/corda/samples/carinsurance/states/VehicleDetailTests.java
+++ b/Features/queryablestate-carinsurance/contracts/src/test/java/net/corda/samples/carinsurance/states/VehicleDetailTests.java
@@ -4,7 +4,7 @@
import net.corda.testing.core.TestIdentity;
import org.junit.Test;
-import static org.jgroups.util.Util.assertEquals;
+import static org.junit.Assert.assertEquals;
public class VehicleDetailTests {
diff --git a/Features/queryablestate-carinsurance/repositories.gradle b/Features/queryablestate-carinsurance/repositories.gradle
index 3198e5c6..8be7b630 100644
--- a/Features/queryablestate-carinsurance/repositories.gradle
+++ b/Features/queryablestate-carinsurance/repositories.gradle
@@ -3,6 +3,6 @@ repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
diff --git a/Features/queryablestate-carinsurance/workflows/build.gradle b/Features/queryablestate-carinsurance/workflows/build.gradle
index a5fd876b..e53991a3 100644
--- a/Features/queryablestate-carinsurance/workflows/build.gradle
+++ b/Features/queryablestate-carinsurance/workflows/build.gradle
@@ -52,7 +52,7 @@ dependencies {
// Corda dependencies.
cordaCompile "$corda_core_release_group:corda-core:$corda_core_release_version"
cordaRuntime "$corda_release_group:corda:$corda_release_version"
- compileOnly "$corda_release_group:corda-testserver-impl:$corda_release_version"
+
testCompile "$corda_release_group:corda-node-driver:$corda_release_version"
// CorDapp dependencies.
diff --git a/Features/referencestates-sanctionsbody/README.md b/Features/referencestates-sanctionsbody/README.md
index 00c0aa0e..be971b8d 100644
--- a/Features/referencestates-sanctionsbody/README.md
+++ b/Features/referencestates-sanctionsbody/README.md
@@ -10,14 +10,14 @@ This CorDapp allows two nodes to enter into an IOU agreement, but enforces that
## Pre-Requisites
-For development environment setup, please refer to: [Setup Guide](https://docs.corda.net/getting-set-up.html).
+For development environment setup, please refer to: [Setup Guide](https://docs.r3.com/en/platform/corda/4.10/community/getting-set-up.html).
### Running the CorDapp
Open a terminal and go to the project root directory and type: (to deploy the nodes using bootstrapper)
```
-./gradlew clean deployNodes
+./gradlew clean build deployNodes
```
Then type: (to run the nodes)
```
diff --git a/Features/referencestates-sanctionsbody/build.gradle b/Features/referencestates-sanctionsbody/build.gradle
index 25d20eea..49b1af1c 100644
--- a/Features/referencestates-sanctionsbody/build.gradle
+++ b/Features/referencestates-sanctionsbody/build.gradle
@@ -20,7 +20,7 @@ buildscript {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda-releases' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
}
dependencies {
@@ -38,7 +38,7 @@ allprojects { //Properties that you need to compile your project (The applicatio
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://jitpack.io' }
}
@@ -79,7 +79,7 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+ cordaDriver "net.corda:corda-shell:4.10"
}
diff --git a/Features/referencestates-sanctionsbody/contracts/src/test/java/net/corda/samples/referencestates/states/SanctionableIOUStateTests.java b/Features/referencestates-sanctionsbody/contracts/src/test/java/net/corda/samples/referencestates/states/SanctionableIOUStateTests.java
index a52b82b7..d3c9467b 100644
--- a/Features/referencestates-sanctionsbody/contracts/src/test/java/net/corda/samples/referencestates/states/SanctionableIOUStateTests.java
+++ b/Features/referencestates-sanctionsbody/contracts/src/test/java/net/corda/samples/referencestates/states/SanctionableIOUStateTests.java
@@ -8,8 +8,8 @@
import net.corda.testing.core.TestIdentity;
import org.junit.Test;
-import static org.jgroups.util.Util.assertEquals;
-import static org.jgroups.util.Util.assertTrue;
+import static org.junit.Assert.assertEquals;
+import static org.wildfly.common.Assert.assertTrue;
public class SanctionableIOUStateTests {
diff --git a/Features/referencestates-sanctionsbody/contracts/src/test/java/net/corda/samples/referencestates/states/SanctionedEntitiesTests.java b/Features/referencestates-sanctionsbody/contracts/src/test/java/net/corda/samples/referencestates/states/SanctionedEntitiesTests.java
index bb1b708f..d5ad4c58 100644
--- a/Features/referencestates-sanctionsbody/contracts/src/test/java/net/corda/samples/referencestates/states/SanctionedEntitiesTests.java
+++ b/Features/referencestates-sanctionsbody/contracts/src/test/java/net/corda/samples/referencestates/states/SanctionedEntitiesTests.java
@@ -10,7 +10,9 @@
import java.util.Arrays;
import java.util.List;
-import static org.jgroups.util.Util.*;
+import static org.junit.Assert.assertEquals;
+import static org.wildfly.common.Assert.assertFalse;
+import static org.wildfly.common.Assert.assertTrue;
public class SanctionedEntitiesTests {
diff --git a/Features/referencestates-sanctionsbody/repositories.gradle b/Features/referencestates-sanctionsbody/repositories.gradle
index 3198e5c6..8be7b630 100644
--- a/Features/referencestates-sanctionsbody/repositories.gradle
+++ b/Features/referencestates-sanctionsbody/repositories.gradle
@@ -3,6 +3,6 @@ repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
diff --git a/Features/schedulablestate-heartbeat/README.md b/Features/schedulablestate-heartbeat/README.md
index de7dba7c..31eaf612 100644
--- a/Features/schedulablestate-heartbeat/README.md
+++ b/Features/schedulablestate-heartbeat/README.md
@@ -21,14 +21,14 @@ In this way, calling the `StartHeartbeatFlow` creates an endless chain of `Heart
## Pre-Requisites
-For development environment setup, please refer to: [Setup Guide](https://docs.corda.net/getting-set-up.html).
+For development environment setup, please refer to: [Setup Guide](https://docs.r3.com/en/platform/corda/4.10/community/getting-set-up.html).
### Running the CorDapp
Open a terminal and go to the project root directory and type: (to deploy the nodes using bootstrapper)
```
-./gradlew clean deployNodes
+./gradlew clean build deployNodes
```
Then type: (to run the nodes)
```
@@ -38,7 +38,7 @@ Then type: (to run the nodes)
### Interacting with the nodes:
-Go to the [CRaSH](https://docs.corda.net/docs/corda-os/shell.html) shell for PartyA, and run the `StartHeatbeatFlow`:
+Go to the interactive node shell for PartyA, and run the `StartHeatbeatFlow`:
start StartHeartbeatFlow
diff --git a/Features/schedulablestate-heartbeat/build.gradle b/Features/schedulablestate-heartbeat/build.gradle
index 610685d8..f1f0c4f7 100644
--- a/Features/schedulablestate-heartbeat/build.gradle
+++ b/Features/schedulablestate-heartbeat/build.gradle
@@ -20,7 +20,7 @@ buildscript {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda-releases' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
}
dependencies {
@@ -38,10 +38,10 @@ allprojects {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://jitpack.io' }
//SDK lib
- maven { url 'https://software.r3.com/artifactory/corda-lib' }
+ maven { url 'https://download.corda.net/maven/corda-lib' }
//Gradle Plugins
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
@@ -83,7 +83,7 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+ cordaDriver "net.corda:corda-shell:4.10"
}
diff --git a/Features/schedulablestate-heartbeat/contracts/src/test/java/net/corda/samples/heartbeat/states/StateTests.java b/Features/schedulablestate-heartbeat/contracts/src/test/java/net/corda/samples/heartbeat/states/StateTests.java
index 07b8826e..4f530b2d 100644
--- a/Features/schedulablestate-heartbeat/contracts/src/test/java/net/corda/samples/heartbeat/states/StateTests.java
+++ b/Features/schedulablestate-heartbeat/contracts/src/test/java/net/corda/samples/heartbeat/states/StateTests.java
@@ -6,8 +6,8 @@
import net.corda.testing.core.TestIdentity;
import org.junit.Test;
-import static org.jgroups.util.Util.assertFalse;
-import static org.jgroups.util.Util.assertTrue;
+import static org.wildfly.common.Assert.assertFalse;
+import static org.wildfly.common.Assert.assertTrue;
public class StateTests {
diff --git a/Features/state-reissuance/README.md b/Features/state-reissuance/README.md
index cb890f71..f73c31d2 100644
--- a/Features/state-reissuance/README.md
+++ b/Features/state-reissuance/README.md
@@ -4,9 +4,9 @@
# State Reissuance Sample CorDapp
-This cordapp serves as a sample for state reissuance feature of Corda. This feature enables developers to break long
+This CorDapp serves as a sample for state reissuance feature of Corda. This feature enables developers to break long
transaction backchains by reissuing a state with a guaranteed state replacement. This is particularly useful in situations
-when an party doesn't want to share state history with other parties for privacy or performance concerns.
+when a party doesn't want to share state history with other parties for privacy or performance concerns.
This samples demonstrates the feature with the help of a linear state, represented by a land title issued on Corda ledger.
The land title can be transferred multiple times and when the transaction backchain becomes long, the land title could be
@@ -14,7 +14,7 @@ reissued and the transaction backchain could be pruned.
# Pre-Requisites
-See https://docs.corda.net/getting-set-up.html.
+For development environment setup, please refer to: [Setup Guide](https://docs.r3.com/en/platform/corda/4.10/community/getting-set-up.html).
# Usage
@@ -22,66 +22,66 @@ See https://docs.corda.net/getting-set-up.html.
Open a terminal and go to the project root directory and type: (to deploy the nodes using bootstrapper)
-`./gradlew clean deployNodes`
+ ./gradlew clean build deployNodes
Then type: (to run the nodes)
-`./build/nodes/runnodes`
+ ./build/nodes/runnodes
## Interacting with the CorDapp
PartyA issues a land title to PartyB, Go to PartyA's terminal and run the below command
-`start IssueLandTitleFlow owner: PartyB, dimensions: 40X50, area: 1200sqft`
+ start IssueLandTitleFlow owner: PartyB, dimensions: 40X50, area: 1200sqft
Verify the land title has been issued correctly by querying the ledgers of PartyA and PartyB using the below command.
PartyA should be issuer and PartyB should be the owner of the land title.
-`run vaultQuery contractStateType: net.corda.samples.statereissuance.states.LandTitleState`
+ run vaultQuery contractStateType: net.corda.samples.statereissuance.states.LandTitleState
-Once land title has been issued to PartyB, he could transfer it to PartyC. Go to PartyB's terminal and run the below command
+Once land title has been issued to PartyB, they could transfer it to PartyC. Go to PartyB's terminal and run the below command
-`start TransferLandTitleFlow owner: PartyC, plotIdentifier: `
+ start TransferLandTitleFlow owner: PartyC, plotIdentifier:
You could find the `plot-identifier` from the result of the vaultQuery command used earlier to query the ledgers.

-Verify the land title has been correctly tranferred to PartyC by querying the ledgers of PartyA and PartyC using the below command
+Verify the land title has been correctly transferred to PartyC by querying the ledgers of PartyA and PartyC using the below command
-`run vaultQuery contractStateType: net.corda.samples.statereissuance.states.LandTitleState`
+ run vaultQuery contractStateType: net.corda.samples.statereissuance.states.LandTitleState
-Note that PartyB is no more able to see the land title, since he is no longer a party to the state as he has transferred
+Note that PartyB is no more able to see the land title, since they are no longer a party to the state as they have transferred
the title to PartyC. It is currently only visible to PartyA and PartyC.
-Consider that PartyC now wants to reissue the title to get rid of the backchain. He needs to request a reissuace to the issuer.
-Go to PartyA's terminal and run the below command
+Consider that PartyC now wants to reissue the title to get rid of the backchain. They need to request a reissuance to the issuer.
+Go to PartyC's terminal and run the below command
-`start RequestReissueLandStateFlow issuer: PartyA, plotIdentifier: `
+ start RequestReissueLandStateFlow issuer: PartyA, plotIdentifier:
Now a reissuance request is created on the ledgers of PartyA and PartyC, when can be verified using the below command
-`run vaultQuery contractStateType: com.r3.corda.lib.reissuance.states.ReissuanceRequest`
+ run vaultQuery contractStateType: com.r3.corda.lib.reissuance.states.ReissuanceRequest
The issuer could either accept or reject the reissuance request. Let's consider the case where the issuer accepts the
reissuance request. To accept the request goto PartyA's (issuer) terminal and run the below command
-`start AcceptLandReissuanceFlow issuer: PartyA, stateRef: {index: , txhash: }`
+ start AcceptLandReissuanceFlow issuer: PartyA, stateRef: {index: , txhash: }
The `` and `` are of the transaction which created the state to the reissued. They can be found
in the `ReissuanceRequest` queried earlier.

-On successful completion of the above flow, the a duplicate land title would be issued, however it would be currently
-locked and it could not be spend. In order to spend it, the older state which was requested to be reissued must be exited
+On successful completion of the above flow, a duplicate land title would be issued, however it would be currently
+locked, and it could not be spent. In order to spend it, the older state which was requested to be reissued must be exited
and that would allow the new reissued state to be unlocked and spend.
To exit the older land title run the below command from PartyC's terminal.
-`start ExitLandTitleFlow stateRef: {index: , txhash: }`
+ start ExitLandTitleFlow stateRef: {index: , txhash: }
Once the previous land title is exited, unlock the reissued land title using the below command from PartyC's terminal
-`start UnlockReissuedLandStateFlow reissuedRef: {index: , txhash: }, reissuanceLockRef: {index: , txhash: }, exitTrnxId: `
+ start UnlockReissuedLandStateFlow reissuedRef: {index: , txhash: }, reissuanceLockRef: {index: , txhash: }, exitTrnxId:
The `reissuedRef` is the stateRef of the reissued state.

diff --git a/Features/state-reissuance/build.gradle b/Features/state-reissuance/build.gradle
index dff60337..23ed2f31 100644
--- a/Features/state-reissuance/build.gradle
+++ b/Features/state-reissuance/build.gradle
@@ -28,8 +28,8 @@ buildscript {//properties that you need to build the project
repositories {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda-releases' }
- maven { url 'https://software.r3.com/artifactory/corda-lib' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
+ maven { url 'https://download.corda.net/maven/corda-lib' }
}
dependencies {
@@ -49,8 +49,8 @@ allprojects {//Properties that you need to compile your project (The application
repositories {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
- maven { url 'https://software.r3.com/artifactory/corda-lib' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
+ maven { url 'https://download.corda.net/maven/corda-lib' }
maven { url 'https://jitpack.io' }
}
@@ -111,7 +111,7 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+ cordaDriver "net.corda:corda-shell:4.10"
}
diff --git a/Features/state-reissuance/repositories.gradle b/Features/state-reissuance/repositories.gradle
index 7dc03179..9797c0ea 100644
--- a/Features/state-reissuance/repositories.gradle
+++ b/Features/state-reissuance/repositories.gradle
@@ -2,6 +2,6 @@ repositories {
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
diff --git a/Tokens/README.md b/Tokens/README.md
index 84426029..d9399120 100644
--- a/Tokens/README.md
+++ b/Tokens/README.md
@@ -3,10 +3,10 @@
This folder features [TokenSDK](https://training.corda.net/libraries/tokens-sdk/) sample projects.
### [Fungible House Token](./fungiblehousetoken):
-This Cordapp serves as a basic example to demostrate how to tokenize an asset into [Fungible](https://training.corda.net/libraries/tokens-sdk/#fungibletoken) tokens in Corda utilizing the TokenSDK.
+This CorDapp serves as a basic example to demonstrate how to tokenize an asset into [Fungible](https://training.corda.net/libraries/tokens-sdk/#fungibletoken) tokens in Corda utilizing the TokenSDK.
### [Bike Market](./bikemarket):
-This sample Cordapp demonstrate all four out-of-box TokenSDK flows (Create, Issue, Move, and Redeem flows). The cordapp demonstrate how to tokenize an asset as non-fungible tokens and excute a few transacting procedures.
+This sample CorDapp demonstrates all four out-of-box TokenSDK flows (Create, Issue, Move, and Redeem flows). The CorDapp demonstrate how to tokenize an asset as non-fungible tokens and excute a few transacting procedures.
diff --git a/Tokens/bikemarket/README.md b/Tokens/bikemarket/README.md
index a1bef80d..fb3da635 100644
--- a/Tokens/bikemarket/README.md
+++ b/Tokens/bikemarket/README.md
@@ -46,7 +46,7 @@ Throughout the sample, we will see how to create, transact, and redeem a Token.
Deploy and run the nodes by:
```
-./gradlew deployNodes
+./gradlew clean build deployNodes
./build/nodes/runnodes
```
if you have any questions during setup, please go to https://docs.corda.net/getting-set-up.html for detailed setup instructions.
diff --git a/Tokens/bikemarket/build.gradle b/Tokens/bikemarket/build.gradle
index 9245291e..78cef069 100644
--- a/Tokens/bikemarket/build.gradle
+++ b/Tokens/bikemarket/build.gradle
@@ -24,7 +24,7 @@ buildscript {
repositories {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda-releases' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
}
dependencies {
@@ -42,10 +42,10 @@ allprojects {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://jitpack.io' }
//SDK lib
- maven { url 'https://software.r3.com/artifactory/corda-lib' }
+ maven { url 'https://download.corda.net/maven/corda-lib' }
//Gradle Plugins
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
@@ -97,7 +97,7 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+ cordaDriver "net.corda:corda-shell:4.10"
// Token SDK dependencies.
cordapp "$tokens_release_group:tokens-contracts:$tokens_release_version"
diff --git a/Tokens/bikemarket/repositories.gradle b/Tokens/bikemarket/repositories.gradle
index 3198e5c6..8be7b630 100644
--- a/Tokens/bikemarket/repositories.gradle
+++ b/Tokens/bikemarket/repositories.gradle
@@ -3,6 +3,6 @@ repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
diff --git a/Tokens/constants.properties b/Tokens/constants.properties
index 08ec02aa..91f58c68 100644
--- a/Tokens/constants.properties
+++ b/Tokens/constants.properties
@@ -1,13 +1,13 @@
cordaReleaseGroup=net.corda
cordaCoreReleaseGroup=net.corda
-cordaVersion=4.9
-cordaCoreVersion=4.9
+cordaVersion=4.10
+cordaCoreVersion=4.10
gradlePluginsVersion=5.0.12
kotlinVersion=1.2.71
junitVersion=4.12
quasarVersion=0.7.10
log4jVersion =2.17.1
-platformVersion=10
+platformVersion=12
slf4jVersion=1.7.25
nettyVersion=4.1.22.Final
guavaVersion=23.5-jre
diff --git a/Tokens/dollartohousetoken/build.gradle b/Tokens/dollartohousetoken/build.gradle
index 3ab93902..99a572c9 100644
--- a/Tokens/dollartohousetoken/build.gradle
+++ b/Tokens/dollartohousetoken/build.gradle
@@ -23,7 +23,7 @@ buildscript {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda-releases' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
}
dependencies {
@@ -40,10 +40,10 @@ allprojects {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://jitpack.io' }
//SDK lib
- maven { url 'https://software.r3.com/artifactory/corda-lib' }
+ maven { url 'https://download.corda.net/maven/corda-lib' }
//Gradle Plugins
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
@@ -92,7 +92,7 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+ cordaDriver "net.corda:corda-shell:4.10"
// Token SDK dependencies.
diff --git a/Tokens/fungiblehousetoken/build.gradle b/Tokens/fungiblehousetoken/build.gradle
index 7403a623..93a1a840 100644
--- a/Tokens/fungiblehousetoken/build.gradle
+++ b/Tokens/fungiblehousetoken/build.gradle
@@ -23,7 +23,8 @@ buildscript {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
}
dependencies {
@@ -40,10 +41,11 @@ allprojects {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
maven { url 'https://jitpack.io' }
//SDK lib
- maven { url 'https://software.r3.com/artifactory/corda-lib' }
+ maven { url 'https://download.corda.net/maven/corda-lib' }
//Gradle Plugins
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
@@ -91,7 +93,7 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+ cordaDriver "net.corda:corda-shell:4.10"
// Token SDK dependencies.
cordapp "$tokens_release_group:tokens-contracts:$tokens_release_version"
diff --git a/Tokens/spaceships-javaAPIs/build.gradle b/Tokens/spaceships-javaAPIs/build.gradle
index 77e20273..0db10ba0 100644
--- a/Tokens/spaceships-javaAPIs/build.gradle
+++ b/Tokens/spaceships-javaAPIs/build.gradle
@@ -23,7 +23,7 @@ buildscript {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda-releases' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
}
dependencies {
@@ -40,10 +40,10 @@ allprojects {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://jitpack.io' }
//SDK lib
- maven { url 'https://software.r3.com/artifactory/corda-lib' }
+ maven { url 'https://download.corda.net/maven/corda-lib' }
//Gradle Plugins
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
@@ -90,7 +90,7 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+ cordaDriver "net.corda:corda-shell:4.10"
// Token SDK dependencies.
cordapp "$tokens_release_group:tokens-contracts:$tokens_release_version"
diff --git a/Tokens/stockpaydividend/build.gradle b/Tokens/stockpaydividend/build.gradle
index 9d8b6e04..e39a029d 100755
--- a/Tokens/stockpaydividend/build.gradle
+++ b/Tokens/stockpaydividend/build.gradle
@@ -22,7 +22,8 @@ buildscript {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
}
dependencies {
@@ -39,10 +40,11 @@ allprojects {
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
maven { url 'https://jitpack.io' }
//SDK lib
- maven { url 'https://software.r3.com/artifactory/corda-lib' }
+ maven { url 'https://download.corda.net/maven/corda-lib' }
//Gradle Plugins
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
@@ -87,7 +89,7 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+ cordaDriver "net.corda:corda-shell:4.10"
// Token SDK dependencies.
cordapp "$tokens_release_group:tokens-contracts:$tokens_release_version"
diff --git a/Tokens/stockpaydividend/contracts/src/test/java/net/corda/samples/stockpaydividend/contracts/ContractTests.java b/Tokens/stockpaydividend/contracts/src/test/java/net/corda/samples/stockpaydividend/contracts/ContractTests.java
index 90fb32ff..912a63d1 100755
--- a/Tokens/stockpaydividend/contracts/src/test/java/net/corda/samples/stockpaydividend/contracts/ContractTests.java
+++ b/Tokens/stockpaydividend/contracts/src/test/java/net/corda/samples/stockpaydividend/contracts/ContractTests.java
@@ -20,7 +20,7 @@ public class ContractTests {
@Test
public void multipleOutputTests() {
StockState tokenPass = new StockState(new UniqueIdentifier(),Operator.getParty(),"TT","Test Token",
- "USD",BigDecimal.valueOf(2.7), BigDecimal.valueOf(0.2),new Date(),new Date());
+ "USD",BigDecimal.valueOf(2.7), BigDecimal.valueOf(0),new Date(),new Date());
StockState tokenFail = new StockState(new UniqueIdentifier(),Operator.getParty(),"","Test Token",
"USD",BigDecimal.valueOf(2.7), BigDecimal.valueOf(0.2),new Date(),new Date());
ledger(ledgerServices, l -> {
diff --git a/Tokens/tokentofriend/build.gradle b/Tokens/tokentofriend/build.gradle
index 6d2c2a2a..befc943a 100644
--- a/Tokens/tokentofriend/build.gradle
+++ b/Tokens/tokentofriend/build.gradle
@@ -25,7 +25,7 @@ buildscript {//properties that you need to build the project
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda-releases' }
+ maven { url 'https://download.corda.net/maven/corda-releases' }
}
dependencies {
@@ -44,10 +44,10 @@ allprojects {//Properties that you need to compile your project (The application
mavenLocal()
mavenCentral()
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://jitpack.io' }
//SDK lib
- maven { url 'https://software.r3.com/artifactory/corda-lib' }
+ maven { url 'https://download.corda.net/maven/corda-lib' }
//Gradle Plugins
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
@@ -89,7 +89,7 @@ dependencies {
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
- cordaDriver "net.corda:corda-shell:4.9"
+ cordaDriver "net.corda:corda-shell:4.10"
// Token SDK dependencies.
cordapp "$tokens_release_group:tokens-contracts:$tokens_release_version"
diff --git a/Tokens/tokentofriend/repositories.gradle b/Tokens/tokentofriend/repositories.gradle
index 3198e5c6..8be7b630 100644
--- a/Tokens/tokentofriend/repositories.gradle
+++ b/Tokens/tokentofriend/repositories.gradle
@@ -3,6 +3,6 @@ repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
- maven { url 'https://software.r3.com/artifactory/corda' }
+ maven { url 'https://download.corda.net/maven/corda-dependencies' }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
diff --git a/Tokens/tokentofriend/workflows/src/test/java/net/corda/samples/tokentofriend/FlowTests.java b/Tokens/tokentofriend/workflows/src/test/java/net/corda/samples/tokentofriend/FlowTests.java
index 9aacfd44..24cbb673 100644
--- a/Tokens/tokentofriend/workflows/src/test/java/net/corda/samples/tokentofriend/FlowTests.java
+++ b/Tokens/tokentofriend/workflows/src/test/java/net/corda/samples/tokentofriend/FlowTests.java
@@ -63,8 +63,7 @@ public void CheckTheCorrectMessageIsStored() throws ExecutionException, Interrup
Future future = a.startFlow(flow);
network.runNetwork();
UniqueIdentifier tokenStateID = future.get();
- QueryCriteria inputCriteria = new QueryCriteria.LinearStateQueryCriteria().withUuid(Arrays.asList(tokenStateID.getId())).withStatus(Vault.StateStatus.UNCONSUMED);
- CustomTokenState storedState = a.getServices().getVaultService().queryBy(CustomTokenState.class,inputCriteria).getStates().get(0).getState().getData();
+ CustomTokenState storedState = a.getServices().getVaultService().queryBy(CustomTokenState.class).getStates().get(0).getState().getData();
assert (storedState.getMessage().equals(msg));
}
@@ -83,11 +82,10 @@ public void CheckIfNonFungibleTokenCorrectlyCreated() throws ExecutionException,
int subString = resultString.indexOf("Token Id is: ");
String nonfungibleTokenId = resultString.substring(subString+13,resultString.indexOf("Storage Node is:")-1);
System.out.println("-"+ nonfungibleTokenId+"-");
- QueryCriteria inputCriteria = new QueryCriteria.LinearStateQueryCriteria().withUuid(Arrays.asList(UUID.fromString(nonfungibleTokenId))).withStatus(Vault.StateStatus.UNCONSUMED);
- List> storedNonFungibleTokenb = b.getServices().getVaultService().queryBy(NonFungibleToken.class,inputCriteria).getStates();
- List> storedNonFungibleTokenc = c.getServices().getVaultService().queryBy(NonFungibleToken.class,inputCriteria).getStates();
- List> storedNonFungibleTokend = d.getServices().getVaultService().queryBy(NonFungibleToken.class,inputCriteria).getStates();
- List> storedNonFungibleTokene = e.getServices().getVaultService().queryBy(NonFungibleToken.class,inputCriteria).getStates();
+ List> storedNonFungibleTokenb = b.getServices().getVaultService().queryBy(NonFungibleToken.class).getStates();
+ List> storedNonFungibleTokenc = c.getServices().getVaultService().queryBy(NonFungibleToken.class).getStates();
+ List> storedNonFungibleTokend = d.getServices().getVaultService().queryBy(NonFungibleToken.class).getStates();
+ List> storedNonFungibleTokene = e.getServices().getVaultService().queryBy(NonFungibleToken.class).getStates();
NonFungibleToken storedToken = Arrays.asList(storedNonFungibleTokenb,storedNonFungibleTokenc,storedNonFungibleTokend,storedNonFungibleTokene).stream().filter(it ->
0 != it.size()
).collect(Collectors.toList()).get(0).get(0).getState().getData();