This PR upgrades to the iota_sdk 2.0 version and refactors a lot of the architecture of chronicle in keeping with that.
Implementation Details
Some important changes that have occurred:
Most custom model types have been removed in favor of storing the serialized bytes of Output and SignedBlock. In order to index these collections, fields have been added at the top level for the specific indexed fields only.
Milestones have, more-or-less, been wholesale replaced by Slots. Instead of a MilestoneCollection there is a CommittedSlotCollection, which is used to track the progress of syncing.
Related Issues
1315
Notes to Reviewer
As a reviewer, please pay particular attention to the following areas when reviewing this PR and tick the above boxes after you have completed the steps.
Config Changes
[ ] Ensure proper order in which CLI and config arguments are applied.
[ ] Ensure that config changes work with individual build features by running cargo ci-check-features.
API Changes
[ ] Test the API endpoints which were added/changed.
[ ] Ensure that the API response times scale with database size appropriately.
[ ] Review the API documentation changes and confirm that it matches the actual functionality.
[ ] Check for breaking changes in the API and matching (conventional) commit message prefix.
Test cases
[ ] Review and run tests that were added/changed.
[ ] Suggest places that may benefit from test cases.
INX Changes
[x] Run chronicle using an INX connection.
Database Changes
[ ] Review database queries for correctness/conciseness.
[ ] Ensure queries are supported by indexes if needed.
[ ] Check for breaking changes in the data model and matching (conventional) commit message prefix.
Description
This PR upgrades to the
iota_sdk
2.0 version and refactors a lot of the architecture ofchronicle
in keeping with that.Implementation Details
Some important changes that have occurred:
Output
andSignedBlock
. In order to index these collections, fields have been added at the top level for the specific indexed fields only.MilestoneCollection
there is aCommittedSlotCollection
, which is used to track the progress of syncing.Related Issues
1315
Notes to Reviewer
As a reviewer, please pay particular attention to the following areas when reviewing this PR and tick the above boxes after you have completed the steps.
Config Changes
cargo ci-check-features
.API Changes
Test cases
INX Changes
Database Changes