Commit graph

1495 commits

Author SHA1 Message Date
Torkel Rogstad
49458457e2 Add BasicArithmetic trait (#329)
* Add BasicArithmetic to MilliSatoshis

* Add BasicArithmetic

* Add LnCurrencyUnit, CurrencyUnit, Number to BasicArithmetic

* Add tests for BasicArithmetic

* Make logger in unit test class protected and annotated

* Use BitcoinSUnitTest class

* Address code review
2019-02-16 15:19:00 -06:00
Chris Stewart
b6dc57edda
Fix bench project configuration (#338) 2019-02-16 14:54:17 -06:00
Chris Stewart
8391fadc09
Bump scalac to 2.12.8 (#340)
* Bump scalac to 2.12.8

* Bump scalac in .travis.yml
2019-02-16 14:52:04 -06:00
Chris Stewart
f85fcf5137
Add bitcoin-s unit test class, all unit tests going forward should extend this (#335) 2019-02-15 07:13:33 -06:00
Chris Stewart
e0a38d7e38
Fix initialization problem with LnInvoice and the separator char (#334) 2019-02-14 07:16:15 -06:00
Chris Stewart
346f33b728
Add explicit test cases for parsing an htlc (#333) 2019-02-13 08:56:24 -06:00
Chris Stewart
e8f5abfc04
Change Factory to an abstract class (#330) 2019-02-07 19:58:39 -06:00
Chris Stewart
3200e6a1e3
Make start methods return Future[Unit] (#328)
WIP: Refactoring EclairTestUtil to use Futures

Finished refactor EclairTestUtil to use futures

Address code review

fix async bug in chan opening

Change snapshot version to something that should compile
2019-02-07 19:58:18 -06:00
Torkel Rogstad
248c500512 Get Eclair data dir from config in EclairAuthCredentials (#326)
* Get Eclair data dir from config in EclairAuthCredentials

* Removes faulty datadir opt

* Include datadir in EclairInstance.fromDatadir
2019-02-04 10:05:40 -06:00
Chris Stewart
6d873abb70
remove response trace log (#325) 2019-02-04 06:27:36 -06:00
Torkel Rogstad
378c0d2af4 Default param in Eclair RPC fromDatadir, tweaks ChannelUpdate RPC type (#324)
* Add default param to fromDatadir, fromConfigFile method, default bitcoind rpc port

* Set ChannelUpdate.htclMaximumUpdate to Option
2019-02-04 06:02:30 -06:00
Chris Stewart
f2f70171c9
rm usage of getSimpleName, as it breaks logback logging schemes (#322) 2019-02-03 10:51:31 -06:00
Chris Stewart
89e14d3c78
add logs in eclair rpc client for requests and responses (#321) 2019-02-02 17:22:13 -06:00
Torkel Rogstad
87d35593b5 Fixes conversion bug when sending with Eclair RPC (#318)
* Improved toString for LnCurrencyUnit

* Test for amount equality in RPC send methods

* Fix conversion bug in Eclair RPC client

* Version bump
2019-02-01 09:13:25 -06:00
Chris Stewart
0a3bfbf6ec
Make timestamp a lazy val outside of versioning code (#317)
* Make timestamp a lazy val outside of versioning code

* revert bitcoin-s snapshot to something that is published
2019-01-30 04:38:15 -06:00
Torkel Rogstad
f144628f27 Adds audit RPC call + test (#314) 2019-01-28 18:15:02 -06:00
Torkel Rogstad
dfdf0e4321 Adds feebaseMsat and proportional fees for ChannelResult (#312)
* Adds feebaseMsat and proportional fees for ChannelResult

* Fixes updaterelayfee
2019-01-28 18:11:00 -06:00
Torkel Rogstad
8ad445c188 Changes how Travis fetches most recent snapshot (#315)
* Changes how Travis fetches most recent snapshot

* macOS Travis
2019-01-28 10:25:52 -06:00
Torkel Rogstad
37f096ee4d updates osx binaries (#308)
* updates osx binaries

* Add doc on binary signing
2019-01-28 09:55:56 -06:00
Chris Stewart
5d3bf4fec0
Add sbt-git plugin, reformat snapshot versioning scheme (#309) 2019-01-23 10:23:05 -06:00
Chris Stewart
6c935f1c6c
Add network call to eclair api (#310) 2019-01-23 10:22:45 -06:00
Torkel Rogstad
1bf39a3865 findroute RPC call tests/types (#301)
* Improved toString methdos

* Eclair RPC for findroute

* ConfigUtil for getStringOrElse

* Scaladoc

* Version bump

* Typed ChannelDesc a and b fields
2019-01-23 08:45:46 -06:00
Torkel Rogstad
f5ac7970ea Adds README notes on how to add Bitcoin-S in Ammonite (#300) 2019-01-21 07:12:03 -06:00
Torkel Rogstad
36c01a0cf8 Scaladoc (#296)
* Scaladoc formatting

* Adds sbt-api-mappings plugin
2019-01-21 06:36:39 -06:00
Torkel Rogstad
5c9747f9fb Update rpc README (#306) 2019-01-21 06:28:57 -06:00
Torkel Rogstad
2eae4c2871 Tunes scoverage (#303) 2019-01-20 14:57:16 -06:00
Torkel Rogstad
26949b0245 Adds Bitcoin-S static site (#299) 2019-01-18 06:34:27 -06:00
Torkel Rogstad
5a195ec6e9 Improves types for Eclair RPC (#298)
* Improves types for Eclair RPC

* Version bump

* Adds note in README.md on where artifacts are published
2019-01-18 06:34:08 -06:00
Chris Stewart
9dfbc9ed24
version 0.0.3 (#290)
* version 0.0.3

* Fix cross compile issues so we can now compile and publish a dependency for the scala 2.11 series

scalafmt

* bump versions on readme, try to fix scoverage crossversion issue

* Downgrade scoverage to try and get it to work with ci

* Tinker with scoverage versions

* Add suggestion from scoverage people to exclude secp256k1jni from build coverage
2019-01-10 09:07:18 -06:00
Torkel Rogstad
2dc798d856 Scaladoc formatting (#295) 2019-01-10 08:54:57 -06:00
sken
626c62d10b fix uncaught exception in ScriptNumber (#293) 2019-01-09 13:29:59 -06:00
Torkel Rogstad
c4aed30eca Scaladoc formatting (#292) 2019-01-09 08:57:30 -06:00
Chris Stewart
d01e37cfa8
Add secp256k1jni readme, start working main project readme, move old readme to core/README.md (#276)
Add documentation for TxBuilder

Try to fix links on core/README.md

add readme badges for bintray

Nits and formatting of README (#23)

ran scalafmt, fixed format in secp readme
2019-01-08 09:29:06 -06:00
Torkel Rogstad
1a1409c832 Scaladoc formatting (#287) 2019-01-08 05:55:33 -06:00
Chris Stewart
a7d5171e5c Bump version to 0.0.3-SNAPSHOT 2019-01-07 19:37:42 -06:00
Nadav Kohen
780302d92f RpcRetryException (#274)
* Created RpcRetryException for better error messages on RpcUtil timeouts

* De-duplicated RpcUtil

* Ran scalafmt

* Fixed an import and a version
2019-01-07 16:49:17 -06:00
Torkel Rogstad
22806bfd0d Adds typesafe-config parsing of bitcoin.conf (#279)
* Adds typesafe-config parsing of bitcoin.conf

Adds ZmqConfig trait

* Only add datadir if not present

* Use old and new config settings
2019-01-07 09:30:59 -06:00
Torkel Rogstad
cb2ffa25fc Fixes some Scaladocs (#286)
* Fixes some Scaladocs

* ran scalafmt

* ran test:scalafmt
2019-01-07 09:23:29 -06:00
Chris Stewart
925ddda148
Add test case (#285)
WIP2

Fix bug where we weren't padding byte boundary on signature data

fix nits, run scalafmt

Address torkel's code review
2019-01-07 07:53:52 -06:00
Chris Stewart
611c0b3217
Add 'Script' abstract class, make ScriptSignature and ScriptPubKey extend it. Make underlying data represensation cache asm in ScriptPubKey and ScriptSignature (#246)
Revert bitcoinsV
2019-01-05 18:25:33 -06:00
Chris Stewart
ba20734df7
Add ability to publish snapshots for bitcoin-s (#281) 2019-01-05 09:40:51 -06:00
Torkel Rogstad
ce4bb32ae8 Compile and publish locally before tests (#282)
* Adds CONTRIBUTING.MD

* Compile and publish locally before tests
2019-01-05 08:31:40 -06:00
Chris Stewart
d9aee63392
Add osx to the operating system matrix (#273)
remove openjdk from ci matrix

Specify what osx image to use: https://docs.travis-ci.com/user/reference/osx#jdk-and-os-x

Try specify xcode9.3 in the os matrix

remove oraclejdk8 requirement

chmod on bitcoin binaries (#21)

* chmod on bitcoin binaries

* platform dependent binary fetchin

* platform dependent binary fetchin attempt 2

* bash is stupid

* bash is stupid take 2

* bash is stupid take 3

Remove DataTypeConverter dependency which was moved in the jdk

2018 12 17 add osx ci take2 (#22)

* bash is stupid take 4

* bash is stupid take 5

* bash is stupid take 6

bump timeout

reduce amount of blocks generated for pruned chain client

bump time out of encrypted wallet

fix comment

bump wallet encryption timeout... again
2018-12-18 19:29:59 -06:00
Dan-Smith-Suredbits
9b9203b4fb Add 64 bit osx libsecp256k1 binaries (#272) 2018-12-17 16:11:42 -06:00
Chris Stewart
20a0d38c93
2018 12 14 rm gen dup test files (#269)
* remove duplicate files in rpc,eclair-rpc and replace them with publish testkit dep

remove gen package, fix bugs in testkit generators that weren't properly copied for the gen project

* Adding bintray resolver, fixing bug in bech32 address generator where exception was being thrown because an unassigned witness spk was hash was being called
2018-12-15 10:09:52 -06:00
Chris Stewart
701738d829
WIP: Add ability to publish to bintray, take on the org.scijava native-lib… (#268)
* Add ability to publish to bintray, take on the org.scijava native-lib-loader dependenency so we can bundle secp256k1 natively in a jar file and publish. This dependency will allow us to link the correct secp256k1 version dependending on the os and arch in the future

* Add sbt-pgp plugin to sign binaries, modify project names to all have the 'bitcoin-s-' prefix.

* Adding linux 32 bit secp256k1 natives to secp256k1jni project

* Add mising linux_64 binaries

* remove unused symlinks
2018-12-14 13:09:53 -06:00
Chris Stewart
935843c790
Add hard coded secp256k1 files for linux x86_64 bit arch (#263)
* Add hard coded secp256k1 files for linux x86_64 bit arch

* Add binary files that ignored in .gitignore
2018-12-11 15:38:17 -05:00
Chris Stewart
0bc658c3db
Rework TransactionWitness, add more tests for resizing (#267)
Turn down logging again
2018-12-10 10:53:45 -05:00
Chris Stewart
01cdf7219a
Remove all old EscrowTimeoutScriptSig/ScriptPubKey and channels stuff, this is obsolete now with the Lightning Network (#265)
run scalafmt
2018-12-09 15:47:57 -05:00
Nadav Kohen
b8dbd302cb Added scalafmt and ran it (#264) 2018-12-09 14:43:31 -05:00