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

Capture more call meta-info #4764

Open
ggreif opened this issue Nov 14, 2024 · 0 comments
Open

Capture more call meta-info #4764

ggreif opened this issue Nov 14, 2024 · 0 comments

Comments

@ggreif
Copy link
Contributor

ggreif commented Nov 14, 2024

Along with the caller of the message we could also make available to the method body

  • availableCycles the cycles sent along with the message
  • rawArguments the undecoded Candid message
  • deadline for best-effort calls ("response due")
  • maybe others?

It would also be interesting to specify a minimumCycles = 10_000 there, which would immediately check (before Candid decoding) if the message has enough cycles for the method to perform its work. This would be useful for pay-for-work canisters.

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

1 participant