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

Modifying IGP to be a hook #2638

Merged
merged 13 commits into from
Aug 15, 2023
Merged

Modifying IGP to be a hook #2638

merged 13 commits into from
Aug 15, 2023

Conversation

aroralanuk
Copy link
Contributor

Description

  • IGP as a standalone hook, implementing postDispatch to call payForGas directly
  • Setting a DEFAULT_GAS_USAGE if metadata not specified and message.senderAddress() as refund address if not specified.

Drive-by changes

  • None

Related issues

Fixes https://github.com/hyperlane-xyz/issues/issues/511

Backward compatibility

Yes, same interface as the previous IGP but for Mailbox V3

Testing

Unit Tests

yorhodes and others added 7 commits August 4, 2023 12:21
### Description

- Adding default hook using custom config

### Drive-by changes

- `postDispatch` is now public

### Related issues

- v3

### Backward compatibility

Yes

### Testing

None
rust/Cargo.lock Outdated Show resolved Hide resolved
solidity/contracts/hooks/AbstractMessageIdAuthHook.sol Outdated Show resolved Hide resolved
solidity/contracts/igps/InterchainGasPaymaster.sol Outdated Show resolved Hide resolved
solidity/contracts/igps/InterchainGasPaymaster.sol Outdated Show resolved Hide resolved
solidity/contracts/igps/InterchainGasPaymaster.sol Outdated Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto

solidity/test/igps/InterchainGasPaymaster.t.sol Outdated Show resolved Hide resolved
solidity/test/isms/OPStackIsm.t.sol Outdated Show resolved Hide resolved
solidity/test/isms/IsmTestUtils.sol Outdated Show resolved Hide resolved
Base automatically changed from transient-latest-dispatched to v3 August 14, 2023 22:58
@aroralanuk aroralanuk merged commit b008540 into v3 Aug 15, 2023
2 of 5 checks passed
@aroralanuk aroralanuk deleted the kunal/transicient-igp-hook branch August 15, 2023 15:14
yorhodes added a commit that referenced this pull request Aug 18, 2023
- IGP as a standalone hook, implementing postDispatch to call payForGas
directly
- Setting a DEFAULT_GAS_USAGE if metadata not specified and
message.senderAddress() as refund address if not specified.

- None

Fixes hyperlane-xyz/issues#511

Yes, same interface as the previous IGP but for Mailbox V3

Unit Tests

---------

Co-authored-by: Yorke Rhodes <yorke@hyperlane.xyz>
@yorhodes yorhodes mentioned this pull request Aug 18, 2023
yorhodes added a commit that referenced this pull request Sep 13, 2023
- IGP as a standalone hook, implementing postDispatch to call payForGas
directly
- Setting a DEFAULT_GAS_USAGE if metadata not specified and
message.senderAddress() as refund address if not specified.

- None

Fixes hyperlane-xyz/issues#511

Yes, same interface as the previous IGP but for Mailbox V3

Unit Tests

---------

Co-authored-by: Yorke Rhodes <yorke@hyperlane.xyz>
@yorhodes yorhodes mentioned this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants