mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Buy crypto by redirecting to onramp experience on pdapp instead of deposit popover (#17689)
* feat: disable deposit popover and replace it with global redirect to onramp on pdapp * feat: remove legacy code for hardcoded onramp providers * fix: remove unused visuals and components related to legacy code of deposit popover * fix: remove unused messages * feat: use a custom hook for all onramps related methods and variables * fix: modify the custom hook implementation to include test networks * fix: remove deprecated file buy-url * fix: remove references for deleted deposit logos * fix: network-controller failing unit test * fix: snapshot loading-swaps-quotes-stories-metadata.test.js.snap * fix: storybook tests * fix: remove unused constatns related to buyable onramp chains * fix: remove unused variables and fix eslint * adding unit test for useRamps custom hook * feat: add comment on the proper usage of useRamps within confirm-page-container component * fix: add unit tests for buy button in token-overview page * fix: add unit test for open the buy crypto URL for a buyable chain ID in token page * feat: add unit test coverage for eth-overview page * fix: update locales
This commit is contained in:
parent
90ae4980b3
commit
5998ae21aa
app
_locales
am
ar
bg
bn
ca
cs
da
de
el
en
es
es_419
et
fa
fi
fil
fr
gu
he
hi
hn
hr
ht
hu
id
it
ja
kn
ko
lt
lv
ml
mr
ms
nl
no
ph
pl
pt
pt_BR
pt_PT
ro
ru
sk
sl
sr
sv
sw
ta
te
th
tl
tr
uk
vi
zh_CN
zh_TW
scripts/lib
development/ts-migration-dashboard
package.jsonshared/constants
ui
components
app
app-components.scss
confirm-page-container
confirm-page-container-content
confirm-page-container.component.jsdeposit-popover
wallet-overview
ui/logo
helpers/utils
hooks/experiences
pages/send/gas-display
selectors
store
22
app/_locales/am/messages.json
generated
22
app/_locales/am/messages.json
generated
@ -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": "ዕውቂያን ይመልከቱ"
|
||||
},
|
||||
|
22
app/_locales/ar/messages.json
generated
22
app/_locales/ar/messages.json
generated
@ -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": "عرض جهة الاتصال"
|
||||
},
|
||||
|
22
app/_locales/bg/messages.json
generated
22
app/_locales/bg/messages.json
generated
@ -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": "Преглед на контакта"
|
||||
},
|
||||
|
22
app/_locales/bn/messages.json
generated
22
app/_locales/bn/messages.json
generated
@ -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": "পরিচিতি দেখুন"
|
||||
},
|
||||
|
19
app/_locales/ca/messages.json
generated
19
app/_locales/ca/messages.json
generated
@ -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"
|
||||
},
|
||||
|
13
app/_locales/cs/messages.json
generated
13
app/_locales/cs/messages.json
generated
@ -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"
|
||||
},
|
||||
|
22
app/_locales/da/messages.json
generated
22
app/_locales/da/messages.json
generated
@ -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"
|
||||
},
|
||||
|
68
app/_locales/de/messages.json
generated
68
app/_locales/de/messages.json
generated
@ -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"
|
||||
},
|
||||
|
68
app/_locales/el/messages.json
generated
68
app/_locales/el/messages.json
generated
@ -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": "Προβολή όλων των λεπτομερειών"
|
||||
},
|
||||
|
68
app/_locales/en/messages.json
generated
68
app/_locales/en/messages.json
generated
@ -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"
|
||||
},
|
||||
|
68
app/_locales/es/messages.json
generated
68
app/_locales/es/messages.json
generated
@ -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"
|
||||
},
|
||||
|
25
app/_locales/es_419/messages.json
generated
25
app/_locales/es_419/messages.json
generated
@ -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"
|
||||
},
|
||||
|
22
app/_locales/et/messages.json
generated
22
app/_locales/et/messages.json
generated
@ -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"
|
||||
},
|
||||
|
22
app/_locales/fa/messages.json
generated
22
app/_locales/fa/messages.json
generated
@ -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": "مشاهده تماس"
|
||||
},
|
||||
|
22
app/_locales/fi/messages.json
generated
22
app/_locales/fi/messages.json
generated
@ -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ö"
|
||||
},
|
||||
|
19
app/_locales/fil/messages.json
generated
19
app/_locales/fil/messages.json
generated
@ -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"
|
||||
},
|
||||
|
68
app/_locales/fr/messages.json
generated
68
app/_locales/fr/messages.json
generated
@ -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"
|
||||
},
|
||||
|
3
app/_locales/gu/messages.json
generated
3
app/_locales/gu/messages.json
generated
@ -144,8 +144,5 @@
|
||||
},
|
||||
"userName": {
|
||||
"message": "વપરાશકર્તાનામ"
|
||||
},
|
||||
"viewAccount": {
|
||||
"message": "એકાઉન્ટ જુઓ"
|
||||
}
|
||||
}
|
||||
|
22
app/_locales/he/messages.json
generated
22
app/_locales/he/messages.json
generated
@ -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": "הצג איש קשר"
|
||||
},
|
||||
|
68
app/_locales/hi/messages.json
generated
68
app/_locales/hi/messages.json
generated
@ -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": "सभी विवरण देखें"
|
||||
},
|
||||
|
13
app/_locales/hn/messages.json
generated
13
app/_locales/hn/messages.json
generated
@ -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": "हमारी वेब साइट पर जाएं"
|
||||
},
|
||||
|
22
app/_locales/hr/messages.json
generated
22
app/_locales/hr/messages.json
generated
@ -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"
|
||||
},
|
||||
|
13
app/_locales/ht/messages.json
generated
13
app/_locales/ht/messages.json
generated
@ -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"
|
||||
},
|
||||
|
22
app/_locales/hu/messages.json
generated
22
app/_locales/hu/messages.json
generated
@ -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"
|
||||
},
|
||||
|
68
app/_locales/id/messages.json
generated
68
app/_locales/id/messages.json
generated
@ -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"
|
||||
},
|
||||
|
64
app/_locales/it/messages.json
generated
64
app/_locales/it/messages.json
generated
@ -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"
|
||||
},
|
||||
|
68
app/_locales/ja/messages.json
generated
68
app/_locales/ja/messages.json
generated
@ -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": "すべての詳細の表示"
|
||||
},
|
||||
|
22
app/_locales/kn/messages.json
generated
22
app/_locales/kn/messages.json
generated
@ -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": "ಸಂಪರ್ಕವನ್ನು ವೀಕ್ಷಿಸಿ"
|
||||
},
|
||||
|
68
app/_locales/ko/messages.json
generated
68
app/_locales/ko/messages.json
generated
@ -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": "모든 세부 정보 보기"
|
||||
},
|
||||
|
22
app/_locales/lt/messages.json
generated
22
app/_locales/lt/messages.json
generated
@ -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ą"
|
||||
},
|
||||
|
22
app/_locales/lv/messages.json
generated
22
app/_locales/lv/messages.json
generated
@ -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"
|
||||
},
|
||||
|
3
app/_locales/ml/messages.json
generated
3
app/_locales/ml/messages.json
generated
@ -144,8 +144,5 @@
|
||||
},
|
||||
"userName": {
|
||||
"message": "ഉപയോക്തൃനാമം"
|
||||
},
|
||||
"viewAccount": {
|
||||
"message": "അക്കൗണ്ട് കാണുക"
|
||||
}
|
||||
}
|
||||
|
3
app/_locales/mr/messages.json
generated
3
app/_locales/mr/messages.json
generated
@ -144,8 +144,5 @@
|
||||
},
|
||||
"userName": {
|
||||
"message": "वापरकर्तानाव"
|
||||
},
|
||||
"viewAccount": {
|
||||
"message": "खाते पहा"
|
||||
}
|
||||
}
|
||||
|
22
app/_locales/ms/messages.json
generated
22
app/_locales/ms/messages.json
generated
@ -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"
|
||||
},
|
||||
|
13
app/_locales/nl/messages.json
generated
13
app/_locales/nl/messages.json
generated
@ -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"
|
||||
},
|
||||
|
22
app/_locales/no/messages.json
generated
22
app/_locales/no/messages.json
generated
@ -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"
|
||||
},
|
||||
|
22
app/_locales/ph/messages.json
generated
22
app/_locales/ph/messages.json
generated
@ -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"
|
||||
},
|
||||
|
22
app/_locales/pl/messages.json
generated
22
app/_locales/pl/messages.json
generated
@ -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"
|
||||
},
|
||||
|
68
app/_locales/pt/messages.json
generated
68
app/_locales/pt/messages.json
generated
@ -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"
|
||||
},
|
||||
|
25
app/_locales/pt_BR/messages.json
generated
25
app/_locales/pt_BR/messages.json
generated
@ -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"
|
||||
},
|
||||
|
3
app/_locales/pt_PT/messages.json
generated
3
app/_locales/pt_PT/messages.json
generated
@ -158,9 +158,6 @@
|
||||
"userName": {
|
||||
"message": "Nome de utilizador"
|
||||
},
|
||||
"viewAccount": {
|
||||
"message": "Ver Conta"
|
||||
},
|
||||
"welcomeBack": {
|
||||
"message": "Bem-vindo de volta!"
|
||||
}
|
||||
|
22
app/_locales/ro/messages.json
generated
22
app/_locales/ro/messages.json
generated
@ -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"
|
||||
},
|
||||
|
68
app/_locales/ru/messages.json
generated
68
app/_locales/ru/messages.json
generated
@ -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": "Смотреть все сведения"
|
||||
},
|
||||
|
22
app/_locales/sk/messages.json
generated
22
app/_locales/sk/messages.json
generated
@ -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"
|
||||
},
|
||||
|
22
app/_locales/sl/messages.json
generated
22
app/_locales/sl/messages.json
generated
@ -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"
|
||||
},
|
||||
|
19
app/_locales/sr/messages.json
generated
19
app/_locales/sr/messages.json
generated
@ -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"
|
||||
},
|
||||
|
22
app/_locales/sv/messages.json
generated
22
app/_locales/sv/messages.json
generated
@ -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"
|
||||
},
|
||||
|
22
app/_locales/sw/messages.json
generated
22
app/_locales/sw/messages.json
generated
@ -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"
|
||||
},
|
||||
|
13
app/_locales/ta/messages.json
generated
13
app/_locales/ta/messages.json
generated
@ -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": "எங்கள் வலைத்தளத்தைப் பார்வையிடவும்"
|
||||
},
|
||||
|
3
app/_locales/te/messages.json
generated
3
app/_locales/te/messages.json
generated
@ -144,8 +144,5 @@
|
||||
},
|
||||
"userName": {
|
||||
"message": "యూజర్పేరు"
|
||||
},
|
||||
"viewAccount": {
|
||||
"message": "ఖాతాను వీక్షించండి"
|
||||
}
|
||||
}
|
||||
|
16
app/_locales/th/messages.json
generated
16
app/_locales/th/messages.json
generated
@ -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": "เยี่ยมชมเว็บไซต์ของเรา"
|
||||
},
|
||||
|
68
app/_locales/tl/messages.json
generated
68
app/_locales/tl/messages.json
generated
@ -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"
|
||||
},
|
||||
|
68
app/_locales/tr/messages.json
generated
68
app/_locales/tr/messages.json
generated
@ -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"
|
||||
},
|
||||
|
22
app/_locales/uk/messages.json
generated
22
app/_locales/uk/messages.json
generated
@ -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": "Переглянути контакт"
|
||||
},
|
||||
|
68
app/_locales/vi/messages.json
generated
68
app/_locales/vi/messages.json
generated
@ -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"
|
||||
},
|
||||
|
68
app/_locales/zh_CN/messages.json
generated
68
app/_locales/zh_CN/messages.json
generated
@ -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": "查看所有详情"
|
||||
},
|
||||
|
36
app/_locales/zh_TW/messages.json
generated
36
app/_locales/zh_TW/messages.json
generated
@ -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": "查看所有詳情"
|
||||
},
|
||||
|
@ -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('');
|
||||
});
|
||||
});
|
@ -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<any> => {
|
||||
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<string> => {
|
||||
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<string> {
|
||||
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}"`,
|
||||
);
|
||||
}
|
||||
}
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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],
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -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';
|
||||
|
@ -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 (
|
||||
<div
|
||||
className={classnames('confirm-page-container-content', {
|
||||
@ -237,9 +230,12 @@ export default class ConfirmPageContainerContent extends Component {
|
||||
<Button
|
||||
type="inline"
|
||||
className="confirm-page-container-content__link"
|
||||
onClick={() =>
|
||||
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 {
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
{setShowDepositPopover && (
|
||||
<DepositPopover
|
||||
onClose={() => this.setState({ setShowDepositPopover: false })}
|
||||
/>
|
||||
)}
|
||||
<PageContainerFooter
|
||||
onCancel={onCancel}
|
||||
cancelText={cancelText}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import React, { useCallback, useContext, useEffect, useState } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useSelector } from 'react-redux';
|
||||
|
||||
@ -24,7 +24,6 @@ import Typography from '../../ui/typography';
|
||||
import { TypographyVariant } from '../../../helpers/constants/design-system';
|
||||
|
||||
import NetworkAccountBalanceHeader from '../network-account-balance-header/network-account-balance-header';
|
||||
import DepositPopover from '../deposit-popover/deposit-popover';
|
||||
import { fetchTokenBalance } from '../../../pages/swaps/swaps.util';
|
||||
import SetApproveForAllWarning from '../set-approval-for-all-warning';
|
||||
import { useI18nContext } from '../../../hooks/useI18nContext';
|
||||
@ -40,6 +39,9 @@ import {
|
||||
getNetworkIdentifier,
|
||||
getSwapsDefaultToken,
|
||||
} from '../../../selectors';
|
||||
import useRamps from '../../../hooks/experiences/useRamps';
|
||||
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||
import { EVENT, EVENT_NAMES } from '../../../../shared/constants/metametrics';
|
||||
import {
|
||||
ConfirmPageContainerHeader,
|
||||
ConfirmPageContainerContent,
|
||||
@ -92,8 +94,8 @@ const ConfirmPageContainer = (props) => {
|
||||
} = 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) => {
|
||||
<Button
|
||||
type="inline"
|
||||
className="confirm-page-container-content__link"
|
||||
onClick={() => setShowDepositPopover(true)}
|
||||
onClick={() => {
|
||||
openBuyCryptoInPdapp();
|
||||
trackEvent({
|
||||
event: EVENT_NAMES.NAV_BUY_BUTTON_CLICKED,
|
||||
category: EVENT.CATEGORIES.NAVIGATION,
|
||||
properties: {
|
||||
location: 'Transaction Confirmation',
|
||||
text: 'Buy',
|
||||
},
|
||||
});
|
||||
}}
|
||||
key={`${nativeCurrency}-buy-button`}
|
||||
>
|
||||
{t('buyAsset', [nativeCurrency])}
|
||||
@ -258,9 +276,6 @@ const ConfirmPageContainer = (props) => {
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
{showDepositPopover && (
|
||||
<DepositPopover onClose={() => setShowDepositPopover(false)} />
|
||||
)}
|
||||
{shouldDisplayWarning && errorKey !== INSUFFICIENT_FUNDS_ERROR_KEY && (
|
||||
<div className="confirm-approve-content__warning">
|
||||
<ErrorMessage errorKey={errorKey} />
|
||||
|
@ -1,240 +0,0 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import React, { useContext } from 'react';
|
||||
import { useSelector, useDispatch } from 'react-redux';
|
||||
|
||||
import { I18nContext } from '../../../contexts/i18n';
|
||||
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||
import {
|
||||
NETWORK_TO_NAME_MAP,
|
||||
BUYABLE_CHAINS_MAP,
|
||||
} from '../../../../shared/constants/network';
|
||||
import { EVENT, EVENT_NAMES } from '../../../../shared/constants/metametrics';
|
||||
|
||||
import LogoMoonPay from '../../ui/logo/logo-moonpay';
|
||||
import LogoWyre from '../../ui/logo/logo-wyre';
|
||||
import LogoTransak from '../../ui/logo/logo-transak';
|
||||
import LogoCoinbasePay from '../../ui/logo/logo-coinbasepay';
|
||||
import LogoDepositEth from '../../ui/logo/logo-deposit-eth';
|
||||
import Popover from '../../ui/popover';
|
||||
|
||||
import { buy, showModal, hideWarning } from '../../../store/actions';
|
||||
import {
|
||||
getIsTestnet,
|
||||
getCurrentChainId,
|
||||
getSelectedAddress,
|
||||
getIsBuyableTransakChain,
|
||||
getIsBuyableMoonPayChain,
|
||||
getIsBuyableCoinbasePayChain,
|
||||
getIsBuyableCoinbasePayToken,
|
||||
getIsBuyableTransakToken,
|
||||
getIsBuyableMoonpayToken,
|
||||
getIsBuyableWyreToken,
|
||||
} from '../../../selectors/selectors';
|
||||
|
||||
import OnRampItem from './on-ramp-item';
|
||||
|
||||
const DepositPopover = ({ onClose, token }) => {
|
||||
const isTokenDeposit = Boolean(token);
|
||||
|
||||
const t = useContext(I18nContext);
|
||||
const trackEvent = useContext(MetaMetricsContext);
|
||||
const dispatch = useDispatch();
|
||||
|
||||
const chainId = useSelector(getCurrentChainId);
|
||||
const isTestnet = useSelector(getIsTestnet);
|
||||
const address = useSelector(getSelectedAddress);
|
||||
const isBuyableTransakChain = useSelector(getIsBuyableTransakChain);
|
||||
const isBuyableMoonPayChain = useSelector(getIsBuyableMoonPayChain);
|
||||
const isBuyableWyreChain = false;
|
||||
const isBuyableCoinbasePayChain = useSelector(getIsBuyableCoinbasePayChain);
|
||||
|
||||
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 networkName = NETWORK_TO_NAME_MAP[chainId];
|
||||
const symbol = token
|
||||
? token.symbol
|
||||
: BUYABLE_CHAINS_MAP[chainId].nativeCurrency;
|
||||
|
||||
const showAccountDetailModal = () => {
|
||||
dispatch(showModal({ name: 'ACCOUNT_DETAILS' }));
|
||||
};
|
||||
const hideWarningMessage = () => {
|
||||
dispatch(hideWarning());
|
||||
};
|
||||
|
||||
const toCoinbasePay = () => {
|
||||
dispatch(
|
||||
buy({ service: 'coinbase', address, chainId, symbol: token?.symbol }),
|
||||
);
|
||||
};
|
||||
const toTransak = () => {
|
||||
dispatch(
|
||||
buy({ service: 'transak', address, chainId, symbol: token?.symbol }),
|
||||
);
|
||||
};
|
||||
const toMoonPay = () => {
|
||||
dispatch(
|
||||
buy({ service: 'moonpay', address, chainId, symbol: token?.symbol }),
|
||||
);
|
||||
};
|
||||
const toWyre = () => {
|
||||
dispatch(buy({ service: 'wyre', address, chainId, symbol: token?.symbol }));
|
||||
};
|
||||
const toFaucet = () => dispatch(buy({ chainId }));
|
||||
|
||||
const goToAccountDetailsModal = () => {
|
||||
hideWarningMessage();
|
||||
showAccountDetailModal();
|
||||
onClose();
|
||||
};
|
||||
|
||||
return (
|
||||
<Popover
|
||||
title={t('depositCrypto', [symbol])}
|
||||
subtitle={isTokenDeposit ? '' : t('needCryptoInWallet', [symbol])}
|
||||
onClose={onClose}
|
||||
className="deposit-popover"
|
||||
>
|
||||
<ul>
|
||||
<OnRampItem
|
||||
logo={<LogoCoinbasePay />}
|
||||
title={t('buyCryptoWithCoinbasePay', [symbol])}
|
||||
text={t('buyCryptoWithCoinbasePayDescription', [symbol])}
|
||||
buttonLabel={t('continueToCoinbasePay')}
|
||||
onButtonClick={() => {
|
||||
trackEvent({
|
||||
category: EVENT.CATEGORIES.ACCOUNTS,
|
||||
event: EVENT_NAMES.ONRAMP_PROVIDER_SELECTED,
|
||||
properties: {
|
||||
onramp_provider_type: EVENT.ONRAMP_PROVIDER_TYPES.COINBASE,
|
||||
},
|
||||
});
|
||||
toCoinbasePay();
|
||||
}}
|
||||
hide={
|
||||
isTokenDeposit
|
||||
? !isBuyableCoinbasePayChain || !isTokenBuyableCoinbasePay
|
||||
: !isBuyableCoinbasePayChain
|
||||
}
|
||||
/>
|
||||
<OnRampItem
|
||||
logo={<LogoTransak />}
|
||||
title={t('buyCryptoWithTransak', [symbol])}
|
||||
text={t('buyCryptoWithTransakDescription', [symbol])}
|
||||
buttonLabel={t('continueToTransak')}
|
||||
onButtonClick={() => {
|
||||
trackEvent({
|
||||
category: EVENT.CATEGORIES.ACCOUNTS,
|
||||
event: EVENT_NAMES.ONRAMP_PROVIDER_SELECTED,
|
||||
properties: {
|
||||
onramp_provider_type: EVENT.ONRAMP_PROVIDER_TYPES.TRANSAK,
|
||||
},
|
||||
});
|
||||
toTransak();
|
||||
}}
|
||||
hide={
|
||||
isTokenDeposit
|
||||
? !isBuyableTransakChain || !isTokenBuyableTransak
|
||||
: !isBuyableTransakChain
|
||||
}
|
||||
/>
|
||||
<OnRampItem
|
||||
logo={<LogoMoonPay />}
|
||||
title={t('buyCryptoWithMoonPay', [symbol])}
|
||||
text={t('buyCryptoWithMoonPayDescription', [symbol])}
|
||||
buttonLabel={t('continueToMoonPay')}
|
||||
onButtonClick={() => {
|
||||
trackEvent({
|
||||
category: EVENT.CATEGORIES.ACCOUNTS,
|
||||
event: EVENT_NAMES.ONRAMP_PROVIDER_SELECTED,
|
||||
properties: {
|
||||
onramp_provider_type: EVENT.ONRAMP_PROVIDER_TYPES.MOONPAY,
|
||||
},
|
||||
});
|
||||
toMoonPay();
|
||||
}}
|
||||
hide={
|
||||
isTokenDeposit
|
||||
? !isBuyableMoonPayChain || !isTokenBuyableMoonpay
|
||||
: !isBuyableMoonPayChain
|
||||
}
|
||||
/>
|
||||
<OnRampItem
|
||||
logo={<LogoWyre />}
|
||||
title={t('buyWithWyre', [symbol])}
|
||||
text={t('buyWithWyreDescription', [symbol])}
|
||||
buttonLabel={t('continueToWyre')}
|
||||
onButtonClick={() => {
|
||||
trackEvent({
|
||||
category: EVENT.CATEGORIES.ACCOUNTS,
|
||||
event: EVENT_NAMES.ONRAMP_PROVIDER_SELECTED,
|
||||
properties: {
|
||||
onramp_provider_type: EVENT.ONRAMP_PROVIDER_TYPES.WYRE,
|
||||
},
|
||||
});
|
||||
toWyre();
|
||||
}}
|
||||
hide={
|
||||
isTokenDeposit
|
||||
? !isBuyableWyreChain || !isTokenBuyableWyre
|
||||
: !isBuyableWyreChain
|
||||
}
|
||||
/>
|
||||
|
||||
<OnRampItem
|
||||
logo={<LogoDepositEth width="50px" />}
|
||||
title={t('directDepositCrypto', [symbol])}
|
||||
text={t('directDepositCryptoExplainer', [symbol])}
|
||||
buttonLabel={t('viewAccount')}
|
||||
onButtonClick={() => {
|
||||
trackEvent({
|
||||
category: EVENT.CATEGORIES.ACCOUNTS,
|
||||
event: EVENT_NAMES.ONRAMP_PROVIDER_SELECTED,
|
||||
properties: {
|
||||
onramp_provider_type: EVENT.ONRAMP_PROVIDER_TYPES.SELF_DEPOSIT,
|
||||
},
|
||||
});
|
||||
goToAccountDetailsModal();
|
||||
}}
|
||||
hide={isTokenDeposit || !isBuyableWyreChain}
|
||||
/>
|
||||
|
||||
{networkName && (
|
||||
<OnRampItem
|
||||
logo={<i className="fa fa-tint fa-2x" />}
|
||||
title={t('testFaucet')}
|
||||
text={t('getEtherFromFaucet', [networkName])}
|
||||
buttonLabel={t('getEther')}
|
||||
onButtonClick={() => toFaucet()}
|
||||
hide={!isTestnet}
|
||||
/>
|
||||
)}
|
||||
</ul>
|
||||
</Popover>
|
||||
);
|
||||
};
|
||||
|
||||
DepositPopover.propTypes = {
|
||||
onClose: PropTypes.func.isRequired,
|
||||
token: PropTypes.shape({
|
||||
address: PropTypes.string.isRequired,
|
||||
decimals: PropTypes.number,
|
||||
symbol: PropTypes.string,
|
||||
image: PropTypes.string,
|
||||
aggregators: PropTypes.array,
|
||||
isERC721: PropTypes.bool,
|
||||
}),
|
||||
};
|
||||
|
||||
export default DepositPopover;
|
@ -1 +0,0 @@
|
||||
export { default } from './deposit-popover';
|
@ -1,16 +0,0 @@
|
||||
.deposit-popover {
|
||||
min-width: 328px;
|
||||
max-width: 850px;
|
||||
|
||||
@include screen-md-min {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
&__on-ramp-item {
|
||||
border-bottom: 1px solid var(--color-border-muted);
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,91 +0,0 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import Button from '../../ui/button';
|
||||
import Box from '../../ui/box';
|
||||
import Typography from '../../ui/typography';
|
||||
import {
|
||||
AlignItems,
|
||||
DISPLAY,
|
||||
FLEX_WRAP,
|
||||
BLOCK_SIZES,
|
||||
JustifyContent,
|
||||
} from '../../../helpers/constants/design-system';
|
||||
|
||||
const OnRampItem = ({
|
||||
className,
|
||||
logo,
|
||||
title,
|
||||
text,
|
||||
buttonLabel,
|
||||
onButtonClick,
|
||||
hide = false,
|
||||
}) => {
|
||||
if (hide) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<Box
|
||||
className={classnames('deposit-popover__on-ramp-item', className)}
|
||||
as="li"
|
||||
marginRight={6}
|
||||
marginLeft={6}
|
||||
>
|
||||
<Box
|
||||
paddingTop={6}
|
||||
paddingBottom={6}
|
||||
display={DISPLAY.FLEX}
|
||||
alignItems={AlignItems.center}
|
||||
flexWrap={FLEX_WRAP.WRAP}
|
||||
>
|
||||
<Box
|
||||
width={[BLOCK_SIZES.HALF, BLOCK_SIZES.HALF, BLOCK_SIZES.ONE_FIFTH]}
|
||||
display={DISPLAY.FLEX}
|
||||
justifyContent={[
|
||||
JustifyContent.flexStart,
|
||||
JustifyContent.flexStart,
|
||||
JustifyContent.center,
|
||||
]}
|
||||
paddingLeft={[0, 0, 4]}
|
||||
paddingRight={[0, 0, 4]}
|
||||
paddingBottom={[2, 0]}
|
||||
>
|
||||
{logo}
|
||||
</Box>
|
||||
<Box
|
||||
width={[BLOCK_SIZES.FULL, BLOCK_SIZES.FULL, BLOCK_SIZES.TWO_FIFTHS]}
|
||||
paddingLeft={[0, 0, 4]}
|
||||
paddingRight={[0, 0, 4]}
|
||||
paddingBottom={[2, 0]}
|
||||
>
|
||||
<Typography variant="h6" fontWeight="bold">
|
||||
{title}
|
||||
</Typography>
|
||||
<Typography>{text}</Typography>
|
||||
</Box>
|
||||
<Box
|
||||
paddingLeft={[0, 0, 4]}
|
||||
paddingRight={[0, 0, 4]}
|
||||
width={[BLOCK_SIZES.FULL, BLOCK_SIZES.FULL, BLOCK_SIZES.TWO_FIFTHS]}
|
||||
paddingBottom={[2, 0]}
|
||||
>
|
||||
<Button type="secondary" onClick={onButtonClick}>
|
||||
{buttonLabel}
|
||||
</Button>
|
||||
</Box>
|
||||
</Box>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
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;
|
@ -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 && (
|
||||
<DepositPopover onClose={() => setShowDepositPopover(false)} />
|
||||
)}
|
||||
<WalletOverview
|
||||
loading={!balance}
|
||||
balance={
|
||||
<Tooltip
|
||||
position="top"
|
||||
title={t('balanceOutdated')}
|
||||
disabled={!balanceIsCached}
|
||||
>
|
||||
<div className="eth-overview__balance">
|
||||
<div className="eth-overview__primary-container">
|
||||
{balance ? (
|
||||
<UserPreferencedCurrencyDisplay
|
||||
className={classnames('eth-overview__primary-balance', {
|
||||
'eth-overview__cached-balance': balanceIsCached,
|
||||
})}
|
||||
data-testid="eth-overview__primary-currency"
|
||||
value={balance}
|
||||
type={PRIMARY}
|
||||
ethNumberOfDecimals={4}
|
||||
hideTitle
|
||||
/>
|
||||
) : (
|
||||
<Spinner
|
||||
color="var(--color-secondary-default)"
|
||||
className="loading-overlay__spinner"
|
||||
/>
|
||||
)}
|
||||
{balanceIsCached ? (
|
||||
<span className="eth-overview__cached-star">*</span>
|
||||
) : null}
|
||||
</div>
|
||||
{showFiat && balance && (
|
||||
<WalletOverview
|
||||
loading={!balance}
|
||||
balance={
|
||||
<Tooltip
|
||||
position="top"
|
||||
title={t('balanceOutdated')}
|
||||
disabled={!balanceIsCached}
|
||||
>
|
||||
<div className="eth-overview__balance">
|
||||
<div className="eth-overview__primary-container">
|
||||
{balance ? (
|
||||
<UserPreferencedCurrencyDisplay
|
||||
className={classnames({
|
||||
'eth-overview__cached-secondary-balance': balanceIsCached,
|
||||
'eth-overview__secondary-balance': !balanceIsCached,
|
||||
className={classnames('eth-overview__primary-balance', {
|
||||
'eth-overview__cached-balance': balanceIsCached,
|
||||
})}
|
||||
data-testid="eth-overview__secondary-currency"
|
||||
data-testid="eth-overview__primary-currency"
|
||||
value={balance}
|
||||
type={SECONDARY}
|
||||
type={PRIMARY}
|
||||
ethNumberOfDecimals={4}
|
||||
hideTitle
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</Tooltip>
|
||||
}
|
||||
buttons={
|
||||
<>
|
||||
<IconButton
|
||||
className="eth-overview__button"
|
||||
Icon={
|
||||
<Icon name={ICON_NAMES.CARD} color={IconColor.primaryInverse} />
|
||||
}
|
||||
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);
|
||||
}}
|
||||
/>
|
||||
<IconButton
|
||||
className="eth-overview__button"
|
||||
data-testid="eth-overview-send"
|
||||
Icon={
|
||||
<Icon
|
||||
name={ICON_NAMES.ARROW_2_RIGHT}
|
||||
color={IconColor.primaryInverse}
|
||||
) : (
|
||||
<Spinner
|
||||
color="var(--color-secondary-default)"
|
||||
className="loading-overlay__spinner"
|
||||
/>
|
||||
}
|
||||
label={t('send')}
|
||||
onClick={() => {
|
||||
)}
|
||||
{balanceIsCached ? (
|
||||
<span className="eth-overview__cached-star">*</span>
|
||||
) : null}
|
||||
</div>
|
||||
{showFiat && balance && (
|
||||
<UserPreferencedCurrencyDisplay
|
||||
className={classnames({
|
||||
'eth-overview__cached-secondary-balance': balanceIsCached,
|
||||
'eth-overview__secondary-balance': !balanceIsCached,
|
||||
})}
|
||||
data-testid="eth-overview__secondary-currency"
|
||||
value={balance}
|
||||
type={SECONDARY}
|
||||
ethNumberOfDecimals={4}
|
||||
hideTitle
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</Tooltip>
|
||||
}
|
||||
buttons={
|
||||
<>
|
||||
<IconButton
|
||||
className="eth-overview__button"
|
||||
Icon={
|
||||
<Icon name={ICON_NAMES.CARD} color={IconColor.primaryInverse} />
|
||||
}
|
||||
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',
|
||||
},
|
||||
});
|
||||
}}
|
||||
/>
|
||||
<IconButton
|
||||
className="eth-overview__button"
|
||||
data-testid="eth-overview-send"
|
||||
Icon={
|
||||
<Icon
|
||||
name={ICON_NAMES.ARROW_2_RIGHT}
|
||||
color={IconColor.primaryInverse}
|
||||
/>
|
||||
}
|
||||
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);
|
||||
});
|
||||
}}
|
||||
/>
|
||||
<IconButton
|
||||
className="eth-overview__button"
|
||||
disabled={!isSwapsChain}
|
||||
Icon={
|
||||
<Icon
|
||||
name={ICON_NAMES.SWAP_HORIZONTAL}
|
||||
color={IconColor.primaryInverse}
|
||||
/>
|
||||
}
|
||||
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);
|
||||
});
|
||||
}}
|
||||
/>
|
||||
<IconButton
|
||||
className="eth-overview__button"
|
||||
disabled={!isSwapsChain}
|
||||
Icon={
|
||||
<Icon
|
||||
name={ICON_NAMES.SWAP_HORIZONTAL}
|
||||
color={IconColor.primaryInverse}
|
||||
/>
|
||||
}
|
||||
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) => (
|
||||
<Tooltip
|
||||
title={t('currentlyUnavailable')}
|
||||
position="bottom"
|
||||
>
|
||||
{contents}
|
||||
</Tooltip>
|
||||
)
|
||||
}
|
||||
/>
|
||||
<IconButton
|
||||
className="eth-overview__button"
|
||||
data-testid="home__portfolio-site"
|
||||
Icon={
|
||||
<Icon
|
||||
name={ICON_NAMES.DIAGRAM}
|
||||
color={IconColor.primaryInverse}
|
||||
/>
|
||||
}
|
||||
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) => (
|
||||
<Tooltip
|
||||
title={t('currentlyUnavailable')}
|
||||
position="bottom"
|
||||
>
|
||||
{contents}
|
||||
</Tooltip>
|
||||
)
|
||||
}
|
||||
/>
|
||||
<IconButton
|
||||
className="eth-overview__button"
|
||||
data-testid="home__portfolio-site"
|
||||
Icon={
|
||||
<Icon
|
||||
name={ICON_NAMES.DIAGRAM}
|
||||
color={IconColor.primaryInverse}
|
||||
/>
|
||||
}
|
||||
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={<Identicon diameter={32} image={primaryTokenImage} imageBorder />}
|
||||
/>
|
||||
</>
|
||||
},
|
||||
{
|
||||
contextPropsIntoEventProperties: [CONTEXT_PROPS.PAGE_TITLE],
|
||||
},
|
||||
);
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
}
|
||||
className={className}
|
||||
icon={<Identicon diameter={32} image={primaryTokenImage} imageBorder />}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
|
159
ui/components/app/wallet-overview/eth-overview.test.js
Normal file
159
ui/components/app/wallet-overview/eth-overview.test.js
Normal file
@ -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(<EthOverview />, 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(
|
||||
<EthOverview />,
|
||||
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(
|
||||
<EthOverview />,
|
||||
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(
|
||||
<EthOverview />,
|
||||
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`),
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
@ -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 && (
|
||||
<DepositPopover
|
||||
onClose={() => setShowDepositPopover(false)}
|
||||
token={token}
|
||||
/>
|
||||
)}
|
||||
<WalletOverview
|
||||
balance={
|
||||
<div className="token-overview__balance">
|
||||
<WalletOverview
|
||||
balance={
|
||||
<div className="token-overview__balance">
|
||||
<CurrencyDisplay
|
||||
className="token-overview__primary-balance"
|
||||
displayValue={balanceToRender}
|
||||
suffix={token.symbol}
|
||||
/>
|
||||
{formattedFiatBalance ? (
|
||||
<CurrencyDisplay
|
||||
className="token-overview__primary-balance"
|
||||
displayValue={balanceToRender}
|
||||
suffix={token.symbol}
|
||||
className="token-overview__secondary-balance"
|
||||
displayValue={formattedFiatBalance}
|
||||
hideLabel
|
||||
/>
|
||||
{formattedFiatBalance ? (
|
||||
<CurrencyDisplay
|
||||
className="token-overview__secondary-balance"
|
||||
displayValue={formattedFiatBalance}
|
||||
hideLabel
|
||||
/>
|
||||
) : null}
|
||||
</div>
|
||||
}
|
||||
buttons={
|
||||
<>
|
||||
{isBuyable && (
|
||||
<IconButton
|
||||
className="token-overview__button"
|
||||
Icon={
|
||||
<Icon
|
||||
name={ICON_NAMES.CARD}
|
||||
color={IconColor.primaryInverse}
|
||||
/>
|
||||
) : null}
|
||||
</div>
|
||||
}
|
||||
buttons={
|
||||
<>
|
||||
<IconButton
|
||||
className="token-overview__button"
|
||||
Icon={
|
||||
<Icon name={ICON_NAMES.CARD} color={IconColor.primaryInverse} />
|
||||
}
|
||||
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}
|
||||
/>
|
||||
<IconButton
|
||||
className="token-overview__button"
|
||||
onClick={async () => {
|
||||
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={
|
||||
<Icon
|
||||
name={ICON_NAMES.ARROW_2_RIGHT}
|
||||
color={IconColor.primaryInverse}
|
||||
/>
|
||||
)}
|
||||
<IconButton
|
||||
className="token-overview__button"
|
||||
onClick={async () => {
|
||||
}
|
||||
label={t('send')}
|
||||
data-testid="eth-overview-send"
|
||||
disabled={token.isERC721}
|
||||
/>
|
||||
<IconButton
|
||||
className="token-overview__button"
|
||||
disabled={!isSwapsChain}
|
||||
Icon={
|
||||
<Icon
|
||||
name={ICON_NAMES.SWAP_HORIZONTAL}
|
||||
color={IconColor.primaryInverse}
|
||||
/>
|
||||
}
|
||||
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={
|
||||
<Icon
|
||||
name={ICON_NAMES.ARROW_2_RIGHT}
|
||||
color={IconColor.primaryInverse}
|
||||
/>
|
||||
}
|
||||
label={t('send')}
|
||||
data-testid="eth-overview-send"
|
||||
disabled={token.isERC721}
|
||||
/>
|
||||
<IconButton
|
||||
className="token-overview__button"
|
||||
disabled={!isSwapsChain}
|
||||
Icon={
|
||||
<Icon
|
||||
name={ICON_NAMES.SWAP_HORIZONTAL}
|
||||
color={IconColor.primaryInverse}
|
||||
/>
|
||||
}
|
||||
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) => (
|
||||
<Tooltip
|
||||
title={t('currentlyUnavailable')}
|
||||
position="bottom"
|
||||
disabled={isSwapsChain}
|
||||
>
|
||||
{contents}
|
||||
</Tooltip>
|
||||
)
|
||||
}
|
||||
/>
|
||||
<IconButton
|
||||
className="eth-overview__button"
|
||||
Icon={
|
||||
<Icon
|
||||
name={ICON_NAMES.DIAGRAM}
|
||||
color={IconColor.primaryInverse}
|
||||
/>
|
||||
}
|
||||
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={
|
||||
<Identicon
|
||||
diameter={32}
|
||||
address={token.address}
|
||||
image={token.image}
|
||||
if (usingHardwareWallet) {
|
||||
global.platform.openExtensionInBrowser(BUILD_QUOTE_ROUTE);
|
||||
} else {
|
||||
history.push(BUILD_QUOTE_ROUTE);
|
||||
}
|
||||
}
|
||||
}}
|
||||
label={t('swap')}
|
||||
tooltipRender={
|
||||
isSwapsChain
|
||||
? null
|
||||
: (contents) => (
|
||||
<Tooltip
|
||||
title={t('currentlyUnavailable')}
|
||||
position="bottom"
|
||||
disabled={isSwapsChain}
|
||||
>
|
||||
{contents}
|
||||
</Tooltip>
|
||||
)
|
||||
}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
</>
|
||||
<IconButton
|
||||
className="eth-overview__button"
|
||||
Icon={
|
||||
<Icon
|
||||
name={ICON_NAMES.DIAGRAM}
|
||||
color={IconColor.primaryInverse}
|
||||
/>
|
||||
}
|
||||
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={
|
||||
<Identicon diameter={32} address={token.address} image={token.image} />
|
||||
}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -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(<TokenOverview token={token} />, 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(<TokenOverview token={token} />, store);
|
||||
renderWithProvider(<TokenOverview token={nftToken} />, 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(
|
||||
<TokenOverview token={token} />,
|
||||
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(
|
||||
<TokenOverview token={nftToken} />,
|
||||
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(
|
||||
<TokenOverview token={token} />,
|
||||
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(
|
||||
<TokenOverview token={token} />,
|
||||
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(
|
||||
<TokenOverview token={nftToken} />,
|
||||
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(
|
||||
<TokenOverview token={token} />,
|
||||
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`),
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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
|
||||
<Canvas>
|
||||
<Story id="components-ui-logo--default-story" />
|
||||
</Canvas>
|
||||
|
||||
## Props
|
||||
|
||||
<ArgsTable of={LogoWyre} />
|
||||
|
File diff suppressed because one or more lines are too long
@ -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 (
|
||||
<svg
|
||||
width={width}
|
||||
viewBox="0 0 125 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
className={`logo-coinbasepay ${className}`}
|
||||
aria-label={ariaLabel}
|
||||
>
|
||||
<path
|
||||
d="M28.4278 4.10732C28.2105 4.09956 27.9938 4.13626 27.7911 4.21515C27.5885 4.29405 27.404 4.41349 27.2491 4.56615C27.0942 4.71882 26.9721 4.9015 26.8903 5.103C26.8085 5.3045 26.7686 5.52059 26.7732 5.73803C26.7913 6.1643 26.9734 6.56711 27.2815 6.86233C27.5895 7.15755 27.9996 7.32237 28.4263 7.32237C28.853 7.32237 29.2631 7.15755 29.5712 6.86233C29.8792 6.56711 30.0613 6.1643 30.0794 5.73803C30.0844 5.52074 30.0449 5.30471 29.9634 5.10322C29.8819 4.90172 29.7601 4.71901 29.6055 4.5663C29.4508 4.41359 29.2666 4.2941 29.064 4.21517C28.8615 4.13625 28.645 4.09955 28.4278 4.10732ZM84.799 8.47177C81.4928 8.47177 79.0661 10.9611 79.0661 14.2433C79.0661 17.7015 81.6657 19.997 84.8407 19.997C87.5238 19.997 89.6285 18.408 90.1651 16.1543H87.482C87.0945 17.141 86.1494 17.7015 84.8854 17.7015C83.2309 17.7015 81.9877 16.67 81.7075 14.8664H90.2277V13.8737C90.2277 10.6957 87.9113 8.47177 84.799 8.47177ZM81.8565 13.0211C82.265 11.4768 83.4246 10.7255 84.7542 10.7255C86.215 10.7255 87.33 11.5603 87.5894 13.0211H81.8565ZM19.0102 8.47177C18.2476 8.45519 17.4894 8.59283 16.7812 8.87644C16.0731 9.16005 15.4295 9.58378 14.8891 10.1222C14.3487 10.6607 13.9227 11.3027 13.6365 12.0099C13.3503 12.717 13.2099 13.4747 13.2238 14.2374C13.2238 17.5435 15.6922 19.9911 18.9983 19.9911C19.7652 20.0134 20.5287 19.8797 21.2423 19.5982C21.956 19.3166 22.6051 18.8929 23.1501 18.3529C23.6951 17.8129 24.1247 17.1678 24.4129 16.4568C24.7011 15.7458 24.8418 14.9836 24.8265 14.2165C24.8265 10.9551 22.3581 8.47177 19.0102 8.47177ZM19.0311 17.6151C17.1858 17.6151 15.8323 16.1751 15.8323 14.2433C15.8323 12.3115 17.1649 10.8567 19.0102 10.8567C20.8556 10.8567 22.2299 12.3145 22.2299 14.2463C22.2299 16.1781 20.8765 17.6091 19.0311 17.6091V17.6151ZM37.7917 8.47177C36.1163 8.47177 35.0222 9.15744 34.3782 10.1233V8.68045H31.8234V19.7764H34.3902V13.7455C34.3902 12.0492 35.4723 10.8567 37.0732 10.8567C38.5638 10.8567 39.4761 11.9091 39.4761 13.4325V19.7764H42.0518V13.2417C42.0399 10.4394 40.6029 8.47177 37.7917 8.47177ZM6.75461 10.8567C7.38882 10.8516 8.0076 11.0523 8.51819 11.4285C9.02879 11.8047 9.4037 12.3363 9.58673 12.9435H12.3115C11.8196 10.2813 9.62847 8.47177 6.77548 8.47177C6.0138 8.45681 5.25693 8.59565 4.55016 8.87999C3.84338 9.16433 3.20123 9.58832 2.66212 10.1266C2.12302 10.6649 1.69803 11.3064 1.4126 12.0127C1.12716 12.719 0.987147 13.4757 1.00093 14.2374C1.00093 17.5435 3.46935 19.9911 6.77548 19.9911C9.56586 19.9911 11.7988 18.2023 12.2907 15.5193H9.58673C9.41182 16.1287 9.04244 16.6642 8.5349 17.0442C8.02735 17.4242 7.40949 17.6278 6.77548 17.624C4.90628 17.624 3.59754 16.1841 3.59754 14.2523C3.59754 12.3205 4.87646 10.8567 6.75461 10.8567ZM25.5361 10.9849H27.1459V19.7764H29.7216V8.68045H25.548L25.5361 10.9849ZM66.2322 12.4755C66.2322 10.0727 64.7714 8.46283 61.6799 8.46283C58.7613 8.46283 57.1306 9.95342 56.8087 12.2191H59.3635C59.4917 11.3248 60.1774 10.6093 61.6382 10.6093C62.9469 10.6093 63.5908 11.1876 63.5908 11.8971C63.5908 12.8183 62.3984 13.0538 60.9525 13.2059C58.976 13.4205 56.5284 14.1002 56.5284 16.6819C56.5284 18.6793 58.019 19.9612 60.3712 19.9612C62.2165 19.9612 63.3762 19.1891 63.9486 17.9639C64.0321 19.0579 64.8429 19.7675 65.9877 19.7675H67.4783V17.472H66.2113L66.2322 12.4755ZM63.6982 15.2659C63.6982 16.7565 62.4103 17.8416 60.8452 17.8416C59.8793 17.8416 59.0565 17.4332 59.0565 16.5746C59.0565 15.4805 60.3652 15.1794 61.5666 15.0512C62.768 14.923 63.3553 14.6875 63.6922 14.1927L63.6982 15.2659ZM74.4751 13.1612L72.5851 12.8839C71.6907 12.7557 71.0408 12.4546 71.0408 11.7451C71.0408 10.973 71.8755 10.5854 73.0144 10.5854C74.2605 10.5854 75.0535 11.122 75.2264 12.0045H77.7157C77.4354 9.77157 75.7183 8.46283 73.0799 8.46283C70.3522 8.46283 68.5485 9.85802 68.5485 11.8316C68.5485 13.7216 69.741 14.8127 72.126 15.1586L74.0131 15.4388C74.9372 15.567 75.453 15.9307 75.453 16.6313C75.453 17.5107 74.5586 17.8744 73.3065 17.8744C71.7801 17.8744 70.9216 17.2514 70.7934 16.3093H68.2624C68.4979 18.4766 70.1942 20 73.2827 20C76.0969 20 77.9631 18.7121 77.9631 16.5001C77.9512 14.5176 76.5977 13.4861 74.4751 13.1642V13.1612ZM50.0265 8.47177C49.36 8.4623 48.6998 8.60194 48.0943 8.88048C47.4887 9.15901 46.9531 9.5694 46.5266 10.0816V4H43.9508V19.7764H46.4848V18.3097C46.9093 18.8394 47.4488 19.2656 48.0624 19.5559C48.676 19.8462 49.3477 19.993 50.0265 19.9851C53.1179 19.9851 55.4552 17.5375 55.4552 14.2314C55.4552 10.9253 53.0732 8.47177 50.0265 8.47177ZM49.6389 17.6151C47.7936 17.6151 46.4401 16.1751 46.4401 14.2433C46.4401 12.3115 47.8055 10.8567 49.6598 10.8567C51.5141 10.8567 52.8377 12.2936 52.8377 14.2463C52.8377 16.199 51.4843 17.6091 49.6389 17.6091V17.6151Z"
|
||||
fill="#0052FF"
|
||||
/>
|
||||
<path
|
||||
d="M97.314 8.67746H102.111C104.496 8.67746 105.846 10.016 105.846 11.9568C105.846 13.8975 104.508 15.2689 102.111 15.2689H98.9864V19.7794H97.314V8.67746ZM104.15 11.8792C104.15 10.7911 103.455 10.1114 102.063 10.1114H98.9864V13.8379H102.063C103.449 13.8379 104.15 13.1582 104.15 12.0492V11.8792Z"
|
||||
fill={color}
|
||||
/>
|
||||
<path
|
||||
d="M113.025 17.1172H108.055L107.077 19.7675H105.342L109.602 8.66556H111.51L115.815 19.7675H114.026L113.025 17.1172ZM108.577 15.6833H112.497L110.541 10.4483H110.509L108.577 15.6833Z"
|
||||
fill={color}
|
||||
/>
|
||||
<path
|
||||
d="M118.543 15.4269L114.602 8.67746H116.429L119.381 13.7872H119.41L122.362 8.67746H124.174L120.215 15.4269V19.7794H118.543V15.4269Z"
|
||||
fill={color}
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
};
|
||||
|
||||
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;
|
@ -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 (
|
||||
<svg
|
||||
width={width}
|
||||
fill={color}
|
||||
className={className}
|
||||
aria-label={ariaLabel}
|
||||
viewBox="0 0 80 78"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
clipRule="evenodd"
|
||||
d="M46.82 37.7L34.405 44.9489L22 37.7L34.407 55L46.82 37.7ZM34.405 44.9489L34.407 44.95H34.403L34.405 44.9489Z"
|
||||
/>
|
||||
<path d="M22.187 35.37L34.593 15L47 35.378L34.593 42.628L22.187 35.37Z" />
|
||||
<path d="M71.5 59.423H65.077V53H60.923V59.423H54.5V63.577H60.923V70H65.077V63.577H71.5V59.423Z" />
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
clipRule="evenodd"
|
||||
d="M34 68C38.4608 68 42.7208 67.141 46.6239 65.5793C48.6231 72.7439 55.1978 78 63 78C72.3889 78 80 70.3889 80 61C80 52.7752 74.1592 45.9147 66.3992 44.3399C67.4389 41.0794 68 37.6052 68 34C68 15.2223 52.7777 0 34 0C15.2223 0 0 15.2223 0 34C0 52.7777 15.2223 68 34 68ZM34 3C16.8792 3 3 16.8792 3 34C3 51.1208 16.8792 65 34 65C38.2818 65 42.3609 64.1319 46.0708 62.5621C46.0239 62.0477 46 61.5266 46 61C46 51.6111 53.6111 44 63 44C63.1171 44 63.2339 44.0012 63.3505 44.0035C64.4199 40.8651 65 37.5003 65 34C65 16.8792 51.1208 3 34 3ZM63 47C55.268 47 49 53.268 49 61C49 68.732 55.268 75 63 75C70.732 75 77 68.732 77 61C77 53.268 70.732 47 63 47Z"
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
};
|
||||
|
||||
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;
|
File diff suppressed because one or more lines are too long
@ -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(<LogoMoonPay />);
|
||||
expect(container).toMatchSnapshot();
|
||||
});
|
||||
});
|
File diff suppressed because one or more lines are too long
@ -1,47 +0,0 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
const LogoWyre = ({ width = '100%', color = 'var(--color-text-default)' }) => {
|
||||
return (
|
||||
<svg
|
||||
width={width}
|
||||
viewBox="0 0 261 61"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
d="M126.836 10.6396L122.859 29.3287C122.696 30.0922 122.614 30.8707 122.614 31.6514V40.6187H118.34V32.1939C118.34 31.1775 118.2 30.1659 117.924 29.1875L112.714 10.6396H102.145L96.9868 29.0463C96.7113 30.0247 96.5712 31.0363 96.5706 32.0527V40.6001H92.2969V31.8223C92.2964 31.0419 92.2155 30.2635 92.0554 29.4997L88.0342 10.6396H77.3464V11.7545L87.2391 50.032H99.4284L104.739 31.1497C105.014 30.1662 105.155 29.1497 105.155 28.1284V20.1644H109.429V28.1061C109.428 29.1251 109.568 30.1394 109.845 31.1199L115.155 50.032H127.315L137.241 11.7545V10.6396H126.836Z"
|
||||
fill={color}
|
||||
/>
|
||||
<path
|
||||
d="M260.142 28.8865C260.142 16.7752 252.917 9.73291 240.914 9.73291C230.88 9.73291 223.611 14.408 221.385 23.7692C221.277 24.2073 221.271 24.6642 221.366 25.1053C221.461 25.5464 221.655 25.96 221.933 26.3149C222.212 26.6698 222.568 26.9566 222.974 27.1536C223.38 27.3506 223.825 27.4527 224.276 27.452H229.137V31.7257H223.983C223.551 31.7254 223.125 31.819 222.733 32C222.341 32.181 221.994 32.4451 221.714 32.774C221.435 33.1028 221.23 33.4886 221.115 33.9044C221 34.3202 220.976 34.7561 221.047 35.1819C222.782 45.6803 230.337 50.9351 241.021 50.9351C253.255 50.9351 258.146 43.9374 259.387 38.5228V37.4079H249.755C249.156 39.816 246.745 42.789 240.836 42.789C234.849 42.789 231.385 38.7272 231.24 33.3832H260.138L260.142 28.8865ZM231.352 25.8429C231.805 21.5097 234.89 17.786 240.758 17.786C246.819 17.786 249.718 21.3982 249.792 25.8429H231.352Z"
|
||||
fill={color}
|
||||
/>
|
||||
<path
|
||||
d="M212.172 10.4834C207.293 10.4834 203.87 15.203 202.138 20.1828H197.53C197.53 20.1828 201.51 15.2105 201.904 10.6395H191.164V50.0318H202.228V29.4884C202.228 22.5278 205.234 19.5176 211.332 19.5176H216.977V10.4834H212.172Z"
|
||||
fill={color}
|
||||
/>
|
||||
<path
|
||||
d="M173.761 10.6396L166.488 31.0791C166.06 32.2803 165.842 33.5461 165.842 34.8213V40.6261H161.568V34.8176C161.568 33.5512 161.35 32.2942 160.925 31.1014L153.671 10.6619H142.151V11.7768L156.153 46.364L160.316 46.4049L158.424 51.4702L146.16 51.4367V60.876H157.989C160.087 60.8757 162.137 60.2515 163.878 59.0829C165.62 57.9142 166.975 56.2539 167.77 54.3131L185.014 11.7545V10.6396H173.761Z"
|
||||
fill={color}
|
||||
/>
|
||||
<path
|
||||
d="M51.4405 30.2466L54.681 22.4759V14.4897H43.7478L46.442 8.0011V0H16.1769L6.10352e-05 39.0988V46.5313H11.1078L8.23898 53.4361V60.5862L34.2045 60.471H42.9711L61.5896 36.5828V30.2652L51.4405 30.2466ZM51.8938 21.9185L48.4228 30.2466H33.595L15.5191 53.4955H11.2343L26.2813 17.2769H51.8976L51.8938 21.9185ZM18.0424 2.78719H43.6548V7.44739L40.7301 14.4897L24.4306 14.5083L7.2542 39.1619H2.99158L18.0424 2.78719Z"
|
||||
fill={color}
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
};
|
||||
|
||||
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;
|
@ -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)',
|
||||
}}
|
||||
>
|
||||
<LogoItem Component={<LogoCoinbasePay {...args} />} />
|
||||
<LogoItem Component={<LogoWyre {...args} />} />
|
||||
<LogoItem Component={<LogoTransak {...args} />} />
|
||||
<LogoItem Component={<LogoDepositEth {...args} />} />
|
||||
<LogoItem Component={<LogoMoonPay {...args} />} />
|
||||
<LogoItem Component={<LogoLedger {...args} />} />
|
||||
<LogoItem Component={<LogoQRBased {...args} />} />
|
||||
<LogoItem Component={<LogoTrezor {...args} />} />
|
||||
|
@ -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');
|
||||
});
|
||||
});
|
||||
});
|
@ -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;
|
||||
};
|
82
ui/hooks/experiences/useRamps.test.js
Normal file
82
ui/hooks/experiences/useRamps.test.js
Normal file
@ -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,
|
||||
});
|
||||
});
|
||||
});
|
37
ui/hooks/experiences/useRamps.ts
Normal file
37
ui/hooks/experiences/useRamps.ts
Normal file
@ -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;
|
@ -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 && (
|
||||
<DepositPopover onClose={() => setShowDepositPopover(false)} />
|
||||
)}
|
||||
<Box className="gas-display">
|
||||
<TransactionDetail
|
||||
userAcknowledgedGasMissing={false}
|
||||
@ -339,7 +340,15 @@ export default function GasDisplay({ gasError }) {
|
||||
type="inline"
|
||||
className="confirm-page-container-content__link"
|
||||
onClick={() => {
|
||||
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`}
|
||||
>
|
||||
|
@ -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];
|
||||
|
@ -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
|
||||
|
@ -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<void, MetaMaskReduxState, unknown, AnyAction> {
|
||||
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;
|
||||
|
23
yarn.lock
23
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
|
||||
|
Loading…
Reference in New Issue
Block a user