Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Pay overhead gas in Cosmos InterchainGasPaymaster #44

Closed
Tracked by #5
KyleMoser opened this issue Jul 20, 2023 · 1 comment
Closed
Tracked by #5

Pay overhead gas in Cosmos InterchainGasPaymaster #44

KyleMoser opened this issue Jul 20, 2023 · 1 comment
Assignees

Comments

@KyleMoser
Copy link
Contributor

Hyperlane's default IGP pays overhead gas.

Basically this is achieved by mapping each destination to an "additional gas overhead" and automatically adding the overhead to any payForGas request.

Relevant docs from hyperlane:

Behind the scenes, the DefaultIsmInterchainGasPaymaster is configured to automatically add to the provided _gasAmount all overhead gas amounts that your message will use at its destination-- this includes any gas used by the Mailbox or the default ISM (for example, verifying validator signatures). This allows messages to be fully paid for without requiring any knowledge of the internal gas usage of the destination's Mailbox contract or default ISM when a message is processed.

@KyleMoser
Copy link
Contributor Author

Implemented ability to configure/update this. Needs unit tests.

@akc2267 akc2267 closed this as completed Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants