HomePhabricator

[alias-server] [p9] Refactor functions to accept constants as input params

Description

[alias-server] [p9] Refactor functions to accept constants as input params

Summary:
T2922

Depends on D13084

Since there are no secrets in config.js, start including it in the repo. Refactor functions in alias.js to accept alias constants as input params. This will allow unit tests to be created and preserved for test registration addresses and fee structures (and the production registration address and fee structure).

Test Plan: npm test and all pass

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

Differential Revision: https://reviews.bitcoinabc.org/D13111

Details

Provenance
bytesofmanAuthored on Feb 8 2023, 14:52
bytesofmanPushed on Feb 28 2023, 22:45
Reviewer
Restricted Project
Differential Revision
D13111: [alias-server] [p9] Refactor functions to accept constants as input params
Parents
rABC9f91403cda3f: [alias-server] [p8] Complete getAliases function
Branches
Unknown
Tags
Unknown