aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/_locales/en/messages.json210
-rw-r--r--app/_locales/fr/messages.json2
-rw-r--r--app/_locales/ja/messages.json605
-rw-r--r--app/_locales/ko/messages.json609
-rw-r--r--app/_locales/vi/messages.json609
-rw-r--r--app/_locales/zh_CN/messages.json605
-rw-r--r--app/images/arrow-right.svg16
-rw-r--r--app/images/deposit-eth.svg32
-rw-r--r--app/scripts/contentscript.js17
-rw-r--r--app/scripts/controllers/transactions.js53
-rw-r--r--app/scripts/lib/tx-state-manager.js42
11 files changed, 2756 insertions, 44 deletions
diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json
index 1ca31427d..35a360c84 100644
--- a/app/_locales/en/messages.json
+++ b/app/_locales/en/messages.json
@@ -14,9 +14,15 @@
"address": {
"message": "Address"
},
+ "addCustomToken": {
+ "message": "Add custom token"
+ },
"addToken": {
"message": "Add Token"
},
+ "addTokens": {
+ "message": "Add Tokens"
+ },
"amount": {
"message": "Amount"
},
@@ -34,6 +40,9 @@
"attemptingConnect": {
"message": "Attempting to connect to blockchain."
},
+ "attributions": {
+ "message": "Attributions"
+ },
"available": {
"message": "Available"
},
@@ -43,6 +52,9 @@
"balance": {
"message": "Balance:"
},
+ "balances": {
+ "message": "Your balances"
+ },
"balanceIsInsufficientGas": {
"message": "Insufficient balance for current gas total"
},
@@ -53,9 +65,15 @@
"message": "must be greater than or equal to $1 and less than or equal to $2.",
"description": "helper for inputting hex as decimal input"
},
+ "blockiesIdenticon": {
+ "message": "Use Blockies Identicon"
+ },
"borrowDharma": {
"message": "Borrow With Dharma (Beta)"
},
+ "builtInCalifornia": {
+ "message": "MetaMask is designed and built in California."
+ },
"buy": {
"message": "Buy"
},
@@ -68,6 +86,9 @@
"cancel": {
"message": "Cancel"
},
+ "classicInterface": {
+ "message": "Use classic interface"
+ },
"clickCopy": {
"message": "Click to Copy"
},
@@ -83,6 +104,9 @@
"confirmTransaction": {
"message": "Confirm Transaction"
},
+ "continue": {
+ "message": "Continue"
+ },
"continueToCoinbase": {
"message": "Continue to Coinbase"
},
@@ -101,6 +125,9 @@
"copiedExclamation": {
"message": "Copied!"
},
+ "copiedSafe": {
+ "message": "I've copied it somewhere safe"
+ },
"copy": {
"message": "Copy"
},
@@ -126,6 +153,12 @@
"message": "Crypto",
"description": "Exchange type (cryptocurrencies)"
},
+ "currentConversion": {
+ "message": "Current Conversion"
+ },
+ "currentNetwork": {
+ "message": "Current Network"
+ },
"customGas": {
"message": "Customize Gas"
},
@@ -135,6 +168,12 @@
"customRPC": {
"message": "Custom RPC"
},
+ "decimalsMustZerotoTen": {
+ "message": "Decimals must be at least 0, and not over 36."
+ },
+ "decimal": {
+ "message": "Decimals of Precision"
+ },
"defaultNetwork": {
"message": "The default network for Ether transactions is Main Net."
},
@@ -184,18 +223,27 @@
"done": {
"message": "Done"
},
+ "downloadStatelogs": {
+ "message": "Download State Logs"
+ },
"edit": {
"message": "Edit"
},
"editAccountName": {
"message": "Edit Account Name"
},
+ "emailUs": {
+ "message": "Email us!"
+ },
"encryptNewDen": {
"message": "Encrypt your new DEN"
},
"enterPassword": {
"message": "Enter password"
},
+ "enterPasswordConfirm": {
+ "message": "Enter your password to confirm"
+ },
"etherscanView": {
"message": "View account on Etherscan"
},
@@ -219,9 +267,15 @@
"message": "File import not working? Click here!",
"description": "Helps user import their account from a JSON file"
},
+ "followTwitter": {
+ "message": "Follow us on Twitter"
+ },
"from": {
"message": "From"
},
+ "fromToSame": {
+ "message": "From and To address cannot be the same"
+ },
"fromShapeShift": {
"message": "From ShapeShift"
},
@@ -244,6 +298,9 @@
"gasLimitTooLow": {
"message": "Gas limit must be at least 21000"
},
+ "generatingSeed": {
+ "message": "Generating Seed..."
+ },
"gasPrice": {
"message": "Gas Price (GWEI)"
},
@@ -268,6 +325,9 @@
"message": "here",
"description": "as in -click here- for more information (goes with troubleTokenBalances)"
},
+ "hereList": {
+ "message": "Here's a list!!!!"
+ },
"hide": {
"message": "Hide"
},
@@ -280,6 +340,9 @@
"howToDeposit": {
"message": "How would you like to deposit Ether?"
},
+ "holdEther": {
+ "message": "It allows you to hold ether & tokens, and serves as your bridge to decentralized applications."
+ },
"import": {
"message": "Import",
"description": "Button to import an account from a selected file"
@@ -287,6 +350,9 @@
"importAccount": {
"message": "Import Account"
},
+ "importAccountMsg": {
+ "message":" Imported accounts will not be associated with your originally created MetaMask account seedphrase. Learn more about imported accounts "
+ },
"importAnAccount": {
"message": "Import an account"
},
@@ -300,9 +366,18 @@
"infoHelp": {
"message": "Info & Help"
},
+ "insufficientFunds": {
+ "message": "Insufficient funds."
+ },
+ "insufficientTokens": {
+ "message": "Insufficient tokens."
+ },
"invalidAddress": {
"message": "Invalid address"
},
+ "invalidAddressRecipient": {
+ "message": "Recipient address is invalid"
+ },
"invalidGasParams": {
"message": "Invalid Gas Parameters"
},
@@ -312,6 +387,12 @@
"invalidRequest": {
"message": "Invalid Request"
},
+ "invalidRPC": {
+ "message": "Invalid RPC URI"
+ },
+ "jsonFail": {
+ "message": "Something went wrong. Please make sure your JSON file is properly formatted."
+ },
"jsonFile": {
"message": "JSON File",
"description": "format for importing an account"
@@ -319,10 +400,16 @@
"kovan": {
"message": "Kovan Test Network"
},
+ "knowledgeDataBase": {
+ "message": "Visit our Knowledge Base"
+ },
"lessThanMax": {
"message": "must be less than or equal to $1.",
"description": "helper for inputting hex as decimal input"
},
+ "likeToAddTokens": {
+ "message": "Would you like to add these tokens?"
+ },
"limit": {
"message": "Limit"
},
@@ -335,24 +422,36 @@
"localhost": {
"message": "Localhost 8545"
},
+ "login": {
+ "message": "Log In"
+ },
"logout": {
"message": "Log out"
},
"loose": {
"message": "Loose"
},
+ "loweCaseWords": {
+ "message": "seed words only have lowercase characters"
+ },
"mainnet": {
"message": "Main Ethereum Network"
},
"message": {
"message": "Message"
},
+ "metamaskDescription": {
+ "message": "MetaMask is a secure identity vault for Ethereum."
+ },
"min": {
"message": "Minimum"
},
"myAccounts": {
"message": "My Accounts"
},
+ "mustSelectOne": {
+ "message": "Must select at least 1 token."
+ },
"needEtherInWallet": {
"message": "To interact with decentralized applications using MetaMask, you’ll need Ether in your wallet."
},
@@ -364,6 +463,9 @@
"message": "You must enter a password for the selected file.",
"description": "Password and file needed to import an account"
},
+ "negativeETH": {
+ "message": "Can not send negative amounts of ETH."
+ },
"networks": {
"message": "Networks"
},
@@ -383,6 +485,9 @@
"newRecipient": {
"message": "New Recipient"
},
+ "newRPC": {
+ "message": "New RPC URL"
+ },
"next": {
"message": "Next"
},
@@ -411,6 +516,9 @@
"message": "or",
"description": "choice between creating or importing a new account"
},
+ "passwordCorrect": {
+ "message": "Please make sure your password is correct."
+ },
"passwordMismatch": {
"message": "passwords don't match",
"description": "in password creation process, the two new password fields did not match"
@@ -426,9 +534,15 @@
"pasteSeed": {
"message": "Paste your seed phrase here!"
},
+ "personalAddressDetected": {
+ "message": "Personal address detected. Input the token contract address."
+ },
"pleaseReviewTransaction": {
"message": "Please review your transaction."
},
+ "privacyMsg": {
+ "message": "Privacy Policy"
+ },
"privateKey": {
"message": "Private Key",
"description": "select this type of file to use to import an account"
@@ -448,6 +562,9 @@
"readMore": {
"message": "Read more here."
},
+ "readMore2": {
+ "message": "Read more."
+ },
"receive": {
"message": "Receive"
},
@@ -460,12 +577,24 @@
"rejected": {
"message": "Rejected"
},
+ "resetAccount": {
+ "message": "Reset Account"
+ },
+ "restoreFromSeed": {
+ "message": "Restore from seed phrase"
+ },
"required": {
"message": "Required"
},
"retryWithMoreGas": {
"message": "Retry with a higher gas price here"
},
+ "revealSeedWords": {
+ "message": "Reveal Seed Words"
+ },
+ "revealSeedWordsWarning": {
+ "message": "Do not recover your seed words in a public place! These words can be used to steal all your accounts."
+ },
"revert": {
"message": "Revert"
},
@@ -486,12 +615,36 @@
"message": "Save as File",
"description": "Account export process"
},
+ "saveSeedAsFile": {
+ "message": "Save Seed Words As File"
+ },
+ "search": {
+ "message": "Search"
+ },
+ "secretPhrase": {
+ "message": "Enter your secret twelve word phrase here to restore your vault."
+ },
+ "seedPhraseReq": {
+ "message": "seed phrases are 12 words long"
+ },
+ "select": {
+ "message": "Select"
+ },
+ "selectCurrency": {
+ "message": "Select Currency"
+ },
"selectService": {
"message": "Select Service"
},
+ "selectType": {
+ "message": "Select Type"
+ },
"send": {
"message": "Send"
},
+ "sendETH": {
+ "message": "Send ETH"
+ },
"sendTokens": {
"message": "Send Tokens"
},
@@ -525,15 +678,33 @@
"sigRequested": {
"message": "Signature Requested"
},
+ "spaceBetween": {
+ "message": "there can only be a space between words"
+ },
"status": {
"message": "Status"
},
+ "stateLogs": {
+ "message": "State Logs"
+ },
+ "stateLogsDescription": {
+ "message": "State logs contain your public account addresses and sent transactions."
+ },
"submit": {
"message": "Submit"
},
+ "supportCenter": {
+ "message": "Visit our Support Center"
+ },
+ "symbolBetweenZeroTen": {
+ "message": "Symbol must be between 0 and 10 characters."
+ },
"takesTooLong": {
"message": "Taking too long?"
},
+ "terms": {
+ "message": "Terms of Use"
+ },
"testFaucet": {
"message": "Test Faucet"
},
@@ -544,12 +715,30 @@
"message": "$1 to ETH via ShapeShift",
"description": "system will fill in deposit type in start of message"
},
+ "tokenAddress": {
+ "message": "Token Address"
+ },
+ "tokenAlreadyAdded": {
+ "message": "Token has already been added."
+ },
"tokenBalance": {
"message": "Your Token Balance is:"
},
+ "tokenSelection": {
+ "message": "Search for tokens or select from our list of popular tokens."
+ },
+ "tokenSymbol": {
+ "message": "Token Symbol"
+ },
+ "tokenWarning1": {
+ "message": "Keep track of the tokens you’ve bought with your MetaMask account. If you bought tokens using a different account, those tokens will not appear here."
+ },
"total": {
"message": "Total"
},
+ "transactions": {
+ "message": "transactions"
+ },
"transactionMemo": {
"message": "Transaction memo (optional)"
},
@@ -563,6 +752,9 @@
"message": "We had trouble loading your token balances. You can view them ",
"description": "Followed by a link (here) to view token balances"
},
+ "twelveWords": {
+ "message": "These 12 words are the only way to restore your MetaMask accounts.\nSave them somewhere safe and secret."
+ },
"typePassword": {
"message": "Type Your Password"
},
@@ -584,6 +776,9 @@
"unknownNetworkId": {
"message": "Unknown network ID"
},
+ "uriErrorMsg": {
+ "message": "URIs require the appropriate HTTP/HTTPS prefix."
+ },
"usaOnly": {
"message": "USA only",
"description": "Using this exchange is limited to people inside the USA"
@@ -591,12 +786,27 @@
"usedByClients": {
"message": "Used by a variety of different clients"
},
+ "useOldUI": {
+ "message": "Use old UI"
+ },
+ "validFileImport": {
+ "message": "You must select a valid file to import."
+ },
+ "vaultCreated": {
+ "message": "Vault Created"
+ },
"viewAccount": {
"message": "View Account"
},
+ "visitWebSite": {
+ "message": "Visit our web site"
+ },
"warning": {
"message": "Warning"
},
+ "welcomeBeta": {
+ "message": "Welcome to MetaMask Beta"
+ },
"whatsThis": {
"message": "What's this?"
},
diff --git a/app/_locales/fr/messages.json b/app/_locales/fr/messages.json
index 7edbd41ab..da2cfe4f8 100644
--- a/app/_locales/fr/messages.json
+++ b/app/_locales/fr/messages.json
@@ -149,7 +149,7 @@
},
"depositCoin": {
"message": "Déposez votre $1 à l'adresse ci-dessous",
- "description": "Indique à l'utilisateur quelle monnaie ils a choisi de déposer avec shapeshift"
+ "description": "Indique à l'utilisateur quelle monnaie il a choisi de déposer avec shapeshift"
},
"depositEth": {
"message": "Dépôt Eth"
diff --git a/app/_locales/ja/messages.json b/app/_locales/ja/messages.json
index f15d06ff4..bab8d3b95 100644
--- a/app/_locales/ja/messages.json
+++ b/app/_locales/ja/messages.json
@@ -1,10 +1,609 @@
{
+ "accept": {
+ "message": "承認"
+ },
+ "account": {
+ "message": "アカウント"
+ },
+ "accountDetails": {
+ "message": "アカウント詳細"
+ },
+ "accountName": {
+ "message": "アカウント名"
+ },
+ "address": {
+ "message": "アドレス"
+ },
+ "addToken": {
+ "message": "トークンを追加"
+ },
+ "amount": {
+ "message": "金額"
+ },
+ "amountPlusGas": {
+ "message": "金額 + ガス"
+ },
+ "appDescription": {
+ "message": "Ethereumのブラウザ・エクステンション",
+ "description": "The description of the application"
+ },
"appName": {
"message": "MetaMask",
"description": "The name of the application"
},
- "appDescription": {
- "message": "EthereumのID管理",
- "description": "The description of the application"
+ "attemptingConnect": {
+ "message": "ブロックチェーンに接続中"
+ },
+ "available": {
+ "message": "有効"
+ },
+ "back": {
+ "message": "戻る"
+ },
+ "balance": {
+ "message": "残高:"
+ },
+ "balanceIsInsufficientGas": {
+ "message": "現在のガス総量に対して残高が不足しています"
+ },
+ "beta": {
+ "message": "ベータ版"
+ },
+ "betweenMinAndMax": {
+ "message": " $1以上 $2以下にして下さい。",
+ "description": "helper for inputting hex as decimal input"
+ },
+ "borrowDharma": {
+ "message": "Dharmaで借りる(ベータ版)"
+ },
+ "buy": {
+ "message": "購入"
+ },
+ "buyCoinbase": {
+ "message": "Coinbaseで購入"
+ },
+ "buyCoinbaseExplainer": {
+ "message": "Coinbaseは、世界で最もポピュラーなBitcoin、Ethereum、そしてLitecoinの取引所です。"
+ },
+ "cancel": {
+ "message": "キャンセル"
+ },
+ "clickCopy": {
+ "message": "クリックしてコピー"
+ },
+ "confirm": {
+ "message": "確認"
+ },
+ "confirmContract": {
+ "message": "コントラクトの確認"
+ },
+ "confirmPassword": {
+ "message": "パスワードの確認"
+ },
+ "confirmTransaction": {
+ "message": "トランザクションの確認"
+ },
+ "continueToCoinbase": {
+ "message": "Coinbaseで続行"
+ },
+ "contractDeployment": {
+ "message": "コントラクトのデプロイ"
+ },
+ "conversionProgress": {
+ "message": "変換中"
+ },
+ "copiedButton": {
+ "message": "コピー完了"
+ },
+ "copiedClipboard": {
+ "message": "クリップボードへコピー済み"
+ },
+ "copiedExclamation": {
+ "message": "コピー完了!"
+ },
+ "copy": {
+ "message": "コピー"
+ },
+ "copyToClipboard": {
+ "message": "クリップボードへコピー"
+ },
+ "copyButton": {
+ "message": " コピー "
+ },
+ "copyPrivateKey": {
+ "message": "これはあなたの秘密鍵です(クリックでコピー)"
+ },
+ "create": {
+ "message": "作成"
+ },
+ "createAccount": {
+ "message": "アカウント作成"
+ },
+ "createDen": {
+ "message": "作成"
+ },
+ "crypto": {
+ "message": "暗号通貨",
+ "description": "Exchange type (cryptocurrencies)"
+ },
+ "customGas": {
+ "message": "ガスのカスタマイズ"
+ },
+ "customize": {
+ "message": "カスタマイズ"
+ },
+ "customRPC": {
+ "message": "カスタムRPC"
+ },
+ "defaultNetwork": {
+ "message": "Etherトランザクションのデフォルトのネットワークはメインネットです。"
+ },
+ "denExplainer": {
+ "message": "DENとは、あなたのパスワードが暗号化されたMetaMask内のストレージです。"
+ },
+ "deposit": {
+ "message": "デポジット"
+ },
+ "depositBTC": {
+ "message": "あなたのBTCを次のアドレスへデポジット:"
+ },
+ "depositCoin": {
+ "message": "あなたの $1を次のアドレスへデポジット",
+ "description": "Tells the user what coin they have selected to deposit with shapeshift"
+ },
+ "depositEth": {
+ "message": "ETHをデポジット"
+ },
+ "depositEther": {
+ "message": "Etherをデポジット"
+ },
+ "depositFiat": {
+ "message": "法定通貨でデポジット"
+ },
+ "depositFromAccount": {
+ "message": "別のアカウントからデポジット"
+ },
+ "depositShapeShift": {
+ "message": "ShapeShiftでデポジット"
+ },
+ "depositShapeShiftExplainer": {
+ "message": "あなたが他の暗号通貨を持っているなら、Etherにトレードしてダイレクトにメタマスクウォレットへのデポジットが可能です。アカウント作成は不要。"
+ },
+ "details": {
+ "message": "詳細"
+ },
+ "directDeposit": {
+ "message": "ダイレクトデポジット"
+ },
+ "directDepositEther": {
+ "message": "Etherをダイレクトデポジット"
+ },
+ "directDepositEtherExplainer": {
+ "message": "あなたがEtherをすでにお持ちなら、ダイレクトデポジットは新しいウォレットにEtherを入手する最も迅速な方法です。"
+ },
+ "done": {
+ "message": "完了"
+ },
+ "edit": {
+ "message": "編集"
+ },
+ "editAccountName": {
+ "message": "アカウント名を編集"
+ },
+ "encryptNewDen": {
+ "message": "新しいDENを暗号化する"
+ },
+ "enterPassword": {
+ "message": "パスワードを入力"
+ },
+ "etherscanView": {
+ "message": "Etherscanでアカウントを見る"
+ },
+ "exchangeRate": {
+ "message": "交換レート"
+ },
+ "exportPrivateKey": {
+ "message": "秘密鍵のエクスポート"
+ },
+ "exportPrivateKeyWarning": {
+ "message": "あなた自身の責任で秘密鍵をエクスポート"
+ },
+ "failed": {
+ "message": "失敗"
+ },
+ "fiat": {
+ "message": "法定通貨",
+ "description": "Exchange type"
+ },
+ "fileImportFail": {
+ "message": "ファイルがインポートされなければ、ここをクリック!",
+ "description": "Helps user import their account from a JSON file"
+ },
+ "from": {
+ "message": "送信元"
+ },
+ "fromShapeShift": {
+ "message": "ShapeShiftから"
+ },
+ "gas": {
+ "message": "ガス",
+ "description": "Short indication of gas cost"
+ },
+ "gasFee": {
+ "message": "ガス料金"
+ },
+ "gasLimit": {
+ "message": "ガスリミット"
+ },
+ "gasLimitCalculation": {
+ "message": "ネットワークの成功率を基にして、ガスリミットを提案しています。"
+ },
+ "gasLimitRequired": {
+ "message": "必要ガスリミット"
+ },
+ "gasLimitTooLow": {
+ "message": "ガスリミットは最低21000です。"
+ },
+ "gasPrice": {
+ "message": "ガスプライス (GWEI)"
+ },
+ "gasPriceCalculation": {
+ "message": "ネットワークの成功率を基にして、ガスプライスを提案しています。"
+ },
+ "gasPriceRequired": {
+ "message": "必要ガスプライス"
+ },
+ "getEther": {
+ "message": "Etherをゲット"
+ },
+ "getEtherFromFaucet": {
+ "message": "フォーセットで $1のEtherをゲット",
+ "description": "Displays network name for Ether faucet"
+ },
+ "greaterThanMin": {
+ "message": " $1以上にして下さい。",
+ "description": "helper for inputting hex as decimal input"
+ },
+ "here": {
+ "message": "ここ",
+ "description": "as in -click here- for more information (goes with troubleTokenBalances)"
+ },
+ "hide": {
+ "message": "隠す"
+ },
+ "hideToken": {
+ "message": "トークンを隠す"
+ },
+ "hideTokenPrompt": {
+ "message": "トークンを隠しますか??"
+ },
+ "howToDeposit": {
+ "message": "どのようにEtherをデポジットしますか?"
+ },
+ "import": {
+ "message": "インポート",
+ "description": "Button to import an account from a selected file"
+ },
+ "importAccount": {
+ "message": "アカウントのインポート"
+ },
+ "importAnAccount": {
+ "message": "アカウントをインポート"
+ },
+ "importDen": {
+ "message": "既存のDENをインポート"
+ },
+ "imported": {
+ "message": "インポート完了",
+ "description": "status showing that an account has been fully loaded into the keyring"
+ },
+ "infoHelp": {
+ "message": "インフォメーションとヘルプ"
+ },
+ "invalidAddress": {
+ "message": "アドレスが無効です。"
+ },
+ "invalidGasParams": {
+ "message": "ガスのパラメーターが無効です。"
+ },
+ "invalidInput": {
+ "message": "インプットが無効です。"
+ },
+ "invalidRequest": {
+ "message": "リクエストが無効です。"
+ },
+ "jsonFile": {
+ "message": "JSONファイル",
+ "description": "format for importing an account"
+ },
+ "kovan": {
+ "message": "Kovanテストネットワーク"
+ },
+ "lessThanMax": {
+ "message": " $1以下にして下さい。",
+ "description": "helper for inputting hex as decimal input"
+ },
+ "limit": {
+ "message": "リミット"
+ },
+ "loading": {
+ "message": "ロード中..."
+ },
+ "loadingTokens": {
+ "message": "トークンをロード中..."
+ },
+ "localhost": {
+ "message": "Localhost 8545"
+ },
+ "logout": {
+ "message": "ログアウト"
+ },
+ "loose": {
+ "message": "外部秘密鍵"
+ },
+ "mainnet": {
+ "message": "Ethereumメインネットワーク"
+ },
+ "message": {
+ "message": "メッセージ"
+ },
+ "min": {
+ "message": "ミニマム"
+ },
+ "myAccounts": {
+ "message": "マイアカウント"
+ },
+ "needEtherInWallet": {
+ "message": "MetaMaskを使って分散型アプリケーションと対話するためには、あなたのウォレットにEtherが必要になります。"
+ },
+ "needImportFile": {
+ "message": "インポートするファイルを選択してください。",
+ "description": "User is important an account and needs to add a file to continue"
+ },
+ "needImportPassword": {
+ "message": "選択したファイルのパスワードを入力してください。",
+ "description": "Password and file needed to import an account"
+ },
+ "networks": {
+ "message": "ネットワーク"
+ },
+ "newAccount": {
+ "message": "新規アカウント"
+ },
+ "newAccountNumberName": {
+ "message": "アカウント $1",
+ "description": "Default name of next account to be created on create account screen"
+ },
+ "newContract": {
+ "message": "新規コントラクト"
+ },
+ "newPassword": {
+ "message": "新規パスワード(最低8文字)"
+ },
+ "newRecipient": {
+ "message": "新規受取人"
+ },
+ "next": {
+ "message": "次へ"
+ },
+ "noAddressForName": {
+ "message": "この名前にはアドレスが設定されていません。"
+ },
+ "noDeposits": {
+ "message": "デポジットがありません。"
+ },
+ "noTransactionHistory": {
+ "message": "トランザクション履歴がありません。"
+ },
+ "noTransactions": {
+ "message": "トランザクションがありません。"
+ },
+ "notStarted": {
+ "message": "スタートしていません。"
+ },
+ "oldUI": {
+ "message": "旧UI"
+ },
+ "oldUIMessage": {
+ "message": "旧UIを表示しています。右上のドロップダウンメニューのオプションより、新UIへ切り替えが可能です。"
+ },
+ "or": {
+ "message": "または",
+ "description": "choice between creating or importing a new account"
+ },
+ "passwordMismatch": {
+ "message": "パスワードが一致しません。",
+ "description": "in password creation process, the two new password fields did not match"
+ },
+ "passwordShort": {
+ "message": "パスワードが短すぎます。",
+ "description": "in password creation process, the password is not long enough to be secure"
+ },
+ "pastePrivateKey": {
+ "message": "秘密鍵をここにペーストして下さい:",
+ "description": "For importing an account from a private key"
+ },
+ "pasteSeed": {
+ "message": "シードをここにペーストして下さい!"
+ },
+ "pleaseReviewTransaction": {
+ "message": "トランザクションをレビューして下さい。"
+ },
+ "privateKey": {
+ "message": "秘密鍵",
+ "description": "select this type of file to use to import an account"
+ },
+ "privateKeyWarning": {
+ "message": "警告: この鍵は絶対に公開しないで下さい。公開すると、誰でもあなたのアカウント内の資産を盗むことができてしまいます。"
+ },
+ "privateNetwork": {
+ "message": "プライベート・ネットワーク"
+ },
+ "qrCode": {
+ "message": "QRコードを表示"
+ },
+ "readdToken": {
+ "message": "アカウントのオプションメニューから「トークンを追加」すれば、将来このトークンを追加し直すことができます。"
+ },
+ "readMore": {
+ "message": "もっと読む"
+ },
+ "receive": {
+ "message": "受け取る"
+ },
+ "recipientAddress": {
+ "message": "受取人アドレス"
+ },
+ "refundAddress": {
+ "message": "あなたの返金先アドレス"
+ },
+ "rejected": {
+ "message": "拒否されました"
+ },
+ "required": {
+ "message": "必要です。"
+ },
+ "retryWithMoreGas": {
+ "message": "より高いガスプライスで再度試して下さい。"
+ },
+ "revert": {
+ "message": "元に戻す"
+ },
+ "rinkeby": {
+ "message": "Rinkebyテストネットワーク"
+ },
+ "ropsten": {
+ "message": "Ropstenテストネットワーク"
+ },
+ "sampleAccountName": {
+ "message": "例.新しいマイアカウント",
+ "description": "Help user understand concept of adding a human-readable name to their account"
+ },
+ "save": {
+ "message": "保存"
+ },
+ "saveAsFile": {
+ "message": "ファイルとして保存",
+ "description": "Account export process"
+ },
+ "selectService": {
+ "message": "サービスを選択"
+ },
+ "send": {
+ "message": "送信"
+ },
+ "sendTokens": {
+ "message": "トークンを送る"
+ },
+ "sendTokensAnywhere": {
+ "message": "イーサリアムのアカウントを持っている人にトークンを送る"
+ },
+ "settings": {
+ "message": "設定"
+ },
+ "shapeshiftBuy": {
+ "message": "Shapeshiftで買う"
+ },
+ "showPrivateKeys": {
+ "message": "秘密鍵を表示"
+ },
+ "showQRCode": {
+ "message": "QRコードを表示"
+ },
+ "sign": {
+ "message": "署名"
+ },
+ "signMessage": {
+ "message": "メッセージに署名"
+ },
+ "signNotice": {
+ "message": "このメッセージへの署名は危険となる可能性があります。\n完全に信頼するサイトからのメッセージのみ、\nあなたのアカウントで署名して下さい。今後のバージョンでは、\nこの危険なメソッドは削除される予定です。"
+ },
+ "sigRequest": {
+ "message": "署名リクエスト"
+ },
+ "sigRequested": {
+ "message": "署名がリクエストされました"
+ },
+ "status": {
+ "message": "ステータス"
+ },
+ "submit": {
+ "message": "送信"
+ },
+ "takesTooLong": {
+ "message": "長くかかりすぎていますか?"
+ },
+ "testFaucet": {
+ "message": "Faucetをテスト"
+ },
+ "to": {
+ "message": "宛先"
+ },
+ "toETHviaShapeShift": {
+ "message": "ShapeShiftで $1をETHにする",
+ "description": "system will fill in deposit type in start of message"
+ },
+ "tokenBalance": {
+ "message": "あなたのトークン残高:"
+ },
+ "total": {
+ "message": "合計"
+ },
+ "transactionMemo": {
+ "message": "トランザクションメモ (オプション)"
+ },
+ "transactionNumber": {
+ "message": "トランザクション番号"
+ },
+ "transfers": {
+ "message": "トランスファー"
+ },
+ "troubleTokenBalances": {
+ "message": "トークン残高を取得できません。こちらでご確認ください。",
+ "description": "Followed by a link (here) to view token balances"
+ },
+ "typePassword": {
+ "message": "パスワードタイプ"
+ },
+ "uiWelcome": {
+ "message": "新UIへようこそ!(ベータ版)"
+ },
+ "uiWelcomeMessage": {
+ "message": "現在Metamaskの新しいUIをお使いになっています。トークン送信など、新たな機能を試してみましょう!何か問題があればご報告ください。"
+ },
+ "unavailable": {
+ "message": "有効ではありません。"
+ },
+ "unknown": {
+ "message": "不明"
+ },
+ "unknownNetwork": {
+ "message": "不明なプライベートネットワーク"
+ },
+ "unknownNetworkId": {
+ "message": "不明なネットワークID"
+ },
+ "usaOnly": {
+ "message": "米国居住者のみ",
+ "description": "Using this exchange is limited to people inside the USA"
+ },
+ "usedByClients": {
+ "message": "様々なクライアントによって使用されています。"
+ },
+ "viewAccount": {
+ "message": "アカウントを見る"
+ },
+ "warning": {
+ "message": "警告"
+ },
+ "whatsThis": {
+ "message": "これは何でしょう?"
+ },
+ "yourSigRequested": {
+ "message": "あなたの署名がリクエストされています。"
+ },
+ "youSign": {
+ "message": "署名しています。"
}
}
diff --git a/app/_locales/ko/messages.json b/app/_locales/ko/messages.json
index c58af4b80..d3801c4f5 100644
--- a/app/_locales/ko/messages.json
+++ b/app/_locales/ko/messages.json
@@ -1,10 +1,609 @@
{
- "appName": {
- "message": "MetaMask",
- "description": "The name of the application"
+ "accept": {
+ "message": "수락"
+ },
+ "account": {
+ "message": "계좌"
+ },
+ "accountDetails": {
+ "message": "계좌 상세보기"
+ },
+ "accountName": {
+ "message": "계좌 이름"
+ },
+ "address": {
+ "message": "주소"
+ },
+ "addToken": {
+ "message": "토큰 추가"
+ },
+ "amount": {
+ "message": "금액"
+ },
+ "amountPlusGas": {
+ "message": "금액 + 가스"
},
"appDescription": {
- "message": "이더리움 계좌 관리",
- "description": "The description of the application"
+ "message": "이더리움 브라우저 확장 프로그램",
+ "description": "어플리케이션 내용"
+ },
+ "appName": {
+ "message": "메타마스크",
+ "description": "어플리케이션 이름"
+ },
+ "attemptingConnect": {
+ "message": "블록체인에 접속 시도 중입니다."
+ },
+ "available": {
+ "message": "사용 가능한"
+ },
+ "back": {
+ "message": "뒤로"
+ },
+ "balance": {
+ "message": "잔액:"
+ },
+ "balanceIsInsufficientGas": {
+ "message": "가스가 충분하지 않습니다."
+ },
+ "beta": {
+ "message": "베타"
+ },
+ "betweenMinAndMax": {
+ "message": "$1 이상 $2 이하여야 합니다.",
+ "description": "helper for inputting hex as decimal input"
+ },
+ "borrowDharma": {
+ "message": "Dharma에서 빌리기(베타)"
+ },
+ "buy": {
+ "message": "구매"
+ },
+ "buyCoinbase": {
+ "message": "코인베이스에서 구매"
+ },
+ "buyCoinbaseExplainer": {
+ "message": "코인베이스에서 비트코인, 이더리움, 라이트코인을 구매하실 수 있습니다."
+ },
+ "cancel": {
+ "message": "취소"
+ },
+ "clickCopy": {
+ "message": "클릭하여 복사"
+ },
+ "confirm": {
+ "message": "승인"
+ },
+ "confirmContract": {
+ "message": "컨트랙트 승인"
+ },
+ "confirmPassword": {
+ "message": "패스워드 승인"
+ },
+ "confirmTransaction": {
+ "message": "트랜잭션 승인"
+ },
+ "continueToCoinbase": {
+ "message": "코인베이스로 계속하기"
+ },
+ "contractDeployment": {
+ "message": "컨트랙트 배포"
+ },
+ "conversionProgress": {
+ "message": "변환중.."
+ },
+ "copiedButton": {
+ "message": "복사되었습니다."
+ },
+ "copiedClipboard": {
+ "message": "클립보드에 복사되었습니다."
+ },
+ "copiedExclamation": {
+ "message": "복사되었습니다."
+ },
+ "copy": {
+ "message": "복사하기"
+ },
+ "copyToClipboard": {
+ "message": "클립보드에 복사"
+ },
+ "copyButton": {
+ "message": " 복사 "
+ },
+ "copyPrivateKey": {
+ "message": "비밀 키 (클릭하여 복사)"
+ },
+ "create": {
+ "message": "생성"
+ },
+ "createAccount": {
+ "message": "계좌 생성"
+ },
+ "createDen": {
+ "message": "생성"
+ },
+ "crypto": {
+ "message": "암호화폐",
+ "description": "Exchange type (cryptocurrencies)"
+ },
+ "customGas": {
+ "message": "가스 설정"
+ },
+ "customize": {
+ "message": "커스터마이즈"
+ },
+ "customRPC": {
+ "message": "커스텀 RPC"
+ },
+ "defaultNetwork": {
+ "message": "이더리움 트랜잭션의 기본 네트워크는 메인넷입니다."
+ },
+ "denExplainer": {
+ "message": "DEN은 비밀번호가 암호화 된 MetaMask의 스토리지입니다."
+ },
+ "deposit": {
+ "message": "입금"
+ },
+ "depositBTC": {
+ "message": "아래 주소로 BTC를 입급해주세요."
+ },
+ "depositCoin": {
+ "message": "아래 주소로 $1를 입금해주세요.",
+ "description": "Tells the user what coin they have selected to deposit with shapeshift"
+ },
+ "depositEth": {
+ "message": "이더 입금"
+ },
+ "depositEther": {
+ "message": "이더 입금"
+ },
+ "depositFiat": {
+ "message": "현금으로 입금하기"
+ },
+ "depositFromAccount": {
+ "message": "다른 주소에서 입금하기"
+ },
+ "depositShapeShift": {
+ "message": "ShapeShift를 통해 입금하기"
+ },
+ "depositShapeShiftExplainer": {
+ "message": "다른 암호화폐를 가지고 있으면, 계좌 생성 필요없이, 거래를 하거나 메타마스크 지갑을 통해 이더를 입금할 수 있습니다."
+ },
+ "details": {
+ "message": "상세"
+ },
+ "directDeposit": {
+ "message": "즉시 입금"
+ },
+ "directDepositEther": {
+ "message": "이더 즉시 입금"
+ },
+ "directDepositEtherExplainer": {
+ "message": "이더를 이미 보유하고 있다면, 직접 입금을 통해 이더를 즉시 입금하실 수 있습니다."
+ },
+ "done": {
+ "message": "완료"
+ },
+ "edit": {
+ "message": "수정"
+ },
+ "editAccountName": {
+ "message": "계좌명 수정"
+ },
+ "encryptNewDen": {
+ "message": "새 DEN 암호화"
+ },
+ "enterPassword": {
+ "message": "패스워드를 입력해주세요."
+ },
+ "etherscanView": {
+ "message": "이더스캔에서 계좌보기"
+ },
+ "exchangeRate": {
+ "message": "환율"
+ },
+ "exportPrivateKey": {
+ "message": "비밀키 내보내기"
+ },
+ "exportPrivateKeyWarning": {
+ "message": "Export private keys at your own risk."
+ },
+ "failed": {
+ "message": "실패"
+ },
+ "fiat": {
+ "message": "FIAT",
+ "description": "Exchange type"
+ },
+ "fileImportFail": {
+ "message": "파일을 가져올 수 없나요? 여기를 클릭해주세요!",
+ "description": "Helps user import their account from a JSON file"
+ },
+ "from": {
+ "message": "보내는 사람"
+ },
+ "fromShapeShift": {
+ "message": "ShapeShift로 부터"
+ },
+ "gas": {
+ "message": "가스",
+ "description": "Short indication of gas cost"
+ },
+ "gasFee": {
+ "message": "가스 수수료"
+ },
+ "gasLimit": {
+ "message": "가스 리밋"
+ },
+ "gasLimitCalculation": {
+ "message": "네트워크 성공률을 기반으로 적합한 가스 리밋을 계산합니다."
+ },
+ "gasLimitRequired": {
+ "message": "가스 리밋이 필요합니다."
+ },
+ "gasLimitTooLow": {
+ "message": "가스 리밋은 21000 이상이여야 합니다."
+ },
+ "gasPrice": {
+ "message": "가스 가격 (GWEI)"
+ },
+ "gasPriceCalculation": {
+ "message": "네트워크 성공률을 기반으로 적합한 가스 가격을 계산합니다."
+ },
+ "gasPriceRequired": {
+ "message": "가스 가격이 필요합니다."
+ },
+ "getEther": {
+ "message": "이더 얻기"
+ },
+ "getEtherFromFaucet": {
+ "message": "faucet에서 $1에 달하는 이더를 얻으세요.",
+ "description": "Displays network name for Ether faucet"
+ },
+ "greaterThanMin": {
+ "message": "$1 이상이어야 합니다.",
+ "description": "helper for inputting hex as decimal input"
+ },
+ "here": {
+ "message": "여기",
+ "description": "as in -click here- for more information (goes with troubleTokenBalances)"
+ },
+ "hide": {
+ "message": "숨기기"
+ },
+ "hideToken": {
+ "message": "토큰 숨기기"
+ },
+ "hideTokenPrompt": {
+ "message": "토큰 숨기기?"
+ },
+ "howToDeposit": {
+ "message": "어떤 방법으로 이더를 입금하시겠습니까?"
+ },
+ "import": {
+ "message": "파일에서 가져오기",
+ "description": "Button to import an account from a selected file"
+ },
+ "importAccount": {
+ "message": "계좌 가져오기"
+ },
+ "importAnAccount": {
+ "message": "계좌 가져오기"
+ },
+ "importDen": {
+ "message": "기존 DEN 가져오기"
+ },
+ "imported": {
+ "message": "가져오기 완료",
+ "description": "status showing that an account has been fully loaded into the keyring"
+ },
+ "infoHelp": {
+ "message": "정보 및 도움말"
+ },
+ "invalidAddress": {
+ "message": "유효하지 않은 주소"
+ },
+ "invalidGasParams": {
+ "message": "유효하지 않은 가스 입력값"
+ },
+ "invalidInput": {
+ "message": "유효하지 않은 입력값"
+ },
+ "invalidRequest": {
+ "message": "유효하지 않은 요청"
+ },
+ "jsonFile": {
+ "message": "JSON 파일",
+ "description": "format for importing an account"
+ },
+ "kovan": {
+ "message": "Kovan 테스트넷"
+ },
+ "lessThanMax": {
+ "message": "$1 이하여야합니다.",
+ "description": "helper for inputting hex as decimal input"
+ },
+ "limit": {
+ "message": "리밋"
+ },
+ "loading": {
+ "message": "로딩중..."
+ },
+ "loadingTokens": {
+ "message": "토큰 로딩중..."
+ },
+ "localhost": {
+ "message": "로컬호스트 8545"
+ },
+ "logout": {
+ "message": "로그아웃"
+ },
+ "loose": {
+ "message": "외부 비밀키"
+ },
+ "mainnet": {
+ "message": "이더리움 메인넷"
+ },
+ "message": {
+ "message": "메시지"
+ },
+ "min": {
+ "message": "최소"
+ },
+ "myAccounts": {
+ "message": "내 계좌"
+ },
+ "needEtherInWallet": {
+ "message": "dApp을 이용하기 위해서는 지갑에 이더가 있어야 합니다."
+ },
+ "needImportFile": {
+ "message": "가져올 파일을 선택해주세요.",
+ "description": "User is important an account and needs to add a file to continue"
+ },
+ "needImportPassword": {
+ "message": "선택 된 파일에 패스워드를 입력해주세요.",
+ "description": "Password and file needed to import an account"
+ },
+ "networks": {
+ "message": "네트워크"
+ },
+ "newAccount": {
+ "message": "새 계좌"
+ },
+ "newAccountNumberName": {
+ "message": "새 계좌 $1",
+ "description": "Default name of next account to be created on create account screen"
+ },
+ "newContract": {
+ "message": "새 컨트랙트"
+ },
+ "newPassword": {
+ "message": "새 패스워드 (최소 8자 이상)"
+ },
+ "newRecipient": {
+ "message": "받는 사람"
+ },
+ "next": {
+ "message": "다음"
+ },
+ "noAddressForName": {
+ "message": "이 이름에는 주소가 설정되어 있지 않습니다."
+ },
+ "noDeposits": {
+ "message": "입금이 없습니다."
+ },
+ "noTransactionHistory": {
+ "message": "트랜잭션 기록이 없습니다."
+ },
+ "noTransactions": {
+ "message": "트랜잭션이 없습니다."
+ },
+ "notStarted": {
+ "message": "시작되지 않음."
+ },
+ "oldUI": {
+ "message": "구버전의 UI"
+ },
+ "oldUIMessage": {
+ "message": "구버전 UI로 변경하셨습니다. 우 상단 드랍다운 메뉴에서 새 UI로 변경하실 수 있습니다."
+ },
+ "or": {
+ "message": "또는",
+ "description": "choice between creating or importing a new account"
+ },
+ "passwordMismatch": {
+ "message": "패스워드가 일치하지 않습니다.",
+ "description": "in password creation process, the two new password fields did not match"
+ },
+ "passwordShort": {
+ "message": "패스워드가 너무 짧습니다.",
+ "description": "in password creation process, the password is not long enough to be secure"
+ },
+ "pastePrivateKey": {
+ "message": "비밀키를 입력해주세요.",
+ "description": "For importing an account from a private key"
+ },
+ "pasteSeed": {
+ "message": "시드 문장들을 붙여넣어주세요."
+ },
+ "pleaseReviewTransaction": {
+ "message": "트랜잭션을 검토해주세요."
+ },
+ "privateKey": {
+ "message": "비밀키",
+ "description": "select this type of file to use to import an account"
+ },
+ "privateKeyWarning": {
+ "message": " 절대 이 키를 노출하지 마십시오. 비밀키가 노출되면 누구나 당신의 계좌에서 자산을 빼갈 수 있습니다."
+ },
+ "privateNetwork": {
+ "message": "프라이빗 네트워크"
+ },
+ "qrCode": {
+ "message": "QR 코드 보기"
+ },
+ "readdToken": {
+ "message": "옵션 메뉴에서 “토큰 추가”를 눌러서 추후에 다시 이 토큰을 추가하실 수 있습니다."
+ },
+ "readMore": {
+ "message": "더 읽기."
+ },
+ "receive": {
+ "message": "받기"
+ },
+ "recipientAddress": {
+ "message": "받는 사람 주소"
+ },
+ "refundAddress": {
+ "message": "환불받을 주소"
+ },
+ "rejected": {
+ "message": "거부되었음."
+ },
+ "required": {
+ "message": "필요함."
+ },
+ "retryWithMoreGas": {
+ "message": "더 높은 가스 가격으로 다시 시도해주세요."
+ },
+ "revert": {
+ "message": "취소"
+ },
+ "rinkeby": {
+ "message": "Rinkeby 테스트넷"
+ },
+ "ropsten": {
+ "message": "Ropsten 테스트넷"
+ },
+ "sampleAccountName": {
+ "message": "예) 나의 새 계좌",
+ "description": "Help user understand concept of adding a human-readable name to their account"
+ },
+ "save": {
+ "message": "저장"
+ },
+ "saveAsFile": {
+ "message": "파일로 저장",
+ "description": "Account export process"
+ },
+ "selectService": {
+ "message": "서비스 선택"
+ },
+ "send": {
+ "message": "전송"
+ },
+ "sendTokens": {
+ "message": "토큰 전송"
+ },
+ "sendTokensAnywhere": {
+ "message": "이더 계좌로 토큰 전송"
+ },
+ "settings": {
+ "message": "설정"
+ },
+ "shapeshiftBuy": {
+ "message": "Shapeshift를 통해서 구매하기"
+ },
+ "showPrivateKeys": {
+ "message": "비밀키 보기"
+ },
+ "showQRCode": {
+ "message": "QR코드 보기"
+ },
+ "sign": {
+ "message": "서명"
+ },
+ "signMessage": {
+ "message": "서명 메시지"
+ },
+ "signNotice": {
+ "message": "이 메시지에 대한 서명은 위험할 수 있습니다.\n 완전히 신뢰할 수 있는 사이트에서만 서명해주세요.\n 안전을 위해 추후의 버전에서는 삭제될 기능입니다. "
+ },
+ "sigRequest": {
+ "message": "서명 요청"
+ },
+ "sigRequested": {
+ "message": "서명이 요청되었습니다."
+ },
+ "status": {
+ "message": "상태"
+ },
+ "submit": {
+ "message": "제출"
+ },
+ "takesTooLong": {
+ "message": "너무 오래걸리나요?"
+ },
+ "testFaucet": {
+ "message": "Faucet 테스트"
+ },
+ "to": {
+ "message": "대상"
+ },
+ "toETHviaShapeShift": {
+ "message": "ShapeShift를 통해 $1를 ETH로 바꾸기",
+ "description": "system will fill in deposit type in start of message"
+ },
+ "tokenBalance": {
+ "message": "현재 토큰 잔액: "
+ },
+ "total": {
+ "message": "합계"
+ },
+ "transactionMemo": {
+ "message": "트랜잭션 메모 (선택사항)"
+ },
+ "transactionNumber": {
+ "message": "트랜잭션 번호"
+ },
+ "transfers": {
+ "message": "전송"
+ },
+ "troubleTokenBalances": {
+ "message": "토큰 잔액을 가져오는데에 문제가 생겼습니다. (여기)서 상세내용을 볼 수 있습니다.",
+ "description": "Followed by a link (here) to view token balances"
+ },
+ "typePassword": {
+ "message": "패스워드를 입력하세요."
+ },
+ "uiWelcome": {
+ "message": "새 UI에 오신 것을 환영합니다. (베타)"
+ },
+ "uiWelcomeMessage": {
+ "message": "새 메타마스크 UI를 사용하고 계십니다. 토큰 전송과 같은 새 기능들을 사용해보시면서 문제가 있다면 알려주세요."
+ },
+ "unavailable": {
+ "message": "유효하지 않은"
+ },
+ "unknown": {
+ "message": "알려지지 않은"
+ },
+ "unknownNetwork": {
+ "message": "알려지지 않은 프라이빗 네트워크"
+ },
+ "unknownNetworkId": {
+ "message": "알려지지 않은 네트워크 ID"
+ },
+ "usaOnly": {
+ "message": "USA 거주자 한정",
+ "description": "Using this exchange is limited to people inside the USA"
+ },
+ "usedByClients": {
+ "message": "다양한 클라이언트에서 사용되고 있습니다."
+ },
+ "viewAccount": {
+ "message": "계좌 보기"
+ },
+ "warning": {
+ "message": "경고"
+ },
+ "whatsThis": {
+ "message": "이것은 무엇인가요?"
+ },
+ "yourSigRequested": {
+ "message": "서명이 요청되고 있습니다."
+ },
+ "youSign": {
+ "message": "서명 중입니다."
}
}
diff --git a/app/_locales/vi/messages.json b/app/_locales/vi/messages.json
new file mode 100644
index 000000000..cd30de4de
--- /dev/null
+++ b/app/_locales/vi/messages.json
@@ -0,0 +1,609 @@
+{
+ "accept": {
+ "message": "Chấp nhận"
+ },
+ "account": {
+ "message": "Tài khoản"
+ },
+ "accountDetails": {
+ "message": "Chi tiết tài khoản"
+ },
+ "accountName": {
+ "message": "Tên tài khoản"
+ },
+ "addToken": {
+ "message": "Thêm mã Token"
+ },
+ "address": {
+ "message": "Địa chỉ"
+ },
+ "amount": {
+ "message": "Số lượng"
+ },
+ "amountPlusGas": {
+ "message": "Số lượng + Gas"
+ },
+ "appDescription": {
+ "description": "Mô tả phần mềm",
+ "message": "Tính năng Ethereum cho trình duyệt"
+ },
+ "appName": {
+ "description": "Tên phần mềm",
+ "message": "MetaMask"
+ },
+ "attemptingConnect": {
+ "message": "Đang kết nối đến blockchain."
+ },
+ "available": {
+ "message": "Có sẵn"
+ },
+ "back": {
+ "message": "Quay lại"
+ },
+ "balance": {
+ "message": "Số dư:"
+ },
+ "balanceIsInsufficientGas": {
+ "message": "Số dư không đủ để thanh toán tổng tiền gas hiện tại"
+ },
+ "beta": {
+ "message": "Bản thử nghiệm Beta"
+ },
+ "betweenMinAndMax": {
+ "description": "trợ giúp để nhập hex dưới dạng số thập phân",
+ "message": "phải nhiều hơn hoặc bằng $1 và ít hơn hoặc bằng $2."
+ },
+ "borrowDharma": {
+ "message": "Vay Dharma (thử nghiệm)"
+ },
+ "buy": {
+ "message": "Mua"
+ },
+ "buyCoinbase": {
+ "message": "Mua trên Coinbase"
+ },
+ "buyCoinbaseExplainer": {
+ "message": "Coinbase là dịch vụ ví điện tử thông dụng nhất thế giới để mua bán Bitcoin, Ethereum, và Litecoin"
+ },
+ "cancel": {
+ "message": "Hủy"
+ },
+ "clickCopy": {
+ "message": "Nhấp vào để sao chép"
+ },
+ "confirm": {
+ "message": "Xác nhận"
+ },
+ "confirmContract": {
+ "message": "Xác nhận hợp đồng"
+ },
+ "confirmPassword": {
+ "message": "Xác nhận mật khẩu"
+ },
+ "confirmTransaction": {
+ "message": "Xác nhận giao dịch"
+ },
+ "continueToCoinbase": {
+ "message": "Tiếp tục đến Coinbase"
+ },
+ "contractDeployment": {
+ "message": "Triển khai hợp đồng"
+ },
+ "conversionProgress": {
+ "message": "Đang chuyển đổi"
+ },
+ "copiedButton": {
+ "message": "Đã sao chép"
+ },
+ "copiedClipboard": {
+ "message": "Đã sao chép vào bộ nhớ Clipboard"
+ },
+ "copiedExclamation": {
+ "message": "Đã sao chép!"
+ },
+ "copy": {
+ "message": "Sao chép"
+ },
+ "copyButton": {
+ "message": "Sao chép"
+ },
+ "copyPrivateKey": {
+ "message": "Đây là Khoá Bí Mật của bạn (nhấp vào để sao chép)"
+ },
+ "copyToClipboard": {
+ "message": "Đã sao chép vào clipboard"
+ },
+ "create": {
+ "message": "Tạo"
+ },
+ "createAccount": {
+ "message": "Tạo tài khoản"
+ },
+ "createDen": {
+ "message": "Tạo"
+ },
+ "crypto": {
+ "description": "Hình thức giao dịch (tiền điện tử)",
+ "message": "Tiền điện tử"
+ },
+ "customGas": {
+ "message": "Tùy chỉnh gas"
+ },
+ "customRPC": {
+ "message": "Tùy chỉnh RPC"
+ },
+ "customize": {
+ "message": "Tùy chỉnh"
+ },
+ "defaultNetwork": {
+ "message": "Mạng lưới mặc định dùng cho các giao dịch Ether là Main Net (tiền ETH thật)."
+ },
+ "denExplainer": {
+ "message": "Số DEN của bạn là mật khẩu đã được mã hóa và lưu trữ trong MetaMask"
+ },
+ "deposit": {
+ "message": "Ký gửi/nạp tiền"
+ },
+ "depositBTC": {
+ "message": "Ký gửi BTC đến địa chỉ sau:"
+ },
+ "depositCoin": {
+ "description": "Báo cho người dùng biết đồng tiền nào họ đã chọn để ký gửi với ShapeShift",
+ "message": "Ký gửi $1 đến địa chỉ sau:"
+ },
+ "depositEth": {
+ "message": "Ký gửi Eth"
+ },
+ "depositEther": {
+ "message": "Ký gửi Ether"
+ },
+ "depositFiat": {
+ "message": "Ký gửi bằng tiền Fiat (USD, GBP, ...)"
+ },
+ "depositFromAccount": {
+ "message": "Ký gửi từ một tài khoản khác"
+ },
+ "depositShapeShift": {
+ "message": "Ký gửi với ShapeShift"
+ },
+ "depositShapeShiftExplainer": {
+ "message": "Nếu bạn sở hữu các đồng tiền điện tử khác, bạn có thể giao dịch và ký gửi Ether trực tiếp vào ví MetaMask của bạn. Không cần tạo thêm tài khoản."
+ },
+ "details": {
+ "message": "Chi tiết"
+ },
+ "directDeposit": {
+ "message": "Ký gửi trực tiếp"
+ },
+ "directDepositEther": {
+ "message": "Ký gửi Ether trực tiếp"
+ },
+ "directDepositEtherExplainer": {
+ "message": "Nếu bạn đã có sẵn vài Ether, cách nhanh nhất để thêm Ether vào ví tiền mới của bạn là bằng ký gửi trực tiếp."
+ },
+ "done": {
+ "message": "Hoàn tất"
+ },
+ "edit": {
+ "message": "Chỉnh sửa"
+ },
+ "editAccountName": {
+ "message": "Chỉnh sửa tên tài khoản"
+ },
+ "encryptNewDen": {
+ "message": "Mã hóa số DEN mới của bạn"
+ },
+ "enterPassword": {
+ "message": "Nhập mật khẩu"
+ },
+ "etherscanView": {
+ "message": "Xem tài khoản trên Etherscan"
+ },
+ "exchangeRate": {
+ "message": "Tỷ giá"
+ },
+ "exportPrivateKey": {
+ "message": "Xuất mã khóa cá nhân"
+ },
+ "exportPrivateKeyWarning": {
+ "message": "Xuất mã khóa cá nhân theo rủi ro tự chịu"
+ },
+ "failed": {
+ "message": "Không thành công"
+ },
+ "fiat": {
+ "description": "Hình thức giao dịch",
+ "message": "FIAT"
+ },
+ "fileImportFail": {
+ "description": "Giúp người dùng nhập tài khoản từ tập tin JSON",
+ "message": "Tập tin đã nhập không hoạt động? Nhấp vào đây!"
+ },
+ "from": {
+ "message": "Từ"
+ },
+ "fromShapeShift": {
+ "message": "Từ ShapeShift"
+ },
+ "gas": {
+ "description": "Viết tắt của giá ga",
+ "message": "Ga"
+ },
+ "gasFee": {
+ "message": "Tiền ga"
+ },
+ "gasLimit": {
+ "message": "Hạn mức ga"
+ },
+ "gasLimitCalculation": {
+ "message": "Chúng tôi tính toán và gợi ý một hạn mức ga cụ thể dựa trên tỷ lệ thành công của hệ thống."
+ },
+ "gasLimitRequired": {
+ "message": "Hạn mức ga được yêu cầu"
+ },
+ "gasLimitTooLow": {
+ "message": "Hạn mức ga phải đạt tối thiểu 21000"
+ },
+ "gasPrice": {
+ "message": "Giá ga (GWEI)"
+ },
+ "gasPriceCalculation": {
+ "message": "Chúng tôi tính toán và gợi ý một giá ga cụ thể dựa trên tỷ lệ thành công của hệ thống."
+ },
+ "gasPriceRequired": {
+ "message": "Giá ga được yêu cầu"
+ },
+ "getEther": {
+ "message": "Lấy Ether"
+ },
+ "getEtherFromFaucet": {
+ "description": "Hiển thị tên mạng cho vòi Ether",
+ "message": "Lấy Ether từ vòi với giá $1"
+ },
+ "greaterThanMin": {
+ "description": "trợ giúp để nhập hex dưới dạng số thập phân",
+ "message": "phải nhiều hơn hoặc bằng $1"
+ },
+ "here": {
+ "description": "như trong -Nhấp vào đây để xem thêm thông tin- (dùng với các số dư token có vấn đề)",
+ "message": "tại đây"
+ },
+ "hide": {
+ "message": "Ẩn"
+ },
+ "hideToken": {
+ "message": "Ẩn mã token"
+ },
+ "hideTokenPrompt": {
+ "message": "Ẩn mã token?"
+ },
+ "howToDeposit": {
+ "message": "Bạn muốn ký gửi Ether bằng cách nào?"
+ },
+ "import": {
+ "description": "Nút để nhập tài khoản từ một tập tin đã chọn",
+ "message": "Nhập"
+ },
+ "importAccount": {
+ "message": "Nhập tài khoản"
+ },
+ "importAnAccount": {
+ "message": "Nhập một tài khoản"
+ },
+ "importDen": {
+ "message": "Nhập mã DEN hiện hành"
+ },
+ "imported": {
+ "description": "Trạng thái hiển thị cho một tài khoản đã được tải toàn bộ vào chùm chìa khóa",
+ "message": "Đã nhập"
+ },
+ "infoHelp": {
+ "message": "Thông tin & Trợ giúp"
+ },
+ "invalidAddress": {
+ "message": "Địa chỉ không hợp lệ"
+ },
+ "invalidGasParams": {
+ "message": "Thông số ga không hợp lệ"
+ },
+ "invalidInput": {
+ "message": "Thông tin nhập vào không hợp lệ"
+ },
+ "invalidRequest": {
+ "message": "Yêu cầu không hợp lệ"
+ },
+ "jsonFile": {
+ "description": "định dạng để nhập tài khoản",
+ "message": "Tập tin JSON"
+ },
+ "kovan": {
+ "message": "Mạng thử nghiệm Kovan"
+ },
+ "lessThanMax": {
+ "description": "trợ giúp để nhập hex dưới dạng số thập phân",
+ "message": "phải ít hơn hoặc bằng $1."
+ },
+ "limit": {
+ "message": "Giới hạn"
+ },
+ "loading": {
+ "message": "Đang tải..."
+ },
+ "loadingTokens": {
+ "message": "Đang tải mã token..."
+ },
+ "localhost": {
+ "message": "Localhost 8545"
+ },
+ "logout": {
+ "message": "Thoát"
+ },
+ "loose": {
+ "message": "Nới lỏng"
+ },
+ "mainnet": {
+ "message": "Mạng Ethereum MainNet (tiền ETH thật)"
+ },
+ "message": {
+ "message": "Tin nhắn"
+ },
+ "min": {
+ "message": "Tối thiểu"
+ },
+ "myAccounts": {
+ "message": "Tài khoản của tôi"
+ },
+ "needEtherInWallet": {
+ "message": "Để tương tác với các ứng dụng phân tán bằng MetaMask, bạn sẽ phải cần có Ether trong ví của bạn."
+ },
+ "needImportFile": {
+ "description": "Người dùng đang nhập một tài khoản và cần thêm tập tin để tiếp tục",
+ "message": "Bạn phải chọn một tập tin để nhập."
+ },
+ "needImportPassword": {
+ "description": "Mật khẩu và tập tin cần thiết để nhập một tài khoản",
+ "message": "Bạn phải điền mật khẩu cho tập tin đã chọn."
+ },
+ "networks": {
+ "message": "Các mạng lưới"
+ },
+ "newAccount": {
+ "message": "Tài khoản mới"
+ },
+ "newAccountNumberName": {
+ "description": "Tên mặc định của tài khoản tiếp theo để tạo trên màn hình tài khoản",
+ "message": "Tài khoản $1"
+ },
+ "newContract": {
+ "message": "Hợp đồng mới"
+ },
+ "newPassword": {
+ "message": "Mật khẩu mới (tối thiểu 8 ký tự)"
+ },
+ "newRecipient": {
+ "message": "Người nhận mới"
+ },
+ "next": {
+ "message": "Kế tiếp"
+ },
+ "noAddressForName": {
+ "message": "Không có địa chỉ nào được ấn định cho tên này."
+ },
+ "noDeposits": {
+ "message": "Không có tiền ký gửi nào được nhận"
+ },
+ "noTransactionHistory": {
+ "message": "Không có lịch sử giao dịch"
+ },
+ "noTransactions": {
+ "message": "Không có giao dịch"
+ },
+ "notStarted": {
+ "message": "Chưa bắt đầu"
+ },
+ "oldUI": {
+ "message": "Giao diện cũ"
+ },
+ "oldUIMessage": {
+ "message": "Bạn vừa quay về giao diện cũ. Bạn có thể chuyển đổi sang giao diện mới bằng tùy chọn trong menu ở góc phải trên cùng."
+ },
+ "or": {
+ "description": "lựa chọn giữa tạo hay nhập một tài khoản mới",
+ "message": "hoặc"
+ },
+ "passwordMismatch": {
+ "description": "trong quá trình tạo mật khẩu, hai trường mật khẩu mới không khớp",
+ "message": "mật khẩu không khớp"
+ },
+ "passwordShort": {
+ "description": "trong quá trình tạo mật khẩu, mật khẩu không đủ dài để đảm bảo an toàn",
+ "message": "mật khẩu không đủ dài"
+ },
+ "pastePrivateKey": {
+ "description": "Dùng cho việc nhập tài khoản từ một khóa cá nhân",
+ "message": "Dán dãy khóa cá nhân của bạn tại đây:"
+ },
+ "pasteSeed": {
+ "message": "Dán Mật Khẩu Sinh Khoá (seed phrase) của bạn tại đây!"
+ },
+ "pleaseReviewTransaction": {
+ "message": "Vui lòng xem lại giao dịch của bạn."
+ },
+ "privateKey": {
+ "description": "chọn định dạng tập tin này để nhập một tài khoản",
+ "message": "Khóa Bí Mật"
+ },
+ "privateKeyWarning": {
+ "message": "Cảnh báo: Không bao giờ được tiết lộ khóa này. Bất kỳ ai có Khóa Bí Mật của bạn đều có thể đánh cắp tài sản được giữ trong tài khoản của bạn."
+ },
+ "privateNetwork": {
+ "message": "Mạng lưới riêng"
+ },
+ "qrCode": {
+ "message": "Hiển thị mã QR"
+ },
+ "readMore": {
+ "message": "Đọc thêm tại đây."
+ },
+ "readdToken": {
+ "message": "Bạn có thể thêm trở lại mã token này bằng cách nhấn \"Thêm mã token\" trong menu tùy chọn trong tài khoản của bạn."
+ },
+ "receive": {
+ "message": "Nhận"
+ },
+ "recipientAddress": {
+ "message": "Địa chỉ người nhận"
+ },
+ "refundAddress": {
+ "message": "Địa chỉ hoàn trả lại của bạn"
+ },
+ "rejected": {
+ "message": "Không chấp thuận/Bị từ chối"
+ },
+ "required": {
+ "message": "Yêu cầu"
+ },
+ "retryWithMoreGas": {
+ "message": "Thử lại với một giá ga cao hơn tại đây"
+ },
+ "revert": {
+ "message": "Chuyển lại"
+ },
+ "rinkeby": {
+ "message": "Mạng thử nghiệm Rinkeby"
+ },
+ "ropsten": {
+ "message": "Mạng thử nghiệm Ropsten"
+ },
+ "sampleAccountName": {
+ "description": "Giúp người dùng hiểu khái niệm thêm một cái tên có thể đọc được vào tài khoản của họ",
+ "message": "Ví dụ, Tài khoản mới của tôi"
+ },
+ "save": {
+ "message": "Lưu"
+ },
+ "saveAsFile": {
+ "description": "Quá trình xuất tài khoản",
+ "message": "Lưu lại dưới dạng tập tin"
+ },
+ "selectService": {
+ "message": "Chọn dịch vụ"
+ },
+ "send": {
+ "message": "Gửi"
+ },
+ "sendTokens": {
+ "message": "Gửi mã token"
+ },
+ "sendTokensAnywhere": {
+ "message": "Gửi mã token đến bất kỳ ai có tài khoản Ethereum"
+ },
+ "settings": {
+ "message": "Cài đặt"
+ },
+ "shapeshiftBuy": {
+ "message": "Mua với ShapeShift"
+ },
+ "showPrivateKeys": {
+ "message": "Hiển thị khóa cá nhân"
+ },
+ "showQRCode": {
+ "message": "Hiển thị mã QR"
+ },
+ "sigRequest": {
+ "message": "Yêu cầu chữ ký"
+ },
+ "sigRequested": {
+ "message": "Đã yêu cầu chữ ký"
+ },
+ "sign": {
+ "message": "Ký nhận"
+ },
+ "signMessage": {
+ "message": "Ký nhận tin nhắn"
+ },
+ "signNotice": {
+ "message": "Ký nhận vào tin nhắn này có thể gây nguy hiểm. Chỉ nên ký nhận tin nhắn từ những nguồn bạn hoàn toàn tin tưởng có thể dùng với tài khoản của bạn. Cách thức nguy hiểm này sẽ bị xóa trong phiên bản sắp tới."
+ },
+ "status": {
+ "message": "Trạng thái"
+ },
+ "submit": {
+ "message": "Gửi đi"
+ },
+ "takesTooLong": {
+ "message": "Chờ quá lâu?"
+ },
+ "testFaucet": {
+ "message": "Vòi nhận tiền ETH ảo để thử nghiệm"
+ },
+ "to": {
+ "message": "Đến"
+ },
+ "toETHviaShapeShift": {
+ "description": "hệ thống sẽ điền vào loại tiền gửi khi bắt đầu tin nhắn",
+ "message": "$1 thành ETH qua ShapeShift"
+ },
+ "tokenBalance": {
+ "message": "Số dư token của bạn là:"
+ },
+ "total": {
+ "message": "Tổng cộng"
+ },
+ "transactionMemo": {
+ "message": "Ghi nhớ giao dịch (tùy chọn)"
+ },
+ "transactionNumber": {
+ "message": "Số thứ tự giao dịch"
+ },
+ "transfers": {
+ "message": "Các giao dịch"
+ },
+ "troubleTokenBalances": {
+ "description": "Kèm theo một đường link (tại đây) để xem số dư token.",
+ "message": "Chúng tôi gặp sự cố khi tải số dư token của bạn. Xin vui lòng xem lại"
+ },
+ "typePassword": {
+ "message": "Điền mật khẩu của bạn"
+ },
+ "uiWelcome": {
+ "message": "Chào mừng bạn đến với giao diện mới (Beta)"
+ },
+ "uiWelcomeMessage": {
+ "message": "Bạn đang sử dụng giao diện mới của Metamask. Chúng tôi khuyến khích bạn thử nghiệm và khám phá các tính năng mới như gửi token, và nếu bạn có gặp phải vấn đề gì khó khăn, xin hãy liên hệ ngay để chúng tôi có thể giúp đỡ bạn."
+ },
+ "unavailable": {
+ "message": "Không có sẵn"
+ },
+ "unknown": {
+ "message": "Không xác định"
+ },
+ "unknownNetwork": {
+ "message": "Mạng lưới riêng không xác định"
+ },
+ "unknownNetworkId": {
+ "message": "ID không xác định"
+ },
+ "usaOnly": {
+ "description": "Việc sử dụng hệ thống giao dịch này chỉ giới hạn cho người dùng ở Mỹ",
+ "message": "Chỉ áp dụng cho người dùng ở Mỹ"
+ },
+ "usedByClients": {
+ "message": "Được sử dụng bởi nhiều khách hàng khác nhau"
+ },
+ "viewAccount": {
+ "message": "Xem tài khoản"
+ },
+ "warning": {
+ "message": "Cảnh báo"
+ },
+ "whatsThis": {
+ "message": "Đây là gì?"
+ },
+ "youSign": {
+ "message": "Bạn đang ký nhận"
+ },
+ "yourSigRequested": {
+ "message": "Chữ ký của bạn đang được yêu cầu"
+ }
+}
diff --git a/app/_locales/zh_CN/messages.json b/app/_locales/zh_CN/messages.json
index fc87384e5..203ab1923 100644
--- a/app/_locales/zh_CN/messages.json
+++ b/app/_locales/zh_CN/messages.json
@@ -1,10 +1,609 @@
{
+ "accept": {
+ "message": "接受"
+ },
+ "account": {
+ "message": "账户"
+ },
+ "accountDetails": {
+ "message": "账户详情"
+ },
+ "accountName": {
+ "message": "账户名称"
+ },
+ "address": {
+ "message": "地址"
+ },
+ "addToken": {
+ "message": "添加代币"
+ },
+ "amount": {
+ "message": "数量"
+ },
+ "amountPlusGas": {
+ "message": "数量 + Gas"
+ },
+ "appDescription": {
+ "message": "以太坊浏览器插件",
+ "description": "The description of the application"
+ },
"appName": {
"message": "MetaMask",
"description": "The name of the application"
},
- "appDescription": {
- "message": "以太坊身份管理",
- "description": "The description of the application"
+ "attemptingConnect": {
+ "message": "正在尝试连接区块链。"
+ },
+ "available": {
+ "message": "可用"
+ },
+ "back": {
+ "message": "返回"
+ },
+ "balance": {
+ "message": "余额:"
+ },
+ "balanceIsInsufficientGas": {
+ "message": "当前余额不足以支付 Gas"
+ },
+ "beta": {
+ "message": "BETA"
+ },
+ "betweenMinAndMax": {
+ "message": "必须大于等于 $1 并且小于等于 $2 。",
+ "description": "helper for inputting hex as decimal input"
+ },
+ "borrowDharma": {
+ "message": "Borrow With Dharma (Beta)"
+ },
+ "buy": {
+ "message": "购买"
+ },
+ "buyCoinbase": {
+ "message": "在 Coinbase 上购买"
+ },
+ "buyCoinbaseExplainer": {
+ "message": "Coinbase 是世界上最流行的买卖比特币,以太币和莱特币的交易所。"
+ },
+ "cancel": {
+ "message": "取消"
+ },
+ "clickCopy": {
+ "message": "点击复制"
+ },
+ "confirm": {
+ "message": "确认"
+ },
+ "confirmContract": {
+ "message": "确认合约"
+ },
+ "confirmPassword": {
+ "message": "确认密码"
+ },
+ "confirmTransaction": {
+ "message": "确认交易"
+ },
+ "continueToCoinbase": {
+ "message": "继续访问 Coinbase"
+ },
+ "contractDeployment": {
+ "message": "合约部署"
+ },
+ "conversionProgress": {
+ "message": "正在进行转换"
+ },
+ "copiedButton": {
+ "message": "已复制"
+ },
+ "copiedClipboard": {
+ "message": "已复制到剪贴板"
+ },
+ "copiedExclamation": {
+ "message": "已复制!"
+ },
+ "copy": {
+ "message": "复制"
+ },
+ "copyToClipboard": {
+ "message": "复制到剪贴板"
+ },
+ "copyButton": {
+ "message": " 复制 "
+ },
+ "copyPrivateKey": {
+ "message": "这是你的私钥(点击复制)"
+ },
+ "create": {
+ "message": "创建"
+ },
+ "createAccount": {
+ "message": "创建账户"
+ },
+ "createDen": {
+ "message": "创建"
+ },
+ "crypto": {
+ "message": "加密",
+ "description": "Exchange type (cryptocurrencies)"
+ },
+ "customGas": {
+ "message": "自定义 Gas"
+ },
+ "customize": {
+ "message": "自定义"
+ },
+ "customRPC": {
+ "message": "自定义 RPC"
+ },
+ "defaultNetwork": {
+ "message": "默认以太坊交易网络为主网。"
+ },
+ "denExplainer": {
+ "message": "你的 DEN 是存储在 MetaMask 中的已加密密码。"
+ },
+ "deposit": {
+ "message": "存入"
+ },
+ "depositBTC": {
+ "message": "将你的 BTC 存入到下面的地址:"
+ },
+ "depositCoin": {
+ "message": "将你的 $1 存入到下面的地址",
+ "description": "Tells the user what coin they have selected to deposit with shapeshift"
+ },
+ "depositEth": {
+ "message": "存入 Eth"
+ },
+ "depositEther": {
+ "message": "存入 Ether"
+ },
+ "depositFiat": {
+ "message": "从 Fiat 存入"
+ },
+ "depositFromAccount": {
+ "message": "从其他账户存入"
+ },
+ "depositShapeShift": {
+ "message": "从 ShapeShift 存入"
+ },
+ "depositShapeShiftExplainer": {
+ "message": "如果你拥有其他加密货币,你可以直接交易并存入 Ether 到你的 MetaMask 钱包。 不需要帐户。"
+ },
+ "details": {
+ "message": "详情"
+ },
+ "directDeposit": {
+ "message": "直接存入"
+ },
+ "directDepositEther": {
+ "message": "直接存入 Ether"
+ },
+ "directDepositEtherExplainer": {
+ "message": "如果你已经有了一些 Ether,通过直接转入是你的新钱包获取 Ether 的最快捷方式。"
+ },
+ "done": {
+ "message": "完成"
+ },
+ "edit": {
+ "message": "编辑"
+ },
+ "editAccountName": {
+ "message": "编辑账户名称"
+ },
+ "encryptNewDen": {
+ "message": "加密你的新 DEN"
+ },
+ "enterPassword": {
+ "message": "请输入密码"
+ },
+ "etherscanView": {
+ "message": "在 Etherscan 上查看账户"
+ },
+ "exchangeRate": {
+ "message": "兑换比率"
+ },
+ "exportPrivateKey": {
+ "message": "导出私钥"
+ },
+ "exportPrivateKeyWarning": {
+ "message": "导出私钥需要你自担风险"
+ },
+ "failed": {
+ "message": "失败"
+ },
+ "fiat": {
+ "message": "FIAT",
+ "description": "Exchange type"
+ },
+ "fileImportFail": {
+ "message": "文件导入失败? 点击这里!",
+ "description": "Helps user import their account from a JSON file"
+ },
+ "from": {
+ "message": "来自"
+ },
+ "fromShapeShift": {
+ "message": "来自 ShapeShift"
+ },
+ "gas": {
+ "message": "Gas",
+ "description": "Short indication of gas cost"
+ },
+ "gasFee": {
+ "message": "Gas 费用"
+ },
+ "gasLimit": {
+ "message": "Gas Limit"
+ },
+ "gasLimitCalculation": {
+ "message": "我们根据网络成功率计算建议的 Gas Limit。"
+ },
+ "gasLimitRequired": {
+ "message": "Gas Limit 必填"
+ },
+ "gasLimitTooLow": {
+ "message": "Gas Limit 至少要 21000"
+ },
+ "gasPrice": {
+ "message": "Gas Price (GWEI)"
+ },
+ "gasPriceCalculation": {
+ "message": "我们根据网络成功率计算建议的 Gas Price"
+ },
+ "gasPriceRequired": {
+ "message": "Gas Price 必填"
+ },
+ "getEther": {
+ "message": "获取 Ether"
+ },
+ "getEtherFromFaucet": {
+ "message": "从水管获取$1网络的 Ether",
+ "description": "Displays network name for Ether faucet"
+ },
+ "greaterThanMin": {
+ "message": "必须要大于等于 $1。",
+ "description": "helper for inputting hex as decimal input"
+ },
+ "here": {
+ "message": "这里",
+ "description": "as in -click here- for more information (goes with troubleTokenBalances)"
+ },
+ "hide": {
+ "message": "隐藏"
+ },
+ "hideToken": {
+ "message": "隐藏代币"
+ },
+ "hideTokenPrompt": {
+ "message": "隐藏代币?"
+ },
+ "howToDeposit": {
+ "message": "你想怎样转入 Ether?"
+ },
+ "import": {
+ "message": "导入",
+ "description": "Button to import an account from a selected file"
+ },
+ "importAccount": {
+ "message": "导入账户"
+ },
+ "importAnAccount": {
+ "message": "导入一个账户"
+ },
+ "importDen": {
+ "message": "导入存在的 DEN"
+ },
+ "imported": {
+ "message": "已导入私钥",
+ "description": "status showing that an account has been fully loaded into the keyring"
+ },
+ "infoHelp": {
+ "message": "信息 & 帮助"
+ },
+ "invalidAddress": {
+ "message": "错误的地址"
+ },
+ "invalidGasParams": {
+ "message": "错误的 Gas 参数"
+ },
+ "invalidInput": {
+ "message": "错误的输入。"
+ },
+ "invalidRequest": {
+ "message": "无效请求"
+ },
+ "jsonFile": {
+ "message": "JSON 文件",
+ "description": "format for importing an account"
+ },
+ "kovan": {
+ "message": "Kovan 测试网络"
+ },
+ "lessThanMax": {
+ "message": "必须小于等于 $1.",
+ "description": "helper for inputting hex as decimal input"
+ },
+ "limit": {
+ "message": "限定"
+ },
+ "loading": {
+ "message": "加载..."
+ },
+ "loadingTokens": {
+ "message": "加载代币..."
+ },
+ "localhost": {
+ "message": "本地主机 8545"
+ },
+ "logout": {
+ "message": "登出"
+ },
+ "loose": {
+ "message": "疏松"
+ },
+ "mainnet": {
+ "message": "以太坊主网络"
+ },
+ "message": {
+ "message": "消息"
+ },
+ "min": {
+ "message": "最小"
+ },
+ "myAccounts": {
+ "message": "我的账户"
+ },
+ "needEtherInWallet": {
+ "message": "使用 MetaMask 与 DAPP 交互,需要你的钱包里有 Ether。"
+ },
+ "needImportFile": {
+ "message": "必须选择导入一个文件。",
+ "description": "User is important an account and needs to add a file to continue"
+ },
+ "needImportPassword": {
+ "message": "必须为已选择的文件输入密码。",
+ "description": "Password and file needed to import an account"
+ },
+ "networks": {
+ "message": "网络"
+ },
+ "newAccount": {
+ "message": "新账户"
+ },
+ "newAccountNumberName": {
+ "message": "账户 $1",
+ "description": "Default name of next account to be created on create account screen"
+ },
+ "newContract": {
+ "message": "新合约"
+ },
+ "newPassword": {
+ "message": "新密码(至少 8 个字符)"
+ },
+ "newRecipient": {
+ "message": "新收款人"
+ },
+ "next": {
+ "message": "下一个"
+ },
+ "noAddressForName": {
+ "message": "此 ENS 名字还没有指定地址。"
+ },
+ "noDeposits": {
+ "message": "没有已收的存款"
+ },
+ "noTransactionHistory": {
+ "message": "没有交易历史。"
+ },
+ "noTransactions": {
+ "message": "没有交易"
+ },
+ "notStarted": {
+ "message": "未开始"
+ },
+ "oldUI": {
+ "message": "旧版界面"
+ },
+ "oldUIMessage": {
+ "message": "你已经切换到旧版界面。 你可以通过右上方下拉菜单中的选项切换回新的用户界面。"
+ },
+ "or": {
+ "message": "或",
+ "description": "choice between creating or importing a new account"
+ },
+ "passwordMismatch": {
+ "message": "密码不匹配",
+ "description": "in password creation process, the two new password fields did not match"
+ },
+ "passwordShort": {
+ "message": "密码不够长",
+ "description": "in password creation process, the password is not long enough to be secure"
+ },
+ "pastePrivateKey": {
+ "message": "请粘贴你的私钥:",
+ "description": "For importing an account from a private key"
+ },
+ "pasteSeed": {
+ "message": "请粘贴你的助记词!"
+ },
+ "pleaseReviewTransaction": {
+ "message": "请检查你的交易。"
+ },
+ "privateKey": {
+ "message": "私钥",
+ "description": "select this type of file to use to import an account"
+ },
+ "privateKeyWarning": {
+ "message": "注意:永远不要公开这个私钥。任何拥有你的私钥的人都可以窃取你帐户中的任何资产。"
+ },
+ "privateNetwork": {
+ "message": "私有网络"
+ },
+ "qrCode": {
+ "message": "显示二维码"
+ },
+ "readdToken": {
+ "message": "之后你还可以通过帐户选项菜单中的“添加代币”来添加此代币。"
+ },
+ "readMore": {
+ "message": "了解更多。"
+ },
+ "receive": {
+ "message": "接收"
+ },
+ "recipientAddress": {
+ "message": "接收地址"
+ },
+ "refundAddress": {
+ "message": "你的退款地址"
+ },
+ "rejected": {
+ "message": "拒绝"
+ },
+ "required": {
+ "message": "必填"
+ },
+ "retryWithMoreGas": {
+ "message": "使用更高的 Gas Price 重试"
+ },
+ "revert": {
+ "message": "还原"
+ },
+ "rinkeby": {
+ "message": "Rinkeby 测试网络"
+ },
+ "ropsten": {
+ "message": "Ropsten 测试网络"
+ },
+ "sampleAccountName": {
+ "message": "例如:我的账户",
+ "description": "Help user understand concept of adding a human-readable name to their account"
+ },
+ "save": {
+ "message": "保存"
+ },
+ "saveAsFile": {
+ "message": "保存文件",
+ "description": "Account export process"
+ },
+ "selectService": {
+ "message": "选择服务"
+ },
+ "send": {
+ "message": "发送"
+ },
+ "sendTokens": {
+ "message": "发送代币"
+ },
+ "sendTokensAnywhere": {
+ "message": "发送代币给拥有以太坊账户的任何人"
+ },
+ "settings": {
+ "message": "设置"
+ },
+ "shapeshiftBuy": {
+ "message": "使用 Shapeshift 购买"
+ },
+ "showPrivateKeys": {
+ "message": "显示私钥"
+ },
+ "showQRCode": {
+ "message": "显示二维码"
+ },
+ "sign": {
+ "message": "签名"
+ },
+ "signMessage": {
+ "message": "签署消息"
+ },
+ "signNotice": {
+ "message": "签署此消息可能会产生危险的副作用。 \n只从你完全信任的网站上签名。 这种危险的方法将在未来的版本中被移除。"
+ },
+ "sigRequest": {
+ "message": "请求签名"
+ },
+ "sigRequested": {
+ "message": "签名已请求"
+ },
+ "status": {
+ "message": "状态"
+ },
+ "submit": {
+ "message": "提交"
+ },
+ "takesTooLong": {
+ "message": "花费太长时间?"
+ },
+ "testFaucet": {
+ "message": "测试水管"
+ },
+ "to": {
+ "message": "至"
+ },
+ "toETHviaShapeShift": {
+ "message": "$1 ETH 通过 ShapeShift",
+ "description": "system will fill in deposit type in start of message"
+ },
+ "tokenBalance": {
+ "message": "代币余额:"
+ },
+ "total": {
+ "message": "总量"
+ },
+ "transactionMemo": {
+ "message": "交易备注 (可选)"
+ },
+ "transactionNumber": {
+ "message": "交易号"
+ },
+ "transfers": {
+ "message": "Transfers"
+ },
+ "troubleTokenBalances": {
+ "message": "无法加载代币余额。你可以再这里查看 ",
+ "description": "Followed by a link (here) to view token balances"
+ },
+ "typePassword": {
+ "message": "请输入密码"
+ },
+ "uiWelcome": {
+ "message": "欢迎使用新版界面 (Beta)"
+ },
+ "uiWelcomeMessage": {
+ "message": "你现在正在使用新的 Metamask 界面。 尝试发送代币等新功能,有任何问题请告知我们。"
+ },
+ "unavailable": {
+ "message": "不可用"
+ },
+ "unknown": {
+ "message": "未知"
+ },
+ "unknownNetwork": {
+ "message": "未知私有网络"
+ },
+ "unknownNetworkId": {
+ "message": "未知网络 ID"
+ },
+ "usaOnly": {
+ "message": "只限于美国",
+ "description": "Using this exchange is limited to people inside the USA"
+ },
+ "usedByClients": {
+ "message": "可用于各种不同的客户端"
+ },
+ "viewAccount": {
+ "message": "查看账户"
+ },
+ "warning": {
+ "message": "警告"
+ },
+ "whatsThis": {
+ "message": "这是什么?"
+ },
+ "yourSigRequested": {
+ "message": "正在请求你的签名"
+ },
+ "youSign": {
+ "message": "正在签名"
}
}
diff --git a/app/images/arrow-right.svg b/app/images/arrow-right.svg
new file mode 100644
index 000000000..ea5cd0609
--- /dev/null
+++ b/app/images/arrow-right.svg
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="25px" height="21px" viewBox="0 0 25 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <!-- Generator: Sketch 48.2 (47327) - http://www.bohemiancoding.com/sketch -->
+ <title>arrow-right</title>
+ <desc>Created with Sketch.</desc>
+ <defs></defs>
+ <g id="Confirm-Send-ETH---V3" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-500.000000, -235.000000)">
+ <g id="Group-4" transform="translate(312.000000, 99.000000)" fill="#5B5B5B">
+ <g id="Group-18" transform="translate(109.000000, 119.000000)">
+ <g id="arrow-right" transform="translate(78.000000, 17.000000)">
+ <path d="M13.2809946,0.467462271 L13.2809946,0.467462271 C12.6477116,1.09191648 12.6477116,2.10286154 13.2809946,2.72571868 L19.1052554,8.46878095 L2.61883998,8.46878095 C1.72479329,8.46878095 0.999190175,9.18426813 0.999190175,10.0658505 L0.999190175,10.0674476 C0.999190175,10.94903 1.72479329,11.6629201 2.61883998,11.6629201 L19.1052554,11.6629201 L13.2809946,17.4075795 C12.6477116,18.0304366 12.6477116,19.0413817 13.2809946,19.6658359 C13.9126581,20.288693 14.9378964,20.288693 15.5711795,19.6658359 L25.3052748,10.0658505 L15.5711795,0.467462271 C14.9378964,-0.155394872 13.9126581,-0.155394872 13.2809946,0.467462271" id="Fill-1"></path>
+ </g>
+ </g>
+ </g>
+ </g>
+</svg> \ No newline at end of file
diff --git a/app/images/deposit-eth.svg b/app/images/deposit-eth.svg
new file mode 100644
index 000000000..a2c69242e
--- /dev/null
+++ b/app/images/deposit-eth.svg
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="80px" height="78px" viewBox="0 0 80 78" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <!-- Generator: Sketch 49 (51002) - http://www.bohemiancoding.com/sketch -->
+ <title>deposit-eth</title>
+ <desc>Created with Sketch.</desc>
+ <defs>
+ <circle id="path-1" cx="34" cy="34" r="34"></circle>
+ <circle id="path-2" cx="17" cy="17" r="17"></circle>
+ </defs>
+ <g id="Buy-ETH" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+ <g id="deposit-Ether" transform="translate(-79.000000, -146.000000)">
+ <g id="Group-12" transform="translate(8.000000, 10.000000)">
+ <g id="Group-7" transform="translate(71.000000, 122.000000)">
+ <g id="deposit-eth" transform="translate(0.000000, 14.000000)">
+ <g id="Oval">
+ <use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-1"></use>
+ <circle stroke="#38393A" stroke-width="3" cx="34" cy="34" r="32.5"></circle>
+ </g>
+ <path d="M34.406509,44.95 L22,37.7 L34.406509,55 L46.8205983,37.7 L34.4039822,44.95 L34.406509,44.95 Z M34.593491,15 L22.186982,35.37 L34.593491,42.6275 L47,35.3775 L34.593491,15 Z" id="Shape" fill="#38393A"></path>
+ <g id="Group-6" transform="translate(46.000000, 44.000000)">
+ <g id="Oval-Copy">
+ <use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-2"></use>
+ <circle stroke="#38393A" stroke-width="3" cx="17" cy="17" r="15.5"></circle>
+ </g>
+ <path d="M19.0769231,15.4230769 L25.5,15.4230769 L25.5,19.5769231 L19.0769231,19.5769231 L19.0769231,26 L14.9230769,26 L14.9230769,19.5769231 L8.5,19.5769231 L8.5,15.4230769 L14.9230769,15.4230769 L14.9230769,9 L19.0769231,9 L19.0769231,15.4230769 Z" id="Combined-Shape" fill="#38393A"></path>
+ </g>
+ </g>
+ </g>
+ </g>
+ </g>
+ </g>
+</svg> \ No newline at end of file
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js
index 2ed7c87b6..7abbc60e7 100644
--- a/app/scripts/contentscript.js
+++ b/app/scripts/contentscript.js
@@ -96,7 +96,8 @@ function logStreamDisconnectWarning (remoteLabel, err) {
}
function shouldInjectWeb3 () {
- return doctypeCheck() && suffixCheck() && documentElementCheck()
+ return doctypeCheck() && suffixCheck()
+ && documentElementCheck() && !blacklistedDomainCheck()
}
function doctypeCheck () {
@@ -129,6 +130,20 @@ function documentElementCheck () {
return true
}
+function blacklistedDomainCheck () {
+ var blacklistedDomains = ['uscourts.gov', 'dropbox.com']
+ var currentUrl = window.location.href
+ var currentRegex
+ for (let i = 0; i < blacklistedDomains.length; i++) {
+ const blacklistedDomain = blacklistedDomains[i].replace('.', '\\.')
+ currentRegex = new RegExp(`(?:https?:\\/\\/)(?:(?!${blacklistedDomain}).)*$`)
+ if (!currentRegex.test(currentUrl)) {
+ return true
+ }
+ }
+ return false
+}
+
function redirectToPhishingWarning () {
console.log('MetaMask - redirecting to phishing warning')
window.location.href = 'https://metamask.io/phishing.html'
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js
index 9c2ca0dc8..3e3909361 100644
--- a/app/scripts/controllers/transactions.js
+++ b/app/scripts/controllers/transactions.js
@@ -6,7 +6,6 @@ const EthQuery = require('ethjs-query')
const TransactionStateManager = require('../lib/tx-state-manager')
const TxGasUtil = require('../lib/tx-gas-utils')
const PendingTransactionTracker = require('../lib/pending-tx-tracker')
-const createId = require('../lib/random-id')
const NonceTracker = require('../lib/nonce-tracker')
/*
@@ -92,8 +91,8 @@ module.exports = class TransactionController extends EventEmitter {
this.pendingTxTracker.on('tx:warning', (txMeta) => {
this.txStateManager.updateTx(txMeta, 'transactions/pending-tx-tracker#event: tx:warning')
})
+ this.pendingTxTracker.on('tx:confirmed', (txId) => this._markNonceDuplicatesDropped(txId))
this.pendingTxTracker.on('tx:failed', this.txStateManager.setTxStatusFailed.bind(this.txStateManager))
- this.pendingTxTracker.on('tx:confirmed', this.txStateManager.setTxStatusConfirmed.bind(this.txStateManager))
this.pendingTxTracker.on('tx:block-update', (txMeta, latestBlockNumber) => {
if (!txMeta.firstRetryBlockNumber) {
txMeta.firstRetryBlockNumber = latestBlockNumber
@@ -186,14 +185,7 @@ module.exports = class TransactionController extends EventEmitter {
// validate
await this.txGasUtil.validateTxParams(txParams)
// construct txMeta
- const txMeta = {
- id: createId(),
- time: (new Date()).getTime(),
- status: 'unapproved',
- metamaskNetworkId: this.getNetwork(),
- txParams: txParams,
- loadingDefaults: true,
- }
+ const txMeta = this.txStateManager.generateTxMeta({txParams})
this.addTx(txMeta)
this.emit('newUnapprovedTx', txMeta)
// add default tx params
@@ -215,7 +207,6 @@ module.exports = class TransactionController extends EventEmitter {
const txParams = txMeta.txParams
// ensure value
txMeta.gasPriceSpecified = Boolean(txParams.gasPrice)
- txMeta.nonceSpecified = Boolean(txParams.nonce)
let gasPrice = txParams.gasPrice
if (!gasPrice) {
gasPrice = this.getGasPrice ? this.getGasPrice() : await this.query.gasPrice()
@@ -226,11 +217,17 @@ module.exports = class TransactionController extends EventEmitter {
return await this.txGasUtil.analyzeGasUsage(txMeta)
}
- async retryTransaction (txId) {
- this.txStateManager.setTxStatusUnapproved(txId)
- const txMeta = this.txStateManager.getTx(txId)
- txMeta.lastGasPrice = txMeta.txParams.gasPrice
- this.txStateManager.updateTx(txMeta, 'retryTransaction: manual retry')
+ async retryTransaction (originalTxId) {
+ const originalTxMeta = this.txStateManager.getTx(originalTxId)
+ const lastGasPrice = originalTxMeta.txParams.gasPrice
+ const txMeta = this.txStateManager.generateTxMeta({
+ txParams: originalTxMeta.txParams,
+ lastGasPrice,
+ loadingDefaults: false,
+ })
+ this.addTx(txMeta)
+ this.emit('newUnapprovedTx', txMeta)
+ return txMeta
}
async updateTransaction (txMeta) {
@@ -253,11 +250,9 @@ module.exports = class TransactionController extends EventEmitter {
// wait for a nonce
nonceLock = await this.nonceTracker.getNonceLock(fromAddress)
// add nonce to txParams
- const nonce = txMeta.nonceSpecified ? txMeta.txParams.nonce : nonceLock.nextNonce
- if (nonce > nonceLock.nextNonce) {
- const message = `Specified nonce may not be larger than account's next valid nonce.`
- throw new Error(message)
- }
+ // if txMeta has lastGasPrice then it is a retry at same nonce with higher
+ // gas price transaction and their for the nonce should not be calculated
+ const nonce = txMeta.lastGasPrice ? txMeta.txParams.nonce : nonceLock.nextNonce
txMeta.txParams.nonce = ethUtil.addHexPrefix(nonce.toString(16))
// add nonce debugging information to txMeta
txMeta.nonceDetails = nonceLock.nonceDetails
@@ -314,6 +309,22 @@ module.exports = class TransactionController extends EventEmitter {
// PRIVATE METHODS
//
+ _markNonceDuplicatesDropped (txId) {
+ this.txStateManager.setTxStatusConfirmed(txId)
+ // get the confirmed transactions nonce and from address
+ const txMeta = this.txStateManager.getTx(txId)
+ const { nonce, from } = txMeta.txParams
+ const sameNonceTxs = this.txStateManager.getFilteredTxList({nonce, from})
+ if (!sameNonceTxs.length) return
+ // mark all same nonce transactions as dropped and give i a replacedBy hash
+ sameNonceTxs.forEach((otherTxMeta) => {
+ if (otherTxMeta.id === txId) return
+ otherTxMeta.replacedBy = txMeta.hash
+ this.txStateManager.updateTx(txMeta, 'transactions/pending-tx-tracker#event: tx:confirmed reference to confirmed txHash with same nonce')
+ this.txStateManager.setTxStatusDropped(otherTxMeta.id)
+ })
+ }
+
_updateMemstore () {
const unapprovedTxs = this.txStateManager.getUnapprovedTxList()
const selectedAddressTxList = this.txStateManager.getFilteredTxList({
diff --git a/app/scripts/lib/tx-state-manager.js b/app/scripts/lib/tx-state-manager.js
index 2eb006380..ad07c813f 100644
--- a/app/scripts/lib/tx-state-manager.js
+++ b/app/scripts/lib/tx-state-manager.js
@@ -1,9 +1,21 @@
const extend = require('xtend')
const EventEmitter = require('events')
const ObservableStore = require('obs-store')
+const createId = require('./random-id')
const ethUtil = require('ethereumjs-util')
const txStateHistoryHelper = require('./tx-state-history-helper')
+// STATUS METHODS
+ // statuses:
+ // - `'unapproved'` the user has not responded
+ // - `'rejected'` the user has responded no!
+ // - `'approved'` the user has approved the tx
+ // - `'signed'` the tx is signed
+ // - `'submitted'` the tx is sent to a server
+ // - `'confirmed'` the tx has been included in a block.
+ // - `'failed'` the tx failed for some reason, included on tx data.
+ // - `'dropped'` the tx nonce was already used
+
module.exports = class TransactionStateManager extends EventEmitter {
constructor ({ initState, txHistoryLimit, getNetwork }) {
super()
@@ -16,6 +28,16 @@ module.exports = class TransactionStateManager extends EventEmitter {
this.getNetwork = getNetwork
}
+ generateTxMeta (opts) {
+ return extend({
+ id: createId(),
+ time: (new Date()).getTime(),
+ status: 'unapproved',
+ metamaskNetworkId: this.getNetwork(),
+ loadingDefaults: true,
+ }, opts)
+ }
+
// Returns the number of txs for the current network.
getTxCount () {
return this.getTxList().length
@@ -164,16 +186,6 @@ module.exports = class TransactionStateManager extends EventEmitter {
})
}
- // STATUS METHODS
- // statuses:
- // - `'unapproved'` the user has not responded
- // - `'rejected'` the user has responded no!
- // - `'approved'` the user has approved the tx
- // - `'signed'` the tx is signed
- // - `'submitted'` the tx is sent to a server
- // - `'confirmed'` the tx has been included in a block.
- // - `'failed'` the tx failed for some reason, included on tx data.
-
// get::set status
// should return the status of the tx.
@@ -202,7 +214,11 @@ module.exports = class TransactionStateManager extends EventEmitter {
}
// should update the status of the tx to 'submitted'.
+ // and add a time stamp for when it was called
setTxStatusSubmitted (txId) {
+ const txMeta = this.getTx(txId)
+ txMeta.submittedTime = (new Date()).getTime()
+ this.updateTx(txMeta, 'txStateManager - add submitted time stamp')
this._setTxStatus(txId, 'submitted')
}
@@ -211,6 +227,12 @@ module.exports = class TransactionStateManager extends EventEmitter {
this._setTxStatus(txId, 'confirmed')
}
+ // should update the status dropped
+ setTxStatusDropped (txId) {
+ this._setTxStatus(txId, 'dropped')
+ }
+
+
setTxStatusFailed (txId, err) {
const txMeta = this.getTx(txId)
txMeta.err = {