From 29a7833a9fc256869f213c42292dea7462c457de Mon Sep 17 00:00:00 2001 From: Mayank Date: Sat, 18 Apr 2020 11:36:29 +0530 Subject: [PATCH] bitcoin wallet structuring complete --- package.json | 3 +- src/components/BitcoinWallet.vue | 162 ++++------------ src/helpers/units.js | 46 +++++ src/store/index.js | 7 +- src/store/modules/bitcoin.js | 309 +++++++++++++++++++++++++++++++ src/store/modules/lightning.js | 0 src/store/modules/onboarding.js | 0 src/views/Dashboard.vue | 14 +- yarn.lock | 5 + 9 files changed, 414 insertions(+), 132 deletions(-) create mode 100644 src/helpers/units.js create mode 100644 src/store/modules/bitcoin.js create mode 100644 src/store/modules/lightning.js create mode 100644 src/store/modules/onboarding.js diff --git a/package.json b/package.json index d1803e8..3c8631c 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dependencies": { "animate.css": "^3.7.2", "axios": "^0.19.2", + "bignumber.js": "^9.0.0", "bootstrap-vue": "^2.11.0", "core-js": "^3.4.4", "countup.js": "^2.0.4", @@ -59,4 +60,4 @@ "> 1%", "last 2 versions" ] -} \ No newline at end of file +} diff --git a/src/components/BitcoinWallet.vue b/src/components/BitcoinWallet.vue index a9ce1f0..2789414 100644 --- a/src/components/BitcoinWallet.vue +++ b/src/components/BitcoinWallet.vue @@ -8,7 +8,7 @@ suffix: '', prefix: '' }" - :sub-title="walletUnit" + sub-title="Sats" icon="icon-app-bitcoin.svg" :loading="state.loading" > @@ -39,7 +39,7 @@ @@ -216,13 +216,13 @@
- {{ state.withdraw.fees.fast.total }} + {{ fees.fast.total }}  Sats
Mining fee
- {{ walletBalance - state.withdraw.amount - state.withdraw.fees.fast.total }} + {{ walletBalance - state.withdraw.amount - fees.fast.total }}  Sats
Remaining balance @@ -279,12 +279,12 @@
- + - +
@@ -402,6 +402,7 @@