hyperlane-explorer icon indicating copy to clipboard operation
hyperlane-explorer copied to clipboard

More accurate gas estimation in explorer

Open nambrot opened this issue 3 years ago • 2 comments

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 avatar Mar 22 '23 22:03 nambrot

Once we have relaying logic in the explorer with hyperlane-xyz/hyperlane-monorepo#2213, this becomes much easier

nambrot avatar Mar 01 '24 01:03 nambrot

See Yorke's comment here: https://github.com/hyperlane-xyz/hyperlane-explorer/pull/73#discussion_r1602128133

jmrossy avatar May 16 '24 17:05 jmrossy