HomePhabricator

[ecash-wallet] Init ecash-wallet in monorepo

Description

[ecash-wallet] Init ecash-wallet in monorepo

Summary:
Now that we have type stability with chronik-client and sophisticated tx construction with ecash-lib, we can (and should) create an abstracted typed wallet class to make tx construction easier and more consistent for builders

Some requirements

  • Support XEC sends
  • Support token methods
  • Support agora
  • Support "chained" txs, i.e. token sends to more than max outputs, or XEC sends to outputs that would bump tx size above the broadcast limit
  • regtest integration
  • Should be able to drop this into Cashtab and pull out all of Cashtab's custom tx methods
  • HD wallet support
  • Construct from WIF

This diff just inits the repo and CI. Next diff will add send XEC method and get that tested with regtest integration. Then will add other methods.

Test Plan:
npm test

I am building this lib incrementally following a personal-use class I have been testing / dogfooding for the last couple of months.

So, any comments on structure, layout, questions about why some things are being initialized this way --- also important.

Reviewers: #bitcoin_abc, tobias_ruck

Reviewed By: #bitcoin_abc, tobias_ruck

Subscribers: tobias_ruck

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

Details

Provenance
bytesofmanAuthored on Mon, Mar 3, 23:42
bytesofmanPushed on Mon, Mar 10, 22:54
Reviewer
Restricted Project
Differential Revision
D17773: [ecash-wallet] Init ecash-wallet in monorepo
Parents
rABC45b81d2fa789: [avalanche] Remove useless timeout in the tx finalization test
Branches
Unknown
Tags
Unknown