cordapp-example | latest version of all the official CorDapp samples
kandi X-RAY | cordapp-example Summary
kandi X-RAY | cordapp-example Summary
This repository is deprecated. The latest version of all the official CorDapp samples can be found in the official samples repository:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a new IOU between two parties
- Entry point for the COUA client
- Verifies that the given transaction is valid
- Displays all IOUs
- Get a list of all parties registered with this node
- Generate a persistent state
- Displays all IOUs in the vault
- Get the current node s name
- Log state
- Returns the participants of this object
- Returns a list of the supported schemas
- Returns a string representation of this state
cordapp-example Key Features
cordapp-example Examples and Code Snippets
Community Discussions
Trending Discussions on cordapp-example
QUESTION
I've read a similar issue but my environment is different.
I've cloned the Corda samples and ensured that I have Java 8 (update 301) and Gradle 5.6.4:
...ANSWER
Answered 2021-Aug-13 at 23:22The answer is right in the runnodes
script file:
QUESTION
I have cloned a cordapp example https://github.com/corda/samples/tree/release-V4/cordapp-example
cd /cordapp-example ./gradlew deployNodes kotlin-source/build/nodes/runnodes
The example runs correctly.
How do is shutdown the example cordapp and corda node?
...ANSWER
Answered 2020-May-11 at 11:12For the above example , update the gradle file to include sshd option as sshdPort , this generates sshd config in node.conf for each node.
QUESTION
I am able to set up sample from https://github.com/corda/samples/tree/release-V4/cordapp-example
As per instructions on https://docs.corda.net/docs/corda-os/4.4/tutorial-cordapp.html#running-nodes-across-machines
However, i never come across in documentation how to access the CORDA Crash shell in ubuntu to type in Corda interactive shell to execute the following ! Creating an IOU via the interactive shell # We can create a new IOU using the ExampleFlow$Initiator flow. For example, from the interactive shell of PartyA, you can agree an IOU of 50 with PartyB by running flow start ExampleFlow$Initiator iouValue: 50, otherParty: "O=PartyB,L=New York,C=US".
Can anybody clarify how to launch access to Corda interactive shell when on remote ubuntu machine?
...ANSWER
Answered 2020-May-10 at 21:06You can access the shell in one of 2 ways:
- Via ssh
- Via standalone shell
QUESTION
I'm new to Corda, so am following the "Getting started developing CorDapps".
On my MacBook Pro, I have:
- installed the JDK, IntelliJ Community edition and Git,
- have downloaded the sample project (using git clone) by following Step One)
- created an IntelliJ project (by following Step Two)
but, when following instructions for Deploy the CorDapp locally (using ./gradlew clean deployNodes), I get the following errors:
Task :contracts-java:compileJava FAILED
/Users/samples/cordapp-example/contracts-java/src/main/java/com/example/state/IOUState.java:5: error: package com.google.common.collect does not exist import com.google.common.collect.ImmutableList; ^ ... and another 3 similar.
I've searched google, gradle and IntelliJ forums, but cannot find anyhting that helps resolve my issue.
Can someone point me in the right direction please? Thanks a lot!
...ANSWER
Answered 2020-Mar-30 at 21:55As recommended here, Open IOUState.java
and:
- Remove this import:
import com.google.common.collect.ImmutableList;
- Modify
ImmutableList.of(new IOUSchemaV1())
toArrays.asList(new IOUSchemaV1())
QUESTION
I am re-writing and running a IssueFlow for an example cordapp here. I can see the flow is successful and can find a number of UTXOs on the vault query for the node.
...ANSWER
Answered 2020-Mar-02 at 10:34I was unable to find tables in H2 instance as my connection string was wrong & H2 appears is creating a blank db when trying to connect to a non-existant DB.
In DBeaver , you can add the JDBC url, but it automatically pre-fixes 'jdbc:h2:'
QUESTION
I'm trying to run sample cordapp-example code by cloning from Github repository using:
...ANSWER
Answered 2020-Jan-10 at 07:43That error is just a warning output by the driver tests when byteman (a java agent) is not used. You can ignore it.
runPartyXServer
is likely just starting the spring web app, not running the node itself.
Try running the nodes/runnodes.sh
script or java -jar corda.jar
in the directory of each generated node.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cordapp-example
You can use cordapp-example like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the cordapp-example component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page