Commit graph

843 commits

Author SHA1 Message Date
sneurlax
23bb519874 Merge branch 'favoritefavorite' into ui-fixes 2023-02-10 11:35:39 -06:00
julian
c275f09869 WIP restore mnemonic password ui 2023-02-10 08:25:03 -06:00
julian
218017ca51 populate initial values in exchange form 2023-02-10 08:04:12 -06:00
ryleedavis
a3486b46fc mobile theme order 2023-02-09 21:32:06 -07:00
ryleedavis
d1f22cdc06 prep for adding in forest theme colors 2023-02-09 14:37:25 -07:00
julian
86ca402401 close exchange step 4 back to wallet or exchange home view 2023-02-09 07:31:31 -06:00
julian
e78fc3ef9e wallet to exchange nav fix 2023-02-08 16:51:13 -06:00
julian
2eb0b2e123 clean up exchange rate type enum, build runner mocks 2023-02-08 16:46:30 -06:00
julian
15a44d9dff centralize exchange rate type parameter 2023-02-08 14:48:09 -06:00
julian
5c29a543a9 reduce unneeded providers 2023-02-08 14:22:22 -06:00
julian
4630d616cd only show exchanges supported by selected aggregate currency pair based on exchange flow type 2023-02-08 14:06:58 -06:00
julian
b1c8a56ba6 aggregate currency 2023-02-08 13:06:26 -06:00
julian
24baeb9ff5 show all available paired coins across exchange providers 2023-02-08 11:42:45 -06:00
julian
7616538248 exchange form field ui tweak 2023-02-08 11:25:31 -06:00
julian
8c0f675852 majestic bank order tracking link 2023-02-08 09:34:59 -06:00
julian
3416ffdda6 restore mnemonic passphrase field 2023-02-08 09:20:34 -06:00
julian
8206972309 add loading screen if not exchange data cache exists while waiting for it to be populated for the first time. Added checks for incognito mode 2023-02-08 08:43:42 -06:00
julian
998967245e migrate wallet on open 2023-02-08 07:29:27 -06:00
julian
d4db845494 Merge branch 'exchange_refactor' into paynyms
# Conflicts:
#	test/pages/send_view/send_view_test.mocks.dart
#	test/widget_tests/managed_favorite_test.mocks.dart
#	test/widget_tests/table_view/table_view_row_test.mocks.dart
#	test/widget_tests/wallet_card_test.mocks.dart
#	test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart
#	test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart
2023-02-07 11:17:16 -06:00
julian
62f7ebbc3c Merge branch 'majestic_bank' into paynyms 2023-02-07 11:16:26 -06:00
julian
2366c40dcd currency loading performance increase 2023-02-07 11:10:35 -06:00
julian
842593d6b2 ensure exchange is updated properly 2023-02-06 17:49:27 -06:00
julian
287c226416 clean up exchange_form.dart 2023-02-06 16:16:17 -06:00
julian
aa3d6f4102 show loading while updating rate on newly selected currency 2023-02-06 15:58:20 -06:00
julian
243acd09ba fix when leaving and returning to exchange view 2023-02-06 15:50:18 -06:00
julian
a94feef80e theme switching color fixes 2023-02-06 15:45:00 -06:00
julian
05934e28d9 exchange icon alignment fix 2023-02-06 15:44:47 -06:00
julian
57c31e9fa2 mb icon and refcode 2023-02-06 15:34:17 -06:00
julian
8061f0811d handle refund address support 2023-02-06 13:45:22 -06:00
julian
b19a3dbbf8 limit rate calls on amount entry 2023-02-06 13:08:24 -06:00
julian
f4737c5d95 show unsupported pair message per exchange 2023-02-06 12:19:43 -06:00
julian
3fde042c8e verify paired currency selection list options are valid 2023-02-06 10:50:32 -06:00
julian
f174efcec0 clean up and exchange form state bug fixes 2023-02-06 10:27:24 -06:00
julian
be2a52301e clean up and QoL mods to exchange_form_state.dart 2023-02-06 09:44:23 -06:00
julian
18e089179b simplify Currency class and fixed image loading issue 2023-02-06 09:23:31 -06:00
julian
10605d96a2 WIP exchange refactor and clean up 2023-02-05 17:50:40 -06:00
julian
4345a67d3f currency select function fix 2023-02-05 15:25:35 -06:00
julian
5aab115b96 form state provider fix 2023-02-05 15:11:58 -06:00
julian
1455808d7a WIP refactor exchange to use isar as cache instead of in memory using riverpod 2023-02-05 14:32:39 -06:00
julian
5b5ee30e41 centralized and cleaned up bip32 utils, and added mnemonic password functionality 2023-02-03 16:34:06 -06:00
julian
b0c00d8ec7 db refactor and added address labels 2023-02-03 13:22:21 -06:00
julian
7f15c1e6f4 fix share button on receiving qr generate 2023-02-03 10:26:11 -06:00
julian
19d0cb378d sort receiving addresses by lowest index first 2023-02-03 08:27:27 -06:00
julian
afc25e3f06 paynym home view app bar button icon color fix 2023-02-02 15:57:48 -06:00
julian
a781b24c5c paynym home view button icon color fix 2023-02-02 15:54:48 -06:00
julian
5ccc868c9b update amount changed state on send view when tapping send all 2023-02-02 15:41:54 -06:00
julian
a22973cd35 WIP addresses list ui 2023-02-02 15:37:59 -06:00
julian
1d4812c5b2 pull down to refresh paynym home view on mobile 2023-02-02 14:34:35 -06:00
julian
4fbf38fd11 buy warning popup refactor for desktop style/size 2023-02-02 14:20:57 -06:00
julian
e2ee38bc83 Merge remote-tracking branch 'origin/majestic_bank' into majestic_bank
# Conflicts:
#	lib/services/exchange/majestic_bank/majestic_bank_api.dart
2023-02-02 14:20:25 -06:00
julian
3ba9f7d61b WIP majestic bank order calculate api call 2023-02-02 14:18:27 -06:00
julian
991f128416 buy warning popup refactor for desktop style/size 2023-02-02 14:07:03 -06:00
julian
fca09fbe02 helper 2023-02-02 12:56:55 -06:00
julian
a6dae8d9e0 address overflow fix 2023-02-02 09:43:08 -06:00
julian
773c5fad9c Merge remote-tracking branch 'origin/paynyms' into majestic_bank 2023-02-01 16:55:52 -06:00
julian
6a07672437 paynym mobile ui sizing changes 2023-02-01 15:02:41 -06:00
julian
266a433aa3 add paynym share 2023-02-01 10:08:30 -06:00
julian
bc5dc9a5d7 simple receiving addresses list view 2023-02-01 09:30:29 -06:00
julian
dc2f344779 bottom nav text color change for fruit sorbet 2023-01-31 18:37:04 -06:00
julian
e5464a9c3c pop buy to wallets as well as exchange 2023-01-31 18:14:06 -06:00
julian
7e05abec43 show green "connected" in paynym details ui 2023-01-31 17:46:30 -06:00
julian
95ff076d3d add paynym bot image background 2023-01-31 11:35:58 -06:00
julian
57dd566906 paynym bot head icon 2023-01-31 11:11:42 -06:00
julian
69934fb871 clean up transaction list item ui state update key 2023-01-31 09:42:55 -06:00
julian
bcb8f2cd41 "choose from stack" fixes 2023-01-31 08:41:40 -06:00
julian
69435f4807 rename and fix text button style update bug 2023-01-30 15:34:21 -06:00
julian
4f58483e82 show min/max crypto amounts returned by simplex api on quote request 2023-01-30 14:08:21 -06:00
julian
13721df803 ensure fiat amount validation updates on use fiat amount selected 2023-01-30 13:42:19 -06:00
julian
bed518d061 ensure fiat amount validation updates on fiat type changed 2023-01-30 13:40:40 -06:00
julian
f61b53738c Merge remote-tracking branch 'origin/simplex' into paynyms 2023-01-30 13:11:42 -06:00
julian
47fb446b2e changed amount validation and (hopefully) fixed preview quote button 2023-01-30 13:08:44 -06:00
julian
225aec1763 update ui transaction state fix 2023-01-30 12:03:23 -06:00
sneurlax
1e5f624c8b remove unused functions 2023-01-30 09:30:57 -06:00
julian
6e54ddec86 wallet bottom nav bar fixes 2023-01-30 09:13:30 -06:00
julian
9ab087587b helper 2023-01-30 07:58:11 -06:00
julian
32c942ad42 Merge remote-tracking branch 'origin/staging' into paynyms 2023-01-27 18:28:53 -06:00
sneurlax
fecad7893b did this TODO 2023-01-27 17:40:30 -06:00
sneurlax
93dc37eed9 comment update 2023-01-27 16:18:13 -06:00
sneurlax
ad5f9b3de4 pop thrice 2023-01-27 16:05:57 -06:00
sneurlax
679c382106 pass, catch, and display error dialog from newOrder 2023-01-27 15:54:37 -06:00
sneurlax
26dfaa065a don't set errorMessage as substring except for >max crypto amt errors 2023-01-27 15:32:23 -06:00
sneurlax
ff5d5784a1 use min amounts as default text 2023-01-27 15:15:14 -06:00
sneurlax
7c0bfce3c2 clear field to minimum value 2023-01-27 15:11:29 -06:00
sneurlax
54d8e90c96 deprettify error messages 2023-01-27 15:10:59 -06:00
julian
61ad20e919 Merge remote-tracking branch 'origin/simplex' into paynyms
# Conflicts:
#	lib/utilities/enums/coin_enum.dart
2023-01-27 15:05:29 -06:00
julian
6c678e577b disable whirlpool button 2023-01-27 14:44:53 -06:00
sneurlax
957a6d63ae use internal variable 2023-01-27 14:38:24 -06:00
sneurlax
d5c3712067 trim excess digits 2023-01-27 14:38:10 -06:00
julian
6094a767d7 desktop rescanning navigation fix 2023-01-27 14:10:23 -06:00
sneurlax
4ddd4a292e do not display buy icon for non-Simplex currencies 2023-01-27 14:08:34 -06:00
sneurlax
0fddad94e6 pass coin as arg 2023-01-27 14:00:51 -06:00
sneurlax
9f40e11385 don't set BTC as default bounded crypto 2023-01-27 13:54:41 -06:00
sneurlax
6b6ef179cc add coin as arg to BuyInWalletView->BuyView->BuyForm 2023-01-27 13:47:41 -06:00
sneurlax
79e1bbf13b nest BuyView in Scaffold etc for in-wallet buy view
Thanks Julian!
2023-01-27 12:53:03 -06:00
sneurlax
59a12fe277 BROKEN, nav from wallet view to buy view 2023-01-27 12:01:27 -06:00
sneurlax
957b9cb6a3 fix buy image in wallet view on mobile 2023-01-27 11:47:42 -06:00
sneurlax
58ea92fd5a update colors behind fiat tickers 2023-01-27 11:43:41 -06:00
sneurlax
5ad3d4a64b linting
automated
2023-01-27 11:12:25 -06:00
sneurlax
f2835eff1d init field with minimum by default 2023-01-27 11:12:18 -06:00
sneurlax
052135a32f pass TextEditingValue with selection parameter 2023-01-27 11:12:05 -06:00
sneurlax
eed39d7826 remove non-stack coin images 2023-01-26 17:35:04 -06:00
sneurlax
9a3e9f345d set amount text to max if >max 2023-01-26 17:35:04 -06:00
sneurlax
e68385a6ae reset crypto min and max when new crypto selected 2023-01-26 17:35:04 -06:00
sneurlax
f64a2518ad use static min and max amounts from BuyFormState class 2023-01-26 17:35:04 -06:00
sneurlax
d7eb25aa9c update min and max 2023-01-26 15:03:54 -06:00
sneurlax
832c495227 catch requesting quote for >max crypto amt 2023-01-26 14:20:45 -06:00
julian
828c301af7 mobile paynym send flow implemented 2023-01-26 12:16:38 -06:00
julian
a41c903a96 mobile paynym send view 2023-01-26 11:46:16 -06:00
julian
4f2690f880 show available balance label and linter fixes 2023-01-26 11:28:58 -06:00
julian
26c57b5456 typecast to generic PaynymWalletInterface 2023-01-26 10:59:15 -06:00
sneurlax
e05b0658d1 only validate fiat amounts
TODO make sure exchange rate doesn't push fiat value over max
2023-01-26 10:58:00 -06:00
sneurlax
f25392379e validate min and max amounts 2023-01-26 10:46:53 -06:00
sneurlax
fa96f5ed14 put currently selected fiat's minAmount and maxAmount in buy_form var 2023-01-26 10:32:47 -06:00
sneurlax
e688ec2176 update quote validity check 2023-01-26 10:20:59 -06:00
julian
5de22ca858 Merge branch 'simplex' into paynyms 2023-01-26 10:16:01 -06:00
sneurlax
45bfab1d5e error handle quote not loaded 2023-01-26 09:56:48 -06:00
sneurlax
85582de70b Merge remote-tracking branch 'cypherstack/ui-fixes' into simplex 2023-01-25 16:50:51 -06:00
sneurlax
deb845db3b linting 2023-01-25 16:43:21 -06:00
sneurlax
e8f52082da remove unnecessary property 2023-01-25 16:43:07 -06:00
sneurlax
86c89152f5 add updateOrder stub
can't access ref without more work, moving on
2023-01-25 16:43:00 -06:00
ryleedavis
83cd1759be Merge remote-tracking branch 'origin/simplex' into ui-fixes 2023-01-25 15:29:03 -07:00
sneurlax
3042c82063 textDark -> buttonTextSecondary 2023-01-25 16:14:18 -06:00
ryleedavis
9815349efa exchange rate toggle color added 2023-01-25 15:12:19 -07:00
julian
fb3f430edc disable PaynymSupport extension and use PaynymWalletInterface instead 2023-01-25 15:49:57 -06:00
julian
7cb497f4f7 remove coin enum hasPaynymSupport getter in favor of type checking 2023-01-25 15:46:48 -06:00
julian
9c44dc6c6b add support to make adding segwit paynym support simple once implemented 2023-01-25 14:33:59 -06:00
sneurlax
e753a0badb fix buy details view on desktop 2023-01-24 18:15:03 -06:00
sneurlax
f529686a99 comment updates 2023-01-24 17:31:39 -06:00
sneurlax
d03417782d invoice -> details 2023-01-24 17:17:34 -06:00
sneurlax
4b145edd7f rearrange buy order invoice page and update text 2023-01-24 17:15:36 -06:00
sneurlax
f38d5590a0 add buy order invoice view for mobile
TODO fix nav for desktop
2023-01-24 17:00:53 -06:00
sneurlax
8b6fcd23b4 getPrimaryEnabledButtonColor -> getPrimaryEnabledButtonStyle 2023-01-24 15:32:39 -06:00
sneurlax
4d5bda96f0 pixel perfection 2023-01-24 14:21:47 -06:00
sneurlax
9495e7a7a7 adjust paddings and alignment to be IAW figma 2023-01-24 14:17:27 -06:00
sneurlax
07247a46b9 Merge remote-tracking branch 'cypherstack/ui-fixes' into simplex 2023-01-24 13:49:14 -06:00
sneurlax
8552fbac68 use container with boxdecoration instead of stroked textstyle 2023-01-24 13:48:57 -06:00
julian
fcc68ff1da Merge branch 'ui-fixes' into paynyms 2023-01-24 13:34:13 -06:00
julian
028b261dee refactor button style getter names 2023-01-24 13:29:12 -06:00
sneurlax
c0836f9c67 remove image property from Fiat and Crypto models
and don't check for them in selection views
2023-01-24 13:29:05 -06:00
sneurlax
325d341b7f do not change hover state of crypto selection list 2023-01-24 13:28:07 -06:00
sneurlax
374d8aaef0 add trailing wallet nav bar spacing 2023-01-24 13:27:47 -06:00
sneurlax
9bfdfc01e4 update wallet_navigation_bar for buy and paynyms
TODO test mobile
2023-01-24 13:27:39 -06:00
julian
9c0992ffbf home view button bar secondary color 2023-01-24 13:03:00 -06:00
sneurlax
1ebc8868f0 Merge remote-tracking branch 'cypherstack/ui-fixes' into simplex 2023-01-24 12:44:50 -06:00
julian
b8be066acb add per theme box shadow and per theme homeview button bar shadow 2023-01-24 12:42:41 -06:00
sneurlax
32ca83673a Merge remote-tracking branch 'cypherstack/ui-fixes' into simplex 2023-01-24 12:29:13 -06:00
sneurlax
4312f08ee5 add currency symbol to quote preview 2023-01-24 11:51:35 -06:00
sneurlax
e26493f58e fix form alignment when buying with crypto 2023-01-24 11:30:04 -06:00
sneurlax
b800dd12b4 align currency prettyName with amount input 2023-01-24 11:23:51 -06:00
sneurlax
e465030d3d add light version of simplex logo for dark themes 2023-01-24 11:12:40 -06:00
sneurlax
f3d466ab62 add You Pay With fiat currency name stub 2023-01-24 11:05:30 -06:00
sneurlax
43ec061740 purchase -> quote 2023-01-24 11:05:19 -06:00
sneurlax
fff29ba826 display long name on buy view 2023-01-24 11:01:13 -06:00
sneurlax
8a70e9def4 align desktop elements 2023-01-24 11:01:01 -06:00
julian
e404de2116 force usage of adkVersion parameter 2023-01-24 10:30:00 -06:00
julian
7d10ae2011 go directly to wallet view on single wallet per coin on desktop and mobile 2023-01-24 10:16:44 -06:00
ryleedavis
7fe1fefea2 Merge remote-tracking branch 'origin/isar_migrate' into ui-fixes 2023-01-23 17:31:24 -07:00
ryleedavis
90eb0b77c0 WIP: fruit sorbet background 2023-01-23 15:36:13 -07:00
julian
6498e1926c size fixes 2023-01-23 15:44:11 -06:00
julian
8a7d669b62 async hasConnected ui update 2023-01-23 15:39:05 -06:00
sneurlax
8ba76e492e comment updates 2023-01-23 14:46:22 -06:00
sneurlax
277807309b close dialogs on redirection 2023-01-23 14:41:49 -06:00
sneurlax
232913060b reset address variable on input clear 2023-01-23 14:29:18 -06:00
sneurlax
d93f5a8063 remove prints and add comments 2023-01-23 14:24:06 -06:00
sneurlax
df6031350a add address book dialog for desktop
WIP doesn't paste yet
2023-01-23 14:20:58 -06:00
julian
69dfbb5873 paynym clean up to use isar transaction and address upgrades 2023-01-23 12:19:13 -06:00
ryleedavis
bd80ad4ef4 add fruit theme button to appearance settings 2023-01-23 11:16:28 -07:00
ryleedavis
d25b757a22 add fruit sorbet to mobile + desktop appearance settings 2023-01-23 11:00:46 -07:00
sneurlax
824b3bb9a7 pushNamed navigation route, WIP 2023-01-20 20:32:57 -06:00
sneurlax
8ddc825ea5 fix clear address button 2023-01-20 20:15:04 -06:00
sneurlax
46e1d41126 prevent quote preview if required inputs empty
it should be prevented by the enabled property but nyah
2023-01-20 20:09:53 -06:00
sneurlax
1bf55318cc use coin image if buying crypto amount
and remove print in prod
TODO refactor duplicated isStackCoin and getIconForTicker into coin_enum?
2023-01-20 20:05:32 -06:00
sneurlax
8a0c846a1b add currency symbol in amount input 2023-01-20 19:58:45 -06:00
sneurlax
9b944f51f1 outline currency symbols and use selected symbol in buy form fiat select 2023-01-20 19:34:54 -06:00
sneurlax
f110ffb25c use currency symbol from dart
and scale according to length
2023-01-20 19:17:25 -06:00
sneurlax
8ec82ee603 only display address book icon for stack coins 2023-01-20 18:26:43 -06:00
sneurlax
49f024b656 use Julian's isStackCoin helper func
very nice.  didn't realize I could catch an error.  learning every day round here
2023-01-20 18:26:13 -06:00
sneurlax
b376b00d7c add icons for buy coins 2023-01-20 18:21:36 -06:00
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
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
julian
c1182f61bc start centralizing custom exceptions 2023-01-20 12:25:32 -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
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
8a1eee204b purchaseId -> id
because SimplexOrder qill have a quoteId, paymentId, and userId...
2023-01-19 17:47:27 -06:00
sneurlax
98a9804059 fix nav desktop nav error 2023-01-19 14:20:27 -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
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
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
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