[Cashtab][Alias] Update Send.js to use api endpoint in place of getAddressFromAlias
Summary:
T3216
Update the alias lookup in send.js component's address input field to use the alias api endpoint
Test Plan:
- npm test
- change the alias flag in Ticker.js to true
- npm start
- navigate to the Send page
- input a pre-registered alias in the address input field and ensure it parses to the right address
- ensure the hyperlink underneath links correctly to the explorer page for this address
- send an XEC amount to this alias and ensure successful broadcast, and sanity check tx details in explorer
- input a valid eCash address and ensure it is accepted
- input a valid prefix-less eCash address and ensure it is accepted
- input an invalid eCash address and invalid alias and ensure it triggers validation error
- input an unregistered alias and ensure the eCash Alias does not exist or yet to receive 1 confirmation validation error is displayed
Reviewers: bytesofman, #bitcoin_abc, Fabien
Reviewed By: bytesofman, #bitcoin_abc, Fabien
Subscribers: Fabien
Differential Revision: https://reviews.bitcoinabc.org/D14212