Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MOB-1933 Fetch gas prices from Infura (#471)
* initted * refactoring * refact * Update CryptoSenderProtocol.swift * added hash property into description * rm StoredTx * create TX also extracting JRPC methods * refactor protocol * extracting sendTx from WC2 * extracted fetchGasLimit() * added working demo with Sepolia * factor in amount and chain env * fixed amount computation * helper init * check support of native tokens * take use of default gas price * added TxSpeed, top-level CryptoSender * computeGasFeeFrom() finalyzed * refactoring * refact * refactor * support ext wallets * transferring chain to ext wallet * ext wallet fix * fetching range of gas prices * Update navigation title * Will use domain name for wallet on receiver selection screen if available * new enum SupportedToken * default body nil * removed double-checking * removed repeated code * refactored computeGasPrice() * computed gas fee in token units (Double) * use speed-based gas price * Fixed preview target * Implemented use max crypto to send calculations. Updated show pull up logic * Filter tokens by can send * Refactoring * Created bridge functions to send crypto in view model * Added ui entity for transaction speed * Fetch gas fee and display on the UI. * Updated gas fee price formatting * Updated token formatting and saved value * Refactoring * Restore limited scope of requested porfolio data * Remove speed estimation in sec from UI * Run refresh gas timer * Submit send crypto * introduced EVMTokenAmount, extra helper method fetchGasPrices() * fix: Eth Tx is build with WEIs only * refactoring * Update gas fee and prices calculations * renaming (#452) * Fix merging issue * Gas fee and gas prices refactoring * Fixed gas prices preserved and refactoring * Handle send all tokens * Check for user's fund is enough to cover gas before sending. * Force refresh wallet update * Add biometric verification to confirm send transaction. * Updated using max button title * Added crypto views lifecycle analytic events * Fixed typo * Added analytic events for scan qr code and select receiver views * Added analytics to asset selection and token input views * Added analytics to transfer domain view * Added analytics to send crypto view * Added analytics to success screen * Log send asset error * Refactoring * Refactoring * Updated and localized tx list items * Adjust UI for long values in tx list * Fixed targets * Extend tx id * Updated tx icons ui * bump version to 5.3.0(1) * added fetchInfuraGasPrices() * refactoring * rm auth key --------- Co-authored-by: Oleg <oleg@unstoppabledomains.com>
- Loading branch information