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

More accurate gas estimation in explorer #1999

Open
Tracked by #3345
nambrot opened this issue Mar 22, 2023 · 2 comments
Open
Tracked by #3345

More accurate gas estimation in explorer #1999

nambrot opened this issue Mar 22, 2023 · 2 comments
Assignees
Labels

Comments

@nambrot
Copy link
Contributor

nambrot commented Mar 22, 2023

We currently estimate just the message handling gas amount by estimating the handle function call. What we are missing is Mailbox and ISM overhead.

We should:

  • Fetch the ISM from the recipient (or use the default)
  • call the ism and assume a multisig for now, and fetch validatorsAndThreshold
  • Using the threshold, use the infra logic to determine the mailbox + ism overhead and add that to the estimate
@nambrot
Copy link
Contributor Author

nambrot commented Mar 1, 2024

Once we have relaying logic in the explorer with #2213, this becomes much easier

@jmrossy
Copy link
Contributor

jmrossy commented May 16, 2024

See Yorke's comment here: hyperlane-xyz/hyperlane-explorer#73 (comment)

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

No branches or pull requests

2 participants