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

[SC-456] Use generic receivers and upgrade xchain-helpers #18

Merged
merged 7 commits into from
Jun 12, 2024

Conversation

hexonaut
Copy link
Contributor

@hexonaut hexonaut commented Jun 8, 2024

Switch to the newest xchain-helpers repo, which restructures how bridges are worked with. There is no longer a need for per-chain receivers.

barrutko
barrutko previously approved these changes Jun 11, 2024
Copy link
Contributor

@barrutko barrutko left a comment

Choose a reason for hiding this comment

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

One question, but other than that LGTM.

test/CrosschainTestBase.sol Show resolved Hide resolved
function deployCrosschainPayload(IPayload targetPayload, address bridgeReceiver)
public override returns (IPayload)
{
return IPayload(new OptimismCrosschainPayload(targetPayload, bridgeReceiver));
}

function setUp() public {
hostDomain = new Domain(getChain('mainnet'));
bridgedDomain = new OptimismDomain(getChain('optimism'), hostDomain);
bridge = OptimismBridgeTesting.createNativeBridge(getChain('mainnet').createFork(), getChain('optimism').createFork());

Copy link
Contributor

Choose a reason for hiding this comment

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

Lets apply this formatting change to all createNativeBridge lines just to keep lines shorter

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
bridge = OptimismBridgeTesting.createNativeBridge(
getChain('mainnet').createFork(),
getChain('optimism').createFork()
);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link

Coverage after merging SC-456-use-generic-receivers into master will be

100.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src/executors
   AuthBridgeExecutor.sol100%100%100%100%
   BridgeExecutorBase.sol100%100%100%100%

@hexonaut hexonaut merged commit 02c3abc into master Jun 12, 2024
3 checks passed
@hexonaut hexonaut deleted the SC-456-use-generic-receivers branch June 12, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants