2018-04-17 16:21:20 +02:00
|
|
|
import sbt._
|
|
|
|
|
|
|
|
object Deps {
|
2018-05-02 20:13:42 +02:00
|
|
|
object V {
|
|
|
|
val bouncyCastle = "1.55"
|
|
|
|
val logback = "1.0.13"
|
2018-10-26 16:06:49 +02:00
|
|
|
val scalacheck = "1.14.0"
|
2018-05-02 20:13:42 +02:00
|
|
|
val scalaTest = "3.0.5"
|
|
|
|
val slf4j = "1.7.5"
|
|
|
|
val spray = "1.3.2"
|
|
|
|
val zeromq = "0.4.3"
|
2018-10-26 16:06:49 +02:00
|
|
|
val akkav = "10.1.5"
|
|
|
|
val akkaStreamv = "2.5.17"
|
|
|
|
val playv = "2.6.10"
|
|
|
|
val scodecV = "1.1.6"
|
2018-11-19 00:32:20 +01:00
|
|
|
val junitV = "0.11"
|
2018-12-14 20:09:53 +01:00
|
|
|
val nativeLoaderV = "2.3.2"
|
2019-01-07 16:30:59 +01:00
|
|
|
val typesafeConfigV = "1.3.3"
|
2018-12-15 17:09:52 +01:00
|
|
|
|
2019-01-08 02:37:42 +01:00
|
|
|
val bitcoinsV = "0.0.2"
|
2018-05-02 20:13:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
object Compile {
|
2018-11-11 23:22:22 +01:00
|
|
|
val bouncycastle = "org.bouncycastle" % "bcprov-jdk15on" % V.bouncyCastle withSources() withJavadoc()
|
|
|
|
val scodec = "org.scodec" %% "scodec-bits" % V.scodecV withSources() withJavadoc()
|
|
|
|
val slf4j = "org.slf4j" % "slf4j-api" % V.slf4j % "provided" withSources() withJavadoc()
|
|
|
|
val zeromq = "org.zeromq" % "jeromq" % V.zeromq withSources() withJavadoc()
|
|
|
|
val akkaHttp = "com.typesafe.akka" %% "akka-http" % V.akkav withSources() withJavadoc()
|
|
|
|
val akkaStream = "com.typesafe.akka" %% "akka-stream" % V.akkaStreamv withSources() withJavadoc()
|
|
|
|
val playJson = "com.typesafe.play" %% "play-json" % V.playv withSources() withJavadoc()
|
2019-01-07 16:30:59 +01:00
|
|
|
val typesafeConfig = "com.typesafe" % "config" % V.typesafeConfigV withSources() withJavadoc()
|
2018-11-21 21:01:03 +01:00
|
|
|
|
|
|
|
val logback = "ch.qos.logback" % "logback-classic" % V.logback withSources() withJavadoc()
|
2018-12-14 20:09:53 +01:00
|
|
|
|
|
|
|
//for loading secp256k1 natively
|
|
|
|
val nativeLoader = "org.scijava" % "native-lib-loader" % V.nativeLoaderV withSources() withJavadoc()
|
2018-05-02 20:13:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
object Test {
|
|
|
|
val bitcoinj = ("org.bitcoinj" % "bitcoinj-core" % "0.14.4" % "test").exclude("org.slf4j", "slf4j-api")
|
2018-11-19 00:32:20 +01:00
|
|
|
val junitInterface = "com.novocode" % "junit-interface" % V.junitV % "test" withSources() withJavadoc()
|
2018-11-11 23:22:22 +01:00
|
|
|
val logback = "ch.qos.logback" % "logback-classic" % V.logback % "test" withSources() withJavadoc()
|
2018-05-02 20:13:42 +02:00
|
|
|
val scalacheck = "org.scalacheck" %% "scalacheck" % V.scalacheck % "test" withSources() withJavadoc()
|
2018-11-11 23:22:22 +01:00
|
|
|
val scalaTest = "org.scalatest" %% "scalatest" % V.scalaTest % "test" withSources() withJavadoc()
|
|
|
|
val spray = "io.spray" %% "spray-json" % V.spray % "test" withSources() withJavadoc()
|
|
|
|
val akkaHttp = "com.typesafe.akka" %% "akka-http-testkit" % V.akkav % "test" withSources() withJavadoc()
|
|
|
|
val akkaStream = "com.typesafe.akka" %% "akka-stream-testkit" % V.akkaStreamv % "test" withSources() withJavadoc()
|
2018-12-15 17:09:52 +01:00
|
|
|
|
|
|
|
val testkit = "org.bitcoins" %% "bitcoin-s-testkit" % V.bitcoinsV withSources() withJavadoc()
|
2018-05-02 20:13:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
val core = List(
|
|
|
|
Compile.bouncycastle,
|
2018-05-23 01:39:58 +02:00
|
|
|
Compile.scodec,
|
2018-05-02 20:13:42 +02:00
|
|
|
Compile.slf4j
|
|
|
|
)
|
|
|
|
|
2018-12-11 21:38:17 +01:00
|
|
|
val secp256k1jni = List(
|
2018-12-14 20:09:53 +01:00
|
|
|
Compile.nativeLoader,
|
2018-12-11 21:38:17 +01:00
|
|
|
Test.junitInterface
|
|
|
|
)
|
|
|
|
|
2018-05-02 20:13:42 +02:00
|
|
|
val coreGen = List(
|
|
|
|
Compile.slf4j,
|
|
|
|
Test.scalacheck
|
|
|
|
)
|
|
|
|
|
|
|
|
val coreTest = List(
|
|
|
|
Test.bitcoinj,
|
|
|
|
Test.junitInterface,
|
|
|
|
Test.logback,
|
|
|
|
Test.scalaTest,
|
2018-12-15 17:09:52 +01:00
|
|
|
Test.spray,
|
|
|
|
Test.testkit
|
2018-05-02 20:13:42 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
val zmq = List(
|
|
|
|
Compile.zeromq,
|
|
|
|
Compile.slf4j,
|
|
|
|
Test.logback,
|
|
|
|
Test.scalacheck,
|
|
|
|
Test.scalaTest
|
|
|
|
)
|
2018-05-24 20:43:27 +02:00
|
|
|
|
|
|
|
val rpc = List(
|
|
|
|
Compile.akkaHttp,
|
|
|
|
Compile.akkaStream,
|
|
|
|
Compile.playJson,
|
|
|
|
Compile.slf4j,
|
2019-01-07 16:30:59 +01:00
|
|
|
Compile.typesafeConfig,
|
2018-05-24 20:43:27 +02:00
|
|
|
Test.akkaHttp,
|
|
|
|
Test.akkaStream,
|
|
|
|
Test.logback,
|
|
|
|
Test.scalaTest,
|
2018-12-15 17:09:52 +01:00
|
|
|
Test.scalacheck,
|
|
|
|
Test.testkit
|
2018-05-24 20:43:27 +02:00
|
|
|
)
|
2018-11-21 21:01:03 +01:00
|
|
|
|
|
|
|
val bench = List(
|
Lightning Network (#256)
* Implementation of LnCurrencyUnit
Fix unary and unneeded comments.
Refactor and change arithmetic to use PicoBitcoins.
Add property based testing for LnCurrencyUnits
Refactor LnCurrencyUnits after code review
Fix case and change LnPolicy to val
Remove division and add Unit tests
* Add additional unit tests and deserialization
* WIP: Implement LnHumanReadablePart (#190)
* Initial Implementation of LnHumanReadablePart
* Add unit tests and improve deserialization from string
* Refactor LnParams and LnHrp. Add requirements for instantiating LnHrp.
* Clean up and re-organize things
Re-working LnHumanReadablePart.fromString
Fix unnecessary pattern match
Removing test case
* Created eclairRpc project (#193)
Added getinfo functionality
Added connect functionality
Added most of the rpcs
Added send and checkpayment functionality
Added updaterelayfee functionality
Fixed compile errors
Ran scalafmt
Added DaemonInstance and start/stop methods
Added TestUtil
Added open test
Fixed typo in allUpdates
Fixed ChannelResult
Add eclair prefix to rpc stuff
open channel unit test passing
Adding instructions to grab default eclair in build
Add zmq config to bitcoin.conf
rename test log files, bump timeouts on connections
Add eclair-rpc README, rework some RpcUtil/TestUtil stuff for async
fixing bug in precious block, addressing code review
Address more code review comments
* Add NodeId, NodeUri, ChannelId (#196)
refactor json serializing methods to SerializerUtil, add more types
* Adding LnCurrencyUnit types to rpc api, fixing bug where eclair tests were not binding to a random port for zmq (#198)
Remove start stuff
* Adding more rpc tests, testing open, payment over channel, and closing of the channel (#199)
Add checkpayment tests
Address code review, create EclairTestUtil.createNodPair
* Two way eclair transactions sanity test (#200)
* Added a test for sending payments in both directions
* Updated travis bitcoin core version
* Initial LnInvoice Implementation (#194)
Start typing some ln invoice stuff
Add support for Fallback Address encoding
Part 1: Breaking out Bech32 specific functions into a util class, don't embed in Bech32Address
re-naming fromBase8ToBase5 -> from8BitTo5bit
Part 1: Breaking out Bech32 specific functions into a util class, don't embed in Bech32Address
rework ln invoices tags
fix more method names in Bech32
Rename ScriptPubKeyTag -> NodeIdTag
All invoice tags tests passing except weird serialization order one
Address code review, add some more comments
rename 'LnInvoiceTags' -> 'LnInvoiceTaggedFields'
create a UInt5 type to represent all of the bech32 data structures
Passing all serialization in the BOLT11 examples
First cut at deserialization
* Adding bitcoin-s types to the eclair-rpc, fixing bug with decoding numbers, refactoring more things (#204)
* Switch bech32 p2wpkh hash from RipdeMd160 -> Sha256Hash160Digest (#206)
* Add testkit project / dependency (#209)
fix core-gen build.sbt name
* add correct dependencies to testkit (#210)
* Get dep name right (#211)
* Add serialization symmetry property for LnInvoice, fixing various bugs in LnInvoice data structures, adding generators for various LnInvoice data structures (#217)
* Reworking AuthCredentials and Instances so that we can read from config files (#218)
add core files that were missing
* Reworking a lot of testkit data structures to be more helpful for testing (#219)
Add missing EclairApi file
remove noisy log
* Rebase onto master, fix testkit compile issues
* Simplify LnCurrencyUnit, add MilliSatoshis, refactor EclairRpc to use… (#226)
* Simplify LnCurrencyUnit, add MilliSatoshis, refactor EclairRpc to use MilliSatoshis
* Add some helper functions around millisatoshis for comparing them to other things
* more tests / helper methods, at generator for millisatoshis
* Fix typo
* Fix comparison operators for millisatoshis, add Writes for MilliSatos… (#227)
* Fix comparison operators for millisatoshis, add Writes for MilliSatoshis in JsonWriters
* re-add comparison operators to LnCurrencyUnit for convinience
* Add millisatoshi reads (#228)
* Updating version of eclair to https://github.com/ACINQ/eclair/releases/download/v0.2-beta8/eclair-node-0.2-beta8-52821b8.jar (#229)
* Derive nodeId from ln invoice signature, move nodeid case class into … (#230)
* Derive nodeId from ln invoice signature, move nodeid case class into the core project
* Add missing assert
* Fix null pointer exception that could occurred during requiring the invoice's signature to valid. This could occurr if a user tried to construct an invoice with an invalid signature (#233)
* Turn down logging / remove logging (#235)
* Cleaned up eclair conf (#237)
* Cleaned up eclair conf
* Added test for bad auth and Reads for LnInvoice
* WIP: rebase onto master with new compiler opts
fix more compiler warnings with testkit
* fix new compiler warnings for scalac 2.12.x on ln (#253)
* fix new compiler warnings for scalac 2.12.x on ln
* fix missing p2wpkhoutput in rawoutput testkit/CreditingTxGen.scala
* First cut at code review for the ln branch (#258)
Fix bug in parsing the LnTagPrefix.CltvExpiry, add properties that check if the NodeIdTag is given explicitly to the invoice
remove dumb invariants
revert version
* 2018 12 4 ln code review rd2 (#259)
* Amend EclairRpc test case for confirming that channel is closed
* Add final check to test case to make sure the bitcoind wallet received funds when closing channel
* Address Torkel's code review
* Addresses some review on #256 (#260)
* Docstring cleanup, small nits
* Refactors some redudant data, nested if => switch
* Fixes SO error by reversing remowal of `new`
* Fixes a couple of bugs
* map.get instead of list.find
* StringBuilder in HRP
* Rework NetworkParam to LnParam
* Cleanup
* Renames file to match trait/object name
* Docstring cleanup, pure formatting
* Simplifies a few expressions, doesn't change semantics
* Adds overloaded findRoute method instead of Either[NodeId, LnInvoice]
* Eclair cleanup
* Address concerns from Chris
* Type annotation to match case
* Address nadav's code review
2018-12-08 17:03:24 +01:00
|
|
|
"org.slf4j" % "slf4j-api" % V.slf4j withSources() withJavadoc(),
|
|
|
|
Compile.logback
|
|
|
|
)
|
|
|
|
|
|
|
|
val eclairRpc = List(
|
|
|
|
Compile.akkaHttp,
|
|
|
|
Compile.akkaStream,
|
|
|
|
Compile.playJson,
|
|
|
|
Compile.slf4j,
|
|
|
|
Test.akkaHttp,
|
|
|
|
Test.logback,
|
|
|
|
Test.scalaTest,
|
2018-12-15 17:09:52 +01:00
|
|
|
Test.scalacheck,
|
|
|
|
Test.testkit
|
Lightning Network (#256)
* Implementation of LnCurrencyUnit
Fix unary and unneeded comments.
Refactor and change arithmetic to use PicoBitcoins.
Add property based testing for LnCurrencyUnits
Refactor LnCurrencyUnits after code review
Fix case and change LnPolicy to val
Remove division and add Unit tests
* Add additional unit tests and deserialization
* WIP: Implement LnHumanReadablePart (#190)
* Initial Implementation of LnHumanReadablePart
* Add unit tests and improve deserialization from string
* Refactor LnParams and LnHrp. Add requirements for instantiating LnHrp.
* Clean up and re-organize things
Re-working LnHumanReadablePart.fromString
Fix unnecessary pattern match
Removing test case
* Created eclairRpc project (#193)
Added getinfo functionality
Added connect functionality
Added most of the rpcs
Added send and checkpayment functionality
Added updaterelayfee functionality
Fixed compile errors
Ran scalafmt
Added DaemonInstance and start/stop methods
Added TestUtil
Added open test
Fixed typo in allUpdates
Fixed ChannelResult
Add eclair prefix to rpc stuff
open channel unit test passing
Adding instructions to grab default eclair in build
Add zmq config to bitcoin.conf
rename test log files, bump timeouts on connections
Add eclair-rpc README, rework some RpcUtil/TestUtil stuff for async
fixing bug in precious block, addressing code review
Address more code review comments
* Add NodeId, NodeUri, ChannelId (#196)
refactor json serializing methods to SerializerUtil, add more types
* Adding LnCurrencyUnit types to rpc api, fixing bug where eclair tests were not binding to a random port for zmq (#198)
Remove start stuff
* Adding more rpc tests, testing open, payment over channel, and closing of the channel (#199)
Add checkpayment tests
Address code review, create EclairTestUtil.createNodPair
* Two way eclair transactions sanity test (#200)
* Added a test for sending payments in both directions
* Updated travis bitcoin core version
* Initial LnInvoice Implementation (#194)
Start typing some ln invoice stuff
Add support for Fallback Address encoding
Part 1: Breaking out Bech32 specific functions into a util class, don't embed in Bech32Address
re-naming fromBase8ToBase5 -> from8BitTo5bit
Part 1: Breaking out Bech32 specific functions into a util class, don't embed in Bech32Address
rework ln invoices tags
fix more method names in Bech32
Rename ScriptPubKeyTag -> NodeIdTag
All invoice tags tests passing except weird serialization order one
Address code review, add some more comments
rename 'LnInvoiceTags' -> 'LnInvoiceTaggedFields'
create a UInt5 type to represent all of the bech32 data structures
Passing all serialization in the BOLT11 examples
First cut at deserialization
* Adding bitcoin-s types to the eclair-rpc, fixing bug with decoding numbers, refactoring more things (#204)
* Switch bech32 p2wpkh hash from RipdeMd160 -> Sha256Hash160Digest (#206)
* Add testkit project / dependency (#209)
fix core-gen build.sbt name
* add correct dependencies to testkit (#210)
* Get dep name right (#211)
* Add serialization symmetry property for LnInvoice, fixing various bugs in LnInvoice data structures, adding generators for various LnInvoice data structures (#217)
* Reworking AuthCredentials and Instances so that we can read from config files (#218)
add core files that were missing
* Reworking a lot of testkit data structures to be more helpful for testing (#219)
Add missing EclairApi file
remove noisy log
* Rebase onto master, fix testkit compile issues
* Simplify LnCurrencyUnit, add MilliSatoshis, refactor EclairRpc to use… (#226)
* Simplify LnCurrencyUnit, add MilliSatoshis, refactor EclairRpc to use MilliSatoshis
* Add some helper functions around millisatoshis for comparing them to other things
* more tests / helper methods, at generator for millisatoshis
* Fix typo
* Fix comparison operators for millisatoshis, add Writes for MilliSatos… (#227)
* Fix comparison operators for millisatoshis, add Writes for MilliSatoshis in JsonWriters
* re-add comparison operators to LnCurrencyUnit for convinience
* Add millisatoshi reads (#228)
* Updating version of eclair to https://github.com/ACINQ/eclair/releases/download/v0.2-beta8/eclair-node-0.2-beta8-52821b8.jar (#229)
* Derive nodeId from ln invoice signature, move nodeid case class into … (#230)
* Derive nodeId from ln invoice signature, move nodeid case class into the core project
* Add missing assert
* Fix null pointer exception that could occurred during requiring the invoice's signature to valid. This could occurr if a user tried to construct an invoice with an invalid signature (#233)
* Turn down logging / remove logging (#235)
* Cleaned up eclair conf (#237)
* Cleaned up eclair conf
* Added test for bad auth and Reads for LnInvoice
* WIP: rebase onto master with new compiler opts
fix more compiler warnings with testkit
* fix new compiler warnings for scalac 2.12.x on ln (#253)
* fix new compiler warnings for scalac 2.12.x on ln
* fix missing p2wpkhoutput in rawoutput testkit/CreditingTxGen.scala
* First cut at code review for the ln branch (#258)
Fix bug in parsing the LnTagPrefix.CltvExpiry, add properties that check if the NodeIdTag is given explicitly to the invoice
remove dumb invariants
revert version
* 2018 12 4 ln code review rd2 (#259)
* Amend EclairRpc test case for confirming that channel is closed
* Add final check to test case to make sure the bitcoind wallet received funds when closing channel
* Address Torkel's code review
* Addresses some review on #256 (#260)
* Docstring cleanup, small nits
* Refactors some redudant data, nested if => switch
* Fixes SO error by reversing remowal of `new`
* Fixes a couple of bugs
* map.get instead of list.find
* StringBuilder in HRP
* Rework NetworkParam to LnParam
* Cleanup
* Renames file to match trait/object name
* Docstring cleanup, pure formatting
* Simplifies a few expressions, doesn't change semantics
* Adds overloaded findRoute method instead of Either[NodeId, LnInvoice]
* Eclair cleanup
* Address concerns from Chris
* Type annotation to match case
* Address nadav's code review
2018-12-08 17:03:24 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
val testkit = List(
|
|
|
|
Compile.slf4j,
|
|
|
|
"org.scalacheck" %% "scalacheck" % V.scalacheck withSources() withJavadoc()
|
2018-11-21 21:01:03 +01:00
|
|
|
)
|
2018-04-17 16:21:20 +02:00
|
|
|
}
|