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

Adding protocol fees #2640

Merged
merged 14 commits into from
Aug 15, 2023
Merged

Adding protocol fees #2640

merged 14 commits into from
Aug 15, 2023

Conversation

aroralanuk
Copy link
Contributor

Description

  • Adding protocol fee as a hook

Drive-by changes

  • None

Related issues

V3

Backward compatibility

Yes

Testing

Fuzz tests

yorhodes and others added 4 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
solidity/test/hooks/ProtcolFee.t.sol Outdated Show resolved Hide resolved
solidity/contracts/hooks/StaticProtocolFee.sol Outdated Show resolved Hide resolved
solidity/contracts/hooks/StaticProtocolFee.sol Outdated Show resolved Hide resolved
solidity/contracts/hooks/StaticProtocolFee.sol Outdated Show resolved Hide resolved
solidity/test/hooks/ProtcolFee.t.sol Outdated Show resolved Hide resolved
solidity/contracts/hooks/StaticProtocolFee.sol Outdated Show resolved Hide resolved
solidity/test/hooks/ProtcolFee.t.sol Outdated Show resolved Hide resolved
solidity/test/hooks/ProtcolFee.t.sol Outdated Show resolved Hide resolved
solidity/test/hooks/ProtcolFee.t.sol Outdated Show resolved Hide resolved
solidity/contracts/hooks/StaticProtocolFee.sol Outdated Show resolved Hide resolved
solidity/contracts/hooks/StaticProtocolFee.sol Outdated Show resolved Hide resolved
solidity/contracts/hooks/StaticProtocolFee.sol Outdated Show resolved Hide resolved
solidity/contracts/libs/hooks/ProtocolFeeMetadata.sol Outdated Show resolved Hide resolved
solidity/test/hooks/StaticProtocolFee.t.sol Show resolved Hide resolved
solidity/test/hooks/StaticProtocolFee.t.sol Outdated Show resolved Hide resolved
Base automatically changed from transient-latest-dispatched to v3 August 14, 2023 22:58
solidity/contracts/Mailbox.sol Outdated Show resolved Hide resolved
solidity/contracts/Mailbox.sol Outdated Show resolved Hide resolved
solidity/test/hooks/StaticProtocolFee.t.sol Show resolved Hide resolved
@aroralanuk aroralanuk merged commit abc8b79 into v3 Aug 15, 2023
@aroralanuk aroralanuk deleted the kunal/protocol-fee-hook branch August 15, 2023 16:15
yorhodes added a commit that referenced this pull request Aug 18, 2023
### 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 <[email protected]>
@yorhodes yorhodes mentioned this pull request Aug 18, 2023
yorhodes added a commit that referenced this pull request Sep 13, 2023
- 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`

- None

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

No

Unit tests

---------

Co-authored-by: Yorke Rhodes <[email protected]>

Remove e2e and add yarn build to CI

Adding protocol fees (#2640)

- Adding protocol fee as a hook

- None

V3

Yes

Fuzz tests

---------

Co-authored-by: Yorke Rhodes <[email protected]>
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