Skip to content

Commit

Permalink
Initial public commit
Browse files Browse the repository at this point in the history
Initial public commit
  • Loading branch information
qora committed Dec 9, 2014
1 parent f4d7eb4 commit cf84f4c
Show file tree
Hide file tree
Showing 242 changed files with 25,008 additions and 0 deletions.
68 changes: 68 additions & 0 deletions Qora/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="libs/jetty/jetty-annotations-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-client-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-continuation-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-deploy-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-http-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-io-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-jaas-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-jaspi-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-jmx-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-jndi-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-plus-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-proxy-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-rewrite-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-schemas-3.1.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-security-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-server-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-servlet-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-servlets-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-util-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-webapp-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/jetty-xml-9.1.1.v20140108.jar"/>
<classpathentry kind="lib" path="libs/jetty/servlet-api-3.1.jar"/>
<classpathentry kind="lib" path="libs/jsonrpc4j/commons-cli-1.2.jar"/>
<classpathentry kind="lib" path="libs/jsonrpc4j/httpcore-4.3.1.jar"/>
<classpathentry kind="lib" path="libs/jsonrpc4j/httpcore-ab-4.3.1.jar"/>
<classpathentry kind="lib" path="libs/jsonrpc4j/httpcore-nio-4.3.1.jar"/>
<classpathentry kind="lib" path="libs/jsonrpc4j/jackson-annotations-2.2.3.jar"/>
<classpathentry kind="lib" path="libs/jsonrpc4j/jackson-core-2.2.3.jar"/>
<classpathentry kind="lib" path="libs/jsonrpc4j/jackson-databind-2.2.3.jar"/>
<classpathentry kind="lib" path="libs/jsonrpc4j/javax.servlet-3.0.0.v201112011016.jar"/>
<classpathentry kind="lib" path="libs/jsonrpc4j/jsonrpc4j.jar"/>
<classpathentry kind="lib" path="libs/jsonrpc4j/portlet-2.0.jar"/>
<classpathentry kind="lib" path="libs/guava-15.0.jar"/>
<classpathentry kind="lib" path="libs/json-simple-1.1.1.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="Qora/libs/native"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="lib" path="libs/commons-net-3.3.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/aopalliance-repackaged-2.2.0.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/asm-all-repackaged-2.2.0.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/hk2-api-2.2.0.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/hk2-locator-2.2.0.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/hk2-utils-2.2.0.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/javassist-3.18.1-GA.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/javax.annotation-api-1.2.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/javax.inject-2.2.0.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/javax.servlet-api-3.0.1.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/jaxb-api-2.2.7.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/jersey-guava-2.7.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/org.osgi.core-4.2.0.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/osgi-resource-locator-1.0.1.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/persistence-api-1.0.jar"/>
<classpathentry kind="lib" path="libs/jersey/ext/validation-api-1.1.0.Final.jar"/>
<classpathentry kind="lib" path="libs/jersey/lib/jersey-client.jar"/>
<classpathentry kind="lib" path="libs/jersey/lib/jersey-common.jar"/>
<classpathentry kind="lib" path="libs/jersey/lib/jersey-container-servlet-core.jar"/>
<classpathentry kind="lib" path="libs/jersey/lib/jersey-container-servlet.jar"/>
<classpathentry kind="lib" path="libs/jersey/lib/jersey-server.jar"/>
<classpathentry kind="lib" path="libs/javax.ws.rs-api-2.0-rc3.jar"/>
<classpathentry kind="lib" path="libs/mapdb-1.0.6.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
6 changes: 6 additions & 0 deletions Qora/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/data
/Data Files
/wallet
/ACCOUNTS.txt
/settings.ini
/bin
17 changes: 17 additions & 0 deletions Qora/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Qora</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
11 changes: 11 additions & 0 deletions Qora/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
Binary file added Qora/images/icons/icon128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Qora/images/icons/icon16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Qora/images/icons/icon32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Qora/images/icons/icon64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Qora/images/wallet/locked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Qora/images/wallet/unlocked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Qora/libs/commons-net-3.3.jar
Binary file not shown.
Binary file added Qora/libs/guava-15.0.jar
Binary file not shown.
Binary file added Qora/libs/javax.ws.rs-api-2.0-rc3.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/jersey/ext/hk2-api-2.2.0.jar
Binary file not shown.
Binary file added Qora/libs/jersey/ext/hk2-locator-2.2.0.jar
Binary file not shown.
Binary file added Qora/libs/jersey/ext/hk2-utils-2.2.0.jar
Binary file not shown.
Binary file added Qora/libs/jersey/ext/javassist-3.18.1-GA.jar
Binary file not shown.
Binary file added Qora/libs/jersey/ext/javax.annotation-api-1.2.jar
Binary file not shown.
Binary file added Qora/libs/jersey/ext/javax.inject-2.2.0.jar
Binary file not shown.
Binary file added Qora/libs/jersey/ext/javax.servlet-api-3.0.1.jar
Binary file not shown.
Binary file added Qora/libs/jersey/ext/jaxb-api-2.2.7.jar
Binary file not shown.
Binary file added Qora/libs/jersey/ext/jersey-guava-2.7.jar
Binary file not shown.
Binary file added Qora/libs/jersey/ext/org.osgi.core-4.2.0.jar
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/jersey/ext/persistence-api-1.0.jar
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/jersey/lib/jersey-client.jar
Binary file not shown.
Binary file added Qora/libs/jersey/lib/jersey-common.jar
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/jersey/lib/jersey-container-servlet.jar
Binary file not shown.
Binary file added Qora/libs/jersey/lib/jersey-server.jar
Binary file not shown.
Binary file added Qora/libs/jetty/annotations/asm-4.1.jar
Binary file not shown.
Binary file added Qora/libs/jetty/annotations/asm-commons-4.1.jar
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-client-9.1.1.v20140108.jar
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-deploy-9.1.1.v20140108.jar
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-http-9.1.1.v20140108.jar
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-io-9.1.1.v20140108.jar
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-jaas-9.1.1.v20140108.jar
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-jaspi-9.1.1.v20140108.jar
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-jmx-9.1.1.v20140108.jar
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-jndi-9.1.1.v20140108.jar
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-plus-9.1.1.v20140108.jar
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-proxy-9.1.1.v20140108.jar
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-rewrite-9.1.1.v20140108.jar
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-schemas-3.1.jar
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-server-9.1.1.v20140108.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-util-9.1.1.v20140108.jar
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-webapp-9.1.1.v20140108.jar
Binary file not shown.
Binary file added Qora/libs/jetty/jetty-xml-9.1.1.v20140108.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/jetty/jsp/javax.el-3.0.0.jar
Binary file not shown.
Binary file added Qora/libs/jetty/jsp/javax.servlet.jsp-2.3.2.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/jetty/jsp/jetty-jsp-jdt-2.3.3.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/jetty/servlet-api-3.1.jar
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/jetty/setuid/libsetuid-linux.so
Binary file not shown.
Binary file added Qora/libs/jetty/setuid/libsetuid-osx.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/json-simple-1.1.1.jar
Binary file not shown.
Binary file added Qora/libs/jsonrpc4j/commons-cli-1.2.jar
Binary file not shown.
Binary file added Qora/libs/jsonrpc4j/httpcore-4.3.1.jar
Binary file not shown.
Binary file added Qora/libs/jsonrpc4j/httpcore-ab-4.3.1.jar
Binary file not shown.
Binary file added Qora/libs/jsonrpc4j/httpcore-nio-4.3.1.jar
Binary file not shown.
Binary file added Qora/libs/jsonrpc4j/jackson-annotations-2.2.3.jar
Binary file not shown.
Binary file added Qora/libs/jsonrpc4j/jackson-core-2.2.3.jar
Binary file not shown.
Binary file added Qora/libs/jsonrpc4j/jackson-databind-2.2.3.jar
Binary file not shown.
Binary file not shown.
Binary file added Qora/libs/jsonrpc4j/jsonrpc4j.jar
Binary file not shown.
Binary file added Qora/libs/jsonrpc4j/portlet-2.0.jar
Binary file not shown.
Binary file added Qora/libs/mapdb-1.0.6.jar
Binary file not shown.
Binary file added Qora/libs/native/Qora25519.windows.x64.dll
Binary file not shown.
Binary file added Qora/libs/native/Qora25519.windows.x86.dll
Binary file not shown.
Binary file added Qora/libs/native/libQora25519.linux.x64.so
Binary file not shown.
Binary file added Qora/libs/native/libQora25519.linux.x86.so
Binary file not shown.
Binary file added Qora/libs/native/libQora25519.mac.dylib
Binary file not shown.
17 changes: 17 additions & 0 deletions Qora/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"knownpeers":[
"146.185.141.232",
"162.243.170.76",
"42.159.153.145",
"88.198.69.99",
"85.21.237.35",
"193.242.149.63",
"113.250.226.131"
],
"minconnections": 10,
"generatorkeycaching": true,
"rpcallowed":[
"127.0.0.1",
"123.123.123.123"
]
}
20 changes: 20 additions & 0 deletions Qora/src/Orders.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import qora.assets.Order;
import database.DBSet;


public class Orders {

public static void main(String args[])
{
for(Order order: DBSet.getInstance().getOrderMap().getValues()) {
if(order.getHave() == 1) {
System.out.println(order.getHave() + " - " + order.getWant());
}
}

for(Order order: DBSet.getInstance().getCompletedOrderMap().getValues()) {
System.out.println(order.getHave() + " - " + order.getWant());
}
}

}
69 changes: 69 additions & 0 deletions Qora/src/Start.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import java.util.Scanner;

import javax.swing.UIManager;

import api.ApiClient;
import controller.Controller;

public class Start {

public static void main(String args[])
{
boolean cli = false;
boolean disableRpc = false;
for(String arg: args)
{
if(arg.equals("-cli"))
{
cli = true;
}
}

if(!cli)
{
try
{
//STARTING NETWORK/BLOCKCHAIN/RPC
Controller.getInstance().start(disableRpc);
}
catch(Exception e)
{
e.printStackTrace();

//USE SYSTEM STYLE
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e2) {
e2.printStackTrace();
}

//ERROR STARTING
System.out.println("STARTUP ERROR: " + e.getMessage());

//FORCE SHUTDOWN
System.exit(0);
}
}
else
{
Scanner scanner = new Scanner(System.in);
ApiClient client = new ApiClient();

while(true)
{

System.out.print("[COMMAND] ");
String command = scanner.nextLine();

if(command.equals("quit"))
{
scanner.close();
System.exit(0);
}

String result = client.executeCommand(command);
System.out.println("[RESULT] " + result);
}
}
}
}
Loading

0 comments on commit cf84f4c

Please sign in to comment.