Commit Graph
97 Commits
Author SHA1 Message Date
Blake KaufmanandGitHub 42042443a5 557 support hodl invoices (#620)
* build htlc functions

* adding color override to dropdown icons

* adding invoice generation for hodl invoices

* building logic to check if any hodl invoice was paid

* fixing confirm toast message

* adding claim htlc to expanded details page

* adding translations

* fixing eslint

* updating spark web package
2026-02-27 16:35:09 -05:00
Blake Kaufman 3ffb42dc86 simplifying pending tx logic by using time insted of tracking new ids 2026-02-22 16:58:56 -05:00
Blake Kaufman 95aaf818a5 improve pending tx display logic 2026-02-22 11:24:39 -05:00
Blake Kaufman 9c08364180 making sure to fetch tokens balance on incoming payment 2026-02-13 20:03:54 -05:00
Blake Kaufman 1647001ba5 using new polling pending logic insted of manual handling 2026-02-13 15:36:55 -05:00
Blake Kaufman 017f632af0 using pooling for all tx types 2026-02-09 12:07:59 -05:00
Blake Kaufman c5ceda4915 fixing abort controller tx bug 2026-02-09 11:36:54 -05:00
Blake Kaufman 2302b26bbd only abort if we have a new event incoming 2026-02-09 09:00:37 -05:00
Blake Kaufman f745a5ea16 fixed interval issue 2026-02-08 15:08:41 -05:00
Blake Kaufman 0cd28544a0 fixed flashnet fees 2026-02-08 14:20:42 -05:00
Blake Kaufman 095879e9be Adding check for already claimed txs 2026-02-03 12:27:30 -05:00
Blake Kaufman 68f4e745f5 adding new balance logic and on-chain deposit claiming 2026-02-03 11:46:40 -05:00
Blake Kaufman 8b35bc450d fixing tx not showing if spark fails to connect 2026-01-30 08:26:19 -05:00
Blake Kaufman a3911a8d59 implement recursive connection retry to add more robust internet error handling 2026-01-26 15:53:14 -05:00
Blake Kaufman 6b830ce39a fixng eslint 2026-01-18 10:36:33 -05:00
Blake Kaufman 37ec105de7 improroving pending flags logic to remove case where all txs are shown as pending 2026-01-18 09:30:33 -05:00
Blake Kaufman acfdde73e0 improving error handling + adding auth check to flashnet context 2026-01-16 14:09:33 -05:00
Blake Kaufman e139a10543 removing qued request on auth reset 2026-01-15 10:18:03 -05:00
Blake Kaufman fe02955924 improve ln auto swap handling 2026-01-15 08:04:36 -05:00
Blake Kaufman 49bae947e3 updating swap error info 2026-01-09 12:16:10 -05:00
Blake KaufmanandGitHub 93311a5665 adding race condition protection to handle update + interval checker to see if tx list and db state are unaligned (#411) 2026-01-09 10:44:43 -05:00
Blake KaufmanandGitHub 5e7cb86159 adding pending flag to tx while balance poller is going to remove confusion about the balance (#400) 2026-01-08 16:21:06 -05:00
Blake Kaufman ff05795815 fun wallet optimizations after sending 2026-01-08 09:30:53 -05:00
Blake KaufmanandGitHub 7d364e135b fixing duplicate pending txs (#379)
* fixing duplicate pending txs

* adding id guard to hompage. If duplicates are added, at least don't show them
2026-01-07 09:56:30 -05:00
806c0915d1 322 flashnet swap support (#375)
* add starter for swaps

* creating swap page

* building better swap functions

* creating select send type page

* bumping flashnet version

* fixing polling manager to inclue both increases and decreses to balance

* updating swaps page to use custom keyboard entry + enter in from or to amount

* adding basic support for chosing payment amount

* remoing log messges

* creating user balance context to easily use total, sat, and usd balance

* remove uneeded imports

* fixing navbar balance to match selected balance

* filter txs based on chosen balance

* fixed select page header text size

* created flashnet txid tracker to keep homepage clean

* adding swap function to payments wrapper

* using total balance in navbar balance

* fixing navbar balance

* load saved swaps on wallet init

* finishing swap page

* adding translations

* adding temp txs to swaps so the txs always show

* adding error messages to flashnet

* adding ability to pause animation

* adding start at begining animation

* standardize tokens display format

* fixed missing return

* create function to decode spark invoices

* creating flashnet provider to hold flashnet pool info

* use global pool info to speed up loading speed

* fixing icon style inconsistancy

* using flashnet rate more more accurate USD value

* adding bitcoin and dollar icons

* creating toast message for incoming ln swap

* removing native tokens amount display, only show formatted amount

* adding new icons

* creating dollar sat, dollar token values

* fixing USD user sat amount display

* creating select receive asset page for receiveBtcPage

* adding dollar receive type to LN and Spark

* handing swap receive payment on homepage

* using new dollar and bitcoin icons

* fixing number fomatter

* fixing wallet load balance bug

* adding denominations to swap balances

* exporting for flashnet use

* increasing modal height

* fixed swap amount conversion bug + formatted error messages

* adding webview processes to functions

* since lightning payments can now be lrc20 payments we need to specify spark here so the id is the correct format.

* updating bitcoin icon

* updating address parser

* creating regex to extract flashnet error code

* adding loading to fee when calculating swap

* adding failed tx hash to flashnet transfer

* adding flashnet transfers to webcontext

* remove hardcoded value

* blcok all failed txs

* mark auto-refunded flashnet swaps as failed

* allow failed txs to be added to database. Now they are blocked on the homscreen

* optimizing ln invoice match during restore

* fixing translation

* adding ln -> bitcoin swap + limits context

* removing unneded imports

* adding retry to balance + fixing wallet state change + moving swaps to flashnet context

* load saved transfers on context init

* use new poolInfo format

* adding payment logic for swaps

* adding freeze property so balance doesnt update on send page

* updating fee information

* adding fee warning to receive page

* adding conversion rate line

* fixing fee rate on receive page to not convert

* creating conversion utility functions

* getting current bitcoin price based on swap rate

* adding amount validation + making min half amd max more accurate

* adding estimated converted amount to receive page

* fixed variable naming

* adding swap payments logic to sending

* adding translations

* updating swap context

* increasing slider duration

* waiting for wallet to init before starting swap page init process

* fixing eslint

* fixing naming convention

* fixing height issue

* changed txt labels to percent amounts

* fixed dollar balance not showing for USD

* fixing payments to ln addresses with encoded spark invoices

* fixing converted amount

* fixing cuttof fee text

* making sure usdb doesn't trigger full tokens display

* updating swaps flow

* fixing usd txs not displaying on homescreen when lrc20 is not enabled

* fixing balance mismatch

* adding tap to switch sats to fiat on send page

* fixing fee and input bug

* fixing rate bug

* removing uneeded second button tap

* fixing double execution of same swap

* fixing inputs being unmatched

* adding automatic refund listener for swaps

* bumping version code

* updating translations

* fixing zero amount invoice validation

* fixed rouding error

* only show swap conversion on home and dollar page

* removing swaps description from pending tx

* making swap payments have type swap

* adding execution price and swap label to swap transactions

* adding checks for pending payments

* removed error showing on screen

* updating translations

* bumping version code

* making sure fees calcuate on user-choice as well

* fixing theme issues

* fixing dollar sat balance

* creating choose payment component

* bump version code

* fixing half modal slide out animation

* updating payments flow

* separating spark and flashnet inits

* cache pool info to fix sat balance on init

* updating translations

* removing sat value for swap payments

* bump version code

* remove old handler

* fixing fiat display bug

* persisting keyboard on taps

* making fee more accurate if paying bolt11 invoice with spark address inside

* making fiat search more broad

* allowing fast pay to be set using andriod buttons

* adding request title to contacts send and request page if requesting

* fixing button opacity

* adding tap to scroll up feature on contacts page

* adding helpfull errors

* updating overlay color for lightsout mode

* adding button to scroll to top on homepage

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

* Update locales/pt-BR/translation.json

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>

---------

Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>
2026-01-07 08:25:42 -05:00
Blake Kaufman 1e7c174cea fixing race condition with transactions 2025-12-21 15:57:26 -05:00
Blake Kaufman 2744519f38 removing force reconnection since Spark fixed issue 2025-12-13 16:19:12 -05:00
Blake Kaufman 553d2ee37e fixing payment not displaying 2025-12-12 13:43:42 -05:00
Blake Kaufman 3d18b6fa3e if sending payment abort tx polling 2025-12-11 19:36:26 -05:00
Blake Kaufman dc944a8a4a adding isSendingPayment ref to homepage 2025-12-11 17:30:18 -05:00
Blake KaufmanandGitHub 073d0871a8 creating getSingleTxDetails function (#312)
* creating getSingleTxDetails function

* using getSingleTxDetails

* improving tx event emitter

* bump spark version

* bump android version code

* making balance pollar more robust

* fixing liquid swap navigation

* fixing listeners  not being re-added
2025-12-11 14:23:55 -05:00
Blake Kaufman 79cb9a705b remove unveted balance state + moved tokens to self setter + fixed balance poller 2025-12-10 13:42:29 -05:00
Blake Kaufman 11db0ac370 fixing intervlas not clearing on fast refresh 2025-12-10 08:37:18 -05:00
Blake Kaufman 8afbd49990 adding prefer spark flags 2025-12-09 15:46:50 -05:00
Blake Kaufman 5ede529bff have balance poll run in background 2025-12-09 10:48:55 -05:00
Blake Kaufman 5fedad1eae update polling and tx restore 2025-12-09 09:53:20 -05:00
Blake Kaufman e9be6d56f9 only show full navigation on newest ln payment 2025-12-09 09:09:49 -05:00
Blake Kaufman a935fe66fb fixed auth restart not reloading txs 2025-12-08 17:44:37 -05:00
Blake Kaufman a521303cfb fixing transactions race condition 2025-12-08 13:50:21 -05:00
Blake Kaufman 420f06523a improving restore txs speed 2025-12-08 10:43:17 -05:00
Blake KaufmanandGitHub 82b676a73a show toast message on received tx if not on receive page (#305)
* show tast message on received tx if not on receive page

* globalize masterInfoObject
2025-12-08 10:36:20 -05:00
Blake Kaufman 72838819ca updating navigation process 2025-12-08 08:17:18 -05:00
Blake Kaufman 13888ff316 force reset every 10 minutes even if a user is not consistantly backgrounding the app 2025-12-06 18:18:53 -05:00
Blake Kaufman 3fb05ba038 fixing deeplink handling during auth reset 2025-12-05 11:04:56 -05:00
Blake KaufmanandGitHub b1a58e23b2 Reload wallet if backgrounded (#290)
* creating centralized location to handle stale background state

* adding global background threashold

* creating auth context

* disconnecting from liquid node during force auth

* reset did get to homepage variable

* fix crash if globalContactsInformation.myProfile is not set

* resetting custody account settings

* clearing keys information on reset

* remove roostock swap listener on reset

* resetting webview context on stale auth

* adding auth reset to spark context

* only load user info once per session

* only open tables once per session

* making sure to recheck login status to fix issue with initial load

* adding large heap flag

* fixing sql table open bug

* making sure didLoadUserSettings runs on app open

* fixing unqiueName being null bug

* fixing race condition causing switch to naive spark version

* misc changes
2025-12-05 09:35:51 -05:00
Blake Kaufman a7778dd1a0 remove uneeded states 2025-12-03 14:10:49 -05:00
Blake Kaufman 74bf88193d changing isSendingPayment to ref to redunce uneeded listener calls 2025-12-03 10:33:43 -05:00
Blake KaufmanandGitHub 38a6210c2c Switch contacts to spark (#288)
* standardizing add contact format

* switching to spark for contact payments

* adding storage for contact message obj to add contact and description info to payments

* adding saved payment info to spark payments

* deleting contacts table on reset
2025-12-01 12:33:00 -05:00
Blake Kaufman 0437396636 fixed on-chain fee bug 2025-11-12 16:27:46 -05:00
Blake Kaufman 357208a0f6 fixing deposit address tx details bug 2025-11-12 15:41:59 -05:00