Commit Graph

401 Commits

Author SHA1 Message Date
rorp
02c4505948
Initial Tor support (#3043)
* Initial Tor support

* cleanup
2021-05-07 06:43:39 -05:00
Chris Stewart
b854f7b16a
Fix javafx on mac osx new m1 arch (#3041) 2021-05-05 13:08:09 -05:00
Chris Stewart
8ec93c6632
Add protoc exception for apples new chip arch. This requires protoc to be built manually as they do not natively ship m1 support yet (#3013) 2021-05-03 07:11:59 -05:00
Scala Steward
e7d34a9ba9 Update metrics-core to 4.1.21 (#3003) 2021-05-01 06:41:52 -05:00
Scala Steward
56d177bb67 Update javafx-base, javafx-controls, ... to 17-ea+8 (#2978) 2021-04-29 16:45:43 -05:00
Scala Steward
e6d78c7c08 Update sbt-scoverage to 1.7.0 (#2982) 2021-04-28 11:55:59 -05:00
Chris Stewart
991ce38208 Use release flag rather than target flag as that is what is intended (#2976)
* Use release flag rather than target flag as that is what is intended

* add comment

* Fix usage of URI that doesn't work -release 8
2021-04-28 07:01:09 -05:00
Scala Steward
0cad0edaaf Update metrics-core to 4.1.20 (#2958) 2021-04-26 07:19:03 -05:00
Scala Steward
23d77b2f43 Update sbt to 1.5.1 (#2971) 2021-04-26 06:44:54 -05:00
Scala Steward
a194adba98 Update scalafx to 16.0.0-R22 (#2942) 2021-04-25 16:39:07 -05:00
Scala Steward
00efd8bccc Update scala-java-time to 2.2.2 (#2941) 2021-04-25 16:38:47 -05:00
Scala Steward
27752062d4 Update postgresql to 42.2.20 (#2945) 2021-04-23 09:30:15 -05:00
Chris Stewart
0bf6df77a5 Update scalatest + scodec deps (#2937) 2021-04-21 13:26:05 -05:00
Scala Steward
27992ed37d Update sbt-mdoc to 2.2.20 (#2930) 2021-04-20 18:35:15 -05:00
Scala Steward
7a73dc5cbb Update sourcecode to 0.2.6 (#2928) 2021-04-20 07:50:09 -05:00
Chris Stewart
4e1ace2706 2021 04 18 Use akka streams in BitcoindRpcBackendUtil.syncWalletToBitcoind (#2916)
* Initial implementation of wallet sync with bitcoind with akka streams

* Make BitcoindRpcBackendUtil.startBitcoindBlockPolling use akka streams

* rework BitcoindRpcBackendUtil.syncWalletToBitcoind() to use akka streams
2021-04-19 15:54:34 -05:00
Scala Steward
0d546f3b65 Update javafx-base, javafx-controls, ... to 17-ea+7 (#2911) 2021-04-18 09:12:21 -05:00
Scala Steward
b5b98492aa Update breeze-viz to 1.2 (#2907) 2021-04-17 17:59:18 -05:00
Scala Steward
ce36112da2 Update akka-actor, akka-discovery, ... to 2.6.14 (#2878) 2021-04-08 12:37:10 -05:00
Scala Steward
112067c905 Update metrics-core to 4.1.19 (#2877) 2021-04-08 07:13:58 -05:00
Chris Stewart
c738f23e58 Fix build warnings that came with sbt 1.5.0 (#2857)
* Fix build warnings that came with sbt 1.5.0

* Fix more deprecation warnings

* Fix more warnings
2021-04-06 06:01:11 -05:00
Scala Steward
a2628cacd1 Update scala-java-time to 2.2.1 (#2862) 2021-04-05 19:36:52 -05:00
Scala Steward
89e84fff67 Update sbt to 1.5.0 (#2854) 2021-04-05 07:20:23 -05:00
benthecarman
4055de7690 Inital LND rpc with some tests (#2836)
* Inital LND rpc with some tests

* Fix ZMQ test

* Correct datadirs

* Most tests

* Fix eclair tests

* Make tests less flaky

* Have CI download lnd

* Respond to some review

* Fix ZMQ tests

* Cached bitcoind for lnd tests

* Fix fixtures, bump timeout

* InstanceFactory & ConfigFactory

* Fix compile issue for 2.12.12

* Move factories to core.api.commons
2021-04-05 04:52:56 -05:00
Scala Steward
969dee78f6 Update javafx-base, javafx-controls, ... to 17-ea+6 (#2852) 2021-04-04 08:46:39 -05:00
Scala Steward
4d2532538b Update sourcecode to 0.2.5 (#2848) 2021-04-02 08:03:35 -05:00
Chris Stewart
49b6d39ab4 Implement Oracle Explorer Client (#2838)
* WIP

* Get POSt working for creating an announcement

* Add ability POST oracle attestations

* Add docs

* Remove ExplorerMain

* Update workflows to add  oracleExplorerClient/test

* Switch to test so it passes on CI

* Add unit test, switch env to ExplorerEnv.Test

* Remove extra comments

* Add StringFactory to ExplorerEnv
2021-04-01 10:43:10 -05:00
Scala Steward
832d9308b5 Update scalatest to 3.2.7 (#2843) 2021-04-01 06:08:54 -05:00
benthecarman
fa80f36d2f Get all of Core working with JS (#2826)
* core-test-js-json

* Add SigPointComputer cross compile
Co-authored-by: Nadav Kohen <nadavk25@gmail.com>

* Fix java.time for scalajs

* InetAddress for scalajs

* Fix linking errors in coreTestJS

* Easy fixes

* InetAddress Tests

* Update micropickle, fix exact functions

* Get BigSizeUIntTest working with upickle

* Fix exact funcs

* Update Base58Test with upickle

* Update ScriptSignatureTest with upickle

* Update TransactionTest with upickle

* Update BlockFilterTest with upickle

* Update ScriptInterpreterTest with upickle

* Update MnemonicCodeTest with upickle

* Add InetAddress unit tests

* Fix compile errors

* Get core tests running, not passing

* Sign with js

* Fix PSBTUnitTest

* Fix PBKDF2 for JS

* Use bcrypto's secp256k1 instead of ecdsa

* Fix 2.12.12 compile

* Core tests passing :)

* Test corejs
2021-03-31 15:04:30 -05:00
Scala Steward
6e574931c6 Update sbt-scalajs, scalajs-compiler, ... to 1.5.1 (#2837) 2021-03-31 12:35:00 -05:00
Scala Steward
703f9585ef Update scala-collection-compat to 2.4.3 (#2834) 2021-03-31 07:10:49 -05:00
Scala Steward
a9ccf23366 Update sbt-mdoc to 2.2.19 (#2833) 2021-03-30 06:19:11 -05:00
Scala Steward
c2e054d906 Update scodec-bits to 1.1.25 (#2835) 2021-03-30 06:16:58 -05:00
benthecarman
85ff255df3 Update akka to v10.2.4 (#2832) 2021-03-29 09:59:34 -05:00
Scala Steward
2cc2da9761 Update javafx-base, javafx-controls, ... to 17-ea+5 (#2829) 2021-03-29 06:53:11 -05:00
Scala Steward
c5a3b5ac3f Update sbt-ci-release to 1.5.7 (#2819) 2021-03-23 07:53:52 -05:00
rorp
911fca5825 Schnorr js (#2805)
* Schnorr sigs for Scala.js

* fix build

* put BIP340 test vectors in a shared space

* remove teskit dependency, fix point edge cases

* fix build

* add unit tests for point addition

* scaladoc

* cleanup

* respond to the comments

* Fix usage of BitcoinSLogger

Co-authored-by: christewart <stewart.chris1234@gmail.com>
2021-03-22 12:56:40 -05:00
benthecarman
c6c4e83e9e Remove logging from testkit core (#2813)
* Remove logging from testkit core

* Fixup deps
2021-03-22 11:48:27 -05:00
benthecarman
07514e2348 Remove logging from core (#2810)
* Remove logging from core

* Remove slf4j from testkit core

* Remove logback from coretest
2021-03-21 19:11:55 -05:00
Chris Stewart
2287c6ced9 Implement caching of bitcoind in the walletTest,nodeTest, and partially bitcoindRpcTest project (#2792)
* Create CachedBitcoind, implement it in FundTransactionHandlingTest

* Add BaseWalletTest, extend it with BitcoinSWalletTest & BitcoinSWalletTestCachedBitcoind, add CachedBitcoinV19 and use it RescanHandlingTest

* Make ProcessBlockTest work with cached bitcoind

* Make trait for CachedBitcoindNewest for the newest version of bitcoind

* Make UTXOLifeCycleTest use cached bitcoind

* Add WalletBloom, WalletSyncTest to use cached bitcoinds

* Add WalletIntegrationTest

* Rework beforeAll() and afterAll() into the super trait like BaseWalletTest

* Add standlone BitcoindFixtures, use it in BitcoindBackendTest

* Use new BitcoindFixtures in BitcoindBlockPollingTest

* Introduce BaseNodeTest, start implementing the usage of cached bitcoinds in the nodeTest project

* Use cached bitcoind's with SpvNodeTest & SpvNodeWithWalletTest

* Fix bug on postgres with reusing database, upsert the genesis header rather than create it

* Get NeutrinoNode tests workign with cached bitcoinds

* Fix NeutrinoNodeWithWallet by destroying wallet state for Postgres

* Add teardown helper method for bitcoind

* Teardown chain project when using node fixtures since node is dependent upon the chain project.

* Turn off parallelExecution again

* Switch the parallelExecution flag to only be set on CI, so we can get better performance when running locally

* Start implementing BitcoindFixtures, use BitcoindFixturesCachedTriple on TestUtilRpcTest

* Fix compiler errors, begin implementing NodePair

* Refactor TestRpcUtilTest to use 2 bitcoinds rather than 2

* Reduce the number of bitcoinds that MultiWalletRpcTest needs from 3 -> 1

* Reduce number of bitcoinds used in WalletRpcTest from 3 -> 2

* Add some documentation

* Try to re-add parallelExecution

* Reduce the number of bitcoinds used in PsbtRpcTest from 3 -> 2

* Disable parallelExecution in Test again

* Make BitcoindV21RpcClientTest & BitcoindV20RpcClientTest reduce bitcoind usage from 2 -> 1

* Make BitcoindV19RpcClienttest reduce bitcoind usage from 2 -> 1

* Rework MempoolRpcTest to use fixtures, add BitcoindVersion to CachedBitcoindCollection

* Make sure clientAccumm has to be specified as a paramter now rather than filling in by default

* Begin parameterizing NodePair/NodeTriple to retain type information for the specific version of bitcoind that was used

* Don't implement version in super trait

* Fix docs

* Fix async issue in V21 test suite

* Append to vectors in CachedBitcoinCollection rather than replace

* Fix rebase issues

* Add scaladocs

* Fix BitcoindV18RpcClient address info test

* Implement fixtures in BitcoindV17RpcClientTest fixtures

* Cleanup v17 PsbtRpcTest

* Reduce bitcoind usage from 3 -> 1 in BitcoindV18RpcClientTest

* Remove abandon transaction test, this allows us to reduce the number of bitcoind's used in MempoolRpcTest from 3 -> 2

* Remove the requirement to inject  BitcoinSAsyncFixtureTest, add it in the test traits explicitly to make things easier. Also add explicit afterAll() method to tear down both the CachedBitcoind & BitcoinSAsyncFixtureTest

* Fix missing Await.result() in BitcoindRpcTest.afterAll()

* Rework MultiWalletRpcTest to use a NodePair

* Rework BlockchainRpcTest to use fixtures

* Rework Client start()/stop() methods. Now use an AtomicBoolean to indicate when a user has requested a client to start/stop rather than sending pings to bitcoind that can fail because the conneciton pool has been shutdown in test cases

* Try my luck with turning on parallelExecution in CI again

* Revert parallelExecution, now testes do not run in parallel on CI

* Only turn off parallelExecution for bitcoindRpcTest

* Adjust build to only have bitcoindRpcTest NOT in run parallel on mac, reduce number of blocks used in BitcoindRpcTestUtil.createNodeSequence

* Run less tests in the rpc test suite as that takes the longest, move them over to node/wallet/dlc test suite on mac osx CI

* Don't run eclair tests in parallel either

* Remove CachedBitcoind from BitcoinSWalletTest

* Fix async bug in test case

* Push to github to force re-run of CI

* Push to github to force re-run of CI

* Push to github to force re-run of CI
2021-03-19 06:37:53 -05:00
Scala Steward
1daba85ddf Update javafx-base, javafx-controls, ... to 17-ea+3 (#2804) 2021-03-17 09:47:46 -05:00
Chris Stewart
78448b277c Revert "Schnorr sigs for Scala.js (#2784)" (#2802)
This reverts commit 8e7bde0ed9.
2021-03-16 13:19:16 -05:00
rorp
8e7bde0ed9 Schnorr sigs for Scala.js (#2784) 2021-03-16 10:21:47 -07:00
Scala Steward
fba880e5a9 Update sbt-native-packager to 1.8.1 (#2798) 2021-03-16 08:16:30 -05:00
Chris Stewart
00df875ec2 update Base docker image to a ubuntu buster (#2799) 2021-03-15 15:33:17 -05:00
Scala Steward
77ee3f7e8d Update sbt-ci-release to 1.5.6 (#2789) 2021-03-15 10:48:23 -05:00
Chris Stewart
49544fc7f3 Turn off parallelExecution and remove extra AsyncUtil test class (#2790) 2021-03-11 09:36:54 -06:00
Chris Stewart
7245eb0ec9 Update all deps that failed because of bad build (#2774)
* Update all deps that failed because of bad build

* Revert jvmopts

* Try bumping jvmopts max heap size to get mac builds to work

* Double up timeout in ScriptGenerators

* Use Future.successful() in signFunction to try and reduce overload on executionContext

* Push to github to force re-run of CI

* Upgrade sbt to 1.4.9
2021-03-10 06:48:21 -06:00
rorp
5a2f95c38e WIP: Implement bcrypto facades (#2743)
* Implement bcrypto facades

* signatures

* some more facades

* move JS test

* move JVM tests

* CryptoUtilTest

* CI config

* fix CI config

* add npm dependencies

* test over fullLinkJS-generated files
2021-03-05 07:21:39 -06:00
Chris Stewart
e59057483f Resturcutre cryptoTest & coreTest to work with scalajs build (#2731)
* Get cryptoTest,coreTest projects working with scala-js

Get build working, now moving onto compile

Move jvm specific cryptoTest's into the .jvm sub project

Rework build definition names to be more concise

Fix missing cryptoTest refactor

Move logback-test.xml into jvm specific resource folder so it doesn't get ignored

Make coreTest a crossProject

Rework ci matrix to work with new project structure

Try to fix CI matrix

CI fix part 2

* Apply commonSettings to all cross projects

* Address part of roman's code review, make coreJS, make cryptoTest.dependOn(crypto)

* WIP to share with scala-js community

* Fix scalac compiler settings to be additive in CommonSettings.settings

* Remove BCryptoTest
2021-03-03 16:52:03 -06:00