Skip to content
Snippets Groups Projects
Commit 83f4a6fd authored by mi3u17's avatar mi3u17
Browse files

readme file changes and changes in the Application.java

parent 6ab7231c
Branches
No related tags found
No related merge requests found
......@@ -5,9 +5,5 @@
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="C:/Users/Marinos/javatuples-1.2/lib/javatuples-1.2.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
#MARINOS ILIADIS
##Eclipse Grandle project
##Eclipse Gradle project
Import this project to Eclipse (I use Eclipse Oxygen) as an existing grandle project.
## How to import the project into Eclipse
Open Eclipse -> Go to File -> Open Project From File System -> Show other specialised import wizard-> Gradle -> Existing Gradle -> sample-project-gradle-master
Import this project to Eclipse (I use Eclipse Oxygen 3A) as an existing grandle project.
Our eclipse project uses the web3j library. Java library to interact with Ethereum blockchain and solidity smart contracts
Run the "Application.java"
......
/logback.xml
/org/
/solidity/
......@@ -53,7 +53,7 @@ public class Application {
Credentials credentials =
WalletUtils.loadCredentials(
"1234", //Need to add the password you have set for this wallet file
"C:\\Users\\Marinos\\Desktop\\sample-project-gradle-master\\wallet\\UTC--2018-06-16T11-26-34.298000000Z--fc87f1c9459a4e15731d004ebd923821f89aa007.json"); //Need to add the path of your generated Ethereum wallet file (.json).
"C:\\Users\\Marinos\\Desktop\\test_gitlab\\db-blockchain-privacy\\sample-project-gradle-master\\wallet\\UTC--2018-06-16T11-26-34.298000000Z--fc87f1c9459a4e15731d004ebd923821f89aa007.json"); //Need to add the path of your generated Ethereum wallet file (.json).
log.info("Credentials loaded"); //Check the folder wallet inside the project folder to find an existing wallet file.
//Send 1 wei from your address to another address
......@@ -167,6 +167,6 @@ public class Application {
for (Acladv.LogNewUserEventResponse event : contract.getLogNewUserEvents(transactionReceipt)) {
log.info("New User added to the baseData!" + "The number of users now is: " + contract.getUserCount().send()
+ " The new user's id is: " + event.userId); }
log.info("Marinos Iliadis: MSc Data Science Project 2017-2018" + contract.isUser("0xFC87F1c9459A4e15731d004EbD923821f89AA007").send());
log.info("IS Marinos Iliadis: MSc Data Science Project 2017-2018 USER?: " + contract.isUser("0xFC87F1c9459A4e15731d004EbD923821f89AA007").send());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment