Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOB-1933 Fetch gas prices from Infura #471

Merged
Changes from 1 commit
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
df51ad3
initted
rommex Mar 20, 2024
f3a9507
refactoring
rommex Mar 20, 2024
268ea93
refact
rommex Mar 20, 2024
54332a1
Update CryptoSenderProtocol.swift
rommex Mar 20, 2024
7498e48
added hash property into description
rommex Mar 20, 2024
fe25d7e
rm StoredTx
rommex Mar 20, 2024
73741ea
create TX
rommex Mar 21, 2024
4f12ffd
refactor protocol
rommex Mar 21, 2024
e289af4
extracting sendTx from WC2
rommex Mar 22, 2024
7689253
extracted fetchGasLimit()
rommex Mar 22, 2024
6a84eff
added working demo with Sepolia
rommex Mar 22, 2024
0364832
factor in amount and chain env
rommex Mar 23, 2024
f6f9c9a
fixed amount computation
rommex Mar 23, 2024
735db11
helper init
rommex Mar 23, 2024
17388c5
check support of native tokens
rommex Mar 23, 2024
5fae2d9
take use of default gas price
rommex Mar 23, 2024
0b85a6e
added TxSpeed, top-level CryptoSender
rommex Mar 24, 2024
eddd8f9
computeGasFeeFrom() finalyzed
rommex Mar 24, 2024
c3d8969
refactoring
rommex Mar 24, 2024
2b05299
refact
rommex Mar 24, 2024
d88dfd5
refactor
rommex Mar 24, 2024
cdd62a0
support ext wallets
rommex Mar 25, 2024
81c8899
transferring chain to ext wallet
rommex Mar 25, 2024
bba7470
ext wallet fix
rommex Mar 26, 2024
e16a7e0
fetching range of gas prices
rommex Mar 26, 2024
4109e91
Update navigation title
Oleg-Pecheneg Mar 28, 2024
edcf646
Will use domain name for wallet on receiver selection screen if avail…
Oleg-Pecheneg Mar 28, 2024
0c9fbc6
new enum SupportedToken
rommex Mar 28, 2024
35f2439
default body nil
rommex Mar 28, 2024
19cb5fa
removed double-checking
rommex Mar 28, 2024
c16100c
removed repeated code
rommex Mar 28, 2024
ddcbb8d
refactored computeGasPrice()
rommex Mar 28, 2024
362dfdb
computed gas fee in token units (Double)
rommex Mar 28, 2024
9f16b32
Merge commit '362dfdb7e1a7f06fe9ea8aca8769d861a741000c' into dev/feat…
Oleg-Pecheneg Mar 28, 2024
a512af1
use speed-based gas price
rommex Mar 28, 2024
a412015
Fixed preview target
Oleg-Pecheneg Mar 29, 2024
dd23dca
Implemented use max crypto to send calculations.
Oleg-Pecheneg Mar 29, 2024
970b8e5
Merge commit 'a512af1da692b844288933667c67276c9ae54a9f' into dev/feat…
Oleg-Pecheneg Mar 29, 2024
d264335
Filter tokens by can send
Oleg-Pecheneg Mar 29, 2024
e0722fd
Refactoring
Oleg-Pecheneg Mar 29, 2024
b78d563
Created bridge functions to send crypto in view model
Oleg-Pecheneg Mar 29, 2024
f1b4499
Added ui entity for transaction speed
Oleg-Pecheneg Mar 29, 2024
e8c1e46
Fetch gas fee and display on the UI.
Oleg-Pecheneg Mar 29, 2024
0325655
Updated gas fee price formatting
Oleg-Pecheneg Mar 29, 2024
34187cf
Updated token formatting and saved value
Oleg-Pecheneg Mar 29, 2024
3b4f554
Refactoring
Oleg-Pecheneg Mar 29, 2024
baedd36
Restore limited scope of requested porfolio data
Oleg-Pecheneg Mar 29, 2024
8d146dd
Remove speed estimation in sec from UI
Oleg-Pecheneg Mar 29, 2024
e710036
Run refresh gas timer
Oleg-Pecheneg Mar 29, 2024
764a591
Submit send crypto
Oleg-Pecheneg Mar 29, 2024
43efa4a
introduced EVMTokenAmount, extra helper method fetchGasPrices()
rommex Mar 29, 2024
ae88a83
fix: Eth Tx is build with WEIs only
rommex Mar 29, 2024
53951ff
refactoring
rommex Mar 29, 2024
c90eb90
Merge commit '53951ffca9d91e1e5d249df1653ac01129d63dd9' into dev/feat…
Oleg-Pecheneg Mar 29, 2024
b688505
Update gas fee and prices calculations
Oleg-Pecheneg Mar 29, 2024
af1dfdd
renaming (#452)
rommex Mar 29, 2024
c904ffb
Fix merging issue
Oleg-Pecheneg Mar 29, 2024
7b4c73d
Gas fee and gas prices refactoring
Oleg-Pecheneg Mar 29, 2024
6b57c80
Fixed gas prices preserved and refactoring
Oleg-Pecheneg Mar 29, 2024
65fbde3
Handle send all tokens
Oleg-Pecheneg Mar 29, 2024
ea6aca3
Check for user's fund is enough to cover gas before sending.
Oleg-Pecheneg Mar 29, 2024
4e78172
Force refresh wallet update
Oleg-Pecheneg Mar 30, 2024
6ee14fe
Add biometric verification to confirm send transaction.
Oleg-Pecheneg Apr 1, 2024
63be7a7
Updated using max button title
Oleg-Pecheneg Apr 1, 2024
3f7b95c
Merge branch 'dev/feat/send_crypto/MOB-1898-send-crypto' into dev/fea…
Oleg-Pecheneg Apr 1, 2024
e00b09c
Added crypto views lifecycle analytic events
Oleg-Pecheneg Apr 1, 2024
196bb09
Fixed typo
Oleg-Pecheneg Apr 1, 2024
caa103a
Added analytic events for scan qr code and select receiver views
Oleg-Pecheneg Apr 1, 2024
832646e
Added analytics to asset selection and token input views
Oleg-Pecheneg Apr 1, 2024
ce65705
Added analytics to transfer domain view
Oleg-Pecheneg Apr 1, 2024
a219aa9
Added analytics to send crypto view
Oleg-Pecheneg Apr 1, 2024
6e3581d
Added analytics to success screen
Oleg-Pecheneg Apr 1, 2024
6cc28cf
Log send asset error
Oleg-Pecheneg Apr 1, 2024
4a72cdf
Merge
Oleg-Pecheneg Apr 1, 2024
f9b2800
Refactoring
Oleg-Pecheneg Apr 1, 2024
40eb0ac
Refactoring
Oleg-Pecheneg Apr 1, 2024
37c6b01
Updated and localized tx list items
Oleg-Pecheneg Apr 1, 2024
4dece3f
Adjust UI for long values in tx list
Oleg-Pecheneg Apr 1, 2024
aa8d091
Fixed targets
Oleg-Pecheneg Apr 1, 2024
5ba8f90
Extend tx id
Oleg-Pecheneg Apr 1, 2024
3d38268
Updated tx icons ui
Oleg-Pecheneg Apr 1, 2024
cb23fcc
Merge branch 'dev/feat/send_crypto/MOB-1898-send-crypto' into dev/fea…
Oleg-Pecheneg Apr 1, 2024
bdefadc
bump version to 5.3.0(1)
rommex Apr 2, 2024
8c43ec2
added fetchInfuraGasPrices()
rommex Apr 2, 2024
75417a8
refactoring
rommex Apr 2, 2024
b1755cb
rm auth key
rommex Apr 2, 2024
3d9c3bf
Merge branch 'dev/feat/send_crypto/MOB-1898-send-crypto' into dev/fea…
Oleg-Pecheneg Apr 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add biometric verification to confirm send transaction.
  • Loading branch information
Oleg-Pecheneg committed Apr 1, 2024
commit 6ee14fe19020e3bf43cac1cf5e6f6e50517f5ee7
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ private extension ConfirmSendTokenView {

func confirmSending() {
Task {
guard let view = appContext.coreAppCoordinator.topVC else { return }
try await appContext.authentificationService.verifyWith(uiHandler: view, purpose: .confirm)

isLoading = true
do {
let txHash = try await viewModel.sendCryptoTokenWith(sendData: dataModel.data,
Expand Down