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

Clarify and Document the Process for Static Calls in Casper #1503

Open
Tracked by #1495
devendran-m opened this issue Dec 19, 2024 · 0 comments
Open
Tracked by #1495

Clarify and Document the Process for Static Calls in Casper #1503

devendran-m opened this issue Dec 19, 2024 · 0 comments

Comments

@devendran-m
Copy link
Contributor

devendran-m commented Dec 19, 2024

Problem Statement/Feedback (from Xord):

The process for performing static calls from contracts is also unclear. Suppose we have complex calculations, and we want clients to read results from a contract without initiating a transaction, as no state changes are involved. How can this be achieved in Casper? This is straightforward in EVM and Solana, yet the equivalent approach in Casper is not documented.

User Story:

As a developer building on the Casper Network,
I want a clear explanation and documentation of how to perform static calls from contracts,
so that I can enable clients to read results from a contract without initiating a transaction when no state changes are involved, similar to the straightforward approaches in EVM and Solana.

Acceptance Criteria:

  • The documentation provides a dedicated section on performing static calls in Casper.
  • A clear explanation is given on how to execute complex calculations within a contract and make the results accessible to clients without requiring a transaction.
  • Practical examples and code snippets demonstrate the implementation of static calls in Casper.
  • Comparisons with similar processes in EVM and Solana are included to help developers transitioning from those platforms understand the differences and adapt.
  • Best practices for designing contracts with efficient static calls are outlined.
  • Developers can implement and use static calls effectively after referencing the documentation without requiring additional clarification or support.
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