Skip to content

Commit

Permalink
Add deprecation notice to service.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Dec 5, 2023
1 parent 9d4133d commit 3087274
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ type Service interface {
// EpochFromStateIDProvider is the interface for providing epochs from state IDs.
type EpochFromStateIDProvider interface {
// EpochFromStateID converts a state ID to its epoch.
//
// Deprecated: will be removed in a future release.
EpochFromStateID(ctx context.Context, stateID string) (phase0.Epoch, error)
}

// SlotFromStateIDProvider is the interface for providing slots from state IDs.
type SlotFromStateIDProvider interface {
// SlotFromStateID converts a state ID to its slot.
//
// Deprecated: will be removed in a future release.
SlotFromStateID(ctx context.Context, stateID string) (phase0.Slot, error)
}

Expand Down

0 comments on commit 3087274

Please sign in to comment.