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

feat: adapt to Indexer's new block ID #749

Merged
merged 15 commits into from
Dec 11, 2024
Merged

Conversation

rompemoldes
Copy link
Collaborator

@rompemoldes rompemoldes commented Dec 4, 2024

Planned change on the Indexer:

Normalize block numbers (still as strings) to 9 characters.

Example: From "1234567" to "001234567".

Changes introduced on cTypeHub to adapt

The block attribute from the cType Models changes from STRING to BIGINT.
On this way, both types of strings can be process to the same number.

Necessary sequelize migrations were written as well.

With BigInts cTypeHub would have exactly the same maximum block number as the blockchain.

@rompemoldes rompemoldes requested a review from arty-name December 4, 2024 20:37
@rompemoldes rompemoldes force-pushed the xw/adapt_to_new_block_ID branch from 4dedc6a to bceb06f Compare December 6, 2024 17:11
@rompemoldes rompemoldes force-pushed the xw/adapt_to_new_block_ID branch from e8fa104 to f7d17c0 Compare December 6, 2024 17:33
@rompemoldes rompemoldes force-pushed the xw/adapt_to_new_block_ID branch from a18b062 to d27ea42 Compare December 6, 2024 17:39
commit e26c54b
Author: Andrés <[email protected]>
Date:   Fri Dec 6 11:30:37 2024 +0100

    feat: simplify sequelize usage (#747)

    Rely on `dotenv` to load the environment variable `DATABASE_URI` to make it available for the sequelize configuration.
    On this way, there is no need to export the variable value manually.

commit fc68a24
Author: Andrés <[email protected]>
Date:   Fri Dec 6 11:25:33 2024 +0100

    chore: upgrade to node v22 (#748)
@rompemoldes rompemoldes force-pushed the xw/adapt_to_new_block_ID branch from 9fbaaba to c3ed123 Compare December 11, 2024 13:28
@rompemoldes rompemoldes force-pushed the xw/adapt_to_new_block_ID branch from c3ed123 to 2697e08 Compare December 11, 2024 13:39
@rompemoldes rompemoldes merged commit fa7b63f into main Dec 11, 2024
1 check passed
@rompemoldes rompemoldes deleted the xw/adapt_to_new_block_ID branch December 11, 2024 13:48
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