EspressoSystems / hotshot-query-service

Generic query service for HotShot applications
https://espressosystems.github.io/hotshot-query-service/
GNU General Public License v3.0
5 stars 1 forks source link

Remove `namespace_ids_for_offset` from `ExplorerHeader` #580

Closed Ayiga closed 3 months ago

Ayiga commented 3 months ago

Closes #579

This PR:

Removes the namespace_ids_for_offset method from the ExplorerHeader trait in favor of a namespace_id method on a new trait ExplorerTransaction.

This PR does not:

Add any consideration for representing the NamespaceId on the MockTransaction struct.

Key places to review:

src/explorer/traits.rs This is where the new trait is defined, and the previous method is removed.

src/testing/mocks.rs This is where the traits are implemented for testing