Commit graph

4062 commits

Author SHA1 Message Date
sneurlax
235b731c19 null wallet fix
pt 1
2024-02-20 12:41:22 -06:00
sneurlax
e070c2d986 temporary estimatefee hackfix 2024-02-20 12:33:29 -06:00
sneurlax
f8d64218f2 resolve mutation issue 2024-02-19 15:18:29 -06:00
sneurlax
c213745e5a add error handling and attempt to reconnect on error 2024-02-19 15:11:10 -06:00
sneurlax
494a1a9ba6 close chain height subscriptions on tor connection preference change 2024-02-19 14:32:43 -06:00
sneurlax
80005221b2 Merge branch 'staging' into dev 2024-02-19 10:44:55 -06:00
likho
1ba1150c65 Check if tx value is not null when parsing OutputV2 tx 2024-02-19 16:05:57 +02:00
julian
be8ef772b0 INCOMPLETE: Untested refactor to reduce number of chain subscriptions and simply the management thereof 2024-02-17 15:47:53 +07:00
sneurlax
8e2ca6a6c9 remove old rpc client references 2024-02-16 17:05:13 -06:00
sneurlax
9ac8a32821 update ping and request functions 2024-02-16 16:55:24 -06:00
sneurlax
c4cbf6eb5a add electrum_adapter ping note 2024-02-16 16:46:24 -06:00
sneurlax
e2d8e80f66 close old electrum client when updating to a new one
and ignore late initialization errors
2024-02-16 16:33:51 -06:00
sneurlax
a807303eba listen to tor and preferences changes and handle connections accordingly 2024-02-16 16:33:19 -06:00
sneurlax
75ca3d489b cleanup 2024-02-16 11:25:52 -06:00
sneurlax
2a18d911e8 Merge branch 'subscribe_adapter' into electrum_adapter 2024-02-16 11:25:25 -06:00
sneurlax
f9a8399d05 resolve merge conflict issue
sorry guise
2024-02-16 00:32:06 -06:00
sneurlax
0bb564bbc2 Merge branch 'subscribe_adapter' into testing 2024-02-15 18:08:31 -06:00
sneurlax
86bd8e2215 Merge branch 'electrum_adapter' into testing 2024-02-15 18:08:00 -06:00
sneurlax
b357d735ab clean up debug print 2024-02-15 17:59:12 -06:00
sneurlax
25ffa1fee6 WIP move subscription over to electrum_adapter 2024-02-15 17:53:39 -06:00
sneurlax
d00c205e6c add logging 2024-02-15 17:14:01 -06:00
sneurlax
3d942f3e0b return new client to CachedElectrumXClient from callback in interface 2024-02-15 16:33:02 -06:00
sneurlax
a52f45a4ae check electrumAdapterClient in CachedElectrumXClient, if closed, reopen
using a callback
2024-02-15 15:43:47 -06:00
sneurlax
35ba58c462 Merge branch 'electrum_adapter' into testing 2024-02-14 20:04:46 -06:00
sneurlax
cbcac9bcce make coin optional 2024-02-14 20:04:26 -06:00
sneurlax
b8987c73c0 WIP use and reuse electrum adapter channel 2024-02-14 19:47:26 -06:00
sneurlax
2a16727b8c Merge branch 'electrum_adapter' into dev 2024-02-14 16:51:26 -06:00
sneurlax
2339b33798 use and pass SSL and Tor proxyInfo variables to electrum_adapter methods 2024-02-14 16:50:59 -06:00
sneurlax
e58a614729 remove recursion to resolve deadlock issue 2024-02-14 15:56:34 -06:00
sneurlax
fb79cd867c use mutex to control race conditions 2024-02-14 15:23:36 -06:00
sneurlax
604f175a43 reset chain height time started var 2024-02-14 12:03:46 -06:00
sneurlax
77ecec400d Merge branch 'testing' into manage-zero-chain-height 2024-02-14 11:52:07 -06:00
sneurlax
e979a352fb avoid race condition 2024-02-14 11:51:59 -06:00
sneurlax
c9754c2739 Merge branch 'electrum_adapter' into testing 2024-02-14 11:20:29 -06:00
sneurlax
98c095b568 add 10s timeout 2024-02-14 11:19:57 -06:00
sneurlax
fc0d9639b8 store completers similarly to subscriptions so we can await them 2024-02-14 11:07:30 -06:00
likho
7363438279 Refator _manageChainHeightSubscription so we are not calling the listener multiple times 2024-02-14 17:46:01 +02:00
sneurlax
8fc2043910 new getFeeRate, add retry logic to usedCoinSerials, and comment cleanup 2024-02-13 19:47:26 -06:00
sneurlax
c21af7196f do not use hardcoded firo.stackwallet.com
in order to support custom nodes.
2024-02-13 19:34:18 -06:00
sneurlax
af3e194767 use electrum_adapter.getTransaction in cachedElectrumXClient, too 2024-02-13 19:20:33 -06:00
sneurlax
13a50cdace use electrum_adapter getTransaction 2024-02-13 18:28:20 -06:00
sneurlax
ceec698a44 add lelantus electrum_adapter methods 2024-02-13 15:34:45 -06:00
sneurlax
cd951f10cc temporarily use electrum_adapter's firo branch for testing integration 2024-02-13 14:25:03 -06:00
sneurlax
4147e357a8 use electrum_adapter package methods for all spark calls
add spark methods and tests, remove some Ravencoin references
and use cypherstack remote.  much trust, veryfy
2024-02-12 16:31:04 -06:00
Diego Salazar
83cc519933
Merge pull request #748 from cypherstack/update-book-error-fix
Address book error fix
2024-02-09 18:57:40 -07:00
sneurlax
de1413f955 do not complete completed completer 2024-02-09 19:10:53 -06:00
sneurlax
e8dc77529f add more logging 2024-02-09 19:10:37 -06:00
likho
365b117215 Fix error with deleting an address book entry 2024-02-08 14:35:51 +02:00
likho
0f91ccd7ce Fix Null Pointer error for address entry 2024-02-07 18:35:31 +02:00
likho
3b66997b88 Update validateAddress to use the coin's validate address 2024-02-07 17:50:38 +02:00
likho
03dc8d6e75 Update validateAddress to use the coin's validate address 2024-02-07 17:41:38 +02:00
Diego Salazar
cff01b1133
Merge pull request #746 from cypherstack/tezart-restore-fix
Fix error with Tezos restore
2024-02-06 20:51:59 -07:00
Diego Salazar
e5df9d94bd
Merge pull request #743 from cypherstack/electrumx
ElectrumX fixes: Use subscribable ElectrumX client for subscribing to chain height, resolve issue with sorting by a null blockHeight for unconfirmed tx, and if just one response is returned, return it as a single-item list
2024-02-06 20:51:21 -07:00
Diego Salazar
cbbcf4dccc
Merge pull request #745 from cypherstack/epic-ui-fixes
Epic UI fixes, add missing data
2024-02-06 20:51:02 -07:00
julian
bbf9ccc276 UNTESTED: chain subscribe logic refactor 2024-02-07 10:10:27 +07:00
sneurlax
8c7f9b491d don't scroll in scroll, size debug log dialog down on small screens 2024-02-06 21:08:36 -06:00
sneurlax
dc6d569433 add extra logging if a Map is returned with >1 requests queued 2024-02-06 20:57:33 -06:00
sneurlax
6c1d74ed81 clean up debug prints 2024-02-06 20:56:21 -06:00
sneurlax
46285d44ea don't subscribeBlockHeaders if subscription exists 2024-02-06 20:55:31 -06:00
sneurlax
3d42967c8b only assign subscription if null 2024-02-06 20:46:33 -06:00
sneurlax
469ab91dfd exit wallet when backing out from wallet view on mobile 2024-02-06 18:53:29 -06:00
sneurlax
15aeb39776 don't close coin's sub if coin has another wallet on the sync list 2024-02-06 15:10:18 -06:00
sneurlax
f81e432d33 exit wallet when backing out from wallet view on desktop 2024-02-06 15:07:51 -06:00
sneurlax
e27612b45f close subscription on wallet exit 2024-02-06 15:07:32 -06:00
sneurlax
931fb7e75a formatting 2024-02-06 12:34:55 -06:00
sneurlax
15a9543c9f instead of checking if it's a List, check if it's not a Map 2024-02-06 12:31:42 -06:00
likho
b56925d0d2 Resolve error when rescanning a wallet 2024-02-06 16:33:10 +02:00
likho
3de4c659e0 Fix error with Tezos restore 2024-02-06 12:34:57 +02:00
sneurlax
c3ed83f77d add stack trace to _getFees error 2024-02-05 22:40:39 -06:00
sneurlax
c8b323748b disable stream validity check in ElectrumXInterface.fetchChainHeight 2024-02-05 17:21:50 -06:00
sneurlax
2fb3034dc0 resolve recursion issue and add more cleanup and logging/error handling
and refactor _checkRpcClient -> _checkSocket
2024-02-05 16:35:38 -06:00
sneurlax
0f665bd602 remove unnecessary try-catch 2024-02-05 16:17:33 -06:00
sneurlax
66354e8ecd reconnect if needed in _checkRpcClient
with failovers
2024-02-05 15:49:05 -06:00
sneurlax
3ec6e2a008 TODO notes 2024-02-05 15:23:08 -06:00
sneurlax
d48c7cf9f1 cache node information for reconnection purposes when tor toggled
and cancel alive timer when needed (avoids secureSocket not initialized error)
2024-02-05 15:22:27 -06:00
sneurlax
dbaf184bb8 listen to correct socket depending on tor preference 2024-02-05 14:45:33 -06:00
sneurlax
7646f97cc1 pass prefs instance when updating electrumx 2024-02-05 14:37:06 -06:00
sneurlax
9835970751 listen to tor connection and preferences events 2024-02-05 14:33:52 -06:00
sneurlax
53d7143156 fns docs comments 2024-02-05 14:16:25 -06:00
sneurlax
685690723a initialize prefs and tor services 2024-02-05 14:16:14 -06:00
sneurlax
5835b1e4a7 use Tor in subscribable client where applicable 2024-02-05 14:09:13 -06:00
sneurlax
0d5a8f25a1 check chain height subscription validity with ping 2024-02-05 12:38:40 -06:00
sneurlax
0d8f1c2b95 add chain height service in order to hold one subscription per coin 2024-02-05 12:09:45 -06:00
sneurlax
9b93dc78d2 resolve null check operator used on a null value issue
because unconfirmed txs have a null blockTime.

we could also use currentChainHeight+1, which may be more appropriate.
2024-02-05 11:31:07 -06:00
likho
03f7fa1a1e Epic UI fixes, add missing data 2024-02-05 10:34:10 +02:00
julian
2be13a89c5 INCOMPLETE: WIP use streams instead of change notifier for electrumx socket subscriptions 2024-02-04 09:33:49 +07:00
julian
1b81af1e7e show chain height on desktop wallet view when in debug mode 2024-02-04 08:32:09 +07:00
sneurlax
0108121db3 if just one response is returned, return it as a single-item list 2024-02-02 19:01:32 -06:00
sneurlax
7863b7f209 don't add a listener if one already exists 2024-02-02 18:44:08 -06:00
sneurlax
a3b3314be8 connect subscribable electrumx instance after initialization 2024-02-02 18:30:26 -06:00
sneurlax
b896337d64 WIP subscribe to block headers in order to fetch chain height
not working because SubscribableElectrumXClient isn't initialized
2024-02-02 15:51:31 -06:00
sneurlax
3c23b0491c TODO note about accepting bad SSL certificate 2024-02-02 14:32:55 -06:00
sneurlax
9791d9b362 uncomment subscribable electrumx client 2024-02-02 14:32:33 -06:00
sneurlax
033850c677 make advanced settings view scrollable
TODO make other views scrollable, too
2024-01-31 16:33:24 -06:00
sneurlax
1f3ce757bd make settings menu scrollable on small screens 2024-01-31 16:18:52 -06:00
sneurlax
2d22b9a4ac make entire DebugInfoDialog scrollable 2024-01-31 16:00:22 -06:00
sneurlax
9e3cc4544d lelantus->Lelantus, spark->Spark, firo->Firo 2024-01-31 15:35:20 -06:00
julian
ccf1e34377 port of frost backup keys ui from stack frost 2024-01-30 19:50:55 -06:00
julian
751fc81c91 Merge remote-tracking branch 'origin_SW/staging' into add_frost 2024-01-30 18:51:47 -06:00
julian
0d3ef1bfc4 frost swb integration fixes 2024-01-30 18:47:41 -06:00
sneurlax
2e6ac40e20 fix 'cannot cast Null to String' 2024-01-30 12:45:39 -06:00
sneurlax
8cbca16a3a WIP first attempt at Frost wallet restoration from backup 2024-01-30 12:41:37 -06:00
sneurlax
a17a551a2b add myName to saved frost info 2024-01-30 12:25:58 -06:00
sneurlax
79fedf46e5 throw err if keys or config are null 2024-01-30 11:48:50 -06:00
sneurlax
8ba98d573c save frost keys and config in otherDataJsonString during SWB creation 2024-01-30 11:43:40 -06:00
sneurlax
0f73f76216 refactor _multisigConfig to getMultisigConfig for SWB purposes 2024-01-30 11:43:09 -06:00
sneurlax
cce94676a6 fix bitcoin frost wallet restoration 2024-01-29 23:29:52 -06:00
sneurlax
a100e6a15c only show frost-related config buttons for frost coins 2024-01-29 17:31:41 -06:00
sneurlax
10a6706ec0 wrap recovery phrase warning view in scroll and center views 2024-01-29 13:22:37 -06:00
sneurlax
9f03f7cfdc Revert "Merge pull request #732 from cypherstack/ui"
This reverts commit 3c8e220303, reversing
changes made to 0f8d3eb122.
2024-01-29 13:06:04 -06:00
julian-CStack
0f8e0db381
Merge branch 'staging' into monero_changes 2024-01-28 22:47:50 -06:00
julian
fcf971979a Fix rpc timeout issue and improved logging 2024-01-28 22:31:47 -06:00
julian
4f29308904 spray and pray
Two combined testing changes,neither of which really work

revert completer for testing
2024-01-27 18:24:19 -06:00
sneurlax
77f1f346d6 override recipient input(s) padding 2024-01-25 19:04:07 -06:00
sneurlax
2aa3bebf78 wrap send view content in padding
will probably need to be adjusted for mobile...
2024-01-25 19:03:53 -06:00
julian
ef83dbdafa Merge remote-tracking branch 'origin_SW/staging' into add_frost 2024-01-25 02:21:11 -06:00
julian
1e67f3585a some frost clean up 2024-01-25 02:20:37 -06:00
sneurlax
cd9ac3c2e5 WIP working horizontal centering
need to test on mobile and re-enable commented flex items
2024-01-24 13:05:33 -06:00
sneurlax
ce2bc33744 use SingleChildScrollView on desktop, too 2024-01-24 12:26:37 -06:00
sneurlax
4aed72874b refactor view body 2024-01-24 12:09:51 -06:00
sneurlax
ec9cec5d21 refactor app bar 2024-01-24 12:00:38 -06:00
julian
444afb88ae WIP frost send 2024-01-23 18:33:40 -06:00
sneurlax
8e7523f804 do not validate "p" (P2SH) addresses 2024-01-23 17:46:21 -06:00
sneurlax
7f6b069017 replace simple return with an await open 2024-01-23 14:12:27 -06:00
sneurlax
f52b950650 avoid updating wallet info before finishing opening
remove unused var
2024-01-22 21:24:30 -06:00
julian
911837b265 Merge remote-tracking branch 'origin_SW/staging' into add_frost 2024-01-21 12:09:00 -06:00
julian
d72e3a0d4a add/show spark balance where appropriate 2024-01-21 12:04:58 -06:00
julian
6a7ec2d5d2 untested: Bitcoin frost 2024-01-19 17:44:01 -06:00
julian
8ae2faa91f WIP frost wallet logic 2024-01-19 15:42:38 -06:00
julian
85b66fd849 WIP bitcoin frost wallet addition 2024-01-19 15:38:17 -06:00
julian
fbbd175d0f change wording on successful restore 2024-01-19 15:38:17 -06:00
julian
dd0fc6f369 refactor unnecessary provider watch 2024-01-19 15:38:17 -06:00
julian
2c62bbe9af set lelantusCoinIsarRescanRequired to false for new/restored from seed wallets 2024-01-19 15:35:46 -06:00
julian
85a8b12149 flutter version upgrade 2024-01-18 13:17:29 -06:00
julian
2e679882db bandaid fix xmr/wow address not showing up on recdeive screen on first wallet open after restore from seed 2024-01-18 13:00:50 -06:00
julian
620ea46b3d block particl utxos fix 2024-01-17 15:15:22 -06:00
julian
c751743436 go to home after swb restore success from settings on mobile 2024-01-17 13:35:05 -06:00
julian
48ee44ed29 xmr/wow restore height fix 2024-01-17 13:10:23 -06:00
julian
4356e101f5 xmr/wow wallet restore init fixes 2024-01-17 12:52:33 -06:00
julian
8acf84e222 clean up unused code and mark old as deprecated 2024-01-17 12:09:04 -06:00
julian
3bbed4ec63 SWB tweaks and desktop specific ui layout fixes 2024-01-17 11:46:18 -06:00
julian
1f6c0e3f31 fix isar circular reference error 2024-01-17 11:16:18 -06:00
julian
4301ba96e5 fix dogecoin absurd fees send error 2024-01-17 11:12:36 -06:00
julian
04a5f47d52 bch/ecash send fix (SIGHASH_FORKID) 2024-01-17 10:01:31 -06:00
julian
becebf37c3 firo tweaks 2024-01-17 08:34:04 -06:00
julian
393e27b15e possible epiccash duplicate tx in history fix 2024-01-16 19:24:19 -06:00
julian
c29e1f0307 do not put a tempTx for particl due to miss matching txids 2024-01-16 19:18:01 -06:00
julian
33e0059ea9 remove stream watching walletinfo due to flaky updates. Just grab walletinfo from db when wanted 2024-01-16 19:11:35 -06:00
julian
07b750189f ensure ba/nano height is updated when fetching transactions. Probably redundant 2024-01-16 19:10:22 -06:00
julian
ec52612f61 xmr/wow address check null error fix 2024-01-16 18:41:55 -06:00