diff --git a/web/cashtab/.editorconfig b/web/cashtab/.editorconfig deleted file mode 100644 --- a/web/cashtab/.editorconfig +++ /dev/null @@ -1,19 +0,0 @@ -# http://editorconfig.org -root = true -[*] -charset = utf-8 -end_of_line = lf -indent_size = 2 -indent_style = space -insert_final_newline = true -max_line_length = 100 -trim_trailing_whitespace = true -[*.md] -max_line_length = 0 -trim_trailing_whitespace = false -[{Makefile,**.mk}] -# Use tabs for indentation (Makefiles require tabs) -indent_style = tab -[*.scss] -indent_size = 2 -indent_style = space \ No newline at end of file diff --git a/web/cashtab/.prettierrc b/web/cashtab/.prettierrc --- a/web/cashtab/.prettierrc +++ b/web/cashtab/.prettierrc @@ -1,7 +1,7 @@ -{ - “printWidth”: 100, - “trailingComma”: “all”, - “tabWidth”: 2, - “semi”: true, - “singleQuote”: true -} \ No newline at end of file +{ + "printWidth": 100, + "trailingComma": "all", + "tabWidth": 2, + "semi": true, + "singleQuote": true +} diff --git a/web/cashtab/CHANGELOG.md b/web/cashtab/CHANGELOG.md deleted file mode 100644 --- a/web/cashtab/CHANGELOG.md +++ /dev/null @@ -1,158 +0,0 @@ -# Changelog - Cashtab - -- [#106](https://github.com/josephroyking/cashtab/pull/106) Add delete wallet feature -- [#105](https://github.com/josephroyking/cashtab/pull/105) Hook out of render method - -## 0.1.8 Tues Nov 17 2020 -- [#102](https://github.com/josephroyking/cashtab/pull/102) Implementing multi-wallet support -- [#103](https://github.com/josephroyking/cashtab/pull/103) Style improvements -- [#101](https://github.com/josephroyking/cashtab/pull/101) Moving websocket functionality to common `Ticker.js` object to disable for ABC chain -- [#99](https://github.com/josephroyking/cashtab/pull/99) Moving token icons URL to common `Ticker.js` object -- [#96](https://github.com/josephroyking/cashtab/pull/93) Moving price API to common `Ticker.js` object -- [#94](https://github.com/josephroyking/cashtab/pull/93) Match bch-js function in slpdebug -- [#93](https://github.com/josephroyking/cashtab/pull/93) Disable import wallet on api error, input css fixes, better error msgs -- [#90](https://github.com/josephroyking/cashtab/pull/89) Only hydrate utxos when utxo set has changed -- [#89](https://github.com/josephroyking/cashtab/pull/89) Implement indexedDb with localforage -- [#85](https://github.com/josephroyking/cashtab/pull/85) Load Send.js and SendToken.js with QR scanner open if mobile device with scanner support -- [#83](https://github.com/josephroyking/cashtab/pull/83) Send conventional received tx notification when websocket is disconnected -- [#79](https://github.com/josephroyking/cashtab/pull/79) QR code improvements per [Issue #75](https://github.com/josephroyking/cashtab/issues/75), ws debug -- [#77](https://github.com/josephroyking/cashtab/pull/77) Add tx history to wallet state, resolving @PierreK report from [Issue #75](https://github.com/josephroyking/cashtab/issues/75) -- [#76](https://github.com/josephroyking/cashtab/pull/76) Removing artifacts from Mint and organizing components in Common -- [#74](https://github.com/josephroyking/cashtab/pull/74) Improved QR code scanning -- [#73](https://github.com/josephroyking/cashtab/pull/73) Update websocket subscription when user changes wallet + add step to send BCH input to prevent default tick of 1 -- [#71](https://github.com/josephroyking/cashtab/pull/71) Patch for ticker editability in sending SLP tokens - -## 0.1.7 Tues Nov 12 2020 -- [#70](https://github.com/josephroyking/cashtab/pull/70) Support for ticker updates -- [#69](https://github.com/josephroyking/cashtab/pull/69) SLP warning for fork -- [#68](https://github.com/josephroyking/cashtab/pull/68) Support USD input for sending BCH -- [#67](https://github.com/josephroyking/cashtab/pull/67) Validation for BCH and SLP send amounts in Send.js and SendToken.js -- [#66](https://github.com/josephroyking/cashtab/pull/66) Modified unpkg script to prevent burning SLP outputs in change calculation -- [#65](https://github.com/josephroyking/cashtab/pull/65) Switch API method from chunked `tokenUtxoDetails` to `hydrateUtxos` -- [#64](https://github.com/josephroyking/cashtab/pull/64) Do not display fiat amount if NaN -- [#63](https://github.com/josephroyking/cashtab/pull/63) Basic fiat prices (USD only) -- [#62](https://github.com/josephroyking/cashtab/pull/62) Front-end websockets -- [#61](https://github.com/josephroyking/cashtab/pull/60/) Minimal browser extension -- [#60](https://github.com/josephroyking/cashtab/pull/60/) Custom CashSpin to `Configure.js` -- [#59](https://github.com/josephroyking/cashtab/pull/59/) SLP send token decimal validation -- [#58](https://github.com/josephroyking/cashtab/pull/58/) Modal to remind wallet backup -- [#57](https://github.com/josephroyking/cashtab/pull/57/) Debug logging to check utxo filtering -- [#56](https://github.com/josephroyking/cashtab/pull/56/) More exclusion checks for `nonSlpUtxos` -- [#55](https://github.com/josephroyking/cashtab/pull/55/) Notification for incoming SLP transactions -- [#54](https://github.com/josephroyking/cashtab/pull/54/) SLP test coverage -- [#53](https://github.com/josephroyking/cashtab/pull/53/) Remove legacy class names -- [#52](https://github.com/josephroyking/cashtab/pull/52/) Improve utxo selection in SLP send, custom spinners, spinner timing based on app refresh and not arbitrary -- [#49](https://github.com/josephroyking/cashtab/pull/49/) Bug fixes and handle rate limit utxo handling -- [#47](https://github.com/josephroyking/cashtab/pull/47/) Correct bug in identifying mint baton and calculating token balance -- [#46](https://github.com/josephroyking/cashtab/pull/46/) Correct bug in Accounts stored in wallet object -- [#45](https://github.com/josephroyking/cashtab/pull/45/) Simplifying local storage -- [#44](https://github.com/josephroyking/cashtab/pull/44/) Increase utxo refresh wait time in `Send.js` -- [#43](https://github.com/josephroyking/cashtab/pull/43/) Implementing SLP support with bch-js -- [#42](https://github.com/josephroyking/cashtab/pull/42/) Add mnemonic validation to `OnBoarding.js` -- [#40](https://github.com/josephroyking/cashtab/pull/40/) Correct issue #38, prevent duplicated txs -- [#39](https://github.com/josephroyking/cashtab/pull/39/) More user-friendly error msg for mempool issue -- [#37](https://github.com/josephroyking/cashtab/pull/37/) Improved workflow for importing mnemonics -- [#35](https://github.com/josephroyking/cashtab/pull/35/) Mobile style updates resolving issue #32 -- [#34](https://github.com/josephroyking/cashtab/pull/34/) Removing extension build scripts and dev logging -- [#33](https://github.com/josephroyking/cashtab/pull/33/) Fee calculation fix for sending max BCH, other bug fixes - -## 0.1.6 Tues Oct 27 2020 -- [#32](https://github.com/josephroyking/cashtab/pull/32/) Increase API frequency -- [#31](https://github.com/josephroyking/cashtab/pull/31/) Front-end redesign to traditional mobile wallet app UI - -## 0.1.5 Sat Oct 24 2020 -- [#30](https://github.com/josephroyking/cashtab/pull/30/) Test coverage to 15%, better function division, additional tests **(release candidate)** -- [#28](https://github.com/josephroyking/cashtab/pull/28/) Refactor(App/SLP): Remove SLP token visualization -- [#27](https://github.com/josephroyking/cashtab/pull/27/) Chores(test/readme): Add coverage command and update readme -- [#26](https://github.com/josephroyking/cashtab/pull/26/) Test/qrcode -- [#25](https://github.com/josephroyking/cashtab/pull/25/) tests(App): add tests for Icons, Common components and Configure -- [#24](https://github.com/josephroyking/cashtab/pull/24/) Adjustments to SLP token balanc calculations -- [#23](https://github.com/josephroyking/cashtab/pull/23/) Adjust calculation for max send BCH -- [#22](https://github.com/josephroyking/cashtab/pull/22/) Migration to bch-js - - -## 0.1.4 Tues Oct 13 2020 -- [#19](https://github.com/josephroyking/cashtab/pull/19/) UI cleanup: will not show menu items without a wallet - -## 0.1.3 Fri Oct 9 2020 - -- [#15](https://github.com/josephroyking/cashtab/pull/15/) Preliminary styling + ABC branding - -## 0.1.2 Thurs Oct 8 2020 - -- [#13](https://github.com/josephroyking/cashtab/pull/13/) Remove Links and Audit menu items -- [#12](https://github.com/josephroyking/cashtab/pull/12/) Removing Mint references -- [#11](https://github.com/josephroyking/cashtab/pull/11/) Remove ability to add/change custom API - -## 0.1.1 Oct 7, 2020 - -- [#1](https://github.com/josephroyking/cashtab/pull/1/) Modify manifest to build unpacked Chrome extension to `/build` folder, remove prelim Bitcoin.com-specific features, remove SatoshiDice - -# Legacy Mint changes - -## Oct 5, 2020 - -- Add new feature: Satoshi Dice -- Add Country Ban for select features -- Remove Badger and Bitcoin.com wallet imports - -## Oct 1, 2020 - -- Correct error handling for user attempt to send SLP to BCH address -- Correct error handling for user attempt to send SLP to invalid address -- Introduce semantic versioning at 0.1.1 - -## Apr 29, 2020 - -- Add icons with token creation - -## Fev 18, 2020 - -- [#61:](https://github.com/Bitcoin-com/mint/pull/61) Production Release -- [#62:](https://github.com/Bitcoin-com/mint/pull/62) Fix/delay lock on dividends page -- [#60:](https://github.com/Bitcoin-com/mint/pull/60) [feat] fixed_supply_tokens -- [#59:](https://github.com/Bitcoin-com/mint/pull/59) Fix/side bar scroll and audit menu item -- [#57:](https://github.com/Bitcoin-com/mint/pull/57) [hotfix] Default error message when slp-sdk throws an unhandled exception -- [#56:](https://github.com/Bitcoin-com/mint/pull/56) [fix] Fix dividends scroll -- [#55:](https://github.com/Bitcoin-com/mint/pull/55) Fix/token burn adjustments -- [#54:](https://github.com/Bitcoin-com/mint/pull/54) Feat/dividends page -- [#53:](https://github.com/Bitcoin-com/mint/pull/53) [fix] document hash code review adjustments -- [#52:](https://github.com/Bitcoin-com/mint/pull/52) [fix] Better tooltip of how users are eligible for dividends -- [#51:](https://github.com/Bitcoin-com/mint/pull/51) [fix] Additional fix to the fee calculation of dividends payment -- [#50:](https://github.com/Bitcoin-com/mint/pull/50) [feat] document hash on file upload and info linking to notary -- [#49:](https://github.com/Bitcoin-com/mint/pull/49) [feat] burn with multiple funding addresses -- [#48:](https://github.com/Bitcoin-com/mint/pull/48) [fix] sidebar collapse -- [#47:](https://github.com/Bitcoin-com/mint/pull/47) Fix/replace transaction history slpdb queries and Dividends History -- [#46:](https://github.com/Bitcoin-com/mint/pull/46) [feat] OP_RETURN added to dividend payments -- [#45:](https://github.com/Bitcoin-com/mint/pull/45) [fix] Create token should not appear to users without a wallet - -## Jan 28, 2020 - -- [#43:](https://github.com/Bitcoin-com/mint/pull/43) Production release -- [#42:](https://github.com/Bitcoin-com/mint/pull/42) [fix] Get wallet from localstorage should have a getWalletDetails call -- [#41:](https://github.com/Bitcoin-com/mint/pull/41) [feat] Addresses removal for paying dividends -- [#40:](https://github.com/Bitcoin-com/mint/pull/40) [feat] Add Faucet Link and instructions for adding token icons -- [#39:](https://github.com/Bitcoin-com/mint/pull/39) Fix screen flickering on update -- [#38:](https://github.com/Bitcoin-com/mint/pull/38) Fix slow updates issue caused by multiples calls of getWalletDetails - -## Jan 21, 2020 - -- [#37:](https://github.com/Bitcoin-com/mint/pull/37) Production release -- Service workers for caching API calls -- Bug fixes - -## Jan 15, 2020 - -- [#27:](https://github.com/Bitcoin-com/mint/pull/27) First production release to https://mint.bitcoin.com -- Pay BCH dividends to holders of SLP tokens in user's portfolio -- Send and receive BCH -- Transaction history for BCH and SLP transactions -- Token icons matched to [Badger Mobile wallet](https://github.com/bitcoin-com/badger-mobile) icons for tokens without set icons - -## Sept 2019 - -- 3rd place in the [Simple Ledger Virtual Hackathon (SLPVH) 2019](https://simpleledger.info/slpvh/) as Pitico.cash -- Create SLP tokens -- Mint SLP tokens -- Send and receive SLP tokens -- Receive BCH diff --git a/web/extract-cashtab.sh b/web/extract-cashtab.sh deleted file mode 100644 --- a/web/extract-cashtab.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -# Note: this script has not been tested, needs to be adapted to match final deployment plan - -export LC_ALL=C -set -euo pipefail - -if [ -e cashtab ]; then - echo cashtab already exist in the current directory. - exit 1 -fi - -WORKDIR=$(mktemp -d) -function cleanup { - echo Deleting workdir ${WORKDIR} - rm -rf "${WORKDIR}" -} -trap cleanup EXIT - -echo Using workdir ${WORKDIR} - -# Find the source repository's location. -pushd "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" -REPO_DIR=$(git rev-parse --show-toplevel) -popd - -git clone "file://${REPO_DIR}" "${WORKDIR}" -b master - -pushd "${WORKDIR}" -# Adapted from extract-secp256k1.sh -# shellcheck disable=SC1004 -FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch \ - --index-filter 'git ls-files -s \ - | sed "s%web/cashtab/%%" \ - | git update-index --index-info; - git rm -rq --cached --ignore-unmatch web/cashtab' \ - --prune-empty -- --all -popd - -# filter-branch is full of gotcha and can leave the repo is a strange state, -# so we make a fresh new one. -git clone "file://${WORKDIR}" cashtab - -pushd cashtab - -# Not sure where this will live; commenting out for now -# git remote add github https://github.com/Bitcoin-ABC/cashtab.git -# git pull github master --rebase -# git gc --prune=now -