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

feat: wallet calculate gas performance #1794

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

Conversation

arthurgeron
Copy link
Contributor

@arthurgeron arthurgeron commented Jan 22, 2025

Summary

  • Centralized provider logic, avoid recreating provider instances for the same network url
  • Sped up account balance calculation by making requests in parallel
  • Sped up gas calculation by using fee data recently generated by Send Machine in the Send Machine -> Tx Request Machine flow (i.e. Send screen).
  • Sped up gas calculation in SendMachine and TxRequestMachine by using already present information on account/balance from accountMachine instead of re-fetching
  • Sped up gas calculation in SendMachine and TxRequestMachine by merging calculations of default tip and gas limit into a single parallelized promise.
  • Decrease unnecessarily long delay in tx and send machines while waiting for a possible new user input

Copy link
Contributor

@LuizAsFight LuizAsFight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createProvider can return as it was before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

improve performance of transaction approval from dapp
2 participants