Commit graph

1399 commits

Author SHA1 Message Date
sneurlax
50a3815946 get coin images for coins we support 2023-01-20 17:58:18 -06:00
sneurlax
39f5df3158 move isDesktop out of constructor 2023-01-20 17:31:42 -06:00
julian
165021ca2e Merge branch 'isar_migrate' into paynyms 2023-01-20 17:27:18 -06:00
julian
a391a76eec trusted nodes fix and possibly other node fix 2023-01-20 16:24:33 -06:00
julian
017719971b isar init fix and renaming of init functions 2023-01-20 15:57:54 -06:00
sneurlax
2e6dfe0f62 fix cryptos with null networks/contractAddresses 2023-01-20 15:45:53 -06:00
sneurlax
c3dd04b830 use simplex_api supported_fiats and update fiat model 2023-01-20 15:45:37 -06:00
julian
3b9cb60aaa update text styles 2023-01-20 15:32:49 -06:00
julian
830fd58754 Merge branch 'isar-transactions' into isar_migrate
# Conflicts:
#	lib/services/coins/bitcoin/bitcoin_wallet.dart
#	lib/services/coins/bitcoincash/bitcoincash_wallet.dart
#	lib/services/coins/coin_service.dart
#	lib/services/coins/dogecoin/dogecoin_wallet.dart
#	lib/services/coins/firo/firo_wallet.dart
#	lib/services/coins/litecoin/litecoin_wallet.dart
#	lib/services/coins/monero/monero_wallet.dart
#	lib/services/coins/namecoin/namecoin_wallet.dart
#	lib/services/coins/particl/particl_wallet.dart
#	lib/services/coins/wownero/wownero_wallet.dart
#	pubspec.yaml
2023-01-20 15:30:48 -06:00
sneurlax
adf83aa3a6 use simplex_api supported_cryptos and update crypto model 2023-01-20 15:30:35 -06:00
sneurlax
51a9c7e961 api.php/route -> api.php?ROUTE=route 2023-01-20 14:56:26 -06:00
julian
c1182f61bc start centralizing custom exceptions 2023-01-20 12:25:32 -06:00
julian
5c66b0380b move standard electrum x transaction parsing function into a mixin 2023-01-20 12:16:27 -06:00
julian
4c25a88c32 update to use new block data callback 2023-01-20 11:48:59 -06:00
sneurlax
c8f843c38c redirect to order and close dialog
except the dialog doesn't close.
2023-01-20 10:36:46 -06:00
sneurlax
9a0de2e7f6 fix nav pop desktop issue 2023-01-20 10:32:26 -06:00
julian
0c1db6f249 clean up tests for now 2023-01-20 10:22:18 -06:00
sneurlax
b30976c0f0 redirect to checkout 2023-01-20 09:27:24 -06:00
sneurlax
2ad0659cbc add SimplexOrder model and return it from simplex API
TODO add redirect API call which url_launcher's the redirect endpoint
2023-01-19 23:10:15 -06:00
sneurlax
595d7e760d GET, don't POST, the goods. orders submitting
TODO create and return SimplexOrder and url_launch redirect endpoint 💪
2023-01-19 19:21:06 -06:00
sneurlax
8a1eee204b purchaseId -> id
because SimplexOrder qill have a quoteId, paymentId, and userId...
2023-01-19 17:47:27 -06:00
julian
fd5a237170 move db modifying func to MainDB out of WalletDb, add MainDB mocks to coin tests, build runner generate mocks 2023-01-19 15:13:03 -06:00
julian
60e850f442 add mockable override option for testing purposes 2023-01-19 14:33:23 -06:00
sneurlax
98a9804059 fix nav desktop nav error 2023-01-19 14:20:27 -06:00
julian
8921302ee0 remove useless walletId param from db init 2023-01-19 14:07:08 -06:00
sneurlax
7191e502db use new cypherstack/simplex_api for quotes, update SimplexQuote
and add bool buyWithFiat to SimplexQuote to disambiguate request
2023-01-19 13:36:05 -06:00
julian
686c897515 remove unused param from constructor 2023-01-19 11:41:59 -06:00
julian
db205b40e2 notify ui of tx changes and force refresh on rescan 2023-01-19 10:29:00 -06:00
julian
5badeab621 temp disable partial paynym support in ui 2023-01-19 09:41:10 -06:00
julian
95b9e6170f firo mint tx migrate fix 2023-01-19 09:16:30 -06:00
julian
7d061866bd btc tx fetch fetch fix 2023-01-18 18:13:08 -06:00
julian
89f0704bd4 revert late on isLelantus 2023-01-18 18:03:53 -06:00
julian
42e53c31a6 build runner 2023-01-18 17:48:44 -06:00
julian
f507f6a60a make fields final and other small QOL changes 2023-01-18 17:45:51 -06:00
julian
0a3c001845 fix all own addresses query 2023-01-18 17:20:23 -06:00
julian
575cce1a7d update address in case of bad index from migrate or any other reason 2023-01-18 16:55:59 -06:00
julian
6784e6aab4 dynamic parsing fixes 2023-01-18 15:15:38 -06:00
julian
4dabeebfab WIP migrate 2023-01-18 14:29:24 -06:00
sneurlax
745a887566 example update 2023-01-18 10:31:04 -06:00
sneurlax
202ce56448 add working non-api example
removed keys
2023-01-18 09:54:33 -06:00
julian
719f70697a epic isar fixes 2023-01-18 09:42:46 -06:00
julian
cd4408449c desktop db migrate enabled 2023-01-18 08:07:25 -06:00
julian
30635b05d5 wow isar tx sync fixes 2023-01-17 17:19:09 -06:00
julian
505e8adad7 xmr isar tx sync fixes 2023-01-17 16:56:21 -06:00
julian
ef9205a0a9 particl isar tx parse fixes 2023-01-17 16:11:04 -06:00
julian
957b4cba9b widget key fix 2023-01-17 16:10:45 -06:00
sneurlax
b575ee82ed set BTC and USD as defaults 2023-01-17 14:13:49 -06:00
julian
9bb71b0e13 firo isar index and null address fix 2023-01-17 12:31:07 -06:00
julian
38453ceafb delete old derivations when doing full rescan 2023-01-17 08:19:30 -06:00
julian
b348761bbe bch cashaddr fix 2023-01-17 08:04:30 -06:00
sneurlax
56135dc19f error message fixes 2023-01-16 18:49:15 -06:00
sneurlax
f1c686504f add newOrder stub method
TODO make it POST and open external browser, or else we'll have to make the inline status widget
2023-01-16 18:49:03 -06:00
sneurlax
4a13189927 pass the whole quote, not just the ticker 2023-01-16 18:17:06 -06:00
sneurlax
4543725b1a cleanup 2023-01-16 18:10:21 -06:00
sneurlax
e6a19d981d pass receiving address on to preview sheet 2023-01-16 18:08:37 -06:00
sneurlax
d9b1fb1fc7 connect (most) form values to quote object 2023-01-16 17:38:42 -06:00
julian
90870c7563 wallet delete ui bugfix for desktop 2023-01-16 17:17:35 -06:00
julian
880c82ba72 update delete wallet function to handle wallet isar data 2023-01-16 17:00:32 -06:00
julian
203cd12678 epic bugfix 2023-01-16 16:56:24 -06:00
julian
d1f237ae51 explicit isar model constructors 2023-01-16 16:37:00 -06:00
sneurlax
7cc30d1da4 comment cleanup 2023-01-16 16:12:53 -06:00
sneurlax
d10500ce02 copy and paste fix 2023-01-16 16:12:37 -06:00
sneurlax
21eb453e1a comment cleanup 2023-01-16 15:41:24 -06:00
sneurlax
0dff63d9ac put buy quote preview in floating sheet on desktop
TODO check if this breaks mobile
2023-01-16 15:35:38 -06:00
sneurlax
7eefe196c9 simplex supported currencies provider -> simplex provider
we may need to store a quote or "estimate" in the provider for UI dataflow purposes (because we can't run async functions in widget builds/constructors?)
2023-01-16 15:35:32 -06:00
julian
5562c14527 WIP refactor to single main isar db 2023-01-16 15:04:03 -06:00
julian
0223a75d95 putAll 2023-01-16 12:58:10 -06:00
julian
9388885047 add optional prefix param to address to script conversion 2023-01-16 09:17:32 -06:00
julian
5e592f8d29 epic index fix 2023-01-16 08:53:46 -06:00
julian
3d4d57a97c max log message length to store in db 2023-01-16 08:34:52 -06:00
julian
bda6865657 buy form ui tweaks 2023-01-15 18:47:28 -06:00
julian
6d338b68a1 simplex buy warning popup 2023-01-15 18:35:20 -06:00
julian
9286ae9902 use simple setState for toggling between buy with crypto/fiat and store current selected crypto/fiat values in state vars and update ui accordingly 2023-01-15 18:24:47 -06:00
julian
650ae9fe09 buy quote preview view and sample quote class 2023-01-15 18:09:11 -06:00
julian
0c9dcf6403 scrollable buy form on mobile if keyboard covers part of it 2023-01-15 17:30:07 -06:00
julian
a23c17d83e load simplex currencies if empty. Quick api call (at least on tests) so we can just call it without a loading service 2023-01-15 17:26:05 -06:00
julian
dc1a38db91 main wallets/exchange/buy page navigation fix 2023-01-14 12:17:55 -06:00
julian
3a0f563039 flutter layouts constraint error fix 2023-01-14 12:17:25 -06:00
julian
89778e6e63 disable BuyDataLoadingService 2023-01-14 11:22:48 -06:00
julian
48346fa77f provider access fixes 2023-01-14 11:16:32 -06:00
julian
daa6c5a9b0 clean up popular and check if image url string is empty before attempting to load the network image 2023-01-14 11:16:10 -06:00
julian
2f0824b1f4 formatting, linter fixes, don't call apis in build method 2023-01-14 10:41:02 -06:00
julian
f80b47d467 typed response data 2023-01-14 08:21:32 -06:00
julian
09b51def04 missing value init fix 2023-01-14 08:00:43 -06:00
sneurlax
79edf1292d remove unneeded buy type and buys service
no history needed at this time
2023-01-13 19:12:03 -06:00
sneurlax
7bfcaffc01 move simplex load from every select tap to initial buy form load 2023-01-13 19:08:27 -06:00
sneurlax
bdfb1f0a20 clean up buy form and add unstyled buy button 2023-01-13 19:08:12 -06:00
sneurlax
64662c9076 clean up buy form state functions
TODOs here
2023-01-13 19:00:07 -06:00
sneurlax
28c22cc3b8 do not use ticker as image url 2023-01-13 18:30:45 -06:00
sneurlax
b13d242deb label change 2023-01-13 18:17:05 -06:00
sneurlax
cfe40c76d9 change amount widget as in send views, read currency selections from API 2023-01-13 18:07:27 -06:00
julian
7fc4b724c4 add replace tx logic for potentially unconfirmed transactions to update properly 2023-01-13 17:36:59 -06:00
julian
c503e8f8d8 confirms bugfix 2023-01-13 17:26:24 -06:00
julian
ea212b3dd8 useless print 2023-01-13 17:00:05 -06:00
sneurlax
7e3cad5a06 fix floating crypto selection widget, add floating fiat selection widget 2023-01-13 16:50:49 -06:00
sneurlax
6dc99e6b34 add address input
TODO clipboard, QR, and address book functions
2023-01-13 16:45:35 -06:00
julian
c1e860ff52 getConfirms fix 2023-01-13 16:45:20 -06:00
julian
ed0089e94d default nodes fix 2023-01-13 16:35:14 -06:00
julian
c08c3f779d shared address parse fix 2023-01-13 16:11:34 -06:00
julian
afdc496331 update address model link 2023-01-13 15:57:49 -06:00
julian
8a7236b46d clear out isar blockchain data per wallet when doing full rescan 2023-01-13 15:48:42 -06:00
julian
061658f2e9 dynamic map value fix 2023-01-13 15:44:14 -06:00
julian
3414c71741 update other coin's parse transaction and db update 2023-01-13 15:36:19 -06:00
julian
e14c362574 rename var 2023-01-13 14:59:47 -06:00
julian
5e7bd0d8ae fix bitcoin transaction refresh 2023-01-13 14:50:43 -06:00
julian
5819241c15 fix tx parse address bug 2023-01-13 14:50:22 -06:00
julian
4dd41a5048 update address class for nonWallet address flag 2023-01-13 14:49:56 -06:00
julian
f53a293583 build runner 2023-01-13 13:35:21 -06:00
julian
cb382e213f separate tx note from transaction object to ensure total separation of blockchain data from other user to ease rescanning the blockchain 2023-01-13 13:33:46 -06:00
julian
94e6ebf53b insert inputs/outputs after finishing tx parse 2023-01-13 13:25:09 -06:00
sneurlax
61c971973c restyle coin and fiat selection widgets
and:
 - available -> supported
 - do not load simplex data on desktop menu item action
2023-01-13 13:14:56 -06:00
julian
6310f0b1c7 only update missing or unconfirmed transactions 2023-01-13 12:00:25 -06:00
julian
0543c4b044 filter by address fixes 2023-01-13 12:00:02 -06:00
julian
d119296492 build runner 2023-01-13 11:13:52 -06:00
julian
52d5ab0d33 WIP tx parse + link address to transaction 2023-01-13 11:11:41 -06:00
julian
13e6fc6b47 restoring type fix 2023-01-13 09:26:37 -06:00
sneurlax
44d3c26385 add available simplex currencies provider 2023-01-12 20:21:19 -06:00
julian
7e6daad779 some small bug fixes 2023-01-12 16:07:15 -06:00
julian
8c67901c28 apply wallet cache mixin to rest of coin wallets and clean up hive code 2023-01-12 15:32:25 -06:00
julian
5c70cf7967 add mixins to firo_wallet.dart and remove directly interacting with hive therein 2023-01-12 15:20:57 -06:00
sneurlax
b18ee6ba19 pare down crypto and fiat types and WIP stash of progress 2023-01-12 15:15:42 -06:00
julian
85be646049 add mixins to epiccash_wallet.dart and remove directly interacting with hive therein 2023-01-12 14:58:58 -06:00
julian
9b2b01764c add epic cash wallet cache hive mixin 2023-01-12 14:57:32 -06:00
julian
12bbc57e62 update wallet cache hive mixin 2023-01-12 14:57:07 -06:00
sneurlax
8e9150d7fe update api call 2023-01-12 14:38:03 -06:00
sneurlax
eaaed8a638 linting 2023-01-12 14:16:03 -06:00
sneurlax
bbf709744d get -> post 2023-01-12 14:14:53 -06:00
sneurlax
abcb473bfa update desktop menu controller indices 2023-01-12 14:13:49 -06:00
sneurlax
dad7329a30 load buy data when clicking buy crypto item in desktop menu 2023-01-12 14:13:29 -06:00
julian
1170f742e9 use balance caching in all wallets 2023-01-12 13:21:03 -06:00
julian
61a1ad551f clean up print 2023-01-12 12:55:57 -06:00
julian
4ab090cb92 remove unused hive inits 2023-01-12 12:54:22 -06:00
julian
3f830218a4 extract wallet isar db to mixin 2023-01-12 12:46:01 -06:00
julian
ccb9f254bd small bug fixes and added WalletCache mixin to handle balance cache etc 2023-01-12 12:15:28 -06:00
julian
e115ff1b41 only use the PaymentData 'data' once and do not generate p2sh data using p2wpkh unless required 2023-01-12 09:52:41 -06:00
julian
e271341738 ui fix 2023-01-12 09:45:55 -06:00
julian
f5f53a163a only print word when explicitly in debug mode 2023-01-11 22:47:47 -06:00
julian
12a5eff178 missing value init 2023-01-11 22:45:59 -06:00
julian
525d0fa7c4 update remaining ui to handle new data models 2023-01-11 22:45:32 -06:00
julian
f8c6a17fa7 update wallet ui to handle new data models 2023-01-11 22:26:38 -06:00
julian
eb915a0927 use isar query to fetch contact transactions 2023-01-11 21:36:00 -06:00
julian
a73e18df75 expose wallet isar instance to Manager 2023-01-11 21:23:21 -06:00
julian
1a7439f6a6 isar model updates 2023-01-11 21:16:45 -06:00
julian
3a185ead9a WIP paynym model parsing updates 2023-01-11 21:14:04 -06:00
julian
a989a26f62 migrate wownero_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 21:09:18 -06:00
julian
c83ec074de migrate monero_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 21:09:08 -06:00
julian
275e3ab4cb WIP migrate particl_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 20:09:08 -06:00
julian
21f3d80d3a migrate namecoin_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 19:22:44 -06:00
julian
c36d73f255 migrate litecoin_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 18:59:01 -06:00
julian
90bf6a2bb2 migrate firo_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 18:16:17 -06:00
sneurlax
8e8816fe05 first simplex service stash 2023-01-11 18:13:34 -06:00
sneurlax
7c58a3a47e add basic simplex api and data loading services
need to update the data loading service to call /quote and provide lists of supported coins and fiats
2023-01-11 17:04:03 -06:00
sneurlax
9d6ec18057 update buy response
Exchange -> Buy
2023-01-11 17:02:57 -06:00
sneurlax
ac2775dc42 connect toggle to preferences and use value in parent buy form 2023-01-11 16:17:46 -06:00
julian
f551927603 migrate epiccash_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 14:52:06 -06:00
julian
30d8f8b810 update isCancelled flag name to be consistent with other isar model bool values 2023-01-11 14:48:55 -06:00
julian
25a60920dd migrate bitcoincash_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 13:30:03 -06:00
sneurlax
6a2c0c4d8a text changes 2023-01-11 12:37:48 -06:00
julian
493bf09578 migrate bitcoin_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 12:24:16 -06:00
julian
90964b83c6 migrate dogecoin_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 12:23:49 -06:00
julian
78db152ff4 clean up coinservice and manager classes to handle new isar models and balance model 2023-01-11 12:21:11 -06:00
julian
e203da866d add general balance model to reduce clutter 2023-01-11 12:17:29 -06:00
julian
5937d92aee update isar models 2023-01-11 12:16:52 -06:00
sneurlax
863c59c25d add fiat enums and coins -> fiats 2023-01-11 12:03:50 -06:00
sneurlax
2d6447eedd add fiat selection view 2023-01-11 11:49:59 -06:00
sneurlax
9724b40848 add fiat crypto toggle and crypto selection list 2023-01-11 11:19:19 -06:00
sneurlax
c746eb8865 23-1-10 updates
nonatomic updates
2023-01-11 09:54:39 -06:00
julian
822bb219b6 migrate prep comment 2023-01-11 08:24:30 -06:00
julian
f1131e3d61 missing updated address generated file 2023-01-10 18:13:37 -06:00
julian
b0c62015a1 update enum value name 2023-01-10 17:57:00 -06:00
julian
d27af7243c modify experimental parseTransaction function to return the new Isar Transaction model 2023-01-10 17:55:19 -06:00
julian
e7877358da temp. branching of transaction model type for dogecoin wallets 2023-01-10 17:53:09 -06:00
julian
9d6e2d0a0d update dogecoin to use isar for addresses and transactions 2023-01-10 17:52:27 -06:00
julian
fdaa3f7d9d update isar transaction model 2023-01-10 17:51:34 -06:00
julian
8ee9428758 add currentHeight getter 2023-01-10 17:50:22 -06:00
julian
ce05a647f0 update isar address class 2023-01-10 17:49:31 -06:00
julian
3e2edde640 simple current chain height provider 2023-01-10 17:45:58 -06:00
ryleedavis
9f5ce0db7a textRestore added for color fix 2023-01-10 15:28:59 -07:00
sneurlax
290adfec21 stub pages for mobile and desktop
lots of extra code, lots of commented sections, the models are wrong, the pages just load on desktop and mobile.  need to complete the form and ... well, there's a lot, really
2023-01-10 15:25:20 -06:00
sneurlax
30ea0cc24f change desktop menu item text to reflect figma design 2023-01-10 15:20:41 -06:00
ryleedavis
a90f7fe994 textFieldError/SuccessBorder added 2023-01-10 13:48:40 -07:00
julian
064421cfba models modification and simple export 2023-01-10 14:40:09 -06:00
ryleedavis
af698332e7 wallet nav bar and wallet card text colors fixed 2023-01-10 12:00:38 -07:00
julian
279d7f37bd clean up 2023-01-10 11:51:38 -06:00
julian
fedb91f11c WIP isar address class 2023-01-10 11:29:36 -06:00
julian
3de937fe03 switch values that change over time to computed properties 2023-01-10 11:22:52 -06:00
julian
a0df73551e update generated files 2023-01-10 10:02:54 -06:00
julian
5712fab88f WIP Isar transaction sub type enum 2023-01-10 09:21:22 -06:00
julian
c4cc5b1a02 WIP Isar transaction object skeletons 2023-01-10 09:13:22 -06:00
julian
2da1e23251 WIP initial paynym send ui 2023-01-09 15:48:32 -06:00
julian
178912a323 routing fix 2023-01-09 15:47:40 -06:00
julian
69e1d8d20b reduce minimum doge confirms 2023-01-09 15:47:10 -06:00
julian
e66205ac32 routing and parse fix 2023-01-09 15:46:52 -06:00
julian
bffe5e09ca paynym confirm transaction view flags and routing branch 2023-01-09 15:43:16 -06:00
julian
cba33a1d69 notification tx record type storage fix and a couple other little fixes 2023-01-09 15:42:37 -06:00
julian
12477e8fb5 desktop connect confirm dialog layout 2023-01-09 14:11:26 -06:00
julian
039508ee32 show insufficient balance warning on connect to paynym attempt 2023-01-09 13:57:12 -06:00
julian
512711183c add hover color to desktop new follow button 2023-01-09 13:22:05 -06:00
julian
91696ebb4b desktop paynym details subview 2023-01-09 13:15:15 -06:00
julian
3c1bc42bbf added check functions too see if a notification tx was sent from my wallet to the target payment code, and if any transactions have been received on my notification address which are then cached/stored locally 2023-01-09 11:09:26 -06:00