From 5d1f3c143633ea5d9e66048e1b1f65183281895e Mon Sep 17 00:00:00 2001 From: Erik Marks <25517051+rekmarks@users.noreply.github.com> Date: Wed, 26 Feb 2020 09:34:46 -0800 Subject: [PATCH] Delete shapeshift functionality; retain state and display (#8118) * delete shapeshift functionality; retain state and display --- app/_locales/am/messages.json | 3 - app/_locales/ar/messages.json | 3 - app/_locales/bg/messages.json | 3 - app/_locales/bn/messages.json | 3 - app/_locales/ca/messages.json | 3 - app/_locales/cs/messages.json | 3 - app/_locales/da/messages.json | 3 - app/_locales/de/messages.json | 3 - app/_locales/el/messages.json | 3 - app/_locales/en/messages.json | 3 - app/_locales/es/messages.json | 3 - app/_locales/es_419/messages.json | 3 - app/_locales/et/messages.json | 3 - app/_locales/fa/messages.json | 3 - app/_locales/fi/messages.json | 3 - app/_locales/fil/messages.json | 3 - app/_locales/fr/messages.json | 3 - app/_locales/he/messages.json | 3 - app/_locales/hi/messages.json | 3 - app/_locales/hn/messages.json | 3 - app/_locales/hr/messages.json | 3 - app/_locales/ht/messages.json | 3 - app/_locales/hu/messages.json | 3 - app/_locales/id/messages.json | 3 - app/_locales/it/messages.json | 3 - app/_locales/ja/messages.json | 3 - app/_locales/kn/messages.json | 3 - app/_locales/ko/messages.json | 3 - app/_locales/lt/messages.json | 3 - app/_locales/lv/messages.json | 3 - app/_locales/ms/messages.json | 3 - app/_locales/nl/messages.json | 3 - app/_locales/no/messages.json | 3 - app/_locales/ph/messages.json | 3 - app/_locales/pl/messages.json | 3 - app/_locales/pt/messages.json | 3 - app/_locales/pt_BR/messages.json | 3 - app/_locales/pt_PT/messages.json | 3 - app/_locales/ro/messages.json | 3 - app/_locales/ru/messages.json | 3 - app/_locales/sk/messages.json | 3 - app/_locales/sl/messages.json | 3 - app/_locales/sr/messages.json | 3 - app/_locales/sv/messages.json | 3 - app/_locales/sw/messages.json | 3 - app/_locales/ta/messages.json | 3 - app/_locales/th/messages.json | 3 - app/_locales/tr/messages.json | 3 - app/_locales/uk/messages.json | 3 - app/_locales/vi/messages.json | 3 - app/_locales/zh_CN/messages.json | 3 - app/_locales/zh_TW/messages.json | 3 - app/scripts/metamask-controller.js | 5 - development/states/shapeshift.json | 345 ------------------ development/states/tx-list-items.json | 5 +- test/integration/lib/tx-list-items.js | 12 +- test/unit/ui/app/actions.spec.js | 25 -- test/unit/ui/app/reducers/app.spec.js | 101 ----- test/unit/ui/app/reducers/metamask.spec.js | 13 - .../tests/account-details-modal.test.js | 1 - .../shift-list-item.component.js | 19 +- ui/app/css/itcss/components/modal.scss | 63 +--- ui/app/ducks/app/app.js | 51 --- ui/app/ducks/metamask/metamask.js | 10 - ui/app/selectors/tests/transactions.test.js | 12 + ui/app/selectors/transactions.js | 9 +- ui/app/store/actions.js | 98 ----- 67 files changed, 24 insertions(+), 901 deletions(-) delete mode 100644 development/states/shapeshift.json diff --git a/app/_locales/am/messages.json b/app/_locales/am/messages.json index 8de236b7c..0f51683d7 100644 --- a/app/_locales/am/messages.json +++ b/app/_locales/am/messages.json @@ -847,9 +847,6 @@ "privateNetwork": { "message": "የግል አውታረ መረብ" }, - "qrCode": { - "message": "QR ኮድ ያሳዩ" - }, "queue": { "message": "ወረፋ" }, diff --git a/app/_locales/ar/messages.json b/app/_locales/ar/messages.json index fa6eb638a..0e7d4e8b6 100644 --- a/app/_locales/ar/messages.json +++ b/app/_locales/ar/messages.json @@ -843,9 +843,6 @@ "privateNetwork": { "message": "شبكة خاصة" }, - "qrCode": { - "message": "عرض رمز الاستجابة السريعة (QR)" - }, "queue": { "message": "اللائحة" }, diff --git a/app/_locales/bg/messages.json b/app/_locales/bg/messages.json index 9b58cce3d..e233776fb 100644 --- a/app/_locales/bg/messages.json +++ b/app/_locales/bg/messages.json @@ -846,9 +846,6 @@ "privateNetwork": { "message": "Частна мрежа" }, - "qrCode": { - "message": "Показване на QR кода" - }, "queue": { "message": "Опашка" }, diff --git a/app/_locales/bn/messages.json b/app/_locales/bn/messages.json index ebb3a7943..1ec436c23 100644 --- a/app/_locales/bn/messages.json +++ b/app/_locales/bn/messages.json @@ -850,9 +850,6 @@ "privateNetwork": { "message": "ব্যক্তিগত নেটওয়ার্ক" }, - "qrCode": { - "message": "QR কোড দেখান" - }, "queue": { "message": "অপেক্ষমাণ" }, diff --git a/app/_locales/ca/messages.json b/app/_locales/ca/messages.json index 38a1b7eb1..012ba29e6 100644 --- a/app/_locales/ca/messages.json +++ b/app/_locales/ca/messages.json @@ -831,9 +831,6 @@ "privateNetwork": { "message": "Xarxa privada" }, - "qrCode": { - "message": "Mostra el codi QR" - }, "queue": { "message": "Cua" }, diff --git a/app/_locales/cs/messages.json b/app/_locales/cs/messages.json index 1ffc1d2f6..b153e7439 100644 --- a/app/_locales/cs/messages.json +++ b/app/_locales/cs/messages.json @@ -350,9 +350,6 @@ "privateNetwork": { "message": "Soukromá síť" }, - "qrCode": { - "message": "Ukázat QR kód" - }, "readdToken": { "message": "Tento token můžete v budoucnu přidat zpět s „Přidat token“ v nastavení účtu." }, diff --git a/app/_locales/da/messages.json b/app/_locales/da/messages.json index 9adeedbf6..32a8a03a9 100644 --- a/app/_locales/da/messages.json +++ b/app/_locales/da/messages.json @@ -828,9 +828,6 @@ "privateNetwork": { "message": "Privat netværk" }, - "qrCode": { - "message": "Vis QR Kode" - }, "queue": { "message": "Kø" }, diff --git a/app/_locales/de/messages.json b/app/_locales/de/messages.json index b618df138..9ac312d26 100644 --- a/app/_locales/de/messages.json +++ b/app/_locales/de/messages.json @@ -816,9 +816,6 @@ "privateNetwork": { "message": "Privates Netzwerk" }, - "qrCode": { - "message": "QR Code anzeigen" - }, "queue": { "message": "Warteschlange" }, diff --git a/app/_locales/el/messages.json b/app/_locales/el/messages.json index cb9299c0a..a536bc57e 100644 --- a/app/_locales/el/messages.json +++ b/app/_locales/el/messages.json @@ -847,9 +847,6 @@ "privateNetwork": { "message": "Ιδιωτικό Δίκτυο" }, - "qrCode": { - "message": "Εμφάνιση κωδικού QR" - }, "queue": { "message": "Ουρά" }, diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index 7879bcc82..84e58b2b9 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -1041,9 +1041,6 @@ "proposedApprovalLimit": { "message": "Proposed Approval Limit" }, - "qrCode": { - "message": "Show QR Code" - }, "queue": { "message": "Queue" }, diff --git a/app/_locales/es/messages.json b/app/_locales/es/messages.json index 4fed0b1fb..3a156804d 100644 --- a/app/_locales/es/messages.json +++ b/app/_locales/es/messages.json @@ -678,9 +678,6 @@ "privateNetwork": { "message": "Red privada" }, - "qrCode": { - "message": "Mostrar codigo QR" - }, "queue": { "message": "Cola" }, diff --git a/app/_locales/es_419/messages.json b/app/_locales/es_419/messages.json index ac8d8569f..2ccae4fa6 100644 --- a/app/_locales/es_419/messages.json +++ b/app/_locales/es_419/messages.json @@ -835,9 +835,6 @@ "privateNetwork": { "message": "Red privada" }, - "qrCode": { - "message": "Mostrar el código QR" - }, "queue": { "message": "Cola" }, diff --git a/app/_locales/et/messages.json b/app/_locales/et/messages.json index 191563c2f..2213aaf17 100644 --- a/app/_locales/et/messages.json +++ b/app/_locales/et/messages.json @@ -840,9 +840,6 @@ "privateNetwork": { "message": "Privaatvõrk" }, - "qrCode": { - "message": "Kuva QR-kood" - }, "queue": { "message": "Järjekord" }, diff --git a/app/_locales/fa/messages.json b/app/_locales/fa/messages.json index f95adee30..774c66527 100644 --- a/app/_locales/fa/messages.json +++ b/app/_locales/fa/messages.json @@ -850,9 +850,6 @@ "privateNetwork": { "message": "شبکه شخصی" }, - "qrCode": { - "message": "نمایش کد QR" - }, "queue": { "message": "صف" }, diff --git a/app/_locales/fi/messages.json b/app/_locales/fi/messages.json index 31f1ff147..8bdbf85cd 100644 --- a/app/_locales/fi/messages.json +++ b/app/_locales/fi/messages.json @@ -847,9 +847,6 @@ "privateNetwork": { "message": "Yksityinen verkko" }, - "qrCode": { - "message": "Näytä QR-koodi" - }, "queue": { "message": "Jono" }, diff --git a/app/_locales/fil/messages.json b/app/_locales/fil/messages.json index 9311cdbdb..5cc4b20e7 100644 --- a/app/_locales/fil/messages.json +++ b/app/_locales/fil/messages.json @@ -774,9 +774,6 @@ "privateNetwork": { "message": "Pribadong Network" }, - "qrCode": { - "message": "Ipakita ang QR Code" - }, "queue": { "message": "I-queue" }, diff --git a/app/_locales/fr/messages.json b/app/_locales/fr/messages.json index 937d0e520..474dba122 100644 --- a/app/_locales/fr/messages.json +++ b/app/_locales/fr/messages.json @@ -829,9 +829,6 @@ "privateNetwork": { "message": "Réseau privé" }, - "qrCode": { - "message": "Afficher le QR Code" - }, "queue": { "message": "File d'attente" }, diff --git a/app/_locales/he/messages.json b/app/_locales/he/messages.json index bc906bafd..a1a77b72f 100644 --- a/app/_locales/he/messages.json +++ b/app/_locales/he/messages.json @@ -847,9 +847,6 @@ "privateNetwork": { "message": "רשת פרטית" }, - "qrCode": { - "message": "הצג קוד QR" - }, "queue": { "message": "תור" }, diff --git a/app/_locales/hi/messages.json b/app/_locales/hi/messages.json index d3a955013..c3f11e338 100644 --- a/app/_locales/hi/messages.json +++ b/app/_locales/hi/messages.json @@ -847,9 +847,6 @@ "privateNetwork": { "message": "निजी नेटवर्क" }, - "qrCode": { - "message": "QR Code दिखाएं " - }, "queue": { "message": "सूची" }, diff --git a/app/_locales/hn/messages.json b/app/_locales/hn/messages.json index 3ce391719..95a0908e3 100644 --- a/app/_locales/hn/messages.json +++ b/app/_locales/hn/messages.json @@ -327,9 +327,6 @@ "privateNetwork": { "message": "निजी नेटवर्क" }, - "qrCode": { - "message": "QR कोड दिखाएं" - }, "readdToken": { "message": "आप अपने खाता विकल्प मेनू में .टोकन जोड़ें. पर जाकर भविष्य में इस टोकन को वापस जोड़ सकते हैं।" }, diff --git a/app/_locales/hr/messages.json b/app/_locales/hr/messages.json index aa22658e4..dca42b95a 100644 --- a/app/_locales/hr/messages.json +++ b/app/_locales/hr/messages.json @@ -843,9 +843,6 @@ "privateNetwork": { "message": "Privatna mreža" }, - "qrCode": { - "message": "Prikaži QR kȏd" - }, "queue": { "message": "Red čekanja" }, diff --git a/app/_locales/ht/messages.json b/app/_locales/ht/messages.json index 8ae90a17d..d098dc04d 100644 --- a/app/_locales/ht/messages.json +++ b/app/_locales/ht/messages.json @@ -513,9 +513,6 @@ "privateNetwork": { "message": "Rezo Prive" }, - "qrCode": { - "message": "Montre QR Kòd" - }, "readdToken": { "message": "Ou ka ajoute token sa aprè sa ankò ou prale nan \"Ajoute token\" nan opsyon meni kont ou an." }, diff --git a/app/_locales/hu/messages.json b/app/_locales/hu/messages.json index 8d0c94228..8c93b99f4 100644 --- a/app/_locales/hu/messages.json +++ b/app/_locales/hu/messages.json @@ -843,9 +843,6 @@ "privateNetwork": { "message": "Magánhálózat" }, - "qrCode": { - "message": "QR kód megmutatása" - }, "queue": { "message": "Nyomtatólista" }, diff --git a/app/_locales/id/messages.json b/app/_locales/id/messages.json index d7281ab62..18d41394a 100644 --- a/app/_locales/id/messages.json +++ b/app/_locales/id/messages.json @@ -828,9 +828,6 @@ "privateNetwork": { "message": "Jaringan Privat" }, - "qrCode": { - "message": "Tampilkan Kode QR" - }, "queue": { "message": "Antrean" }, diff --git a/app/_locales/it/messages.json b/app/_locales/it/messages.json index e03c58d05..71db382e0 100644 --- a/app/_locales/it/messages.json +++ b/app/_locales/it/messages.json @@ -813,9 +813,6 @@ "privateNetwork": { "message": "Rete Privata" }, - "qrCode": { - "message": "Mostra Codice QR" - }, "queue": { "message": "Coda" }, diff --git a/app/_locales/ja/messages.json b/app/_locales/ja/messages.json index 2cb64059c..4a5d9ea5a 100644 --- a/app/_locales/ja/messages.json +++ b/app/_locales/ja/messages.json @@ -393,9 +393,6 @@ "privateNetwork": { "message": "プライベート・ネットワーク" }, - "qrCode": { - "message": "QRコードを表示" - }, "readdToken": { "message": "アカウントのオプションメニューから「トークンを追加」すれば、将来このトークンを追加し直すことができます。" }, diff --git a/app/_locales/kn/messages.json b/app/_locales/kn/messages.json index 81c134c0e..183e48e36 100644 --- a/app/_locales/kn/messages.json +++ b/app/_locales/kn/messages.json @@ -850,9 +850,6 @@ "privateNetwork": { "message": "ಖಾಸಗಿ ನೆಟ್ವರ್ಕ್" }, - "qrCode": { - "message": "QR ಕೋಡ್ ತೋರಿಸಿ" - }, "queue": { "message": "ಸರತಿ" }, diff --git a/app/_locales/ko/messages.json b/app/_locales/ko/messages.json index f2166ab36..7ec058940 100644 --- a/app/_locales/ko/messages.json +++ b/app/_locales/ko/messages.json @@ -841,9 +841,6 @@ "privateNetwork": { "message": "프라이빗 네트워크" }, - "qrCode": { - "message": "QR 코드 보기" - }, "queue": { "message": "큐" }, diff --git a/app/_locales/lt/messages.json b/app/_locales/lt/messages.json index d19b40b95..ff023cdc0 100644 --- a/app/_locales/lt/messages.json +++ b/app/_locales/lt/messages.json @@ -850,9 +850,6 @@ "privateNetwork": { "message": "Privatus tinklas" }, - "qrCode": { - "message": "Rodyti QR kodą" - }, "queue": { "message": "Eilė" }, diff --git a/app/_locales/lv/messages.json b/app/_locales/lv/messages.json index 71d06529b..f3ba3a0c2 100644 --- a/app/_locales/lv/messages.json +++ b/app/_locales/lv/messages.json @@ -846,9 +846,6 @@ "privateNetwork": { "message": "Privātais tīkls" }, - "qrCode": { - "message": "Rādīt QR kodu" - }, "queue": { "message": "Rinda" }, diff --git a/app/_locales/ms/messages.json b/app/_locales/ms/messages.json index f16184011..098355d47 100644 --- a/app/_locales/ms/messages.json +++ b/app/_locales/ms/messages.json @@ -821,9 +821,6 @@ "privateNetwork": { "message": "Rangkaian Persendirian" }, - "qrCode": { - "message": "Tunjuk Kod QR" - }, "queue": { "message": "Baris Gilir" }, diff --git a/app/_locales/nl/messages.json b/app/_locales/nl/messages.json index 6da9261cf..2a79b16b0 100644 --- a/app/_locales/nl/messages.json +++ b/app/_locales/nl/messages.json @@ -314,9 +314,6 @@ "privateNetwork": { "message": "Prive netwerk" }, - "qrCode": { - "message": "QR-code weergeven" - }, "readdToken": { "message": "U kunt dit token in de toekomst weer toevoegen door naar \"Token toevoegen\" te gaan in het menu met accountopties." }, diff --git a/app/_locales/no/messages.json b/app/_locales/no/messages.json index 84a4c2f18..3dbf64042 100644 --- a/app/_locales/no/messages.json +++ b/app/_locales/no/messages.json @@ -840,9 +840,6 @@ "privateNetwork": { "message": "Privat nettverk " }, - "qrCode": { - "message": "Vis QR-kode" - }, "queue": { "message": "Kø" }, diff --git a/app/_locales/ph/messages.json b/app/_locales/ph/messages.json index 85ba6639d..80bafd85e 100644 --- a/app/_locales/ph/messages.json +++ b/app/_locales/ph/messages.json @@ -225,9 +225,6 @@ "privateNetwork": { "message": "Pribadong Network" }, - "qrCode": { - "message": "Ipakita ang QR Code" - }, "readdToken": { "message": "Upang muling idagdag ang token na ito, pumunta sa “Magdagdag ng Token” sa options menu ng iyong account." }, diff --git a/app/_locales/pl/messages.json b/app/_locales/pl/messages.json index 9c037eddb..0961862d8 100644 --- a/app/_locales/pl/messages.json +++ b/app/_locales/pl/messages.json @@ -841,9 +841,6 @@ "privateNetwork": { "message": "Sieć prywatna" }, - "qrCode": { - "message": "Pokaż kod QR" - }, "queue": { "message": "Kolejka" }, diff --git a/app/_locales/pt/messages.json b/app/_locales/pt/messages.json index 189225fc4..6d988077b 100644 --- a/app/_locales/pt/messages.json +++ b/app/_locales/pt/messages.json @@ -324,9 +324,6 @@ "privateNetwork": { "message": "Rede Privada" }, - "qrCode": { - "message": "Mostrar Código QR" - }, "readdToken": { "message": "Pode adicionar este token de novo clicando na opção “Adicionar token” no menu de opções da sua conta." }, diff --git a/app/_locales/pt_BR/messages.json b/app/_locales/pt_BR/messages.json index 367d52564..702be92b4 100644 --- a/app/_locales/pt_BR/messages.json +++ b/app/_locales/pt_BR/messages.json @@ -835,9 +835,6 @@ "privateNetwork": { "message": "Rede Particular" }, - "qrCode": { - "message": "Mostrar QR Code" - }, "queue": { "message": "Fila" }, diff --git a/app/_locales/pt_PT/messages.json b/app/_locales/pt_PT/messages.json index ae85eb26c..65914966f 100644 --- a/app/_locales/pt_PT/messages.json +++ b/app/_locales/pt_PT/messages.json @@ -117,9 +117,6 @@ "privacyMsg": { "message": "Política de Privacidade" }, - "qrCode": { - "message": "Mostre o código QR" - }, "queue": { "message": "Fila" }, diff --git a/app/_locales/ro/messages.json b/app/_locales/ro/messages.json index 308ad5c74..e327ead4a 100644 --- a/app/_locales/ro/messages.json +++ b/app/_locales/ro/messages.json @@ -837,9 +837,6 @@ "privateNetwork": { "message": "Rețea privată" }, - "qrCode": { - "message": "Afișare cod QR" - }, "queue": { "message": "Coadă" }, diff --git a/app/_locales/ru/messages.json b/app/_locales/ru/messages.json index 09313c81d..ec91b788e 100644 --- a/app/_locales/ru/messages.json +++ b/app/_locales/ru/messages.json @@ -360,9 +360,6 @@ "privateNetwork": { "message": "Частная сеть" }, - "qrCode": { - "message": "Показать QR-код" - }, "readdToken": { "message": "Вы можете в будущем добавить обратно этот токен, выбрав пункт меню “Добавить токен”." }, diff --git a/app/_locales/sk/messages.json b/app/_locales/sk/messages.json index 0460edb0b..0b1410316 100644 --- a/app/_locales/sk/messages.json +++ b/app/_locales/sk/messages.json @@ -816,9 +816,6 @@ "privateNetwork": { "message": "Soukromá síť" }, - "qrCode": { - "message": "Ukázat QR kód" - }, "queue": { "message": "Poradie" }, diff --git a/app/_locales/sl/messages.json b/app/_locales/sl/messages.json index ed1c3f71c..ef56186c1 100644 --- a/app/_locales/sl/messages.json +++ b/app/_locales/sl/messages.json @@ -835,9 +835,6 @@ "privateNetwork": { "message": "Zasebno omrežje" }, - "qrCode": { - "message": "Prikaži QR kodo" - }, "queue": { "message": "Čakalna vrsta" }, diff --git a/app/_locales/sr/messages.json b/app/_locales/sr/messages.json index afc28ec93..8d158fda0 100644 --- a/app/_locales/sr/messages.json +++ b/app/_locales/sr/messages.json @@ -841,9 +841,6 @@ "privateNetwork": { "message": "Privatna mreža" }, - "qrCode": { - "message": "Prikaži QR šifru" - }, "queue": { "message": "Ред" }, diff --git a/app/_locales/sv/messages.json b/app/_locales/sv/messages.json index 098170886..7bed885aa 100644 --- a/app/_locales/sv/messages.json +++ b/app/_locales/sv/messages.json @@ -834,9 +834,6 @@ "privateNetwork": { "message": "Privat nätverk" }, - "qrCode": { - "message": "Visa QR-kod" - }, "queue": { "message": "Utskriftskö" }, diff --git a/app/_locales/sw/messages.json b/app/_locales/sw/messages.json index 38cf9883f..25a8ea9e4 100644 --- a/app/_locales/sw/messages.json +++ b/app/_locales/sw/messages.json @@ -828,9 +828,6 @@ "privateNetwork": { "message": "Mtandao Binafsi" }, - "qrCode": { - "message": "Onyesha Msimbo wa QR" - }, "queue": { "message": "Foleni" }, diff --git a/app/_locales/ta/messages.json b/app/_locales/ta/messages.json index 75ef08a57..d22a48cb3 100644 --- a/app/_locales/ta/messages.json +++ b/app/_locales/ta/messages.json @@ -354,9 +354,6 @@ "privateNetwork": { "message": "தனியார் நெட்வொர்க்" }, - "qrCode": { - "message": "QR குறியீட்டைக் காட்டு" - }, "readdToken": { "message": "உங்கள் கணக்கு விருப்பங்கள் மெனுவில் \"டோக்கனைச் சேர்\" என்பதன் மூலம் நீங்கள் எதிர்காலத்தில் இந்த டோக்கனை மீண்டும் சேர்க்கலாம்." }, diff --git a/app/_locales/th/messages.json b/app/_locales/th/messages.json index 61bc3e5f7..b7553f29c 100644 --- a/app/_locales/th/messages.json +++ b/app/_locales/th/messages.json @@ -420,9 +420,6 @@ "privateNetwork": { "message": "เครือข่ายส่วนตัว" }, - "qrCode": { - "message": "แสดง QR Code" - }, "readdToken": { "message": "คุณสามารถเพิ่มโทเค็นนี้ในอนาคตได้โดยไปที่ “เพิ่มโทเค็น” ในเมนูตัวเลือกบัญชีของคุณ" }, diff --git a/app/_locales/tr/messages.json b/app/_locales/tr/messages.json index 6aac95387..71e77fac7 100644 --- a/app/_locales/tr/messages.json +++ b/app/_locales/tr/messages.json @@ -366,9 +366,6 @@ "privateNetwork": { "message": "Özel Ağ" }, - "qrCode": { - "message": "QR Kodunu göster" - }, "readdToken": { "message": "Gelecekte Bu jetonu hesap seçenekleri menüsünde “Jeton ekle”'ye giderek geri ekleyebilirsiniz." }, diff --git a/app/_locales/uk/messages.json b/app/_locales/uk/messages.json index 1e9218df9..650b479e7 100644 --- a/app/_locales/uk/messages.json +++ b/app/_locales/uk/messages.json @@ -850,9 +850,6 @@ "privateNetwork": { "message": "Приватна мережа" }, - "qrCode": { - "message": "Показати QR код" - }, "queue": { "message": "Черга" }, diff --git a/app/_locales/vi/messages.json b/app/_locales/vi/messages.json index a2e9d7c60..ab9598a35 100644 --- a/app/_locales/vi/messages.json +++ b/app/_locales/vi/messages.json @@ -261,9 +261,6 @@ "privateNetwork": { "message": "Mạng lưới riêng" }, - "qrCode": { - "message": "Hiển thị mã QR" - }, "readdToken": { "message": "Bạn có thể thêm trở lại mã token này bằng cách nhấn \"Thêm mã token\" trong menu tùy chọn trong tài khoản của bạn." }, diff --git a/app/_locales/zh_CN/messages.json b/app/_locales/zh_CN/messages.json index b6cc66806..f91b62b5e 100644 --- a/app/_locales/zh_CN/messages.json +++ b/app/_locales/zh_CN/messages.json @@ -832,9 +832,6 @@ "privateNetwork": { "message": "私有网络" }, - "qrCode": { - "message": "显示二维码" - }, "queue": { "message": "队列" }, diff --git a/app/_locales/zh_TW/messages.json b/app/_locales/zh_TW/messages.json index 6513a4b0e..e51354570 100644 --- a/app/_locales/zh_TW/messages.json +++ b/app/_locales/zh_TW/messages.json @@ -838,9 +838,6 @@ "privateNetwork": { "message": "私有網路" }, - "qrCode": { - "message": "顯示 QR Code" - }, "queue": { "message": "佇列" }, diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 72d1e07d0..c7f2dc351 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -66,7 +66,6 @@ import contractMap from 'eth-contract-metadata' import { AddressBookController, CurrencyRateController, - ShapeShiftController, PhishingController, } from 'gaba' @@ -276,8 +275,6 @@ export default class MetamaskController extends EventEmitter { this.setCurrentCurrency(this.currencyRateController.state.currentCurrency, function () {}) }) - this.shapeshiftController = new ShapeShiftController(undefined, initState.ShapeShiftController) - this.networkController.lookupNetwork() this.messageManager = new MessageManager() this.personalMessageManager = new PersonalMessageManager() @@ -297,7 +294,6 @@ export default class MetamaskController extends EventEmitter { PreferencesController: this.preferencesController.store, AddressBookController: this.addressBookController, CurrencyController: this.currencyRateController, - ShapeShiftController: this.shapeshiftController, NetworkController: this.networkController.store, InfuraController: this.infuraController.store, CachedBalancesController: this.cachedBalancesController.store, @@ -326,7 +322,6 @@ export default class MetamaskController extends EventEmitter { RecentBlocksController: this.recentBlocksController.store, AddressBookController: this.addressBookController, CurrencyController: this.currencyRateController, - ShapeshiftController: this.shapeshiftController, InfuraController: this.infuraController.store, OnboardingController: this.onboardingController.store, IncomingTransactionsController: this.incomingTransactionsController.store, diff --git a/development/states/shapeshift.json b/development/states/shapeshift.json deleted file mode 100644 index c518a85ae..000000000 --- a/development/states/shapeshift.json +++ /dev/null @@ -1,345 +0,0 @@ -{ - "metamask": { - "isInitialized": true, - "isUnlocked": true, - "currentDomain": "example.com", - "rpcTarget": "https://rawtestrpc.metamask.io/", - "identities": { - "0xfdea65c8e26263f6d9a1b5de9555d2931a33b825": { - "name": "Wallet 1", - "address": "0xfdea65c8e26263f6d9a1b5de9555d2931a33b825", - "mayBeFauceting": false - }, - "0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb": { - "name": "Wallet 2", - "address": "0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb", - "mayBeFauceting": false - }, - "0x2f8d4a878cfa04a6e60d46362f5644deab66572d": { - "name": "Wallet 3", - "address": "0x2f8d4a878cfa04a6e60d46362f5644deab66572d", - "mayBeFauceting": false - } - }, - "unconfTxs": {}, - "currentCurrency": "USD", - "conversionRate": 11.21274318, - "conversionDate": 1472159644, - "accounts": { - "0xfdea65c8e26263f6d9a1b5de9555d2931a33b825": { - "code": "0x", - "nonce": "0x13", - "balance": "0x461d4a64e937d3d1", - "address": "0xfdea65c8e26263f6d9a1b5de9555d2931a33b825" - }, - "0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb": { - "code": "0x", - "nonce": "0x0", - "balance": "0x0", - "address": "0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb" - }, - "0x2f8d4a878cfa04a6e60d46362f5644deab66572d": { - "code": "0x", - "balance": "0x0", - "nonce": "0x0", - "address": "0x2f8d4a878cfa04a6e60d46362f5644deab66572d" - } - }, - "transactions": [], - "network": "1", - "seedWords": null, - "unconfMsgs": {}, - "messages": [], - "shapeShiftTxList": [], - "provider": { - "type": "mainnet" - }, - "selectedAddress": "0xfdea65c8e26263f6d9a1b5de9555d2931a33b825" - }, - "appState": { - "menuOpen": false, - "currentView": { - "name": "buyEth", - "context": "0xfdea65c8e26263f6d9a1b5de9555d2931a33b825" - }, - "accountDetail": { - "subview": "transactions" - }, - "currentDomain": "127.0.0.1:9966", - "transForward": true, - "isLoading": false, - "detailView": {}, - "buyView": { - "subview": "buyForm", - "formView": { - "coinbase": false, - "shapeshift": true, - "marketinfo": { - "pair": "btc_eth", - "rate": 51.14252949, - "minerFee": 0.01, - "limit": 2.60306578, - "minimum": 0.00038935, - "maxLimit": 8.67688592 - }, - "coinOptions": { - "BTC": { - "name": "Bitcoin", - "symbol": "BTC", - "image": "https://shapeshift.io/images/coins/bitcoin.png", - "status": "available" - }, - "BCY": { - "name": "BitCrystals", - "symbol": "BCY", - "image": "https://shapeshift.io/images/coins/bitcrystals.png", - "status": "available" - }, - "BLK": { - "name": "Blackcoin", - "symbol": "BLK", - "image": "https://shapeshift.io/images/coins/blackcoin.png", - "status": "available" - }, - "BTS": { - "name": "Bitshares", - "symbol": "BTS", - "specialReturn": false, - "specialOutgoing": true, - "specialIncoming": true, - "fieldName": "destTag", - "fieldKey": "destTag", - "image": "https://shapeshift.io/images/coins/bitshares.png", - "status": "available" - }, - "CLAM": { - "name": "Clams", - "symbol": "CLAM", - "image": "https://shapeshift.io/images/coins/clams.png", - "status": "available" - }, - "DASH": { - "name": "Dash", - "symbol": "DASH", - "image": "https://shapeshift.io/images/coins/dash.png", - "status": "available" - }, - "DGB": { - "name": "Digibyte", - "symbol": "DGB", - "image": "https://shapeshift.io/images/coins/digibyte.png", - "status": "available" - }, - "DAO": { - "name": "TheDao", - "symbol": "DAO", - "image": "https://shapeshift.io/images/coins/thedao.png", - "status": "available" - }, - "DGD": { - "name": "DigixDao", - "symbol": "DGD", - "image": "https://shapeshift.io/images/coins/digixdao.png", - "status": "available" - }, - "DOGE": { - "name": "Dogecoin", - "symbol": "DOGE", - "image": "https://shapeshift.io/images/coins/dogecoin.png", - "status": "available" - }, - "EMC": { - "name": "Emercoin", - "symbol": "EMC", - "image": "https://shapeshift.io/images/coins/emercoin.png", - "status": "available" - }, - "ETH": { - "name": "Ether", - "symbol": "ETH", - "image": "https://shapeshift.io/images/coins/ether.png", - "status": "available" - }, - "ETC": { - "name": "Ether Classic", - "symbol": "ETC", - "image": "https://shapeshift.io/images/coins/etherclassic.png", - "status": "available" - }, - "FCT": { - "name": "Factoids", - "symbol": "FCT", - "image": "https://shapeshift.io/images/coins/factoids.png", - "status": "available" - }, - "LBC": { - "name": "LBRY Credits", - "symbol": "LBC", - "image": "https://shapeshift.io/images/coins/lbry.png", - "status": "available" - }, - "LSK": { - "name": "Lisk", - "symbol": "LSK", - "image": "https://shapeshift.io/images/coins/lisk.png", - "status": "available" - }, - "LTC": { - "name": "Litecoin", - "symbol": "LTC", - "image": "https://shapeshift.io/images/coins/litecoin.png", - "status": "available" - }, - "MAID": { - "name": "Maidsafe", - "symbol": "MAID", - "image": "https://shapeshift.io/images/coins/maidsafe.png", - "status": "available" - }, - "MINT": { - "name": "Mintcoin", - "symbol": "MINT", - "image": "https://shapeshift.io/images/coins/mintcoin.png", - "status": "available" - }, - "MONA": { - "name": "Monacoin", - "symbol": "MONA", - "image": "https://shapeshift.io/images/coins/monacoin.png", - "status": "available" - }, - "MSC": { - "name": "Omni", - "symbol": "MSC", - "image": "https://shapeshift.io/images/coins/mastercoin.png", - "status": "available" - }, - "NBT": { - "name": "Nubits", - "symbol": "NBT", - "image": "https://shapeshift.io/images/coins/nubits.png", - "status": "available" - }, - "NMC": { - "name": "Namecoin", - "symbol": "NMC", - "image": "https://shapeshift.io/images/coins/namecoin.png", - "status": "available" - }, - "NVC": { - "name": "Novacoin", - "symbol": "NVC", - "image": "https://shapeshift.io/images/coins/novacoin.png", - "status": "available" - }, - "NXT": { - "name": "Nxt", - "symbol": "NXT", - "specialReturn": false, - "specialOutgoing": true, - "specialIncoming": true, - "specialIncomingStatus": false, - "fieldName": "Public Key (only for unfunded accounts!)", - "fieldKey": "rsAddress", - "image": "https://shapeshift.io/images/coins/nxt.png", - "status": "available" - }, - "PPC": { - "name": "Peercoin", - "symbol": "PPC", - "image": "https://shapeshift.io/images/coins/peercoin.png", - "status": "available" - }, - "RDD": { - "name": "Reddcoin", - "symbol": "RDD", - "image": "https://shapeshift.io/images/coins/reddcoin.png", - "status": "available" - }, - "SDC": { - "name": "Shadowcash", - "symbol": "SDC", - "image": "https://shapeshift.io/images/coins/shadowcash.png", - "status": "available" - }, - "SC": { - "name": "Siacoin", - "symbol": "SC", - "image": "https://shapeshift.io/images/coins/siacoin.png", - "status": "available" - }, - "SJCX": { - "name": "StorjX", - "symbol": "SJCX", - "image": "https://shapeshift.io/images/coins/storjcoinx.png", - "status": "available" - }, - "START": { - "name": "Startcoin", - "symbol": "START", - "image": "https://shapeshift.io/images/coins/startcoin.png", - "status": "available" - }, - "STEEM": { - "name": "Steem", - "symbol": "STEEM", - "specialReturn": false, - "specialOutgoing": true, - "specialIncoming": true, - "fieldName": "destTag", - "fieldKey": "destTag", - "image": "https://shapeshift.io/images/coins/steem.png", - "status": "available" - }, - "USDT": { - "name": "Tether", - "symbol": "USDT", - "image": "https://shapeshift.io/images/coins/tether.png", - "status": "available" - }, - "VOX": { - "name": "Voxels", - "symbol": "VOX", - "image": "https://shapeshift.io/images/coins/voxels.png", - "status": "available" - }, - "VRC": { - "name": "Vericoin", - "symbol": "VRC", - "image": "https://shapeshift.io/images/coins/vericoin.png", - "status": "available" - }, - "VTC": { - "name": "Vertcoin", - "symbol": "VTC", - "image": "https://shapeshift.io/images/coins/vertcoin.png", - "status": "available" - }, - "XCP": { - "name": "Counterparty", - "symbol": "XCP", - "image": "https://shapeshift.io/images/coins/counterparty.png", - "status": "available" - }, - "XMR": { - "name": "Monero", - "symbol": "XMR", - "specialReturn": false, - "specialOutgoing": true, - "specialIncoming": true, - "fieldName": "Payment Id", - "qrName": "tx_payment_id", - "fieldKey": "paymentId", - "image": "https://shapeshift.io/images/coins/monero.png", - "status": "available" - } - } - }, - "buyAddress": "0xfdea65c8e26263f6d9a1b5de9555d2931a33b825", - "amount": "5.00", - "warning": null - }, - "isSubLoading": false - }, - "identities": {} -} diff --git a/development/states/tx-list-items.json b/development/states/tx-list-items.json index e03cab342..f13aab769 100644 --- a/development/states/tx-list-items.json +++ b/development/states/tx-list-items.json @@ -1053,10 +1053,7 @@ "provider": { "type": "testnet" }, - "shapeShiftTxList": [ - {"depositAddress":"34vJ3AfmNcLiziA4VFgEVcQTwxVLD1qkke","depositType":"BTC","key":"shapeshift","response":{"status":"no_deposits","address":"34vJ3AfmNcLiziA4VFgEVcQTwxVLD1qkke"},"time":1522347459106}, - {"depositAddress":"34vJ3AfmNcLiziA4VFgEVcQTwxVLD1qkkq","depositType":"BTC","key":"shapeshift","response":{"status":"no_deposits","address":"34vJ3AfmNcLiziA4VFgEVcQTwxVLD1qkkq"},"time":1522345459106} - ], + "shapeShiftTxList": [], "send": {}, "currentLocale": "en", "preferences": { diff --git a/test/integration/lib/tx-list-items.js b/test/integration/lib/tx-list-items.js index 4eb210d53..9ec43ed40 100644 --- a/test/integration/lib/tx-list-items.js +++ b/test/integration/lib/tx-list-items.js @@ -43,7 +43,7 @@ async function runTxListItemsTest (assert) { metamaskLogo[0].click() const txListItems = await queryAsync($, '.transaction-list-item') - assert.equal(txListItems.length, 8, 'all tx list items are rendered') + assert.equal(txListItems.length, 6, 'all tx list items are rendered') const unapprovedMsg = txListItems[0] const unapprovedMsgDescription = await findAsync($(unapprovedMsg), '.transaction-list-item__action') @@ -57,15 +57,7 @@ async function runTxListItemsTest (assert) { const confirmedTokenTx1Address = await findAsync($(confirmedTokenTx1), '.transaction-list-item__status') assert.equal(confirmedTokenTx1Address[0].textContent, 'Confirmed', 'confirmedTokenTx has correct status') - const shapeShiftTx1 = txListItems[5] - const shapeShiftTx1Status = await findAsync($(shapeShiftTx1), '.flex-column div:eq(1)') - assert.equal(shapeShiftTx1Status[0].textContent, 'No deposits received', 'shapeShiftTx has correct status') - - const confirmedTokenTx2 = txListItems[6] + const confirmedTokenTx2 = txListItems[5] const confirmedTokenTx2Address = await findAsync($(confirmedTokenTx2), '.transaction-list-item__status') assert.equal(confirmedTokenTx2Address[0].textContent, 'Confirmed', 'confirmedTokenTx has correct status') - - const shapeShiftTx2 = txListItems[7] - const shapeShiftTx2Address = await findAsync($(shapeShiftTx2), '.flex-column div:eq(1)') - assert.equal(shapeShiftTx2Address[0].textContent, 'No deposits received', 'shapeShiftTx has correct status') } diff --git a/test/unit/ui/app/actions.spec.js b/test/unit/ui/app/actions.spec.js index 22fc53b6e..6e00d3d52 100644 --- a/test/unit/ui/app/actions.spec.js +++ b/test/unit/ui/app/actions.spec.js @@ -1,7 +1,6 @@ import assert from 'assert' import sinon from 'sinon' import { cloneDeep } from 'lodash' -import nock from 'nock' import fetchMock from 'fetch-mock' import configureStore from 'redux-mock-store' import thunk from 'redux-thunk' @@ -1309,30 +1308,6 @@ describe('Actions', function () { }) }) - describe('#pairUpdate', function () { - it('calls expected actions', function () { - nock('https://shapeshift.io') - .defaultReplyHeaders({ 'access-control-allow-origin': '*' }) - .get('/marketinfo/btc_eth') - .reply(200, { pair: 'BTC_ETH', rate: 25.68289016, minerFee: 0.00176, limit: 0.67748474, minimum: 0.00013569, maxLimit: 0.67758573 }) - - nock('https://shapeshift.io') - .defaultReplyHeaders({ 'access-control-allow-origin': '*' }) - .get('/coins') - .reply(200) - - const store = mockStore() - // issue with dispatch action in callback not showing - const expectedActions = [ - { type: 'SHOW_SUB_LOADING_INDICATION' }, - { type: 'HIDE_WARNING' }, - ] - - store.dispatch(actions.pairUpdate('btc')) - assert.deepEqual(store.getActions(), expectedActions) - }) - }) - describe('#setFeatureFlag', function () { let setFeatureFlagSpy diff --git a/test/unit/ui/app/reducers/app.spec.js b/test/unit/ui/app/reducers/app.spec.js index be90bf53c..44e072f1a 100644 --- a/test/unit/ui/app/reducers/app.spec.js +++ b/test/unit/ui/app/reducers/app.spec.js @@ -330,23 +330,6 @@ describe('App State', function () { assert.equal(state.isLoading, false) }) - it('shows sub loading indicator', function () { - const state = reduceApp(metamaskState, { - type: actions.SHOW_SUB_LOADING_INDICATION, - }) - - assert.equal(state.isSubLoading, true) - }) - - it('hides sub loading indicator', function () { - const oldState = { ...metamaskState, isSubLoading: true } - const state = reduceApp(oldState, { - type: actions.HIDE_SUB_LOADING_INDICATION, - }) - - assert.equal(state.isSubLoading, false) - }) - it('displays warning', function () { const state = reduceApp(metamaskState, { type: actions.DISPLAY_WARNING, @@ -378,90 +361,6 @@ describe('App State', function () { assert.equal(state.accountDetail.privateKey, 'private key') }) - it('updates pair', function () { - const coinOptions = { - BTC: { - symbol: 'BTC', - name: 'Bitcoin', - image: 'https://shapeshift.io/images/coins/bitcoin.png', - imageSmall: 'https://shapeshift.io/images/coins-sm/bitcoin.png', - status: 'available', - minerFee: 0.00025, - }, - } - - const appState = { - buyView: { - buyAddress: '0xAddress', - amount: '12.00', - formView: { - coinOptions, - }, - }, - } - - const marketinfo = { - pair: 'BTC_ETH', - rate: 28.91191106, - minerFee: 0.0022, - limit: 0.76617432, - minimum: 0.00015323, - maxLimit: 0.76617432, - } - - const oldState = { ...metamaskState, ...appState } - - const state = reduceApp(oldState, { - type: actions.PAIR_UPDATE, - value: { - marketinfo, - }, - }) - - assert.equal(state.buyView.subview, 'ShapeShift') - assert.equal(state.buyView.formView.shapeshift, true) - assert.deepEqual(state.buyView.formView.marketinfo, marketinfo) - assert.deepEqual(state.buyView.formView.coinOptions, coinOptions) - assert.equal(state.buyView.buyAddress, '0xAddress') - assert.equal(state.buyView.amount, '12.00') - }) - - it('shows QR', function () { - const state = reduceApp(metamaskState, { - type: actions.SHOW_QR, - value: { - message: 'message', - data: 'data', - }, - }) - - assert.equal(state.qrRequested, true) - assert.equal(state.transForward, true) - assert.equal(state.Qr.message, 'message') - assert.equal(state.Qr.data, 'data') - }) - - it('shows qr view', function () { - const appState = { - currentView: { - context: 'accounts', - }, - } - - const oldState = { ...metamaskState, ...appState } - const state = reduceApp(oldState, { - type: actions.SHOW_QR_VIEW, - value: { - message: 'message', - data: 'data', - }, - }) - - assert.equal(state.transForward, true) - assert.equal(state.Qr.message, 'message') - assert.equal(state.Qr.data, 'data') - }) - it('set mouse user state', function () { const state = reduceApp(metamaskState, { type: actions.SET_MOUSE_USER_STATE, diff --git a/test/unit/ui/app/reducers/metamask.spec.js b/test/unit/ui/app/reducers/metamask.spec.js index bf16dd404..3df42c569 100644 --- a/test/unit/ui/app/reducers/metamask.spec.js +++ b/test/unit/ui/app/reducers/metamask.spec.js @@ -291,19 +291,6 @@ describe('MetaMask Reducers', function () { assert.equal(state.selectedAddressTxList[0].txParams, 'bar') }) - it('updates pair for shapeshift', function () { - const state = reduceMetamask({}, { - type: actions.PAIR_UPDATE, - value: { - marketinfo: { - pair: 'test pair', - foo: 'bar', - }, - }, - }) - assert.equal(state.tokenExchangeRates['test pair'].pair, 'test pair') - }) - it('sets blockies', function () { const state = reduceMetamask({}, { type: actions.SET_USE_BLOCKIE, diff --git a/ui/app/components/app/modals/tests/account-details-modal.test.js b/ui/app/components/app/modals/tests/account-details-modal.test.js index db0e4094f..2b29102de 100644 --- a/ui/app/components/app/modals/tests/account-details-modal.test.js +++ b/ui/app/components/app/modals/tests/account-details-modal.test.js @@ -13,7 +13,6 @@ describe('Account Details Modal', function () { hideModal: sinon.spy(), setAccountLabel: sinon.spy(), showExportPrivateKeyModal: sinon.spy(), - showQrView: sinon.spy(), network: 'test', rpcPrefs: {}, selectedIdentity: { diff --git a/ui/app/components/app/shift-list-item/shift-list-item.component.js b/ui/app/components/app/shift-list-item/shift-list-item.component.js index a4b01ef0e..db812ceca 100644 --- a/ui/app/components/app/shift-list-item/shift-list-item.component.js +++ b/ui/app/components/app/shift-list-item/shift-list-item.component.js @@ -1,11 +1,9 @@ import PropTypes from 'prop-types' import React, { Component } from 'react' import { createExplorerLink as explorerLink } from 'etherscan-link' -import * as actions from '../../../store/actions' import { formatDate, addressSummary } from '../../../helpers/utils/util' import CopyButton from '../../ui/copyButton' import EthBalance from '../../ui/eth-balance' -import Tooltip from '../../ui/tooltip' export default class ShiftListItem extends Component { static contextTypes = { @@ -19,7 +17,6 @@ export default class ShiftListItem extends Component { static propTypes = { depositType: PropTypes.string.isRequired, - dispatch: PropTypes.func.isRequired, depositAddress: PropTypes.string.isRequired, conversionRate: PropTypes.any, currentCurrency: PropTypes.any, @@ -39,23 +36,9 @@ export default class ShiftListItem extends Component { return (