[alias-server] Chronik functions take chronik as a param to support future mocking
Summary:
T3060
Depends on D13592
This diff refactors chronik calling functions to accept chronik as a param.
Will introduce a mock chronik object for unit tests of chronik functions.
Test Plan:
npm test
npm run mocks and mocks are generated
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Subscribers: Fabien
Differential Revision: https://reviews.bitcoinabc.org/D13599