Permalink
Browse files

Initial

  • Loading branch information...
kushti committed Jan 23, 2015
0 parents commit 97e61a60caa1ebed15d248a36cfc6c3e1537b856
Showing with 10,395 additions and 0 deletions.
  1. +9 −0 .gitignore
  2. +52 −0 build.sbt
  3. +1 −0 project/build.properties
  4. +11 −0 project/plugins.sbt
  5. BIN project/project/target/config-classes/$0a4fe585637490409afe$$anonfun$$sbtdef$1.class
  6. BIN project/project/target/config-classes/$0a4fe585637490409afe$.class
  7. +1 −0 project/project/target/config-classes/$0a4fe585637490409afe.cache
  8. BIN project/project/target/config-classes/$0a4fe585637490409afe.class
  9. BIN project/project/target/config-classes/$2fde69c4ced8638e6de9$$anonfun$$sbtdef$1.class
  10. BIN project/project/target/config-classes/$2fde69c4ced8638e6de9$.class
  11. +1 −0 project/project/target/config-classes/$2fde69c4ced8638e6de9.cache
  12. BIN project/project/target/config-classes/$2fde69c4ced8638e6de9.class
  13. BIN project/project/target/config-classes/$35941a871ddcb2b374cd$.class
  14. +1 −0 project/project/target/config-classes/$35941a871ddcb2b374cd.cache
  15. BIN project/project/target/config-classes/$35941a871ddcb2b374cd.class
  16. BIN project/project/target/config-classes/$6b5ecd83203094c664cf$.class
  17. +1 −0 project/project/target/config-classes/$6b5ecd83203094c664cf.cache
  18. BIN project/project/target/config-classes/$6b5ecd83203094c664cf.class
  19. BIN project/project/target/config-classes/$e9a2dd1999bd91ec8fff$.class
  20. +1 −0 project/project/target/config-classes/$e9a2dd1999bd91ec8fff.cache
  21. BIN project/project/target/config-classes/$e9a2dd1999bd91ec8fff.class
  22. +12 −0 settings.json
  23. +947 −0 src/main/java/scorex/crypto/Curve25519.java
  24. BIN src/main/resources/wallet.dat
  25. BIN src/main/resources/wallet.dat.p
  26. BIN src/main/resources/wallet.dat.t
  27. BIN src/main/resources/wallet.s.dat
  28. BIN src/main/resources/wallet.s.dat.p
  29. BIN src/main/resources/wallet.s.dat.t
  30. +55 −0 src/main/scala/Start.scala
  31. +333 −0 src/main/scala/api/AddressesResource.java
  32. +55 −0 src/main/scala/api/ApiClient.scala
  33. +144 −0 src/main/scala/api/ApiErrorFactory.java
  34. +76 −0 src/main/scala/api/ApiService.java
  35. +240 −0 src/main/scala/api/BlocksResource.java
  36. +132 −0 src/main/scala/api/PaymentResource.java
  37. +57 −0 src/main/scala/api/PeersResource.java
  38. +39 −0 src/main/scala/api/QoraResource.java
  39. +40 −0 src/main/scala/api/SeedResource.java
  40. +340 −0 src/main/scala/api/TransactionsResource.java
  41. +161 −0 src/main/scala/api/WalletResource.java
  42. +404 −0 src/main/scala/controller/Controller.scala
  43. +136 −0 src/main/scala/database/BalanceMap.java
  44. +160 −0 src/main/scala/database/BlockMap.java
  45. +76 −0 src/main/scala/database/ChildMap.java
  46. +294 −0 src/main/scala/database/DBMap.java
  47. +182 −0 src/main/scala/database/DBSet.java
  48. +67 −0 src/main/scala/database/HeightMap.java
  49. +7 −0 src/main/scala/database/IDB.java
  50. +34 −0 src/main/scala/database/IndexIterator.java
  51. +105 −0 src/main/scala/database/PeerMap.scala
  52. +65 −0 src/main/scala/database/ReferenceMap.java
  53. +176 −0 src/main/scala/database/SortableList.java
  54. +179 −0 src/main/scala/database/TransactionDatabase.java
  55. +137 −0 src/main/scala/database/TransactionMap.java
  56. +72 −0 src/main/scala/database/TransactionParentMap.java
  57. +45 −0 src/main/scala/database/serializer/BlockSerializer.java
  58. +46 −0 src/main/scala/database/serializer/TransactionSerializer.java
  59. +139 −0 src/main/scala/database/wallet/AccountMap.java
  60. +112 −0 src/main/scala/database/wallet/AccountSeedMap.java
  61. +264 −0 src/main/scala/database/wallet/BlockMap.java
  62. +100 −0 src/main/scala/database/wallet/SecureWalletDatabase.java
  63. +239 −0 src/main/scala/database/wallet/TransactionMap.java
  64. +109 −0 src/main/scala/database/wallet/WalletDatabase.java
  65. +42 −0 src/main/scala/network/ConnectionAcceptor.scala
  66. +14 −0 src/main/scala/network/ConnectionCallback.scala
  67. +76 −0 src/main/scala/network/ConnectionCreator.scala
  68. +177 −0 src/main/scala/network/Network.scala
  69. +135 −0 src/main/scala/network/Peer.scala
  70. +36 −0 src/main/scala/network/PeerManager.scala
  71. +38 −0 src/main/scala/network/Pinger.scala
  72. +40 −0 src/main/scala/network/message/BlockMessage.scala
  73. +24 −0 src/main/scala/network/message/GetBlockMessage.scala
  74. +24 −0 src/main/scala/network/message/GetSignaturesMessage.scala
  75. +127 −0 src/main/scala/network/message/Message.scala
  76. +55 −0 src/main/scala/network/message/PeersMessage.scala
  77. +49 −0 src/main/scala/network/message/SignaturesMessage.scala
  78. +27 −0 src/main/scala/network/message/TransactionMessage.scala
  79. +29 −0 src/main/scala/network/message/VersionMessage.scala
  80. +46 −0 src/main/scala/ntp/NTP.scala
  81. +76 −0 src/main/scala/scorex/BlockBuffer.scala
  82. +66 −0 src/main/scala/scorex/BlockChain.scala
  83. +210 −0 src/main/scala/scorex/BlockGenerator.scala
  84. +191 −0 src/main/scala/scorex/Synchronizer.scala
  85. +73 −0 src/main/scala/scorex/TransactionCreator.scala
  86. +251 −0 src/main/scala/scorex/account/Account.java
  87. +35 −0 src/main/scala/scorex/account/PrivateKeyAccount.java
  88. +25 −0 src/main/scala/scorex/account/PublicKeyAccount.java
  89. +327 −0 src/main/scala/scorex/block/Block.scala
  90. +80 −0 src/main/scala/scorex/block/GenesisBlock.scala
  91. +119 −0 src/main/scala/scorex/crypto/Base58.java
  92. +63 −0 src/main/scala/scorex/crypto/Crypto.scala
  93. +52 −0 src/main/scala/scorex/crypto/Curve25519Impl.scala
  94. +331 −0 src/main/scala/scorex/crypto/RIPEMD160.java
  95. +265 −0 src/main/scala/scorex/transaction/GenesisTransaction.java
  96. +406 −0 src/main/scala/scorex/transaction/PaymentTransaction.java
  97. +205 −0 src/main/scala/scorex/transaction/Transaction.java
  98. +48 −0 src/main/scala/scorex/transaction/TransactionFactory.java
  99. +512 −0 src/main/scala/scorex/wallet/Wallet.scala
  100. +109 −0 src/main/scala/settings/Settings.scala
  101. +44 −0 src/main/scala/utils/ObserverMessage.java
  102. +38 −0 src/main/scala/utils/Pair.java
  103. +20 −0 src/main/scala/utils/ReverseComparator.java
  104. +40 −0 src/main/scala/utils/TransactionsList.java
  105. +13 −0 start.sh
  106. BIN wallet/wallet.dat
  107. BIN wallet/wallet.dat.p
  108. BIN wallet/wallet.dat.t
  109. BIN wallet/wallet.s.dat
  110. BIN wallet/wallet.s.dat.p
  111. BIN wallet/wallet.s.dat.t
@@ -0,0 +1,9 @@
/data
/Data Files
/ACCOUNTS.txt
/settings.ini
/bin
.idea
/target
/project/target
/out
@@ -0,0 +1,52 @@
import com.typesafe.sbt.SbtStartScript

import SbtStartScript.StartScriptKeys._

organization := "com.consensusresearch"

name := "scorex"

version := "0.1"

scalaVersion := "2.11.4"

javaOptions in run += "-Djava.library.path=lib"

resolvers ++= Seq("Sonatype Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/",
"Sonatype Releases" at "http://oss.sonatype.org/content/repositories/releases/",
"Typesafe maven releases" at "http://repo.typesafe.com/typesafe/maven-releases/",
"for eu.piotrbuda - scalawebsocket_2.10" at "http://dev.nightlabs.org/maven-repository/repo/",
"localrepo" at "file://" + file("repo").getAbsolutePath)

libraryDependencies ++= Seq(
"commons-net" % "commons-net" % "3.3",
"ch.qos.logback" % "logback-classic" % "1.1.2",
"com.typesafe.play" %% "play-json" % "2.3.4",
"com.typesafe.akka" % "akka-actor_2.10" % "2.3.6",
"io.spray" %% "spray-routing" % "1.3.2",
"io.spray" %% "spray-can" % "1.3.2",
"io.spray" %% "spray-http" % "1.3.2",
"io.spray" %% "spray-httpx" % "1.3.2",
"io.spray" %% "spray-util" % "1.3.2",
"io.spray" %% "spray-client" % "1.3.2",
"org.mapdb" % "mapdb" % "1.0.6",
"com.googlecode.json-simple" % "json-simple" % "1.1.1",
"com.google.guava" % "guava" % "15.0",
"com.github.briandilley.jsonrpc4j" % "jsonrpc4j" % "1.1",
"org.eclipse.jetty" % "jetty-server" % "9.2.6.v20141205",
"org.eclipse.jetty" % "jetty-servlet" % "9.2.6.v20141205",
"org.glassfish.jersey.containers" % "jersey-container-servlet-core" % "2.14",
"org.glassfish.jersey.core" % "jersey-server" % "2.14",
"commons-net" % "commons-net" % "3.3",
"javax.ws.rs" % "javax.ws.rs-api" % "2.0.1"
)


lazy val importRun = inputKey[Unit]("custom run task for importing")

importRun := {
val one = (runMain in Compile).fullInput("migration.ImportUtils").evaluated
}

seq(SbtStartScript.startScriptForClassesSettings:_*)

@@ -0,0 +1 @@
sbt.version=0.13.6
@@ -0,0 +1,11 @@
// Comment to get more information during initialization
logLevel := Level.Warn

// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-start-script" % "0.10.0")

addSbtPlugin("io.spray" % "sbt-revolver" % "0.7.1")
Binary file not shown.
@@ -0,0 +1 @@
sbt.internals.DslEntry
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
sbt.internals.DslEntry
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
sbt.internals.DslEntry
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
sbt.internals.DslEntry
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
sbt.internals.DslEntry
Binary file not shown.
@@ -0,0 +1,12 @@
{
"knownpeers":[
"127.0.0.1"
],
"walletdir" : "/home/kushti/scala/scorex/wallet",
"minconnections": 10,
"generatorkeycaching": true,
"rpcallowed":[
"127.0.0.1",
"123.123.123.123"
]
}
Oops, something went wrong.

0 comments on commit 97e61a6

Please sign in to comment.