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

State Change Indexer: ContractId Cache #124

Open
gouthamp-stellar opened this issue Feb 19, 2025 · 0 comments
Open

State Change Indexer: ContractId Cache #124

gouthamp-stellar opened this issue Feb 19, 2025 · 0 comments
Assignees

Comments

@gouthamp-stellar
Copy link
Contributor

gouthamp-stellar commented Feb 19, 2025

  • Implement simulateFunction in rpc_service.go.
  • Create a Contract ID Cache with the following methods:
    • Name(contractID): Retrieves the contract name.
    • Symbol(contractID): Retrieves the contract symbol.
    • Set(contractID, name, symbol): Stores the contract name and symbol in the cache.
  • Caching Logic:
    • Name and Symbol first check the contractidcache table for existing values.
    • If no value exists or the entry has expired (based on ts), they call simulateFunction to fetch the data and update the cache.

design: https://docs.google.com/document/d/10Z2Apl6gJYkJp0BXILWn5_vJL4MmZ0QZ4QrRqbW_EHw/edit?tab=t.0

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

2 participants