diff --git a/app/_locales/am/messages.json b/app/_locales/am/messages.json index 3497daaf4..d6b92d26f 100644 --- a/app/_locales/am/messages.json +++ b/app/_locales/am/messages.json @@ -118,12 +118,6 @@ "browserNotSupported": { "message": "ማሰሺያዎት አልተደገፈም..." }, - "buyWithWyre": { - "message": "$1 በ Wyre ይግዙ" - }, - "buyWithWyreDescription": { - "message": "Wyre ክሬዲት ካርድ ተጠቅመው $1 በቀጥታ በ MetaMask መለያዎ ላይ እንዲያስቀምጡ ያስችልዎታል።" - }, "bytes": { "message": "ባይት" }, @@ -166,9 +160,6 @@ "connectingToMainnet": { "message": "ከዋናው የ Ethereum አውታረ መረብ ጋር መገናኘት" }, - "continueToWyre": { - "message": "ወደ Wyre ይቀጥሉ" - }, "contractDeployment": { "message": "የኮንትራት ስምሪት" }, @@ -318,13 +309,6 @@ "general": { "message": "አጠቃላይ" }, - "getEther": { - "message": "Ether ያግኙ" - }, - "getEtherFromFaucet": { - "message": "Ether ከቧንቧ በ$1ያግኙ", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "የ Goerli የሙከራ አውታረ መረብ" }, @@ -766,9 +750,6 @@ "terms": { "message": "የአጠቃቀም ደንቦች" }, - "testFaucet": { - "message": "የሙከራ ቧንቧ" - }, "tips": { "message": "መረጃዎች" }, @@ -887,9 +868,6 @@ "userName": { "message": "የተጣቃሚ ስም" }, - "viewAccount": { - "message": "መለያን ይመልከቱ" - }, "viewContact": { "message": "ዕውቂያን ይመልከቱ" }, diff --git a/app/_locales/ar/messages.json b/app/_locales/ar/messages.json index 06ba0766e..4fcdad960 100644 --- a/app/_locales/ar/messages.json +++ b/app/_locales/ar/messages.json @@ -128,12 +128,6 @@ "browserNotSupported": { "message": "متصفحك غير مدعوم..." }, - "buyWithWyre": { - "message": "قم بشراء عملة إيثير بواسطة Wyre" - }, - "buyWithWyreDescription": { - "message": "يتيح لك Wyre استخدام بطاقة ائتمان لإيداع 1$ مباشرة في حساب MetaMask الخاص بك." - }, "bytes": { "message": "بايتات" }, @@ -176,9 +170,6 @@ "connectingToMainnet": { "message": "جارِ الاتصال بشبكة إيثيريوم الرئيسية" }, - "continueToWyre": { - "message": "الاستمرار إلى Wyre" - }, "contractDeployment": { "message": "نشر العقد" }, @@ -327,13 +318,6 @@ "general": { "message": "عام" }, - "getEther": { - "message": "احصل على إيثر" - }, - "getEtherFromFaucet": { - "message": "احصل على الأثير من صنبور مقابل $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "شبكة اختبار Goerli " }, @@ -778,9 +762,6 @@ "terms": { "message": "شروط الاستخدام" }, - "testFaucet": { - "message": "اختبار Faucet" - }, "tips": { "message": "المكافآت" }, @@ -899,9 +880,6 @@ "userName": { "message": "اسم المستخدم" }, - "viewAccount": { - "message": "عرض حساب" - }, "viewContact": { "message": "عرض جهة الاتصال" }, diff --git a/app/_locales/bg/messages.json b/app/_locales/bg/messages.json index 87af188c7..dcd599431 100644 --- a/app/_locales/bg/messages.json +++ b/app/_locales/bg/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Браузърът ви не се поддържа ..." }, - "buyWithWyre": { - "message": "Купете $1 с Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre ви позволява да използвате кредитна карта, за да депозирате $1 право във вашата MetaMask сметка." - }, "bytes": { "message": "Байта" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "Свързване с главната мрежа Ethereum" }, - "continueToWyre": { - "message": "Продължете към Wyre" - }, "contractDeployment": { "message": "Разгръщане на договор" }, @@ -323,13 +314,6 @@ "general": { "message": "Общ" }, - "getEther": { - "message": "Вземете етер" - }, - "getEtherFromFaucet": { - "message": "Вземете Ether от фосет за $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Тестова мрежа на Goerli" }, @@ -777,9 +761,6 @@ "terms": { "message": "Условия за ползване" }, - "testFaucet": { - "message": "Тест Faucet" - }, "tips": { "message": "Дарения" }, @@ -898,9 +879,6 @@ "userName": { "message": "Потребителско име" }, - "viewAccount": { - "message": "Преглед на профила" - }, "viewContact": { "message": "Преглед на контакта" }, diff --git a/app/_locales/bn/messages.json b/app/_locales/bn/messages.json index b5fb80176..736c1f72f 100644 --- a/app/_locales/bn/messages.json +++ b/app/_locales/bn/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "আপনার ব্রাউজার সমর্থিত নয়..." }, - "buyWithWyre": { - "message": "Wyre দিয়ে $1 ক্রয় করুন" - }, - "buyWithWyreDescription": { - "message": "Wyre আপনার MetaMask অ্যাকাউন্টে সরাসরি $1 জমা করতে আপনাকে একটি ক্রেডিট কার্ড ব্যবহার করতে দেয়।" - }, "bytes": { "message": "বাইটস" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "মুখ্য Ethereum নেটওয়ার্কের সাথে সংযোগ করছে" }, - "continueToWyre": { - "message": "Wyre এ অবিরত রাখুন" - }, "contractDeployment": { "message": "কন্ট্র্যাক্ট নিয়োজন" }, @@ -327,13 +318,6 @@ "general": { "message": "সাধারণ" }, - "getEther": { - "message": "ইথার পান" - }, - "getEtherFromFaucet": { - "message": "$1 এর জন্য একটি ফসেট থেকে ইথার পান", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "গোয়েরলি টেস্ট নেটওয়ার্ক" }, @@ -781,9 +765,6 @@ "terms": { "message": "ব্যবহারের শর্তাবলী" }, - "testFaucet": { - "message": "টেস্ট ফসেট" - }, "tips": { "message": "অর্থসাহায্য এবং পরামর্শ" }, @@ -902,9 +883,6 @@ "userName": { "message": "ইউজারনেম" }, - "viewAccount": { - "message": "আ্যাকাউন্ট দেখুন" - }, "viewContact": { "message": "পরিচিতি দেখুন" }, diff --git a/app/_locales/ca/messages.json b/app/_locales/ca/messages.json index 1a285a375..14c6c1a62 100644 --- a/app/_locales/ca/messages.json +++ b/app/_locales/ca/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "El teu navegador no és suportat..." }, - "buyWithWyre": { - "message": "Compra $1 amb Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre et permet utilitzar una targeta de crèdit per dipositar $1 directe al teu compte MetaMask." - }, "cancel": { "message": "Cancel·la" }, @@ -169,9 +163,6 @@ "connectingToMainnet": { "message": "Connectant a Xarxa Principal Ethereum" }, - "continueToWyre": { - "message": "Continua a Wyre" - }, "contractDeployment": { "message": "Desplegament de Contracte" }, @@ -317,13 +308,6 @@ "gasUsed": { "message": "Gas utilitzat" }, - "getEther": { - "message": "Aconsegueix Ether" - }, - "getEtherFromFaucet": { - "message": "Aconsegueix Ether d'una aixeta per $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Xarxa de test Goerli" }, @@ -871,9 +855,6 @@ "userName": { "message": "Nom d'usuari" }, - "viewAccount": { - "message": "Mostra el compte" - }, "viewContact": { "message": "Veure Contacte" }, diff --git a/app/_locales/cs/messages.json b/app/_locales/cs/messages.json index 0b1b59e53..3b82640c9 100644 --- a/app/_locales/cs/messages.json +++ b/app/_locales/cs/messages.json @@ -140,13 +140,6 @@ "gasPrice": { "message": "Cena paliva (GWEI)" }, - "getEther": { - "message": "Získejte Ether" - }, - "getEtherFromFaucet": { - "message": "Získejte Ether z faucetu za $1.", - "description": "Displays network name for Ether faucet" - }, "here": { "message": "zde", "description": "as in -click here- for more information (goes with troubleTokenBalances)" @@ -356,9 +349,6 @@ "terms": { "message": "Podmínky použití" }, - "testFaucet": { - "message": "Testovací faucet" - }, "to": { "message": "Komu" }, @@ -399,9 +389,6 @@ "usedByClients": { "message": "Používána různými klienty" }, - "viewAccount": { - "message": "Zobrazit účet" - }, "visitWebSite": { "message": "Navštivte naši stránku" }, diff --git a/app/_locales/da/messages.json b/app/_locales/da/messages.json index c5d56db6d..8826e1263 100644 --- a/app/_locales/da/messages.json +++ b/app/_locales/da/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Din browser er ikke understøttet..." }, - "buyWithWyre": { - "message": "Køb $1 med Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre lader dig bruge et kreditkort til at indbetale $1 på din MetaMask-konto." - }, "bytes": { "message": "Byte" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "Forbinder til dit Primære Ethereum Netværk" }, - "continueToWyre": { - "message": "Fortsæt til Wyre" - }, "contractDeployment": { "message": "Kontraktanvendelse" }, @@ -323,13 +314,6 @@ "general": { "message": "Generelt" }, - "getEther": { - "message": "Hent Ether" - }, - "getEtherFromFaucet": { - "message": "Hent Ether fra en hane til $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Goerli-testnetværk" }, @@ -756,9 +740,6 @@ "terms": { "message": "Brugsbetingelser" }, - "testFaucet": { - "message": "Testhane" - }, "tips": { "message": "Donationer" }, @@ -871,9 +852,6 @@ "userName": { "message": "Brugernavn" }, - "viewAccount": { - "message": "Vis konto" - }, "viewContact": { "message": "Vis kontakt" }, diff --git a/app/_locales/de/messages.json b/app/_locales/de/messages.json index e44c433ec..3e510284d 100644 --- a/app/_locales/de/messages.json +++ b/app/_locales/de/messages.json @@ -523,38 +523,9 @@ "message": "$1 kaufen", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "1 $ mit Coinbase Pay kaufen", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "Sie können mit Ihrem Coinbase-Konto bequem Kryptowährungen kaufen oder überweisen.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "$1 mit MoonPay kaufen", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "MoonPay unterstützt gängige Zahlungsmethoden, einschließlich Visa, Mastercard, Apple/Google/ Samsung Pay und Banküberweisungen in über 145 Ländern. Token werden auf Ihr MetaMask-Konto eingezahlt." - }, - "buyCryptoWithTransak": { - "message": "$1 mit Transak kaufen", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Transak unterstützt Kredit- und Debitkarten, Apple Pay, MobiKwik und Banküberweisungen (je nach Standort) in über 100 Ländern. $1-Einzahlungen direkt auf Ihr MetaMask-Konto.", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "Jetzt kaufen" }, - "buyWithWyre": { - "message": "$1 mit Wyre kaufen" - }, - "buyWithWyreDescription": { - "message": "Einfaches Onboarding für Käufe bis zu 1000 $. Schnelle interaktive Überprüfung von Käufen mit hohem Limit. Unterstützt Debit-/Kreditkarte, Apple Pay, Banküberweisungen. Verfügbar in über 100 Ländern. Einzahlung von Token auf Ihr MetaMask-Konto" - }, "bytes": { "message": "Bytes" }, @@ -733,18 +704,6 @@ "continue": { "message": "Weiter" }, - "continueToCoinbasePay": { - "message": "Weiter zu Coinbase Pay" - }, - "continueToMoonPay": { - "message": "Weiter zu MoonPay" - }, - "continueToTransak": { - "message": "Weiter zur Transaktion" - }, - "continueToWyre": { - "message": "Weiter zu Wyre" - }, "contract": { "message": "Vertrag" }, @@ -957,10 +916,6 @@ "deposit": { "message": "Einzahlung" }, - "depositCrypto": { - "message": "$1 einzahlen", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "Mehr erfahren" }, @@ -973,12 +928,6 @@ "details": { "message": "Details" }, - "directDepositCrypto": { - "message": "Direkt $1 einzahlen" - }, - "directDepositCryptoExplainer": { - "message": "Wenn Sie bereits über $1 verfügen, ist eine direkte Einzahlung der schnellste Weg, um $1 auf Ihr Konto einzuzahlen." - }, "disabledGasOptionToolTipMessage": { "message": "“$1” ist deaktiviert, weil es nicht das Minimum einer zehnprozentigen Erhöhung gegenüber der ursprünglichen Gasgebühr erfüllt.", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "Allgemein" }, - "getEther": { - "message": "Ether holen" - }, - "getEtherFromFaucet": { - "message": "Ether für das $1-Netzwerk von einem Faucet holen.", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "Zurück" }, @@ -1928,10 +1870,6 @@ "message": "Das native Token dieses Netzwerks ist $1. Dieses Token wird für die Gasgebühr verwendet.", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "Um mit dezentralen Anwendungen zu interagieren, die MetaMask verwenden, benötigen Sie $1 in Ihrer Wallet.", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "Brauchen Sie Hilfe? Kontaktieren Sie $1", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "Nutzungsbedingungen" }, - "testFaucet": { - "message": "Testfaucet" - }, "testNetworks": { "message": "Test-Netzwerke" }, @@ -4166,9 +4101,6 @@ "view": { "message": "Anzeigen" }, - "viewAccount": { - "message": " Konto einsehen" - }, "viewAllDetails": { "message": "Alle Details anzeigen" }, diff --git a/app/_locales/el/messages.json b/app/_locales/el/messages.json index 1fc07474b..985bc70b4 100644 --- a/app/_locales/el/messages.json +++ b/app/_locales/el/messages.json @@ -523,38 +523,9 @@ "message": "Αγορά $1", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "Αγορά $1 με Coinbase Pay", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "Μπορείτε να αγοράσετε ή να μεταφέρετε εύκολα κρυπτονομίσματα με τον λογαριασμό σας στο Coinbase.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "Αγορά $1 με MoonPay", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "MoonPay supports popular payment methods, including Visa, Mastercard, Apple / Google / Samsung Pay, and bank transfers in 145+ countries. Tokens deposit into your MetaMask account." - }, - "buyCryptoWithTransak": { - "message": "Αγορά $1 με Transak", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Η Transak υποστηρίζει πιστωτικές και χρεωστικές κάρτες, Apple Pay, MobiKwik και τραπεζικές μεταφορές (ανάλογα με την τοποθεσία) σε περισσότερες από 145 χώρες. Τα $1 κατατίθενται απευθείας στον λογαριασμό σας στο MetaMask.", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "Αγοράστε Τώρα" }, - "buyWithWyre": { - "message": "Αγοράστε $1 με το Wyre" - }, - "buyWithWyreDescription": { - "message": "Εύκολη ενσωμάτωση για αγορές μέχρι και $ 1000. Γρήγορη διαδραστική επαλήθευση αγοράς υψηλού ορίου. Υποστηρίζει χρεωστικές/πιστωτικές κάρτες, Apple Pay, Τραπεζικές Μεταφορές. Διαθέσιμο σε 100+ χώρες. Καταθέσεις token στον λογαριασμό σας MetaMask" - }, "bytes": { "message": "Bytes" }, @@ -733,18 +704,6 @@ "continue": { "message": "Συνέχεια" }, - "continueToCoinbasePay": { - "message": "Συνέχεια στο Coinbase Pay" - }, - "continueToMoonPay": { - "message": "Συνέχεια στη MoonPay" - }, - "continueToTransak": { - "message": "Συνεχίστε στο Transak" - }, - "continueToWyre": { - "message": "Συνεχίστε στο Wyre" - }, "contract": { "message": "Συμβόλαιο" }, @@ -957,10 +916,6 @@ "deposit": { "message": "Κατάθεση" }, - "depositCrypto": { - "message": "Κατάθεση $1", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "Μάθετε περισσότερα" }, @@ -973,12 +928,6 @@ "details": { "message": "Λεπτομέρειες" }, - "directDepositCrypto": { - "message": "Απευθείας κατάθεση $1" - }, - "directDepositCryptoExplainer": { - "message": "Εάν έχετε ήδη μερικά $1, ο γρηγορότερος τρόπος για να βάλετε $1 στο νέο σας πορτοφόλι είναι η απευθείας κατάθεση." - }, "disabledGasOptionToolTipMessage": { "message": "Το \"1$\" είναι απενεργοποιημένο επειδή δεν πληροί την ελάχιστη αύξηση 10% σε σχέση με τα αρχικά τέλη συναλλαγής.", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "Γενικά" }, - "getEther": { - "message": "Λάβετε Ether" - }, - "getEtherFromFaucet": { - "message": "Πάρτε Ether από μια πηγή για το $1.", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "Μετάβαση Πίσω" }, @@ -1928,10 +1870,6 @@ "message": "Το αρχικό token σε αυτό το δίκτυο είναι το $1. Είναι το token που χρησιμοποιείται για τα τέλη φυσικού αερίου.", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "Για να αλληλεπιδράσετε με αποκεντρωμένες εφαρμογές χρησιμοποιώντας το MetaMask, θα χρειαστείτε $1 στο πορτοφόλι σας.", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "Χρειάζεστε βοήθεια; Επικοινωνήστε με $1", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "Όροι παροχής υπηρεσιών" }, - "testFaucet": { - "message": "Έλεγχος Βαλβίδας" - }, "testNetworks": { "message": "Δοκιμαστικά δίκτυα" }, @@ -4166,9 +4101,6 @@ "view": { "message": "Προβολή" }, - "viewAccount": { - "message": "Προβολή λογαριασμού" - }, "viewAllDetails": { "message": "Προβολή όλων των λεπτομερειών" }, diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index 34dd0cb36..0aa328fe0 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -530,38 +530,9 @@ "message": "Buy $1", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "Buy $1 with Coinbase Pay", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "You can easily buy or transfer crypto with your Coinbase account.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "Buy $1 with MoonPay", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "MoonPay supports popular payment methods, including Visa, Mastercard, Apple / Google / Samsung Pay, and bank transfers in 145+ countries. Tokens deposit into your MetaMask account." - }, - "buyCryptoWithTransak": { - "message": "Buy $1 with Transak", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Transak supports credit & debit cards, Apple Pay, MobiKwik, and bank transfers (depending on location) in 100+ countries. $1 deposits directly into your MetaMask account.", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "Buy Now" }, - "buyWithWyre": { - "message": "Buy $1 with Wyre" - }, - "buyWithWyreDescription": { - "message": "Easy onboarding for purchases up to $ 1000. Fast interactive high limit purchase verification. Supports Debit/Credit Card, Apple Pay, Bank Transfers. Available in 100+ countries. Tokens deposit into your MetaMask Account" - }, "bytes": { "message": "Bytes" }, @@ -755,18 +726,6 @@ "continue": { "message": "Continue" }, - "continueToCoinbasePay": { - "message": "Continue to Coinbase Pay" - }, - "continueToMoonPay": { - "message": "Continue to MoonPay" - }, - "continueToTransak": { - "message": "Continue to Transak" - }, - "continueToWyre": { - "message": "Continue to Wyre" - }, "contract": { "message": "Contract" }, @@ -989,10 +948,6 @@ "deposit": { "message": "Deposit" }, - "depositCrypto": { - "message": "Deposit $1", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "Learn more" }, @@ -1104,12 +1059,6 @@ "details": { "message": "Details" }, - "directDepositCrypto": { - "message": "Directly deposit $1" - }, - "directDepositCryptoExplainer": { - "message": "If you already have some $1, the quickest way to get $1 in your new wallet by direct deposit." - }, "disabledGasOptionToolTipMessage": { "message": "“$1” is disabled because it does not meet the minimum of a 10% increase from the original gas fee.", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1566,13 +1515,6 @@ "general": { "message": "General" }, - "getEther": { - "message": "Get Ether" - }, - "getEtherFromFaucet": { - "message": "Get Ether from a faucet for the $1 network.", - "description": "Displays network name for Ether faucet" - }, "getWarningsFromOpenSea": { "message": "Get warnings from OpenSea whenever you receive a known malicious request." }, @@ -2103,10 +2045,6 @@ "message": "The native token on this network is $1. It is the token used for gas fees.", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "To interact with decentralized applications using MetaMask, you’ll need $1 in your wallet.", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "Need help? Contact $1", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -4083,9 +4021,6 @@ "termsOfService": { "message": "Terms of service" }, - "testFaucet": { - "message": "Test faucet" - }, "testNetworks": { "message": "Test networks" }, @@ -4458,9 +4393,6 @@ "view": { "message": "View" }, - "viewAccount": { - "message": "View account" - }, "viewAllDetails": { "message": "View all details" }, diff --git a/app/_locales/es/messages.json b/app/_locales/es/messages.json index 607a55e1a..d87e7b7f5 100644 --- a/app/_locales/es/messages.json +++ b/app/_locales/es/messages.json @@ -523,38 +523,9 @@ "message": "Comprar $1", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "Comprar $1 con Coinbase Pay", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "Puede comprar o transferir criptomonedas fácilmente por medio de su cuenta de Coinbase.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "Comprar $1 con MoonPay", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "MoonPay admite métodos de pago populares, incluidos Visa, Mastercard, Apple/Google/Samsung Pay y transferencias bancarias en más de 145 países. Depósito de tokens en su cuenta MetaMask." - }, - "buyCryptoWithTransak": { - "message": "Comprar $1 con Transak", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Transak admite tarjetas de crédito y débito, Apple Pay, MobiKwik y transferencias bancarias (según la ubicación) en más de 100 países. Depósitos de $1 directamente en su cuenta MetaMask.", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "Comprar ahora" }, - "buyWithWyre": { - "message": "Comprar $1 con Wyre" - }, - "buyWithWyreDescription": { - "message": "Acceso fácil a compras de hasta $1,000. Verificación interactiva rápida de compra de límite alto. Acepta tarjeta de débito/crédito, Apple Pay y transferencias bancarias. Disponible para más de 100 países. Los tokens se depositarán en su cuenta MetaMask" - }, "bytes": { "message": "Bytes" }, @@ -733,18 +704,6 @@ "continue": { "message": "Continuar" }, - "continueToCoinbasePay": { - "message": "Continuar a Coinbase Pay" - }, - "continueToMoonPay": { - "message": "Continuar a MoonPay" - }, - "continueToTransak": { - "message": "Continuar a Transak" - }, - "continueToWyre": { - "message": "Continuar a Wyre" - }, "contract": { "message": "Contrato" }, @@ -957,10 +916,6 @@ "deposit": { "message": "Depositar" }, - "depositCrypto": { - "message": "Deposite $1", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "Más información" }, @@ -973,12 +928,6 @@ "details": { "message": "Detalles" }, - "directDepositCrypto": { - "message": "Deposite directamente $1" - }, - "directDepositCryptoExplainer": { - "message": "Si ya tiene algo de $1, la forma más rápida de obtener $1 en su nueva billetera mediante depósito directo." - }, "disabledGasOptionToolTipMessage": { "message": "\"1$\" está desactivado porque no cumple el mínimo de un aumento del 10% respecto a la tarifa de gas original.", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "General" }, - "getEther": { - "message": "Obtener ether" - }, - "getEtherFromFaucet": { - "message": "Obtenga Ether de un faucet para la red de $1.", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "Volver" }, @@ -1928,10 +1870,6 @@ "message": "El token nativo en esta red es de $1. Es el token utilizado para las tarifas de gas.", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "Para interactuar con aplicaciones descentralizadas usando MetaMask, necesitará $1 en su billetera.", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "¿Necesita ayuda? Comuníquese con $1", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "Términos de servicio" }, - "testFaucet": { - "message": "Faucet de prueba" - }, "testNetworks": { "message": "Redes de prueba" }, @@ -4166,9 +4101,6 @@ "view": { "message": "Ver" }, - "viewAccount": { - "message": "Ver cuenta" - }, "viewAllDetails": { "message": "Ver todos los detalles" }, diff --git a/app/_locales/es_419/messages.json b/app/_locales/es_419/messages.json index cd34633d5..2a4ffbb8e 100644 --- a/app/_locales/es_419/messages.json +++ b/app/_locales/es_419/messages.json @@ -317,12 +317,6 @@ "buy": { "message": "Comprar" }, - "buyWithWyre": { - "message": "Comprar $1 con Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre le permite usar una tarjeta de débito para depositar $1 directamente en su cuenta de MetaMask." - }, "bytes": { "message": "Bytes" }, @@ -469,12 +463,6 @@ "continue": { "message": "Continuar" }, - "continueToTransak": { - "message": "Continuar a Transak" - }, - "continueToWyre": { - "message": "Continuar a Wyre" - }, "contract": { "message": "Contrato" }, @@ -1030,13 +1018,6 @@ "general": { "message": "General" }, - "getEther": { - "message": "Obtener ether" - }, - "getEtherFromFaucet": { - "message": "Obtener ether de un faucet para $1", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "Volver" }, @@ -2604,9 +2585,6 @@ "termsOfService": { "message": "Términos de servicio" }, - "testFaucet": { - "message": "Probar faucet" - }, "time": { "message": "Tiempo" }, @@ -2866,9 +2844,6 @@ "message": "Verifique este token en $1 y asegúrese de que sea el token con el que quiere realizar la transacción.", "description": "Points the user to etherscan as a place they can verify information about a token. $1 is replaced with the translation for \"etherscan\"" }, - "viewAccount": { - "message": "Ver cuenta" - }, "viewAllDetails": { "message": "Ver todos los detalles" }, diff --git a/app/_locales/et/messages.json b/app/_locales/et/messages.json index 401cf7956..59aefc86c 100644 --- a/app/_locales/et/messages.json +++ b/app/_locales/et/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Teie lehitsejat ei toetata..." }, - "buyWithWyre": { - "message": "Ostke $1 -d Wyre'iga" - }, - "buyWithWyreDescription": { - "message": "Wyre võimaldab kasutada krediitkaarti, et teha $1 sissemakse otse MetaMaski kontole." - }, "bytes": { "message": "Baidid" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "Ühenduse loomine peamise Etherumi võrguga" }, - "continueToWyre": { - "message": "Ava Wyre" - }, "contractDeployment": { "message": "Lepingu juurutamine" }, @@ -323,13 +314,6 @@ "general": { "message": "Üldine teave" }, - "getEther": { - "message": "Hankige eetrit" - }, - "getEtherFromFaucet": { - "message": "Hankige kraanist eetrit $1eest", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Goerli testvõrk" }, @@ -771,9 +755,6 @@ "terms": { "message": "Teenusetingimused" }, - "testFaucet": { - "message": "Testkraan" - }, "tips": { "message": "Preemiad" }, @@ -892,9 +873,6 @@ "userName": { "message": "Kasutajanimi" }, - "viewAccount": { - "message": "Kuva konto" - }, "viewContact": { "message": "Kuva kontakt" }, diff --git a/app/_locales/fa/messages.json b/app/_locales/fa/messages.json index c8522b810..9603c04f3 100644 --- a/app/_locales/fa/messages.json +++ b/app/_locales/fa/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "مرورگر شما پشتیبانی نمیشود" }, - "buyWithWyre": { - "message": "$1 را توسط Wyre خریداری نمایید" - }, - "buyWithWyreDescription": { - "message": "Wyre به شما اجازه میدهد تا یک کردیت کارت را جهت پرداخت 1$ مستقیمًا به حساب MetaMask تان استفاده نمایید." - }, "bytes": { "message": "بایت ها" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "در حال اتصال به شبکه اصلی ایتریم" }, - "continueToWyre": { - "message": "ادامه به Wyre" - }, "contractDeployment": { "message": "تطبیق قرارداد" }, @@ -327,13 +318,6 @@ "general": { "message": "عمومی" }, - "getEther": { - "message": "اتر را بگیرید" - }, - "getEtherFromFaucet": { - "message": "اخذ ایتر از یک فاست برای 1$1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "شبکه آزمایشی Goerli" }, @@ -781,9 +765,6 @@ "terms": { "message": "شرایط استفاده" }, - "testFaucet": { - "message": " آزمایش فاسیت یا Test Faucet " - }, "tips": { "message": "انعام" }, @@ -902,9 +883,6 @@ "userName": { "message": "نام کاربری" }, - "viewAccount": { - "message": "مشاهده حساب" - }, "viewContact": { "message": "مشاهده تماس" }, diff --git a/app/_locales/fi/messages.json b/app/_locales/fi/messages.json index b7f560918..2ba49aee4 100644 --- a/app/_locales/fi/messages.json +++ b/app/_locales/fi/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Selaintasi ei tueta..." }, - "buyWithWyre": { - "message": "Osta $1 :ta Wyrella" - }, - "buyWithWyreDescription": { - "message": "Wyre antaa sinun käyttää luottokorttia, jotta voit tallettaa $1 :ta suoraan MetaMask-tilillesi." - }, "bytes": { "message": "Tavua" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "Yhdistetään Ethereumin pääverkkoon" }, - "continueToWyre": { - "message": "Jatka Wyreen" - }, "contractDeployment": { "message": "Sopimuksen käyttö" }, @@ -327,13 +318,6 @@ "general": { "message": "Yleistä" }, - "getEther": { - "message": "Hanki Etheriä" - }, - "getEtherFromFaucet": { - "message": "Hanki etheriä faucetista kohteelle $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Goerli-testiverkko" }, @@ -778,9 +762,6 @@ "terms": { "message": "Käyttöehdot" }, - "testFaucet": { - "message": "Koe-faucet" - }, "tips": { "message": "Tipit" }, @@ -899,9 +880,6 @@ "userName": { "message": "Käyttäjätunnus" }, - "viewAccount": { - "message": "Näytä tili" - }, "viewContact": { "message": "Näytä yhteyshenkilö" }, diff --git a/app/_locales/fil/messages.json b/app/_locales/fil/messages.json index 8193ed852..a8262f9ae 100644 --- a/app/_locales/fil/messages.json +++ b/app/_locales/fil/messages.json @@ -109,12 +109,6 @@ "browserNotSupported": { "message": "Hindi sinusuportahan ang iyong Browser..." }, - "buyWithWyre": { - "message": "Bumili ng $1 gamit ang Wyre" - }, - "buyWithWyreDescription": { - "message": "Binibigyang-daan ka ng Wyre na gumamit ng credit card para magdeposito ng $1 nang direkta sa iyong MetaMask account." - }, "cancel": { "message": "Kanselahin" }, @@ -151,9 +145,6 @@ "connectingToMainnet": { "message": "Kumokonekta sa Ethereum Mainnet" }, - "continueToWyre": { - "message": "Magpatuloy sa Wyre" - }, "contractDeployment": { "message": "Deployment ng Contract" }, @@ -296,13 +287,6 @@ "general": { "message": "Pangkalahatan" }, - "getEther": { - "message": "Kumuha ng Ether" - }, - "getEtherFromFaucet": { - "message": "Kumuha ng Ether mula sa isang faucet para sa $1", - "description": "Displays network name for Ether faucet" - }, "hardwareWalletConnected": { "message": "Nakakonekta ang hardware wallet" }, @@ -811,9 +795,6 @@ "usedByClients": { "message": "Ginagamit ng iba't ibang client" }, - "viewAccount": { - "message": "Tingnan ang Account" - }, "viewContact": { "message": "Tingnan ang Contact" }, diff --git a/app/_locales/fr/messages.json b/app/_locales/fr/messages.json index b23d498d9..c23b96fee 100644 --- a/app/_locales/fr/messages.json +++ b/app/_locales/fr/messages.json @@ -523,38 +523,9 @@ "message": "Acheter $1", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "Achetez des $1 avec Coinbase Pay", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "Vous pouvez facilement acheter et transférer des cryptomonnaies en utilisant votre compte Coinbase.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "Acheter $1 avec MoonPay", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "MoonPay prend en charge les moyens de paiement populaires, incluant Visa, Mastercard, Apple / Google / Samsung Pay et les virements bancaires dans plus de 145 pays. Les tokens sont déposés sur votre compte MetaMask." - }, - "buyCryptoWithTransak": { - "message": "Acheter $1 avec Transak", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Transak prend en charge les cartes de crédit et de débit, Apple Pay, MobiKwik et les virements bancaires (selon l’emplacement) dans plus de 100 pays. Les tokens $1 sont directement déposés sur votre compte MetaMask.", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "Achetez maintenant" }, - "buyWithWyre": { - "message": "Acheter des $1 avec Wyre" - }, - "buyWithWyreDescription": { - "message": "Intégration facile pour les achats à hauteur de 1000 $. Vérification interactive et rapide des achats pour les comptes qui bénéficient d’un plafond de paiement élevé. Prise en charge des cartes de débit/crédit, d’Apple Pay et des virements bancaires. Disponible dans plus de 100 pays. Dépôt de jetons sur votre compte MetaMask." - }, "bytes": { "message": "Octets" }, @@ -733,18 +704,6 @@ "continue": { "message": "Continuer" }, - "continueToCoinbasePay": { - "message": "Accéder à Coinbase Pay" - }, - "continueToMoonPay": { - "message": "Continuer vers MoonPay" - }, - "continueToTransak": { - "message": "Continuer vers Transak" - }, - "continueToWyre": { - "message": "Continuer vers Wyre" - }, "contract": { "message": "Contrat" }, @@ -957,10 +916,6 @@ "deposit": { "message": "Effectuez un dépôt" }, - "depositCrypto": { - "message": "Effectuer un dépôt de $1", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "En savoir plus" }, @@ -973,12 +928,6 @@ "details": { "message": "Détails" }, - "directDepositCrypto": { - "message": "Déposer directement $1" - }, - "directDepositCryptoExplainer": { - "message": "Si vous avez déjà un peu de $1, la façon la plus rapide d’obtenir $1 dans votre nouveau portefeuille est par dépôt direct." - }, "disabledGasOptionToolTipMessage": { "message": "« $1 » est désactivé parce qu’il ne correspond pas au minimum d’augmentation de 10 % par rapport aux gas fees initiaux.", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "Général" }, - "getEther": { - "message": "Obtenir des Ether" - }, - "getEtherFromFaucet": { - "message": "Obtenir de l’Ether d’un faucet pour le réseau $1.", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "Retour" }, @@ -1928,10 +1870,6 @@ "message": "Le jeton natif de ce réseau est $1. C’est le jeton utilisé pour les frais de gaz.\n", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "Pour interagir avec des applications décentralisées à l’aide de MetaMask, vous devrez avoir $1 dans votre portefeuille.", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "Vous avez besoin d’aide ? Contactez $1", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "Conditions de service" }, - "testFaucet": { - "message": "Faucet testnet" - }, "testNetworks": { "message": "Réseaux de test" }, @@ -4166,9 +4101,6 @@ "view": { "message": "Affichez" }, - "viewAccount": { - "message": "Voir le compte" - }, "viewAllDetails": { "message": "Afficher tous les détails" }, diff --git a/app/_locales/gu/messages.json b/app/_locales/gu/messages.json index 59b79519e..91c0cb076 100644 --- a/app/_locales/gu/messages.json +++ b/app/_locales/gu/messages.json @@ -144,8 +144,5 @@ }, "userName": { "message": "વપરાશકર્તાનામ" - }, - "viewAccount": { - "message": "એકાઉન્ટ જુઓ" } } diff --git a/app/_locales/he/messages.json b/app/_locales/he/messages.json index 67e88b498..646efc5b6 100644 --- a/app/_locales/he/messages.json +++ b/app/_locales/he/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "הדפדפן שלך אינו נתמך..." }, - "buyWithWyre": { - "message": "רכישת את'ר עם Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre מאפשרת לך להשתמש בכרטיס אשראי כדי להפקיד $1 ישירות בחשבון ה-MetaMask שלך." - }, "bytes": { "message": "בייטים" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "מתחבר לרשת אתריום הראשית" }, - "continueToWyre": { - "message": "המשך ל-Wyre" - }, "contractDeployment": { "message": "שליחת חוזה (Contract Deployment)" }, @@ -327,13 +318,6 @@ "general": { "message": "כללי" }, - "getEther": { - "message": "השג/י את'ר" - }, - "getEtherFromFaucet": { - "message": "השג/י את'ר מברז (faucet) עבור ה-$1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "רשת בדיקה Goerli " }, @@ -778,9 +762,6 @@ "terms": { "message": "תנאי שימוש" }, - "testFaucet": { - "message": "בדיקת ברז (Faucet)" - }, "tips": { "message": "טיפים" }, @@ -899,9 +880,6 @@ "userName": { "message": "שם משתמש" }, - "viewAccount": { - "message": "הצג חשבון" - }, "viewContact": { "message": "הצג איש קשר" }, diff --git a/app/_locales/hi/messages.json b/app/_locales/hi/messages.json index 437b9876e..755c922e8 100644 --- a/app/_locales/hi/messages.json +++ b/app/_locales/hi/messages.json @@ -523,38 +523,9 @@ "message": "$1 खरीदें", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "कॉइनबेस पे से $1 खरीदें", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "अपने कॉइनबेस अकाउंट के साथ आप क्रिप्टो को आसानी से खरीद या ट्रांसफर कर सकते हैं।", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "MoonPay से $1 खरीदें", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "MoonPay कई लोकप्रिय भुगतान विधियों को सपोर्ट करता है, जिसमें Visa, Mastercard, Apple / Google / Samsung Pay और 145+ देशों में बैंक हस्तांतरण शामिल हैं। टोकन आपके MetaMask के अकाउंट में जमा होते हैं।" - }, - "buyCryptoWithTransak": { - "message": "Transak से $1 खरीदें", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Transak 100+ देशों में क्रेडिट और डेबिट कार्ड, Apple Pay, MobiKwik और बैंक ट्रांसफ़र (स्थान के आधार पर) को सपोर्ट करता है। $1 सीधे आपके MetaMask के अकाउंट में जमा होता है।", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "अभी खरीदें" }, - "buyWithWyre": { - "message": "Wyre के साथ $1 खरीदें" - }, - "buyWithWyreDescription": { - "message": "$1000 तक की खरीदारी के लिए आसान ऑनबोर्डिंग। तेज़ इंटरैक्टिव उच्च सीमा खरीद सत्यापन। डेबिट / क्रेडिट कार्ड, ऐप्पल पे, बैंक ट्रांसफर का समर्थन करता है। 100+ देशों में उपलब्ध है। टोकन आपके मेटामास्क खाते में जमा होते हैं" - }, "bytes": { "message": "बाइट" }, @@ -733,18 +704,6 @@ "continue": { "message": "जारी रखें" }, - "continueToCoinbasePay": { - "message": "कॉइनबेस-पे पर जारी रहें" - }, - "continueToMoonPay": { - "message": "MoonPay के लिए जारी रखें" - }, - "continueToTransak": { - "message": "Transak के लिए जारी रखें" - }, - "continueToWyre": { - "message": "Wyre पर जारी रखें" - }, "contract": { "message": "अनुबंध" }, @@ -957,10 +916,6 @@ "deposit": { "message": "जमा करें" }, - "depositCrypto": { - "message": "$1 जमा करें", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "अधिक जानें" }, @@ -973,12 +928,6 @@ "details": { "message": "विस्तृत जानकारी" }, - "directDepositCrypto": { - "message": "$1 सीधे जमा करें" - }, - "directDepositCryptoExplainer": { - "message": "यदि आपके पास कुछ $1 पहले से हैं, तो अपने नए वॉलेट में $1 प्राप्त करने का सबसे तेज़ तरीका है सीधे जमा करना है।" - }, "disabledGasOptionToolTipMessage": { "message": "\"$1\" अक्षम किया गया है क्योंकि यह मूल गैस शुल्क से न्यूनतम 10% वृद्धि को पूरा नहीं करता है।", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "सामान्य" }, - "getEther": { - "message": "Ether प्राप्त करें" - }, - "getEtherFromFaucet": { - "message": "$1 के लिए एक फॉसेट से Ether प्राप्त करें", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "वापस जाएं" }, @@ -1928,10 +1870,6 @@ "message": "इस नेटवर्क पर मूल टोकन $1 है। यह गैस शुल्क के लिए इस्तेमाल किया जाने वाला टोकन है।", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "MetaMask का इस्तेमाल करते हुए विकेंद्रीकृत एप्लिकेशन्स के साथ इंटरैक्ट करने के लिए आपके वॉलेट में $1 होना ज़रूरी है।", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "मदद चाहिए? $1 से संपर्क करें", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "सेवा की शर्तें" }, - "testFaucet": { - "message": "फॉसेट का परीक्षण करें" - }, "testNetworks": { "message": "टेस्ट नेटवर्क्स" }, @@ -4166,9 +4101,6 @@ "view": { "message": "देखें" }, - "viewAccount": { - "message": "अकाउंट देखें" - }, "viewAllDetails": { "message": "सभी विवरण देखें" }, diff --git a/app/_locales/hn/messages.json b/app/_locales/hn/messages.json index 6071dc3d3..f94ab181c 100644 --- a/app/_locales/hn/messages.json +++ b/app/_locales/hn/messages.json @@ -122,13 +122,6 @@ "gasPrice": { "message": "गैस मूल्य (जीडब्ल्यूईआई),(GWEI)" }, - "getEther": { - "message": "ईथर प्राप्त करें" - }, - "getEtherFromFaucet": { - "message": "$1 के लिए एक नल से ईथर प्राप्त करें", - "description": "Displays network name for Ether faucet" - }, "here": { "message": "यहां", "description": "as in -click here- for more information (goes with troubleTokenBalances)" @@ -318,9 +311,6 @@ "terms": { "message": "उपयोग की शर्तें" }, - "testFaucet": { - "message": "टेस्ट नलि" - }, "to": { "message": "के लिए" }, @@ -355,9 +345,6 @@ "usedByClients": { "message": "विभिन्न क्लाइंट्स द्वारा उपयोग किया जाता है" }, - "viewAccount": { - "message": "खाता देखें" - }, "visitWebSite": { "message": "हमारी वेब साइट पर जाएं" }, diff --git a/app/_locales/hr/messages.json b/app/_locales/hr/messages.json index 5aa70285d..9aed6392c 100644 --- a/app/_locales/hr/messages.json +++ b/app/_locales/hr/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Vaš se preglednik ne podržava..." }, - "buyWithWyre": { - "message": "Kupi $1 Wyerom" - }, - "buyWithWyreDescription": { - "message": "Wyreom vam se omogućava korištenje kreditnom karticom za polaganje $1 -a izravno na vaš račun za MetaMask." - }, "bytes": { "message": "Bajtovi" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "Povezivanje na glavnu mrežu Ethereum" }, - "continueToWyre": { - "message": "Nastavi na uslugu Wyre" - }, "contractDeployment": { "message": "Primjena ugovora" }, @@ -323,13 +314,6 @@ "general": { "message": "Opće" }, - "getEther": { - "message": "Dohvati Ether" - }, - "getEtherFromFaucet": { - "message": "Dohvati Ether iz svežnja za $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Testna mreža Goerli" }, @@ -774,9 +758,6 @@ "terms": { "message": "Odredbe uporabe" }, - "testFaucet": { - "message": "Testni snop" - }, "tips": { "message": "Napojnice" }, @@ -892,9 +873,6 @@ "userName": { "message": "Korisničko ime" }, - "viewAccount": { - "message": "Prikaz računa" - }, "viewContact": { "message": "Prikaži kontakt" }, diff --git a/app/_locales/ht/messages.json b/app/_locales/ht/messages.json index 89f56b1aa..5b1aaf04f 100644 --- a/app/_locales/ht/messages.json +++ b/app/_locales/ht/messages.json @@ -200,13 +200,6 @@ "gasUsed": { "message": "Gaz yo Itilize" }, - "getEther": { - "message": "Jwenn Ether" - }, - "getEtherFromFaucet": { - "message": "Jwenn Ether nan yon tiyo pou $1 la", - "description": "Displays network name for Ether faucet" - }, "hardware": { "message": "materyèl" }, @@ -537,9 +530,6 @@ "terms": { "message": "Tèm pou itilize" }, - "testFaucet": { - "message": "Tès Tiyo" - }, "to": { "message": "Pou" }, @@ -619,9 +609,6 @@ "usedByClients": { "message": "Itilize pa yon varyete de kliyan diferan" }, - "viewAccount": { - "message": "Wè Kont" - }, "visitWebSite": { "message": "Vizite sit entènèt nou an" }, diff --git a/app/_locales/hu/messages.json b/app/_locales/hu/messages.json index d33d01639..7a48cf68a 100644 --- a/app/_locales/hu/messages.json +++ b/app/_locales/hu/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Az ön böngészője nem támogatott..." }, - "buyWithWyre": { - "message": "Vásároljon $1 -t a Wyre-rel" - }, - "buyWithWyreDescription": { - "message": "A Wyre segítségével egyensen a MetaMaks fiókjában tehet letétbe ETH-t." - }, "bytes": { "message": "Bájtok" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "Csatlakozás a fő Ethereum hálózathoz" }, - "continueToWyre": { - "message": "Tovább a Wyre-re" - }, "contractDeployment": { "message": "Szerződés alkalmazása" }, @@ -323,13 +314,6 @@ "general": { "message": "Általános" }, - "getEther": { - "message": "Ether beszerzése" - }, - "getEtherFromFaucet": { - "message": "Szerezzen Ethert pénzcsapból a(z) $1-ért", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Goerli teszthálózat" }, @@ -774,9 +758,6 @@ "terms": { "message": "Használati feltételek" }, - "testFaucet": { - "message": "Teszt csap" - }, "tips": { "message": "Adományok" }, @@ -892,9 +873,6 @@ "userName": { "message": "Felhasználónév" }, - "viewAccount": { - "message": "Fiók megtekintése" - }, "viewContact": { "message": "Névjegy megtekintése" }, diff --git a/app/_locales/id/messages.json b/app/_locales/id/messages.json index cd057e434..c34fb916a 100644 --- a/app/_locales/id/messages.json +++ b/app/_locales/id/messages.json @@ -523,38 +523,9 @@ "message": "Beli $1", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "Beli $1 melalui Coinbase Pay", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "Anda dapat dengan mudah membeli atau mentransfer kripto dengan akun Coinbase Anda.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "Beli $1 melalui MoonPay", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "MoonPay mendukung metode pembayaran populer, termasuk Visa, Mastercard, Apple/Google/Samsung Pay, dan transfer bank di 145+ negara. Token akan didepositokan ke akun MetaMask Anda." - }, - "buyCryptoWithTransak": { - "message": "Beli $1 melalui Transak", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Transak mendukung kartu kredit & debit, Apple Pay, MobiKwik, dan transfer bank (tergantung lokasi) di 100+ negara. $1 akan langsung didepositokan ke akun MetaMask Anda.", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "Beli Sekarang" }, - "buyWithWyre": { - "message": "Beli $1 dengan Wyre" - }, - "buyWithWyreDescription": { - "message": "Orientasi mudah untuk pembelian hingga $ 1000. Verifikasi pembelian limit tinggi interaktif yang cepat. Mendukung Kartu Debit/Kredit, Apple Pay, Transfer Bank. Tersedia di 100+ negara. Token disetor ke Akun MetaMask Anda" - }, "bytes": { "message": "Byte" }, @@ -733,18 +704,6 @@ "continue": { "message": "Lanjutkan" }, - "continueToCoinbasePay": { - "message": "Lanjutkan ke Coinbase Pay" - }, - "continueToMoonPay": { - "message": "Lanjutkan ke MoonPay" - }, - "continueToTransak": { - "message": "Lanjutkan ke Transak" - }, - "continueToWyre": { - "message": "Lanjutkan ke Wyre" - }, "contract": { "message": "Kontrak" }, @@ -957,10 +916,6 @@ "deposit": { "message": "Deposit" }, - "depositCrypto": { - "message": "Deposit $1", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "Pelajari selengkapnya" }, @@ -973,12 +928,6 @@ "details": { "message": "Detail" }, - "directDepositCrypto": { - "message": "Deposit langsung $1" - }, - "directDepositCryptoExplainer": { - "message": "Jika sudah memiliki $1, cara tercepat mendapatkan $1 di dompet baru Anda adalah dengan deposit langsung." - }, "disabledGasOptionToolTipMessage": { "message": "“$1” dinonaktifkan karena tidak memenuhi kenaikan minimum 10% dari biaya gas asli.", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "Umum" }, - "getEther": { - "message": "Dapatkan Ether" - }, - "getEtherFromFaucet": { - "message": "Dapatkan Ether dari keran untuk jaringan $1.", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "Kembali" }, @@ -1928,10 +1870,6 @@ "message": "Token asli di jaringan ini adalah $1. Ini merupakan token yang digunakan untuk biaya gas.", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "Untuk berinteraksi dengan aplikasi terdesentralisasi menggunakan MetaMask, Anda memerlukan $1 di dompet.", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "Butuh bantuan? Hubungi $1", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "Ketentuan layanan" }, - "testFaucet": { - "message": "Uji fungsi" - }, "testNetworks": { "message": "Jaringan pengujian" }, @@ -4166,9 +4101,6 @@ "view": { "message": "Lihat" }, - "viewAccount": { - "message": "Lihat akun" - }, "viewAllDetails": { "message": "Lihat semua detail" }, diff --git a/app/_locales/it/messages.json b/app/_locales/it/messages.json index df6b077d8..4e5fe8a4a 100644 --- a/app/_locales/it/messages.json +++ b/app/_locales/it/messages.json @@ -408,35 +408,6 @@ "message": "Compra $1", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "Compra $1 con Coinbase Pay", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "Puoi facilmente acquistare o trasferire criptovalute con il tuo account Coinbase.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "Compra $1 con MoonPay", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "MoonPay supporta metodi di pagamento popolari, incluso Visa, Mastercard, Apple / Google / Samsung Pay e bonifici bancari in 145+ paesi. I Token vengono depositati nel tuo account MetaMask." - }, - "buyCryptoWithTransak": { - "message": "Compra $1 con Transak", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Transak supporta carte di credito e debito, Apple Pay, MobiKwik e bonifici bancari (in base alla località) in 100+ paesi. Deposita $1 direttamente nel tuo account MetaMask.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyWithWyre": { - "message": "Compra $1 con Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre ti consente di usare la carta di credito per depositare $1 direttamente nel tuo account MetaMask." - }, "canToggleInSettings": { "message": "Puoi riabilitare questa notifica in Impostazioni -> Avvisi." }, @@ -595,18 +566,6 @@ "continue": { "message": "Continua" }, - "continueToCoinbasePay": { - "message": "Continua su Coinbase Pay" - }, - "continueToMoonPay": { - "message": "Continua su MoonPay" - }, - "continueToTransak": { - "message": "Continua su Transak" - }, - "continueToWyre": { - "message": "Continua su Wyre" - }, "contract": { "message": "Contratto" }, @@ -792,10 +751,6 @@ "deleteNetworkDescription": { "message": "Sei sicuro di voler eliminare questa rete?" }, - "depositCrypto": { - "message": "Deposita $1", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "Scopri di più" }, @@ -808,12 +763,6 @@ "details": { "message": "Dettagli" }, - "directDepositCrypto": { - "message": "Deposito diretto $1" - }, - "directDepositCryptoExplainer": { - "message": "Se hai già $1, il modo più rapido per ottenere $1 nel tuo nuovo portafoglio tramite deposito diretto." - }, "disabledGasOptionToolTipMessage": { "message": "“$1” è disabilitato perché non soddisfa la maggiorazione minima del 10% rispetto al canone gas originario.", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1040,13 +989,6 @@ "general": { "message": "Generale" }, - "getEther": { - "message": "Ottieni Ether" - }, - "getEtherFromFaucet": { - "message": "Ottieni Get Ether da un faucet per $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Rete di test Goerli" }, @@ -1855,9 +1797,6 @@ "termsOfService": { "message": "Termini di Servizio" }, - "testFaucet": { - "message": "Prova Faucet" - }, "tips": { "message": "Suggerimenti" }, @@ -1997,9 +1936,6 @@ "message": "Verifica questo token su $1", "description": "Points the user to etherscan as a place they can verify information about a token. $1 is replaced with the translation for \"etherscan\"" }, - "viewAccount": { - "message": "Vedi Account" - }, "viewAllDetails": { "message": "Vedi tutti i dettagli" }, diff --git a/app/_locales/ja/messages.json b/app/_locales/ja/messages.json index 1739957a7..8f69950fa 100644 --- a/app/_locales/ja/messages.json +++ b/app/_locales/ja/messages.json @@ -523,38 +523,9 @@ "message": "$1 を購入", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "Coinbase Pay で $1 を購入", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "Coinbase アカウントで簡単に仮想通貨を購入または送金できます。", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "MoonPay で $1 を購入", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "MoonPay は 145 か国以上で、Visa、Mastercard、Apple / Google / Samsung Pay、銀行送金などの一般的な支払方法に対応しています。トークンは MetaMask アカウントに入金されます。" - }, - "buyCryptoWithTransak": { - "message": "Transak で $1 を購入", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Transak は、100 か国以上でクレジット・デビットカード、Apple Pay、MobiKwik、銀行送金 (場所による) に対応しています。$1 は MetaMask アカウントに直接入金されます。", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "今すぐ購入" }, - "buyWithWyre": { - "message": "Wyreで$1を購入" - }, - "buyWithWyreDescription": { - "message": "簡単なオンボーディングプロセスで最高 $ 1000 購入可能。迅速かつインタラクティブな高限度額の購入検証。デビット・クレジットカード、Apple Pay、銀行送金に対応。100か国以上で利用可能。トークンは MetaMask アカウントに入金されます。" - }, "bytes": { "message": "バイト" }, @@ -733,18 +704,6 @@ "continue": { "message": "続行" }, - "continueToCoinbasePay": { - "message": "Coinbase Pay に進む" - }, - "continueToMoonPay": { - "message": "MoonPay に進む" - }, - "continueToTransak": { - "message": "Transakに進む" - }, - "continueToWyre": { - "message": "Wyreに進む" - }, "contract": { "message": "コントラクト" }, @@ -957,10 +916,6 @@ "deposit": { "message": "入金" }, - "depositCrypto": { - "message": "$1 を入金", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "詳細" }, @@ -973,12 +928,6 @@ "details": { "message": "詳細" }, - "directDepositCrypto": { - "message": "$1 を直接入金" - }, - "directDepositCryptoExplainer": { - "message": "すでに $1 をお持ちの場合、新しいウォレットに最も素早く $1 を入金する方法が、直接入金です。" - }, "disabledGasOptionToolTipMessage": { "message": "元のガス代の 10% 以上という増額の条件を満たしていないため、「$1」は利用できません。", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "一般" }, - "getEther": { - "message": "Etherを取得" - }, - "getEtherFromFaucet": { - "message": "$1 ネットワークのフォーセットから Ether を取得", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "戻る" }, @@ -1928,10 +1870,6 @@ "message": "このネットワークのネイティブトークンは $1 です。ガス代にもこのトークンが使用されます。", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "MetaMask で分散型アプリケーションとやり取りするには、ウォレットに $1 が必要です。", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "アシスタンスが必要な場合は、$1にお問い合わせください", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "サービス規約" }, - "testFaucet": { - "message": "テストフォーセット" - }, "testNetworks": { "message": "テストネットワーク" }, @@ -4166,9 +4101,6 @@ "view": { "message": "表示" }, - "viewAccount": { - "message": "アカウントを表示" - }, "viewAllDetails": { "message": "すべての詳細の表示" }, diff --git a/app/_locales/kn/messages.json b/app/_locales/kn/messages.json index 08eeb00a5..42de7215f 100644 --- a/app/_locales/kn/messages.json +++ b/app/_locales/kn/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "ನಿಮ್ಮ ಬ್ರೌಸರ್ ಬೆಂಬಲಿಸುತ್ತಿಲ್ಲ..." }, - "buyWithWyre": { - "message": "Wyre ನೊಂದಿಗೆ $1 ಖರೀದಿಸಿ" - }, - "buyWithWyreDescription": { - "message": "ನಿಮ್ಮ MetaMask ಖಾತೆಗೆ $1 ಅನ್ನು ಜಮಾ ಮಾಡಲು ಕ್ರೆಡಿಟ್ ಕಾರ್ಡ್ ಬಳಸಲು Wyre ನಿಮಗೆ ಅನುಮತಿಸುತ್ತದೆ." - }, "bytes": { "message": "ಬೈಟ್‌ಗಳು" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "ಮುಖ್ಯ ಎಥೆರಿಯಮ್ ನೆಟ್‌ವರ್ಕ್‌ಗೆ ಸಂಪರ್ಕಿಸಲಾಗುತ್ತಿದೆ" }, - "continueToWyre": { - "message": "Wyre ಗೆ ಮುಂದುವರಿಸಿ" - }, "contractDeployment": { "message": "ಒಪ್ಪಂದದ ನಿಯೋಜನೆ" }, @@ -327,13 +318,6 @@ "general": { "message": "ಸಾಮಾನ್ಯ" }, - "getEther": { - "message": "ಎಥರ್ ಪಡೆಯಿರಿ" - }, - "getEtherFromFaucet": { - "message": "$1 ಗಾಗಿ ಫಾಸೆಟ್‌ನಿಂದ ಎಥರ್ ಅನ್ನು ಪಡೆಯಿರಿ", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Goerli ಪರೀಕ್ಷೆ ನೆಟ್‌ವರ್ಕ್" }, @@ -781,9 +765,6 @@ "terms": { "message": "ಬಳಕೆಯ ನಿಯಮಗಳು" }, - "testFaucet": { - "message": "ಫಾಸೆಟ್ ಪರೀಕ್ಷಿಸಿ" - }, "tips": { "message": "ಸಲಹೆಗಳು" }, @@ -902,9 +883,6 @@ "userName": { "message": "ಬಳಕೆದಾರಹೆಸರು" }, - "viewAccount": { - "message": "ಖಾತೆಯನ್ನು ವೀಕ್ಷಿಸಿ" - }, "viewContact": { "message": "ಸಂಪರ್ಕವನ್ನು ವೀಕ್ಷಿಸಿ" }, diff --git a/app/_locales/ko/messages.json b/app/_locales/ko/messages.json index 64ec8d941..36b5a9738 100644 --- a/app/_locales/ko/messages.json +++ b/app/_locales/ko/messages.json @@ -523,38 +523,9 @@ "message": "$1 구매", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "Coinbase Pay로 $1 구매", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "Coinbase 계정으로 손쉽게 암호화폐를 구매하거나 전송할 수 있습니다.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "문페이(MoonPay)로 $1 구매", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "문페이는 비자, 마스터카드, 애플/구글/삼성 페이, 145개국 이상에서 이용 가능한 은행 송금을 비롯해 다양한 결제 방법을 지원합니다. 토큰은 MetaMask 계정에 입금됩니다." - }, - "buyCryptoWithTransak": { - "message": "트랜삭(Transak)으로 $1 구매", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "트랜삭은 100개국 이상에서 신용카드, 직불카드, 애플 페이, 모비퀵, 은행 송금(지역에 따라 지원이 안 될 수 있음)을 지원합니다. $1 입금은 MetaMask 계정으로 직접 처리됩니다.", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "지금 구매" }, - "buyWithWyre": { - "message": "Wyre로 $1 구매" - }, - "buyWithWyreDescription": { - "message": "최대 $ 1000 구매까지 간편한 온보딩. 신속한 대화형 상한 구매 확인. 직불/신용 카드, Apple Pay, 은행 송금 지원. 100여국 이상에서 사용 가능. MetaMask 계정으로 토큰 입금" - }, "bytes": { "message": "바이트" }, @@ -733,18 +704,6 @@ "continue": { "message": "계속" }, - "continueToCoinbasePay": { - "message": "Coinbase Pay로 계속하기" - }, - "continueToMoonPay": { - "message": "문페이로 계속하기" - }, - "continueToTransak": { - "message": "Transak으로 계속" - }, - "continueToWyre": { - "message": "Wyre로 넘어가기" - }, "contract": { "message": "계약" }, @@ -957,10 +916,6 @@ "deposit": { "message": "예치" }, - "depositCrypto": { - "message": "$1 입금", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "자세히 알아보기" }, @@ -973,12 +928,6 @@ "details": { "message": "세부 정보" }, - "directDepositCrypto": { - "message": "$1 직접 입금" - }, - "directDepositCryptoExplainer": { - "message": "이미 $1(이)가 있는 경우 직접 입금하는 것이 새 지갑에 $1(을)를 넣는 가장 빠른 방법입니다." - }, "disabledGasOptionToolTipMessage": { "message": "“$1” 유형은 오리지널 가스비를 최소 10% 인상해야 하는 기준에 미치지 못하므로 비활성화되었습니다.", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "일반" }, - "getEther": { - "message": "Ether 얻기" - }, - "getEtherFromFaucet": { - "message": "$1 네크워크 포시트에서 Ether 얻기", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "뒤로 가기" }, @@ -1928,10 +1870,6 @@ "message": "이 네트워크의 네이티브 토큰은 $1입니다. 이는 가스비 지불에 사용하는 토큰입니다.", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "MetaMask로 디앱을 이용하려면 지갑에 $1(이)가 있어야 합니다.", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "도움이 필요하신가요? $1에 문의하세요.", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "서비스 약관" }, - "testFaucet": { - "message": "수도꼭지(faucet) 테스트" - }, "testNetworks": { "message": "테스트 네트워크" }, @@ -4166,9 +4101,6 @@ "view": { "message": "보기" }, - "viewAccount": { - "message": "계정 보기" - }, "viewAllDetails": { "message": "모든 세부 정보 보기" }, diff --git a/app/_locales/lt/messages.json b/app/_locales/lt/messages.json index c078c6fd4..f703eb3b5 100644 --- a/app/_locales/lt/messages.json +++ b/app/_locales/lt/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Jūsų naršyklė neatpažįstama..." }, - "buyWithWyre": { - "message": "Pirkti $1 su „Wyre“" - }, - "buyWithWyreDescription": { - "message": "„Wyre“ leidžia naudotis kreditine kortele norint įnešti $1 tiesiai į jūsų „MetaMask“ paskyrą." - }, "bytes": { "message": "Baitai" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "Jungiamasi prie pagrindinio „Ethereum“ tinklo" }, - "continueToWyre": { - "message": "Tęsti su „Wyre“" - }, "contractDeployment": { "message": "Sutarties išdėstymas" }, @@ -327,13 +318,6 @@ "general": { "message": "Bendra" }, - "getEther": { - "message": "Gauti eterių" - }, - "getEtherFromFaucet": { - "message": "Gaukite eterių iš čiaupo $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "„Goerli“ bandomasis tinklas" }, @@ -781,9 +765,6 @@ "terms": { "message": "Naudojimo sąlygos" }, - "testFaucet": { - "message": "Testuoti čiaupą" - }, "tips": { "message": "Arbatpinigiai" }, @@ -902,9 +883,6 @@ "userName": { "message": "Vartotojo vardas" }, - "viewAccount": { - "message": "Žiūrėti paskyrą" - }, "viewContact": { "message": "Peržiūrėti kontaktą" }, diff --git a/app/_locales/lv/messages.json b/app/_locales/lv/messages.json index fe0c24411..46d4b0a7b 100644 --- a/app/_locales/lv/messages.json +++ b/app/_locales/lv/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Jūsu pārlūkprogramma netiek atbalstīta..." }, - "buyWithWyre": { - "message": "Pirkt $1 ar Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre ļauj noguldīt $1 tieši jūsu MetaMask kontā, izmantojot kredītkarti." - }, "bytes": { "message": "Baiti" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "Savienojas ar galveno Ethereum tīklu" }, - "continueToWyre": { - "message": "Pāriet uz Wyre" - }, "contractDeployment": { "message": "Līgumu pielietošana" }, @@ -323,13 +314,6 @@ "general": { "message": "Vispārīgi" }, - "getEther": { - "message": "Saņemt Ether" - }, - "getEtherFromFaucet": { - "message": "Vai vēlaties $1 iegūt Ether no krāna?", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Goerli testa tīkls" }, @@ -777,9 +761,6 @@ "terms": { "message": "Lietošanas noteikumi" }, - "testFaucet": { - "message": "Testa krāns" - }, "tips": { "message": "Dzeramnauda" }, @@ -898,9 +879,6 @@ "userName": { "message": "Lietotājvārds" }, - "viewAccount": { - "message": "Skatīt kontu" - }, "viewContact": { "message": "Skatīt līgumu" }, diff --git a/app/_locales/ml/messages.json b/app/_locales/ml/messages.json index 5662cd9a4..0ee00d08f 100644 --- a/app/_locales/ml/messages.json +++ b/app/_locales/ml/messages.json @@ -144,8 +144,5 @@ }, "userName": { "message": "ഉപയോക്തൃനാമം" - }, - "viewAccount": { - "message": "അക്കൗണ്ട് കാണുക" } } diff --git a/app/_locales/mr/messages.json b/app/_locales/mr/messages.json index 30729773d..5f19a2772 100644 --- a/app/_locales/mr/messages.json +++ b/app/_locales/mr/messages.json @@ -144,8 +144,5 @@ }, "userName": { "message": "वापरकर्तानाव" - }, - "viewAccount": { - "message": "खाते पहा" } } diff --git a/app/_locales/ms/messages.json b/app/_locales/ms/messages.json index a223c3111..fbc374dbb 100644 --- a/app/_locales/ms/messages.json +++ b/app/_locales/ms/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Pelayar anda tidak disokong..." }, - "buyWithWyre": { - "message": "Beli $1 dengan Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre membolehkan anda menggunakan kad kredit untuk mendeposit $1 secara terus ke dalam akaun MetaMask anda." - }, "bytes": { "message": "Bait" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "Menyambung kepada Rangkaian Ethereum Utama" }, - "continueToWyre": { - "message": "Teruskan ke Wyre" - }, "contractDeployment": { "message": "Penyusunan Kontrak" }, @@ -320,13 +311,6 @@ "general": { "message": "Am" }, - "getEther": { - "message": "Dapatkan Ether" - }, - "getEtherFromFaucet": { - "message": "Dapatkan Ether daripada pili untuk $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Rangkaian Ujian Goerli" }, @@ -761,9 +745,6 @@ "terms": { "message": "Syarat-syarat Penggunaan" }, - "testFaucet": { - "message": "Uji Pili" - }, "tips": { "message": "Tip" }, @@ -879,9 +860,6 @@ "userName": { "message": "Nama pengguna" }, - "viewAccount": { - "message": "Paparkan Akaun" - }, "viewContact": { "message": "Lihat Kenalan" }, diff --git a/app/_locales/nl/messages.json b/app/_locales/nl/messages.json index 46266da1c..fc8a1e7fd 100644 --- a/app/_locales/nl/messages.json +++ b/app/_locales/nl/messages.json @@ -119,13 +119,6 @@ "gasPrice": { "message": "Gasprijs (GWEI)" }, - "getEther": { - "message": "Krijg Ether" - }, - "getEtherFromFaucet": { - "message": "Haal Ether uit een kraan voor de $1", - "description": "Displays network name for Ether faucet" - }, "here": { "message": "hier", "description": "as in -click here- for more information (goes with troubleTokenBalances)" @@ -311,9 +304,6 @@ "terms": { "message": "Gebruiksvoorwaarden" }, - "testFaucet": { - "message": "Test de kraan" - }, "to": { "message": "Naar" }, @@ -345,9 +335,6 @@ "usedByClients": { "message": "Gebruikt door verschillende klanten" }, - "viewAccount": { - "message": "Bekijk account" - }, "visitWebSite": { "message": "Bezoek onze website" }, diff --git a/app/_locales/no/messages.json b/app/_locales/no/messages.json index 94c417469..8f9639b6e 100644 --- a/app/_locales/no/messages.json +++ b/app/_locales/no/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Nettleseren din støttes ikke ..." }, - "buyWithWyre": { - "message": "Kjøp $1 med Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre lar deg bruke et kredittkort for å sette inn $1 rett på MetaMask-kontoen din." - }, "cancel": { "message": "Avbryt" }, @@ -169,9 +163,6 @@ "connectingToMainnet": { "message": "Forbinder med hoved-Ethereumnettverk " }, - "continueToWyre": { - "message": "Fortsett til Wyre " - }, "contractDeployment": { "message": "Distribusjon av kontrakten" }, @@ -320,13 +311,6 @@ "general": { "message": "Generell" }, - "getEther": { - "message": "Skaff Ether " - }, - "getEtherFromFaucet": { - "message": "Få Ether fra en kran for $1", - "description": "Displays network name for Ether faucet" - }, "hardware": { "message": "Maskinvare" }, @@ -762,9 +746,6 @@ "terms": { "message": "Brukervilkår" }, - "testFaucet": { - "message": "Testkran" - }, "to": { "message": "Til " }, @@ -880,9 +861,6 @@ "userName": { "message": "Brukernavn" }, - "viewAccount": { - "message": "Se konto" - }, "viewContact": { "message": "Se kontrakt" }, diff --git a/app/_locales/ph/messages.json b/app/_locales/ph/messages.json index 6d55acc85..59e85e104 100644 --- a/app/_locales/ph/messages.json +++ b/app/_locales/ph/messages.json @@ -204,12 +204,6 @@ "buy": { "message": "Bumili" }, - "buyWithWyre": { - "message": "Bumili ng $1 gamit ang Wyre" - }, - "buyWithWyreDescription": { - "message": "Binibigyang-daan ka ng Wyre na gumamit ng debit card para mag-deposit ng $1 sa mismong MetaMask account mo." - }, "bytes": { "message": "Bytes" }, @@ -332,9 +326,6 @@ "continue": { "message": "Magpatuloy" }, - "continueToWyre": { - "message": "Magpatuloy sa Wyre" - }, "contract": { "message": "Kontrata" }, @@ -651,13 +642,6 @@ "general": { "message": "Pangkalahatan" }, - "getEther": { - "message": "Kunin ang Ether" - }, - "getEtherFromFaucet": { - "message": "Kunin ang Ether mula sa isang faucet sa halagang $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Goerli Test Network" }, @@ -1754,9 +1738,6 @@ "termsOfService": { "message": "Mga Tuntunin ng Serbisyo" }, - "testFaucet": { - "message": "Test Faucet" - }, "tips": { "message": "Mga Tip" }, @@ -1917,9 +1898,6 @@ "message": "I-verify ang token na ito sa $1 at tiyaking ito ang token na gusto mong i-trade.", "description": "Points the user to etherscan as a place they can verify information about a token. $1 is replaced with the translation for \"etherscan\"" }, - "viewAccount": { - "message": "Tingnan ang Account" - }, "viewAllDetails": { "message": "Tingnan ang lahat ng detalye" }, diff --git a/app/_locales/pl/messages.json b/app/_locales/pl/messages.json index 6ce027426..aaf196fa7 100644 --- a/app/_locales/pl/messages.json +++ b/app/_locales/pl/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Twoja przeglądarka nie jest obsługiwana..." }, - "buyWithWyre": { - "message": "Kup $1 poprzez Wyre" - }, - "buyWithWyreDescription": { - "message": "Dzięki Wyre możesz użyć karty kredytowej, aby wpłacić $1 bezpośrednio na swoje konto MetaMask." - }, "bytes": { "message": "Bajty" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "Łączenie z główną siecią Ethereum" }, - "continueToWyre": { - "message": "Przejdź do Wyre" - }, "contractDeployment": { "message": "Uruchomienie kontraktu" }, @@ -327,13 +318,6 @@ "general": { "message": "Ogólne" }, - "getEther": { - "message": "Zdobądź Eter" - }, - "getEtherFromFaucet": { - "message": "Zdobądź Eter ze źródła za $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Sieć testowa Goerli" }, @@ -772,9 +756,6 @@ "terms": { "message": "Regulamin" }, - "testFaucet": { - "message": "Źródło testowego ETH" - }, "tips": { "message": "Napiwki" }, @@ -890,9 +871,6 @@ "userName": { "message": "Nazwa użytkownika" }, - "viewAccount": { - "message": "Zobacz konto" - }, "viewContact": { "message": "Wyświetl kontakt" }, diff --git a/app/_locales/pt/messages.json b/app/_locales/pt/messages.json index 0b40cef5f..3373c150b 100644 --- a/app/_locales/pt/messages.json +++ b/app/_locales/pt/messages.json @@ -523,38 +523,9 @@ "message": "Comprar $1", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "Comprar $1 com o Coinbase Pay", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "Você pode comprar ou transferir criptomoedas facilmente com sua conta na Coinbase.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "Compre $1 com o MoonPay", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "O MoonPay aceita formas de pagamento populares, incluindo Visa, Mastercard, Apple Pay, Google Pay, Samsung Pay e transferências bancárias em mais de 145 países. Os tokens são depositados na sua conta da MetaMask." - }, - "buyCryptoWithTransak": { - "message": "Comprar $1 com Transak", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "O Transak aceita cartões de crédito, cartões de débito, Apple Pay, MobiKwik e transferências bancárias (dependendo da localização) em mais de 100 países. $1 deposita diretamente na sua conta da MetaMask.", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "Comprar agora" }, - "buyWithWyre": { - "message": "Comprar $1 com o Wyre" - }, - "buyWithWyreDescription": { - "message": "Integração fácil para compras de até US$ 1.000. Verificação de compra de alto limite rápida e interativa. Aceita cartão de crédito/débito, Apple Pay, transferências bancárias. Disponível em mais de 100 países. Depósito de tokens em sua conta na MetaMask" - }, "bytes": { "message": "Bytes" }, @@ -733,18 +704,6 @@ "continue": { "message": "Continuar" }, - "continueToCoinbasePay": { - "message": "Prosseguir para o Coinbase Pay" - }, - "continueToMoonPay": { - "message": "Continuar para o MoonPay" - }, - "continueToTransak": { - "message": "Continuar para Transak" - }, - "continueToWyre": { - "message": "Continuar para o Wyre" - }, "contract": { "message": "Contrato" }, @@ -957,10 +916,6 @@ "deposit": { "message": "Depositar" }, - "depositCrypto": { - "message": "Depositar $1", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "Saiba mais" }, @@ -973,12 +928,6 @@ "details": { "message": "Detalhes" }, - "directDepositCrypto": { - "message": "Depositar $1 diretamente" - }, - "directDepositCryptoExplainer": { - "message": "Se já tiver alguns $1, a forma mais rápida de colocar $1 em sua nova carteira é por depósito direto." - }, "disabledGasOptionToolTipMessage": { "message": "“$1” está desativado porque não satisfaz o aumento mínimo de 10% em relação à taxa de gás original.", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "Geral" }, - "getEther": { - "message": "Obter Ether" - }, - "getEtherFromFaucet": { - "message": "Receba Ether de um faucet para a rede $1.", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "Voltar" }, @@ -1928,10 +1870,6 @@ "message": "O token nativo dessa rede é $1. Esse é o token usado para taxas de gás.", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "Para interagir com aplicativos descentralizados usando a MetaMask, você precisará de $1 em sua carteira.", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "Precisa de ajuda? Contate $1", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "Termos de Serviço" }, - "testFaucet": { - "message": "Faucet de teste" - }, "testNetworks": { "message": "Redes de teste" }, @@ -4166,9 +4101,6 @@ "view": { "message": "Ver" }, - "viewAccount": { - "message": "Ver conta" - }, "viewAllDetails": { "message": "Ver todos os detalhes" }, diff --git a/app/_locales/pt_BR/messages.json b/app/_locales/pt_BR/messages.json index d35b302c2..a2a6580cc 100644 --- a/app/_locales/pt_BR/messages.json +++ b/app/_locales/pt_BR/messages.json @@ -317,12 +317,6 @@ "buy": { "message": "Comprar" }, - "buyWithWyre": { - "message": "Comprar $1 com Wyre" - }, - "buyWithWyreDescription": { - "message": "Com o Wyre, você pode usar um cartão de débito para depositar $1 diretamente na sua conta da MetaMask." - }, "bytes": { "message": "Bytes" }, @@ -469,12 +463,6 @@ "continue": { "message": "Continuar" }, - "continueToTransak": { - "message": "Continuar para Transak" - }, - "continueToWyre": { - "message": "Continuar para o Wyre" - }, "contract": { "message": "Contrato" }, @@ -1030,13 +1018,6 @@ "general": { "message": "Geral" }, - "getEther": { - "message": "Obter Ether" - }, - "getEtherFromFaucet": { - "message": "Obtenha Ether de um faucet para $1", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "Voltar" }, @@ -2604,9 +2585,6 @@ "termsOfService": { "message": "Termos de Serviço" }, - "testFaucet": { - "message": "Testar faucet" - }, "time": { "message": "Hora" }, @@ -2866,9 +2844,6 @@ "message": "Verifique esse token no $1 e confirme que é o token que você deseja negociar.", "description": "Points the user to etherscan as a place they can verify information about a token. $1 is replaced with the translation for \"etherscan\"" }, - "viewAccount": { - "message": "Ver conta" - }, "viewAllDetails": { "message": "Ver todos os detalhes" }, diff --git a/app/_locales/pt_PT/messages.json b/app/_locales/pt_PT/messages.json index d6faa33b4..ba2364c6f 100644 --- a/app/_locales/pt_PT/messages.json +++ b/app/_locales/pt_PT/messages.json @@ -158,9 +158,6 @@ "userName": { "message": "Nome de utilizador" }, - "viewAccount": { - "message": "Ver Conta" - }, "welcomeBack": { "message": "Bem-vindo de volta!" } diff --git a/app/_locales/ro/messages.json b/app/_locales/ro/messages.json index 6d2a7055b..37e59a345 100644 --- a/app/_locales/ro/messages.json +++ b/app/_locales/ro/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Browserul dvs. nu este compatibil..." }, - "buyWithWyre": { - "message": "Cumpărați $1 cu Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre vă permite să folosiți un card de credit pentru a depune $1 direct în contul dvs. MetaMask." - }, "bytes": { "message": "Octeți" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "Se conectează la rețeaua Ethereum principală" }, - "continueToWyre": { - "message": "Continuați la Wyre" - }, "contractDeployment": { "message": "Implementarea contractului" }, @@ -320,13 +311,6 @@ "gasUsed": { "message": "Suma gaz folosită" }, - "getEther": { - "message": "Obțineți Ether" - }, - "getEtherFromFaucet": { - "message": "Obțineți Ether de la un robinet pentru $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Rețea de test Goerli" }, @@ -768,9 +752,6 @@ "terms": { "message": "Termeni și condiții" }, - "testFaucet": { - "message": "Robinet de testare" - }, "tips": { "message": "Cadouri bănești" }, @@ -883,9 +864,6 @@ "userName": { "message": "Nume utilizator" }, - "viewAccount": { - "message": "Afișați contul" - }, "viewContact": { "message": "Vizualizare contact" }, diff --git a/app/_locales/ru/messages.json b/app/_locales/ru/messages.json index 1874fc415..4cf9df874 100644 --- a/app/_locales/ru/messages.json +++ b/app/_locales/ru/messages.json @@ -523,38 +523,9 @@ "message": "Купить $1", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "Купите $1 с помощью Coinbase Pay", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "Вы можете легко купить или перевести криптовалюту с помощью своего счета Coinbase.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "Купить $1 с помощью MoonPay", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "MoonPay поддерживает популярные способы оплаты, включая Visa, Mastercard, Apple/Google/Samsung Pay, а также банковские переводы в 145 странах. Токены зачисляются на ваш счет MetaMask." - }, - "buyCryptoWithTransak": { - "message": "Купить $1 с помощью Transak", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Transak поддерживает кредитные и дебетовые карты, Apple Pay, MobiKwik и банковские переводы (в зависимости от местоположения) в более чем 100 странах. $1 вносится прямо на ваш счет MetaMask.", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "Купить сейчас" }, - "buyWithWyre": { - "message": "Купить 1 $ с помощью Wyre" - }, - "buyWithWyreDescription": { - "message": "Простая регистрация для покупок на сумму до 1000 $. Быстрая интерактивная проверка покупки с высоким лимитом. Поддерживает дебетовые/кредитные карты, Apple Pay, банковские переводы. Доступно в более чем 100 странах. Токены зачисляются на ваш счет MetaMask" - }, "bytes": { "message": "Байты" }, @@ -733,18 +704,6 @@ "continue": { "message": "Продолжить" }, - "continueToCoinbasePay": { - "message": "Перейти на Coinbase Pay" - }, - "continueToMoonPay": { - "message": "Перейти в MoonPay" - }, - "continueToTransak": { - "message": "Перейти в Transak" - }, - "continueToWyre": { - "message": "Перейти к Wyre" - }, "contract": { "message": "Контракт" }, @@ -957,10 +916,6 @@ "deposit": { "message": "Внести деньги" }, - "depositCrypto": { - "message": "Внесите $1", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "Подробнее" }, @@ -973,12 +928,6 @@ "details": { "message": "Подробности" }, - "directDepositCrypto": { - "message": "Внесите $1 напрямую" - }, - "directDepositCryptoExplainer": { - "message": "Если у вас уже есть немного $1, самый быстрый способ получить $1 в новый кошелек — это прямой депозит." - }, "disabledGasOptionToolTipMessage": { "message": "$1 отключена, поскольку не соответствует минимальному увеличению на 10% от первоначальной платы за газ.", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "Общее" }, - "getEther": { - "message": "Получить Ether" - }, - "getEtherFromFaucet": { - "message": "Получите из крана Ether для сети $1.", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "Назад" }, @@ -1928,10 +1870,6 @@ "message": "Нативный токен этой сети — $1. Этот токен используется для оплаты газа.", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "Для взаимодействия с децентрализованными приложениями с помощью MetaMask вам понадобится $1 в вашем кошельке.", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "Нужна помощь? Обратитесь в $1", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "Условия обслуживания" }, - "testFaucet": { - "message": "Тестовый кран" - }, "testNetworks": { "message": "Протестировать сети" }, @@ -4166,9 +4101,6 @@ "view": { "message": "Просмотр" }, - "viewAccount": { - "message": "Смотреть счет" - }, "viewAllDetails": { "message": "Смотреть все сведения" }, diff --git a/app/_locales/sk/messages.json b/app/_locales/sk/messages.json index 447cc23df..b98b4022f 100644 --- a/app/_locales/sk/messages.json +++ b/app/_locales/sk/messages.json @@ -118,12 +118,6 @@ "browserNotSupported": { "message": "Váš prehliadač nie je podporovaný..." }, - "buyWithWyre": { - "message": "Kúpte $1 s Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre vám umožňuje použiť kreditnú kartu na vloženie depozitu $1 priamo na váš účet MetaMask." - }, "bytes": { "message": "Bajty" }, @@ -166,9 +160,6 @@ "connectingToMainnet": { "message": "Připojuji se k Ethereum Mainnet" }, - "continueToWyre": { - "message": "Pokračovať na Wyre" - }, "contractDeployment": { "message": "Nasazení kontraktu" }, @@ -321,13 +312,6 @@ "general": { "message": "Všeobecne" }, - "getEther": { - "message": "Získejte Ether" - }, - "getEtherFromFaucet": { - "message": "Získejte Ether z faucetu za $1.", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Testovacia sieť Goerli" }, @@ -750,9 +734,6 @@ "terms": { "message": "Podmínky použití" }, - "testFaucet": { - "message": "Testovací faucet" - }, "tips": { "message": "Príspevky" }, @@ -868,9 +849,6 @@ "userName": { "message": "Meno používateľa" }, - "viewAccount": { - "message": "Zobrazit účet" - }, "viewContact": { "message": "Zobraziť kontakt" }, diff --git a/app/_locales/sl/messages.json b/app/_locales/sl/messages.json index d5c4c23f9..247fc2eb3 100644 --- a/app/_locales/sl/messages.json +++ b/app/_locales/sl/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Vaš brskalnik ni podptrt ..." }, - "buyWithWyre": { - "message": "Kupi $1 z Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre vam omogoča, da s kreditno kartico nakažete $1 neposredno na svoj račun MetaMask." - }, "bytes": { "message": "Bajti" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "Povezovanje na glavno omrežje" }, - "continueToWyre": { - "message": "Nadaljuj na Wyre" - }, "contractDeployment": { "message": "Ustvarjanje pogodbe" }, @@ -324,13 +315,6 @@ "general": { "message": "Splošno" }, - "getEther": { - "message": "Pridobi Ether" - }, - "getEtherFromFaucet": { - "message": "Pridobite Ether iz fauceta za $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Testno omrežje Goerli" }, @@ -769,9 +753,6 @@ "terms": { "message": "Pogoji uporabe" }, - "testFaucet": { - "message": "Testni faucet" - }, "tips": { "message": "Nasveti" }, @@ -890,9 +871,6 @@ "userName": { "message": "Uporabniško ime" }, - "viewAccount": { - "message": "Poglej račun" - }, "viewContact": { "message": "Ogled stika" }, diff --git a/app/_locales/sr/messages.json b/app/_locales/sr/messages.json index 824c77e2c..875be6323 100644 --- a/app/_locales/sr/messages.json +++ b/app/_locales/sr/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Vaš pregledač nije podržan..." }, - "buyWithWyre": { - "message": "Kupite $1 preko servisa Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre vam dozvoljava da koristite kreditnu karticu kako biste deponovali $1 pravo na vaš MetaMask nalog." - }, "bytes": { "message": "Bajtovi" }, @@ -169,9 +163,6 @@ "connectingToMainnet": { "message": "Povezuje se na glavnu Ethereum mrežu" }, - "continueToWyre": { - "message": "Nastavite ka Wyre" - }, "contractDeployment": { "message": "Primena ugovora" }, @@ -324,13 +315,6 @@ "general": { "message": "Opšte" }, - "getEther": { - "message": "Nabavite Ether" - }, - "getEtherFromFaucet": { - "message": "Preuzmite Ether sa slavine za $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Test mreža Goerli " }, @@ -887,9 +871,6 @@ "userName": { "message": "Корисничко име" }, - "viewAccount": { - "message": "Прикажи налог" - }, "viewContact": { "message": "Pogledaj kontakt" }, diff --git a/app/_locales/sv/messages.json b/app/_locales/sv/messages.json index dbacb38d4..2b4eb8734 100644 --- a/app/_locales/sv/messages.json +++ b/app/_locales/sv/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Din webbläsare stöds inte..." }, - "buyWithWyre": { - "message": "Köp $1 med Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre låter dig använda ett kreditkort för att sätta in $1 direkt på ditt MetaMask-konto." - }, "cancel": { "message": "Avbryt" }, @@ -166,9 +160,6 @@ "connectingToMainnet": { "message": "Koppla till Ethereums huvudnätverk" }, - "continueToWyre": { - "message": "Fortsätt till Wyre" - }, "contractDeployment": { "message": "Kontraktplacering" }, @@ -317,13 +308,6 @@ "general": { "message": "Allmänt" }, - "getEther": { - "message": "Skaffa Ether" - }, - "getEtherFromFaucet": { - "message": "Få Ether från en kran för $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Goerli testnätverk" }, @@ -762,9 +746,6 @@ "terms": { "message": "Användarvillkor" }, - "testFaucet": { - "message": "Test-faucet" - }, "tips": { "message": "Donationer" }, @@ -877,9 +858,6 @@ "userName": { "message": "Användarnamn" }, - "viewAccount": { - "message": "Visa konto" - }, "viewContact": { "message": "Visa kontakt" }, diff --git a/app/_locales/sw/messages.json b/app/_locales/sw/messages.json index 1377cae31..161b59ee6 100644 --- a/app/_locales/sw/messages.json +++ b/app/_locales/sw/messages.json @@ -121,12 +121,6 @@ "browserNotSupported": { "message": "Kivinjari chaku hakiwezeshwi..." }, - "buyWithWyre": { - "message": "Nunua $1 kwa kutumia Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre inakuwezesha kutumia kadi ya benki kuweka $1 moja kwa moja kwenye akaunti yako ya MetaMask." - }, "cancel": { "message": "Ghairi" }, @@ -166,9 +160,6 @@ "connectingToMainnet": { "message": "Inaunganisha kwenye Mtandao Mkuu wa Ethereum" }, - "continueToWyre": { - "message": "Endelea kwenye Wyre" - }, "contractDeployment": { "message": "Kutoa Mkataba" }, @@ -317,13 +308,6 @@ "general": { "message": "Jumla" }, - "getEther": { - "message": "Pata Ether" - }, - "getEtherFromFaucet": { - "message": "Pata Ether kutoka kwenye mfereji $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Mtandao wa Majaribio wa Goerli" }, @@ -759,9 +743,6 @@ "terms": { "message": "Masharti ya Matumizi" }, - "testFaucet": { - "message": "Mfereji wa Jaribio" - }, "tips": { "message": "Michango" }, @@ -880,9 +861,6 @@ "userName": { "message": "Jina la mtumiaji" }, - "viewAccount": { - "message": "Angalia Akaunti" - }, "viewContact": { "message": "Tazama Mawasiliano" }, diff --git a/app/_locales/ta/messages.json b/app/_locales/ta/messages.json index f6772badb..53b5a906e 100644 --- a/app/_locales/ta/messages.json +++ b/app/_locales/ta/messages.json @@ -167,13 +167,6 @@ "gasPrice": { "message": "எரிவாயு விலை (GWEI)" }, - "getEther": { - "message": "ஈத்தர் கிடைக்கும்" - }, - "getEtherFromFaucet": { - "message": "$ 1 க்கு ஒரு குழாய் இருந்து ஈதர் கிடைக்கும்$1", - "description": "Displays network name for Ether faucet" - }, "here": { "message": "இங்கே", "description": "as in -click here- for more information (goes with troubleTokenBalances)" @@ -426,9 +419,6 @@ "terms": { "message": "பயன்பாட்டு விதிமுறைகளை" }, - "testFaucet": { - "message": "சோதனை குழாய்" - }, "to": { "message": "பெறுநர்" }, @@ -475,9 +465,6 @@ "userName": { "message": "பயனர்பெயர்" }, - "viewAccount": { - "message": "கணக்கைப் பார்" - }, "visitWebSite": { "message": "எங்கள் வலைத்தளத்தைப் பார்வையிடவும்" }, diff --git a/app/_locales/te/messages.json b/app/_locales/te/messages.json index 6f1f3831d..dee823b90 100644 --- a/app/_locales/te/messages.json +++ b/app/_locales/te/messages.json @@ -144,8 +144,5 @@ }, "userName": { "message": "యూజర్‌పేరు" - }, - "viewAccount": { - "message": "ఖాతాను వీక్షించండి" } } diff --git a/app/_locales/th/messages.json b/app/_locales/th/messages.json index 37d721407..42b71a318 100644 --- a/app/_locales/th/messages.json +++ b/app/_locales/th/messages.json @@ -72,9 +72,6 @@ "connectingToMainnet": { "message": "เชื่อมต่อกับเครือข่าย Ethereum หลัก" }, - "continueToWyre": { - "message": "ไปที่ Wyre" - }, "contractDeployment": { "message": "การติดตั้งสัญญา" }, @@ -164,13 +161,6 @@ "general": { "message": "ทั่วไป" }, - "getEther": { - "message": "รับอีเธอร์" - }, - "getEtherFromFaucet": { - "message": "รับอีเธอร์ที่ปล่อยจาก $1", - "description": "Displays network name for Ether faucet" - }, "here": { "message": "ที่นี่", "description": "as in -click here- for more information (goes with troubleTokenBalances)" @@ -396,9 +386,6 @@ "terms": { "message": "ข้อตกลงในการใช้งาน" }, - "testFaucet": { - "message": "ตัวแจกจ่ายเพื่อการทดสอบ" - }, "to": { "message": "ถึง" }, @@ -445,9 +432,6 @@ "usedByClients": { "message": "ถูกใช้งานโดยหลายไคลเอนท์" }, - "viewAccount": { - "message": "ดูบัญชี" - }, "visitWebSite": { "message": "เยี่ยมชมเว็บไซต์ของเรา" }, diff --git a/app/_locales/tl/messages.json b/app/_locales/tl/messages.json index 5aab2fe6e..b342de978 100644 --- a/app/_locales/tl/messages.json +++ b/app/_locales/tl/messages.json @@ -523,38 +523,9 @@ "message": "Bumili ng $1", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "Bumili ng $1 gamit ang Coinbase Pay", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "Madali kang makakabili o makakapagtransfer ng crypto gamit ang iyong Coinbase account.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "Bumili ng $1 gamit ang MoonPay", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "Suportado ng MoonPay ang mga kilalang paraan ng pagbabayad, kabilang ang Visa, Mastercard, Apple / Google / Samsung Pay, at mga bank transfer sa higit 145 na bansa. Ang mga token ay madedeposito sa iyong MetaMask account." - }, - "buyCryptoWithTransak": { - "message": "Bumili ng $1 gamit ang Transak", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Suportado ng Transak ang mga credit at debit card, Apple Pay, MobiKwik, at mga bank transfer (depende sa lokasyon) sa higit 100 bansa. Ang $1 ay direktang madedeposito sa iyong MetaMask account.", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "Bilhin Ngayon" }, - "buyWithWyre": { - "message": "Bumili ng $1 gamit ang Wyre" - }, - "buyWithWyreDescription": { - "message": "Madaling onboarding para sa mga pagbili hanggang $ 1000. Mabilis na interactive na high limit na pag-verify ng pagbili. Sinusuportahan ang Debit/Credit Card, Apple Pay, Bank Transfers. Available sa 100+ na mga bansa. Deposito ng mga token sa iyong MetaMask Account" - }, "bytes": { "message": "Bytes" }, @@ -733,18 +704,6 @@ "continue": { "message": "Magpatuloy" }, - "continueToCoinbasePay": { - "message": "Magpatuloy sa Coinbase Pay" - }, - "continueToMoonPay": { - "message": "Magpatuloy sa MoonPay" - }, - "continueToTransak": { - "message": "Magpatuloy sa Transak" - }, - "continueToWyre": { - "message": "Magpatuloy sa Wyre" - }, "contract": { "message": "Kontrata" }, @@ -957,10 +916,6 @@ "deposit": { "message": "Deposito" }, - "depositCrypto": { - "message": "Magdeposito ng $1", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "Matuto pa" }, @@ -973,12 +928,6 @@ "details": { "message": "Mga Detalye" }, - "directDepositCrypto": { - "message": "Direktang Magdeposito ng $1" - }, - "directDepositCryptoExplainer": { - "message": "Kung mayroon ka ng $1, ang pinakamabilis na paraan upang mailagay ang $1 sa iyong bagong wallet ay sa direktang pag-deposit." - }, "disabledGasOptionToolTipMessage": { "message": "Ang “$1” ay naka-disable dahil hindi nito naabot ang minimum na 10% na dagdag mula sa orihinal na singil sa gas.", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "Pangkalahatan" }, - "getEther": { - "message": "Kunin ang Ether" - }, - "getEtherFromFaucet": { - "message": "Kunin ang Ether mula sa isang faucet para sa network na $1.", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "Bumalik" }, @@ -1928,10 +1870,6 @@ "message": "Ang native token sa network na ito ay $1. Ito ang token na ginagamit para sa mga gas fee.", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "Para makipag-ugnayan sa mga desentralisadong applicaiton gamit ang MetaMask, kakailanganin mo ng $1 sa iyong wallet.", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "Kailangan ng tulong? Makipag-ugnayan sa $1", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "Mga Tuntunin ng Serbisyo" }, - "testFaucet": { - "message": "Test Faucet" - }, "testNetworks": { "message": "Suriin ang mga network" }, @@ -4166,9 +4101,6 @@ "view": { "message": "Tingnan" }, - "viewAccount": { - "message": "Tingnan ang Account" - }, "viewAllDetails": { "message": "Tingnan ang lahat ng detalye" }, diff --git a/app/_locales/tr/messages.json b/app/_locales/tr/messages.json index 180558fc6..1d4d6194d 100644 --- a/app/_locales/tr/messages.json +++ b/app/_locales/tr/messages.json @@ -523,38 +523,9 @@ "message": "$1 satın al", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "Coinbase Pay ile 1 USD al", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "Coinbase hesabınla kolayca kripto para satın alabilir veya transfer edebilirsin.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "MoonPay ile $1 satın al", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "MoonPay, Visa, Mastercard, Apple / Google / Samsung Pay dahil olmak üzere popüler ödeme yöntemlerini ve 145'ten fazla ülkede banka havalelerini destekler. Token'lar MetaMask hesabına yatırılır." - }, - "buyCryptoWithTransak": { - "message": "Transak ile $1 satın al", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Transak, 100'den fazla ülkede kredi ve banka kartlarını, Apple Pay, MobiKwik ve banka transferlerini (konuma bağlı olarak) destekler. $1 doğrudan MetaMask hesabına yatırılır.", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "Şimdi Satın Al" }, - "buyWithWyre": { - "message": "Wyre ile $1 satın al" - }, - "buyWithWyreDescription": { - "message": "1000$'a kadar satın alma işlemlerinde kolay oryantasyon. Banka Kartı/Kredi Kartı, Apple Pay, Banka Transferlerini destekler. +100 ülkede kullanılabilir. Token'lar MetaMask Hesabına yatırılır" - }, "bytes": { "message": "Bayt" }, @@ -733,18 +704,6 @@ "continue": { "message": "Devam et" }, - "continueToCoinbasePay": { - "message": "Coinbase Pay'e devam et" - }, - "continueToMoonPay": { - "message": "MoonPay'e devam et" - }, - "continueToTransak": { - "message": "Transak'a Devam Et" - }, - "continueToWyre": { - "message": "Wyre'a Devam Et" - }, "contract": { "message": "Sözleşme" }, @@ -957,10 +916,6 @@ "deposit": { "message": "Para Yatır" }, - "depositCrypto": { - "message": "$1 yatır", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "Daha fazla bilgi edinin" }, @@ -973,12 +928,6 @@ "details": { "message": "Ayrıntılar" }, - "directDepositCrypto": { - "message": "Doğrudan $1 Yatır" - }, - "directDepositCryptoExplainer": { - "message": "Halihazırda $1 sahibiysen yeni cüzdanına doğrudan para yatırma yoluyla $1 almanın en hızlı yolu." - }, "disabledGasOptionToolTipMessage": { "message": "Orijinal gas ücretinden minimum %10'luk bir artışı karşılamadığı için \"$1\" devre dışı bırakıldı.", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "Genel" }, - "getEther": { - "message": "Ether Al" - }, - "getEtherFromFaucet": { - "message": "Musluktan $1 karşılığı Ether al", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "Geri git" }, @@ -1928,10 +1870,6 @@ "message": "Bu ağdaki yerli token $1. Bu gaz ücretleri için kullanılan tokendir.", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "MetaMask kullanarak merkezi olmayan uygulamalarla etkileşim kurmak için cüzdanında $1 bulunmasına ihtiyacın olacak.", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "Yardıma mı ihtiyacınız var? $1 bölümüne ulaşın", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "Hizmet şartları" }, - "testFaucet": { - "message": "Test musluğu" - }, "testNetworks": { "message": "Test ağları" }, @@ -4166,9 +4101,6 @@ "view": { "message": "Görüntüle" }, - "viewAccount": { - "message": "Hesabı görüntüle" - }, "viewAllDetails": { "message": "Tüm bilgileri görüntüle" }, diff --git a/app/_locales/uk/messages.json b/app/_locales/uk/messages.json index d3c716ff2..6609fec2f 100644 --- a/app/_locales/uk/messages.json +++ b/app/_locales/uk/messages.json @@ -124,12 +124,6 @@ "browserNotSupported": { "message": "Ваш браузер не підтримується..." }, - "buyWithWyre": { - "message": "Купити $1 через Wyre" - }, - "buyWithWyreDescription": { - "message": "Wyre дає змогу використовувати кредитну картку для внесення валюти $1 безпосередньо у свій гаманець MetaMask." - }, "bytes": { "message": "Байти" }, @@ -172,9 +166,6 @@ "connectingToMainnet": { "message": "З'єднуємось з Головною мережею Ethereum" }, - "continueToWyre": { - "message": "Продовжити у Wyre" - }, "contractDeployment": { "message": "Розгортання контракту" }, @@ -327,13 +318,6 @@ "general": { "message": "Загальні" }, - "getEther": { - "message": "Отримати Ефір" - }, - "getEtherFromFaucet": { - "message": "Отримайте Ether з крану за $1", - "description": "Displays network name for Ether faucet" - }, "goerli": { "message": "Тестова мережа Goerli " }, @@ -781,9 +765,6 @@ "terms": { "message": "Умови використання" }, - "testFaucet": { - "message": "Тестовий кран" - }, "tips": { "message": "Чайові" }, @@ -902,9 +883,6 @@ "userName": { "message": "Ім’я користувача" }, - "viewAccount": { - "message": "Переглянути обліковий запис" - }, "viewContact": { "message": "Переглянути контакт" }, diff --git a/app/_locales/vi/messages.json b/app/_locales/vi/messages.json index 17e6d2331..bd8ff7efb 100644 --- a/app/_locales/vi/messages.json +++ b/app/_locales/vi/messages.json @@ -523,38 +523,9 @@ "message": "Mua $1", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "Mua $1 bằng Coinbase Pay", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "Bạn có thể dễ dàng mua hoặc chuyển khoản tiền điện tử bằng tài khoản Coinbase của mình.", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "Mua $1 bằng MoonPay", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "MoonPay hỗ trợ các phương thức thanh toán phổ biến, bao gồm Visa, Mastercard, Apple / Google / Samsung Pay và chuyển khoản ngân hàng tại hơn 145 quốc gia. Nạp token vào tài khoản MetaMask của bạn." - }, - "buyCryptoWithTransak": { - "message": "Mua $1 bằng Transak", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Transak hỗ trợ thẻ tín dụng và ghi nợ, Apple Pay, MobiKwik và chuyển khoản ngân hàng (tùy thuộc vào vị trí) tại hơn 100 quốc gia. Nạp trực tiếp $1 vào tài khoản MetaMask của bạn.", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "Mua ngay" }, - "buyWithWyre": { - "message": "Mua $1 qua Wyre" - }, - "buyWithWyreDescription": { - "message": "Dễ dàng tham gia đối với các giao dịch mua lên đến $1.000. Xác minh mua hàng giới hạn cao và tương tác nhanh. Hỗ trợ Thẻ Tín dụng/Ghi nợ, Apple Pay, Chuyển khoản Ngân hàng. Hiện có tại hơn 100 quốc gia. Nạp token vào Tài khoản MetaMask của bạn" - }, "bytes": { "message": "Byte" }, @@ -733,18 +704,6 @@ "continue": { "message": "Tiếp tục" }, - "continueToCoinbasePay": { - "message": "Tiếp tục đến Coinbase Pay" - }, - "continueToMoonPay": { - "message": "Tiếp tục đến MoonPay" - }, - "continueToTransak": { - "message": "Tiếp tục đến Transak" - }, - "continueToWyre": { - "message": "Tiếp tục chuyển đến Wyre" - }, "contract": { "message": "Hợp đồng" }, @@ -957,10 +916,6 @@ "deposit": { "message": "Nạp" }, - "depositCrypto": { - "message": "Nạp $1", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "Tìm hiểu thêm" }, @@ -973,12 +928,6 @@ "details": { "message": "Chi tiết" }, - "directDepositCrypto": { - "message": "Nạp trực tiếp $1" - }, - "directDepositCryptoExplainer": { - "message": "Nếu bạn đã có một ít $1, nạp trực tiếp là cách nhanh nhất để nhận $1 trong ví mới." - }, "disabledGasOptionToolTipMessage": { "message": "“$1” bị vô hiệu hóa vì không đạt mức tăng tối thiểu 10% so với phí gas ban đầu.", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "Chung" }, - "getEther": { - "message": "Nhận Ether" - }, - "getEtherFromFaucet": { - "message": "Nhận Ether từ một vòi dành cho mạng $1.", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "Quay Lại" }, @@ -1928,10 +1870,6 @@ "message": "Token gốc của mạng này là $1. Token này được dùng làm phí gas.", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "Để tương tác với các ứng dụng phi tập trung bằng MetaMask, bạn sẽ cần $1 trong ví.", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "Bạn cần trợ giúp? Liên hệ $1", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "Điều khoản dịch vụ" }, - "testFaucet": { - "message": "Vòi thử nghiệm" - }, "testNetworks": { "message": "Mạng thử nghiệm" }, @@ -4166,9 +4101,6 @@ "view": { "message": "Xem" }, - "viewAccount": { - "message": "Xem tài khoản" - }, "viewAllDetails": { "message": "Xem toàn bộ chi tiết" }, diff --git a/app/_locales/zh_CN/messages.json b/app/_locales/zh_CN/messages.json index cf7a16cd7..af66b9fd8 100644 --- a/app/_locales/zh_CN/messages.json +++ b/app/_locales/zh_CN/messages.json @@ -523,38 +523,9 @@ "message": "购买$1", "description": "$1 is the ticker symbol of a an asset the user is being prompted to purchase" }, - "buyCryptoWithCoinbasePay": { - "message": "用Coinbase Pay购买$1", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithCoinbasePayDescription": { - "message": "您可以使用Coinbase账户轻松购买或转移加密货币。", - "description": "$1 represents the crypto symbol to be purchased" - }, - "buyCryptoWithMoonPay": { - "message": "用MoonPay购买$1", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithMoonPayDescription": { - "message": "MoonPay支持热门的支付方式,包括Visa、万事达卡、Apple / Google / Samsung Pay,以及超过145个国家/地区的银行转账。代币会被存入您的MetaMask账户。" - }, - "buyCryptoWithTransak": { - "message": "用Transak购买$1", - "description": "$1 represents the cypto symbol to be purchased" - }, - "buyCryptoWithTransakDescription": { - "message": "Transak在超过100个国家/地区支持信用卡和借记卡、Apple Pay、MobiKwik和银行转账(取决于地点)。$1会被直接存入您的MetaMask账户。", - "description": "$1 represents the crypto symbol to be purchased" - }, "buyNow": { "message": "立即购买" }, - "buyWithWyre": { - "message": "使用Wyre购买$1" - }, - "buyWithWyreDescription": { - "message": "购买不超过$1000可以轻松开通。快速交互式上限购买验证。支持借记卡/信用卡、Apple Pay、银行转账。适用于100多个国家。代币存入您的MetaMask账户" - }, "bytes": { "message": "字节" }, @@ -733,18 +704,6 @@ "continue": { "message": "继续" }, - "continueToCoinbasePay": { - "message": "继续使用Coinbase Pay" - }, - "continueToMoonPay": { - "message": "继续使用MoonPay" - }, - "continueToTransak": { - "message": "继续前往 Transak" - }, - "continueToWyre": { - "message": "继续前往 Wyre" - }, "contract": { "message": "合约" }, @@ -957,10 +916,6 @@ "deposit": { "message": "存入" }, - "depositCrypto": { - "message": "存入$1", - "description": "$1 represents the crypto symbol to be purchased" - }, "deprecatedTestNetworksLink": { "message": "了解详情" }, @@ -973,12 +928,6 @@ "details": { "message": "详细信息" }, - "directDepositCrypto": { - "message": "直接存入$1" - }, - "directDepositCryptoExplainer": { - "message": "如果您已经有了一些$1,那么在您的新钱包里获得$1的最快方式是直接存入。" - }, "disabledGasOptionToolTipMessage": { "message": "“$1”已被禁用,因为它不满足在原来的燃料费用基础上至少增加10%的要求。", "description": "$1 is gas estimate type which can be market or aggressive" @@ -1432,13 +1381,6 @@ "general": { "message": "常规" }, - "getEther": { - "message": "获取以太币" - }, - "getEtherFromFaucet": { - "message": "从 $1 网络的水龙头获取以太币", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "返回" }, @@ -1928,10 +1870,6 @@ "message": "此网络上的原生代币为$1。它是用于燃料费的代币。", "description": "$1 represents the name of the native token on the current network" }, - "needCryptoInWallet": { - "message": "要使用MetaMask与去中心化应用程序互动,您的钱包中需要有$1。", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "需要帮助?请联系 $1", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -3809,9 +3747,6 @@ "termsOfService": { "message": "服务条款" }, - "testFaucet": { - "message": "测试水龙头" - }, "testNetworks": { "message": "测试网络" }, @@ -4166,9 +4101,6 @@ "view": { "message": "查看" }, - "viewAccount": { - "message": "查看账户" - }, "viewAllDetails": { "message": "查看所有详情" }, diff --git a/app/_locales/zh_TW/messages.json b/app/_locales/zh_TW/messages.json index badb17ff3..6fb45813b 100644 --- a/app/_locales/zh_TW/messages.json +++ b/app/_locales/zh_TW/messages.json @@ -200,12 +200,6 @@ "buy": { "message": "買" }, - "buyWithWyre": { - "message": "用 Wyre 購買 $1" - }, - "buyWithWyreDescription": { - "message": "Wyre 讓你使用信用卡在 MetaMask 帳戶中直接存入 $1 。" - }, "bytes": { "message": "位元組" }, @@ -334,9 +328,6 @@ "continue": { "message": "繼續" }, - "continueToWyre": { - "message": "繼續前往 Wyre" - }, "contractAddressError": { "message": "您正在將代幣傳送到代幣合約的位址。這可能會導致這些代幣遺失。" }, @@ -435,19 +426,9 @@ "deleteNetworkDescription": { "message": "你確定要刪除網路嗎?" }, - "depositCrypto": { - "message": "存入 $1", - "description": "$1 represents the crypto symbol to be purchased" - }, "details": { "message": "詳情" }, - "directDepositCrypto": { - "message": "直接存入 $1" - }, - "directDepositCryptoExplainer": { - "message": "如果您已經擁有一些 $1,直接存入功能是讓新錢包最快取得的方式。" - }, "disconnect": { "message": "中斷連結" }, @@ -669,13 +650,6 @@ "general": { "message": "一般" }, - "getEther": { - "message": "取得以太幣" - }, - "getEtherFromFaucet": { - "message": "從水龍頭取得 $1 上的以太幣", - "description": "Displays network name for Ether faucet" - }, "goBack": { "message": "Go Back" }, @@ -899,10 +873,6 @@ "name": { "message": "名稱" }, - "needCryptoInWallet": { - "message": "要使用 MetaMask 存取去中心化應用程式時,您的錢包中需要有 $1。", - "description": "$1 represents the cypto symbol to be purchased" - }, "needHelp": { "message": "需要幫助?聯繫$1", "description": "$1 represents `needHelpLinkText`, the text which goes in the help link" @@ -1444,9 +1414,6 @@ "termsOfService": { "message": "服務條款" }, - "testFaucet": { - "message": "測試水龍頭" - }, "tips": { "message": "提示" }, @@ -1606,9 +1573,6 @@ "message": "在 $1 驗證這個代幣的資訊", "description": "Points the user to etherscan as a place they can verify information about a token. $1 is replaced with the translation for \"etherscan\"" }, - "viewAccount": { - "message": "查看帳戶" - }, "viewAllDetails": { "message": "查看所有詳情" }, diff --git a/app/scripts/lib/buy-url.test.js b/app/scripts/lib/buy-url.test.js deleted file mode 100644 index 80b8d4116..000000000 --- a/app/scripts/lib/buy-url.test.js +++ /dev/null @@ -1,109 +0,0 @@ -import nock from 'nock'; -import { - BUYABLE_CHAINS_MAP, - CHAIN_IDS, - CURRENCY_SYMBOLS, -} from '../../../shared/constants/network'; -import { TRANSAK_API_KEY, MOONPAY_API_KEY } from '../constants/on-ramp'; -import { SWAPS_API_V2_BASE_URL } from '../../../shared/constants/swaps'; -import getBuyUrl from './buy-url'; - -const WYRE_ACCOUNT_ID = 'AC-7AG3W4XH4N2'; -const ETH_ADDRESS = '0x0dcd5d886577d5581b0c524242ef2ee70be3e7bc'; -const MAINNET = { - chainId: CHAIN_IDS.MAINNET, - amount: 5, - address: ETH_ADDRESS, -}; -const BSC = { - chainId: CHAIN_IDS.BSC, - amount: 5, - address: ETH_ADDRESS, -}; -const POLYGON = { - chainId: CHAIN_IDS.POLYGON, - amount: 5, - address: ETH_ADDRESS, -}; - -describe('buy-url', () => { - it('returns Wyre url with an ETH address for Ethereum mainnet', async () => { - nock(SWAPS_API_V2_BASE_URL) - .get( - `/networks/1/fiatOnRampUrl?serviceName=wyre&destinationAddress=${ETH_ADDRESS}¤cy=${CURRENCY_SYMBOLS.ETH}`, - ) - .reply(200, { - url: `https://pay.sendwyre.com/purchase?accountId=${WYRE_ACCOUNT_ID}&utm_campaign=${WYRE_ACCOUNT_ID}&destCurrency=${CURRENCY_SYMBOLS.ETH}&utm_medium=widget&paymentMethod=debit-card&reservation=MLZVUF8FMXZUMARJC23B&dest=ethereum%3A${ETH_ADDRESS}&utm_source=checkout`, - }); - const wyreUrl = await getBuyUrl(MAINNET); - expect(wyreUrl).toStrictEqual( - `https://pay.sendwyre.com/purchase?accountId=${WYRE_ACCOUNT_ID}&utm_campaign=${WYRE_ACCOUNT_ID}&destCurrency=${CURRENCY_SYMBOLS.ETH}&utm_medium=widget&paymentMethod=debit-card&reservation=MLZVUF8FMXZUMARJC23B&dest=ethereum%3A${ETH_ADDRESS}&utm_source=checkout`, - ); - nock.cleanAll(); - }); - - it('returns a fallback Wyre url if /orders/reserve API call fails', async () => { - const wyreUrl = await getBuyUrl(MAINNET); - - expect(wyreUrl).toStrictEqual( - `https://pay.sendwyre.com/purchase?dest=ethereum:${ETH_ADDRESS}&destCurrency=${CURRENCY_SYMBOLS.ETH}&accountId=${WYRE_ACCOUNT_ID}&paymentMethod=debit-card`, - ); - }); - - it('returns Transak url with an ETH address for Ethereum mainnet', async () => { - const transakUrl = await getBuyUrl({ ...MAINNET, service: 'transak' }); - const buyableChain = BUYABLE_CHAINS_MAP[MAINNET.chainId]; - - expect(transakUrl).toStrictEqual( - `https://global.transak.com/?apiKey=${TRANSAK_API_KEY}&hostURL=https%3A%2F%2Fmetamask.io&defaultCryptoCurrency=${buyableChain.transakCurrencies[0]}&networks=${buyableChain.network}&walletAddress=${ETH_ADDRESS}`, - ); - }); - - it('returns Transak url with an BNB address for Binance Smart Chain', async () => { - const transakUrl = await getBuyUrl({ ...BSC, service: 'transak' }); - const buyableChain = BUYABLE_CHAINS_MAP[BSC.chainId]; - - expect(transakUrl).toStrictEqual( - `https://global.transak.com/?apiKey=${TRANSAK_API_KEY}&hostURL=https%3A%2F%2Fmetamask.io&defaultCryptoCurrency=${buyableChain.transakCurrencies[0]}&networks=${buyableChain.network}&walletAddress=${ETH_ADDRESS}`, - ); - }); - - it('returns Transak url with an MATIC address for Polygon', async () => { - const transakUrl = await getBuyUrl({ ...POLYGON, service: 'transak' }); - const buyableChain = BUYABLE_CHAINS_MAP[POLYGON.chainId]; - - expect(transakUrl).toStrictEqual( - `https://global.transak.com/?apiKey=${TRANSAK_API_KEY}&hostURL=https%3A%2F%2Fmetamask.io&defaultCryptoCurrency=${buyableChain.transakCurrencies[0]}&networks=${buyableChain.network}&walletAddress=${ETH_ADDRESS}`, - ); - }); - - it('returns a MoonPay url with a prefilled wallet address for the Ethereum network', async () => { - const { moonPay: { defaultCurrencyCode, showOnlyCurrencies } = {} } = - BUYABLE_CHAINS_MAP[MAINNET.chainId]; - const moonPayQueryParams = new URLSearchParams({ - apiKey: MOONPAY_API_KEY, - walletAddress: MAINNET.address, - defaultCurrencyCode, - showOnlyCurrencies, - }); - const queryParams = new URLSearchParams({ - url: `https://buy.moonpay.com?${moonPayQueryParams}`, - context: 'extension', - }); - nock(SWAPS_API_V2_BASE_URL) - .get(`/moonpaySign/?${queryParams}`) - .reply(200, { - url: `https://buy.moonpay.com/?apiKey=${MOONPAY_API_KEY}&walletAddress=${MAINNET.address}&defaultCurrencyCode=${defaultCurrencyCode}&showOnlyCurrencies=${showOnlyCurrencies}&signature=laefTlgkESEc2hv8AZEH9F25VjLEJUADY27D6MccE54%3D`, - }); - const moonPayUrl = await getBuyUrl({ ...MAINNET, service: 'moonpay' }); - expect(moonPayUrl).toStrictEqual( - `https://buy.moonpay.com/?apiKey=${MOONPAY_API_KEY}&walletAddress=${MAINNET.address}&defaultCurrencyCode=${defaultCurrencyCode}&showOnlyCurrencies=${showOnlyCurrencies}&signature=laefTlgkESEc2hv8AZEH9F25VjLEJUADY27D6MccE54%3D`, - ); - nock.cleanAll(); - }); - - it('returns an empty string if generating a MoonPay url fails', async () => { - const moonPayUrl = await getBuyUrl({ ...MAINNET, service: 'moonpay' }); - expect(moonPayUrl).toStrictEqual(''); - }); -}); diff --git a/app/scripts/lib/buy-url.ts b/app/scripts/lib/buy-url.ts deleted file mode 100644 index 30c2b4613..000000000 --- a/app/scripts/lib/buy-url.ts +++ /dev/null @@ -1,245 +0,0 @@ -import log from 'loglevel'; - -import { isNullOrUndefined } from '@metamask/utils'; -import { SWAPS_API_V2_BASE_URL } from '../../../shared/constants/swaps'; -import { - BUYABLE_CHAINS_MAP, - CHAIN_IDS, - WyreChainSettings, - CurrencySymbol, - ChainId, -} from '../../../shared/constants/network'; -import getFetchWithTimeout from '../../../shared/modules/fetch-with-timeout'; -import { - TRANSAK_API_KEY, - MOONPAY_API_KEY, - COINBASEPAY_API_KEY, -} from '../constants/on-ramp'; -import { formatMoonpaySymbol } from '../../../ui/helpers/utils/moonpay'; - -const fetchWithTimeout = getFetchWithTimeout(); - -/** - * Create a Wyre purchase URL. - * - * @param walletAddress - Ethereum destination address - * @param chainId - Current chain ID - * @param symbol - Token symbol to buy - * @returns String - */ -const createWyrePurchaseUrl = async ( - walletAddress: string, - chainId: keyof typeof BUYABLE_CHAINS_MAP, - symbol?: CurrencySymbol, -): Promise => { - const { wyre = {} as WyreChainSettings } = BUYABLE_CHAINS_MAP[chainId]; - const { srn, currencyCode } = wyre; - - const networkId = parseInt(chainId, 16); - const fiatOnRampUrlApi = `${SWAPS_API_V2_BASE_URL}/networks/${networkId}/fiatOnRampUrl?serviceName=wyre&destinationAddress=${walletAddress}¤cy=${ - symbol || currencyCode - }`; - const wyrePurchaseUrlFallback = `https://pay.sendwyre.com/purchase?dest=${srn}:${walletAddress}&destCurrency=${ - symbol || currencyCode - }&accountId=AC-7AG3W4XH4N2&paymentMethod=debit-card`; - try { - const response = await fetchWithTimeout(fiatOnRampUrlApi, { - method: 'GET', - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, - }); - const parsedResponse = await response.json(); - if (response.ok && parsedResponse.url) { - return parsedResponse.url; - } - log.warn('Failed to create a Wyre purchase URL', parsedResponse); - } catch (err) { - log.warn('Failed to create a Wyre purchase URL', err); - } - return wyrePurchaseUrlFallback; // In case the API call would fail, we return a fallback URL for Wyre's Checkout. -}; - -/** - * Create a Transak Checkout URL. - * API docs here: https://www.notion.so/Query-Parameters-9ec523df3b874ec58cef4fa3a906f238 - * - * @param walletAddress - Ethereum destination address - * @param chainId - Current chain ID - * @param symbol - Token symbol to buy - * @returns String - */ -const createTransakUrl = ( - walletAddress: string, - chainId: keyof typeof BUYABLE_CHAINS_MAP, - symbol?: CurrencySymbol, -): string => { - const { nativeCurrency, network } = BUYABLE_CHAINS_MAP[chainId]; - - const queryParams = new URLSearchParams({ - apiKey: TRANSAK_API_KEY, - hostURL: 'https://metamask.io', - defaultCryptoCurrency: symbol || nativeCurrency, - networks: network, - walletAddress, - }); - - return `https://global.transak.com/?${queryParams}`; -}; - -/** - * Create a MoonPay Checkout URL. - * - * @param walletAddress - Destination address - * @param chainId - Current chain ID - * @param symbol - Token symbol to buy - * @returns String - */ -const createMoonPayUrl = async ( - walletAddress: string, - chainId: keyof typeof BUYABLE_CHAINS_MAP, - symbol?: CurrencySymbol, -): Promise => { - const { moonPay: { defaultCurrencyCode, showOnlyCurrencies } = {} as any } = - BUYABLE_CHAINS_MAP[chainId]; - const moonPayQueryParams = new URLSearchParams({ - apiKey: MOONPAY_API_KEY, - walletAddress, - defaultCurrencyCode: symbol - ? formatMoonpaySymbol(symbol, chainId) - : defaultCurrencyCode, - showOnlyCurrencies, - }); - const queryParams = new URLSearchParams({ - url: `https://buy.moonpay.com?${moonPayQueryParams}`, - context: 'extension', - }); - const moonPaySignUrl = `${SWAPS_API_V2_BASE_URL}/moonpaySign/?${queryParams}`; - try { - const response = await fetchWithTimeout(moonPaySignUrl, { - method: 'GET', - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, - }); - const parsedResponse = await response.json(); - if (response.ok && parsedResponse.url) { - return parsedResponse.url; - } - log.warn('Failed to create a MoonPay purchase URL', parsedResponse); - } catch (err) { - log.warn('Failed to create a MoonPay purchase URL', err); - } - return ''; -}; - -/** - * Create a Coinbase Pay Checkout URL. - * - * @param walletAddress - Ethereum destination address - * @param chainId - Current chain ID - * @param symbol - Token symbol to buy - * @returns String - */ -const createCoinbasePayUrl = ( - walletAddress: string, - chainId: keyof typeof BUYABLE_CHAINS_MAP, - symbol?: CurrencySymbol, -): string => { - // since coinbasePayCurrencies is going to be extended to include all tokens supported - // we now default to nativeCurrency instead of the 2 previous tokens + eth that we had before - const { nativeCurrency } = BUYABLE_CHAINS_MAP[chainId]; - const queryParams = new URLSearchParams({ - appId: COINBASEPAY_API_KEY, - attribution: 'extension', - destinationWallets: JSON.stringify([ - { - address: walletAddress, - assets: symbol ? [symbol] : [nativeCurrency], - }, - ]), - }); - return `https://pay.coinbase.com/buy?${queryParams}`; -}; - -/** - * Gives the caller a url at which the user can acquire eth, depending on the network they are in - * - * @param opts - Options required to determine the correct url - * @param opts.chainId - The chainId for which to return a url - * @param opts.address - The address the bought ETH should be sent to. Only relevant if chainId === '0x1'. - * @param opts.service - * @param opts.symbol - The symbol of the token to buy. Only relevant if buying a token. - * @returns The url at which the user can access ETH, while in the given chain. If the passed - * chainId does not match any of the specified cases, or if no chainId is given, returns undefined. - */ -export default async function getBuyUrl({ - chainId, - address, - service, - symbol, -}: { - chainId: keyof typeof BUYABLE_CHAINS_MAP; - address?: string; - service?: string; - symbol?: CurrencySymbol; -}): Promise { - let serviceToUse = service; - // default service by network if not specified - if (isNullOrUndefined(service)) { - // eslint-disable-next-line no-param-reassign - serviceToUse = getDefaultServiceForChain(chainId); - } - - switch (serviceToUse) { - case 'wyre': - if (address) { - return await createWyrePurchaseUrl(address as string, chainId, symbol); - } - throw new Error('Address is required when requesting url for Wyre'); - case 'transak': - if (address) { - return createTransakUrl(address as string, chainId, symbol); - } - throw new Error('Address is required when requesting url for Transak'); - case 'moonpay': - if (address) { - return createMoonPayUrl(address as string, chainId, symbol); - } - throw new Error('Address is required when requesting url for Moonpay'); - case 'coinbase': - if (address) { - return createCoinbasePayUrl(address as string, chainId, symbol); - } - throw new Error( - 'Address is required when requesting url for Coinbase Pay', - ); - case 'metamask-faucet': - return 'https://faucet.metamask.io/'; - case 'goerli-faucet': - return 'https://goerli-faucet.slock.it/'; - case 'sepolia-faucet': - return 'https://faucet.sepolia.dev/'; - default: - throw new Error( - `Unknown cryptocurrency exchange or faucet: "${service}"`, - ); - } -} - -function getDefaultServiceForChain(chainId: ChainId): string { - switch (chainId) { - case CHAIN_IDS.MAINNET: - return 'wyre'; - case CHAIN_IDS.GOERLI: - return 'goerli-faucet'; - case CHAIN_IDS.SEPOLIA: - return 'sepolia-faucet'; - default: - throw new Error( - `No default cryptocurrency exchange or faucet for chainId: "${chainId}"`, - ); - } -} diff --git a/development/ts-migration-dashboard/files-to-convert.json b/development/ts-migration-dashboard/files-to-convert.json index 1a509ecab..254019f80 100644 --- a/development/ts-migration-dashboard/files-to-convert.json +++ b/development/ts-migration-dashboard/files-to-convert.json @@ -68,8 +68,6 @@ "app/scripts/lib/ComposableObservableStore.js", "app/scripts/lib/ComposableObservableStore.test.js", "app/scripts/lib/account-tracker.js", - "app/scripts/lib/buy-url.js", - "app/scripts/lib/buy-url.test.js", "app/scripts/lib/cleanErrorStack.js", "app/scripts/lib/cleanErrorStack.test.js", "app/scripts/lib/createLoggerMiddleware.js", @@ -456,9 +454,6 @@ "ui/components/app/currency-input/currency-input.stories.js", "ui/components/app/currency-input/currency-input.test.js", "ui/components/app/currency-input/index.js", - "ui/components/app/deposit-popover/on-ramp-item.js", - "ui/components/app/deposit-popover/deposit-popover.js", - "ui/components/app/deposit-popover/index.js", "ui/components/app/detected-token/detected-token-address/detected-token-address.js", "ui/components/app/detected-token/detected-token-address/detected-token-address.stories.js", "ui/components/app/detected-token/detected-token-address/detected-token-address.test.js", @@ -920,16 +915,10 @@ "ui/components/ui/loading-indicator/loading-indicator.js", "ui/components/ui/loading-screen/index.js", "ui/components/ui/loading-screen/loading-screen.component.js", - "ui/components/ui/logo/logo-coinbasepay.js", - "ui/components/ui/logo/logo-deposit-eth.js", "ui/components/ui/logo/logo-lattice.js", "ui/components/ui/logo/logo-ledger.js", - "ui/components/ui/logo/logo-moonpay.js", - "ui/components/ui/logo/logo-moonpay.test.js", "ui/components/ui/logo/logo-qr-based.js", - "ui/components/ui/logo/logo-transak.js", "ui/components/ui/logo/logo-trezor.js", - "ui/components/ui/logo/logo-wyre.js", "ui/components/ui/logo/logo.stories.js", "ui/components/ui/mascot/index.js", "ui/components/ui/mascot/mascot.component.js", diff --git a/package.json b/package.json index 89eaab77d..8f6d5652b 100644 --- a/package.json +++ b/package.json @@ -414,6 +414,7 @@ "@types/pump": "^1.1.1", "@types/react": "^16.9.53", "@types/react-dom": "^17.0.11", + "@types/react-redux": "^7.1.25", "@types/remote-redux-devtools": "^0.5.5", "@types/w3c-web-hid": "^1.0.3", "@types/watchify": "^3.11.1", diff --git a/shared/constants/network.ts b/shared/constants/network.ts index 3fd5e4b33..7f0804685 100644 --- a/shared/constants/network.ts +++ b/shared/constants/network.ts @@ -19,11 +19,6 @@ export type ChainId = typeof CHAIN_IDS[keyof typeof CHAIN_IDS]; */ export type CurrencySymbol = typeof CURRENCY_SYMBOLS[keyof typeof CURRENCY_SYMBOLS]; -/** - * A type that is a union type for the supported symbols on different onramp providers. - */ -type SupportedCurrencySymbol = - typeof SUPPORTED_CURRENCY_SYMBOLS[keyof typeof SUPPORTED_CURRENCY_SYMBOLS]; /** * Test networks have special symbols that combine the network name and 'ETH' * so that they are distinct from mainnet and other networks that use 'ETH'. @@ -31,36 +26,6 @@ type SupportedCurrencySymbol = export type TestNetworkCurrencySymbol = typeof TEST_NETWORK_TICKER_MAP[keyof typeof TEST_NETWORK_TICKER_MAP]; -/** - * MoonPay is a fiat onramp provider, and there are some special strings that - * inform the MoonPay API which network the user is attempting to onramp into. - * This type reflects those possible values. - */ -type MoonPayNetworkAbbreviation = 'BSC' | 'CCHAIN' | 'POLYGON'; - -/** - * MoonPay requires some settings that are configured per network that it is - * enabled on. This type describes those settings. - */ -export type MoonPayChainSettings = { - /** - * What should the default onramp currency be, for example 'eth' on 'mainnet' - * This type matches a single SupportedCurrencySymbol or a - * SupportedCurrencySymbol and a MoonPayNetworkAbbreviation joined by a '_'. - */ - defaultCurrencyCode: - | SupportedCurrencySymbol - | `${SupportedCurrencySymbol}_${MoonPayNetworkAbbreviation}`; - /** - * We must also configure all possible onramp currencies we wish to support. - * This type matches either an array of SupportedCurrencySymbol or - * an array of SupportedCurrencySymbol and a MoonPayNetworkAbbreviation joined by a '_'. - */ - showOnlyCurrencies: - | SupportedCurrencySymbol[] - | `${SupportedCurrencySymbol}_${MoonPayNetworkAbbreviation}`[]; -}; - /** * An object containing preferences for an RPC definition */ @@ -101,25 +66,6 @@ export type RPCDefinition = { rpcPrefs: RPCPreferences; }; -/** - * Wyre is a fiat onramp provider. We must provide some settings for networks - * that support Wyre. - */ -export type WyreChainSettings = { - /** - * The network name - */ - srn: string; - /** - * The native currency for the network - */ - currencyCode: CurrencySymbol; - /** - * The list of supported currencies for the Wyre onramp provider - */ - currencies: SupportedCurrencySymbol[]; -}; - /** * For each chain that we support fiat onramps for, we provide a set of * configuration options that help for initializing the connectiong to the @@ -134,22 +80,6 @@ type BuyableChainSettings = { * The network name or identifier */ network: string; - /** - * The list of supported currencies for the Transak onramp provider - */ - transakCurrencies?: SupportedCurrencySymbol[]; - /** - * A configuration object for the MoonPay onramp provider - */ - moonPay?: MoonPayChainSettings; - /** - * A configuration object for the Wyre onramp provider - */ - wyre?: WyreChainSettings; - /** - * The list of supported currencies for the CoinbasePay onramp provider - */ - coinbasePayCurrencies?: SupportedCurrencySymbol[]; }; /** @@ -286,133 +216,6 @@ export const CURRENCY_SYMBOLS = { OPTIMISM: 'OP', } as const; -/** - * An object containing the token symbols for various tokens that are supported - * on different on ramp providers. This object is meant for internal consumption, - * hence why it is not exported. - */ -const SUPPORTED_CURRENCY_SYMBOLS = { - ...CURRENCY_SYMBOLS, - '1INCH': '1INCH', - AAVE: 'AAVE', - ABT: 'ABT', - ACH: 'ACH', - AGEUR: 'AGEUR', - AGLD: 'AGLD', - AMP: 'AMP', - ANKR: 'ANKR', - APE: 'APE', - ARPA: 'ARPA', - ASM: 'ASM', - AUCTION: 'AUCTION', - AXS: 'AXS', - AVAX: 'AVAX', - AVAXC: 'AVAXC', - AVAXCUSDC: 'AVAXCUSDC', - BADGER: 'BADGER', - BAL: 'BAL', - BAND: 'BAND', - BAT: 'BAT', - BNT: 'BNT', - BOBA: 'BOBA', - BOND: 'BOND', - BTRST: 'BTRST', - CHAIN: 'CHAIN', - CHZ: 'CHZ', - CLV: 'CLV', - COMP: 'COMP', - COTI: 'COTI', - CRO: 'CRO', - CRV: 'CRV', - CTSI: 'CTSI', - CVC: 'CVC', - DAO: 'DAO', - DDX: 'DDX', - DNT: 'DNT', - ENJ: 'ENJ', - ENS: 'ENS', - EURT: 'EURT', - FARM: 'FARM', - FET: 'FET', - FORTH: 'FORTH', - FX: 'FX', - GNO: 'GNO', - GRT: 'GRT', - GTC: 'GTC', - GTH: 'GTH', - GUSD: 'GUSD', - GYEN: 'GYEN', - HEX: 'HEX', - IOTX: 'IOTX', - IMX: 'IMX', - JASMY: 'JASMY', - KEEP: 'KEEP', - KNC: 'KNC', - KRL: 'KRL', - LCX: 'LCX', - LINK: 'LINK', - LPT: 'LPT', - LRC: 'LRC', - MANA: 'MANA', - MASK: 'MASK', - MINDS: 'MINDS', - MIR: 'MIR', - MKR: 'MKR', - MLN: 'MLN', - MTL: 'MTL', - MUSDC: 'mUSDC', - NKN: 'NKN', - NMR: 'NMR', - NU: 'NU', - OGN: 'OGN', - OMG: 'OMG', - ORN: 'ORN', - OXT: 'OXT', - PAX: 'PAX', - PERP: 'PERP', - PLA: 'PLA', - POLS: 'POLS', - POLY: 'POLY', - QNT: 'QNT', - QUICK: 'QUICK', - RAD: 'RAD', - RAI: 'RAI', - RARI: 'RARI', - REN: 'REN', - REP: 'REP', - REQ: 'REQ', - RLC: 'RLC', - RLY: 'RLY', - SAND: 'SAND', - SHIB: 'SHIB', - SKL: 'SKL', - SNX: 'SNX', - SPA: 'SPA', - STETH: 'STETH', - STORJ: 'STORJ', - SUKU: 'SUKU', - SUSHI: 'SUSHI', - SWAP: 'SWAP', - SWFTC: 'SWFTC', - TRAC: 'TRAC', - TRB: 'TRB', - TRIBE: 'TRIBE', - TRU: 'TRU', - TXL: 'TXL', - UMA: 'UMA', - UNI: 'UNI', - USDS: 'USDS', - VRA: 'VRA', - WBTC: 'WBTC', - WCFG: 'WCFG', - XYO: 'XYO', - YFII: 'YFII', - YFI: 'YFI', - YLD: 'YLD', - ZRX: 'ZRX', - ZUSD: 'ZUSD', -} as const; - export const ETH_TOKEN_IMAGE_URL = './images/eth_logo.svg'; export const TEST_ETH_TOKEN_IMAGE_URL = './images/black-eth-logo.svg'; export const BNB_TOKEN_IMAGE_URL = './images/bnb.png'; @@ -697,188 +500,12 @@ export const BUYABLE_CHAINS_MAP: { | typeof CHAIN_IDS.MOONBEAM | typeof CHAIN_IDS.MOONBEAM_TESTNET | typeof CHAIN_IDS.MOONRIVER + | typeof CHAIN_IDS.AURORA >]: BuyableChainSettings; } = { [CHAIN_IDS.MAINNET]: { nativeCurrency: CURRENCY_SYMBOLS.ETH, network: BUYABLE_CHAIN_ETHEREUM_NETWORK_NAME, - transakCurrencies: [ - SUPPORTED_CURRENCY_SYMBOLS.ETH, - SUPPORTED_CURRENCY_SYMBOLS['1INCH'], - SUPPORTED_CURRENCY_SYMBOLS.AAVE, - SUPPORTED_CURRENCY_SYMBOLS.AGEUR, - SUPPORTED_CURRENCY_SYMBOLS.BUSD, - SUPPORTED_CURRENCY_SYMBOLS.CHAIN, - SUPPORTED_CURRENCY_SYMBOLS.CLV, - SUPPORTED_CURRENCY_SYMBOLS.COMP, - SUPPORTED_CURRENCY_SYMBOLS.CTSI, - SUPPORTED_CURRENCY_SYMBOLS.DAI, - SUPPORTED_CURRENCY_SYMBOLS.DAO, - SUPPORTED_CURRENCY_SYMBOLS.ENJ, - SUPPORTED_CURRENCY_SYMBOLS.EURT, - SUPPORTED_CURRENCY_SYMBOLS.GTH, - SUPPORTED_CURRENCY_SYMBOLS.HEX, - SUPPORTED_CURRENCY_SYMBOLS.LINK, - SUPPORTED_CURRENCY_SYMBOLS.MANA, - SUPPORTED_CURRENCY_SYMBOLS.MASK, - SUPPORTED_CURRENCY_SYMBOLS.MINDS, - SUPPORTED_CURRENCY_SYMBOLS.MKR, - SUPPORTED_CURRENCY_SYMBOLS.PLA, - SUPPORTED_CURRENCY_SYMBOLS.POLS, - SUPPORTED_CURRENCY_SYMBOLS.SAND, - SUPPORTED_CURRENCY_SYMBOLS.STETH, - SUPPORTED_CURRENCY_SYMBOLS.SUSHI, - SUPPORTED_CURRENCY_SYMBOLS.SWAP, - SUPPORTED_CURRENCY_SYMBOLS.TXL, - SUPPORTED_CURRENCY_SYMBOLS.UNI, - SUPPORTED_CURRENCY_SYMBOLS.USDC, - SUPPORTED_CURRENCY_SYMBOLS.USDT, - SUPPORTED_CURRENCY_SYMBOLS.VRA, - SUPPORTED_CURRENCY_SYMBOLS.WBTC, - SUPPORTED_CURRENCY_SYMBOLS.YLD, - ], - moonPay: { - defaultCurrencyCode: SUPPORTED_CURRENCY_SYMBOLS.ETH, - showOnlyCurrencies: [ - SUPPORTED_CURRENCY_SYMBOLS.ETH, - SUPPORTED_CURRENCY_SYMBOLS.USDT, - SUPPORTED_CURRENCY_SYMBOLS.USDC, - SUPPORTED_CURRENCY_SYMBOLS.DAI, - SUPPORTED_CURRENCY_SYMBOLS.MATIC, - SUPPORTED_CURRENCY_SYMBOLS.ORN, - SUPPORTED_CURRENCY_SYMBOLS.WETH, - SUPPORTED_CURRENCY_SYMBOLS.IMX, - ], - }, - wyre: { - srn: 'ethereum', - currencyCode: CURRENCY_SYMBOLS.ETH, - currencies: [ - SUPPORTED_CURRENCY_SYMBOLS.ETH, - SUPPORTED_CURRENCY_SYMBOLS.AAVE, - SUPPORTED_CURRENCY_SYMBOLS.BAT, - SUPPORTED_CURRENCY_SYMBOLS.BUSD, - SUPPORTED_CURRENCY_SYMBOLS.COMP, - SUPPORTED_CURRENCY_SYMBOLS.CRV, - SUPPORTED_CURRENCY_SYMBOLS.DAI, - SUPPORTED_CURRENCY_SYMBOLS.GUSD, - SUPPORTED_CURRENCY_SYMBOLS.GYEN, - SUPPORTED_CURRENCY_SYMBOLS.LINK, - SUPPORTED_CURRENCY_SYMBOLS.MKR, - SUPPORTED_CURRENCY_SYMBOLS.PAX, - SUPPORTED_CURRENCY_SYMBOLS.RAI, - SUPPORTED_CURRENCY_SYMBOLS.SNX, - SUPPORTED_CURRENCY_SYMBOLS.UMA, - SUPPORTED_CURRENCY_SYMBOLS.UNI, - SUPPORTED_CURRENCY_SYMBOLS.USDC, - SUPPORTED_CURRENCY_SYMBOLS.USDS, - SUPPORTED_CURRENCY_SYMBOLS.USDT, - SUPPORTED_CURRENCY_SYMBOLS.WBTC, - SUPPORTED_CURRENCY_SYMBOLS.WETH, - SUPPORTED_CURRENCY_SYMBOLS.YFI, - SUPPORTED_CURRENCY_SYMBOLS.ZUSD, - ], - }, - coinbasePayCurrencies: [ - SUPPORTED_CURRENCY_SYMBOLS.ETH, - SUPPORTED_CURRENCY_SYMBOLS['1INCH'], - SUPPORTED_CURRENCY_SYMBOLS.AAVE, - SUPPORTED_CURRENCY_SYMBOLS.ABT, - SUPPORTED_CURRENCY_SYMBOLS.ACH, - SUPPORTED_CURRENCY_SYMBOLS.AGLD, - SUPPORTED_CURRENCY_SYMBOLS.AMP, - SUPPORTED_CURRENCY_SYMBOLS.ANKR, - SUPPORTED_CURRENCY_SYMBOLS.APE, - SUPPORTED_CURRENCY_SYMBOLS.ARPA, - SUPPORTED_CURRENCY_SYMBOLS.ASM, - SUPPORTED_CURRENCY_SYMBOLS.AUCTION, - SUPPORTED_CURRENCY_SYMBOLS.AXS, - SUPPORTED_CURRENCY_SYMBOLS.BADGER, - SUPPORTED_CURRENCY_SYMBOLS.BAL, - SUPPORTED_CURRENCY_SYMBOLS.BAND, - SUPPORTED_CURRENCY_SYMBOLS.BAT, - SUPPORTED_CURRENCY_SYMBOLS.BNT, - SUPPORTED_CURRENCY_SYMBOLS.BOBA, - SUPPORTED_CURRENCY_SYMBOLS.BOND, - SUPPORTED_CURRENCY_SYMBOLS.BTRST, - SUPPORTED_CURRENCY_SYMBOLS.CHZ, - SUPPORTED_CURRENCY_SYMBOLS.CLV, - SUPPORTED_CURRENCY_SYMBOLS.COMP, - SUPPORTED_CURRENCY_SYMBOLS.COTI, - SUPPORTED_CURRENCY_SYMBOLS.CRO, - SUPPORTED_CURRENCY_SYMBOLS.CRV, - SUPPORTED_CURRENCY_SYMBOLS.CTSI, - SUPPORTED_CURRENCY_SYMBOLS.CVC, - SUPPORTED_CURRENCY_SYMBOLS.DAI, - SUPPORTED_CURRENCY_SYMBOLS.DDX, - SUPPORTED_CURRENCY_SYMBOLS.DNT, - SUPPORTED_CURRENCY_SYMBOLS.ENJ, - SUPPORTED_CURRENCY_SYMBOLS.ENS, - SUPPORTED_CURRENCY_SYMBOLS.FARM, - SUPPORTED_CURRENCY_SYMBOLS.FET, - SUPPORTED_CURRENCY_SYMBOLS.FORTH, - SUPPORTED_CURRENCY_SYMBOLS.FX, - SUPPORTED_CURRENCY_SYMBOLS.GNO, - SUPPORTED_CURRENCY_SYMBOLS.GRT, - SUPPORTED_CURRENCY_SYMBOLS.GTC, - SUPPORTED_CURRENCY_SYMBOLS.IOTX, - SUPPORTED_CURRENCY_SYMBOLS.JASMY, - SUPPORTED_CURRENCY_SYMBOLS.KEEP, - SUPPORTED_CURRENCY_SYMBOLS.KNC, - SUPPORTED_CURRENCY_SYMBOLS.KRL, - SUPPORTED_CURRENCY_SYMBOLS.LCX, - SUPPORTED_CURRENCY_SYMBOLS.LINK, - SUPPORTED_CURRENCY_SYMBOLS.LPT, - SUPPORTED_CURRENCY_SYMBOLS.LRC, - SUPPORTED_CURRENCY_SYMBOLS.MANA, - SUPPORTED_CURRENCY_SYMBOLS.MASK, - SUPPORTED_CURRENCY_SYMBOLS.MATIC, - SUPPORTED_CURRENCY_SYMBOLS.MIR, - SUPPORTED_CURRENCY_SYMBOLS.MKR, - SUPPORTED_CURRENCY_SYMBOLS.MLN, - SUPPORTED_CURRENCY_SYMBOLS.MTL, - SUPPORTED_CURRENCY_SYMBOLS.NKN, - SUPPORTED_CURRENCY_SYMBOLS.NMR, - SUPPORTED_CURRENCY_SYMBOLS.NU, - SUPPORTED_CURRENCY_SYMBOLS.OGN, - SUPPORTED_CURRENCY_SYMBOLS.OMG, - SUPPORTED_CURRENCY_SYMBOLS.OXT, - SUPPORTED_CURRENCY_SYMBOLS.PAX, - SUPPORTED_CURRENCY_SYMBOLS.PERP, - SUPPORTED_CURRENCY_SYMBOLS.PLA, - SUPPORTED_CURRENCY_SYMBOLS.POLY, - SUPPORTED_CURRENCY_SYMBOLS.QNT, - SUPPORTED_CURRENCY_SYMBOLS.QUICK, - SUPPORTED_CURRENCY_SYMBOLS.RAD, - SUPPORTED_CURRENCY_SYMBOLS.RAI, - SUPPORTED_CURRENCY_SYMBOLS.RARI, - SUPPORTED_CURRENCY_SYMBOLS.REN, - SUPPORTED_CURRENCY_SYMBOLS.REP, - SUPPORTED_CURRENCY_SYMBOLS.REQ, - SUPPORTED_CURRENCY_SYMBOLS.RLC, - SUPPORTED_CURRENCY_SYMBOLS.RLY, - SUPPORTED_CURRENCY_SYMBOLS.SAND, - SUPPORTED_CURRENCY_SYMBOLS.SHIB, - SUPPORTED_CURRENCY_SYMBOLS.SKL, - SUPPORTED_CURRENCY_SYMBOLS.SNX, - SUPPORTED_CURRENCY_SYMBOLS.STORJ, - SUPPORTED_CURRENCY_SYMBOLS.SUKU, - SUPPORTED_CURRENCY_SYMBOLS.SUSHI, - SUPPORTED_CURRENCY_SYMBOLS.SWFTC, - SUPPORTED_CURRENCY_SYMBOLS.TRAC, - SUPPORTED_CURRENCY_SYMBOLS.TRB, - SUPPORTED_CURRENCY_SYMBOLS.TRIBE, - SUPPORTED_CURRENCY_SYMBOLS.TRU, - SUPPORTED_CURRENCY_SYMBOLS.UMA, - SUPPORTED_CURRENCY_SYMBOLS.UNI, - SUPPORTED_CURRENCY_SYMBOLS.USDC, - SUPPORTED_CURRENCY_SYMBOLS.USDT, - SUPPORTED_CURRENCY_SYMBOLS.WBTC, - SUPPORTED_CURRENCY_SYMBOLS.WCFG, - SUPPORTED_CURRENCY_SYMBOLS.XYO, - SUPPORTED_CURRENCY_SYMBOLS.YFII, - SUPPORTED_CURRENCY_SYMBOLS.ZRX, - ], }, [CHAIN_IDS.GOERLI]: { nativeCurrency: TEST_NETWORK_TICKER_MAP[NETWORK_TYPES.GOERLI], @@ -891,98 +518,30 @@ export const BUYABLE_CHAINS_MAP: { [CHAIN_IDS.BSC]: { nativeCurrency: CURRENCY_SYMBOLS.BNB, network: 'bsc', - transakCurrencies: [ - SUPPORTED_CURRENCY_SYMBOLS.BNB, - SUPPORTED_CURRENCY_SYMBOLS.BUSD, - ], - moonPay: { - defaultCurrencyCode: `${SUPPORTED_CURRENCY_SYMBOLS.BNB}_BSC`, - showOnlyCurrencies: [ - `${SUPPORTED_CURRENCY_SYMBOLS.BNB}_BSC`, - `${SUPPORTED_CURRENCY_SYMBOLS.BUSD}_BSC`, - ], - }, }, [CHAIN_IDS.POLYGON]: { nativeCurrency: CURRENCY_SYMBOLS.MATIC, network: 'polygon', - transakCurrencies: [ - SUPPORTED_CURRENCY_SYMBOLS.MATIC, - SUPPORTED_CURRENCY_SYMBOLS.USDT, - SUPPORTED_CURRENCY_SYMBOLS.USDC, - SUPPORTED_CURRENCY_SYMBOLS.DAI, - ], - moonPay: { - defaultCurrencyCode: `${SUPPORTED_CURRENCY_SYMBOLS.BNB}_POLYGON`, - showOnlyCurrencies: [ - `${SUPPORTED_CURRENCY_SYMBOLS.MATIC}_POLYGON`, - `${SUPPORTED_CURRENCY_SYMBOLS.USDC}_POLYGON`, - ], - }, - wyre: { - srn: 'matic', - currencyCode: CURRENCY_SYMBOLS.MATIC, - currencies: [ - SUPPORTED_CURRENCY_SYMBOLS.MATIC, - SUPPORTED_CURRENCY_SYMBOLS.MUSDC, - ], - }, }, [CHAIN_IDS.AVALANCHE]: { nativeCurrency: CURRENCY_SYMBOLS.AVALANCHE, network: 'avaxcchain', - transakCurrencies: [SUPPORTED_CURRENCY_SYMBOLS.AVALANCHE], - moonPay: { - defaultCurrencyCode: `${SUPPORTED_CURRENCY_SYMBOLS.AVAX}_CCHAIN`, - showOnlyCurrencies: [`${SUPPORTED_CURRENCY_SYMBOLS.AVAX}_CCHAIN`], - }, - wyre: { - srn: 'avalanche', - currencyCode: CURRENCY_SYMBOLS.AVALANCHE, - currencies: [ - SUPPORTED_CURRENCY_SYMBOLS.AVALANCHE, - SUPPORTED_CURRENCY_SYMBOLS.AVAXC, - SUPPORTED_CURRENCY_SYMBOLS.AVAXCUSDC, - ], - }, - coinbasePayCurrencies: [SUPPORTED_CURRENCY_SYMBOLS.AVALANCHE], }, [CHAIN_IDS.FANTOM]: { nativeCurrency: CURRENCY_SYMBOLS.FANTOM, network: 'fantom', - transakCurrencies: [SUPPORTED_CURRENCY_SYMBOLS.FANTOM], }, [CHAIN_IDS.CELO]: { nativeCurrency: CURRENCY_SYMBOLS.CELO, network: 'celo', - transakCurrencies: [SUPPORTED_CURRENCY_SYMBOLS.CELO], - moonPay: { - defaultCurrencyCode: SUPPORTED_CURRENCY_SYMBOLS.CELO, - showOnlyCurrencies: [SUPPORTED_CURRENCY_SYMBOLS.CELO], - }, }, [CHAIN_IDS.OPTIMISM]: { nativeCurrency: CURRENCY_SYMBOLS.ETH, network: 'optimism', - transakCurrencies: [ - SUPPORTED_CURRENCY_SYMBOLS.ETH, - SUPPORTED_CURRENCY_SYMBOLS.USDC, - ], }, [CHAIN_IDS.ARBITRUM]: { nativeCurrency: CURRENCY_SYMBOLS.ARBITRUM, network: 'arbitrum', - transakCurrencies: [ - SUPPORTED_CURRENCY_SYMBOLS.ARBITRUM, - SUPPORTED_CURRENCY_SYMBOLS.SPA, - SUPPORTED_CURRENCY_SYMBOLS.USDC, - SUPPORTED_CURRENCY_SYMBOLS.USDS, - ], - }, - [CHAIN_IDS.AURORA]: { - nativeCurrency: CURRENCY_SYMBOLS.AURORA, - network: 'aurora', - transakCurrencies: [SUPPORTED_CURRENCY_SYMBOLS.AURORA], }, }; diff --git a/ui/components/app/app-components.scss b/ui/components/app/app-components.scss index fded9dd83..7dea635f3 100644 --- a/ui/components/app/app-components.scss +++ b/ui/components/app/app-components.scss @@ -25,7 +25,6 @@ @import 'connected-status-indicator/index'; @import 'create-new-vault/create-new-vault.scss'; @import 'custom-spending-cap/index'; -@import 'deposit-popover/index'; @import 'edit-gas-display/index'; @import 'edit-gas-fee-button/index'; @import 'edit-gas-fee-popover/index'; diff --git a/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js b/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js index 05f8ff32d..9ac822f59 100644 --- a/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js +++ b/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js @@ -9,7 +9,6 @@ import ErrorMessage from '../../../ui/error-message'; import { INSUFFICIENT_FUNDS_ERROR_KEY } from '../../../../helpers/constants/error-keys'; import Typography from '../../../ui/typography'; import { TypographyVariant } from '../../../../helpers/constants/design-system'; -import DepositPopover from '../../deposit-popover/deposit-popover'; import SecurityProviderBannerMessage from '../../security-provider-banner-message/security-provider-banner-message'; import { SECURITY_PROVIDER_MESSAGE_SEVERITIES } from '../../security-provider-banner-message/security-provider-banner-message.constants'; @@ -60,10 +59,6 @@ export default class ConfirmPageContainerContent extends Component { txData: PropTypes.object, }; - state = { - setShowDepositPopover: false, - }; - renderContent() { const { detailsComponent, dataComponent } = this.props; @@ -179,8 +174,6 @@ export default class ConfirmPageContainerContent extends Component { (errorKey || errorMessage) && errorKey === INSUFFICIENT_FUNDS_ERROR_KEY; - const { setShowDepositPopover } = this.state; - return (
- this.setState({ setShowDepositPopover: true }) - } + onClick={() => { + const portfolioUrl = process.env.PORTFOLIO_URL; + global.platform.openTab({ + url: `${portfolioUrl}/buy?metamaskEntry=ext_buy_button`, + }); + }} key={`${nativeCurrency}-buy-button`} > {t('buyAsset', [nativeCurrency])} @@ -261,11 +257,6 @@ export default class ConfirmPageContainerContent extends Component { />
)} - {setShowDepositPopover && ( - this.setState({ setShowDepositPopover: false })} - /> - )} { } = props; const t = useI18nContext(); + const trackEvent = useContext(MetaMetricsContext); - const [showDepositPopover, setShowDepositPopover] = useState(false); const [collectionBalance, setCollectionBalance] = useState(0); const isBuyableChain = useSelector(getIsBuyableChain); @@ -109,6 +111,12 @@ const ConfirmPageContainer = (props) => { getMetadataContractName(state, toAddress), ); + // TODO: Move useRamps hook to the confirm-transaction-base parent component. + // TODO: openBuyCryptoInPdapp should be passed to this component as a custom prop. + // We try to keep this component for layout purpose only, we need to move this hook to the confirm-transaction-base parent + // component once it is converted to a functional component + const { openBuyCryptoInPdapp } = useRamps(); + const isSetApproveForAll = currentTransaction.type === TransactionType.tokenMethodSetApprovalForAll; @@ -236,7 +244,17 @@ const ConfirmPageContainer = (props) => { - - - - ); -}; - -OnRampItem.propTypes = { - className: PropTypes.string, - logo: PropTypes.node.isRequired, - title: PropTypes.string.isRequired, - text: PropTypes.string.isRequired, - buttonLabel: PropTypes.string.isRequired, - onButtonClick: PropTypes.func.isRequired, - hide: PropTypes.bool, -}; - -export default OnRampItem; diff --git a/ui/components/app/wallet-overview/eth-overview.js b/ui/components/app/wallet-overview/eth-overview.js index 8281ec7f0..0a86c4306 100644 --- a/ui/components/app/wallet-overview/eth-overview.js +++ b/ui/components/app/wallet-overview/eth-overview.js @@ -1,4 +1,4 @@ -import React, { useContext, useState } from 'react'; +import React, { useContext } from 'react'; import PropTypes from 'prop-types'; import { useDispatch, useSelector } from 'react-redux'; import classnames from 'classnames'; @@ -35,9 +35,9 @@ import { import Spinner from '../../ui/spinner'; import { startNewDraftTransaction } from '../../../ducks/send'; import { AssetType } from '../../../../shared/constants/transaction'; -import DepositPopover from '../deposit-popover'; import { Icon, ICON_NAMES } from '../../component-library'; import { IconColor } from '../../../helpers/constants/design-system'; +import useRamps from '../../../hooks/experiences/useRamps'; import WalletOverview from './wallet-overview'; const EthOverview = ({ className }) => { @@ -45,7 +45,6 @@ const EthOverview = ({ className }) => { const t = useContext(I18nContext); const trackEvent = useContext(MetaMetricsContext); const history = useHistory(); - const [showDepositPopover, setShowDepositPopover] = useState(false); const keyring = useSelector(getCurrentKeyring); const usingHardwareWallet = isHardwareKeyring(keyring?.type); const balanceIsCached = useSelector(isBalanceCached); @@ -56,183 +55,181 @@ const EthOverview = ({ className }) => { const primaryTokenImage = useSelector(getNativeCurrencyImage); const defaultSwapsToken = useSelector(getSwapsDefaultToken); + const { openBuyCryptoInPdapp } = useRamps(); + return ( - <> - {showDepositPopover && ( - setShowDepositPopover(false)} /> - )} - -
-
- {balance ? ( - - ) : ( - - )} - {balanceIsCached ? ( - * - ) : null} -
- {showFiat && balance && ( + +
+
+ {balance ? ( - )} -
- - } - buttons={ - <> - - } - disabled={!isBuyableChain} - label={t('buy')} - onClick={() => { - trackEvent({ - event: EVENT_NAMES.NAV_BUY_BUTTON_CLICKED, - category: EVENT.CATEGORIES.NAVIGATION, - properties: { - location: 'Home', - text: 'Buy', - }, - }); - setShowDepositPopover(true); - }} - /> - - } - label={t('send')} - onClick={() => { + )} + {balanceIsCached ? ( + * + ) : null} +
+ {showFiat && balance && ( + + )} +
+ + } + buttons={ + <> + + } + disabled={!isBuyableChain} + data-testid="eth-overview-buy" + label={t('buy')} + onClick={() => { + openBuyCryptoInPdapp(); + trackEvent({ + event: EVENT_NAMES.NAV_BUY_BUTTON_CLICKED, + category: EVENT.CATEGORIES.NAVIGATION, + properties: { + location: 'Home', + text: 'Buy', + }, + }); + }} + /> + + } + label={t('send')} + onClick={() => { + trackEvent({ + event: EVENT_NAMES.NAV_SEND_BUTTON_CLICKED, + category: EVENT.CATEGORIES.NAVIGATION, + properties: { + token_symbol: 'ETH', + location: 'Home', + text: 'Send', + }, + }); + dispatch( + startNewDraftTransaction({ type: AssetType.native }), + ).then(() => { + history.push(SEND_ROUTE); + }); + }} + /> + + } + onClick={() => { + if (isSwapsChain) { trackEvent({ - event: EVENT_NAMES.NAV_SEND_BUTTON_CLICKED, - category: EVENT.CATEGORIES.NAVIGATION, + event: EVENT_NAMES.NAV_SWAP_BUTTON_CLICKED, + category: EVENT.CATEGORIES.SWAPS, properties: { token_symbol: 'ETH', - location: 'Home', - text: 'Send', + location: EVENT.SOURCE.SWAPS.MAIN_VIEW, + text: 'Swap', }, }); - dispatch( - startNewDraftTransaction({ type: AssetType.native }), - ).then(() => { - history.push(SEND_ROUTE); - }); - }} - /> - - } - onClick={() => { - if (isSwapsChain) { - trackEvent({ - event: EVENT_NAMES.NAV_SWAP_BUTTON_CLICKED, - category: EVENT.CATEGORIES.SWAPS, - properties: { - token_symbol: 'ETH', - location: EVENT.SOURCE.SWAPS.MAIN_VIEW, - text: 'Swap', - }, - }); - dispatch(setSwapsFromToken(defaultSwapsToken)); - if (usingHardwareWallet) { - global.platform.openExtensionInBrowser(BUILD_QUOTE_ROUTE); - } else { - history.push(BUILD_QUOTE_ROUTE); - } + dispatch(setSwapsFromToken(defaultSwapsToken)); + if (usingHardwareWallet) { + global.platform.openExtensionInBrowser(BUILD_QUOTE_ROUTE); + } else { + history.push(BUILD_QUOTE_ROUTE); } - }} - label={t('swap')} - tooltipRender={ - isSwapsChain - ? null - : (contents) => ( - - {contents} - - ) } - /> - - } - label={t('portfolio')} - onClick={() => { - const portfolioUrl = process.env.PORTFOLIO_URL; - global.platform.openTab({ - url: `${portfolioUrl}?metamaskEntry=ext`, - }); - trackEvent( - { - category: EVENT.CATEGORIES.HOME, - event: EVENT_NAMES.PORTFOLIO_LINK_CLICKED, - properties: { - url: portfolioUrl, - }, + }} + label={t('swap')} + tooltipRender={ + isSwapsChain + ? null + : (contents) => ( + + {contents} + + ) + } + /> + + } + label={t('portfolio')} + onClick={() => { + const portfolioUrl = process.env.PORTFOLIO_URL; + global.platform.openTab({ + url: `${portfolioUrl}?metamaskEntry=ext`, + }); + trackEvent( + { + category: EVENT.CATEGORIES.HOME, + event: EVENT_NAMES.PORTFOLIO_LINK_CLICKED, + properties: { + url: portfolioUrl, }, - { - contextPropsIntoEventProperties: [CONTEXT_PROPS.PAGE_TITLE], - }, - ); - }} - /> - - } - className={className} - icon={} - /> - + }, + { + contextPropsIntoEventProperties: [CONTEXT_PROPS.PAGE_TITLE], + }, + ); + }} + /> + + } + className={className} + icon={} + /> ); }; diff --git a/ui/components/app/wallet-overview/eth-overview.test.js b/ui/components/app/wallet-overview/eth-overview.test.js new file mode 100644 index 000000000..f32b002b1 --- /dev/null +++ b/ui/components/app/wallet-overview/eth-overview.test.js @@ -0,0 +1,159 @@ +import React from 'react'; +import configureMockStore from 'redux-mock-store'; +import thunk from 'redux-thunk'; +import { fireEvent, waitFor } from '@testing-library/react'; +import { CHAIN_IDS } from '../../../../shared/constants/network'; +import { renderWithProvider } from '../../../../test/jest/rendering'; +import { HardwareKeyringTypes } from '../../../../shared/constants/hardware-wallets'; +import EthOverview from './eth-overview'; + +// Mock BUYABLE_CHAINS_MAP +jest.mock('../../../../shared/constants/network', () => ({ + ...jest.requireActual('../../../../shared/constants/network'), + BUYABLE_CHAINS_MAP: { + // MAINNET + '0x1': { + nativeCurrency: 'ETH', + network: 'ethereum', + }, + // POLYGON + '0x89': { + nativeCurrency: 'MATIC', + network: 'polygon', + }, + }, +})); + +describe('EthOverview', () => { + const mockStore = { + metamask: { + provider: { + type: 'test', + chainId: CHAIN_IDS.MAINNET, + }, + cachedBalances: {}, + preferences: { + useNativeCurrencyAsPrimaryCurrency: true, + }, + identities: { + '0x1': { + address: '0x1', + }, + }, + accounts: { + '0x1': { + address: '0x1', + balance: '0x1F4', + }, + }, + selectedAddress: '0x1', + keyrings: [ + { + type: HardwareKeyringTypes.imported, + accounts: ['0x1', '0x2'], + }, + { + type: HardwareKeyringTypes.ledger, + accounts: [], + }, + ], + contractExchangeRates: {}, + }, + }; + + const store = configureMockStore([thunk])(mockStore); + const ETH_OVERVIEW_BUY = 'eth-overview-buy'; + + afterEach(() => { + store.clearActions(); + }); + + describe('EthOverview', () => { + beforeAll(() => { + jest.clearAllMocks(); + Object.defineProperty(global, 'platform', { + value: { + openTab: jest.fn(), + }, + }); + }); + + it('should always show the Buy button regardless of current chain Id', () => { + const { queryByTestId } = renderWithProvider(, store); + const buyButton = queryByTestId(ETH_OVERVIEW_BUY); + expect(buyButton).toBeInTheDocument(); + }); + + it('should have the Buy native token button disabled if chain id is not part of supported buyable chains', () => { + const mockedStoreWithUnbuyableChainId = { + metamask: { + ...mockStore.metamask, + provider: { type: 'test', chainId: CHAIN_IDS.FANTOM }, + }, + }; + const mockedStore = configureMockStore([thunk])( + mockedStoreWithUnbuyableChainId, + ); + + const { queryByTestId } = renderWithProvider( + , + mockedStore, + ); + const buyButton = queryByTestId(ETH_OVERVIEW_BUY); + expect(buyButton).toBeInTheDocument(); + expect(buyButton).toBeDisabled(); + }); + + it('should have the Buy native token enabled if chain id is part of supported buyable chains', () => { + const mockedStoreWithUnbuyableChainId = { + metamask: { + ...mockStore.metamask, + provider: { type: 'test', chainId: CHAIN_IDS.POLYGON }, + }, + }; + const mockedStore = configureMockStore([thunk])( + mockedStoreWithUnbuyableChainId, + ); + + const { queryByTestId } = renderWithProvider( + , + mockedStore, + ); + const buyButton = queryByTestId(ETH_OVERVIEW_BUY); + expect(buyButton).toBeInTheDocument(); + expect(buyButton).not.toBeDisabled(); + }); + + it('should open the Buy native token URI when clicking on Buy button for a buyable chain ID', async () => { + const mockedStoreWithBuyableChainId = { + metamask: { + ...mockStore.metamask, + provider: { type: 'test', chainId: CHAIN_IDS.POLYGON }, + }, + }; + const mockedStore = configureMockStore([thunk])( + mockedStoreWithBuyableChainId, + ); + + const openTabSpy = jest.spyOn(global.platform, 'openTab'); + + const { queryByTestId } = renderWithProvider( + , + mockedStore, + ); + const buyButton = queryByTestId(ETH_OVERVIEW_BUY); + + expect(buyButton).toBeInTheDocument(); + expect(buyButton).not.toBeDisabled(); + + fireEvent.click(buyButton); + expect(openTabSpy).toHaveBeenCalledTimes(1); + + await waitFor(() => + expect(openTabSpy).toHaveBeenCalledWith({ + url: expect.stringContaining(`/buy?metamaskEntry=ext_buy_button`), + }), + ); + }); + }); +}); diff --git a/ui/components/app/wallet-overview/token-overview.js b/ui/components/app/wallet-overview/token-overview.js index e0dcc95eb..a53292b1c 100644 --- a/ui/components/app/wallet-overview/token-overview.js +++ b/ui/components/app/wallet-overview/token-overview.js @@ -1,4 +1,4 @@ -import React, { useContext, useEffect, useState } from 'react'; +import React, { useContext, useEffect } from 'react'; import PropTypes from 'prop-types'; import { useDispatch, useSelector } from 'react-redux'; import { useHistory } from 'react-router-dom'; @@ -19,10 +19,7 @@ import { setSwapsFromToken } from '../../../ducks/swaps/swaps'; import { getCurrentKeyring, getIsSwapsChain, - getIsBuyableCoinbasePayToken, - getIsBuyableTransakToken, - getIsBuyableMoonpayToken, - getIsBuyableWyreToken, + getIsBuyableChain, } from '../../../selectors'; import IconButton from '../../ui/icon-button'; @@ -35,7 +32,7 @@ import { CONTEXT_PROPS, } from '../../../../shared/constants/metametrics'; import { AssetType } from '../../../../shared/constants/transaction'; -import DepositPopover from '../deposit-popover'; +import useRamps from '../../../hooks/experiences/useRamps'; import { Icon, ICON_NAMES } from '../../component-library'; import { IconColor } from '../../../helpers/constants/design-system'; @@ -46,7 +43,6 @@ const TokenOverview = ({ className, token }) => { const t = useContext(I18nContext); const trackEvent = useContext(MetaMetricsContext); const history = useHistory(); - const [showDepositPopover, setShowDepositPopover] = useState(false); const keyring = useSelector(getCurrentKeyring); const usingHardwareWallet = isHardwareKeyring(keyring.type); const { tokensWithBalances } = useTokenTracker([token]); @@ -58,24 +54,10 @@ const TokenOverview = ({ className, token }) => { token.symbol, ); const isSwapsChain = useSelector(getIsSwapsChain); - const isTokenBuyableCoinbasePay = useSelector((state) => - getIsBuyableCoinbasePayToken(state, token.symbol), - ); - const isTokenBuyableTransak = useSelector((state) => - getIsBuyableTransakToken(state, token.symbol), - ); - const isTokenBuyableMoonpay = useSelector((state) => - getIsBuyableMoonpayToken(state, token.symbol), - ); - const isTokenBuyableWyre = useSelector((state) => - getIsBuyableWyreToken(state, token.symbol), - ); - const isBuyable = - isTokenBuyableCoinbasePay || - isTokenBuyableTransak || - isTokenBuyableMoonpay || - isTokenBuyableWyre; + const isBuyableChain = useSelector(getIsBuyableChain); + + const { openBuyCryptoInPdapp } = useRamps(); useEffect(() => { if (token.isERC721 && process.env.NFTS_V1) { @@ -89,184 +71,168 @@ const TokenOverview = ({ className, token }) => { }, [token.isERC721, token.address, dispatch]); return ( - <> - {showDepositPopover && ( - setShowDepositPopover(false)} - token={token} - /> - )} - + + + {formattedFiatBalance ? ( - {formattedFiatBalance ? ( - - ) : null} - - } - buttons={ - <> - {isBuyable && ( - + ) : null} + + } + buttons={ + <> + + } + label={t('buy')} + data-testid="token-overview-buy" + onClick={() => { + openBuyCryptoInPdapp(); + trackEvent({ + event: EVENT_NAMES.NAV_BUY_BUTTON_CLICKED, + category: EVENT.CATEGORIES.NAVIGATION, + properties: { + location: 'Token Overview', + text: 'Buy', + }, + }); + }} + disabled={token.isERC721 || !isBuyableChain} + /> + { + trackEvent({ + event: EVENT_NAMES.NAV_SEND_BUTTON_CLICKED, + category: EVENT.CATEGORIES.NAVIGATION, + properties: { + token_symbol: token.symbol, + location: EVENT.SOURCE.SWAPS.TOKEN_VIEW, + text: 'Send', + }, + }); + try { + await dispatch( + startNewDraftTransaction({ + type: AssetType.token, + details: token, + }), + ); + history.push(SEND_ROUTE); + } catch (err) { + if (!err.message.includes(INVALID_ASSET_TYPE)) { + throw err; } - label={t('buy')} - onClick={() => { - trackEvent({ - event: 'Clicked Deposit: Token', - category: EVENT.CATEGORIES.NAVIGATION, - properties: { - action: 'Home', - legacy_event: true, - }, - }); - setShowDepositPopover(true); - }} - disabled={token.isERC721} + } + }} + Icon={ + - )} - { + } + label={t('send')} + data-testid="eth-overview-send" + disabled={token.isERC721} + /> + + } + onClick={() => { + if (isSwapsChain) { trackEvent({ - event: EVENT_NAMES.NAV_SEND_BUTTON_CLICKED, - category: EVENT.CATEGORIES.NAVIGATION, + event: EVENT_NAMES.NAV_SWAP_BUTTON_CLICKED, + category: EVENT.CATEGORIES.SWAPS, properties: { token_symbol: token.symbol, location: EVENT.SOURCE.SWAPS.TOKEN_VIEW, - text: 'Send', + text: 'Swap', }, }); - try { - await dispatch( - startNewDraftTransaction({ - type: AssetType.token, - details: token, - }), - ); - history.push(SEND_ROUTE); - } catch (err) { - if (!err.message.includes(INVALID_ASSET_TYPE)) { - throw err; - } - } - }} - Icon={ - - } - label={t('send')} - data-testid="eth-overview-send" - disabled={token.isERC721} - /> - - } - onClick={() => { - if (isSwapsChain) { - trackEvent({ - event: EVENT_NAMES.NAV_SWAP_BUTTON_CLICKED, - category: EVENT.CATEGORIES.SWAPS, - properties: { - token_symbol: token.symbol, - location: EVENT.SOURCE.SWAPS.TOKEN_VIEW, - text: 'Swap', - }, - }); - dispatch( - setSwapsFromToken({ - ...token, - address: token.address.toLowerCase(), - iconUrl: token.image, - balance, - string: balanceToRender, - }), - ); - if (usingHardwareWallet) { - global.platform.openExtensionInBrowser(BUILD_QUOTE_ROUTE); - } else { - history.push(BUILD_QUOTE_ROUTE); - } - } - }} - label={t('swap')} - tooltipRender={ - isSwapsChain - ? null - : (contents) => ( - - {contents} - - ) - } - /> - - } - label={t('portfolio')} - data-testid="home__portfolio-site" - onClick={() => { - const portfolioUrl = process.env.PORTFOLIO_URL; - global.platform.openTab({ - url: `${portfolioUrl}?metamaskEntry=ext`, - }); - trackEvent( - { - category: EVENT.CATEGORIES.HOME, - event: EVENT_NAMES.PORTFOLIO_LINK_CLICKED, - properties: { - url: portfolioUrl, - }, - }, - { - contextPropsIntoEventProperties: [CONTEXT_PROPS.PAGE_TITLE], - }, + dispatch( + setSwapsFromToken({ + ...token, + address: token.address.toLowerCase(), + iconUrl: token.image, + balance, + string: balanceToRender, + }), ); - }} - /> - - } - className={className} - icon={ - ( + + {contents} + + ) + } /> - } - /> - + + } + label={t('portfolio')} + data-testid="home__portfolio-site" + onClick={() => { + const portfolioUrl = process.env.PORTFOLIO_URL; + global.platform.openTab({ + url: `${portfolioUrl}?metamaskEntry=ext`, + }); + trackEvent( + { + category: EVENT.CATEGORIES.HOME, + event: EVENT_NAMES.PORTFOLIO_LINK_CLICKED, + properties: { + url: portfolioUrl, + }, + }, + { + contextPropsIntoEventProperties: [CONTEXT_PROPS.PAGE_TITLE], + }, + ); + }} + /> + + } + className={className} + icon={ + + } + /> ); }; diff --git a/ui/components/app/wallet-overview/token-overview.test.js b/ui/components/app/wallet-overview/token-overview.test.js index 6c371b602..d0266ee1c 100644 --- a/ui/components/app/wallet-overview/token-overview.test.js +++ b/ui/components/app/wallet-overview/token-overview.test.js @@ -1,15 +1,35 @@ import React from 'react'; import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; +import { fireEvent, waitFor } from '@testing-library/react'; +import { CHAIN_IDS } from '../../../../shared/constants/network'; import { renderWithProvider } from '../../../../test/jest/rendering'; import { HardwareKeyringTypes } from '../../../../shared/constants/hardware-wallets'; import TokenOverview from './token-overview'; +// Mock BUYABLE_CHAINS_MAP +jest.mock('../../../../shared/constants/network', () => ({ + ...jest.requireActual('../../../../shared/constants/network'), + BUYABLE_CHAINS_MAP: { + // MAINNET + '0x1': { + nativeCurrency: 'ETH', + network: 'ethereum', + }, + // POLYGON + '0x89': { + nativeCurrency: 'MATIC', + network: 'polygon', + }, + }, +})); + describe('TokenOverview', () => { const mockStore = { metamask: { provider: { type: 'test', + chainId: CHAIN_IDS.MAINNET, }, preferences: { useNativeCurrencyAsPrimaryCurrency: true, @@ -41,13 +61,23 @@ describe('TokenOverview', () => { }); describe('TokenOverview', () => { + beforeAll(() => { + jest.clearAllMocks(); + Object.defineProperty(global, 'platform', { + value: { + openTab: jest.fn(), + }, + }); + }); + + const token = { + name: 'test', + isERC721: false, + address: '0x01', + symbol: 'test', + }; + it('should not show a modal when token passed in props is not an ERC721', () => { - const token = { - name: 'test', - isERC721: false, - address: '0x01', - symbol: 'test', - }; renderWithProvider(, store); const actions = store.getActions(); @@ -56,13 +86,11 @@ describe('TokenOverview', () => { it('should show ConvertTokenToNFT modal when token passed in props is an ERC721', () => { process.env.NFTS_V1 = true; - const token = { - name: 'test', + const nftToken = { + ...token, isERC721: true, - address: '0x01', - symbol: 'test', }; - renderWithProvider(, store); + renderWithProvider(, store); const actions = store.getActions(); expect(actions).toHaveLength(1); @@ -73,5 +101,136 @@ describe('TokenOverview', () => { }); process.env.NFTS_V1 = false; }); + + it('should always show the Buy button regardless of chain Id', () => { + const mockedStoreWithUnbuyableChainId = { + metamask: { + ...mockStore.metamask, + provider: { type: 'test', chainId: CHAIN_IDS.PALM }, + }, + }; + const mockedStore = configureMockStore([thunk])( + mockedStoreWithUnbuyableChainId, + ); + + const { queryByTestId } = renderWithProvider( + , + mockedStore, + ); + const buyButton = queryByTestId('token-overview-buy'); + expect(buyButton).toBeInTheDocument(); + }); + + it('should always show the Buy button regardless of token type', () => { + process.env.NFTS_V1 = true; + const nftToken = { + ...token, + isERC721: true, + }; + + const { queryByTestId } = renderWithProvider( + , + store, + ); + const buyButton = queryByTestId('token-overview-buy'); + expect(buyButton).toBeInTheDocument(); + }); + + it('should have the Buy token button disabled if chain id is not part of supported buyable chains', () => { + const mockedStoreWithUnbuyableChainId = { + metamask: { + ...mockStore.metamask, + provider: { type: 'test', chainId: CHAIN_IDS.FANTOM }, + }, + }; + const mockedStore = configureMockStore([thunk])( + mockedStoreWithUnbuyableChainId, + ); + + const { queryByTestId } = renderWithProvider( + , + mockedStore, + ); + const buyButton = queryByTestId('token-overview-buy'); + expect(buyButton).toBeInTheDocument(); + expect(buyButton).toBeDisabled(); + }); + + it('should have the Buy token button enabled if chain id is part of supported buyable chains', () => { + const mockedStoreWithBuyableChainId = { + metamask: { + ...mockStore.metamask, + provider: { type: 'test', chainId: CHAIN_IDS.POLYGON }, + }, + }; + const mockedStore = configureMockStore([thunk])( + mockedStoreWithBuyableChainId, + ); + + const { queryByTestId } = renderWithProvider( + , + mockedStore, + ); + const buyButton = queryByTestId('token-overview-buy'); + expect(buyButton).toBeInTheDocument(); + expect(buyButton).not.toBeDisabled(); + }); + + it('should have the Buy token button disabled for ERC721 tokens', () => { + process.env.NFTS_V1 = true; + const nftToken = { + ...token, + isERC721: true, + }; + + const mockedStoreWithBuyableChainId = { + metamask: { + ...mockStore.metamask, + provider: { type: 'test', chainId: CHAIN_IDS.POLYGON }, + }, + }; + const mockedStore = configureMockStore([thunk])( + mockedStoreWithBuyableChainId, + ); + + const { queryByTestId } = renderWithProvider( + , + mockedStore, + ); + const buyButton = queryByTestId('token-overview-buy'); + expect(buyButton).toBeInTheDocument(); + expect(buyButton).toBeDisabled(); + }); + + it('should open the buy crypto URL for a buyable chain ID', async () => { + const mockedStoreWithBuyableChainId = { + metamask: { + ...mockStore.metamask, + provider: { type: 'test', chainId: CHAIN_IDS.POLYGON }, + }, + }; + const mockedStore = configureMockStore([thunk])( + mockedStoreWithBuyableChainId, + ); + + const openTabSpy = jest.spyOn(global.platform, 'openTab'); + + const { queryByTestId } = renderWithProvider( + , + mockedStore, + ); + const buyButton = queryByTestId('token-overview-buy'); + expect(buyButton).toBeInTheDocument(); + expect(buyButton).not.toBeDisabled(); + + fireEvent.click(buyButton); + expect(openTabSpy).toHaveBeenCalledTimes(1); + + await waitFor(() => + expect(openTabSpy).toHaveBeenCalledWith({ + url: expect.stringContaining(`/buy?metamaskEntry=ext_buy_button`), + }), + ); + }); }); }); diff --git a/ui/components/ui/logo/README.mdx b/ui/components/ui/logo/README.mdx index 13dc54144..ed9a9bfa8 100644 --- a/ui/components/ui/logo/README.mdx +++ b/ui/components/ui/logo/README.mdx @@ -1,7 +1,5 @@ import { Story, Canvas, ArgsTable } from '@storybook/addon-docs'; -import LogoWyre from './logo-wyre'; - # Logo Logo components that are theme compatible @@ -9,7 +7,3 @@ Logo components that are theme compatible - -## Props - - diff --git a/ui/components/ui/logo/__snapshots__/logo-moonpay.test.js.snap b/ui/components/ui/logo/__snapshots__/logo-moonpay.test.js.snap deleted file mode 100644 index 41518b5d6..000000000 --- a/ui/components/ui/logo/__snapshots__/logo-moonpay.test.js.snap +++ /dev/null @@ -1,21 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`LogoMoonPay renders the LogoMoonPay component 1`] = ` -
- - - - -
-`; diff --git a/ui/components/ui/logo/logo-coinbasepay.js b/ui/components/ui/logo/logo-coinbasepay.js deleted file mode 100644 index 2b23e7391..000000000 --- a/ui/components/ui/logo/logo-coinbasepay.js +++ /dev/null @@ -1,58 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -const LogoCoinbasePay = ({ - width = '100%', - className, - ariaLabel, - color = 'var(--color-text-default)', -}) => { - return ( - - - - - - - ); -}; - -LogoCoinbasePay.propTypes = { - /** - * The width of the logo. Defaults to 100% - */ - width: PropTypes.string, - /** - * The color of the logo defaults to var(--color-text-default) - */ - color: PropTypes.string, - /** - * Additional className to add to the root svg - */ - className: PropTypes.string, - /** - * Aria label to add to the logo component - */ - ariaLabel: PropTypes.string, -}; - -export default LogoCoinbasePay; diff --git a/ui/components/ui/logo/logo-deposit-eth.js b/ui/components/ui/logo/logo-deposit-eth.js deleted file mode 100644 index 3b108645b..000000000 --- a/ui/components/ui/logo/logo-deposit-eth.js +++ /dev/null @@ -1,54 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -const LogoDepositEth = ({ - width = '100%', - color = 'var(--color-text-default)', - className, - ariaLabel, -}) => { - return ( - - - - - - - ); -}; - -LogoDepositEth.propTypes = { - /** - * The width of the logo. Defaults to 100% - */ - width: PropTypes.string, - /** - * The color of the logo defaults to var(--color-text-default) - */ - color: PropTypes.string, - /** - * Additional className to add to the root svg - */ - className: PropTypes.string, - /** - * Aria label to add to the logo component - */ - ariaLabel: PropTypes.string, -}; - -export default LogoDepositEth; diff --git a/ui/components/ui/logo/logo-moonpay.js b/ui/components/ui/logo/logo-moonpay.js deleted file mode 100644 index 781b30255..000000000 --- a/ui/components/ui/logo/logo-moonpay.js +++ /dev/null @@ -1,52 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -const COLOR_MOONPAY_CIRCLES = '#7D00FF'; - -const LogoMoonPay = ({ - width = '100%', - color = 'var(--color-text-default)', - className, - ariaLabel, -}) => { - return ( - - - - - ); -}; - -LogoMoonPay.propTypes = { - /** - * The width of the logo. Defaults to 100% - */ - width: PropTypes.string, - /** - * The color of the logo defaults to var(--color-text-default) - */ - color: PropTypes.string, - /** - * Additional className to add to the root svg - */ - className: PropTypes.string, - /** - * Aria label to add to the logo component - */ - ariaLabel: PropTypes.string, -}; - -export default LogoMoonPay; diff --git a/ui/components/ui/logo/logo-moonpay.test.js b/ui/components/ui/logo/logo-moonpay.test.js deleted file mode 100644 index afaabd486..000000000 --- a/ui/components/ui/logo/logo-moonpay.test.js +++ /dev/null @@ -1,11 +0,0 @@ -import React from 'react'; - -import { renderWithProvider } from '../../../../test/jest'; -import LogoMoonPay from './logo-moonpay'; - -describe('LogoMoonPay', () => { - it('renders the LogoMoonPay component', () => { - const { container } = renderWithProvider(); - expect(container).toMatchSnapshot(); - }); -}); diff --git a/ui/components/ui/logo/logo-transak.js b/ui/components/ui/logo/logo-transak.js deleted file mode 100644 index d0ea72dc6..000000000 --- a/ui/components/ui/logo/logo-transak.js +++ /dev/null @@ -1,107 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -const LogoTransak = ({ width = '100%', className, ariaLabel }) => { - return ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - ); -}; - -LogoTransak.propTypes = { - /** - * The width of the logo. Defaults to 100% - */ - width: PropTypes.string, - /** - * Additional className to add to the root svg - */ - className: PropTypes.string, - /** - * Aria label to add to the logo component - */ - ariaLabel: PropTypes.string, -}; - -export default LogoTransak; diff --git a/ui/components/ui/logo/logo-wyre.js b/ui/components/ui/logo/logo-wyre.js deleted file mode 100644 index 860a56bd4..000000000 --- a/ui/components/ui/logo/logo-wyre.js +++ /dev/null @@ -1,47 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -const LogoWyre = ({ width = '100%', color = 'var(--color-text-default)' }) => { - return ( - - - - - - - - ); -}; - -LogoWyre.propTypes = { - /** - * The width of the logo. Defaults to 100% - */ - width: PropTypes.string, - /** - * The color of the logo defaults to var(--color-text-default) - */ - color: PropTypes.string, -}; - -export default LogoWyre; diff --git a/ui/components/ui/logo/logo.stories.js b/ui/components/ui/logo/logo.stories.js index 4cb5769dc..2372c4258 100644 --- a/ui/components/ui/logo/logo.stories.js +++ b/ui/components/ui/logo/logo.stories.js @@ -7,11 +7,6 @@ import Card from '../card'; import Box from '../box'; import Typography from '../typography'; -import LogoCoinbasePay from './logo-coinbasepay'; -import LogoMoonPay from './logo-moonpay'; -import LogoWyre from './logo-wyre'; -import LogoTransak from './logo-transak'; -import LogoDepositEth from './logo-deposit-eth'; import LogoLedger from './logo-ledger'; import LogoQRBased from './logo-qr-based'; import LogoTrezor from './logo-trezor'; @@ -69,11 +64,6 @@ export const DefaultStory = (args) => ( gridTemplateColumns: 'repeat(auto-fill, 176px)', }} > - } /> - } /> - } /> - } /> - } /> } /> } /> } /> diff --git a/ui/helpers/utils/moonpay.test.js b/ui/helpers/utils/moonpay.test.js deleted file mode 100644 index bf13f500d..000000000 --- a/ui/helpers/utils/moonpay.test.js +++ /dev/null @@ -1,33 +0,0 @@ -import { CHAIN_IDS } from '../../../shared/constants/network'; -import { formatMoonpaySymbol } from './moonpay'; - -describe('Moonpay Utils', () => { - describe('formatMoonpaySymbol', () => { - it('should return the same input if falsy input is provided', () => { - expect(formatMoonpaySymbol()).toBe(undefined); - expect(formatMoonpaySymbol(null)).toBe(null); - expect(formatMoonpaySymbol('')).toBe(''); - }); - - it('should return the symbol in uppercase if no chainId is provided', () => { - const result = formatMoonpaySymbol('ETH'); - expect(result).toStrictEqual('ETH'); - }); - - it('should return the symbol in uppercase if chainId is different than Avalanche/BSC/Polygon', () => { - const result = formatMoonpaySymbol('ETH', CHAIN_IDS.MAINNET); - expect(result).toStrictEqual('ETH'); - const result2 = formatMoonpaySymbol('CELO', CHAIN_IDS.CELO); - expect(result2).toStrictEqual('CELO'); - }); - - it('should return the symbol in uppercase with the network name if chainId is Avalanche/BSC/Polygon', () => { - const result = formatMoonpaySymbol('BNB', CHAIN_IDS.BSC); - expect(result).toStrictEqual('BNB_BSC'); - const result2 = formatMoonpaySymbol('MATIC', CHAIN_IDS.POLYGON); - expect(result2).toStrictEqual('MATIC_POLYGON'); - const result3 = formatMoonpaySymbol('AVAX', CHAIN_IDS.AVALANCHE); - expect(result3).toStrictEqual('AVAX_CCHAIN'); - }); - }); -}); diff --git a/ui/helpers/utils/moonpay.ts b/ui/helpers/utils/moonpay.ts deleted file mode 100644 index 30e5eb92d..000000000 --- a/ui/helpers/utils/moonpay.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { - BUYABLE_CHAINS_MAP, - CHAIN_IDS, -} from '../../../shared/constants/network'; - -export const formatMoonpaySymbol = ( - symbol: string | null, - chainId: keyof typeof BUYABLE_CHAINS_MAP, -): string | null => { - if (!symbol) { - return symbol; - } - let _symbol = symbol; - if (chainId === CHAIN_IDS.POLYGON || chainId === CHAIN_IDS.BSC) { - _symbol = `${_symbol}_${BUYABLE_CHAINS_MAP?.[ - chainId - ]?.network.toUpperCase()}`; - } else if (chainId === CHAIN_IDS.AVALANCHE) { - _symbol = `${_symbol}_CCHAIN`; - } - return _symbol; -}; diff --git a/ui/hooks/experiences/useRamps.test.js b/ui/hooks/experiences/useRamps.test.js new file mode 100644 index 000000000..f104094e8 --- /dev/null +++ b/ui/hooks/experiences/useRamps.test.js @@ -0,0 +1,82 @@ +import { renderHook } from '@testing-library/react-hooks'; +import { useSelector } from 'react-redux'; +import useRamps from './useRamps'; + +jest.mock('react-redux'); + +jest.mock('./../../selectors', () => ({ + getCurrentChainId: jest.fn(), +})); + +jest.mock('../../../shared/constants/network', () => ({ + CHAIN_IDS: { + GOERLI: '5', + SEPOLIA: '10', + MAINNET: '1', + }, +})); + +describe('useRamps', () => { + beforeAll(() => { + jest.clearAllMocks(); + Object.defineProperty(global, 'platform', { + value: { + openTab: jest.fn(), + }, + }); + }); + + it('should open the buy crypto URL for GOERLI chain ID', () => { + const mockChainId = '5'; + const mockBuyURI = 'https://goerli-faucet.slock.it/'; + + useSelector.mockReturnValue(mockChainId); + const openTabSpy = jest.spyOn(global.platform, 'openTab'); + + const { result } = renderHook(() => useRamps()); + + expect(typeof result.current.openBuyCryptoInPdapp).toBe('function'); + + result.current.openBuyCryptoInPdapp(); + + expect(openTabSpy).toHaveBeenCalledWith({ + url: mockBuyURI, + }); + }); + + it('should open the buy crypto URL for SEPOLIA chain ID', () => { + const mockChainId = '10'; + const mockBuyURI = 'https://faucet.sepolia.dev/'; + + useSelector.mockReturnValue(mockChainId); + const openTabSpy = jest.spyOn(global.platform, 'openTab'); + + const { result } = renderHook(() => useRamps()); + + expect(typeof result.current.openBuyCryptoInPdapp).toBe('function'); + + result.current.openBuyCryptoInPdapp(); + + expect(openTabSpy).toHaveBeenCalledWith({ + url: mockBuyURI, + }); + }); + + it('should open the buy crypto URL for MAINNET chain ID', () => { + const mockChainId = '1'; + const mockBuyURI = `${process.env.PORTFOLIO_URL}/buy?metamaskEntry=ext_buy_button`; + + useSelector.mockReturnValue(mockChainId); + const openTabSpy = jest.spyOn(global.platform, 'openTab'); + + const { result } = renderHook(() => useRamps()); + + expect(typeof result.current.openBuyCryptoInPdapp).toBe('function'); + + result.current.openBuyCryptoInPdapp(); + + expect(openTabSpy).toHaveBeenCalledWith({ + url: mockBuyURI, + }); + }); +}); diff --git a/ui/hooks/experiences/useRamps.ts b/ui/hooks/experiences/useRamps.ts new file mode 100644 index 000000000..3b8947486 --- /dev/null +++ b/ui/hooks/experiences/useRamps.ts @@ -0,0 +1,37 @@ +import { useCallback } from 'react'; +import { useSelector } from 'react-redux'; +import { ChainId, CHAIN_IDS } from '../../../shared/constants/network'; +import { getCurrentChainId } from '../../selectors'; + +interface IUseRamps { + openBuyCryptoInPdapp: VoidFunction; + getBuyURI: (chainId: ChainId) => string; +} + +const portfolioUrl = process.env.PORTFOLIO_URL; + +const useRamps = (): IUseRamps => { + const chainId = useSelector(getCurrentChainId); + + const getBuyURI = useCallback((_chainId: ChainId) => { + switch (_chainId) { + case CHAIN_IDS.GOERLI: + return 'https://goerli-faucet.slock.it/'; + case CHAIN_IDS.SEPOLIA: + return 'https://faucet.sepolia.dev/'; + default: + return `${portfolioUrl}/buy?metamaskEntry=ext_buy_button`; + } + }, []); + + const openBuyCryptoInPdapp = useCallback(() => { + const buyUrl = getBuyURI(chainId); + global.platform.openTab({ + url: buyUrl, + }); + }, []); + + return { openBuyCryptoInPdapp, getBuyURI }; +}; + +export default useRamps; diff --git a/ui/pages/send/gas-display/gas-display.js b/ui/pages/send/gas-display/gas-display.js index 7cd31230f..ab078b368 100644 --- a/ui/pages/send/gas-display/gas-display.js +++ b/ui/pages/send/gas-display/gas-display.js @@ -1,4 +1,4 @@ -import React, { useContext, useState } from 'react'; +import React, { useContext } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; @@ -26,7 +26,6 @@ import TransactionDetailItem from '../../../components/app/transaction-detail-it import { NETWORK_TO_NAME_MAP } from '../../../../shared/constants/network'; import TransactionDetail from '../../../components/app/transaction-detail'; import ActionableMessage from '../../../components/ui/actionable-message'; -import DepositPopover from '../../../components/app/deposit-popover'; import { getProvider, getPreferences, @@ -46,12 +45,17 @@ import { hexWEIToDecETH, hexWEIToDecGWEI, } from '../../../../shared/modules/conversion.utils'; +import { EVENT, EVENT_NAMES } from '../../../../shared/constants/metametrics'; +import { MetaMetricsContext } from '../../../contexts/metametrics'; +import useRamps from '../../../hooks/experiences/useRamps'; export default function GasDisplay({ gasError }) { const t = useContext(I18nContext); const dispatch = useDispatch(); const { estimateUsed } = useGasFeeContext(); - const [showDepositPopover, setShowDepositPopover] = useState(false); + const trackEvent = useContext(MetaMetricsContext); + + const { openBuyCryptoInPdapp } = useRamps(); const currentProvider = useSelector(getProvider); const isMainnet = useSelector(getIsMainnet); @@ -154,9 +158,6 @@ export default function GasDisplay({ gasError }) { return ( <> - {showDepositPopover && ( - setShowDepositPopover(false)} /> - )} { - setShowDepositPopover(true); + openBuyCryptoInPdapp(); + trackEvent({ + event: EVENT_NAMES.NAV_BUY_BUTTON_CLICKED, + category: EVENT.CATEGORIES.NAVIGATION, + properties: { + location: 'Gas Warning Insufficient Funds', + text: 'Buy', + }, + }); }} key={`${nativeCurrency}-buy-button`} > diff --git a/ui/selectors/selectors.js b/ui/selectors/selectors.js index cf6632c26..a4f9bd780 100644 --- a/ui/selectors/selectors.js +++ b/ui/selectors/selectors.js @@ -64,7 +64,6 @@ import { getLedgerTransportStatus, } from '../ducks/app/app'; import { isEqualCaseInsensitive } from '../../shared/modules/string-utils'; -import { formatMoonpaySymbol } from '../helpers/utils/moonpay'; import { TransactionStatus } from '../../shared/constants/transaction'; import { getValueFromWeiHex, @@ -759,57 +758,6 @@ export function getIsBuyableChain(state) { const chainId = getCurrentChainId(state); return Object.keys(BUYABLE_CHAINS_MAP).includes(chainId); } - -export function getIsBuyableTransakChain(state) { - const chainId = getCurrentChainId(state); - return Boolean(BUYABLE_CHAINS_MAP?.[chainId]?.transakCurrencies); -} - -export function getIsBuyableTransakToken(state, symbol) { - const chainId = getCurrentChainId(state); - return Boolean( - BUYABLE_CHAINS_MAP?.[chainId]?.transakCurrencies?.includes(symbol), - ); -} - -export function getIsBuyableMoonpayToken(state, symbol) { - const chainId = getCurrentChainId(state); - const _symbol = formatMoonpaySymbol(symbol, chainId); - return Boolean( - BUYABLE_CHAINS_MAP?.[chainId]?.moonPay?.showOnlyCurrencies?.includes( - _symbol, - ), - ); -} - -export function getIsBuyableWyreToken(state, symbol) { - const chainId = getCurrentChainId(state); - return Boolean( - BUYABLE_CHAINS_MAP?.[chainId]?.wyre?.currencies.includes(symbol), - ); -} - -export function getIsBuyableMoonPayChain(state) { - const chainId = getCurrentChainId(state); - return Boolean(BUYABLE_CHAINS_MAP?.[chainId]?.moonPay); -} - -export function getIsBuyableWyreChain(state) { - const chainId = getCurrentChainId(state); - return Boolean(BUYABLE_CHAINS_MAP?.[chainId]?.wyre); -} -export function getIsBuyableCoinbasePayChain(state) { - const chainId = getCurrentChainId(state); - return Boolean(BUYABLE_CHAINS_MAP?.[chainId]?.coinbasePayCurrencies); -} - -export function getIsBuyableCoinbasePayToken(state, symbol) { - const chainId = getCurrentChainId(state); - return Boolean( - BUYABLE_CHAINS_MAP?.[chainId]?.coinbasePayCurrencies?.includes(symbol), - ); -} - export function getNativeCurrencyImage(state) { const nativeCurrency = getNativeCurrency(state)?.toUpperCase(); return NATIVE_CURRENCY_TOKEN_IMAGE_MAP[nativeCurrency]; diff --git a/ui/store/actionConstants.ts b/ui/store/actionConstants.ts index f83b1fd6a..8eca6c137 100644 --- a/ui/store/actionConstants.ts +++ b/ui/store/actionConstants.ts @@ -47,8 +47,6 @@ export const SET_HARDWARE_WALLET_DEFAULT_HD_PATH = export const SHOW_LOADING = 'SHOW_LOADING_INDICATION'; export const HIDE_LOADING = 'HIDE_LOADING_INDICATION'; -export const BUY = 'BUY'; - export const TOGGLE_ACCOUNT_MENU = 'TOGGLE_ACCOUNT_MENU'; // preferences diff --git a/ui/store/actions.ts b/ui/store/actions.ts index 3d4808288..f7dfae23c 100644 --- a/ui/store/actions.ts +++ b/ui/store/actions.ts @@ -14,7 +14,6 @@ import { PayloadAction } from '@reduxjs/toolkit'; import { GasFeeController } from '@metamask/gas-fee-controller'; import { PermissionsRequest } from '@metamask/permission-controller'; import { NonEmptyArray } from '@metamask/controller-utils'; -import getBuyUrl from '../../app/scripts/lib/buy-url'; import { getMethodDataAsync } from '../helpers/utils/transactions.util'; import switchDirection from '../../shared/lib/switch-direction'; import { @@ -76,12 +75,7 @@ import { TransactionMetaMetricsEvent, TransactionType, } from '../../shared/constants/transaction'; -import { - BUYABLE_CHAINS_MAP, - CurrencySymbol, - NetworkType, - RPCDefinition, -} from '../../shared/constants/network'; +import { NetworkType, RPCDefinition } from '../../shared/constants/network'; import { EtherDenomination } from '../../shared/constants/common'; import { isErrorWithMessage, @@ -2898,23 +2892,6 @@ export function showSendTokenPage(): Action { }; } -export function buy(opts: { - chainId: keyof typeof BUYABLE_CHAINS_MAP; - address?: string; - symbol?: CurrencySymbol; - service?: string; -}): ThunkAction { - return async (dispatch) => { - const url = await getBuyUrl(opts); - if (url) { - global.platform.openTab({ url }); - dispatch({ - type: actionConstants.BUY, - }); - } - }; -} - // TODO: Lift to shared folder when it makes sense interface TemporaryFeatureFlagDef { [feature: string]: boolean; diff --git a/yarn.lock b/yarn.lock index 23cc3f19c..51eb8b9b6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7197,6 +7197,16 @@ __metadata: languageName: node linkType: hard +"@types/hoist-non-react-statics@npm:^3.3.0": + version: 3.3.1 + resolution: "@types/hoist-non-react-statics@npm:3.3.1" + dependencies: + "@types/react": "*" + hoist-non-react-statics: ^3.3.0 + checksum: 2c0778570d9a01d05afabc781b32163f28409bb98f7245c38d5eaf082416fdb73034003f5825eb5e21313044e8d2d9e1f3fe2831e345d3d1b1d20bcd12270719 + languageName: node + linkType: hard + "@types/html-minifier-terser@npm:^5.0.0": version: 5.1.1 resolution: "@types/html-minifier-terser@npm:5.1.1" @@ -7519,6 +7529,18 @@ __metadata: languageName: node linkType: hard +"@types/react-redux@npm:^7.1.25": + version: 7.1.25 + resolution: "@types/react-redux@npm:7.1.25" + dependencies: + "@types/hoist-non-react-statics": ^3.3.0 + "@types/react": "*" + hoist-non-react-statics: ^3.3.0 + redux: ^4.0.0 + checksum: a61ec25cbf8bb3720850402d3c49493fcff4afb73ad447d161460b5d4c600c984ad48708e8564d2fd32052eaa3c3b3f655c5b300ce813429637cce9e5958329f + languageName: node + linkType: hard + "@types/react-transition-group@npm:^4.2.0": version: 4.4.0 resolution: "@types/react-transition-group@npm:4.4.0" @@ -24112,6 +24134,7 @@ __metadata: "@types/pump": ^1.1.1 "@types/react": ^16.9.53 "@types/react-dom": ^17.0.11 + "@types/react-redux": ^7.1.25 "@types/remote-redux-devtools": ^0.5.5 "@types/w3c-web-hid": ^1.0.3 "@types/watchify": ^3.11.1