Page MenuHomePhabricator

[Cashtab] Remove bignumber.js library
ClosedPublic

Authored by bytesofman on Jan 3 2024, 22:45.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC35395058fb3b: [Cashtab] Remove bignumber.js library
Summary

The slpMdm library uses bignumber.js, and makes it available. No need for Cashtab to have bignumber.js installed separately, and sometimes use both.

Ultimately would like to deprecate bignumber.js altogether, but for now it is still worth keeping slpMdm as we do not have a better library for making to-spec slp v1 txs.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien added inline comments.
cashtab/src/components/Airdrop/Airdrop.js
4 ↗(On Diff #43858)

Can't you just import BN ? even better: import BN from 'slpMdm' as BigNumber so you don't have to rename everything

151 ↗(On Diff #43858)

Macro bnsmile:

bytesofman added inline comments.
cashtab/src/components/Airdrop/Airdrop.js
4 ↗(On Diff #43858)

image.png (500×500 px, 304 KB)

bytesofman marked an inline comment as done.

cleaner imports and naming

back out unrelated import ordering change

This revision is now accepted and ready to land.Jan 4 2024, 21:17
This revision was automatically updated to reflect the committed changes.