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

Add state events #22

Open
1 of 3 tasks
mezrin opened this issue Nov 8, 2017 · 0 comments
Open
1 of 3 tasks

Add state events #22

mezrin opened this issue Nov 8, 2017 · 0 comments

Comments

@mezrin
Copy link
Contributor

mezrin commented Nov 8, 2017

If we will try to create really fast API of a blockexplorer - we will face a problem: in order to read smth from the contract state - we have to call getter of the contract.
I.e. we have to launch Ethereum virtual machine and execute the contract.
It is not possible to cache such data in the blockexplorer.
A possible solution - save state in the events.
For example, when user transfer tokens - we save in the events not only addresses of sender&receiver and transferred amount, but also new balances of each of them.

  • Think about this
  • Estimate gas costs
  • If we agree with this solution - implement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant