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

v3 review #2674

Closed
wants to merge 17 commits into from
Closed

v3 review #2674

wants to merge 17 commits into from

Conversation

yorhodes
Copy link
Collaborator

Description

Drive-by changes

Related issues

Backward compatibility

Testing

yorhodes and others added 17 commits August 18, 2023 14:47
### Description

- Adding Optimism Hook for MailboxV3

### Drive-by changes

- dispatch function with hookMetadata

### Related issues

- hyperlane-xyz/issues#513

### Backward compatibility

No

### Testing

None
#2609)

Co-authored-by: Kunal Arora <55632507+aroralanuk@users.noreply.github.com>
- 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>
### Description

- Updated the OP Stack tests for the Mailbox V3 transient storage
version
- Allowing OPStackHook to send msg.value at the time of message delivery
(uses bit masking)
- Added LibBit library, will be useful for all the auth hooks which can
send `msg.value`

### Drive-by changes

- None

### Related issues

- Fixes breaking OP Stack tests for
hyperlane-xyz/issues#513
- Also fixes
#2410

### Backward compatibility

No

### Testing

Unit tests

---------

Co-authored-by: Yorke Rhodes <yorke@hyperlane.xyz>
### Description

- Adding protocol fee as a hook

### Drive-by changes

- None

### Related issues

V3

### Backward compatibility

Yes

### Testing

Fuzz tests

---------

Co-authored-by: Yorke Rhodes <yorke@hyperlane.xyz>
- fixes GasRouter expectRevert message
- added TestMerkleRootHook for proof() and fixes MerkleRootMultisig test
- fixes ERC5164 tests post v3 changes

- added contract name to mailbox and abstractHook error messages
- removed unnecessary tests for "message too large"
- downgrade slither in actions to 0.3.0 because of their recent "missing
inheritance" bug on main

- V3

Yes

Unit tests
### Description

- `quoteDispatch` added to `IPostDispatchHook` interface and the
relevant hooks:
     - StaticProtocolFee
     - OPStackHook
     - InterchainGasPaymaster
     - MerkleTreeHook
     - PausableHook (no tests)
     - DomainRoutingHook (no tests)
     - ConfigFallbackDomainRoutingHook 
     - ConfigurableDomainRoutingHook (no tests)

### Drive-by changes

- `expectEmit` -> `expectCall`

### Related issues

- Quote in V3

### Backward compatibility

Yes

### Testing

Uint tests
@yorhodes yorhodes closed this Sep 11, 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.

2 participants