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

Connection helper Plug #290

Open
vaibhavchellani opened this issue Jul 10, 2023 · 1 comment
Open

Connection helper Plug #290

vaibhavchellani opened this issue Jul 10, 2023 · 1 comment

Comments

@vaibhavchellani
Copy link
Contributor

Thinking of how to improve UX, one sucky thing about the current system is that doing the configuration makes me pretty anxious and likely other devs as well.

So thinking around how to make it simpler, consider an Plug that needs to be deployed on both arbi and opti.

  • We can write a connectionHelper plug that plugs your plugs in.
  • Your plug will have a boolean called "helperMode" that will be turned off by default
  • Owner can turn it on/off
  • easyConnect() that only local connectionHelper contract can call + this function trips helperMode to off before finishing execution
  • On the source chain, on connectionHelper pass it "integrationType",localPlug and siblingPlug address
  • It calls connect on localPlug and then sends a message to remote ConnectionHelper who then does the same for its localPlug via easyConnect() on destination chain.

As soon as this tx is done, your connection is done.

@arthcp
Copy link
Contributor

arthcp commented Jul 10, 2023

think this can be done using a js sdk?

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

No branches or pull requests

2 participants