Skip to content

refactor(log)!: remove dependency on tendermint#79

Open
hazzik wants to merge 12 commits intomainfrom
refactor-logger
Open

refactor(log)!: remove dependency on tendermint#79
hazzik wants to merge 12 commits intomainfrom
refactor-logger

Conversation

@hazzik
Copy link
Copy Markdown

@hazzik hazzik commented Feb 18, 2025

Description

This refactor removes the outdated Tendermint dependency, which was previously used only for logging. The changes maintain source compatibility with the previous implementation.

The Setup function now accepts not only the tmlog.Logger interface but also any interface or struct with a compatible structure.

A direct copy of tmlog.Logger was not possible because it is self-referential, and Go does not support covariant return types. To address this, I used generics and split the interfaces to maintain compile-time type safety.

Todos

  • Unit tests
  • Manual tests
  • Documentation
  • Connect epics/issues
  • Tag type of change

Steps to Test

Expected Behaviour

Other Notes

@hazzik hazzik changed the title refactor(logger): remove dependency on tendermint refactor(log): remove dependency on tendermint Feb 18, 2025
@hazzik hazzik changed the title refactor(log): remove dependency on tendermint refactor(log)!: remove dependency on tendermint Feb 18, 2025
@hazzik hazzik requested a review from cgorenflo February 21, 2025 13:38
@hazzik hazzik mentioned this pull request Mar 25, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant