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

improve: swap all Ovm adapters (excl. Optimism/Base) w/ generic adapter #1824

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

bmzig
Copy link
Contributor

@bmzig bmzig commented Sep 16, 2024

This is the first part of migrating the op-stack adapters. This moves Mode, Redstone, Zora, Blast, and Lisk to the generic adapter format, leaving only Optimism and Base as the only adapters still with the "legacy" structure.

Signed-off-by: bennett <bennett@umaproject.org>
bmzig and others added 3 commits September 16, 2024 13:29
Signed-off-by: bennett <bennett@umaproject.org>
Signed-off-by: bennett <bennett@umaproject.org>
@@ -62,7 +62,7 @@ export class BlastBridge extends BaseBridgeAdapter {
const l2Bridge = this.getL2Bridge();
const events = await paginatedEventQuery(
l2Bridge,
l2Bridge.filters.ERC20BridgeFinalized(l1Token, undefined, fromAddress),
l2Bridge.filters.ERC20BridgeFinalized(undefined, l1Token, fromAddress),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was actually an issue where I assumed the blast bridge followed the same interface as the OpStackDefaultERC20Bridge finalization events, but actually the token address positions are swapped. I.e. the first position is the address of USDB and the second position is DAI on mainnet, not the other way around.

bmzig and others added 3 commits September 17, 2024 10:33
Signed-off-by: bennett <bennett@umaproject.org>
Signed-off-by: bennett <bennett@umaproject.org>
@bmzig
Copy link
Contributor Author

bmzig commented Sep 18, 2024

This is ready to go in.

Copy link
Contributor

@pxrl pxrl left a comment

Choose a reason for hiding this comment

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

LGTM! We should probably wait until Monday to get it in so we can react to any regressions.

logger,
SUPPORTED_TOKENS[MODE],
spokePoolClients,
filterMonitoredAddresses(MODE)
bridges,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is bridges used anywhere else? Could maybe squash it?

Suggested change
bridges,
constructBridges(MODE),

@pxrl
Copy link
Contributor

pxrl commented Sep 24, 2024

@bmzig Should we get this one in today?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants