iotaledger / inx-chronicle

IOTA permanode implemented using the IOTA Node Extension (INX) interface.
Apache License 2.0
14 stars 13 forks source link

feat!: upgrade to `iota_sdk:2.0` #1297

Open DaughterOfMars opened 11 months ago

DaughterOfMars commented 11 months ago

Description

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:

  1. 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.
  2. 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

API Changes

Test cases

INX Changes

Database Changes