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

[enhancement] store balances at block heights - implementation #81

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

joel-u410
Copy link
Contributor

@joel-u410 joel-u410 commented Jul 19, 2024

Pushing this as draft, in order to show my proposed changes here. This cannot be merged until the corresponding feature is merged in the SDK: anoma/namada#3530. After that's done, I'll come back here and update this to use the upstream SDK and not my fork.

This implements #77.

Example of the balance_changes table:
image

And corresponding balances view (which maintains the previous behavior of the balances table):
image

After a transaction occurs which updates the balance (note the id changes in the returned row in the balances view to reflect which balance is now the latest one):
image

@joel-u410
Copy link
Contributor Author

Good news -- anoma/namada#3530 was merged, so I suppose after the next namada SDK release, this can be updated / rebased and will no longer require a forked version.

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

Successfully merging this pull request may close these issues.

1 participant