Files
com.blitzwallet/app/hooks
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
..
2025-11-16 12:29:31 -05:00
2025-07-21 19:30:08 -04:00
2025-08-13 11:10:55 -04:00
2024-10-04 11:40:45 -04:00
2025-03-11 15:47:00 -04:00