Draft
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new "AccountCounters" schema and a corresponding endpoint to fetch account activity counters.
- Added a new schema detailing various counter properties (transactions, activities, token counts, etc.).
- Created a new endpoint (/accounts/{accountId}/counters) to retrieve the account counters.
Files not reviewed (19)
- lib/ae_mdw/activities.ex: Language not supported
- lib/ae_mdw/db/contract.ex: Language not supported
- lib/ae_mdw/db/int_transfer.ex: Language not supported
- lib/ae_mdw/db/model.ex: Language not supported
- lib/ae_mdw/db/mutations/int_calls_mutation.ex: Language not supported
- lib/ae_mdw/db/mutations/name_claim_mutation.ex: Language not supported
- lib/ae_mdw/db/mutations/write_field_mutation.ex: Language not supported
- lib/ae_mdw/db/mutations/write_fields_mutation.ex: Language not supported
- lib/ae_mdw/db/sync/id_counter.ex: Language not supported
- lib/ae_mdw/fields.ex: Language not supported
- lib/ae_mdw/names.ex: Language not supported
- lib/ae_mdw/sync/async_tasks/update_tx_stats.ex: Language not supported
- lib/ae_mdw_web/controllers/activity_controller.ex: Language not supported
- lib/ae_mdw_web/router.ex: Language not supported
- priv/migrations/20250404152424_move_account_names_count_to_new_table.ex: Language not supported
- priv/migrations/20250420261832_add_account_counts.ex: Language not supported
- test/ae_mdw/db/contract_call_mutation_test.exs: Language not supported
- test/ae_mdw/db/mutations/write_fields_mutation_test.exs: Language not supported
- test/ae_mdw/db/update_account_name_counts_test.exs: Language not supported
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains a long migration that indexes various counters for the accounts in the system. It contains a long migration that counts all of the accounts that appear.
This PR adds the account counters for #2125