Page MenuHomePhabricator

[apps and Cashtab] Implement monorepo chronik mock and deprecate repo-specific implementations
ClosedPublic

Authored by bytesofman on Sep 21 2023, 12:31.

Details

Summary

Mocked chronik client was created initially in alias-server to support testing there. Later it was ported to other repos that needed it.

Plan is to get it into chronik-client. For now, though, it should at least live in only one place, so that it isn't maintained many times in the same monorepo.

Implementing.

Test Plan

npm test in apps/ecash-herald, apps/alias-server, and cashtab

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien added a subscriber: Fabien.

I'm not sure it needs to live in chronik-client. Delivering a mock as part of a library is mostly consuming storage for no added value from the lib users point of view. Also chronik-client doesn't need the mock.

This revision is now accepted and ready to land.Sep 21 2023, 14:06