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

Callback to contract after future becomes ready #1186

Open
mn13 opened this issue Jan 23, 2025 · 2 comments
Open

Callback to contract after future becomes ready #1186

mn13 opened this issue Jan 23, 2025 · 2 comments
Assignees
Labels

Comments

@mn13
Copy link
Contributor

mn13 commented Jan 23, 2025

After a Future result is added on chain, the smart contract that created it should be called back for it to know that the request has completed.

To be decided exactly how this works: should we record inside each future what function we will call? Or, should we have a fixed signature (e.g. callback(uint64 id, bytes calldata output)) for all the futures?

@mn13
Copy link
Contributor Author

mn13 commented Jan 23, 2025

I think it can be fixed, smth like asyncCallback(uint64 id, bytes calldata output).
May be we need to save contract address which should be called.

@mn13
Copy link
Contributor Author

mn13 commented Jan 23, 2025

Can we get general solution for calling back contract not only for futures but for keyRequest and signRequest also?

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

3 participants