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

Added cis event reinitialization job #167

Merged
35 commits merged into from
Jan 15, 2024
Merged

Added cis event reinitialization job #167

35 commits merged into from
Jan 15, 2024

Conversation

ghost
Copy link

@ghost ghost commented Jan 8, 2024

Purpose

This is the third PR out of four which adds CIS2 token events to the CCD scan.

1. Add to existing flow new token events #161
2. Migrate all token logic to contract flow, such that token events can be enriched with deserialised messages. #166
3. Create a catch-up job which enrich storage with events and fix data corruption on total token supply
4. Add frontend which visualise tokens

Feature continues work on PR #73

Changes

  • Add a job which start by truncate tables graphql_account_tokens, graphql_token_events and graphql_tokens. Reinitialization is needed both because
    • Mint events wasn’t correctly updating account token balances. This was fixed in PR Fix token supply on mint #160
    • Adding all Cis events to table graphql_token_events

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

@ghost ghost requested a review from shjortConcordium January 9, 2024 13:52
Copy link
Contributor

@shjortConcordium shjortConcordium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@ghost ghost mentioned this pull request Jan 11, 2024
5 tasks
Base automatically changed from migrate-to-contract-flow to main January 15, 2024 12:38
@ghost ghost merged commit 00cbb83 into main Jan 15, 2024
1 check passed
@ghost ghost deleted the cis-reinitialization-job branch January 15, 2024 12:48
This pull request was closed.
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.

2 participants