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

Develop the execute-call Function with Static Dispatch #378

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

Develop the execute-call Function with Static Dispatch #378

CyrusVorwald opened this issue Sep 22, 2024 · 0 comments

Comments

@CyrusVorwald
Copy link
Contributor

  • In the xCall implementation contract, define a function execute-call that processes incoming messages.
  • Since dynamic dispatch is not possible, require that the target contract is known and registered in the xCall contract.
  • Implement a registration mechanism where dApps can register their contract principal with xCall. This might have to be hard coding the principal in execute-call, or storing messages for the dApp to retrieve later instead of calling the dApp's handle-call-message.
  • In execute-call, use the registered contract principal to call the dApp's handle-call-message function using contract-call?
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