Ben Carman
cfde581d0c
Move all remaining wallet db representations ( #1885 )
2020-08-24 13:13:52 -05:00
Ben Carman
c6ad90139a
Move TransactionDb to Core ( #1849 )
...
* Move TransactionDb to Core
* Move to api package
2020-08-22 08:04:30 -05:00
Ben Carman
9e06b826e1
Move AddressTagDb to Core ( #1850 )
...
* Move AddressTagDb to Core
* Move to wallet api package
2020-08-21 16:31:30 -05:00
Ben Carman
d187834e1a
Create KeyManager Api & move SpendingInfoDb to core ( #1848 )
...
* Create KeyManager Api & move SpendingInfoDb to core
* Fix docs, remove sealed form KeyManagerApi
* Move SpendingInfoDb to core wallet api
2020-08-21 14:37:12 -05:00
Ben Carman
683c11b2ab
Fix selecting Utxos twice in fundRawTransactionInternal ( #1866 )
...
* Fix selecting Utxos twice in fundRawTransactionInternal
* Simplify watch an arbitrary SPK test
2020-08-21 10:11:02 -05:00
rorp
2f8dcd1e57
Watch arbitrary SPKs ( #1860 )
...
* Watch arbitrary SPKs
* fix unit tests
* fix unit tests
* one more fix
* revert the compiler parameters
2020-08-20 14:33:18 -05:00
rorp
b5a40035ce
Refactor wallet DB ( #1798 )
...
* Refactor wallet DB
* fix create(), update() and upsert()
* remove accout foreign key
* fix wallet fixtures
* update Postgres schema
* update SQLite schema
* fix AddressHandlingTest
* fix SQLITE_BUSY exception in TransactionProcessing
* fix RescanHandlingTest
* revert NeutrinoNodeTest
* fix SpendingInfoDAOTest
* fix SQLITE_BUSY exceptions
* fix DbManagementTest
* fix "Task rejected" Slick exceptions in Postgres mode
* responded to the PR comments
2020-08-18 13:43:12 -05:00
Ben Carman
562f789504
Create primary key of (address, tag_type) for AddressTag table ( #1828 )
2020-08-15 12:52:00 -05:00
Ben Carman
48a7f6f86e
Remove default false for useLogbackConf ( #1816 )
...
* Remove default false for useLogbackConf
* Fix docs
* Set logging level to WARN for tests
2020-08-14 08:53:07 -05:00
Ben Carman
403ed33dbd
Require utxos aren't spent when sending from outpoints ( #1817 )
2020-08-14 08:43:18 -05:00
Ben Carman
62e9e08cf6
Address Tagging/Labeling Support from CLI ( #1790 )
...
* Address Tagging/Labeling Support from CLI
* Scaladoc
2020-08-12 10:55:15 -05:00
Ben Carman
4ab65abec4
Fix for Wallet confirmed states ( #1782 )
...
* Fix for Wallet confirmed states
* Only process if we do not have the header
2020-08-08 08:12:30 -05:00
Ben Carman
ce2601002e
Have wallet shuffle inputs and outputs ( #1721 )
2020-08-05 16:03:27 -05:00
rorp
628fd80d30
Implement Wallet.listTransactions() ( #1744 )
2020-08-05 07:21:12 -07:00
Ben Carman
e542a00d19
Callbacks to appconfig ( #1740 )
...
* Node Callbacks to appconfig
* Move WalletCallbacks to WalletAppConfig
* Update Docs
2020-08-04 12:27:21 -05:00
Ben Carman
26d5a09532
Move Node type of out Wallet API ( #1708 )
...
* Move Node type of out wallet api
* Remove extensions, add scaladocs
2020-07-29 05:57:48 -05:00
Ben Carman
73628e7e1f
Add ProcessBlockTest ( #1674 )
2020-07-27 14:14:24 -05:00
Ben Carman
4abcf3f321
Create HDWalletApi ( #1693 )
...
* Create HDWalletApi
* Rename createWallet to createHDWallet, add listDefaultAccountUtxos function
* Change return types to HDWalletApi
* Fix warning
2020-07-27 14:06:48 -05:00
Ben Carman
5e8a049fd2
Unreserve spent utxos ( #1676 )
2020-07-19 10:40:09 -05:00
Ben Carman
d29a04c480
Let Wallet find utxos by state ( #1668 )
2020-07-15 13:07:55 -05:00
Ben Carman
38489e146a
Random Coin Selection ( #1663 )
2020-07-14 10:12:05 -05:00
Ben Carman
ecd3449100
Address Tagging Attempt 2 ( #1320 )
...
* Address & UTXO tagging
* Fix docs
* Remove useless function, improve docs
* Fix rebase errors
* Rebase fixes
* Fix docs
* Fix small test errors
* Fix Postgres migration
* Fix postgres
2020-07-08 14:38:39 -05:00
Ben Carman
40d0c7337d
Temporary fix for update all on CRUDAutoInc Tables ( #1596 )
...
* Temporary fix for update all on CRUDAutoInc Tables
* Add comment
2020-06-20 08:46:59 -05:00
Scala Steward
97a4886c6e
Update scalafmt-core to 2.6.0 ( #1579 )
...
* Update scalafmt-core to 2.6.0
* Upgrade scalafmt, fix all formatting errors
* Scalafmt on 2.12
* fix test
* More fixes
Co-authored-by: Ben Carman <benthecarman@live.com>
2020-06-19 10:38:12 -05:00
Ben Carman
5319b4c927
Wallet callbacks ( #1543 )
...
* Wallet Callbacks
* Move noop to Callback
* Add docs
* Add tests for wallet callbacks
* Use BitcoinAddress instead of AddressDb, improve tests
2020-06-17 17:21:19 -05:00
Chris Stewart
ba0f38ccf6
2020 06 14 wallet root accounts ( #1556 )
...
* Implement unit test cases for initializing a wallet twice, and failing with an exception when we initialize a wallet with a different key-manager
* Use bip39PasswordOpt cached in the WalletUnitTest suite
* Turn off logging
* Run scalafmt
* Turn log level back to WARN
* Run scalafmt
2020-06-17 15:11:42 -05:00
Chris Stewart
1753f53fd1
Make it so wallet fixtures take a bip39PasswordOpt as a paramter ( #1555 )
...
* Make it so wallet fixtures take a bip39PasswordOpt as a paramter
* Fix doc
2020-06-16 10:45:41 -05:00
Nadav Kohen
027bd39474
Fixed all walletTest threads not being closed ( #1552 )
2020-06-15 10:50:53 -05:00
Chris Stewart
c54d6dcbdc
2020 06 09 addr invoice string factory ( #1538 )
...
* Implement StringFactory with Address and LnInvoice
* Address code review
* Run scalafmt
2020-06-11 10:44:12 -05:00
Ben Carman
1dd6025b9d
Testkit wallet with bitcoind uses bitcoind as api ( #1499 )
...
* Testkit wallet with bitcoind uses bitcoind as api
* Fix docs
2020-06-03 14:05:22 -05:00
rorp
823a392e98
PostgreSQL support ( #1315 )
2020-06-02 16:37:48 -05:00
Ben Carman
c10d5bc89b
Fee Rate Api Support ( #1470 )
...
* Fee Rate Api Support
* FeeRateProvider Tests
* Rename folder
* Fix docs
2020-05-29 13:01:20 -05:00
Chris Stewart
c6aae0dbf9
Create a simplified version of the WalletApi.unmarkUTXOsAsReserved() that just takes in a tx and scans outpoints if they are in our wallet, also move the mark/unmark methods out of Wallet.scala and into UtxoHandling.scala ( #1463 )
2020-05-25 14:45:38 -05:00
Ben Carman
c4c660158e
Add ability to unreserve utxos ( #1458 )
2020-05-22 06:29:11 -05:00
Ben Carman
99db9062ac
Add option to correctly use logback config ( #1398 )
...
* Logger now uses correct parent logger for all, names appenders correctly
* Set logback to true for tests, rename file
* Fix docs
2020-05-20 15:46:24 -05:00
Ben Carman
51fcb793be
Add ability to make OP_RETURN commitments ( #1417 )
2020-05-18 14:27:05 -05:00
Ben Carman
e44a08bd39
Wallet Send with coin selection algorithim ( #1409 )
2020-05-18 11:26:39 -05:00
Ben Carman
867e2a9755
Add list unused addresses call ( #1408 )
2020-05-12 09:29:02 -05:00
Ben Carman
711f5cb99c
Add listFundedAddresses call ( #1407 )
2020-05-12 07:33:22 -05:00
Ben Carman
721b28aefd
Add listSpentAddresses call ( #1406 )
2020-05-12 07:24:52 -05:00
Ben Carman
c571585b3b
Wallet send from outpoints ( #1405 )
2020-05-12 07:24:36 -05:00
Nadav Kohen
a503441619
Crypto Project Refactor ( #1380 )
...
* Added crypto project and decoupled BitcoinSLogger from NetworkElement
Decoupled BitcoinSLogger from Factory
Moved NetworkElement into crypto project
Moved Factory and BitcoinSUtil (renamed to BytesUtil) to crypto project
Moved MaskedToString to crypto project
Added BytesUtil to imports and cleaned up CryptoUtil.recoverPoint
Moved the rest of crypto stuff to the crypto project
Moved crypto tests to crypto-test project
* Added documentation for crypto project
2020-04-30 12:34:53 -05:00
Ben Carman
6d7685b76e
Add wallet creation time for rescans ( #1353 )
...
* Add wallet creation time for rescans
* Fix docs
* Clean up and add test
* Remove account bday
* Fix compile issue and docs
* Add more chain handler tests
* Use Instant over Long, add docs
* Fix docs
2020-04-29 09:49:41 -05:00
Ben Carman
4234561db9
Remove Unlocked vs Locked Wallet distinction ( #1379 )
...
* Remove Unlocked vs Locked Wallet distinction
* Add back TODO comment
2020-04-28 13:58:14 -05:00
Chris Stewart
4c3f6f8e67
2020 04 08 multi db dao ( #1355 )
...
* Implement Slick's multi database support via our DAOs
WIP2 work on chain project
WIP make JdbcProfieComponent so we have a common JdbcProfile
WIP2
Clean up a few things
WIP got CRUDAutoInc compiling
Get closer to everything compiling in the chain project
Begin moving database code into JdbcProfileComponent
WIP source compiling
Get dbCommonsTest/ test cases passing
Get rest of tests compiling and passing
* Rebase onto master, fix conflicts
* Run scalafmt
* Run scalafmt again
* Cleanup a few compiler warnings by adding type annotations to thigns
* Explicitly cast tables where they are needed in the wallet project where we need TableQuery for foreignkey / joins in slick
* Redo definition of 'table' to use the profile.api.TableQuery in scope
* Rename all *Table.scala files to *Db.scala
* First crack at address ben's code review
* Fix docs compile issue
* Fixed casting (#30 )
* Fixed AppConfig casting
* Fixed TableQuery casting in DbManagement subtypes
* Fixed casts in DAOs relating to internal types
* Address nadav's code review, move JdbcProfileComponent into it's own file
* Remove unused listTables() method
Co-authored-by: Nadav Kohen <nadavk25@gmail.com>
2020-04-25 11:28:58 -05:00
Ben Carman
3f14add2d0
Ignore immature coinbase outputs when funding a transaction ( #1365 )
...
* Ignore immature coinbase outputs when funding a transaction
* Create Consensus.coinbaseMaturity
2020-04-24 18:04:42 -05:00
Ben Carman
3d26ad8f34
Rescan from account ( #1348 )
2020-04-24 09:37:12 -05:00
Ben Carman
c696a7306b
Require that addresses are the correct network when sending ( #1332 )
...
* Require that addresses are the correct network when sending
* Compare network bytes so typed addresses work
* Use isSameNetworkBytes
2020-04-13 13:58:41 -05:00
Chris Stewart
3f71216eb3
Bump number of addresses generated in negative test case for AddressHandling where we expect a illegal state exception to be thrown ( #1333 )
2020-04-11 19:10:35 -05:00
Ben Carman
aa8a2e14a6
Move Json Reader, Writers, and Serializers to App Commons ( #1328 )
...
* Move Json Reader, Writers, and Serializers to App Commons
* Move app-commons outside of app/
2020-04-10 14:33:37 -05:00