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

Handle Connections and Protocol Selection with Known Contracts #376

Open
CyrusVorwald opened this issue Sep 22, 2024 · 0 comments
Open

Handle Connections and Protocol Selection with Known Contracts #376

CyrusVorwald opened this issue Sep 22, 2024 · 0 comments

Comments

@CyrusVorwald
Copy link
Contributor

Since Clarity cannot dynamically dispatch to a contract based on a runtime value, use a fixed set of known connection contracts and handle protocol selection through predefined options.

  • Define connection-trait
  • Implement connection contracts for each protocol, conforming to the connection-trait.
  • In the xCall implementation contract, maintain a list or mapping of known connection contracts.
  • Admin should be able to add or remove connection contracts.
  • The send-call function should be able to select and interact with connection contracts based on their identifier.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant