Commit graph

1640 commits

Author SHA1 Message Date
julian
15207fc7f1 cache currencies and revert if needed on switching exchanges where currencies aren't available on both exchanges 2023-02-06 12:29:00 -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
3d01ec8598 reduce size of Pair class 2023-02-06 08:43:16 -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
585a684ecc apply majestic bank api to an exchange class 2023-02-04 11:48:07 -06:00
julian
4cbf8b8cd9 refactor exchange exception 2023-02-04 11:15:42 -06:00
julian
a3b5ba5b04 majestic bank dart api impl 2023-02-04 09:16:05 -06:00
julian
d4499ac3bc firo bug fix and test update 2023-02-03 19:04:43 -06:00
julian
5145d4fc01 query/filter bch addresses using derivation path components 2023-02-03 18:51:30 -06:00
julian
74ca8e1e07 add delete address labels and tx notes functionality (isar notes unimplemented atm) 2023-02-03 18:17:39 -06:00
julian
eb42493e4d bch derivePath bug fix 2023-02-03 18:05:19 -06:00
julian
9b4dee76a5 add derivationPath to Address constructor as required 2023-02-03 17:30:32 -06:00
julian
0c8e561995 bch constructDerivePath bug fix 2023-02-03 17:22:34 -06:00
julian
ad0059508c move wallet constructors below class declaration 2023-02-03 16:48:16 -06:00
julian
4d891e0f31 clean up 2023-02-03 16:42:27 -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
likho
e3101d98af Update Epicbox config to match latest epic version 2023-02-03 20:34:19 +02: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
f0a8d65b3e show sent tx immediately in history 2023-02-02 16:19:14 -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
4ca5cf0978 ocean breeze secondary button text color fix 2023-02-02 15:54:29 -06:00
julian
97604a792f fix offline wallet creation for namecoin and particl 2023-02-02 15:48:06 -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
8bdf0413bd majestic bank limits and rates api calls 2023-02-02 12:56:55 -06:00
julian
fca09fbe02 helper 2023-02-02 12:56:55 -06:00
julian
b504059735 WIP initial majestic bank api work 2023-02-02 12:56:55 -06:00
sneurlax
80611d1a31 use bch44 derivation if bip44 is null 2023-02-02 11:40:42 -06:00
julian
a6dae8d9e0 address overflow fix 2023-02-02 09:43:08 -06:00
julian
b2d7414cb6 merge clean up 2023-02-02 09:41:33 -06:00
julian
dc581cd4fc Merge remote-tracking branch 'origin/staging' into paynyms
# Conflicts:
#	lib/services/coins/bitcoincash/bitcoincash_wallet.dart
2023-02-02 09:29:30 -06:00
sneurlax
4aec78f0ed
Add BIP44 derivation paths to Bitcoin Cash wallet restoration process (#330)
* add new derive path for bch

and make it the new default.  we currently use slip44 (coinType 145) as the default

* add default cases to DerivePathType switches now failing

* normalize DerivePathType errors

log failing derivePathType or type, as appropriate

* add default derive path case to paynym interface

* use slip44 in bch wallet

* linting

* WIP look up both bip44 and slip44 addresses

slip44 is used by default

* typo fix

* typo fix

thanks Julian

* remove print

* use slip44 addresses by default

* use AddressType unknown for bip44 derive path type

* use address type unknown in _getCurrentAddressForChain, too

* generate different keys for SLIP44 and BIP44 paths

* couple more slips

* return slip44 from addressType

* slip before bip

* revert slip44-bip44, bch's bip44->bch44

* set bch44 derive path to type unknown

do not comingle paths in later output selection by index

* handle bip44 and bch44 path addresses when handling outputs

* use bip44 by default

* typofix

* typo fix in the typo fix

yo dawg

* separate new derivation path functions into their own non-testnet block

* cleanup

* disable test

should re-enable if it can be fixed with the test mnemonic in hand

---------

Co-authored-by: julian <julian@cypherstack.com>
2023-02-02 09:24:26 -06:00
julian
16d4384525 possible putAddresses index violation error during full rescan fix 2023-02-02 09:03:57 -06:00
julian
eaf8fe7094 possible epic cash address get fix 2023-02-02 08:48:03 -06:00
julian
e666928d63 majestic bank limits and rates api calls 2023-02-01 18:24:41 -06:00
julian
773c5fad9c Merge remote-tracking branch 'origin/paynyms' into majestic_bank 2023-02-01 16:55:52 -06:00
julian
aec33094d6 payment code lookup fix 2023-02-01 16:46:49 -06:00
julian
ce5586d675 extra percent notifier 2023-02-01 16:46:27 -06:00
julian
5ede544893 add wrapped exceptions to MainDB to hopefully catch stack traces 2023-02-01 16:46:01 -06:00
julian
9dc5f91a04 add logging to fee btc calc 2023-02-01 15:37:58 -06:00
julian
72cb62774c revert and modify tx size calc for two outputs 2023-02-01 15:20:49 -06:00
julian
6a07672437 paynym mobile ui sizing changes 2023-02-01 15:02:41 -06:00
julian
b64ffe91b7 paynym receiving address scanning fix 2023-02-01 11:23:09 -06:00
julian
68be62e3ef bch fetch derivation by address fix 2023-02-01 10:38:49 -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
588d715a61 only clear out wallet utxos on refresh 2023-01-31 19:26:23 -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
a00340b464 fix hasConnected to return true for sent notification transactions 2023-01-31 17:46:56 -06:00
julian
7e05abec43 show green "connected" in paynym details ui 2023-01-31 17:46:30 -06:00
julian
19bf4c0df6 scan following/followers for paynym history 2023-01-31 17:26:10 -06:00
julian
a25c03cb5c modify bip47 utils 2023-01-31 16:21:09 -06:00
julian
6a0673bec5 EXTRACT FUNCTION FOR PARSING BLINDED PAYMENT CODE FROM A TRANSACTION 2023-01-31 14:40:54 -06:00
julian
95d1f3c17e check all outputs for payment codes 2023-01-31 14:09:45 -06:00
julian
6df782647e btc send exact value of output fix 2023-01-31 13:44:56 -06:00
julian
2e7d55bda4 btc notification tx fix 2023-01-31 12:17:32 -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
dcd7f312a5 dynamics... 2023-01-31 11:09:21 -06:00
julian
0a264a97c5 pass p2pkh change address to paynym interface 2023-01-31 10:37:53 -06:00
julian
c06c3935ca handle fee rounding error 2023-01-31 10:37:03 -06:00
julian
3940c88e44 fix notifTx fee calculate bug 2023-01-31 10:03:16 -06:00
julian
69934fb871 clean up transaction list item ui state update key 2023-01-31 09:42:55 -06:00
julian
92076bf12a add image assets 2023-01-31 09:17:25 -06:00
julian
bcb8f2cd41 "choose from stack" fixes 2023-01-31 08:41:40 -06:00
julian
2f1853ef92 update default stackwallet paynym code 2023-01-30 15:38:01 -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
julian
a41f80ac55 add height change notify 2023-01-30 11:06:28 -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
17cbc390e4 pass in correct values 2023-01-30 08:28:54 -06:00
julian
85d69c0cb2 check all outputs for potential notification tx 2023-01-30 08:28:14 -06:00
julian
9ab087587b helper 2023-01-30 07:58:11 -06:00
julian
cbebe69ad8 WIP initial majestic bank api work 2023-01-29 11:21:35 -06:00
julian
32c942ad42 Merge remote-tracking branch 'origin/staging' into paynyms 2023-01-27 18:28:53 -06:00
Diego Salazar
e86fa521bf
Merge branch 'staging' into ui-fixes 2023-01-27 17:26:00 -07:00
julian
3985674525 dirty payment code obfuscation 2023-01-27 18:18:58 -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
177eb70d51 handle errors more reliably 2023-01-27 16:08:56 -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
ec64c77c45 comment update 2023-01-27 15:23:14 -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
f2382566d9 Merge remote-tracking branch 'origin/ui-fixes' into paynyms
# Conflicts:
#	pubspec.lock
2023-01-27 15:04:18 -06:00
julian
3105c21c35 move paynym interface from doge to btc 2023-01-27 15:03:03 -06:00
julian
6c678e577b disable whirlpool button 2023-01-27 14:44:53 -06:00
julian
d59d25cb04 add convenience function to add or update a list of addresses 2023-01-27 14:44:00 -06:00
julian
b09b3d0e1f restore all paynym history function 2023-01-27 14:43:38 -06:00
julian
c7446f1946 receiving address fix 2023-01-27 14:43:00 -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
julian
c8783bb032 ignore duplicate unblinded codes 2023-01-27 13:10:35 -06:00
julian
04854582ae desktop first start MainDB load fix 2023-01-27 13:09:58 -06:00
sneurlax
79e1bbf13b nest BuyView in Scaffold etc for in-wallet buy view
Thanks Julian!
2023-01-27 12:53:03 -06:00
julian
451edbfc67 handle dropped mempool/blockchain transactions 2023-01-27 12:49:25 -06:00
julian
2dd8a5b190 no such transaction exception 2023-01-27 12:22:30 -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
julian
47acad29a5 isar index violation error fix 2023-01-27 11:20:12 -06:00
julian
ae7163a40f add singel address getter by value 2023-01-27 11:19:44 -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
julian
466e2dd2de raw tx electrumx fetch fix 2023-01-27 10:46:38 -06:00
julian
0d775660c7 update featured paynyms 2023-01-27 10:37:15 -06:00
julian
33660467b1 add notification address derivation 2023-01-27 10:22:55 -06:00
ryleedavis
1d9120419e fixed sw default theme color 2023-01-27 09:22:34 -07:00
julian
8b071e8774 ensure paynym notification address is generated and added to database on restore 2023-01-27 10:21:23 -06:00
julian
5159a61271 block paynym notification utxos 2023-01-27 10:20:26 -06:00
julian
6d7284d216 do not display incoming notification transaction in ui 2023-01-27 10:04:55 -06:00
julian
b76c9e6c6b isar inspector active in debug mode and add single transaction fetch function 2023-01-27 10:04:15 -06:00
sneurlax
25a5b42f0e remove print from prod 2023-01-26 17:35:04 -06:00
sneurlax
eed39d7826 remove non-stack coin images 2023-01-26 17:35:04 -06:00
sneurlax
6c48caff48 only add stack coins to list
TODO refactor isStackCoin into a reusable form instead of copying it around 3 times :P
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