hyperlane-explorer
hyperlane-explorer copied to clipboard
More accurate gas estimation in explorer
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
Once we have relaying logic in the explorer with hyperlane-xyz/hyperlane-monorepo#2213, this becomes much easier
See Yorke's comment here: https://github.com/hyperlane-xyz/hyperlane-explorer/pull/73#discussion_r1602128133