HomePhabricator

[Cashtab] Convert Token, validation, and other deps to ts

Description

[Cashtab] Convert Token, validation, and other deps to ts

Summary:
Convert Token screen to ts as prep for refactor to improve extensability to other token types.

Implement ts in deps important to this conversion. The Token screen is large and has lots of dependencies that needed to be typed.

  • validation
  • Inputs
  • tweaks to useWallet and Alias
  • token creation blacklist

It would be possible to split some off into separate diffs, but I think it's best to continue the "rip the bandaid off" approach of ts implementation.

Behavior is confirmed by tests. . This diff is not introducing any new functionality, only implementing typescript and patching minor type-related issues as they are uncovered.

Test Plan: npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on Sat, Nov 16, 15:25
bytesofmanPushed on Thu, Nov 21, 05:08
Reviewer
Restricted Project
Differential Revision
D17154: [Cashtab] Convert Token, validation, and other deps to ts
Parents
rABC129c036f5ae1: [token-server] Fix ts lint and add to arc lint
Branches
Unknown
Tags
Unknown