Chore: Sync Fairmint OCP, Remove Historical Transactions, and Refactor Migration Script #103
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.
Summary
This update refactors the database schema by removing the centralized
HistoricalTransactionmodel in favor of storing thetx_hashdirectly on individual transaction documents. It also introduces support forStockCancellationtransactions, streamlines the migration script for better automation, and includes a minor dependency downgrade to fix installation issues.Changes
HistoricalTransactionmodel by storingtx_hashdirectly on individual transaction documents for a simpler, more efficient schema.StockCancellationtransactions, including a new database model, API endpoint, and creation operations.migrate.jsscript for better automation by removing interactive prompts and using a targetedISSUERS_TO_MIGRATElist.ts-jestto^29.4.0to resolve package installation errors.