-
Notifications
You must be signed in to change notification settings - Fork 58
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
make adapters more generic #1524
Conversation
Signed-off-by: james-a-morris <[email protected]>
I believe the goal here is to make a single generic adapter and then be able to paramerterize it based on what bridges we pass into the constructor. So for example, the adapter instantiated for Optimism will have the canonical bridge as well as CCTP and the DAI/SNX custom bridges passed in. The adapter logic itself should then just go through what bridges it "owns" and find outstanding transfers etc. As of the latest commit, this is not done yet. The main thing for me to do now is to make sure that all the different types of bridges are set up properly so that James's |
Signed-off-by: bennett <[email protected]>
Signed-off-by: bennett <[email protected]>
Signed-off-by: bennett <[email protected]>
Signed-off-by: bennett <[email protected]>
Signed-off-by: bennett <[email protected]>
I still don't think there is much point to reviewing this now since it's so large. There is still work to be done on formatting the bridges. |
Signed-off-by: bennett <[email protected]>
Signed-off-by: bennett <[email protected]>
There are some issues with querying deposit/finalization events with the ZkSync Weth bridge, since there are multiple different events to listen for. Also, in general, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bmzig I think this is ready to go in once the tests are passing 👍
This reverts commit 5c2c784.
Signed-off-by: bennett <[email protected]>
Signed-off-by: bennett <[email protected]>
Signed-off-by: bennett <[email protected]>
Signed-off-by: bennett <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bmzig James never populated a commit message for this PR so it'd be good to add a good description when merging 👍
* improve(adapters): make adapters more generic Signed-off-by: bennett <[email protected]> This adds the `adapter` directory which contains all the code for the generic adapter upgrade to be rolled out. Upon this merge, it will still be dormant since it must be enabled via a config, which defaults to the legacy adapters. --------- Signed-off-by: james-a-morris <[email protected]> Signed-off-by: bennett <[email protected]> Co-authored-by: Paul <[email protected]> Co-authored-by: bmzig <[email protected]> Co-authored-by: bennett <[email protected]> Co-authored-by: nicholaspai <[email protected]>
* improve(adapters): make adapters more generic Signed-off-by: bennett <[email protected]> This adds the `adapter` directory which contains all the code for the generic adapter upgrade to be rolled out. Upon this merge, it will still be dormant since it must be enabled via a config, which defaults to the legacy adapters. --------- Signed-off-by: james-a-morris <[email protected]> Signed-off-by: bennett <[email protected]> Co-authored-by: Paul <[email protected]> Co-authored-by: bmzig <[email protected]> Co-authored-by: bennett <[email protected]> Co-authored-by: nicholaspai <[email protected]>
* improve(adapters): make adapters more generic Signed-off-by: bennett <[email protected]> This adds the `adapter` directory which contains all the code for the generic adapter upgrade to be rolled out. Upon this merge, it will still be dormant since it must be enabled via a config, which defaults to the legacy adapters. --------- Signed-off-by: james-a-morris <[email protected]> Signed-off-by: bennett <[email protected]> Co-authored-by: Paul <[email protected]> Co-authored-by: bmzig <[email protected]> Co-authored-by: bennett <[email protected]> Co-authored-by: nicholaspai <[email protected]>
* improve(adapters): make adapters more generic Signed-off-by: bennett <[email protected]> This adds the `adapter` directory which contains all the code for the generic adapter upgrade to be rolled out. Upon this merge, it will still be dormant since it must be enabled via a config, which defaults to the legacy adapters. --------- Signed-off-by: james-a-morris <[email protected]> Signed-off-by: bennett <[email protected]> Co-authored-by: Paul <[email protected]> Co-authored-by: bmzig <[email protected]> Co-authored-by: bennett <[email protected]> Co-authored-by: nicholaspai <[email protected]>
* improve(adapters): make adapters more generic Signed-off-by: bennett <[email protected]> This adds the `adapter` directory which contains all the code for the generic adapter upgrade to be rolled out. Upon this merge, it will still be dormant since it must be enabled via a config, which defaults to the legacy adapters. --------- Signed-off-by: james-a-morris <[email protected]> Signed-off-by: bennett <[email protected]> Co-authored-by: Paul <[email protected]> Co-authored-by: bmzig <[email protected]> Co-authored-by: bennett <[email protected]> Co-authored-by: nicholaspai <[email protected]>
WIP - not ready for review.