[Cashtab][Alias] Add alias status check to wallet contacts
Summary:
T3216
Following the removal of caching-driven registration status checks in D14318, this diff implements this check using the alias-server /alias endpoint.
This API call is only made if the contact address input is parsed to be a valid alias format.
Test Plan:
- Set alias flag to true in Ticker.js
- npm start
- Navigate to Settings and click on Add Contact. Use an invalid alias input for eCash Address and ensure the Invalid eCash address or alias error is displayed
- Use a valid and registered alias input and ensure it is accepted and saved as a new contact
- Click on the send icon for the valid and registered alias contact from above and ensure successful XEC send tx to this alias
- Use a valid but unregistered alias and ensure the Invalid eCash address or alias error is displayed
- Regression test with a valid eCash address and a valid prefix-less eCash address as input and ensure both passes validation
- Regression test with an invalid eCash/alias address and ensure the Invalid eCash address or alias error is displayed
Reviewers: bytesofman, #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Subscribers: Fabien
Differential Revision: https://reviews.bitcoinabc.org/D14324