Merge pull request #299 from Bitcoin-com/wallet/sprint/20
Wallet/sprint/20
This commit is contained in:
commit
1fa87fc9a0
183 changed files with 19834 additions and 6796 deletions
11
Gruntfile.js
11
Gruntfile.js
|
|
@ -136,6 +136,7 @@ module.exports = function(grunt) {
|
||||||
},
|
},
|
||||||
angular: {
|
angular: {
|
||||||
src: [
|
src: [
|
||||||
|
'src/shim/shim.js',
|
||||||
'bower_components/qrcode-generator/js/qrcode.js',
|
'bower_components/qrcode-generator/js/qrcode.js',
|
||||||
'bower_components/qrcode-generator/js/qrcode_UTF8.js',
|
'bower_components/qrcode-generator/js/qrcode_UTF8.js',
|
||||||
'bower_components/moment/min/moment-with-locales.js',
|
'bower_components/moment/min/moment-with-locales.js',
|
||||||
|
|
@ -160,10 +161,17 @@ module.exports = function(grunt) {
|
||||||
],
|
],
|
||||||
dest: 'www/lib/bitcoin-cash-js.js'
|
dest: 'www/lib/bitcoin-cash-js.js'
|
||||||
},
|
},
|
||||||
|
bitanalytics: {
|
||||||
|
src: [
|
||||||
|
'bitanalytics/bitanalytics.js'
|
||||||
|
],
|
||||||
|
dest: 'www/lib/bitanalytics.js'
|
||||||
|
},
|
||||||
js: {
|
js: {
|
||||||
src: [
|
src: [
|
||||||
'src/js/app.js',
|
'src/js/app.js',
|
||||||
'src/js/routes.js',
|
'src/js/routes.js',
|
||||||
|
'src/js/decorators/*.js',
|
||||||
|
|
||||||
'src/js/directives/*.js',
|
'src/js/directives/*.js',
|
||||||
'!src/js/directives/*.spec.js',
|
'!src/js/directives/*.spec.js',
|
||||||
|
|
@ -200,7 +208,8 @@ module.exports = function(grunt) {
|
||||||
files: {
|
files: {
|
||||||
'www/js/app.js': ['www/js/app.js'],
|
'www/js/app.js': ['www/js/app.js'],
|
||||||
'www/lib/angular-components.js': ['www/lib/angular-components.js'],
|
'www/lib/angular-components.js': ['www/lib/angular-components.js'],
|
||||||
'www/lib/bitcoin-cash-js.js': ['www/lib/bitcoin-cash-js.js']
|
'www/lib/bitcoin-cash-js.js': ['www/lib/bitcoin-cash-js.js'],
|
||||||
|
'www/lib/bitanalytics.js': ['www/lib/bitanalytics.js']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,9 @@
|
||||||
"windowsAppId": "804636ee-b017-4cad-8719-e58ac97ffa5c",
|
"windowsAppId": "804636ee-b017-4cad-8719-e58ac97ffa5c",
|
||||||
"pushSenderId": "1036948132229",
|
"pushSenderId": "1036948132229",
|
||||||
"description": "A Secure Bitcoin Wallet",
|
"description": "A Secure Bitcoin Wallet",
|
||||||
"version": "4.12.0",
|
"version": "5.0.0",
|
||||||
"fullVersion": "4.12-rc1",
|
"fullVersion": "5.0-rc1",
|
||||||
"androidVersion": "412000",
|
"androidVersion": "500000",
|
||||||
"_extraCSS": "",
|
"_extraCSS": "",
|
||||||
"_enabledExtensions": {
|
"_enabledExtensions": {
|
||||||
"coinbase": false,
|
"coinbase": false,
|
||||||
|
|
|
||||||
|
|
@ -268,5 +268,33 @@ div.onboarding-topic {
|
||||||
display: block;
|
display: block;
|
||||||
float: left;
|
float: left;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bitpay-banner {
|
||||||
|
background: #1A3A8B;
|
||||||
|
padding: 10px;
|
||||||
|
box-shadow: 0px 5px 10px 0px #cccccc;
|
||||||
|
height: 5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bitpay-logo {
|
||||||
|
display: block;
|
||||||
|
max-height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
height: 4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.egifter-banner {
|
||||||
|
background: #1A3A8B;
|
||||||
|
padding: 10px;
|
||||||
|
box-shadow: 0px 5px 10px 0px #cccccc;
|
||||||
|
height: 5em;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.egifter-logo {
|
||||||
|
max-height: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
height: 4em;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,9 +72,9 @@
|
||||||
<plugin name="cordova-plugin-queries-schemes" spec="~0.1.5" />
|
<plugin name="cordova-plugin-queries-schemes" spec="~0.1.5" />
|
||||||
<plugin name="cordova-plugin-firebase" spec="https://github.com/arnesson/cordova-plugin-firebase.git" />
|
<plugin name="cordova-plugin-firebase" spec="https://github.com/arnesson/cordova-plugin-firebase.git" />
|
||||||
<plugin name="cordova-plugin-wkwebview-inputfocusfix" spec="https://github.com/onderceylan/cordova-plugin-wkwebview-inputfocusfix.git" />
|
<plugin name="cordova-plugin-wkwebview-inputfocusfix" spec="https://github.com/onderceylan/cordova-plugin-wkwebview-inputfocusfix.git" />
|
||||||
<plugin name="cordova-plugin-nativeaudio" spec="^3.0.9" />
|
<plugin name="cordova-plugin-media-fork" spec="~5.0.3">
|
||||||
<!-- Changes in error descriptions may break the use of cordova-plugin-secure-storage -->
|
<variable name="KEEP_AVAUDIOSESSION_ALWAYS_ACTIVE" value="NO" />
|
||||||
<plugin name="cordova-plugin-secure-storage" spec="2.6.8" />
|
</plugin>
|
||||||
<!-- Supported Platforms -->
|
<!-- Supported Platforms -->
|
||||||
<engine name="ios" spec="~4.5.3" />
|
<engine name="ios" spec="~4.5.3" />
|
||||||
<engine name="android" spec="~6.3.0" />
|
<engine name="android" spec="~6.3.0" />
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<link rel="stylesheet" type="text/css" href="css/chartist.css">
|
<link rel="stylesheet" type="text/css" href="css/chartist.css">
|
||||||
<link rel="stylesheet" type="text/css" href="css/bitcoin.com.css">
|
<link rel="stylesheet" type="text/css" href="css/bitcoin.com.css">
|
||||||
<link rel="stylesheet" type="text/css" href="css/icomoon.css">
|
<link rel="stylesheet" type="text/css" href="css/icomoon.css">
|
||||||
<title>*USERVISIBLENAME* - *PURPOSELINE*</title>
|
<title>*USERVISIBLENAME*</title>
|
||||||
<link rel="shortcut icon" href="img/app/favicon.ico">
|
<link rel="shortcut icon" href="img/app/favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
@ -31,6 +31,7 @@
|
||||||
<script src="lib/ionic.bundle.min.js"></script>
|
<script src="lib/ionic.bundle.min.js"></script>
|
||||||
<script src="lib/angular-components.js"></script>
|
<script src="lib/angular-components.js"></script>
|
||||||
<script src="lib/bitcoin-cash-js.js"></script>
|
<script src="lib/bitcoin-cash-js.js"></script>
|
||||||
|
<script src="lib/bitanalytics.js"></script>
|
||||||
|
|
||||||
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
|
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
|
||||||
<script src="js/moment.min.js"></script>
|
<script src="js/moment.min.js"></script>
|
||||||
|
|
|
||||||
|
|
@ -119,10 +119,10 @@
|
||||||
"run:android": "cordova run android --device",
|
"run:android": "cordova run android --device",
|
||||||
"run:android-release": "cordova run android --device --release",
|
"run:android-release": "cordova run android --device --release",
|
||||||
"log:android": "adb logcat | grep chromium",
|
"log:android": "adb logcat | grep chromium",
|
||||||
"sign:android": "rm -f platforms/android/build/outputs/apk/android-release-signed-aligned.apk; jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../bitcoin-com-release-key.jks -signedjar platforms/android/build/outputs/apk/android-release-signed.apk platforms/android/build/outputs/apk/android-release-unsigned.apk bitcoin-com && $ANDROID_HOME/build-tools/27.0.1/zipalign -v 4 platforms/android/build/outputs/apk/android-release-signed.apk platforms/android/build/outputs/apk/android-release-signed-aligned.apk",
|
"sign:android": "rm -f platforms/android/build/outputs/apk/android-release-signed-aligned.apk; jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../bitcoin-com-release-key.jks -signedjar platforms/android/build/outputs/apk/android-release-signed.apk platforms/android/build/outputs/apk/android-release-unsigned.apk bitcoin-com && zipalign -v 4 platforms/android/build/outputs/apk/android-release-signed.apk platforms/android/build/outputs/apk/android-release-signed-aligned.apk",
|
||||||
"apply:copay": "npm i fs-extra && cd app-template && node apply.js copay && npm i && cordova prepare",
|
"apply:copay": "npm i fs-extra && cd app-template && node apply.js copay && npm i && cordova prepare",
|
||||||
"apply:bitpay": "npm i fs-extra && cd app-template && node apply.js bitpay && npm i && cordova prepare",
|
"apply:bitpay": "npm i fs-extra && cd app-template && node apply.js bitpay && npm i && cordova prepare",
|
||||||
"apply:bitcoincom": "npm i fs-extra && cd app-template && node apply.js bitcoincom && npm i && cordova prepare",
|
"apply:bitcoincom": "npm i fs-extra && cd app-template && node apply.js bitcoincom && npm i && cordova prepare && cd ../ && ./fix-asn1.sh",
|
||||||
"test": "karma start test/karma.conf.js --single-run",
|
"test": "karma start test/karma.conf.js --single-run",
|
||||||
"clean": "trash platforms && trash plugins && cordova prepare",
|
"clean": "trash platforms && trash plugins && cordova prepare",
|
||||||
"unstage-package": "git reset package.json",
|
"unstage-package": "git reset package.json",
|
||||||
|
|
|
||||||
7063
bitanalytics/bitanalytics.js
Normal file
7063
bitanalytics/bitanalytics.js
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -24,6 +24,6 @@
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"angular": "1.5.3",
|
"angular": "1.5.3",
|
||||||
"ionic": "1b7414faba"
|
"ionic": "eefba1331b"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
11
fix-asn1.sh
Executable file
11
fix-asn1.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
firstLine=`awk 'NR < 2 {print}' node_modules/asn1.js-rfc5280/index.js`
|
||||||
|
|
||||||
|
if [ "$firstLine" = "try {" ]; then
|
||||||
|
echo "var asn1 = require('asn1.js');" > node_modules/asn1.js-rfc5280/index.new.js
|
||||||
|
awk 'NR > 6 {print}' node_modules/asn1.js-rfc5280/index.js >> node_modules/asn1.js-rfc5280/index.new.js
|
||||||
|
rm node_modules/asn1.js-rfc5280/index.js
|
||||||
|
mv node_modules/asn1.js-rfc5280/index.new.js node_modules/asn1.js-rfc5280/index.js
|
||||||
|
echo "node_modules/asn1.js-rfc5280/index.js fixed"
|
||||||
|
fi
|
||||||
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Catalan\n"
|
"Language-Team: Catalan\n"
|
||||||
"Language: ca\n"
|
"Language: ca\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:43+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:43\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "Compte"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "Número de compte"
|
msgstr "Número de compte"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "Transaccions instantànies amb comissions baixes"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "Comptes"
|
msgstr "Comptes"
|
||||||
|
|
@ -433,6 +437,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr "Compra & ven bitcoins"
|
msgstr "Compra & ven bitcoins"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr "Compra bitcoins"
|
msgstr "Compra bitcoins"
|
||||||
|
|
||||||
|
|
@ -615,10 +620,14 @@ msgstr "S'està connectant a Glidera..."
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr "Connexió reiniciada per un parell"
|
msgstr "Connexió reiniciada per un parell"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "Contactes"
|
msgstr "Contactes"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "Adreces utilitzades freqüentment desades"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "Continua"
|
msgstr "Continua"
|
||||||
|
|
@ -819,7 +828,7 @@ msgstr "Crea una cartera compartida"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr "Crea una cartera bitcoin"
|
msgstr "Crea una cartera bitcoin"
|
||||||
|
|
||||||
|
|
@ -2529,6 +2538,14 @@ msgstr "Cerca transaccions"
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr "Cerca o introdueix l'adreça bitcoin"
|
msgstr "Cerca o introdueix l'adreça bitcoin"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr "Porta-retalls"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr "Teniu el porta-retalls buit"
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr "Cerca transaccions"
|
msgstr "Cerca transaccions"
|
||||||
|
|
@ -2587,9 +2604,70 @@ msgid "Send by email"
|
||||||
msgstr "Envia per correu electrònic"
|
msgstr "Envia per correu electrònic"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr "Envia des de"
|
msgstr "Envia des de"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr "Enviat a"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr "Enganxa des del porta-retalls"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr "Enganxa l'adreça"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr "Transferència de cartera a cartera"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr "Escaneja el codi QR"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Envia bitcoins més ràpid!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Envia bitcoins més ràpid!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr "Deseu adreces utilitzades freqüentment i envieu-los bitcoins d'un sol toc"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr "Afegiu el primer contacte"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr "La vostra cartera bitcoin és buida"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr "Per començar, compreu Bitcoin Cash (BCH) o Bitcoin Core (BTC), o compartiu la vostra adreça."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr "Podeu rebre bitcoins des de qualsevol cartera o servei."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr "Per començar, heu de crear una cartera bitcoin i obtenir uns quants bitcoins."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr "Compra Bitcoins ara"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr "Mostra la meva adreça"
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr "Envia import màxim"
|
msgstr "Envia import màxim"
|
||||||
|
|
@ -3632,3 +3710,51 @@ msgstr "{{updatingTxHistoryProgress}} transaccions descarregades"
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr "{{wallet.m}}-de-{{wallet.n}}"
|
msgstr "{{wallet.m}}-de-{{wallet.n}}"
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr "Shapeshift"
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr "Comunitat"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr "Reddit de Bitcoin Cash"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr "Twitter de Bitcoin.com"
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr "Explora Bitcoin.com"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr "Jocs de Bitcoin Cash"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr "Notícies"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr "Xarxa minera"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr "Eines"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr "Gràfiques de preus del bitcoin"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr "Bitcoin Cash gratis"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr "Les vostres carteres bitcoin ja estan a punt!"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Czech\n"
|
"Language-Team: Czech\n"
|
||||||
"Language: cs\n"
|
"Language: cs\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:46+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:43\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "Účet"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "Číslo účtu"
|
msgstr "Číslo účtu"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "Okamžité transakce s nízkou platbou"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "Účty"
|
msgstr "Účty"
|
||||||
|
|
@ -433,6 +437,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr "Koupit & prodat Bitcoin"
|
msgstr "Koupit & prodat Bitcoin"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr "Koupit Bitcoin"
|
msgstr "Koupit Bitcoin"
|
||||||
|
|
||||||
|
|
@ -615,10 +620,14 @@ msgstr "Připojování ke Glidera..."
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr "Připojení přerušeno druhou stranou"
|
msgstr "Připojení přerušeno druhou stranou"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "Kontakty"
|
msgstr "Kontakty"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "Uložené, často používané adresy"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "Pokračovat"
|
msgstr "Pokračovat"
|
||||||
|
|
@ -819,7 +828,7 @@ msgstr "Vytvořit sdílenou peněženku"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr "Vytvořit Bitcoin peněženku"
|
msgstr "Vytvořit Bitcoin peněženku"
|
||||||
|
|
||||||
|
|
@ -2529,6 +2538,14 @@ msgstr "Vyhledávání transakcí"
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr "Vyhledat nebo zadat Bitcoin adresu"
|
msgstr "Vyhledat nebo zadat Bitcoin adresu"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr "Schránka"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr "Vaše schránka je prázdná"
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr "Vyhledávání transakcí"
|
msgstr "Vyhledávání transakcí"
|
||||||
|
|
@ -2587,9 +2604,70 @@ msgid "Send by email"
|
||||||
msgstr "Poslat e-mailem"
|
msgstr "Poslat e-mailem"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr "Odeslat z"
|
msgstr "Odeslat z"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr "Odeslat"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr "Vložit ze schránky"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr "Vložit adresu"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr "Převod mezi peněženkami"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr "Skenovat QR kód"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Odesílejte Bitcoin rychleji!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Odesílejte Bitcoin rychleji!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr "Uložte si často používané adresy a posílejte jim Bitcoin jedním kliknutím"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr "Přidat váš první kontakt"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr "Vaše Bitcoin peněženka je prázdná"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr "Chcete-li začít, nakupte Bitcoin Cash (BCH) nebo Bitcoin Core (BTC), nebo sdílejte svou adresu."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr "Můžete přijímat Bitcoin z jakékoliv peněženky nebo služby."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr "Chcete-li začít, budete muset vytvořit Bitcoin peněženku a Bitcoin získat."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr "Koupit Bitcoin"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr "Zobrazit mou adresu"
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr "Odeslat maximální částku"
|
msgstr "Odeslat maximální částku"
|
||||||
|
|
@ -3026,7 +3104,7 @@ msgstr "Chcete-li začít, nakupte Bitcoin nebo sdílejte svou adresu. Můžete
|
||||||
|
|
||||||
#: www/views/tab-send.html:33
|
#: www/views/tab-send.html:33
|
||||||
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
msgstr "Chcete-li začít, budete muset vytvořit Bitcoin peněženku a Bitcoin získat."
|
msgstr "Chcete-li začít, budete potřebovat vytvořit Bitcoin peněženku a získat Bitcoin."
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:73
|
#: src/js/services/bitpayAccountService.js:73
|
||||||
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
||||||
|
|
@ -3632,3 +3710,51 @@ msgstr "{{updatingTxHistoryProgress}} transakcí staženo"
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr "{{wallet.m}}-z-{{wallet.n}}"
|
msgstr "{{wallet.m}}-z-{{wallet.n}}"
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr "Shapeshift"
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr "Komunita"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr "Bitcoin Cash Reddit"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr "Bitcoin.com Twitter"
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr "Prohlédnout Bitcoin.com"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr "Bitcoin Cash hry"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr "Novinky"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr "Těžební pool"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr "Nástroje"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr "Grafy cen Bitcoinu"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr "Bitcoin Cash zdarma"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr "Vaše Bitcoin peněženka je připravena!"
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Spanish\n"
|
"Language-Team: Spanish\n"
|
||||||
"Language: es\n"
|
"Language: es\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:57+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:44\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "Cuenta"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "Número de cuenta"
|
msgstr "Número de cuenta"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "Transacciones instantáneas con comisiones bajas"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "Cuentas"
|
msgstr "Cuentas"
|
||||||
|
|
@ -433,6 +437,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr "Comprar & Vender Bitcoin"
|
msgstr "Comprar & Vender Bitcoin"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr "Comprar Bitcoin"
|
msgstr "Comprar Bitcoin"
|
||||||
|
|
||||||
|
|
@ -615,10 +620,14 @@ msgstr "Conectando a Glidera..."
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr "Conexión re establecida"
|
msgstr "Conexión re establecida"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "Contactos"
|
msgstr "Contactos"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "Direcciones frecuentes guardadas"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "Continuar"
|
msgstr "Continuar"
|
||||||
|
|
@ -819,7 +828,7 @@ msgstr "Crear billetera compartida"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr "Crear billetera"
|
msgstr "Crear billetera"
|
||||||
|
|
||||||
|
|
@ -2529,6 +2538,14 @@ msgstr "Buscar transacciones"
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr "Buscar o introducir dirección bitcoin"
|
msgstr "Buscar o introducir dirección bitcoin"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr "Portapapeles"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr "Portapapeles vacío"
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr "Buscar transacciones"
|
msgstr "Buscar transacciones"
|
||||||
|
|
@ -2587,9 +2604,70 @@ msgid "Send by email"
|
||||||
msgstr "Enviar por correo electrónico"
|
msgstr "Enviar por correo electrónico"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr "Enviar desde"
|
msgstr "Enviar desde"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr "Enviar a"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr "Pegar portapapeles"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr "Pegar dirección"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr "Billetera a billetera"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr "Escanear código QR"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "¡Envía Bitcoin más rápido!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "¡Envía Bitcoin más rápido!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr "Guardar las direcciones que usas frecuentemente y envía Bitcoin en un click"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr "Añadie tu primer contacto"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr "Tu billetera Bitcoin está vacía"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr "Para empezar, compra Bitcoin Cash (BCH) o Bitcoin Core (BTC), o comparte tu dirección."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr "Puedes recibir bitcoin desde cualquier billetera o servicio."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr "Para empezar, necesitarás crear una billetera y obtener bitcoins."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr "Comprar Bitcoin ahora"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr "Ver mi dirección"
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr "Enviar la máxima cantidad"
|
msgstr "Enviar la máxima cantidad"
|
||||||
|
|
@ -3026,7 +3104,7 @@ msgstr "Para empezar, compra bitcoin o comparte tu dirección. Puedes recibir bi
|
||||||
|
|
||||||
#: www/views/tab-send.html:33
|
#: www/views/tab-send.html:33
|
||||||
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
msgstr "Para empezar, necesitarás crear una billetera y obtener bitcoins."
|
msgstr "Para empezar, necesitarás crear una billetera y obtener Bitcoins."
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:73
|
#: src/js/services/bitpayAccountService.js:73
|
||||||
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
||||||
|
|
@ -3632,3 +3710,51 @@ msgstr "{{updatingTxHistoryProgress}} transacciones descargadas"
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr "{{wallet.m}}-de-{{wallet.n}}"
|
msgstr "{{wallet.m}}-de-{{wallet.n}}"
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr "Shapeshift - Cambia BTC a BCH"
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr "Comunidad"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr "Reddit de Bitcoin Cash"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr "Twitter de Bitcoin.com"
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr "Explora Bitcoin.com"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr "Juegos de Bitcoin Cash"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr "Noticias"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr "Minería en la nube"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr "Herramientas"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr "Gráfica de precios Bitcoin"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr "Bitcoin Cash gratis"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr "¡Tus billeteras Bitcoin están listas!"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Persian\n"
|
"Language-Team: Persian\n"
|
||||||
"Language: fa\n"
|
"Language: fa\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:53+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:44\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "حساب"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "شماره حساب"
|
msgstr "شماره حساب"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "معاملات فوری با پرداخت کم"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "حساب ها"
|
msgstr "حساب ها"
|
||||||
|
|
@ -433,6 +437,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr "خرید & فروش بیتکوین"
|
msgstr "خرید & فروش بیتکوین"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr "خرید بیتکوین"
|
msgstr "خرید بیتکوین"
|
||||||
|
|
||||||
|
|
@ -615,10 +620,14 @@ msgstr "در حال اتصال به Glidera..."
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr "ریست اتصال توسط همکار"
|
msgstr "ریست اتصال توسط همکار"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "تماسها"
|
msgstr "تماسها"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "آدرس های ذخیره شده که اغلب مورد استفاده قرار گرفته اند"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "ادامه"
|
msgstr "ادامه"
|
||||||
|
|
@ -819,7 +828,7 @@ msgstr "ایجاد کیف پول مشترک"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr "ایجاد کیف پول بیتکوین"
|
msgstr "ایجاد کیف پول بیتکوین"
|
||||||
|
|
||||||
|
|
@ -2529,6 +2538,14 @@ msgstr "جستجوی تراکنش ها"
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr "جستجو و یا وارد کردن آدرس بیتکوین"
|
msgstr "جستجو و یا وارد کردن آدرس بیتکوین"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr "کلیپ بورد"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr "کلیپ بورد شما خالی است"
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr "جستجوی تراکنش ها"
|
msgstr "جستجوی تراکنش ها"
|
||||||
|
|
@ -2587,9 +2604,70 @@ msgid "Send by email"
|
||||||
msgstr "ارسال توسط ایمیل"
|
msgstr "ارسال توسط ایمیل"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr "ارسال از"
|
msgstr "ارسال از"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr "ارسال به"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr "جای گذاری کلیپ برد"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr "جای گذاری آدرس"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr "انتقال پول از کیف پول به کیف پول"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr "اسکن کد QR"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "ارسال سریع تر بیت کوین!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "ارسال سریع تر بیت کوین!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr "ذخیره آدرس های اغلب استفاده شده و ارسال بیت کوین به آنها تنها با یک ضربه"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr "اولین تماس خود اضافه کنید"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr "کیف پول بیت کوین شما خالی است"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr "برای شروع، Bitcoin Cash (BCH) یا Bitcoin Core (BTC) بخرید و یا آدرس خود را به اشتراک بگذارید."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr "شما می توانید از هر کیف پول و یا خدمات بیت کوین دریافت کنید."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr "برای شروع، شما نیاز دارید که یک کیف پول ایجاد کنید و مقداری بیتکوین تهیه کنید."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr "خرید بیت کوین همین الان"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr "نمایش آدرس من"
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr "ارسال حداکثر مقدار"
|
msgstr "ارسال حداکثر مقدار"
|
||||||
|
|
@ -3026,7 +3104,7 @@ msgstr "برای شروع، بیتکوین بخرید و یا آدرس خود ر
|
||||||
|
|
||||||
#: www/views/tab-send.html:33
|
#: www/views/tab-send.html:33
|
||||||
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
msgstr "برای شروع، شما نیاز دارید که یک کیف پول ایجاد کنید و مقداری بیتکوین تهیه کنید."
|
msgstr "برای شروع، شما نیاز دارید که یک کیف پول بیت کوین ایجاد کرده و مقداری بیت کوین تهیه کنید."
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:73
|
#: src/js/services/bitpayAccountService.js:73
|
||||||
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
||||||
|
|
@ -3632,3 +3710,51 @@ msgstr "{{updatingTxHistoryProgress}} تراکنش دانلود شد"
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr "{{wallet.m}} از {{wallet.n}}"
|
msgstr "{{wallet.m}} از {{wallet.n}}"
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr "Shapeshift"
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr "جامعه"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr "Bitcoin Cash Reddit"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr "توییتر Bitcoin.com"
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr "کاوش Bitcoin.com"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr "Bitcoin Cash Games"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr "اخبار"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr "استخر استخراج"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr "ابزارها"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr "نمودارهای قیمت بیت کوین"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr "رایگان Bitcoin Cash"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr "کیف پول بیت کوین شما آماده است!"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: French\n"
|
"Language-Team: French\n"
|
||||||
"Language: fr\n"
|
"Language: fr\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:48+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:44\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "Compte"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "Numéro de compte"
|
msgstr "Numéro de compte"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "Instant transactions with low fees"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "Comptes"
|
msgstr "Comptes"
|
||||||
|
|
@ -433,6 +437,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr "Acheter & vendre des bitcoins"
|
msgstr "Acheter & vendre des bitcoins"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr "Acheter des bitcoins"
|
msgstr "Acheter des bitcoins"
|
||||||
|
|
||||||
|
|
@ -615,10 +620,14 @@ msgstr "Connexion à Glidera..."
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr "Connexion réinitialisée par un pair"
|
msgstr "Connexion réinitialisée par un pair"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "Contacts"
|
msgstr "Contacts"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "Adresses fréquemment utilisées enregistrées"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "Continuer"
|
msgstr "Continuer"
|
||||||
|
|
@ -819,7 +828,7 @@ msgstr "Créer un portefeuille partagé"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr "Créer un portefeuille bitcoin"
|
msgstr "Créer un portefeuille bitcoin"
|
||||||
|
|
||||||
|
|
@ -989,7 +998,7 @@ msgstr "Autoriser les notifications"
|
||||||
|
|
||||||
#: www/views/preferencesNotifications.html:33
|
#: www/views/preferencesNotifications.html:33
|
||||||
msgid "Enable sound"
|
msgid "Enable sound"
|
||||||
msgstr "Activer le son"
|
msgstr "Malayu"
|
||||||
|
|
||||||
#: www/views/tab-scan.html:18
|
#: www/views/tab-scan.html:18
|
||||||
msgid "Enable the camera to get started."
|
msgid "Enable the camera to get started."
|
||||||
|
|
@ -2529,6 +2538,14 @@ msgstr "Rechercher des transactions"
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr "Recherchez ou saisissez une adresse bitcoin"
|
msgstr "Recherchez ou saisissez une adresse bitcoin"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr "Presse-papiers"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr "Votre presse-papiers est vide"
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr "Rechercher des transactions"
|
msgstr "Rechercher des transactions"
|
||||||
|
|
@ -2587,9 +2604,70 @@ msgid "Send by email"
|
||||||
msgstr "Envoyer par e-mail"
|
msgstr "Envoyer par e-mail"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr "Envoyer à partir de"
|
msgstr "Envoyer à partir de"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr "Envoyer à"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr "Coller le contenu du presse-papiers"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr "Coller l'adresse"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr "Transfert de portefeuille à portefeuille"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr "Numérisez le code QR"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Envoyez des Bitcoin plus vite !"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Envoyez des Bitcoin plus vite !"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr "Enregistrez les adresses fréquemment utilisées et envoyez-leurs des Bitcoins en un seul geste"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr "Ajoutez votre premier contact"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr "Votre portefeuille Bitcoin est vide"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr "Pour commencer, achetez des Bitcoins Cash (BCH) ou des Bitcoins Core (BTC), ou partagez votre adresse."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr "Vous pouvez recevoir des Bitcoins de n'importe quel portefeuille ou service."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr "Pour commencer, vous aurez besoin de créer un portefeuille bitcoin et d'obtenir quelques bitcoins."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr "Acheter des Bitcoins maintenant"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr "Afficher mon adresse"
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr "Envoyer le montant maximal"
|
msgstr "Envoyer le montant maximal"
|
||||||
|
|
@ -3026,7 +3104,7 @@ msgstr "Pour commencer, achetez des bitcoins ou partagez votre adresse. Vous pou
|
||||||
|
|
||||||
#: www/views/tab-send.html:33
|
#: www/views/tab-send.html:33
|
||||||
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
msgstr "Pour commencer, vous aurez besoin de créer un portefeuille bitcoin et d'obtenir quelques bitcoins."
|
msgstr "Pour commencer, vous aurez besoin de créer un portefeuille Bitcoin et d'obtenir quelques bitcoins."
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:73
|
#: src/js/services/bitpayAccountService.js:73
|
||||||
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
||||||
|
|
@ -3632,3 +3710,51 @@ msgstr "{{updatingTxHistoryProgress}} transactions téléchargées"
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr "{{wallet.m}}-sur-{{wallet.n}}"
|
msgstr "{{wallet.m}}-sur-{{wallet.n}}"
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr "Shapeshift"
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr "Communauté"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr "Reddit Bitcoin Cash"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr "Twitter Bitcoin.com"
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr "Explorez Bitcoin.com"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr "Jeux Bitcoin Cash"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr "Nouvelles"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr "Coopératives de mineurs"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr "Outils"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr "Graphiques du prix du Bitcoin"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr "Bitcoin Cash Gratuit"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr "Vos portefeuilles bitcoin sont prêts !"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Italian\n"
|
"Language-Team: Italian\n"
|
||||||
"Language: it\n"
|
"Language: it\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:50+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:44\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "Conto"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "Numero del Conto"
|
msgstr "Numero del Conto"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "Transazioni istantanee con commissioni basse"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "Account"
|
msgstr "Account"
|
||||||
|
|
@ -433,6 +437,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr "Comprare & Vendere Bitcoin"
|
msgstr "Comprare & Vendere Bitcoin"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr "Acquista Bitcoin"
|
msgstr "Acquista Bitcoin"
|
||||||
|
|
||||||
|
|
@ -615,10 +620,14 @@ msgstr "Connessione a Glidera..."
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr "Connessione ripristinata dall'utente"
|
msgstr "Connessione ripristinata dall'utente"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "Contatti"
|
msgstr "Contatti"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "Indirizzi più utilizzati salvati"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "Continua"
|
msgstr "Continua"
|
||||||
|
|
@ -819,7 +828,7 @@ msgstr "Creare portafoglio condiviso"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr "Creare portafoglio bitcoin"
|
msgstr "Creare portafoglio bitcoin"
|
||||||
|
|
||||||
|
|
@ -2529,6 +2538,14 @@ msgstr "Cerca Transazioni"
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr "Cerca o inserisci indirizzo bitcoin"
|
msgstr "Cerca o inserisci indirizzo bitcoin"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr "Appunti"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr "Gli appunti sono vuoti"
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr "Ricerca transazioni"
|
msgstr "Ricerca transazioni"
|
||||||
|
|
@ -2587,9 +2604,70 @@ msgid "Send by email"
|
||||||
msgstr "Invia via email"
|
msgstr "Invia via email"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr "Inviata Da"
|
msgstr "Inviata Da"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr "Invia a"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr "Incolla appunti"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr "Incolla indirizzo"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr "Trasferimento da portafoglio a portafoglio"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr "Scansiona codice QR"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Invia Bitcoin più velocemente!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Invia Bitcoin più velocemente!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr "Salva gli indirizzi più utilizzati e invia Bitcoin con un solo tocco"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr "Aggiungi il tuo primo contatto"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr "Il tuo portafoglio Bitcoin è vuoto"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr "Per iniziare, acquista Bitcoin Cash (BCH) o Bitcoin Core (BTC), oppure condividi il tuo indirizzo."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr "Puoi ricevere Bitcoin da qualsiasi portafoglio o servizio."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr "Per iniziare, è necessario che tu crei un portafoglio bitcoin e ottenerne qualcuno."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr "Acquista subito Bitcoin"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr "Visualizza il mio indirizzo"
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr "Inviare l'importo massimo"
|
msgstr "Inviare l'importo massimo"
|
||||||
|
|
@ -3026,7 +3104,7 @@ msgstr "Per iniziare, acquista bitcoin o condividi il tuo indirizzo. È possibil
|
||||||
|
|
||||||
#: www/views/tab-send.html:33
|
#: www/views/tab-send.html:33
|
||||||
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
msgstr "Per iniziare, è necessario che tu crei un portafoglio bitcoin e ottenerne qualcuno."
|
msgstr "Per iniziare, devi creare un portafoglio bitcoin e ottenere qualche bitcoin."
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:73
|
#: src/js/services/bitpayAccountService.js:73
|
||||||
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
||||||
|
|
@ -3632,3 +3710,51 @@ msgstr "{{updatingTxHistoryProgress}} transazioni scaricate"
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr "{{wallet.m}}-di-{{wallet.n}}"
|
msgstr "{{wallet.m}}-di-{{wallet.n}}"
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr "Shapeshift"
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr "Community"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr "Bitcoin Cash su Reddit"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr "Bitcoin.com su Twitter"
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr "Esplora Bitcoin.com"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr "Giochi Bitcoin Cash"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr "News"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr "Mining Pool"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr "Strumenti"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr "Tabella prezzi Bitcoin"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr "Bitcoin Cash gratis"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr "I tuoi portafogli Bitcoin sono pronti!"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Japanese\n"
|
"Language-Team: Japanese\n"
|
||||||
"Language: ja\n"
|
"Language: ja\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:51+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:44\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "ポケット"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "ポケット番号"
|
msgstr "ポケット番号"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "僅かな手数料で即時決済"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "アカウント一覧"
|
msgstr "アカウント一覧"
|
||||||
|
|
@ -402,7 +406,7 @@ msgstr "ビットコインは世界で<br>最も安全な仮想通貨。"
|
||||||
|
|
||||||
#: www/views/preferencesFee.html:11
|
#: www/views/preferencesFee.html:11
|
||||||
msgid "Bitcoin transactions include a fee collected by miners on the network."
|
msgid "Bitcoin transactions include a fee collected by miners on the network."
|
||||||
msgstr "ビットコインの取引はネットワークの安全を守る「採掘者」と呼ばれる者達に送る手数料が含まれます。"
|
msgstr "ビットコインの取引はネットワークの安全を守る「採掘者」と呼ばれる方達に送る手数料が含まれます。"
|
||||||
|
|
||||||
#: www/views/buyAmazon.html:108
|
#: www/views/buyAmazon.html:108
|
||||||
msgid "Bought {{amountUnitStr}}"
|
msgid "Bought {{amountUnitStr}}"
|
||||||
|
|
@ -435,6 +439,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr "ビットコインの購入&売却"
|
msgstr "ビットコインの購入&売却"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr "ビットコインを購入"
|
msgstr "ビットコインを購入"
|
||||||
|
|
||||||
|
|
@ -617,10 +622,14 @@ msgstr "Glidera に接続中…"
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr "接続がピアによってリセットされました"
|
msgstr "接続がピアによってリセットされました"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "連絡先"
|
msgstr "連絡先"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "よく使う保存済みのアドレス"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "続ける"
|
msgstr "続ける"
|
||||||
|
|
@ -631,7 +640,7 @@ msgstr "翻訳に協力"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:130
|
#: src/js/controllers/confirm.js:130
|
||||||
msgid "Copay only supports Bitcoin Cash using new version numbers addresses"
|
msgid "Copay only supports Bitcoin Cash using new version numbers addresses"
|
||||||
msgstr "Copay のビットコインキャッシュはビットコインと完全に異なる別通貨なので、アドレスの頭文字が異なります。"
|
msgstr "のビットコインキャッシュはビットコインと完全に異なる別通貨なので、アドレスの頭文字が異なります。"
|
||||||
|
|
||||||
#: src/js/services/bwcError.js:62
|
#: src/js/services/bwcError.js:62
|
||||||
msgid "Copayer already in this wallet"
|
msgid "Copayer already in this wallet"
|
||||||
|
|
@ -821,7 +830,7 @@ msgstr "共有ウォレットを作成"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr "ビットコインウォレット作成"
|
msgstr "ビットコインウォレット作成"
|
||||||
|
|
||||||
|
|
@ -991,7 +1000,7 @@ msgstr "プッシュ通知を有効化"
|
||||||
|
|
||||||
#: www/views/preferencesNotifications.html:33
|
#: www/views/preferencesNotifications.html:33
|
||||||
msgid "Enable sound"
|
msgid "Enable sound"
|
||||||
msgstr "音を有効にする"
|
msgstr "サウンドを有効にする"
|
||||||
|
|
||||||
#: www/views/tab-scan.html:18
|
#: www/views/tab-scan.html:18
|
||||||
msgid "Enable the camera to get started."
|
msgid "Enable the camera to get started."
|
||||||
|
|
@ -1344,7 +1353,7 @@ msgstr "始めよう"
|
||||||
|
|
||||||
#: www/views/addressbook.html:20
|
#: www/views/addressbook.html:20
|
||||||
msgid "Get started by adding your first one."
|
msgid "Get started by adding your first one."
|
||||||
msgstr "初めての連絡先を追加しましょう。"
|
msgstr "連絡先を追加しましょう。"
|
||||||
|
|
||||||
#: src/js/services/onGoingProcess.js:23
|
#: src/js/services/onGoingProcess.js:23
|
||||||
msgid "Getting fee levels..."
|
msgid "Getting fee levels..."
|
||||||
|
|
@ -1869,7 +1878,7 @@ msgstr "バックアップは非常に重要です!"
|
||||||
|
|
||||||
#: www/views/addressbook.html:19
|
#: www/views/addressbook.html:19
|
||||||
msgid "No contacts yet"
|
msgid "No contacts yet"
|
||||||
msgstr "連絡先が無い"
|
msgstr "連絡先はありません"
|
||||||
|
|
||||||
#: www/views/preferencesLogs.html:16
|
#: www/views/preferencesLogs.html:16
|
||||||
msgid "No entries for this log level"
|
msgid "No entries for this log level"
|
||||||
|
|
@ -2002,7 +2011,7 @@ msgstr "今一度周りの環境をよく見てみましょう。隠しカメラ
|
||||||
#: src/js/services/popupService.js:72
|
#: src/js/services/popupService.js:72
|
||||||
#: www/views/modals/chooseFeeLevel.html:6
|
#: www/views/modals/chooseFeeLevel.html:6
|
||||||
msgid "OK"
|
msgid "OK"
|
||||||
msgstr "わかりました"
|
msgstr "OK"
|
||||||
|
|
||||||
#: www/views/modals/tx-status.html:12
|
#: www/views/modals/tx-status.html:12
|
||||||
#: www/views/modals/tx-status.html:24
|
#: www/views/modals/tx-status.html:24
|
||||||
|
|
@ -2225,7 +2234,7 @@ msgstr "正しい順序で各単語をタップしてください。"
|
||||||
|
|
||||||
#: src/js/services/bwcError.js:101
|
#: src/js/services/bwcError.js:101
|
||||||
msgid "Please upgrade Copay to perform this action"
|
msgid "Please upgrade Copay to perform this action"
|
||||||
msgstr "この操作を実行するにはCopayを最新バージョンに更新してください"
|
msgstr "この操作を実行するにはを最新バージョンに更新してください"
|
||||||
|
|
||||||
#: www/views/walletDetails.html:142
|
#: www/views/walletDetails.html:142
|
||||||
#: www/views/walletDetails.html:62
|
#: www/views/walletDetails.html:62
|
||||||
|
|
@ -2531,6 +2540,14 @@ msgstr "取引を検索"
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr "連絡先検索かビットコインアドレスを指定"
|
msgstr "連絡先検索かビットコインアドレスを指定"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr "クリップボード"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr "クリップボードは空です"
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr "取引を検索"
|
msgstr "取引を検索"
|
||||||
|
|
@ -2589,9 +2606,70 @@ msgid "Send by email"
|
||||||
msgstr "メールで送信"
|
msgstr "メールで送信"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr "ここから送金"
|
msgstr "ここから送金"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr "送金先:"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr "クリップボードからペースト"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr "アドレスをペースト"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr "ウォレット間送金"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr "QRコードを読み取る"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "ビットコイン送金をより高速に!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "ビットコイン送金をより高速に!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr "よく使うアドレスを保存すればワンタップでビットコインを送金できます"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr "最初の連絡先を追加"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr "ビットコインウォレットが空です"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr "始めるには、Bitcoin Cash (BCH) または Bitcoin Core (BTC) を購入するか、あなたのアドレスを共有してください。"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr "どのウォレットやサービスからでもビットコインを受け取ることができます。"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr "はじめに、ビットコインウォレットを作成し、ビットコインを入手する必要があります。"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr "今すぐビットコインを購入"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr "自分のアドレスを表示"
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr "全残高を送金"
|
msgstr "全残高を送金"
|
||||||
|
|
@ -3446,7 +3524,7 @@ msgstr "送金発生時のメール通知はどのメールアドレスで受け
|
||||||
|
|
||||||
#: www/views/addresses.html:19
|
#: www/views/addresses.html:19
|
||||||
msgid "Why?"
|
msgid "Why?"
|
||||||
msgstr "なぜ?"
|
msgstr "なぜですか?"
|
||||||
|
|
||||||
#: www/views/feedback/rateApp.html:10
|
#: www/views/feedback/rateApp.html:10
|
||||||
msgid "Would you be willing to rate {{appName}} in the app store?"
|
msgid "Would you be willing to rate {{appName}} in the app store?"
|
||||||
|
|
@ -3638,3 +3716,51 @@ msgstr "{{updatingTxHistoryProgress}} 個の取引ダウンロード済み"
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr "{{wallet.m}} の{{wallet.n}}"
|
msgstr "{{wallet.m}} の{{wallet.n}}"
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr "Shapeshift"
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr "コミュニティ"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr "Bitcoin Cash Reddit"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr "Bitcoin.com Twitter"
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr "Bitcoin.com を参照"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr "Bitcoin Cash ゲーム"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr "ニュース"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr "マイニングプール"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr "ツール"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr "ビットコインの価格チャート"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr "無料 Bitcoin Cash"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr "ビットコインウォレットが完成しました!"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Korean\n"
|
"Language-Team: Korean\n"
|
||||||
"Language: ko\n"
|
"Language: ko\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:52+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:44\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "계정"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "계정 번호"
|
msgstr "계정 번호"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "낮은 수수료로 빠른 송금을"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "계정들"
|
msgstr "계정들"
|
||||||
|
|
@ -433,6 +437,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr "비트코인 구매 & 판매"
|
msgstr "비트코인 구매 & 판매"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr "비트코인 구매"
|
msgstr "비트코인 구매"
|
||||||
|
|
||||||
|
|
@ -615,10 +620,14 @@ msgstr "Glidera에 연결 중..."
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr "연결 실패"
|
msgstr "연결 실패"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "연락처"
|
msgstr "연락처"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "자주 사용하는 저장된 주소"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "계속하기"
|
msgstr "계속하기"
|
||||||
|
|
@ -819,7 +828,7 @@ msgstr "공유 지갑 만들기"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr "비트코인 지갑 만들기"
|
msgstr "비트코인 지갑 만들기"
|
||||||
|
|
||||||
|
|
@ -2529,6 +2538,14 @@ msgstr "거래 기록 검색하기"
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr "비트코인 주소를 찾거나 작성"
|
msgstr "비트코인 주소를 찾거나 작성"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr "클립보드"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr "클립보드가 비어 있습니다"
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr "거래 기록 검색"
|
msgstr "거래 기록 검색"
|
||||||
|
|
@ -2587,9 +2604,70 @@ msgid "Send by email"
|
||||||
msgstr "이메일로 보내기"
|
msgstr "이메일로 보내기"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr "출처"
|
msgstr "출처"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr "보내기"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr "클립보드 붙여넣기"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr "주소 붙여넣기"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr "지갑 간 전송"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr "QR 코드 스캔"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "비트코인 속성 전송!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "비트코인 속성 전송!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr "자주 사용하는 주소를 저장하고 한 번의 탭으로 저장된 주소에 비트코인 전송"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr "첫 번째 연락처 추가"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr "비트코인 지갑이 비어 있습니다"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr "시작하려면 비트코인 캐시(BCH) 또는 비트코인 코어(BTC)를 구매하거나 주소를 공유합니다."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr "지갑 또는 서비스에서 비트코인을 받을 수 있습니다."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr "시작하시기 위해선 비트코인 지갑을 생성하시거나 비트코인을 구매하세요."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr "지금 비트코인 구매"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr "내 주소 보기"
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr "최대 수량 보내기"
|
msgstr "최대 수량 보내기"
|
||||||
|
|
@ -3026,7 +3104,7 @@ msgstr "시작하시려면 비트코인을 구매하시거나 주소를 등록
|
||||||
|
|
||||||
#: www/views/tab-send.html:33
|
#: www/views/tab-send.html:33
|
||||||
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
msgstr "시작하시기 위해선 비트코인 지갑을 생성하시거나 비트코인을 구매하세요."
|
msgstr "시작하려면 비트코인 지갑을 만들고 비트코인을 구매하십시오."
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:73
|
#: src/js/services/bitpayAccountService.js:73
|
||||||
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
||||||
|
|
@ -3632,3 +3710,51 @@ msgstr "{{updatingTxHistoryProgress}} 거래 내역 다운로드 완료"
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr "{{wallet.n}}의 {{wallet.m}}"
|
msgstr "{{wallet.n}}의 {{wallet.m}}"
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr "Shapeshift"
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr "커뮤니티"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr "BCH Reddit"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr "Bitcoin.com 트위터"
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr "Bitcoin.com 탐색"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr "BCH 게임"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr "소식"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr "채굴 풀"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr "도구"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr "비트코인 가격 차트"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr "무료 BCH"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr "비트코인 지갑이 완료되었습니다!"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Dutch\n"
|
"Language-Team: Dutch\n"
|
||||||
"Language: nl\n"
|
"Language: nl\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:48+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:44\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "Account"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "Account Nummer"
|
msgstr "Account Nummer"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "Directe transacties tegen lage kosten"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "Accounts"
|
msgstr "Accounts"
|
||||||
|
|
@ -433,6 +437,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr "Koop & Verkoop Bitcoin"
|
msgstr "Koop & Verkoop Bitcoin"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr "Bitcoin kopen"
|
msgstr "Bitcoin kopen"
|
||||||
|
|
||||||
|
|
@ -615,10 +620,14 @@ msgstr "Verbinding maken met Glidera..."
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr "Verbinding is gereset door peer"
|
msgstr "Verbinding is gereset door peer"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "Contactpersonen"
|
msgstr "Contactpersonen"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "Opgeslagen veelgebruikte adressen"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "Ga verder"
|
msgstr "Ga verder"
|
||||||
|
|
@ -819,7 +828,7 @@ msgstr "Gedeelde Portemonnee Aanmaken"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr "Bitcoin portemonnee aanmaken"
|
msgstr "Bitcoin portemonnee aanmaken"
|
||||||
|
|
||||||
|
|
@ -2529,6 +2538,14 @@ msgstr "Doorzoek Transacties"
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr "Zoeken of bitcoin adres invullen"
|
msgstr "Zoeken of bitcoin adres invullen"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr "Klembord"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr "Uw klembord is leeg"
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr "Doorzoek transacties"
|
msgstr "Doorzoek transacties"
|
||||||
|
|
@ -2587,9 +2604,70 @@ msgid "Send by email"
|
||||||
msgstr "Verstuur via email"
|
msgstr "Verstuur via email"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr "Verzenden vanuit"
|
msgstr "Verzenden vanuit"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr "Verzenden naar"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr "Klembord plakken"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr "Adres plakken"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr "Portemonnee overdracht"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr "Scan QR-code"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Stuur Bitcoin sneller!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Stuur Bitcoin sneller!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr "Sla veelgebruikte adressen op en verstuur ze Bitcoin met een druk op de knop"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr "Uw eerste contact toevoegen"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr "Uw Bitcoin portemonnee is leeg"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr "Om aan de slag te gaan, koop Bitcoin Cash (BCH) of Bitcoin Core (BTC), of deel uw adres."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr "U kunt Bitcoin ontvangen van elke portemonnee of dienst."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr "Om aan de slag te gaan zult u een bitcoin portemonnee moeten aanmaken en wat bitcoin moeten verkrijgen."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr "Bitcoin kopen"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr "Toon mijn adres"
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr "Verzend maximale hoeveelheid"
|
msgstr "Verzend maximale hoeveelheid"
|
||||||
|
|
@ -3026,7 +3104,7 @@ msgstr "Om aan de slag te gaan, koop bitcoin of deel uw adres. U kunt bitcoin on
|
||||||
|
|
||||||
#: www/views/tab-send.html:33
|
#: www/views/tab-send.html:33
|
||||||
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
msgstr "Om aan de slag te gaan zult u een bitcoin portemonnee moeten aanmaken en wat bitcoin moeten verkrijgen."
|
msgstr "Om aan de slag te gaan, zult u een Bitcoin-portemonnee aan moeten maken en wat Bitcoin moeten verkrijgen."
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:73
|
#: src/js/services/bitpayAccountService.js:73
|
||||||
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
||||||
|
|
@ -3632,3 +3710,51 @@ msgstr "{{updatingTxHistoryProgress}} transacties gedownload"
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr "{{wallet.m}}-van-{{wallet.n}}"
|
msgstr "{{wallet.m}}-van-{{wallet.n}}"
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr "Shapeshift"
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr "Community"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr "Bitcoin Cash Reddit"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr "Bitcoin.com Twitter"
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr "Bitcoin.com verkennen"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr "Bitcoin Cash spellen"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr "Nieuws"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr "Mining Pool"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr "Hulpmiddelen"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr "Bitcoin prijs grafieken"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr "Gratis Bitcoin Cash"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr "Uw bitcoin portemonnee is gereed!"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Polish\n"
|
"Language-Team: Polish\n"
|
||||||
"Language: pl\n"
|
"Language: pl\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:54+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:44\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "Konto"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "Numer konta"
|
msgstr "Numer konta"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "Natychmiastowe transakcje z niskimi prowizjami"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "Konta"
|
msgstr "Konta"
|
||||||
|
|
@ -359,12 +363,12 @@ msgstr "Adres bitcoin"
|
||||||
|
|
||||||
#: www/views/cashScan.html:4
|
#: www/views/cashScan.html:4
|
||||||
msgid "Bitcoin Cash (BCH) Balances"
|
msgid "Bitcoin Cash (BCH) Balances"
|
||||||
msgstr ""
|
msgstr "Salda Bitcoin Cash (BCH)"
|
||||||
|
|
||||||
#: www/views/preferencesCash.html:3
|
#: www/views/preferencesCash.html:3
|
||||||
#: www/views/tab-settings.html:47
|
#: www/views/tab-settings.html:47
|
||||||
msgid "Bitcoin Cash Support"
|
msgid "Bitcoin Cash Support"
|
||||||
msgstr ""
|
msgstr "Wsparcie Bitcoin Cash"
|
||||||
|
|
||||||
#: www/views/tab-home.html:98
|
#: www/views/tab-home.html:98
|
||||||
#: www/views/tab-settings.html:115
|
#: www/views/tab-settings.html:115
|
||||||
|
|
@ -380,7 +384,7 @@ msgstr "Polityka prowizji sieci bitcoin"
|
||||||
#: www/views/tab-home.html:83
|
#: www/views/tab-home.html:83
|
||||||
#: www/views/tab-settings.html:107
|
#: www/views/tab-settings.html:107
|
||||||
msgid "Bitcoin Core Wallets"
|
msgid "Bitcoin Core Wallets"
|
||||||
msgstr ""
|
msgstr "Portfele Bitcoin Core"
|
||||||
|
|
||||||
#: src/js/services/incomingData.js:151
|
#: src/js/services/incomingData.js:151
|
||||||
msgid "Bitcoin cash Payment"
|
msgid "Bitcoin cash Payment"
|
||||||
|
|
@ -433,6 +437,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr "Kup & sprzedaj bitcoiny"
|
msgstr "Kup & sprzedaj bitcoiny"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr "Kup bitcoiny"
|
msgstr "Kup bitcoiny"
|
||||||
|
|
||||||
|
|
@ -615,10 +620,14 @@ msgstr "Łączenie z Gildera..."
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr "Połączenie zostało zresetowane"
|
msgstr "Połączenie zostało zresetowane"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "Kontakty"
|
msgstr "Kontakty"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "Zapisane często używane adresy"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "Dalej"
|
msgstr "Dalej"
|
||||||
|
|
@ -819,7 +828,7 @@ msgstr "Utwórz współdzielony portfel"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr "Utwórz portfel bitcoin"
|
msgstr "Utwórz portfel bitcoin"
|
||||||
|
|
||||||
|
|
@ -973,7 +982,7 @@ msgstr "Puste adresy osiągnęły limit. Nowe adresy nie mogą być generowane."
|
||||||
|
|
||||||
#: www/views/preferencesCash.html:17
|
#: www/views/preferencesCash.html:17
|
||||||
msgid "Enable Bitcoin Cash wallet creation and operation within the App."
|
msgid "Enable Bitcoin Cash wallet creation and operation within the App."
|
||||||
msgstr ""
|
msgstr "Włącz tworzenie i obsługę portfela Bitcoin Cash w aplikacji."
|
||||||
|
|
||||||
#: www/views/tab-scan.html:19
|
#: www/views/tab-scan.html:19
|
||||||
msgid "Enable camera access in your device settings to get started."
|
msgid "Enable camera access in your device settings to get started."
|
||||||
|
|
@ -989,7 +998,7 @@ msgstr "Włącz powiadomienia"
|
||||||
|
|
||||||
#: www/views/preferencesNotifications.html:33
|
#: www/views/preferencesNotifications.html:33
|
||||||
msgid "Enable sound"
|
msgid "Enable sound"
|
||||||
msgstr ""
|
msgstr "Włącz dźwięk"
|
||||||
|
|
||||||
#: www/views/tab-scan.html:18
|
#: www/views/tab-scan.html:18
|
||||||
msgid "Enable the camera to get started."
|
msgid "Enable the camera to get started."
|
||||||
|
|
@ -997,7 +1006,7 @@ msgstr "Włącz kamerę aby rozpocząć."
|
||||||
|
|
||||||
#: www/views/tab-settings.html:49
|
#: www/views/tab-settings.html:49
|
||||||
msgid "Enabled"
|
msgid "Enabled"
|
||||||
msgstr ""
|
msgstr "Włączono"
|
||||||
|
|
||||||
#: src/js/services/walletService.js:1047
|
#: src/js/services/walletService.js:1047
|
||||||
#: src/js/services/walletService.js:1062
|
#: src/js/services/walletService.js:1062
|
||||||
|
|
@ -1582,7 +1591,7 @@ msgstr "Nieprawidłowy adres"
|
||||||
#: src/js/controllers/confirm.js:306
|
#: src/js/controllers/confirm.js:306
|
||||||
#: src/js/services/bwcError.js:44
|
#: src/js/services/bwcError.js:44
|
||||||
msgid "Insufficient confirmed funds"
|
msgid "Insufficient confirmed funds"
|
||||||
msgstr ""
|
msgstr "Niewystarczające potwierdzone środki"
|
||||||
|
|
||||||
#: src/js/controllers/topup.js:165
|
#: src/js/controllers/topup.js:165
|
||||||
#: src/js/controllers/topup.js:177
|
#: src/js/controllers/topup.js:177
|
||||||
|
|
@ -1927,7 +1936,7 @@ msgstr "Nie BIP44 portfel"
|
||||||
|
|
||||||
#: www/views/cashScan.html:46
|
#: www/views/cashScan.html:46
|
||||||
msgid "Non eligible BTC wallets"
|
msgid "Non eligible BTC wallets"
|
||||||
msgstr ""
|
msgstr "Niewspierane portfele BTC"
|
||||||
|
|
||||||
#: src/js/services/feeService.js:12
|
#: src/js/services/feeService.js:12
|
||||||
msgid "Normal"
|
msgid "Normal"
|
||||||
|
|
@ -2000,7 +2009,7 @@ msgstr "Nadszedł czas, aby sprawdzić swoje otoczenie. Czy jesteś w pobliżu o
|
||||||
#: src/js/services/popupService.js:72
|
#: src/js/services/popupService.js:72
|
||||||
#: www/views/modals/chooseFeeLevel.html:6
|
#: www/views/modals/chooseFeeLevel.html:6
|
||||||
msgid "OK"
|
msgid "OK"
|
||||||
msgstr ""
|
msgstr "OK"
|
||||||
|
|
||||||
#: www/views/modals/tx-status.html:12
|
#: www/views/modals/tx-status.html:12
|
||||||
#: www/views/modals/tx-status.html:24
|
#: www/views/modals/tx-status.html:24
|
||||||
|
|
@ -2019,7 +2028,7 @@ msgstr "O nie!"
|
||||||
|
|
||||||
#: src/js/controllers/buyMercadoLibre.js:306
|
#: src/js/controllers/buyMercadoLibre.js:306
|
||||||
msgid "Ok"
|
msgid "Ok"
|
||||||
msgstr ""
|
msgstr "Ok"
|
||||||
|
|
||||||
#: www/views/tab-home.html:39
|
#: www/views/tab-home.html:39
|
||||||
msgid "On this screen you can see all your wallets, accounts, and assets."
|
msgid "On this screen you can see all your wallets, accounts, and assets."
|
||||||
|
|
@ -2049,7 +2058,7 @@ msgstr "Otwórz projekt GitHub"
|
||||||
#: src/js/controllers/bitpayCard.js:123
|
#: src/js/controllers/bitpayCard.js:123
|
||||||
#: src/js/controllers/tx-details.js:192
|
#: src/js/controllers/tx-details.js:192
|
||||||
msgid "Open Explorer"
|
msgid "Open Explorer"
|
||||||
msgstr ""
|
msgstr "Otwórz Explorer"
|
||||||
|
|
||||||
#: www/views/tab-scan.html:22
|
#: www/views/tab-scan.html:22
|
||||||
msgid "Open Settings"
|
msgid "Open Settings"
|
||||||
|
|
@ -2065,7 +2074,7 @@ msgstr "Otwórz stronę internetową"
|
||||||
|
|
||||||
#: src/js/controllers/preferencesCash.js:32
|
#: src/js/controllers/preferencesCash.js:32
|
||||||
msgid "Open bitcoincash.org?"
|
msgid "Open bitcoincash.org?"
|
||||||
msgstr ""
|
msgstr "Otworzyć bitcoincash.org?"
|
||||||
|
|
||||||
#: src/js/controllers/cashScan.js:18
|
#: src/js/controllers/cashScan.js:18
|
||||||
msgid "Open the recovery tool."
|
msgid "Open the recovery tool."
|
||||||
|
|
@ -2236,7 +2245,7 @@ msgstr "Proszę wybrać plik kopii zapasowej"
|
||||||
|
|
||||||
#: www/views/bitpayCard.html:81
|
#: www/views/bitpayCard.html:81
|
||||||
msgid "Pre-Auth Holds"
|
msgid "Pre-Auth Holds"
|
||||||
msgstr ""
|
msgstr "Wstrzymanie przedautoryzacyjne"
|
||||||
|
|
||||||
#: www/views/tab-settings.html:40
|
#: www/views/tab-settings.html:40
|
||||||
msgid "Preferences"
|
msgid "Preferences"
|
||||||
|
|
@ -2349,7 +2358,7 @@ msgstr "Otrzymaj"
|
||||||
|
|
||||||
#: www/views/customAmount.html:44
|
#: www/views/customAmount.html:44
|
||||||
msgid "Receive in"
|
msgid "Receive in"
|
||||||
msgstr ""
|
msgstr "Otrzymaj w"
|
||||||
|
|
||||||
#: www/views/includes/walletHistory.html:24
|
#: www/views/includes/walletHistory.html:24
|
||||||
#: www/views/tx-details.html:18
|
#: www/views/tx-details.html:18
|
||||||
|
|
@ -2507,7 +2516,7 @@ msgstr "Proszę zeskanować linie papilarne"
|
||||||
|
|
||||||
#: www/views/preferencesCash.html:23
|
#: www/views/preferencesCash.html:23
|
||||||
msgid "Scan your wallets for Bitcoin Cash"
|
msgid "Scan your wallets for Bitcoin Cash"
|
||||||
msgstr ""
|
msgstr "Skanuj portfele w poszukiwaniu Bitcoin Cash"
|
||||||
|
|
||||||
#: src/js/services/onGoingProcess.js:30
|
#: src/js/services/onGoingProcess.js:30
|
||||||
msgid "Scanning Wallet funds..."
|
msgid "Scanning Wallet funds..."
|
||||||
|
|
@ -2529,6 +2538,14 @@ msgstr "Szukaj transakcji"
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr "Wyszukaj lub wpisz adres bitcoin"
|
msgstr "Wyszukaj lub wpisz adres bitcoin"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr "Schowek"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr "Schowek jest pusty"
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr "Szukaj transakcji"
|
msgstr "Szukaj transakcji"
|
||||||
|
|
@ -2587,9 +2604,70 @@ msgid "Send by email"
|
||||||
msgstr "Wyślij przez e-mail"
|
msgstr "Wyślij przez e-mail"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr "Wyślij z"
|
msgstr "Wyślij z"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr "Wyślij do"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr "Wklej ze schowka"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr "Wklej adres"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr "Transfer z portfela do portfela"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr "Zeskanuj kod QR"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Przesyłaj Bitcoiny szybciej!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Przesyłaj Bitcoiny szybciej!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr "Zapisz często używane adresy i wyślij im Bitcoin za pomocą jednego dotknięcia"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr "Dodaj swój pierwszy kontakt"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr "Twój portfel jest pusty"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr "Aby zacząć, kup Bitcoin Cash (BCH) lub Bitcoin Core (BTC), albo udostępnij swój adres."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr "Bitcoiny można odbierać z dowolnego portfela lub usługi."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr "Aby rozpocząć należy utworzyć portfel i dostać trochę bitcoinów."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr "Kup Bitcoin teraz"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr "Pokaż mój adres"
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr "Wyślij całą kwotę"
|
msgstr "Wyślij całą kwotę"
|
||||||
|
|
@ -2760,7 +2838,7 @@ msgstr "Przesuń, aby wysłać"
|
||||||
|
|
||||||
#: www/views/cashScan.html:56
|
#: www/views/cashScan.html:56
|
||||||
msgid "Some of your wallets are not eligible for Bitcoin Cash support. You can try to access BCH funds from these wallets using the"
|
msgid "Some of your wallets are not eligible for Bitcoin Cash support. You can try to access BCH funds from these wallets using the"
|
||||||
msgstr ""
|
msgstr "Niektóre z twoich portfeli nie kwalifikują się do wsparcia Bitcoin Cash. Dostęp do środków BCH z tych portfeli można spróbować uzyskać, korzystając z"
|
||||||
|
|
||||||
#: src/js/controllers/create.js:88
|
#: src/js/controllers/create.js:88
|
||||||
#: src/js/controllers/join.js:71
|
#: src/js/controllers/join.js:71
|
||||||
|
|
@ -2781,7 +2859,7 @@ msgstr "Wymagane hasło wypłat"
|
||||||
|
|
||||||
#: www/views/walletDetails.html:173
|
#: www/views/walletDetails.html:173
|
||||||
msgid "Spending this balance will need significant Bitcoin network fees"
|
msgid "Spending this balance will need significant Bitcoin network fees"
|
||||||
msgstr ""
|
msgstr "Wydanie tego salda będzie wymagało znacznych opłat sieciowych Bitcoin"
|
||||||
|
|
||||||
#: www/views/tab-send.html:28
|
#: www/views/tab-send.html:28
|
||||||
msgid "Start sending bitcoin"
|
msgid "Start sending bitcoin"
|
||||||
|
|
@ -2806,7 +2884,7 @@ msgstr "Super Ekonomiczna"
|
||||||
|
|
||||||
#: www/views/preferencesCash.html:11
|
#: www/views/preferencesCash.html:11
|
||||||
msgid "Support Bitcoin Cash"
|
msgid "Support Bitcoin Cash"
|
||||||
msgstr ""
|
msgstr "Wsparcie Bitcoin Cash"
|
||||||
|
|
||||||
#: www/views/paperWallet.html:7
|
#: www/views/paperWallet.html:7
|
||||||
msgid "Sweep"
|
msgid "Sweep"
|
||||||
|
|
@ -2856,7 +2934,7 @@ msgstr "Warunki użytkowania"
|
||||||
#: www/views/tab-create-personal.html:118
|
#: www/views/tab-create-personal.html:118
|
||||||
#: www/views/tab-import-phrase.html:68
|
#: www/views/tab-import-phrase.html:68
|
||||||
msgid "Testnet"
|
msgid "Testnet"
|
||||||
msgstr ""
|
msgstr "Testnet"
|
||||||
|
|
||||||
#: www/views/includes/incomingDataMenu.html:61
|
#: www/views/includes/incomingDataMenu.html:61
|
||||||
msgid "Text"
|
msgid "Text"
|
||||||
|
|
@ -2995,7 +3073,7 @@ msgstr "Ta kluczowa fraza został utworzona przy użyciu hasła. Aby odzyskać p
|
||||||
|
|
||||||
#: www/views/tx-details.html:91
|
#: www/views/tx-details.html:91
|
||||||
msgid "This transaction amount is too small compared to current Bitcoin network fees. Spending these funds will need a Bitcoin network fee cost comparable to the funds itself."
|
msgid "This transaction amount is too small compared to current Bitcoin network fees. Spending these funds will need a Bitcoin network fee cost comparable to the funds itself."
|
||||||
msgstr ""
|
msgstr "Ta kwota transakcji jest zbyt mała w porównaniu z obecnymi opłatami sieci Bitcoin. Wydanie tych środków będzie wymagało opłaty sieciowej Bitcoin, która jest porównywalna do kosztów samych funduszy."
|
||||||
|
|
||||||
#: www/views/tx-details.html:87
|
#: www/views/tx-details.html:87
|
||||||
msgid "This transaction could take a long time to confirm or could be dropped due to the low fees set by the sender"
|
msgid "This transaction could take a long time to confirm or could be dropped due to the low fees set by the sender"
|
||||||
|
|
@ -3030,15 +3108,15 @@ msgstr "Aby rozpocząć należy utworzyć portfel i dostać trochę bitcoinów."
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:73
|
#: src/js/services/bitpayAccountService.js:73
|
||||||
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
||||||
msgstr ""
|
msgstr "Aby móc wykonać czynność {{reason}}, musisz przedtem dodać swoje konto BitPay – {{email}}"
|
||||||
|
|
||||||
#: src/js/services/onGoingProcess.js:48
|
#: src/js/services/onGoingProcess.js:48
|
||||||
msgid "Top up in progress..."
|
msgid "Top up in progress..."
|
||||||
msgstr ""
|
msgstr "Doładowanie w trakcie..."
|
||||||
|
|
||||||
#: src/js/controllers/topup.js:206
|
#: src/js/controllers/topup.js:206
|
||||||
msgid "Top up {{amountStr}} to debit card ({{cardLastNumber}})"
|
msgid "Top up {{amountStr}} to debit card ({{cardLastNumber}})"
|
||||||
msgstr ""
|
msgstr "Doładuj o {{amountStr}} kartę debetową ({{cardLastNumber}})"
|
||||||
|
|
||||||
#: www/views/buyAmazon.html:61
|
#: www/views/buyAmazon.html:61
|
||||||
#: www/views/buyMercadoLibre.html:60
|
#: www/views/buyMercadoLibre.html:60
|
||||||
|
|
@ -3057,7 +3135,7 @@ msgstr "Liczba współwłaścicieli portfela"
|
||||||
|
|
||||||
#: www/views/addresses.html:81
|
#: www/views/addresses.html:81
|
||||||
msgid "Total wallet inputs"
|
msgid "Total wallet inputs"
|
||||||
msgstr ""
|
msgstr "Dane wejściowe portfela łącznie"
|
||||||
|
|
||||||
#: src/js/services/fingerprintService.js:63
|
#: src/js/services/fingerprintService.js:63
|
||||||
#: src/js/services/fingerprintService.js:68
|
#: src/js/services/fingerprintService.js:68
|
||||||
|
|
@ -3196,7 +3274,7 @@ msgstr "Zobacz zasady użytkowania"
|
||||||
#: src/js/controllers/bitpayCard.js:122
|
#: src/js/controllers/bitpayCard.js:122
|
||||||
#: src/js/controllers/tx-details.js:191
|
#: src/js/controllers/tx-details.js:191
|
||||||
msgid "View Transaction on Explorer.Bitcoin.com"
|
msgid "View Transaction on Explorer.Bitcoin.com"
|
||||||
msgstr ""
|
msgstr "Zobacz transakcję na Explorer.Bitcoin.com"
|
||||||
|
|
||||||
#: src/js/controllers/tab-home.js:148
|
#: src/js/controllers/tab-home.js:148
|
||||||
msgid "View Update"
|
msgid "View Update"
|
||||||
|
|
@ -3208,7 +3286,7 @@ msgstr "Zobacz na blockchainie"
|
||||||
|
|
||||||
#: www/views/mercadoLibre.html:26
|
#: www/views/mercadoLibre.html:26
|
||||||
msgid "Visit mercadolivre.com.br →"
|
msgid "Visit mercadolivre.com.br →"
|
||||||
msgstr ""
|
msgstr "Odwiedź mercadolivre.com.br →"
|
||||||
|
|
||||||
#: www/views/walletDetails.html:182
|
#: www/views/walletDetails.html:182
|
||||||
msgid "WARNING: Key derivation is not working on this device/wallet. Actions cannot be performed on this wallet."
|
msgid "WARNING: Key derivation is not working on this device/wallet. Actions cannot be performed on this wallet."
|
||||||
|
|
@ -3270,7 +3348,7 @@ msgstr "Informacje o portfelu"
|
||||||
|
|
||||||
#: www/views/addresses.html:76
|
#: www/views/addresses.html:76
|
||||||
msgid "Wallet Inputs"
|
msgid "Wallet Inputs"
|
||||||
msgstr ""
|
msgstr "Dane wejściowe portfela"
|
||||||
|
|
||||||
#: www/views/join.html:26
|
#: www/views/join.html:26
|
||||||
msgid "Wallet Invitation"
|
msgid "Wallet Invitation"
|
||||||
|
|
@ -3324,7 +3402,7 @@ msgstr "Portfel już istnieje"
|
||||||
|
|
||||||
#: src/js/services/profileService.js:516
|
#: src/js/services/profileService.js:516
|
||||||
msgid "Wallet already in {{appName}}"
|
msgid "Wallet already in {{appName}}"
|
||||||
msgstr ""
|
msgstr "Portfel już w aplikacji {{appName}}"
|
||||||
|
|
||||||
#: www/views/includes/walletActivity.html:6
|
#: www/views/includes/walletActivity.html:6
|
||||||
msgid "Wallet created"
|
msgid "Wallet created"
|
||||||
|
|
@ -3504,7 +3582,7 @@ msgstr "Nie należy ustawiać opłatę wyższą niż {{maxFeeRecommended}} satos
|
||||||
|
|
||||||
#: www/views/modals/bitpay-card-confirmation.html:5
|
#: www/views/modals/bitpay-card-confirmation.html:5
|
||||||
msgid "You will need to log back for fill in your BitPay Card."
|
msgid "You will need to log back for fill in your BitPay Card."
|
||||||
msgstr ""
|
msgstr "Musisz zalogować się ponownie, aby wypełnić swoją kartę BitPay."
|
||||||
|
|
||||||
#: www/views/preferencesNotifications.html:34
|
#: www/views/preferencesNotifications.html:34
|
||||||
msgid "You'll receive email notifications about payments sent and received from your wallets."
|
msgid "You'll receive email notifications about payments sent and received from your wallets."
|
||||||
|
|
@ -3576,7 +3654,7 @@ msgstr "[Balans ukryty]"
|
||||||
#: www/views/walletDetails.html:141
|
#: www/views/walletDetails.html:141
|
||||||
#: www/views/walletDetails.html:61
|
#: www/views/walletDetails.html:61
|
||||||
msgid "[Scanning Funds]"
|
msgid "[Scanning Funds]"
|
||||||
msgstr ""
|
msgstr "[Skanowanie środków]"
|
||||||
|
|
||||||
#: src/js/controllers/bitpayCardIntro.js:11
|
#: src/js/controllers/bitpayCardIntro.js:11
|
||||||
msgid "add your BitPay Visa card(s)"
|
msgid "add your BitPay Visa card(s)"
|
||||||
|
|
@ -3608,7 +3686,7 @@ msgstr "{{amountStr}} dla karty upominkowej Amazon.com"
|
||||||
|
|
||||||
#: src/js/controllers/buyMercadoLibre.js:237
|
#: src/js/controllers/buyMercadoLibre.js:237
|
||||||
msgid "{{amountStr}} for Mercado Livre Brazil Gift Card"
|
msgid "{{amountStr}} for Mercado Livre Brazil Gift Card"
|
||||||
msgstr ""
|
msgstr "{{amountStr}} na karcie podarunkowej Mercado Livre Brazil"
|
||||||
|
|
||||||
#: www/views/preferencesBwsUrl.html:21
|
#: www/views/preferencesBwsUrl.html:21
|
||||||
msgid "{{appName}} depends on Bitcore Wallet Service (BWS) for blockchain information, networking and Copayer synchronization. The default configuration points to https://bws.bitpay.com (BitPay's public BWS instance)."
|
msgid "{{appName}} depends on Bitcore Wallet Service (BWS) for blockchain information, networking and Copayer synchronization. The default configuration points to https://bws.bitpay.com (BitPay's public BWS instance)."
|
||||||
|
|
@ -3620,7 +3698,7 @@ msgstr "{{fee}} zostanie potrącone jako prowizja sieci bitcoin."
|
||||||
|
|
||||||
#: www/views/confirm.html:85
|
#: www/views/confirm.html:85
|
||||||
msgid "{{tx.txp[wallet.id].feeRatePerStr}} of the sending amount"
|
msgid "{{tx.txp[wallet.id].feeRatePerStr}} of the sending amount"
|
||||||
msgstr ""
|
msgstr "{{tx.txp[wallet.id].feeRatePerStr}} wysyłanej kwoty"
|
||||||
|
|
||||||
#: www/views/walletDetails.html:218
|
#: www/views/walletDetails.html:218
|
||||||
msgid "{{updatingTxHistoryProgress}} transactions downloaded"
|
msgid "{{updatingTxHistoryProgress}} transactions downloaded"
|
||||||
|
|
@ -3632,3 +3710,51 @@ msgstr "{{updatingTxHistoryProgress}} transakcje pobrane"
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr "{{wallet.m}}-z-{{wallet.n}}"
|
msgstr "{{wallet.m}}-z-{{wallet.n}}"
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr "Shapeshift"
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr "Społeczność"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr "Reddit Bitcoin Cash"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr "Twitter Bitcoin.com"
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr "Poznaj Bitcoin.com"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr "Gry Bitcoin Cash"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr "Aktualności"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr "Pula kopalni"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr "Narzędzia"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr "Wykresy kursu Bitcoin"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr "Darmowa Bitcoin Cash"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr "Twoje portfele Bitcoin są gotowe!"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Portuguese, Brazilian\n"
|
"Language-Team: Portuguese, Brazilian\n"
|
||||||
"Language: pt\n"
|
"Language: pt\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:55+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:44\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "Conta"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "Número de conta"
|
msgstr "Número de conta"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "Transações instantâneas com taxas baixas"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "Contas"
|
msgstr "Contas"
|
||||||
|
|
@ -433,6 +437,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr "Comprar & Vender Bitcoin"
|
msgstr "Comprar & Vender Bitcoin"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr "Comprar Bitcoin"
|
msgstr "Comprar Bitcoin"
|
||||||
|
|
||||||
|
|
@ -615,10 +620,14 @@ msgstr "A conectar ao Glidera..."
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr "Ligação redefinida pelo mesmo nível"
|
msgstr "Ligação redefinida pelo mesmo nível"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "Contactos"
|
msgstr "Contactos"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "Salvou os endereços usados com frequência"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "Continuar"
|
msgstr "Continuar"
|
||||||
|
|
@ -819,7 +828,7 @@ msgstr "Criar carteira partilhada"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr "Criar carteira bitcoin"
|
msgstr "Criar carteira bitcoin"
|
||||||
|
|
||||||
|
|
@ -2529,6 +2538,14 @@ msgstr "Procurar transações"
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr "Procure ou digite o endereço bitcoin"
|
msgstr "Procure ou digite o endereço bitcoin"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr "Área de transferência"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr "A sua área de transferência está vazia"
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr "Procurar transações"
|
msgstr "Procurar transações"
|
||||||
|
|
@ -2587,9 +2604,70 @@ msgid "Send by email"
|
||||||
msgstr "Enviar por E-mail"
|
msgstr "Enviar por E-mail"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr "Enviar De"
|
msgstr "Enviar De"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr "Enviar para"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr "Colar na área de trabalho"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr "Colar endereço"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr "Transferência de carteira para carteira"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr "Digitalizar o código QR"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Envie Bitcoin mais rápido!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Envie Bitcoin mais rápido!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr "Salvar endereços usados com frequência e enviar Bitcoin com apenas um toque"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr "Adicionar o seu primeiro contato"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr "Sua carteira de Bitcoin está vazia"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr "Para começar, compre Bitcoin Cash (BCH) ou Bitcoin Core (BTC) ou compartilhe o seu endereço."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr "Você pode receber bitcoin de qualquer carteira ou serviço."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr "Para começar, você precisa criar uma carteira de bitcoins e obter alguns bitcoins."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr "Compre Bitcoin agora"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr "Mostrar meu endereço"
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr "Quantidade Máxima de envio"
|
msgstr "Quantidade Máxima de envio"
|
||||||
|
|
@ -3026,7 +3104,7 @@ msgstr "Para começar, compre bitcoins ou compartilhe seu endereço. Você pode
|
||||||
|
|
||||||
#: www/views/tab-send.html:33
|
#: www/views/tab-send.html:33
|
||||||
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
msgstr "Para começar, você precisa criar uma carteira de bitcoins e obter alguns bitcoins."
|
msgstr "Para começar, você precisará criar uma carteira e obter algum bitcoin."
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:73
|
#: src/js/services/bitpayAccountService.js:73
|
||||||
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
||||||
|
|
@ -3632,3 +3710,51 @@ msgstr "Transações de {{updatingTxHistoryProgress}} transferidas"
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr "{{wallet.m}}-de-{{wallet.n}}"
|
msgstr "{{wallet.m}}-de-{{wallet.n}}"
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr "Shapeshift"
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr "Comunidade"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr "Bitcoin Cash Reddit"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr "Twitter Bitcoin.com"
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr "Explore Bitcoin.com"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr "Jogos Bitcoin Cash"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr "Notícias"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr "Pool de mineração"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr "Ferramentas"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr "Gráficos de preço do Bitcoin"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr "Bitcoin Cash grátis"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr "As suas carteiras de Bitcoin estão prontas!"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Russian\n"
|
"Language-Team: Russian\n"
|
||||||
"Language: ru\n"
|
"Language: ru\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:56+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:44\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "Учётная запись"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "Номер учётной записи"
|
msgstr "Номер учётной записи"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "Мгновенные транзакции с низкой комиссией"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "Аккаунты"
|
msgstr "Аккаунты"
|
||||||
|
|
@ -433,6 +437,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr "Купить & продать биткойн"
|
msgstr "Купить & продать биткойн"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr "Купить биткойн"
|
msgstr "Купить биткойн"
|
||||||
|
|
||||||
|
|
@ -615,10 +620,14 @@ msgstr "Подключение к Glidera..."
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr "Соединение сброшено другой стороной"
|
msgstr "Соединение сброшено другой стороной"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "Контакты"
|
msgstr "Контакты"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "Сохраненные часто используемые адреса"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "Продолжить"
|
msgstr "Продолжить"
|
||||||
|
|
@ -819,7 +828,7 @@ msgstr "Создать общий кошелёк"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr "Создать биткойн-кошелёк"
|
msgstr "Создать биткойн-кошелёк"
|
||||||
|
|
||||||
|
|
@ -2529,6 +2538,14 @@ msgstr "Поиск транзакций"
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr "Найти или ввести биткойн-адрес"
|
msgstr "Найти или ввести биткойн-адрес"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr "Буфер обмена"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr "Буфер обмена пуст"
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr "Поиск транзакций"
|
msgstr "Поиск транзакций"
|
||||||
|
|
@ -2587,9 +2604,70 @@ msgid "Send by email"
|
||||||
msgstr "Отправить на email"
|
msgstr "Отправить на email"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr "Отправить от"
|
msgstr "Отправить от"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr "Получатель"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr "Вставить из буфера обмена"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr "Вставить адрес"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr "Перевод с кошелька на кошелек"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr "Сканировать QR код"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Отправляйте биткойны еще быстрее!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "Отправляйте биткойны еще быстрее!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr "Сохраняйте часто используемые адреса кошельков и отправляйте на них биткойны одним нажатием"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr "Добавить первый контакт"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr "Ваш кошелёк пуст"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr "Чтобы начать работу, купите Bitcoin Cash (BCH) или Bitcoin Core (BTC), или поделитесь вашим адресом."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr "Вы можете получать биткойны с любого кошелька или сервиса."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr "Чтобы начать работу, вам нужно создать кошелёк и получить биткойн."
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr "Купить биткойны сейчас"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr "Показать мой адрес"
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr "Отправить макс. сумму"
|
msgstr "Отправить макс. сумму"
|
||||||
|
|
@ -3632,3 +3710,51 @@ msgstr "{{updatingTxHistoryProgress}} транзакций загружено"
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr "{{wallet.m}}-из-{{wallet.n}}"
|
msgstr "{{wallet.m}}-из-{{wallet.n}}"
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr "Shapeshift"
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr "Сообщество"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr "Bitcoin Cash Reddit"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr "Bitcoin.com Twitter"
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr "Обзор Bitcoin.com"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr "Игры Bitcoin Cash"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr "Новости"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr "Пул для майнинга"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr "Инструменты"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr "Динамика курса биткойна"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr "Bitcoin Cash бесплатно"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr "Ваши кошельки готовы!"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Swedish\n"
|
"Language-Team: Swedish\n"
|
||||||
"Language: sv\n"
|
"Language: sv\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:58+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:44\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "Konto"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "Kontonummer"
|
msgstr "Kontonummer"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "Konton"
|
msgstr "Konton"
|
||||||
|
|
@ -369,7 +373,7 @@ msgstr ""
|
||||||
#: www/views/tab-home.html:98
|
#: www/views/tab-home.html:98
|
||||||
#: www/views/tab-settings.html:115
|
#: www/views/tab-settings.html:115
|
||||||
msgid "Bitcoin Cash Wallets"
|
msgid "Bitcoin Cash Wallets"
|
||||||
msgstr ""
|
msgstr "Bitcoin Cash plånböcker"
|
||||||
|
|
||||||
#: www/views/modals/chooseFeeLevel.html:4
|
#: www/views/modals/chooseFeeLevel.html:4
|
||||||
#: www/views/preferencesFee.html:4
|
#: www/views/preferencesFee.html:4
|
||||||
|
|
@ -433,6 +437,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
@ -615,10 +620,14 @@ msgstr ""
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -819,7 +828,7 @@ msgstr ""
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
@ -2529,6 +2538,14 @@ msgstr ""
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -2587,9 +2604,70 @@ msgid "Send by email"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -3632,3 +3710,51 @@ msgstr ""
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,30 @@ msgstr ""
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/walletSelector.html:49
|
||||||
|
msgid "Insufficient funds"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/amount.html:42
|
||||||
|
msgid "Change Currency"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/amount.html:49
|
||||||
|
msgid "Available Funds"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/amount.html:59
|
||||||
|
msgid "Use All Available Funds"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/amount.html:99
|
||||||
|
msgid "Next"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -193,6 +217,20 @@ msgstr ""
|
||||||
msgid "Alternative Currency"
|
msgid "Alternative Currency"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-settings.html:75
|
||||||
|
msgid "Price Display"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-settings.js:19
|
||||||
|
#: www/views/preferencesPriceDisplay.html:12
|
||||||
|
msgid "Fiat"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-settings.js:19
|
||||||
|
#: www/views/preferencesPriceDisplay.html:15
|
||||||
|
msgid "Cryptocurrency"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/js/controllers/buyAmazon.js:98
|
#: src/js/controllers/buyAmazon.js:98
|
||||||
msgid "Amazon.com is not available at this moment. Please try back later."
|
msgid "Amazon.com is not available at this moment. Please try back later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -424,6 +462,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
@ -606,10 +645,14 @@ msgstr ""
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -644,6 +687,7 @@ msgstr ""
|
||||||
|
|
||||||
#: src/js/controllers/copayers.js:79
|
#: src/js/controllers/copayers.js:79
|
||||||
#: src/js/controllers/export.js:193
|
#: src/js/controllers/export.js:193
|
||||||
|
#: src/js/controllers/confirm.js:41
|
||||||
#: www/views/includes/copyToClipboard.html:4
|
#: www/views/includes/copyToClipboard.html:4
|
||||||
msgid "Copied to clipboard"
|
msgid "Copied to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -810,7 +854,7 @@ msgstr ""
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
@ -1263,6 +1307,7 @@ msgstr ""
|
||||||
#: www/views/modals/txp-details.html:74
|
#: www/views/modals/txp-details.html:74
|
||||||
#: www/views/topup.html:34
|
#: www/views/topup.html:34
|
||||||
#: www/views/tx-details.html:52
|
#: www/views/tx-details.html:52
|
||||||
|
#: www/views/review.html:22
|
||||||
msgid "From"
|
msgid "From"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
@ -1323,10 +1368,6 @@ msgid "Get news and updates from BitPay"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/onboarding/welcome.html:8
|
#: www/views/onboarding/welcome.html:8
|
||||||
msgctxt "button"
|
|
||||||
msgid "Get started"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: www/views/bitpayCard.html:49
|
#: www/views/bitpayCard.html:49
|
||||||
msgid "Get started"
|
msgid "Get started"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -2150,6 +2191,10 @@ msgstr ""
|
||||||
msgid "Payment Sent"
|
msgid "Payment Sent"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/includes/slideToAcceptSuccess.html:12
|
||||||
|
msgid "Share this transaction"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/modals/txp-details.html:32
|
#: www/views/modals/txp-details.html:32
|
||||||
msgid "Payment accepted, but not yet broadcasted"
|
msgid "Payment accepted, but not yet broadcasted"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -2167,7 +2212,7 @@ msgid "Payment details"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:6
|
#: www/views/modals/paypro.html:6
|
||||||
msgid "Payment request"
|
msgid "Payment Request"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/mercadoLibreCards.html:22
|
#: www/views/mercadoLibreCards.html:22
|
||||||
|
|
@ -2520,6 +2565,14 @@ msgstr ""
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -2578,9 +2631,68 @@ msgid "Send by email"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Transfer between wallets"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
#: www/views/shapeshift.html:23
|
||||||
|
#: www/views/tab-send.html:33
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -2974,6 +3086,14 @@ msgstr ""
|
||||||
msgid "This bitcoin payment request has expired."
|
msgid "This bitcoin payment request has expired."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/review.html:55
|
||||||
|
msgid "Payment expires:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/review.html:56
|
||||||
|
msgid "Payment request has expired"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/join.html:133
|
#: www/views/join.html:133
|
||||||
#: www/views/tab-create-personal.html:103
|
#: www/views/tab-create-personal.html:103
|
||||||
#: www/views/tab-create-shared.html:132
|
#: www/views/tab-create-shared.html:132
|
||||||
|
|
@ -3015,10 +3135,6 @@ msgstr ""
|
||||||
msgid "To get started, buy bitcoin or share your address. You can receive bitcoin from any wallet or service."
|
msgid "To get started, buy bitcoin or share your address. You can receive bitcoin from any wallet or service."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/tab-send.html:33
|
|
||||||
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:73
|
#: src/js/services/bitpayAccountService.js:73
|
||||||
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -3031,6 +3147,26 @@ msgstr ""
|
||||||
msgid "Top up {{amountStr}} to debit card ({{cardLastNumber}})"
|
msgid "Top up {{amountStr}} to debit card ({{cardLastNumber}})"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/shapeshift.html:30
|
||||||
|
msgid "Start ShapeShift"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/shapeshift.html:30
|
||||||
|
msgid "Exchange your BTC to BCH in minutes."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/shapeshift.html:30
|
||||||
|
msgid "To start the process you need to add funds to your wallet."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/shapeshift.html:30
|
||||||
|
msgid "The process is fast and you will receive the exchanged amount in your wallet."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/shapeshift.html:34
|
||||||
|
msgid "This service is provided by the third-party ShapeShift, who will charge a small fee for the service. The fee will be shown before you start the transaction."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/buyAmazon.html:61
|
#: www/views/buyAmazon.html:61
|
||||||
#: www/views/buyMercadoLibre.html:60
|
#: www/views/buyMercadoLibre.html:60
|
||||||
#: www/views/modals/wallet-balance.html:23
|
#: www/views/modals/wallet-balance.html:23
|
||||||
|
|
@ -3622,3 +3758,95 @@ msgstr ""
|
||||||
#: www/views/includes/walletInfo.html:18
|
#: www/views/includes/walletInfo.html:18
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/amount.js:49
|
||||||
|
msgid "Address does not contain currency information, please make sure you are sending the correct currency."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/review.html:4
|
||||||
|
msgid "Review Transaction"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/review.controller.js:36
|
||||||
|
msgid "You are sending"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/review.controller.js:66
|
||||||
|
msgid "You are shifting"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/review.html:36
|
||||||
|
msgid "To:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/review.html:53
|
||||||
|
msgid "Add personal note"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/review.html:87
|
||||||
|
msgid "Suggested by merchant:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/review.controller.js:37
|
||||||
|
msgid "Enter text here"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/review.html:57
|
||||||
|
msgid "Personal note:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/review.html:69
|
||||||
|
msgid "Less than 1 cent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/incomingData.js:129
|
||||||
|
msgid "This invoice is no longer accepting payments"
|
||||||
|
msgstr ""
|
||||||
|
|
@ -11,11 +11,11 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Vietnamese\n"
|
"Language-Team: Vietnamese\n"
|
||||||
"Language: vi\n"
|
"Language: vi\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:59+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:44\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
msgstr "(Đáng tin cậy)"
|
msgstr "(Tin cậy)"
|
||||||
|
|
||||||
#: www/views/includes/txp.html:23
|
#: www/views/includes/txp.html:23
|
||||||
#: www/views/includes/walletHistory.html:64
|
#: www/views/includes/walletHistory.html:64
|
||||||
|
|
@ -28,7 +28,7 @@ msgstr "* A payment proposal can be deleted if 1) you are the creator, and no ot
|
||||||
|
|
||||||
#: www/views/tx-details.html:82
|
#: www/views/tx-details.html:82
|
||||||
msgid "- {{btx.feeRateStr}} of the transaction"
|
msgid "- {{btx.feeRateStr}} of the transaction"
|
||||||
msgstr "{{btx.feeRateStr}} của giao dịch"
|
msgstr "- {{btx.feeRateStr}} of the transaction"
|
||||||
|
|
||||||
#: www/views/modals/txp-details.html:102
|
#: www/views/modals/txp-details.html:102
|
||||||
msgid "- {{tx.feeRateStr}} of the transaction"
|
msgid "- {{tx.feeRateStr}} of the transaction"
|
||||||
|
|
@ -41,7 +41,9 @@ msgstr "Xếp hạng 5 sao giúp chúng tôi để {{appName}} đến tay nhiề
|
||||||
#: www/views/mercadoLibre.html:18
|
#: www/views/mercadoLibre.html:18
|
||||||
#: www/views/mercadoLibre.html:40
|
#: www/views/mercadoLibre.html:40
|
||||||
msgid "<b>Only</b> redeemable on Mercado Livre (Brazil)"
|
msgid "<b>Only</b> redeemable on Mercado Livre (Brazil)"
|
||||||
msgstr "<b>Only</b> redeemable on Mercado Livre (Brazil)"
|
msgstr "<b>Only</b> redeemable on \n"
|
||||||
|
"Mercado Livre (Brazil) #\n\n"
|
||||||
|
"2"
|
||||||
|
|
||||||
#: src/js/controllers/feedback/send.js:27
|
#: src/js/controllers/feedback/send.js:27
|
||||||
#: www/views/feedback/complete.html:21
|
#: www/views/feedback/complete.html:21
|
||||||
|
|
@ -54,404 +56,410 @@ msgstr "A total of {{amountAboveMaxSizeStr}} were excluded. The maximum size all
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:395
|
#: src/js/controllers/confirm.js:395
|
||||||
msgid "A total of {{amountBelowFeeStr}} were excluded. These funds come from UTXOs smaller than the network fee provided."
|
msgid "A total of {{amountBelowFeeStr}} were excluded. These funds come from UTXOs smaller than the network fee provided."
|
||||||
msgstr ""
|
msgstr "Tổng cộng {{amountBelowFeeStr}} đã bị loại trừ. Số tiền này đến từ UTXOs nhỏ hơn chi phí mạng cung cấp.#\n"
|
||||||
|
"1"
|
||||||
|
|
||||||
#: src/js/controllers/preferencesAbout.js:6
|
#: src/js/controllers/preferencesAbout.js:6
|
||||||
#: www/views/tab-settings.html:156
|
#: www/views/tab-settings.html:156
|
||||||
msgid "About"
|
msgid "About"
|
||||||
msgstr ""
|
msgstr "About"
|
||||||
|
|
||||||
#: src/js/controllers/modals/txpDetails.js:62
|
#: src/js/controllers/modals/txpDetails.js:62
|
||||||
#: src/js/controllers/tx-details.js:79
|
#: src/js/controllers/tx-details.js:79
|
||||||
msgid "Accepted"
|
msgid "Accepted"
|
||||||
msgstr ""
|
msgstr "Accepted"
|
||||||
|
|
||||||
#: www/views/preferencesInformation.html:72
|
#: www/views/preferencesInformation.html:72
|
||||||
msgid "Account"
|
msgid "Account"
|
||||||
msgstr ""
|
msgstr "Account"
|
||||||
|
|
||||||
#: www/views/join.html:72
|
#: www/views/join.html:72
|
||||||
#: www/views/tab-create-personal.html:45
|
#: www/views/tab-create-personal.html:45
|
||||||
#: www/views/tab-create-shared.html:74
|
#: www/views/tab-create-shared.html:74
|
||||||
#: www/views/tab-import-hardware.html:19
|
#: www/views/tab-import-hardware.html:19
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr ""
|
msgstr "Account Number"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "2"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr ""
|
msgstr "Accounts"
|
||||||
|
|
||||||
#: www/views/bitpayCard.html:56
|
#: www/views/bitpayCard.html:56
|
||||||
msgid "Activity"
|
msgid "Activity"
|
||||||
msgstr ""
|
msgstr "Activity"
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:83
|
#: src/js/services/bitpayAccountService.js:83
|
||||||
msgid "Add Account"
|
msgid "Add Account"
|
||||||
msgstr ""
|
msgstr "Add Account"
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:69
|
#: src/js/services/bitpayAccountService.js:69
|
||||||
msgid "Add BitPay Account?"
|
msgid "Add BitPay Account?"
|
||||||
msgstr ""
|
msgstr "Add BitPay Account?"
|
||||||
|
|
||||||
#: www/views/addressbook.add.html:4
|
#: www/views/addressbook.add.html:4
|
||||||
#: www/views/addressbook.html:22
|
#: www/views/addressbook.html:22
|
||||||
msgid "Add Contact"
|
msgid "Add Contact"
|
||||||
msgstr ""
|
msgstr "Add Contact"
|
||||||
|
|
||||||
#: www/views/bitpayCard.html:28
|
#: www/views/bitpayCard.html:28
|
||||||
msgid "Add Funds"
|
msgid "Add Funds"
|
||||||
msgstr ""
|
msgstr "Add Funds"
|
||||||
|
|
||||||
#: www/views/confirm.html:94
|
#: www/views/confirm.html:94
|
||||||
msgid "Add Memo"
|
msgid "Add Memo"
|
||||||
msgstr ""
|
msgstr "Add Memo"
|
||||||
|
|
||||||
#: www/views/join.html:87
|
#: www/views/join.html:87
|
||||||
#: www/views/tab-create-personal.html:59
|
#: www/views/tab-create-personal.html:59
|
||||||
#: www/views/tab-create-shared.html:88
|
#: www/views/tab-create-shared.html:88
|
||||||
msgid "Add a password"
|
msgid "Add a password"
|
||||||
msgstr ""
|
msgstr "Add a password"
|
||||||
|
|
||||||
#: www/views/includes/accountSelector.html:27
|
#: www/views/includes/accountSelector.html:27
|
||||||
msgid "Add account"
|
msgid "Add account"
|
||||||
msgstr ""
|
msgstr "Add account"
|
||||||
|
|
||||||
#: www/views/join.html:90
|
#: www/views/join.html:90
|
||||||
#: www/views/tab-create-personal.html:62
|
#: www/views/tab-create-personal.html:62
|
||||||
#: www/views/tab-create-shared.html:91
|
#: www/views/tab-create-shared.html:91
|
||||||
msgid "Add an optional password to secure the recovery phrase"
|
msgid "Add an optional password to secure the recovery phrase"
|
||||||
msgstr ""
|
msgstr "Add a password option to allow a secure cluster"
|
||||||
|
|
||||||
#: www/views/includes/incomingDataMenu.html:41
|
#: www/views/includes/incomingDataMenu.html:41
|
||||||
msgid "Add as a contact"
|
msgid "Add as a contact"
|
||||||
msgstr ""
|
msgstr "Thêm như một liên hệ"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:424
|
#: src/js/controllers/confirm.js:424
|
||||||
msgid "Add description"
|
msgid "Add description"
|
||||||
msgstr ""
|
msgstr "Thêm mô tả"
|
||||||
|
|
||||||
#: www/views/topup.html:6
|
#: www/views/topup.html:6
|
||||||
msgid "Add funds"
|
msgid "Add funds"
|
||||||
msgstr ""
|
msgstr "Nạp tiền"
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:78
|
#: src/js/services/bitpayAccountService.js:78
|
||||||
msgid "Add this BitPay account ({{email}})?"
|
msgid "Add this BitPay account ({{email}})?"
|
||||||
msgstr ""
|
msgstr "Thêm BitPay ({{email}}) tài khoản này?"
|
||||||
|
|
||||||
#: www/views/add.html:3
|
#: www/views/add.html:3
|
||||||
msgid "Add wallet"
|
msgid "Add wallet"
|
||||||
msgstr ""
|
msgstr "Thêm ví"
|
||||||
|
|
||||||
#: www/views/addressbook.view.html:26
|
#: www/views/addressbook.view.html:26
|
||||||
#: www/views/customAmount.html:28
|
#: www/views/customAmount.html:28
|
||||||
#: www/views/modals/paypro.html:24
|
#: www/views/modals/paypro.html:24
|
||||||
msgid "Address"
|
msgid "Address"
|
||||||
msgstr ""
|
msgstr "Địa chỉ"
|
||||||
|
|
||||||
#: www/views/addressbook.html:6
|
#: www/views/addressbook.html:6
|
||||||
#: www/views/tab-settings.html:13
|
#: www/views/tab-settings.html:13
|
||||||
msgid "Address Book"
|
msgid "Address Book"
|
||||||
msgstr ""
|
msgstr "Sổ địa chỉ"
|
||||||
|
|
||||||
#: www/views/preferencesInformation.html:41
|
#: www/views/preferencesInformation.html:41
|
||||||
msgid "Address Type"
|
msgid "Address Type"
|
||||||
msgstr ""
|
msgstr "Loại địa chỉ"
|
||||||
|
|
||||||
#: www/views/addresses.html:64
|
#: www/views/addresses.html:64
|
||||||
msgid "Addresses With Balance"
|
msgid "Addresses With Balance"
|
||||||
msgstr ""
|
msgstr "Địa chỉ với số dư"
|
||||||
|
|
||||||
#: www/views/tab-settings.html:149
|
#: www/views/tab-settings.html:149
|
||||||
msgid "Advanced"
|
msgid "Advanced"
|
||||||
msgstr ""
|
msgstr "Nâng cao"
|
||||||
|
|
||||||
#: www/views/advancedSettings.html:3
|
#: www/views/advancedSettings.html:3
|
||||||
msgid "Advanced Settings"
|
msgid "Advanced Settings"
|
||||||
msgstr ""
|
msgstr "Cài đặt nâng cao"
|
||||||
|
|
||||||
#: www/views/bitpayCard.html:62
|
#: www/views/bitpayCard.html:62
|
||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr ""
|
msgstr "Tất cả"
|
||||||
|
|
||||||
#: www/views/allAddresses.html:3
|
#: www/views/allAddresses.html:3
|
||||||
msgid "All Addresses"
|
msgid "All Addresses"
|
||||||
msgstr ""
|
msgstr "Tất cả địa chỉ"
|
||||||
|
|
||||||
#: www/views/modals/wallet-balance.html:18
|
#: www/views/modals/wallet-balance.html:18
|
||||||
msgid "All of your bitcoin wallet balance may not be available for immediate spending."
|
msgid "All of your bitcoin wallet balance may not be available for immediate spending."
|
||||||
msgstr ""
|
msgstr "Tất cả số dư ví bitcoin của bạn có thể không có sẵn cho chi tiêu ngay lập tức."
|
||||||
|
|
||||||
#: www/views/tab-receive.html:25
|
#: www/views/tab-receive.html:25
|
||||||
msgid "All signing devices must be added to this multisig wallet before bitcoin addresses can be created."
|
msgid "All signing devices must be added to this multisig wallet before bitcoin addresses can be created."
|
||||||
msgstr ""
|
msgstr "All contract device will be added to this multisig before the bitcoin address has been created."
|
||||||
|
|
||||||
#: www/views/tab-scan.html:21
|
#: www/views/tab-scan.html:21
|
||||||
msgid "Allow Camera Access"
|
msgid "Allow Camera Access"
|
||||||
msgstr ""
|
msgstr "Allow camera access"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:7
|
#: www/views/onboarding/notifications.html:7
|
||||||
msgid "Allow notifications"
|
msgid "Allow notifications"
|
||||||
msgstr ""
|
msgstr "Allow notification"
|
||||||
|
|
||||||
#: www/views/onboarding/disclaimer.html:14
|
#: www/views/onboarding/disclaimer.html:14
|
||||||
msgid "Almost done! Let's review."
|
msgid "Almost done! Let's review."
|
||||||
msgstr ""
|
msgstr "Most as completed! We see review."
|
||||||
|
|
||||||
#: www/views/preferencesAltCurrency.html:4
|
#: www/views/preferencesAltCurrency.html:4
|
||||||
#: www/views/tab-settings.html:79
|
#: www/views/tab-settings.html:79
|
||||||
msgid "Alternative Currency"
|
msgid "Alternative Currency"
|
||||||
msgstr ""
|
msgstr "Money Currency instead"
|
||||||
|
|
||||||
#: src/js/controllers/buyAmazon.js:98
|
#: src/js/controllers/buyAmazon.js:98
|
||||||
msgid "Amazon.com is not available at this moment. Please try back later."
|
msgid "Amazon.com is not available at this moment. Please try back later."
|
||||||
msgstr ""
|
msgstr "Amazon.com is not available at this time. Please try again again."
|
||||||
|
|
||||||
#: www/views/amount.html:44
|
#: www/views/amount.html:44
|
||||||
#: www/views/customAmount.html:34
|
#: www/views/customAmount.html:34
|
||||||
#: www/views/includes/output.html:7
|
#: www/views/includes/output.html:7
|
||||||
msgid "Amount"
|
msgid "Amount"
|
||||||
msgstr ""
|
msgstr "Quantity"
|
||||||
|
|
||||||
#: src/js/services/bwcError.js:110
|
#: src/js/services/bwcError.js:110
|
||||||
msgid "Amount below minimum allowed"
|
msgid "Amount below minimum allowed"
|
||||||
msgstr ""
|
msgstr "Maximum amount of the minimum amount"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:216
|
#: src/js/controllers/confirm.js:216
|
||||||
msgid "Amount too big"
|
msgid "Amount too big"
|
||||||
msgstr ""
|
msgstr "Amount too large"
|
||||||
|
|
||||||
#: www/views/includes/walletHistory.html:31
|
#: www/views/includes/walletHistory.html:31
|
||||||
msgid "Amount too low to spend"
|
msgid "Amount too low to spend"
|
||||||
msgstr ""
|
msgstr "Amount too low for standard"
|
||||||
|
|
||||||
#: src/js/controllers/tab-home.js:147
|
#: src/js/controllers/tab-home.js:147
|
||||||
msgid "An update to this app is available. For your security, please update to the latest version."
|
msgid "An update to this app is available. For your security, please update to the latest version."
|
||||||
msgstr ""
|
msgstr "Hotel have a Update for this application. To preserve your password, please please update the latest version."
|
||||||
|
|
||||||
#: www/views/backupWarning.html:14
|
#: www/views/backupWarning.html:14
|
||||||
msgid "Anyone with your backup phrase can access or spend your bitcoin."
|
msgid "Anyone with your backup phrase can access or spend your bitcoin."
|
||||||
msgstr ""
|
msgstr "Każdy, kto ma Twoją kluczową là một trong những điều tuyệt vời nhất."
|
||||||
|
|
||||||
#: www/views/addresses.html:94
|
#: www/views/addresses.html:94
|
||||||
msgid "Approximate Bitcoin network fee to transfer wallet's balance (with normal priority)"
|
msgid "Approximate Bitcoin network fee to transfer wallet's balance (with normal priority)"
|
||||||
msgstr ""
|
msgstr "La taxa approssimativa della rete Bitcoin cho mỗi lần gửi tiền theo yêu cầu của bạn"
|
||||||
|
|
||||||
#: www/views/backupWarning.html:10
|
#: www/views/backupWarning.html:10
|
||||||
msgid "Are you being watched?"
|
msgid "Are you being watched?"
|
||||||
msgstr ""
|
msgstr "Chúng tôi vigilen?"
|
||||||
|
|
||||||
#: src/js/controllers/preferencesExternal.js:15
|
#: src/js/controllers/preferencesExternal.js:15
|
||||||
msgid "Are you being watched? Anyone with your recovery phrase can access or spend your bitcoin."
|
msgid "Are you being watched? Anyone with your recovery phrase can access or spend your bitcoin."
|
||||||
msgstr ""
|
msgstr "You are tracking? Bất cứ ai có thể phục hồi từ bạn, bạn có thể truy cập hoặc bitcoin chi tiêu của bạn."
|
||||||
|
|
||||||
#: src/js/controllers/copayers.js:56
|
#: src/js/controllers/copayers.js:56
|
||||||
msgid "Are you sure you want to cancel and delete this wallet?"
|
msgid "Are you sure you want to cancel and delete this wallet?"
|
||||||
msgstr ""
|
msgstr "Are you sure you want to cancel and remove this video?"
|
||||||
|
|
||||||
#: src/js/controllers/addressbookView.js:37
|
#: src/js/controllers/addressbookView.js:37
|
||||||
msgid "Are you sure you want to delete this contact?"
|
msgid "Are you sure you want to delete this contact?"
|
||||||
msgstr ""
|
msgstr "Bạn có chắc chắn muốn xóa địa chỉ liên hệ này không?"
|
||||||
|
|
||||||
#: src/js/controllers/preferencesDelete.js:25
|
#: src/js/controllers/preferencesDelete.js:25
|
||||||
msgid "Are you sure you want to delete this wallet?"
|
msgid "Are you sure you want to delete this wallet?"
|
||||||
msgstr ""
|
msgstr "Are you sure you want to delete this wallet?"
|
||||||
|
|
||||||
#: src/js/controllers/modals/txpDetails.js:154
|
#: src/js/controllers/modals/txpDetails.js:154
|
||||||
msgid "Are you sure you want to reject this transaction?"
|
msgid "Are you sure you want to reject this transaction?"
|
||||||
msgstr ""
|
msgstr "Are you sure you want to reject this transaction?"
|
||||||
|
|
||||||
#: src/js/controllers/modals/txpDetails.js:171
|
#: src/js/controllers/modals/txpDetails.js:171
|
||||||
msgid "Are you sure you want to remove this transaction?"
|
msgid "Are you sure you want to remove this transaction?"
|
||||||
msgstr ""
|
msgstr "Are you sure you want to remove this transaction?"
|
||||||
|
|
||||||
#: src/js/controllers/onboarding/backupRequest.js:23
|
#: src/js/controllers/onboarding/backupRequest.js:23
|
||||||
msgid "Are you sure you want to skip it?"
|
msgid "Are you sure you want to skip it?"
|
||||||
msgstr ""
|
msgstr "Are you sure you want to skip it?"
|
||||||
|
|
||||||
#: www/views/modals/bitpay-card-confirmation.html:4
|
#: www/views/modals/bitpay-card-confirmation.html:4
|
||||||
msgid "Are you sure you would like to log out of your BitPay Card account?"
|
msgid "Are you sure you would like to log out of your BitPay Card account?"
|
||||||
msgstr ""
|
msgstr "Bạn có chắc chắn muốn đăng xuất khỏi tài khoản Thẻ BitPay của mình không?"
|
||||||
|
|
||||||
#: src/js/controllers/preferencesBitpayCard.js:7
|
#: src/js/controllers/preferencesBitpayCard.js:7
|
||||||
#: src/js/controllers/preferencesBitpayServices.js:20
|
#: src/js/controllers/preferencesBitpayServices.js:20
|
||||||
msgid "Are you sure you would like to remove your BitPay Card ({{lastFourDigits}}) from this device?"
|
msgid "Are you sure you would like to remove your BitPay Card ({{lastFourDigits}}) from this device?"
|
||||||
msgstr ""
|
msgstr "Are you sure you would like to remove your BitPay Card ({{lastFourDigits}}) from this device?"
|
||||||
|
|
||||||
#: www/views/includes/walletInfo.html:10
|
#: www/views/includes/walletInfo.html:10
|
||||||
msgid "Auditable"
|
msgid "Auditable"
|
||||||
msgstr ""
|
msgstr "Auditable"
|
||||||
|
|
||||||
#: www/views/modals/wallet-balance.html:42
|
#: www/views/modals/wallet-balance.html:42
|
||||||
msgid "Available"
|
msgid "Available"
|
||||||
msgstr ""
|
msgstr "Available"
|
||||||
|
|
||||||
#: www/views/includes/available-balance.html:3
|
#: www/views/includes/available-balance.html:3
|
||||||
msgid "Available Balance"
|
msgid "Available Balance"
|
||||||
msgstr ""
|
msgstr "Available Balance"
|
||||||
|
|
||||||
#: www/views/modals/chooseFeeLevel.html:24
|
#: www/views/modals/chooseFeeLevel.html:24
|
||||||
#: www/views/preferencesFee.html:15
|
#: www/views/preferencesFee.html:15
|
||||||
msgid "Average confirmation time"
|
msgid "Average confirmation time"
|
||||||
msgstr ""
|
msgstr "Average confirmation time"
|
||||||
|
|
||||||
#: www/views/join.html:143
|
#: www/views/join.html:143
|
||||||
#: www/views/tab-create-personal.html:113
|
#: www/views/tab-create-personal.html:113
|
||||||
#: www/views/tab-create-shared.html:142
|
#: www/views/tab-create-shared.html:142
|
||||||
#: www/views/tab-import-phrase.html:51
|
#: www/views/tab-import-phrase.html:51
|
||||||
msgid "BIP32 path for address derivation"
|
msgid "BIP32 path for address derivation"
|
||||||
msgstr ""
|
msgstr "Đường dẫn BIP32 cho dẫn xuất địa chỉ"
|
||||||
|
|
||||||
#: www/views/cashScan.html:25
|
#: www/views/cashScan.html:25
|
||||||
msgid "BTC wallets"
|
msgid "BTC wallets"
|
||||||
msgstr ""
|
msgstr "Ví BTC"
|
||||||
|
|
||||||
#: www/views/preferences.html:34
|
#: www/views/preferences.html:34
|
||||||
msgid "Backup"
|
msgid "Backup"
|
||||||
msgstr ""
|
msgstr "Backup"
|
||||||
|
|
||||||
#: www/views/includes/backupNeededPopup.html:7
|
#: www/views/includes/backupNeededPopup.html:7
|
||||||
msgid "Backup Needed"
|
msgid "Backup Needed"
|
||||||
msgstr ""
|
msgstr "Backup Needed"
|
||||||
|
|
||||||
#: src/js/controllers/lockSetup.js:87
|
#: src/js/controllers/lockSetup.js:87
|
||||||
msgid "Backup all livenet wallets before using this function"
|
msgid "Backup all livenet wallets before using this function"
|
||||||
msgstr ""
|
msgstr "Backup all livenet wallets before using this function"
|
||||||
|
|
||||||
#: src/js/controllers/cashScan.js:64
|
#: src/js/controllers/cashScan.js:64
|
||||||
#: www/views/includes/walletListSettings.html:12
|
#: www/views/includes/walletListSettings.html:12
|
||||||
#: www/views/preferences.html:36
|
#: www/views/preferences.html:36
|
||||||
msgid "Backup needed"
|
msgid "Backup needed"
|
||||||
msgstr ""
|
msgstr "Cần sao lưu"
|
||||||
|
|
||||||
#: www/views/includes/backupNeededPopup.html:9
|
#: www/views/includes/backupNeededPopup.html:9
|
||||||
msgid "Backup now"
|
msgid "Backup now"
|
||||||
msgstr ""
|
msgstr "Sao lưu ngay"
|
||||||
|
|
||||||
#: www/views/onboarding/backupRequest.html:11
|
#: www/views/onboarding/backupRequest.html:11
|
||||||
#: www/views/tab-export-file.html:89
|
#: www/views/tab-export-file.html:89
|
||||||
msgid "Backup wallet"
|
msgid "Backup wallet"
|
||||||
msgstr ""
|
msgstr "Backup wallet"
|
||||||
|
|
||||||
#: src/js/controllers/lockSetup.js:84
|
#: src/js/controllers/lockSetup.js:84
|
||||||
msgid "Backup your wallet before using this function"
|
msgid "Backup your wallet before using this function"
|
||||||
msgstr ""
|
msgstr "Backup your wallet before using this function"
|
||||||
|
|
||||||
#: src/js/services/profileService.js:446
|
#: src/js/services/profileService.js:446
|
||||||
msgid "Bad wallet invitation"
|
msgid "Bad wallet invitation"
|
||||||
msgstr ""
|
msgstr "Bad wallet invitation"
|
||||||
|
|
||||||
#: www/views/preferencesInformation.html:102
|
#: www/views/preferencesInformation.html:102
|
||||||
msgid "Balance By Address"
|
msgid "Balance By Address"
|
||||||
msgstr ""
|
msgstr "Balance By Address"
|
||||||
|
|
||||||
#: www/views/includes/confirmBackupPopup.html:7
|
#: www/views/includes/confirmBackupPopup.html:7
|
||||||
msgid "Be sure to store your recovery phrase in a secure place. If this app is deleted, your money cannot be recovered without it."
|
msgid "Be sure to store your recovery phrase in a secure place. If this app is deleted, your money cannot be recovered without it."
|
||||||
msgstr ""
|
msgstr "Hãy chắc chắn lưu trữ cụm từ khôi phục của bạn ở một nơi an toàn. Nếu ứng dụng này bị xóa, tiền của bạn không thể được phục hồi mà không có nó."
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:9
|
#: www/views/preferencesBitpayServices.html:9
|
||||||
msgid "BitPay Visa® Cards"
|
msgid "BitPay Visa® Cards"
|
||||||
msgstr ""
|
msgstr "BitPay Visa & reg; thẻ"
|
||||||
|
|
||||||
#: www/views/addressbook.add.html:38
|
#: www/views/addressbook.add.html:38
|
||||||
#: www/views/includes/incomingDataMenu.html:29
|
#: www/views/includes/incomingDataMenu.html:29
|
||||||
msgid "Bitcoin Address"
|
msgid "Bitcoin Address"
|
||||||
msgstr ""
|
msgstr "Bitcoin Address"
|
||||||
|
|
||||||
#: www/views/cashScan.html:4
|
#: www/views/cashScan.html:4
|
||||||
msgid "Bitcoin Cash (BCH) Balances"
|
msgid "Bitcoin Cash (BCH) Balances"
|
||||||
msgstr ""
|
msgstr "Bitcoin Cash (BCH) Balances"
|
||||||
|
|
||||||
#: www/views/preferencesCash.html:3
|
#: www/views/preferencesCash.html:3
|
||||||
#: www/views/tab-settings.html:47
|
#: www/views/tab-settings.html:47
|
||||||
msgid "Bitcoin Cash Support"
|
msgid "Bitcoin Cash Support"
|
||||||
msgstr ""
|
msgstr "Bitcoin Cash Support"
|
||||||
|
|
||||||
#: www/views/tab-home.html:98
|
#: www/views/tab-home.html:98
|
||||||
#: www/views/tab-settings.html:115
|
#: www/views/tab-settings.html:115
|
||||||
msgid "Bitcoin Cash Wallets"
|
msgid "Bitcoin Cash Wallets"
|
||||||
msgstr ""
|
msgstr "Bitcoin Cash Wallets"
|
||||||
|
|
||||||
#: www/views/modals/chooseFeeLevel.html:4
|
#: www/views/modals/chooseFeeLevel.html:4
|
||||||
#: www/views/preferencesFee.html:4
|
#: www/views/preferencesFee.html:4
|
||||||
#: www/views/tab-settings.html:90
|
#: www/views/tab-settings.html:90
|
||||||
msgid "Bitcoin Network Fee Policy"
|
msgid "Bitcoin Network Fee Policy"
|
||||||
msgstr ""
|
msgstr "Bitcoin Network Fee Policy"
|
||||||
|
|
||||||
#: www/views/tab-home.html:83
|
#: www/views/tab-home.html:83
|
||||||
#: www/views/tab-settings.html:107
|
#: www/views/tab-settings.html:107
|
||||||
msgid "Bitcoin Core Wallets"
|
msgid "Bitcoin Core Wallets"
|
||||||
msgstr ""
|
msgstr "Bitcoin Core Wallets"
|
||||||
|
|
||||||
#: src/js/services/incomingData.js:151
|
#: src/js/services/incomingData.js:151
|
||||||
msgid "Bitcoin cash Payment"
|
msgid "Bitcoin cash Payment"
|
||||||
msgstr ""
|
msgstr "Bitcoin cash Payment"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:31
|
#: www/views/onboarding/tour.html:31
|
||||||
msgid "Bitcoin is a currency."
|
msgid "Bitcoin is a currency."
|
||||||
msgstr ""
|
msgstr "Bitcoin is a currency."
|
||||||
|
|
||||||
#: www/views/onboarding/disclaimer.html:15
|
#: www/views/onboarding/disclaimer.html:15
|
||||||
msgid "Bitcoin is different – it cannot be safely held with a bank or web service."
|
msgid "Bitcoin is different – it cannot be safely held with a bank or web service."
|
||||||
msgstr ""
|
msgstr "–."
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:18
|
#: www/views/onboarding/tour.html:18
|
||||||
msgid "Bitcoin is secure,<br>digital money."
|
msgid "Bitcoin is secure,<br>digital money."
|
||||||
msgstr ""
|
msgstr "Bitcoin là an toàn, <br> tiền kỹ thuật số."
|
||||||
|
|
||||||
#: www/views/preferencesFee.html:11
|
#: www/views/preferencesFee.html:11
|
||||||
msgid "Bitcoin transactions include a fee collected by miners on the network."
|
msgid "Bitcoin transactions include a fee collected by miners on the network."
|
||||||
msgstr ""
|
msgstr "Bitcoin transactions include a fee collected by miners on the network."
|
||||||
|
|
||||||
#: www/views/buyAmazon.html:108
|
#: www/views/buyAmazon.html:108
|
||||||
msgid "Bought {{amountUnitStr}}"
|
msgid "Bought {{amountUnitStr}}"
|
||||||
msgstr ""
|
msgstr "Bought {{amountUnitStr}}"
|
||||||
|
|
||||||
#: www/views/modals/txp-details.html:36
|
#: www/views/modals/txp-details.html:36
|
||||||
msgid "Broadcast Payment"
|
msgid "Broadcast Payment"
|
||||||
msgstr ""
|
msgstr "Broadcast Payment"
|
||||||
|
|
||||||
#: src/js/controllers/modals/txpDetails.js:64
|
#: src/js/controllers/modals/txpDetails.js:64
|
||||||
#: src/js/controllers/tx-details.js:81
|
#: src/js/controllers/tx-details.js:81
|
||||||
msgid "Broadcasted"
|
msgid "Broadcasted"
|
||||||
msgstr ""
|
msgstr "Broadcasted"
|
||||||
|
|
||||||
#: src/js/services/onGoingProcess.js:11
|
#: src/js/services/onGoingProcess.js:11
|
||||||
msgid "Broadcasting transaction"
|
msgid "Broadcasting transaction"
|
||||||
msgstr ""
|
msgstr "Broadcasting transaction"
|
||||||
|
|
||||||
#: www/views/unsupported.html:6
|
#: www/views/unsupported.html:6
|
||||||
msgid "Browser unsupported"
|
msgid "Browser unsupported"
|
||||||
msgstr ""
|
msgstr "Browser unsupported"
|
||||||
|
|
||||||
#: www/views/buyAmazon.html:5
|
#: www/views/buyAmazon.html:5
|
||||||
#: www/views/buyMercadoLibre.html:6
|
#: www/views/buyMercadoLibre.html:6
|
||||||
msgid "Buy"
|
msgid "Buy"
|
||||||
msgstr ""
|
msgstr "Buy"
|
||||||
|
|
||||||
#: www/views/includes/buyAndSellCard.html:3
|
#: www/views/includes/buyAndSellCard.html:3
|
||||||
msgid "Buy & Sell Bitcoin"
|
msgid "Buy & Sell Bitcoin"
|
||||||
msgstr ""
|
msgstr "Buy & Sell Bitcoin"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr ""
|
msgstr "Buy Bitcoin"
|
||||||
|
|
||||||
#: www/views/mercadoLibre.html:22
|
#: www/views/mercadoLibre.html:22
|
||||||
#: www/views/mercadoLibre.html:50
|
#: www/views/mercadoLibre.html:50
|
||||||
msgid "Buy a Gift Card"
|
msgid "Buy a Gift Card"
|
||||||
msgstr ""
|
msgstr "Buy a Gift Card"
|
||||||
|
|
||||||
#: src/js/controllers/buyAmazon.js:334
|
#: src/js/controllers/buyAmazon.js:334
|
||||||
msgid "Buy from"
|
msgid "Buy from"
|
||||||
msgstr ""
|
msgstr "Buy from"
|
||||||
|
|
||||||
#: src/js/services/onGoingProcess.js:40
|
#: src/js/services/onGoingProcess.js:40
|
||||||
msgid "Buying Bitcoin..."
|
msgid "Buying Bitcoin..."
|
||||||
msgstr ""
|
msgstr "Mua Bitcoin..."
|
||||||
|
|
||||||
#: src/js/services/onGoingProcess.js:12
|
#: src/js/services/onGoingProcess.js:12
|
||||||
msgid "Calculating fee"
|
msgid "Calculating fee"
|
||||||
msgstr ""
|
msgstr "Phí tính toán"
|
||||||
|
|
||||||
#: src/js/controllers/buyAmazon.js:313
|
#: src/js/controllers/buyAmazon.js:313
|
||||||
#: src/js/controllers/buyMercadoLibre.js:307
|
#: src/js/controllers/buyMercadoLibre.js:307
|
||||||
|
|
@ -470,65 +478,65 @@ msgstr ""
|
||||||
#: www/views/modals/bitpay-card-confirmation.html:8
|
#: www/views/modals/bitpay-card-confirmation.html:8
|
||||||
#: www/views/modals/confirmation.html:13
|
#: www/views/modals/confirmation.html:13
|
||||||
msgid "Cancel"
|
msgid "Cancel"
|
||||||
msgstr ""
|
msgstr "Hủy bỏ"
|
||||||
|
|
||||||
#: www/views/copayers.html:36
|
#: www/views/copayers.html:36
|
||||||
msgid "Cancel invitation"
|
msgid "Cancel invitation"
|
||||||
msgstr ""
|
msgstr "Hủy lời mời"
|
||||||
|
|
||||||
#: src/js/controllers/onboarding/tour.js:52
|
#: src/js/controllers/onboarding/tour.js:52
|
||||||
msgid "Cannot Create Wallet"
|
msgid "Cannot Create Wallet"
|
||||||
msgstr ""
|
msgstr "Không thể tạo Wallet"
|
||||||
|
|
||||||
#: src/js/services/profileService.js:442
|
#: src/js/services/profileService.js:442
|
||||||
msgid "Cannot join the same wallet more that once"
|
msgid "Cannot join the same wallet more that once"
|
||||||
msgstr ""
|
msgstr "Cannot join the same wallet more that once"
|
||||||
|
|
||||||
#: www/views/includes/bitpayCardsCard.html:2
|
#: www/views/includes/bitpayCardsCard.html:2
|
||||||
msgid "Cards"
|
msgid "Cards"
|
||||||
msgstr ""
|
msgstr "Cards"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:30
|
#: www/views/modals/paypro.html:30
|
||||||
msgid "Certified by"
|
msgid "Certified by"
|
||||||
msgstr ""
|
msgstr "Certified by"
|
||||||
|
|
||||||
#: www/views/preferencesExternal.html:19
|
#: www/views/preferencesExternal.html:19
|
||||||
msgid "Check installation and retry."
|
msgid "Check installation and retry."
|
||||||
msgstr ""
|
msgstr "Check installation and retry."
|
||||||
|
|
||||||
#: www/views/tab-import-file.html:4
|
#: www/views/tab-import-file.html:4
|
||||||
msgid "Choose a backup file from your computer"
|
msgid "Choose a backup file from your computer"
|
||||||
msgstr ""
|
msgstr "Chọn tệp sao lưu từ máy tính của bạn"
|
||||||
|
|
||||||
#: www/views/modals/wallets.html:9
|
#: www/views/modals/wallets.html:9
|
||||||
msgid "Choose your destination wallet"
|
msgid "Choose your destination wallet"
|
||||||
msgstr ""
|
msgstr "Choose your destination wallet"
|
||||||
|
|
||||||
#: www/views/modals/wallets.html:10
|
#: www/views/modals/wallets.html:10
|
||||||
msgid "Choose your source wallet"
|
msgid "Choose your source wallet"
|
||||||
msgstr ""
|
msgstr "Chọn ví nguồn của bạn"
|
||||||
|
|
||||||
#: www/views/backup.html:61
|
#: www/views/backup.html:61
|
||||||
msgid "Clear"
|
msgid "Clear"
|
||||||
msgstr ""
|
msgstr "Clear"
|
||||||
|
|
||||||
#: www/views/preferencesHistory.html:24
|
#: www/views/preferencesHistory.html:24
|
||||||
msgid "Clear cache"
|
msgid "Clear cache"
|
||||||
msgstr ""
|
msgstr "Clear cache"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:373
|
#: src/js/controllers/confirm.js:373
|
||||||
#: src/js/controllers/modals/txpDetails.js:49
|
#: src/js/controllers/modals/txpDetails.js:49
|
||||||
msgid "Click to accept"
|
msgid "Click to accept"
|
||||||
msgstr ""
|
msgstr "Click to accept"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:367
|
#: src/js/controllers/confirm.js:367
|
||||||
msgid "Click to pay"
|
msgid "Click to pay"
|
||||||
msgstr ""
|
msgstr "Click to pay"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:379
|
#: src/js/controllers/confirm.js:379
|
||||||
#: src/js/controllers/modals/txpDetails.js:42
|
#: src/js/controllers/modals/txpDetails.js:42
|
||||||
msgid "Click to send"
|
msgid "Click to send"
|
||||||
msgstr ""
|
msgstr "Click to send"
|
||||||
|
|
||||||
#: www/views/customAmount.html:4
|
#: www/views/customAmount.html:4
|
||||||
#: www/views/modals/mercadolibre-card-details.html:3
|
#: www/views/modals/mercadolibre-card-details.html:3
|
||||||
|
|
@ -538,28 +546,28 @@ msgstr ""
|
||||||
#: www/views/modals/wallet-balance.html:3
|
#: www/views/modals/wallet-balance.html:3
|
||||||
#: www/views/modals/wallets.html:5
|
#: www/views/modals/wallets.html:5
|
||||||
msgid "Close"
|
msgid "Close"
|
||||||
msgstr ""
|
msgstr "Close"
|
||||||
|
|
||||||
#: www/views/includes/cash.html:2
|
#: www/views/includes/cash.html:2
|
||||||
#: www/views/preferencesInformation.html:17
|
#: www/views/preferencesInformation.html:17
|
||||||
msgid "Coin"
|
msgid "Coin"
|
||||||
msgstr ""
|
msgstr "Coin"
|
||||||
|
|
||||||
#: www/views/preferences.html:22
|
#: www/views/preferences.html:22
|
||||||
msgid "Color"
|
msgid "Color"
|
||||||
msgstr ""
|
msgstr "Màu"
|
||||||
|
|
||||||
#: www/views/preferencesAbout.html:21
|
#: www/views/preferencesAbout.html:21
|
||||||
msgid "Commit hash"
|
msgid "Commit hash"
|
||||||
msgstr ""
|
msgstr "Commit hash"
|
||||||
|
|
||||||
#: www/views/preferences.html:49
|
#: www/views/preferences.html:49
|
||||||
msgid "Complete the backup process to use this option"
|
msgid "Complete the backup process to use this option"
|
||||||
msgstr ""
|
msgstr "Complete the backup process to use this option"
|
||||||
|
|
||||||
#: www/views/bitpayCard.html:93
|
#: www/views/bitpayCard.html:93
|
||||||
msgid "Completed"
|
msgid "Completed"
|
||||||
msgstr ""
|
msgstr "Completed"
|
||||||
|
|
||||||
#: src/js/controllers/buyAmazon.js:311
|
#: src/js/controllers/buyAmazon.js:311
|
||||||
#: src/js/controllers/buyMercadoLibre.js:305
|
#: src/js/controllers/buyMercadoLibre.js:305
|
||||||
|
|
@ -571,95 +579,99 @@ msgstr ""
|
||||||
#: www/views/confirm.html:4
|
#: www/views/confirm.html:4
|
||||||
#: www/views/onboarding/collectEmail.html:32
|
#: www/views/onboarding/collectEmail.html:32
|
||||||
msgid "Confirm"
|
msgid "Confirm"
|
||||||
msgstr ""
|
msgstr "Confirm"
|
||||||
|
|
||||||
#: www/views/modals/terms.html:26
|
#: www/views/modals/terms.html:26
|
||||||
#: www/views/onboarding/disclaimer.html:44
|
#: www/views/onboarding/disclaimer.html:44
|
||||||
msgid "Confirm & Finish"
|
msgid "Confirm & Finish"
|
||||||
msgstr ""
|
msgstr "Confirm & Finish"
|
||||||
|
|
||||||
#: www/views/buyAmazon.html:90
|
#: www/views/buyAmazon.html:90
|
||||||
msgid "Confirm purchase"
|
msgid "Confirm purchase"
|
||||||
msgstr ""
|
msgstr "Confirm purchase"
|
||||||
|
|
||||||
#: www/views/modals/pin.html:10
|
#: www/views/modals/pin.html:10
|
||||||
msgid "Confirm your PIN"
|
msgid "Confirm your PIN"
|
||||||
msgstr ""
|
msgstr "Confirm your PIN"
|
||||||
|
|
||||||
#: src/js/services/walletService.js:1033
|
#: src/js/services/walletService.js:1033
|
||||||
msgid "Confirm your new spending password"
|
msgid "Confirm your new spending password"
|
||||||
msgstr ""
|
msgstr "Confirm your new spending password"
|
||||||
|
|
||||||
#: www/views/tx-details.html:98
|
#: www/views/tx-details.html:98
|
||||||
msgid "Confirmations"
|
msgid "Confirmations"
|
||||||
msgstr ""
|
msgstr "Confirmations"
|
||||||
|
|
||||||
#: www/views/bitpayCard.html:68
|
#: www/views/bitpayCard.html:68
|
||||||
#: www/views/modals/wallet-balance.html:61
|
#: www/views/modals/wallet-balance.html:61
|
||||||
msgid "Confirming"
|
msgid "Confirming"
|
||||||
msgstr ""
|
msgstr "Xác nhận"
|
||||||
|
|
||||||
#: www/views/bitpayCardIntro.html:37
|
#: www/views/bitpayCardIntro.html:37
|
||||||
msgid "Connect my BitPay Card"
|
msgid "Connect my BitPay Card"
|
||||||
msgstr ""
|
msgstr "Kết nối thẻ BitPay của tôi"
|
||||||
|
|
||||||
#: src/js/services/onGoingProcess.js:13
|
#: src/js/services/onGoingProcess.js:13
|
||||||
msgid "Connecting to Coinbase..."
|
msgid "Connecting to Coinbase..."
|
||||||
msgstr ""
|
msgstr "Connecting to Coinbase..."
|
||||||
|
|
||||||
#: src/js/services/onGoingProcess.js:14
|
#: src/js/services/onGoingProcess.js:14
|
||||||
msgid "Connecting to Glidera..."
|
msgid "Connecting to Glidera..."
|
||||||
msgstr ""
|
msgstr "Đang kết nối với Glidera ..."
|
||||||
|
|
||||||
#: src/js/services/bwcError.js:53
|
#: src/js/services/bwcError.js:53
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr ""
|
msgstr "Đặt lại kết nối theo ngang hàng"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr ""
|
msgstr "Contacts"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "Save the regular usage"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr ""
|
msgstr "Continue"
|
||||||
|
|
||||||
#: www/views/preferencesLanguage.html:26
|
#: www/views/preferencesLanguage.html:26
|
||||||
msgid "Contribute Translations"
|
msgid "Contribute Translations"
|
||||||
msgstr ""
|
msgstr "Contribute Translations"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:130
|
#: src/js/controllers/confirm.js:130
|
||||||
msgid "Copay only supports Bitcoin Cash using new version numbers addresses"
|
msgid "Copay only supports Bitcoin Cash using new version numbers addresses"
|
||||||
msgstr ""
|
msgstr "Copay chỉ hỗ trợ Bitcoin Cash bằng cách sử dụng số phiên bản mới"
|
||||||
|
|
||||||
#: src/js/services/bwcError.js:62
|
#: src/js/services/bwcError.js:62
|
||||||
msgid "Copayer already in this wallet"
|
msgid "Copayer already in this wallet"
|
||||||
msgstr ""
|
msgstr "Copayer already in this wallet"
|
||||||
|
|
||||||
#: src/js/services/bwcError.js:77
|
#: src/js/services/bwcError.js:77
|
||||||
msgid "Copayer already voted on this spend proposal"
|
msgid "Copayer already voted on this spend proposal"
|
||||||
msgstr ""
|
msgstr "Coper is this option"
|
||||||
|
|
||||||
#: src/js/services/bwcError.js:107
|
#: src/js/services/bwcError.js:107
|
||||||
msgid "Copayer data mismatch"
|
msgid "Copayer data mismatch"
|
||||||
msgstr ""
|
msgstr "Dữ liệu Copayer không khớp"
|
||||||
|
|
||||||
#: www/views/includes/walletActivity.html:2
|
#: www/views/includes/walletActivity.html:2
|
||||||
msgid "Copayer joined"
|
msgid "Copayer joined"
|
||||||
msgstr ""
|
msgstr "Copayer joined"
|
||||||
|
|
||||||
#: www/views/preferencesInformation.html:94
|
#: www/views/preferencesInformation.html:94
|
||||||
msgid "Copayer {{$index}}"
|
msgid "Copayer {{$index}}"
|
||||||
msgstr ""
|
msgstr "Copayer {{$index}}"
|
||||||
|
|
||||||
#: src/js/controllers/copayers.js:79
|
#: src/js/controllers/copayers.js:79
|
||||||
#: src/js/controllers/export.js:193
|
#: src/js/controllers/export.js:193
|
||||||
#: www/views/includes/copyToClipboard.html:4
|
#: www/views/includes/copyToClipboard.html:4
|
||||||
msgid "Copied to clipboard"
|
msgid "Copied to clipboard"
|
||||||
msgstr ""
|
msgstr "Sao chép vào clipboard"
|
||||||
|
|
||||||
#: www/views/tab-export-file.html:94
|
#: www/views/tab-export-file.html:94
|
||||||
msgid "Copy this text as it is to a safe place (notepad or email)"
|
msgid "Copy this text as it is to a safe place (notepad or email)"
|
||||||
msgstr ""
|
msgstr "Copy this text as it is to a safe place (notepad or email)"
|
||||||
|
|
||||||
#: www/views/includes/incomingDataMenu.html:51
|
#: www/views/includes/incomingDataMenu.html:51
|
||||||
#: www/views/includes/incomingDataMenu.html:70
|
#: www/views/includes/incomingDataMenu.html:70
|
||||||
|
|
@ -667,35 +679,35 @@ msgstr ""
|
||||||
#: www/views/includes/logOptions.html:9
|
#: www/views/includes/logOptions.html:9
|
||||||
#: www/views/tab-export-file.html:78
|
#: www/views/tab-export-file.html:78
|
||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr ""
|
msgstr "Sao chép vào clipboard"
|
||||||
|
|
||||||
#: src/js/controllers/buyMercadoLibre.js:102
|
#: src/js/controllers/buyMercadoLibre.js:102
|
||||||
msgid "Could not access Gift Card Service"
|
msgid "Could not access Gift Card Service"
|
||||||
msgstr ""
|
msgstr "Could not access Gift Card Service"
|
||||||
|
|
||||||
#: www/views/tab-import-phrase.html:2
|
#: www/views/tab-import-phrase.html:2
|
||||||
msgid "Could not access the wallet at the server. Please check:"
|
msgid "Could not access the wallet at the server. Please check:"
|
||||||
msgstr ""
|
msgstr "Could not access the wallet at the server. Please check:"
|
||||||
|
|
||||||
#: src/js/controllers/buyAmazon.js:102
|
#: src/js/controllers/buyAmazon.js:102
|
||||||
msgid "Could not access to Amazon.com"
|
msgid "Could not access to Amazon.com"
|
||||||
msgstr ""
|
msgstr "Could not access to Amazon.com"
|
||||||
|
|
||||||
#: src/js/services/profileService.js:511
|
#: src/js/services/profileService.js:511
|
||||||
msgid "Could not access wallet"
|
msgid "Could not access wallet"
|
||||||
msgstr ""
|
msgstr "Could not access wallet"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:210
|
#: src/js/controllers/confirm.js:210
|
||||||
msgid "Could not add message to imported wallet without shared encrypting key"
|
msgid "Could not add message to imported wallet without shared encrypting key"
|
||||||
msgstr ""
|
msgstr "Could not add message to imported wallet without shared encrypting key"
|
||||||
|
|
||||||
#: src/js/controllers/modals/txpDetails.js:199
|
#: src/js/controllers/modals/txpDetails.js:199
|
||||||
msgid "Could not broadcast payment"
|
msgid "Could not broadcast payment"
|
||||||
msgstr ""
|
msgstr "Could not broadcast payment"
|
||||||
|
|
||||||
#: src/js/services/bwcError.js:41
|
#: src/js/services/bwcError.js:41
|
||||||
msgid "Could not build transaction"
|
msgid "Could not build transaction"
|
||||||
msgstr ""
|
msgstr "Cannot build transaction"
|
||||||
|
|
||||||
#: src/js/services/walletService.js:854
|
#: src/js/services/walletService.js:854
|
||||||
msgid "Could not create address"
|
msgid "Could not create address"
|
||||||
|
|
@ -819,7 +831,7 @@ msgstr ""
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
@ -912,7 +924,7 @@ msgstr ""
|
||||||
#: www/views/modals/mercadolibre-card-details.html:6
|
#: www/views/modals/mercadolibre-card-details.html:6
|
||||||
#: www/views/topup.html:45
|
#: www/views/topup.html:45
|
||||||
msgid "Details"
|
msgid "Details"
|
||||||
msgstr ""
|
msgstr "Chi tiết"
|
||||||
|
|
||||||
#: src/js/controllers/lockSetup.js:9
|
#: src/js/controllers/lockSetup.js:9
|
||||||
#: src/js/controllers/tab-settings.js:65
|
#: src/js/controllers/tab-settings.js:65
|
||||||
|
|
@ -2529,6 +2541,14 @@ msgstr ""
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -2587,9 +2607,70 @@ msgid "Send by email"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -3632,3 +3713,51 @@ msgstr ""
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ msgstr ""
|
||||||
"Last-Translator: emilold\n"
|
"Last-Translator: emilold\n"
|
||||||
"Language-Team: Chinese Simplified\n"
|
"Language-Team: Chinese Simplified\n"
|
||||||
"Language: zh\n"
|
"Language: zh\n"
|
||||||
"PO-Revision-Date: 2018-06-22T04:02:44+0000\n"
|
"PO-Revision-Date: 2018-07-27 08:43\n"
|
||||||
|
|
||||||
#: www/views/modals/paypro.html:34
|
#: www/views/modals/paypro.html:34
|
||||||
msgid "(Trusted)"
|
msgid "(Trusted)"
|
||||||
|
|
@ -77,6 +77,10 @@ msgstr "帐户"
|
||||||
msgid "Account Number"
|
msgid "Account Number"
|
||||||
msgstr "帐号"
|
msgstr "帐号"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:61
|
||||||
|
msgid "Instant transactions with low fees"
|
||||||
|
msgstr "以较低费用进行即时交易"
|
||||||
|
|
||||||
#: www/views/preferencesBitpayServices.html:23
|
#: www/views/preferencesBitpayServices.html:23
|
||||||
msgid "Accounts"
|
msgid "Accounts"
|
||||||
msgstr "帐户"
|
msgstr "帐户"
|
||||||
|
|
@ -359,12 +363,12 @@ msgstr "比特币地址"
|
||||||
|
|
||||||
#: www/views/cashScan.html:4
|
#: www/views/cashScan.html:4
|
||||||
msgid "Bitcoin Cash (BCH) Balances"
|
msgid "Bitcoin Cash (BCH) Balances"
|
||||||
msgstr ""
|
msgstr "Bitcoin Cash (BCH) 余额"
|
||||||
|
|
||||||
#: www/views/preferencesCash.html:3
|
#: www/views/preferencesCash.html:3
|
||||||
#: www/views/tab-settings.html:47
|
#: www/views/tab-settings.html:47
|
||||||
msgid "Bitcoin Cash Support"
|
msgid "Bitcoin Cash Support"
|
||||||
msgstr ""
|
msgstr "Bitcoin Cash 支持"
|
||||||
|
|
||||||
#: www/views/tab-home.html:98
|
#: www/views/tab-home.html:98
|
||||||
#: www/views/tab-settings.html:115
|
#: www/views/tab-settings.html:115
|
||||||
|
|
@ -380,7 +384,7 @@ msgstr "比特币网络手续费策略"
|
||||||
#: www/views/tab-home.html:83
|
#: www/views/tab-home.html:83
|
||||||
#: www/views/tab-settings.html:107
|
#: www/views/tab-settings.html:107
|
||||||
msgid "Bitcoin Core Wallets"
|
msgid "Bitcoin Core Wallets"
|
||||||
msgstr ""
|
msgstr "Bitcoin Core 钱包"
|
||||||
|
|
||||||
#: src/js/services/incomingData.js:151
|
#: src/js/services/incomingData.js:151
|
||||||
msgid "Bitcoin cash Payment"
|
msgid "Bitcoin cash Payment"
|
||||||
|
|
@ -433,6 +437,7 @@ msgid "Buy & Sell Bitcoin"
|
||||||
msgstr "购买或出售比特币"
|
msgstr "购买或出售比特币"
|
||||||
|
|
||||||
#: www/views/tab-send.html:35
|
#: www/views/tab-send.html:35
|
||||||
|
#: src/js/services/buyAndSellService.js:26
|
||||||
msgid "Buy Bitcoin"
|
msgid "Buy Bitcoin"
|
||||||
msgstr "购买比特币"
|
msgstr "购买比特币"
|
||||||
|
|
||||||
|
|
@ -615,10 +620,14 @@ msgstr "正在连接 Glidera..."
|
||||||
msgid "Connection reset by peer"
|
msgid "Connection reset by peer"
|
||||||
msgstr "连接被对方重置"
|
msgstr "连接被对方重置"
|
||||||
|
|
||||||
#: www/views/tab-send.html:45
|
#: www/views/tab-send.html:85
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "联系人"
|
msgstr "联系人"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:86
|
||||||
|
msgid "Saved frequently used addresses"
|
||||||
|
msgstr "保存的常用地址"
|
||||||
|
|
||||||
#: www/views/onboarding/notifications.html:9
|
#: www/views/onboarding/notifications.html:9
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "继续"
|
msgstr "继续"
|
||||||
|
|
@ -649,7 +658,7 @@ msgstr "Copayer 加入"
|
||||||
|
|
||||||
#: www/views/preferencesInformation.html:94
|
#: www/views/preferencesInformation.html:94
|
||||||
msgid "Copayer {{$index}}"
|
msgid "Copayer {{$index}}"
|
||||||
msgstr ""
|
msgstr "Copayer {{$index}}"
|
||||||
|
|
||||||
#: src/js/controllers/copayers.js:79
|
#: src/js/controllers/copayers.js:79
|
||||||
#: src/js/controllers/export.js:193
|
#: src/js/controllers/export.js:193
|
||||||
|
|
@ -819,7 +828,7 @@ msgstr "创建自己的免费钱包"
|
||||||
|
|
||||||
#: www/views/onboarding/tour.html:51
|
#: www/views/onboarding/tour.html:51
|
||||||
#: www/views/tab-home.html:75
|
#: www/views/tab-home.html:75
|
||||||
#: www/views/tab-send.html:36
|
#: www/views/tab-send.html:75
|
||||||
msgid "Create bitcoin wallet"
|
msgid "Create bitcoin wallet"
|
||||||
msgstr "创建比特币的钱包"
|
msgstr "创建比特币的钱包"
|
||||||
|
|
||||||
|
|
@ -973,7 +982,7 @@ msgstr "已达到空地址限制。无法生成新的地址。"
|
||||||
|
|
||||||
#: www/views/preferencesCash.html:17
|
#: www/views/preferencesCash.html:17
|
||||||
msgid "Enable Bitcoin Cash wallet creation and operation within the App."
|
msgid "Enable Bitcoin Cash wallet creation and operation within the App."
|
||||||
msgstr ""
|
msgstr "在应用内启用 Bitcoin Cash 创建和操作。"
|
||||||
|
|
||||||
#: www/views/tab-scan.html:19
|
#: www/views/tab-scan.html:19
|
||||||
msgid "Enable camera access in your device settings to get started."
|
msgid "Enable camera access in your device settings to get started."
|
||||||
|
|
@ -989,7 +998,7 @@ msgstr "启用推式通知"
|
||||||
|
|
||||||
#: www/views/preferencesNotifications.html:33
|
#: www/views/preferencesNotifications.html:33
|
||||||
msgid "Enable sound"
|
msgid "Enable sound"
|
||||||
msgstr ""
|
msgstr "启用声音"
|
||||||
|
|
||||||
#: www/views/tab-scan.html:18
|
#: www/views/tab-scan.html:18
|
||||||
msgid "Enable the camera to get started."
|
msgid "Enable the camera to get started."
|
||||||
|
|
@ -997,7 +1006,7 @@ msgstr "使该摄像机开始。"
|
||||||
|
|
||||||
#: www/views/tab-settings.html:49
|
#: www/views/tab-settings.html:49
|
||||||
msgid "Enabled"
|
msgid "Enabled"
|
||||||
msgstr ""
|
msgstr "已启用"
|
||||||
|
|
||||||
#: src/js/services/walletService.js:1047
|
#: src/js/services/walletService.js:1047
|
||||||
#: src/js/services/walletService.js:1062
|
#: src/js/services/walletService.js:1062
|
||||||
|
|
@ -1582,7 +1591,7 @@ msgstr "网络地址不正确"
|
||||||
#: src/js/controllers/confirm.js:306
|
#: src/js/controllers/confirm.js:306
|
||||||
#: src/js/services/bwcError.js:44
|
#: src/js/services/bwcError.js:44
|
||||||
msgid "Insufficient confirmed funds"
|
msgid "Insufficient confirmed funds"
|
||||||
msgstr ""
|
msgstr "确认的资金不足"
|
||||||
|
|
||||||
#: src/js/controllers/topup.js:165
|
#: src/js/controllers/topup.js:165
|
||||||
#: src/js/controllers/topup.js:177
|
#: src/js/controllers/topup.js:177
|
||||||
|
|
@ -2007,7 +2016,7 @@ msgstr "好的"
|
||||||
#: www/views/modals/tx-status.html:36
|
#: www/views/modals/tx-status.html:36
|
||||||
#: www/views/modals/tx-status.html:46
|
#: www/views/modals/tx-status.html:46
|
||||||
msgid "OKAY"
|
msgid "OKAY"
|
||||||
msgstr ""
|
msgstr "确定"
|
||||||
|
|
||||||
#: www/views/modals/terms.html:15
|
#: www/views/modals/terms.html:15
|
||||||
msgid "Official English Disclaimer"
|
msgid "Official English Disclaimer"
|
||||||
|
|
@ -2049,7 +2058,7 @@ msgstr "打开 GitHub 项目"
|
||||||
#: src/js/controllers/bitpayCard.js:123
|
#: src/js/controllers/bitpayCard.js:123
|
||||||
#: src/js/controllers/tx-details.js:192
|
#: src/js/controllers/tx-details.js:192
|
||||||
msgid "Open Explorer"
|
msgid "Open Explorer"
|
||||||
msgstr ""
|
msgstr "打开浏览器"
|
||||||
|
|
||||||
#: www/views/tab-scan.html:22
|
#: www/views/tab-scan.html:22
|
||||||
msgid "Open Settings"
|
msgid "Open Settings"
|
||||||
|
|
@ -2065,7 +2074,7 @@ msgstr "打开网站"
|
||||||
|
|
||||||
#: src/js/controllers/preferencesCash.js:32
|
#: src/js/controllers/preferencesCash.js:32
|
||||||
msgid "Open bitcoincash.org?"
|
msgid "Open bitcoincash.org?"
|
||||||
msgstr ""
|
msgstr "打开 bitcoincash.org?"
|
||||||
|
|
||||||
#: src/js/controllers/cashScan.js:18
|
#: src/js/controllers/cashScan.js:18
|
||||||
msgid "Open the recovery tool."
|
msgid "Open the recovery tool."
|
||||||
|
|
@ -2507,7 +2516,7 @@ msgstr "请扫描你的指纹"
|
||||||
|
|
||||||
#: www/views/preferencesCash.html:23
|
#: www/views/preferencesCash.html:23
|
||||||
msgid "Scan your wallets for Bitcoin Cash"
|
msgid "Scan your wallets for Bitcoin Cash"
|
||||||
msgstr ""
|
msgstr "扫描您的 Bitcoin Cash 钱包"
|
||||||
|
|
||||||
#: src/js/services/onGoingProcess.js:30
|
#: src/js/services/onGoingProcess.js:30
|
||||||
msgid "Scanning Wallet funds..."
|
msgid "Scanning Wallet funds..."
|
||||||
|
|
@ -2529,6 +2538,14 @@ msgstr "搜索交易"
|
||||||
msgid "Search or enter bitcoin address"
|
msgid "Search or enter bitcoin address"
|
||||||
msgstr "搜索或输入比特币地址"
|
msgstr "搜索或输入比特币地址"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:28
|
||||||
|
msgid "Clipboard"
|
||||||
|
msgstr "剪贴板"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:29
|
||||||
|
msgid "Your Clipboard is empty"
|
||||||
|
msgstr "您的剪贴板为空"
|
||||||
|
|
||||||
#: www/views/modals/search.html:16
|
#: www/views/modals/search.html:16
|
||||||
msgid "Search transactions"
|
msgid "Search transactions"
|
||||||
msgstr "搜索交易"
|
msgstr "搜索交易"
|
||||||
|
|
@ -2587,9 +2604,70 @@ msgid "Send by email"
|
||||||
msgstr "通过电邮发送"
|
msgstr "通过电邮发送"
|
||||||
|
|
||||||
#: src/js/controllers/confirm.js:177
|
#: src/js/controllers/confirm.js:177
|
||||||
|
#: src/js/controllers/tab-send.js:94
|
||||||
msgid "Send from"
|
msgid "Send from"
|
||||||
msgstr "从发送"
|
msgstr "从发送"
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-send.js:77
|
||||||
|
msgid "Send to"
|
||||||
|
msgstr "发送到"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:20
|
||||||
|
msgid "Paste Clipboard"
|
||||||
|
msgstr "粘贴剪贴板"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:21
|
||||||
|
msgid "Paste Address"
|
||||||
|
msgstr "粘贴地址"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:27
|
||||||
|
msgid "Wallet to Wallet Transfer"
|
||||||
|
msgstr "钱包转账"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:35
|
||||||
|
msgid "Scan QR Code"
|
||||||
|
msgstr "扫描二维码"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "更快地发送比特币!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:46
|
||||||
|
msgid "Send Bitcoin faster!"
|
||||||
|
msgstr "更快地发送比特币!"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:50
|
||||||
|
msgid "Save frequently used addresses and send them Bitcoin in just one tap"
|
||||||
|
msgstr "保存常用地址,只需点击一下即可将比特币发送到这些地址"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:55
|
||||||
|
msgid "Add your first contact"
|
||||||
|
msgstr "添加您的第一个联系人"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:65
|
||||||
|
msgid "Your Bitcoin wallet is empty"
|
||||||
|
msgstr "您的比特币钱包为空"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:69
|
||||||
|
msgid "To get started, buy Bitcoin Cash (BCH) or Bitcoin Core (BTC), or share your address."
|
||||||
|
msgstr "首先,购买 Bitcoin Cash (BCH) 或 Bitcoin Core (BTC),或者共享您的地址。"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:70
|
||||||
|
msgid "You can receive bitcoin from any wallet or service."
|
||||||
|
msgstr "您可以从任何钱包或服务接收比特币。"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:72
|
||||||
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
|
msgstr "若要开始,您将需要创建一个比特币的钱包,并获得一些比特币。"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:74
|
||||||
|
msgid "Buy Bitcoin now"
|
||||||
|
msgstr "立即购买比特币"
|
||||||
|
|
||||||
|
#: www/views/tab-send.html:76
|
||||||
|
msgid "Show my address"
|
||||||
|
msgstr "显示我的地址"
|
||||||
|
|
||||||
#: www/views/includes/itemSelector.html:8
|
#: www/views/includes/itemSelector.html:8
|
||||||
msgid "Send max amount"
|
msgid "Send max amount"
|
||||||
msgstr "发送最大数量"
|
msgstr "发送最大数量"
|
||||||
|
|
@ -2806,7 +2884,7 @@ msgstr "超级经济"
|
||||||
|
|
||||||
#: www/views/preferencesCash.html:11
|
#: www/views/preferencesCash.html:11
|
||||||
msgid "Support Bitcoin Cash"
|
msgid "Support Bitcoin Cash"
|
||||||
msgstr ""
|
msgstr "支持 Bitcoin Cash"
|
||||||
|
|
||||||
#: www/views/paperWallet.html:7
|
#: www/views/paperWallet.html:7
|
||||||
msgid "Sweep"
|
msgid "Sweep"
|
||||||
|
|
@ -2856,7 +2934,7 @@ msgstr "使用条款"
|
||||||
#: www/views/tab-create-personal.html:118
|
#: www/views/tab-create-personal.html:118
|
||||||
#: www/views/tab-import-phrase.html:68
|
#: www/views/tab-import-phrase.html:68
|
||||||
msgid "Testnet"
|
msgid "Testnet"
|
||||||
msgstr ""
|
msgstr "测试网"
|
||||||
|
|
||||||
#: www/views/includes/incomingDataMenu.html:61
|
#: www/views/includes/incomingDataMenu.html:61
|
||||||
msgid "Text"
|
msgid "Text"
|
||||||
|
|
@ -3026,7 +3104,7 @@ msgstr "若要开始,请买比特币或共享您的地址。你可以从任何
|
||||||
|
|
||||||
#: www/views/tab-send.html:33
|
#: www/views/tab-send.html:33
|
||||||
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
msgid "To get started, you'll need to create a bitcoin wallet and get some bitcoin."
|
||||||
msgstr "若要开始,您将需要创建一个比特币的钱包,并获得一些比特币。"
|
msgstr "首先,您需要创建一个比特币钱包,并获得一些比特币。"
|
||||||
|
|
||||||
#: src/js/services/bitpayAccountService.js:73
|
#: src/js/services/bitpayAccountService.js:73
|
||||||
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
msgid "To {{reason}} you must first add your BitPay account - {{email}}"
|
||||||
|
|
@ -3196,7 +3274,7 @@ msgstr "查看服务条款"
|
||||||
#: src/js/controllers/bitpayCard.js:122
|
#: src/js/controllers/bitpayCard.js:122
|
||||||
#: src/js/controllers/tx-details.js:191
|
#: src/js/controllers/tx-details.js:191
|
||||||
msgid "View Transaction on Explorer.Bitcoin.com"
|
msgid "View Transaction on Explorer.Bitcoin.com"
|
||||||
msgstr ""
|
msgstr "在 Explorer.Bitcoin.com 上查看交易"
|
||||||
|
|
||||||
#: src/js/controllers/tab-home.js:148
|
#: src/js/controllers/tab-home.js:148
|
||||||
msgid "View Update"
|
msgid "View Update"
|
||||||
|
|
@ -3592,7 +3670,7 @@ msgstr "我"
|
||||||
|
|
||||||
#: www/views/addressbook.add.html:32
|
#: www/views/addressbook.add.html:32
|
||||||
msgid "name@example.com"
|
msgid "name@example.com"
|
||||||
msgstr ""
|
msgstr "name@example.com"
|
||||||
|
|
||||||
#: www/views/preferencesHistory.html:15
|
#: www/views/preferencesHistory.html:15
|
||||||
msgid "preparing..."
|
msgid "preparing..."
|
||||||
|
|
@ -3632,3 +3710,51 @@ msgstr "下载的 {{updatingTxHistoryProgress}} 交易"
|
||||||
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
msgid "{{wallet.m}}-of-{{wallet.n}}"
|
||||||
msgstr "{{wallet.m}}{{wallet.n}}"
|
msgstr "{{wallet.m}}{{wallet.n}}"
|
||||||
|
|
||||||
|
#: src/js/services/shapeshiftService.js:8
|
||||||
|
msgid "Shapeshift"
|
||||||
|
msgstr "Shapeshift"
|
||||||
|
|
||||||
|
#: www/views/includes/community.html:3
|
||||||
|
msgid "Community"
|
||||||
|
msgstr "社区"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:40
|
||||||
|
msgid "Bitcoin Cash Reddit"
|
||||||
|
msgstr "Bitcoin Cash Reddit"
|
||||||
|
|
||||||
|
#: src/js/services/communityService.js:47
|
||||||
|
msgid "Bitcoin.com Twitter"
|
||||||
|
msgstr "Bitcoin.com Twitter"
|
||||||
|
|
||||||
|
#: www/views/includes/nextSteps.html:3
|
||||||
|
msgid "Explore Bitcoin.com"
|
||||||
|
msgstr "探索 Bitcoin.com"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:21
|
||||||
|
msgid "Bitcoin Cash Games"
|
||||||
|
msgstr "Bitcoin Cash 游戏"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:28
|
||||||
|
msgid "News"
|
||||||
|
msgstr "新闻"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:35
|
||||||
|
msgid "Mining Pool"
|
||||||
|
msgstr "矿池"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:42
|
||||||
|
msgid "Tools"
|
||||||
|
msgstr "工具"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:49
|
||||||
|
msgid "Bitcoin Price Charts"
|
||||||
|
msgstr "比特币价格图表"
|
||||||
|
|
||||||
|
#: src/js/services/bitcoincomService.js:56
|
||||||
|
msgid "Free Bitcoin Cash"
|
||||||
|
msgstr "免费的 Bitcoin Cash"
|
||||||
|
|
||||||
|
#: www/views/tab-home.html:30
|
||||||
|
msgid "Your Bitcoin Wallets are ready!"
|
||||||
|
msgstr "您的比特币钱包已就绪!"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
"postinstall": "npm run apply:copay && echo && echo \"Repo configured for standard Copay distribution. To switch to the BitPay distribution, run 'npm run apply:bitpay'.\" && echo",
|
"postinstall": "npm run apply:copay && echo && echo \"Repo configured for standard Copay distribution. To switch to the BitPay distribution, run 'npm run apply:bitpay'.\" && echo",
|
||||||
"start": "echo && echo \"Choose a distribution by running 'npm run apply:copay' or 'npm run apply:bitpay'.\" && echo",
|
"start": "echo && echo \"Choose a distribution by running 'npm run apply:copay' or 'npm run apply:bitpay'.\" && echo",
|
||||||
"apply:copay": "npm i fs-extra@0.30 && cd app-template && node apply.js copay && cd .. && npm i",
|
"apply:copay": "npm i fs-extra@0.30 && cd app-template && node apply.js copay && cd .. && npm i",
|
||||||
"apply:bitcoincom": "npm i fs-extra && cd app-template && node apply.js bitcoincom && npm i && cordova prepare",
|
"apply:bitcoincom": "npm i fs-extra && cd app-template && node apply.js bitcoincom && npm i && cordova prepare && cd ../ && ./fix-asn1.sh",
|
||||||
"apply:bitpay": "npm i fs-extra@0.30 && cd app-template && node apply.js bitpay && cd .. && npm i",
|
"apply:bitpay": "npm i fs-extra@0.30 && cd app-template && node apply.js bitpay && cd .. && npm i",
|
||||||
"unstage-package": "git reset package.json",
|
"unstage-package": "git reset package.json",
|
||||||
"clean-all": "git clean -dfx"
|
"clean-all": "git clean -dfx"
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,25 @@
|
||||||
configurations.all {
|
ext {
|
||||||
resolutionStrategy {
|
ANDROID_SUPPORT_V4_VERSION = '26.1.0'
|
||||||
force "com.android.support:support-v4:26.1.0"
|
}
|
||||||
force "com.google.android.gms:play-services-auth:11.8.0"
|
|
||||||
force "com.google.android.gms:play-services-identity:11.8.0"
|
configurations.all {
|
||||||
force "com.google.android.gms:play-services-ads:11.8.0"
|
resolutionStrategy {
|
||||||
force "com.google.android.gms:play-services-base:11.8.0"
|
force "com.android.support:support-v4:26.1.0"
|
||||||
force "com.google.android.gms:play-services-gcm:11.8.0"
|
force "com.google.android.gms:play-services-auth:11.8.0"
|
||||||
force "com.google.android.gms:play-services-analytics:11.8.0"
|
force "com.google.android.gms:play-services-identity:11.8.0"
|
||||||
force "com.google.android.gms:play-services-location:11.8.0"
|
force "com.google.android.gms:play-services-ads:11.8.0"
|
||||||
force "com.google.android.gms:play-services-basement:11.8.0"
|
force "com.google.android.gms:play-services-base:11.8.0"
|
||||||
force "com.google.android.gms:play-services-tagmanager:11.8.0"
|
force "com.google.android.gms:play-services-gcm:11.8.0"
|
||||||
force 'com.google.firebase:firebase-core:11.8.0'
|
force "com.google.android.gms:play-services-analytics:11.8.0"
|
||||||
force 'com.google.firebase:firebase-crash:11.8.0'
|
force "com.google.android.gms:play-services-location:11.8.0"
|
||||||
force 'com.google.firebase:firebase-auth:11.8.0'
|
force "com.google.android.gms:play-services-basement:11.8.0"
|
||||||
force 'com.google.firebase:firebase-common:11.8.0'
|
force "com.google.android.gms:play-services-tagmanager:11.8.0"
|
||||||
force 'com.google.firebase:firebase-config:11.8.0'
|
force 'com.google.firebase:firebase-core:11.8.0'
|
||||||
force 'com.google.firebase:firebase-perf:11.8.0'
|
force 'com.google.firebase:firebase-crash:11.8.0'
|
||||||
force 'com.google.firebase:firebase-messaging:11.8.0'
|
force 'com.google.firebase:firebase-auth:11.8.0'
|
||||||
}
|
force 'com.google.firebase:firebase-common:11.8.0'
|
||||||
|
force 'com.google.firebase:firebase-config:11.8.0'
|
||||||
|
force 'com.google.firebase:firebase-perf:11.8.0'
|
||||||
|
force 'com.google.firebase:firebase-messaging:11.8.0'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('addressbookAddController', function($scope, $state, $stateParams, $timeout, $ionicHistory, gettextCatalog, addressbookService, popupService, configService, bitcoinCashJsService) {
|
angular.module('copayApp.controllers').controller('addressbookAddController', function($scope, $state, $stateParams, $timeout, $ionicHistory, gettextCatalog, addressbookService, popupService, configService, bitcoinCashJsService, platformInfo) {
|
||||||
|
|
||||||
var config = configService.getSync();
|
var config = configService.getSync();
|
||||||
var defaults = configService.getDefaults();
|
var defaults = configService.getDefaults();
|
||||||
|
|
@ -21,6 +21,9 @@ angular.module('copayApp.controllers').controller('addressbookAddController', fu
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
var form = addressbookForm;
|
var form = addressbookForm;
|
||||||
if (data && form) {
|
if (data && form) {
|
||||||
|
if (data.result) {
|
||||||
|
data = data.result;
|
||||||
|
}
|
||||||
data = data.replace(/^bitcoin(cash)?:/, '');
|
data = data.replace(/^bitcoin(cash)?:/, '');
|
||||||
form.address.$setViewValue(data);
|
form.address.$setViewValue(data);
|
||||||
form.address.$isValid = true;
|
form.address.$isValid = true;
|
||||||
|
|
@ -35,6 +38,16 @@ angular.module('copayApp.controllers').controller('addressbookAddController', fu
|
||||||
var translated = bitcoinCashJsService.readAddress(addressbook.address);
|
var translated = bitcoinCashJsService.readAddress(addressbook.address);
|
||||||
addressbook.address = translated.legacy;
|
addressbook.address = translated.legacy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var channel = "ga";
|
||||||
|
if (platformInfo.isCordova) {
|
||||||
|
channel = "firebase";
|
||||||
|
}
|
||||||
|
var log = new window.BitAnalytics.LogEvent("contact_created", [{
|
||||||
|
"coin": $scope.addressbookEntry.coin
|
||||||
|
}], [channel]);
|
||||||
|
window.BitAnalytics.LogEventHandlers.postEvent(log);
|
||||||
|
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
addressbookService.add(addressbook, function(err, ab) {
|
addressbookService.add(addressbook, function(err, ab) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('addressbookViewController', function($scope, $state, $timeout, lodash, addressbookService, popupService, $ionicHistory, platformInfo, gettextCatalog, configService, bitcoinCashJsService) {
|
angular.module('copayApp.controllers').controller('addressbookViewController', function($scope, sendFlowService, $state, $timeout, lodash, addressbookService, popupService, $ionicHistory, platformInfo, gettextCatalog, configService, bitcoinCashJsService) {
|
||||||
|
|
||||||
var config = configService.getSync();
|
var config = configService.getSync();
|
||||||
var defaults = configService.getDefaults();
|
var defaults = configService.getDefaults();
|
||||||
|
|
@ -22,6 +22,7 @@ angular.module('copayApp.controllers').controller('addressbookViewController', f
|
||||||
|
|
||||||
$scope.sendTo = function() {
|
$scope.sendTo = function() {
|
||||||
$ionicHistory.removeBackView();
|
$ionicHistory.removeBackView();
|
||||||
|
sendFlowService.clear();
|
||||||
$state.go('tabs.send');
|
$state.go('tabs.send');
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
var to = '';
|
var to = '';
|
||||||
|
|
@ -31,12 +32,16 @@ angular.module('copayApp.controllers').controller('addressbookViewController', f
|
||||||
} else {
|
} else {
|
||||||
to = $scope.addressbookEntry.address;
|
to = $scope.addressbookEntry.address;
|
||||||
}
|
}
|
||||||
$state.transitionTo('tabs.send.amount', {
|
|
||||||
|
var stateParams = {
|
||||||
toAddress: to,
|
toAddress: to,
|
||||||
toName: $scope.addressbookEntry.name,
|
toName: $scope.addressbookEntry.name,
|
||||||
toEmail: $scope.addressbookEntry.email,
|
toEmail: $scope.addressbookEntry.email,
|
||||||
coin: $scope.addressbookEntry.coin
|
coin: $scope.addressbookEntry.coin
|
||||||
});
|
};
|
||||||
|
|
||||||
|
sendFlowService.pushState(stateParams);
|
||||||
|
$state.transitionTo('tabs.send.origin');
|
||||||
}, 100);
|
}, 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,66 +1,167 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('amountController', function($scope, $filter, $timeout, $ionicModal, $ionicScrollDelegate, $ionicHistory, storageService, walletService, gettextCatalog, platformInfo, lodash, configService, rateService, $stateParams, $window, $state, $log, txFormatService, ongoingProcess, popupService, bwcError, payproService, profileService, bitcore, amazonService, nodeWebkitService) {
|
angular.module('copayApp.controllers').controller('amountController', amountController);
|
||||||
|
|
||||||
|
function amountController(configService, $filter, gettextCatalog, $ionicHistory, $ionicModal, $ionicScrollDelegate, lodash, $log, nodeWebkitService, rateService, $scope, $state, $timeout, sendFlowService, shapeshiftService, txFormatService, platformInfo, profileService, walletService, $window) {
|
||||||
|
var vm = this;
|
||||||
|
|
||||||
|
vm.allowSend = false;
|
||||||
|
vm.altCurrencyList = [];
|
||||||
|
vm.alternativeAmount = '';
|
||||||
|
vm.alternativeUnit = '';
|
||||||
|
vm.amount = '0';
|
||||||
|
vm.availableFunds = '';
|
||||||
|
// Use insufficient for logic, as when the amount is invalid, funds being
|
||||||
|
// either sufficent or insufficient doesn't make sense.
|
||||||
|
vm.fundsAreInsufficient = false;
|
||||||
|
vm.globalResult = '';
|
||||||
|
vm.isRequestingSpecificAmount = false;
|
||||||
|
vm.listComplete = false;
|
||||||
|
vm.lastUsedPopularList = [];
|
||||||
|
vm.maxAmount = 0;
|
||||||
|
vm.minAmount = 0;
|
||||||
|
vm.thirdParty = false;
|
||||||
|
vm.unit = '';
|
||||||
|
|
||||||
|
vm.changeUnit = changeUnit;
|
||||||
|
vm.close = close;
|
||||||
|
vm.findCurrency = findCurrency;
|
||||||
|
vm.finish = finish;
|
||||||
|
vm.goBack = goBack;
|
||||||
|
vm.loadMore = loadMore;
|
||||||
|
vm.next = next;
|
||||||
|
vm.openPopup = openPopup;
|
||||||
|
vm.pushDigit = pushDigit;
|
||||||
|
vm.removeDigit = removeDigit;
|
||||||
|
vm.save = save;
|
||||||
|
vm.sendMax = sendMax;
|
||||||
|
vm.errorMessage = '';
|
||||||
|
|
||||||
|
$scope.$on('$ionicView.beforeEnter', onBeforeEnter);
|
||||||
|
$scope.$on('$ionicView.leave', onLeave);
|
||||||
|
|
||||||
var _id;
|
|
||||||
var unitToSatoshi;
|
|
||||||
var satToUnit;
|
|
||||||
var unitDecimals;
|
|
||||||
var satToBtc;
|
|
||||||
var SMALL_FONT_SIZE_LIMIT = 10;
|
|
||||||
var LENGTH_EXPRESSION_LIMIT = 19;
|
var LENGTH_EXPRESSION_LIMIT = 19;
|
||||||
var LENGTH_BEFORE_COMMA_EXPRESSION_LIMIT = 8;
|
var LENGTH_BEFORE_COMMA_EXPRESSION_LIMIT = 8;
|
||||||
var LENGTH_AFTER_COMMA_EXPRESSION_LIMIT = 8;
|
var LENGTH_AFTER_COMMA_EXPRESSION_LIMIT = 8;
|
||||||
var isNW = platformInfo.isNW;
|
|
||||||
|
|
||||||
var unitIndex = 0;
|
var altCurrencyModal = null;
|
||||||
var altUnitIndex = 0;
|
var altUnitIndex = 0;
|
||||||
|
var availableFundsInCrypto = '';
|
||||||
|
var availableFundsInFiat = '';
|
||||||
|
var availableSatoshis = null;
|
||||||
var availableUnits = [];
|
var availableUnits = [];
|
||||||
var fiatCode;
|
var fiatCode;
|
||||||
|
var isNW = platformInfo.isNW;
|
||||||
|
var isAndroid = platformInfo.isAndroid;
|
||||||
|
var isIos = platformInfo.isIOS;
|
||||||
|
var lastUsedAltCurrencyList = [];
|
||||||
|
var passthroughParams = {};
|
||||||
|
var satToUnit;
|
||||||
|
var unitDecimals;
|
||||||
|
var unitIndex = 0;
|
||||||
|
var unitToSatoshi;
|
||||||
|
var useSendMax = false;
|
||||||
|
|
||||||
var fixedUnit;
|
function onLeave() {
|
||||||
|
|
||||||
$scope.amountModel = { amount: 0 };
|
|
||||||
|
|
||||||
$scope.isChromeApp = platformInfo.isChromeApp;
|
|
||||||
$scope.isAndroid = platformInfo.isAndroid;
|
|
||||||
$scope.isIos = platformInfo.isIOS;
|
|
||||||
|
|
||||||
$scope.$on('$ionicView.leave', function() {
|
|
||||||
angular.element($window).off('keydown');
|
angular.element($window).off('keydown');
|
||||||
});
|
}
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
function onBeforeEnter(event, data) {
|
||||||
|
if (data.direction == "back") {
|
||||||
|
sendFlowService.popState();
|
||||||
|
}
|
||||||
|
console.log('amount onBeforeEnter after back sendflow ', sendFlowService.state);
|
||||||
|
|
||||||
initCurrencies();
|
initCurrencies();
|
||||||
|
|
||||||
if (data.stateParams.shapeshiftOrderId && data.stateParams.shapeshiftOrderId.length > 0) {
|
passthroughParams = sendFlowService.getStateClone();
|
||||||
$scope.minShapeshiftAmount = parseFloat(data.stateParams.minShapeshiftAmount);
|
|
||||||
$scope.maxShapeshiftAmount = parseFloat(data.stateParams.maxShapeshiftAmount);
|
|
||||||
$scope.shapeshiftOrderId = data.stateParams.shapeshiftOrderId;
|
|
||||||
$scope.fromWalletId = data.stateParams.fromWalletId;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.stateParams.noPrefix) {
|
vm.fromWalletId = passthroughParams.fromWalletId;
|
||||||
$scope.showWarningMessage = data.stateParams.noPrefix != 0;
|
vm.toWalletId = passthroughParams.toWalletId;
|
||||||
if ($scope.showWarningMessage) {
|
vm.minAmount = parseFloat(passthroughParams.minAmount);
|
||||||
var message = 'Address doesn\'t contain currency information, please make sure you are sending the correct currency.';
|
vm.maxAmount = parseFloat(passthroughParams.maxAmount);
|
||||||
popupService.showAlert('', message, function() {}, 'Ok');
|
|
||||||
|
if (passthroughParams.thirdParty) {
|
||||||
|
vm.thirdParty = passthroughParams.thirdParty; // Parse stringified JSON-object
|
||||||
|
if (vm.thirdParty) {
|
||||||
|
if (vm.thirdParty.id === 'shapeshift') {
|
||||||
|
if (!vm.thirdParty.data) {
|
||||||
|
vm.thirdParty.data = {};
|
||||||
|
}
|
||||||
|
vm.thirdParty.data['fromWalletId'] = vm.fromWalletId;
|
||||||
|
|
||||||
|
vm.fromWallet = profileService.getWallet(vm.fromWalletId);
|
||||||
|
vm.toWallet = profileService.getWallet(vm.toWalletId);
|
||||||
|
|
||||||
|
shapeshiftService.getMarketData(vm.fromWallet.coin, vm.toWallet.coin, function(data) {
|
||||||
|
vm.thirdParty.data['minAmount'] = vm.minAmount = parseFloat(data.minimum);
|
||||||
|
vm.thirdParty.data['maxAmount'] = vm.maxAmount = parseFloat(data.maxLimit);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vm.isRequestingSpecificAmount = !passthroughParams.fromWalletId;
|
||||||
|
|
||||||
var config = configService.getSync().wallet.settings;
|
var config = configService.getSync().wallet.settings;
|
||||||
|
|
||||||
|
setAvailableUnits();
|
||||||
|
updateUnitUI();
|
||||||
|
|
||||||
|
var reNr = /^[1234567890\.]$/;
|
||||||
|
var reOp = /^[\*\+\-\/]$/;
|
||||||
|
|
||||||
|
if (!isAndroid && !isIos) {
|
||||||
|
var disableKeys = angular.element($window).on('keydown', function(e) {
|
||||||
|
if (!e.key) return;
|
||||||
|
if (e.which === 8) { // you can add others here inside brackets.
|
||||||
|
if (!altCurrencyModal) {
|
||||||
|
e.preventDefault();
|
||||||
|
vm.removeDigit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (e.key.match(reNr)) {
|
||||||
|
vm.pushDigit(e.key);
|
||||||
|
} else if (e.key.match(reOp)) {
|
||||||
|
pushOperator(e.key);
|
||||||
|
} else if (e.keyCode === 86) {
|
||||||
|
if (e.ctrlKey || e.metaKey) processClipboard();
|
||||||
|
} else if (e.keyCode === 13) vm.finish();
|
||||||
|
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
unitToSatoshi = config.unitToSatoshi;
|
||||||
|
satToUnit = 1 / unitToSatoshi;
|
||||||
|
unitDecimals = config.unitDecimals;
|
||||||
|
|
||||||
|
resetAmount();
|
||||||
|
|
||||||
|
processAmount();
|
||||||
|
|
||||||
|
$timeout(function() {
|
||||||
|
$ionicScrollDelegate.resize();
|
||||||
|
}, 10);
|
||||||
|
|
||||||
function setAvailableUnits() {
|
function setAvailableUnits() {
|
||||||
var defaults = configService.getDefaults();
|
var defaults = configService.getDefaults();
|
||||||
var configCache = configService.getSync();
|
var configCache = configService.getSync();
|
||||||
availableUnits = [];
|
availableUnits = [];
|
||||||
|
|
||||||
var hasBCHWallets = profileService.getWallets({
|
var coinFromWallet = '';
|
||||||
coin: 'bch'
|
if (passthroughParams.fromWalletId) {
|
||||||
}).length;
|
var fromWallet = profileService.getWallet(passthroughParams.fromWalletId);
|
||||||
|
coinFromWallet = fromWallet.coin;
|
||||||
|
} else {
|
||||||
|
var toWallet = profileService.getWallet(passthroughParams.toWalletId);
|
||||||
|
coinFromWallet = toWallet.coin;
|
||||||
|
}
|
||||||
|
|
||||||
if (hasBCHWallets) {
|
if (coinFromWallet === 'bch') {
|
||||||
availableUnits.push({
|
availableUnits.push({
|
||||||
name: 'Bitcoin Cash',
|
name: 'Bitcoin Cash',
|
||||||
id: 'bch',
|
id: 'bch',
|
||||||
|
|
@ -68,11 +169,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var hasBTCWallets = profileService.getWallets({
|
if (coinFromWallet === 'btc') {
|
||||||
coin: 'btc'
|
|
||||||
}).length;
|
|
||||||
|
|
||||||
if (hasBTCWallets) {
|
|
||||||
availableUnits.push({
|
availableUnits.push({
|
||||||
name: 'Bitcoin',
|
name: 'Bitcoin',
|
||||||
id: 'btc',
|
id: 'btc',
|
||||||
|
|
@ -82,31 +179,11 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
|
|
||||||
unitIndex = 0;
|
unitIndex = 0;
|
||||||
|
|
||||||
if (data.stateParams.coin) {
|
|
||||||
var coins = data.stateParams.coin.split(',');
|
|
||||||
var newAvailableUnits = [];
|
|
||||||
|
|
||||||
lodash.each(coins, function(c) {
|
|
||||||
var coin = lodash.find(availableUnits, {
|
|
||||||
id: c
|
|
||||||
});
|
|
||||||
if (!coin) {
|
|
||||||
$log.warn('Could not find desired coin:' + data.stateParams.coin)
|
|
||||||
} else {
|
|
||||||
newAvailableUnits.push(coin);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (newAvailableUnits.length > 0) {
|
|
||||||
availableUnits = newAvailableUnits;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// currency have preference
|
// currency have preference
|
||||||
var fiatName;
|
var fiatName;
|
||||||
if (data.stateParams.currency) {
|
if (passthroughParams.currency) {
|
||||||
fiatCode = data.stateParams.currency;
|
fiatCode = passthroughParams.currency;
|
||||||
altUnitIndex = unitIndex
|
altUnitIndex = unitIndex
|
||||||
unitIndex = availableUnits.length;
|
unitIndex = availableUnits.length;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -123,142 +200,53 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
isFiat: true,
|
isFiat: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (data.stateParams.fixedUnit) {
|
|
||||||
fixedUnit = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
unitIndex = lodash.findIndex(availableUnits, {
|
unitIndex = lodash.findIndex(availableUnits, {
|
||||||
isFiat: true
|
isFiat: true
|
||||||
});
|
});
|
||||||
|
|
||||||
altUnitIndex = 0;
|
altUnitIndex = 0;
|
||||||
};
|
|
||||||
|
|
||||||
// Go to...
|
if (passthroughParams.fromWalletId) {
|
||||||
_id = data.stateParams.id; // Optional (BitPay Card ID or Wallet ID)
|
var fromWallet = profileService.getWallet(passthroughParams.fromWalletId);
|
||||||
$scope.nextStep = data.stateParams.nextStep;
|
updateAvailableFundsFromWallet(fromWallet);
|
||||||
|
}
|
||||||
setAvailableUnits();
|
|
||||||
updateUnitUI();
|
|
||||||
|
|
||||||
$scope.hasMaxAmount = true;
|
|
||||||
if ($ionicHistory.backView().stateName == 'tabs.receive') {
|
|
||||||
$scope.hasMaxAmount = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$scope.showMenu = $ionicHistory.backView() && ($ionicHistory.backView().stateName == 'tabs.send' || $ionicHistory.backView().stateName == 'tabs.bitpayCard');
|
|
||||||
$scope.recipientType = data.stateParams.recipientType || null;
|
|
||||||
$scope.toAddress = data.stateParams.toAddress;
|
|
||||||
$scope.displayAddress = data.stateParams.displayAddress;
|
|
||||||
$scope.toName = data.stateParams.toName;
|
|
||||||
$scope.toEmail = data.stateParams.toEmail;
|
|
||||||
$scope.toColor = data.stateParams.toColor;
|
|
||||||
|
|
||||||
if (!$scope.nextStep && !data.stateParams.toAddress) {
|
|
||||||
$log.error('Bad params at amount')
|
|
||||||
throw ('bad params');
|
|
||||||
}
|
|
||||||
|
|
||||||
var reNr = /^[1234567890\.]$/;
|
|
||||||
var reOp = /^[\*\+\-\/]$/;
|
|
||||||
|
|
||||||
if (!$scope.isAndroid && !$scope.isIos) {
|
|
||||||
var disableKeys = angular.element($window).on('keydown', function(e) {
|
|
||||||
if (!e.key) return;
|
|
||||||
if (e.which === 8) { // you can add others here inside brackets.
|
|
||||||
if (!$scope.altCurrencyModal) {
|
|
||||||
e.preventDefault();
|
|
||||||
$scope.removeDigit();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (e.key.match(reNr)) {
|
|
||||||
$scope.pushDigit(e.key);
|
|
||||||
} else if (e.key.match(reOp)) {
|
|
||||||
$scope.pushOperator(e.key);
|
|
||||||
} else if (e.keyCode === 86) {
|
|
||||||
if (e.ctrlKey || e.metaKey) processClipboard();
|
|
||||||
} else if (e.keyCode === 13) $scope.finish();
|
|
||||||
|
|
||||||
$timeout(function() {
|
|
||||||
$scope.$apply();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
$scope.specificAmount = $scope.specificAlternativeAmount = '';
|
|
||||||
$scope.isCordova = platformInfo.isCordova;
|
|
||||||
unitToSatoshi = config.unitToSatoshi;
|
|
||||||
satToUnit = 1 / unitToSatoshi;
|
|
||||||
satToBtc = 1 / 100000000;
|
|
||||||
unitDecimals = config.unitDecimals;
|
|
||||||
|
|
||||||
$scope.resetAmount();
|
|
||||||
|
|
||||||
// in SAT ALWAYS
|
|
||||||
if ($stateParams.toAmount) {
|
|
||||||
$scope.amountModel.amount = (($stateParams.toAmount) * satToUnit).toFixed(unitDecimals);
|
|
||||||
}
|
|
||||||
|
|
||||||
$scope.processAmount();
|
|
||||||
|
|
||||||
$timeout(function() {
|
|
||||||
$ionicScrollDelegate.resize();
|
|
||||||
}, 10);
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.goBack = function() {
|
|
||||||
if ($scope.shapeshiftOrderId) {
|
|
||||||
$state.go('tabs.send').then(function() {
|
|
||||||
$ionicHistory.clearHistory();
|
|
||||||
$state.go('tabs.home').then(function() {
|
|
||||||
$state.transitionTo('tabs.shapeshift');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
$ionicHistory.goBack();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function goBack() {
|
||||||
|
$ionicHistory.goBack();
|
||||||
|
}
|
||||||
|
|
||||||
function paste(value) {
|
function paste(value) {
|
||||||
$scope.amountModel.amount = value;
|
vm.amount = value;
|
||||||
$scope.processAmount();
|
processAmount();
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
function processClipboard() {
|
function processClipboard() {
|
||||||
if (!isNW) return;
|
if (!isNW) return;
|
||||||
var value = nodeWebkitService.readFromClipboard();
|
var value = nodeWebkitService.readFromClipboard();
|
||||||
if (value && evaluate(value) > 0) paste(evaluate(value));
|
if (value && evaluate(value) > 0) paste(evaluate(value));
|
||||||
};
|
}
|
||||||
|
|
||||||
$scope.sendMax = function() {
|
function sendMax() {
|
||||||
$scope.useSendMax = true;
|
useSendMax = true;
|
||||||
$scope.finish();
|
finish();
|
||||||
};
|
}
|
||||||
|
|
||||||
$scope.toggleAlternative = function() {
|
|
||||||
if ($scope.amountModel.amount && isExpression($scope.amountModel.amount)) {
|
|
||||||
var amount = evaluate(format($scope.amountModel.amount));
|
|
||||||
$scope.globalResult = '= ' + processResult(amount);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
function updateUnitUI() {
|
function updateUnitUI() {
|
||||||
$scope.unit = availableUnits[unitIndex].shortName;
|
vm.unit = availableUnits[unitIndex].shortName;
|
||||||
$scope.alternativeUnit = availableUnits[altUnitIndex].shortName;
|
vm.alternativeUnit = availableUnits[altUnitIndex].shortName;
|
||||||
|
|
||||||
$scope.processAmount();
|
processAmount();
|
||||||
$log.debug('Update unit coin @amount unit:' + $scope.unit + " alternativeUnit:" + $scope.alternativeUnit);
|
$log.debug('Update unit coin @amount unit:' + vm.unit + " alternativeUnit:" + vm.alternativeUnit);
|
||||||
};
|
}
|
||||||
|
|
||||||
$scope.changeUnit = function() {
|
function changeUnit() {
|
||||||
|
|
||||||
$scope.amountModel.amount = '0';
|
vm.amount = '0';
|
||||||
|
|
||||||
if (fixedUnit) return;
|
|
||||||
|
|
||||||
if (!(availableUnits[unitIndex].isFiat && availableUnits.length > 2 && altUnitIndex == 0)) {
|
if (!(availableUnits[unitIndex].isFiat && availableUnits.length > 2 && altUnitIndex == 0)) {
|
||||||
unitIndex++;
|
unitIndex++;
|
||||||
|
|
@ -273,153 +261,166 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateAvailableFundsStringIfNeeded();
|
||||||
updateUnitUI();
|
updateUnitUI();
|
||||||
};
|
}
|
||||||
|
|
||||||
|
function pushDigit(digit) {
|
||||||
$scope.changeAlternativeUnit = function() {
|
if (vm.amount && digit != '.') {
|
||||||
|
var amountSplitByComma = vm.amount.split('.');
|
||||||
// Do nothing is fiat is not main unit
|
|
||||||
if (!availableUnits[unitIndex].isFiat) return;
|
|
||||||
|
|
||||||
var nextCoin = lodash.findIndex(availableUnits, function(x) {
|
|
||||||
if (x.isFiat) return false;
|
|
||||||
if (x.id == availableUnits[altUnitIndex].id) return false;
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
|
|
||||||
if (nextCoin >= 0) {
|
|
||||||
altUnitIndex = nextCoin;
|
|
||||||
updateUnitUI();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
function checkFontSize() {
|
|
||||||
if ($scope.amountModel.amount && $scope.amountModel.amount.length >= SMALL_FONT_SIZE_LIMIT) $scope.smallFont = true;
|
|
||||||
else $scope.smallFont = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.pushDigit = function(digit) {
|
|
||||||
if ($scope.amountModel.amount && digit != '.') {
|
|
||||||
var amountSplitByComma = $scope.amountModel.amount.split('.');
|
|
||||||
if (amountSplitByComma.length > 1 && amountSplitByComma[1].length >= LENGTH_AFTER_COMMA_EXPRESSION_LIMIT) return;
|
if (amountSplitByComma.length > 1 && amountSplitByComma[1].length >= LENGTH_AFTER_COMMA_EXPRESSION_LIMIT) return;
|
||||||
if (amountSplitByComma.length == 1 && amountSplitByComma[0].length >= LENGTH_BEFORE_COMMA_EXPRESSION_LIMIT) return;
|
if (amountSplitByComma.length == 1 && amountSplitByComma[0].length >= LENGTH_BEFORE_COMMA_EXPRESSION_LIMIT) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($scope.amountModel.amount && $scope.amountModel.amount.length >= LENGTH_EXPRESSION_LIMIT) return;
|
if (vm.amount && vm.amount.length >= LENGTH_EXPRESSION_LIMIT) return;
|
||||||
if ($scope.amountModel.amount.indexOf('.') > -1 && digit == '.') return;
|
if (vm.amount.indexOf('.') > -1 && digit == '.') return;
|
||||||
if ($scope.amountModel.amount == '0' && digit == '0') return;
|
if (vm.amount == '0' && digit == '0') return;
|
||||||
if (availableUnits[unitIndex].isFiat && $scope.amountModel.amount.indexOf('.') > -1 && $scope.amountModel.amount[$scope.amountModel.amount.indexOf('.') + 2]) return;
|
if (availableUnits[unitIndex].isFiat && vm.amount.indexOf('.') > -1 && vm.amount[vm.amount.indexOf('.') + 2]) return;
|
||||||
|
|
||||||
if ($scope.amountModel.amount == '0' && digit != '.') {
|
if (vm.amount == '0' && digit != '.') {
|
||||||
$scope.amountModel.amount = '';
|
vm.amount = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($scope.amountModel.amount == '' && digit == '.') {
|
if (vm.amount == '' && digit == '.') {
|
||||||
$scope.amountModel.amount = '0';
|
vm.amount = '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.amountModel.amount = ($scope.amountModel.amount + digit).replace('..', '.');
|
vm.amount = (vm.amount + digit).replace('..', '.');
|
||||||
checkFontSize();
|
processAmount();
|
||||||
$scope.processAmount();
|
}
|
||||||
};
|
|
||||||
|
|
||||||
$scope.pushOperator = function(operator) {
|
function pushOperator(operator) {
|
||||||
if (!$scope.amountModel.amount || $scope.amountModel.amount.length == 0) return;
|
if (!vm.amount || vm.amount.length == 0) return;
|
||||||
$scope.amountModel.amount = _pushOperator($scope.amountModel.amount);
|
vm.amount = pushOperator(vm.amount);
|
||||||
|
|
||||||
function _pushOperator(val) {
|
function pushOperator(val) {
|
||||||
if (!isOperator(lodash.last(val))) {
|
if (!isOperator(lodash.last(val))) {
|
||||||
return val + operator;
|
return val + operator;
|
||||||
} else {
|
} else {
|
||||||
return val.slice(0, -1) + operator;
|
return val.slice(0, -1) + operator;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
function isOperator(val) {
|
function isOperator(val) {
|
||||||
var regex = /[\/\-\+\x\*]/;
|
var regex = /[\/\-\+\x\*]/;
|
||||||
return regex.test(val);
|
return regex.test(val);
|
||||||
};
|
}
|
||||||
|
|
||||||
function isExpression(val) {
|
function isExpression(val) {
|
||||||
var regex = /^\.?\d+(\.?\d+)?([\/\-\+\*x]\d?\.?\d+)+$/;
|
var regex = /^\.?\d+(\.?\d+)?([\/\-\+\*x]\d?\.?\d+)+$/;
|
||||||
return regex.test(val);
|
return regex.test(val);
|
||||||
};
|
}
|
||||||
|
|
||||||
$scope.removeDigit = function() {
|
function removeDigit() {
|
||||||
$scope.amountModel.amount = ($scope.amountModel.amount).toString().slice(0, -1);
|
vm.amount = (vm.amount).toString().slice(0, -1);
|
||||||
$scope.processAmount();
|
processAmount();
|
||||||
checkFontSize();
|
}
|
||||||
};
|
|
||||||
|
|
||||||
$scope.resetAmount = function() {
|
function resetAmount() {
|
||||||
$scope.amountModel.amount = $scope.alternativeAmount = $scope.globalResult = '';
|
vm.amount = vm.alternativeAmount = vm.globalResult = '0';
|
||||||
$scope.allowSend = false;
|
vm.allowSend = false;
|
||||||
checkFontSize();
|
}
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
$scope.openPopup = function() {
|
function openPopup() {
|
||||||
$ionicModal.fromTemplateUrl('views/modals/altCurrency.html', {
|
$ionicModal.fromTemplateUrl('views/modals/altCurrency.html', {
|
||||||
scope: $scope
|
scope: $scope
|
||||||
}).then(function(modal) {
|
}).then(function(modal) {
|
||||||
$scope.altCurrencyModal = modal;
|
altCurrencyModal = modal;
|
||||||
$scope.altCurrencyModal.show();
|
altCurrencyModal.show();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
$scope.close = function() {
|
function close() {
|
||||||
$scope.altCurrencyModal.remove();
|
altCurrencyModal.remove();
|
||||||
$scope.altCurrencyModal = false;
|
altCurrencyModal = null;
|
||||||
};
|
}
|
||||||
|
|
||||||
$scope.processAmount = function() {
|
function processAmount() {
|
||||||
var formatedValue = format($scope.amountModel.amount);
|
var formatedValue = format(vm.amount);
|
||||||
var result = evaluate(formatedValue);
|
var result = evaluate(formatedValue);
|
||||||
|
|
||||||
|
var amountInCrypto = 0;
|
||||||
|
|
||||||
if (lodash.isNumber(result)) {
|
if (lodash.isNumber(result)) {
|
||||||
$scope.globalResult = isExpression($scope.amountModel.amount) ? '= ' + processResult(result) : '';
|
vm.globalResult = isExpression(vm.amount) ? '= ' + processResult(result) : '';
|
||||||
|
|
||||||
if (availableUnits[unitIndex].isFiat) {
|
if (availableUnits[unitIndex].isFiat) {
|
||||||
|
|
||||||
var a = fromFiat(result);
|
var a = fromFiat(result);
|
||||||
if (a) {
|
if (a) {
|
||||||
$scope.alternativeAmount = txFormatService.formatAmount(a * unitToSatoshi, true);
|
amountInCrypto = a;
|
||||||
$scope.allowSend = lodash.isNumber(a) && a > 0
|
var amountInSatoshis = a * unitToSatoshi;
|
||||||
&& (!$scope.shapeshiftOrderId
|
vm.fundsAreInsufficient = !!passthroughParams.fromWalletId
|
||||||
|| (a >= $scope.minShapeshiftAmount && a <= $scope.maxShapeshiftAmount));
|
&& availableSatoshis !== null
|
||||||
|
&& availableSatoshis < amountInSatoshis;
|
||||||
|
|
||||||
|
vm.alternativeAmount = txFormatService.formatAmount(amountInSatoshis, true);
|
||||||
|
vm.allowSend = lodash.isNumber(a)
|
||||||
|
&& a > 0
|
||||||
|
&& (!vm.minAmount || a >= vm.minAmount)
|
||||||
|
&& (!vm.maxAmount || a <= vm.maxAmount)
|
||||||
|
&& !vm.fundsAreInsufficient;
|
||||||
} else {
|
} else {
|
||||||
if (result) {
|
if (result) {
|
||||||
$scope.alternativeAmount = 'N/A';
|
vm.alternativeAmount = 'N/A';
|
||||||
} else {
|
} else {
|
||||||
$scope.alternativeAmount = null;
|
vm.alternativeAmount = null;
|
||||||
}
|
}
|
||||||
$scope.allowSend = false;
|
vm.fundsAreInsufficient = false;
|
||||||
|
vm.allowSend = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$scope.alternativeAmount = $filter('formatFiatAmount')(toFiat(result));
|
amountInCrypto = result;
|
||||||
$scope.allowSend = lodash.isNumber(result) && result > 0
|
vm.fundsAreInsufficient = passthroughParams.fromWalletId
|
||||||
&& (!$scope.shapeshiftOrderId
|
&& availableSatoshis !== null
|
||||||
|| (result >= $scope.minShapeshiftAmount && result <= $scope.maxShapeshiftAmount));
|
&& availableSatoshis < result * unitToSatoshi;
|
||||||
|
|
||||||
|
vm.alternativeAmount = $filter('formatFiatAmount')(toFiat(result));
|
||||||
|
vm.allowSend = lodash.isNumber(result)
|
||||||
|
&& result > 0
|
||||||
|
&& (!vm.minAmount || result >= vm.minAmount)
|
||||||
|
&& (!vm.maxAmount || result <= vm.maxAmount)
|
||||||
|
&& !vm.fundsAreInsufficient;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
vm.fundsAreInsufficient = false;
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
if (vm.fundsAreInsufficient) {
|
||||||
|
vm.errorMessage = gettextCatalog.getString('Not enough available funds');
|
||||||
|
|
||||||
|
} else if (amountInCrypto && vm.thirdParty && vm.thirdParty.id === 'shapeshift') {
|
||||||
|
if (amountInCrypto < vm.minAmount) {
|
||||||
|
vm.errorMessage = gettextCatalog.getString('Amount is below minimum');
|
||||||
|
|
||||||
|
} else if (amountInCrypto > vm.maxAmount) {
|
||||||
|
vm.errorMessage = gettextCatalog.getString('Amount is above maximum');
|
||||||
|
|
||||||
|
} else {
|
||||||
|
vm.errorMessage = '';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
vm.errorMessage = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function processResult(val) {
|
function processResult(val) {
|
||||||
if (availableUnits[unitIndex].isFiat) return $filter('formatFiatAmount')(val);
|
if (availableUnits[unitIndex].isFiat) return $filter('formatFiatAmount')(val);
|
||||||
else return txFormatService.formatAmount(val.toFixed(unitDecimals) * unitToSatoshi, true);
|
else return txFormatService.formatAmount(val.toFixed(unitDecimals) * unitToSatoshi, true);
|
||||||
};
|
}
|
||||||
|
|
||||||
function fromFiat(val) {
|
function fromFiat(val) {
|
||||||
return parseFloat((rateService.fromFiat(val, fiatCode, availableUnits[altUnitIndex].id) * satToUnit).toFixed(unitDecimals));
|
return parseFloat((rateService.fromFiat(val, fiatCode, availableUnits[altUnitIndex].id) * satToUnit).toFixed(unitDecimals));
|
||||||
};
|
}
|
||||||
|
|
||||||
function toFiat(val) {
|
function toFiat(val) {
|
||||||
if (!rateService.getRate(fiatCode)) return;
|
if (!rateService.getRate(fiatCode)) return;
|
||||||
|
|
||||||
return parseFloat((rateService.toFiat(val * unitToSatoshi, fiatCode, availableUnits[unitIndex].id)).toFixed(2));
|
return parseFloat((rateService.toFiat(val * unitToSatoshi, fiatCode, availableUnits[unitIndex].id)).toFixed(2));
|
||||||
};
|
}
|
||||||
|
|
||||||
function evaluate(val) {
|
function evaluate(val) {
|
||||||
var result;
|
var result;
|
||||||
|
|
@ -430,7 +431,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
}
|
}
|
||||||
if (!lodash.isFinite(result)) return 0;
|
if (!lodash.isFinite(result)) return 0;
|
||||||
return result;
|
return result;
|
||||||
};
|
}
|
||||||
|
|
||||||
function format(val) {
|
function format(val) {
|
||||||
if (!val) return;
|
if (!val) return;
|
||||||
|
|
@ -440,95 +441,45 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
if (isOperator(lodash.last(val))) result = result.slice(0, -1);
|
if (isOperator(lodash.last(val))) result = result.slice(0, -1);
|
||||||
|
|
||||||
return result.replace('x', '*');
|
return result.replace('x', '*');
|
||||||
};
|
}
|
||||||
|
|
||||||
$scope.finish = function() {
|
function finish() {
|
||||||
|
var unit = availableUnits[unitIndex];
|
||||||
|
var uiAmount = evaluate(format(vm.amount));
|
||||||
|
|
||||||
function finish() {
|
var satoshis = 0;
|
||||||
var unit = availableUnits[unitIndex];
|
if (unit.isFiat) {
|
||||||
var _amount = evaluate(format($scope.amountModel.amount));
|
satoshis = (fromFiat(uiAmount) * unitToSatoshi).toFixed(0);
|
||||||
var coin = unit.id;
|
} else {
|
||||||
if (unit.isFiat) {
|
satoshis = (uiAmount * unitToSatoshi).toFixed(0);
|
||||||
coin = availableUnits[altUnitIndex].id;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ($scope.nextStep) {
|
var confirmData = {
|
||||||
$state.transitionTo($scope.nextStep, {
|
amount: useSendMax ? undefined : satoshis,
|
||||||
id: _id,
|
displayAddress: passthroughParams.displayAddress,
|
||||||
amount: $scope.useSendMax ? null : _amount,
|
fromWalletId: passthroughParams.fromWalletId,
|
||||||
currency: unit.id.toUpperCase(),
|
sendMax: useSendMax,
|
||||||
coin: coin,
|
toAddress: passthroughParams.toAddress,
|
||||||
useSendMax: $scope.useSendMax
|
toWalletId: passthroughParams.toWalletId
|
||||||
});
|
};
|
||||||
} else {
|
|
||||||
var amount = _amount;
|
|
||||||
|
|
||||||
if (unit.isFiat) {
|
if (vm.thirdParty) {
|
||||||
amount = (fromFiat(amount) * unitToSatoshi).toFixed(0);
|
confirmData.thirdParty = vm.thirdParty;
|
||||||
} else {
|
}
|
||||||
amount = (amount * unitToSatoshi).toFixed(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
var confirmData = {
|
sendFlowService.pushState(confirmData);
|
||||||
recipientType: $scope.recipientType,
|
if (!confirmData.fromWalletId) {
|
||||||
toAmount: amount,
|
$state.transitionTo('tabs.paymentRequest.confirm', confirmData);
|
||||||
toAddress: $scope.toAddress,
|
} else {
|
||||||
displayAddress: $scope.displayAddress || $scope.toAddress,
|
$state.transitionTo('tabs.send.review', confirmData);
|
||||||
toName: $scope.toName,
|
|
||||||
toEmail: $scope.toEmail,
|
|
||||||
toColor: $scope.toColor,
|
|
||||||
coin: coin,
|
|
||||||
useSendMax: $scope.useSendMax,
|
|
||||||
};
|
|
||||||
|
|
||||||
if ($scope.shapeshiftOrderId) {
|
|
||||||
var shapeshiftOrderUrl = 'https://www.shapeshift.io/#/status/';
|
|
||||||
shapeshiftOrderUrl += $scope.shapeshiftOrderId;
|
|
||||||
confirmData.description = shapeshiftOrderUrl;
|
|
||||||
confirmData.fromWalletId = $scope.fromWalletId;
|
|
||||||
|
|
||||||
if (confirmData.useSendMax) {
|
|
||||||
var wallet = lodash.find(profileService.getWallets({ coin: coin }),
|
|
||||||
function(w) {
|
|
||||||
return w.id == $scope.fromWalletId;
|
|
||||||
});
|
|
||||||
|
|
||||||
var balance = parseFloat(wallet.cachedBalance.substring(0, wallet.cachedBalance.length-4));
|
|
||||||
if (balance < $scope.minShapeshiftAmount * 1.04) {
|
|
||||||
confirmData.useSendMax = false;
|
|
||||||
confirmData.toAmount = $scope.minShapeshiftAmount * unitToSatoshi;
|
|
||||||
} else if (balance > $scope.maxShapeshiftAmount) {
|
|
||||||
confirmData.useSendMax = false;
|
|
||||||
confirmData.toAmount = $scope.maxShapeshiftAmount * unitToSatoshi * 0.99;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$state.transitionTo('tabs.send.confirm', confirmData);
|
|
||||||
}
|
|
||||||
$scope.useSendMax = null;
|
$scope.useSendMax = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if ($scope.showWarningMessage) {
|
|
||||||
var u = $scope.unit == 'BCH' || $scope.unit == 'BTC' ? $scope.unit : $scope.alternativeUnit;
|
|
||||||
var message = 'Are you sure you want to send ' + u.toUpperCase() + '?';
|
|
||||||
popupService.showConfirm(message, '', 'Yes', 'No', function(res) {
|
|
||||||
if (!res) {
|
|
||||||
$scope.useSendMax = null;
|
|
||||||
return;
|
|
||||||
};
|
|
||||||
finish();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
finish();
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// Currency
|
// Currency
|
||||||
|
|
||||||
var next = 10;
|
var nextCurrencies = 10;
|
||||||
var completeAlternativeList = [];
|
var completeAlternativeList = [];
|
||||||
|
|
||||||
var popularCurrencyList = [
|
var popularCurrencyList = [
|
||||||
|
|
@ -542,7 +493,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
{isoCode: 'CNY', order: 7},
|
{isoCode: 'CNY', order: 7},
|
||||||
{isoCode: 'KRW', order: 8},
|
{isoCode: 'KRW', order: 8},
|
||||||
{isoCode: 'HKD', order: 9},
|
{isoCode: 'HKD', order: 9},
|
||||||
]
|
];
|
||||||
|
|
||||||
function initCurrencies() {
|
function initCurrencies() {
|
||||||
var unusedCurrencyList = [{
|
var unusedCurrencyList = [{
|
||||||
|
|
@ -558,10 +509,10 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
}];
|
}];
|
||||||
rateService.whenAvailable(function() {
|
rateService.whenAvailable(function() {
|
||||||
|
|
||||||
$scope.listComplete = false;
|
vm.listComplete = false;
|
||||||
|
|
||||||
var idx = lodash.indexBy(unusedCurrencyList, 'isoCode');
|
var idx = lodash.indexBy(unusedCurrencyList, 'isoCode');
|
||||||
var idx2 = lodash.indexBy($scope.lastUsedAltCurrencyList, 'isoCode');
|
var idx2 = lodash.indexBy(lastUsedAltCurrencyList, 'isoCode');
|
||||||
var idx3 = lodash.indexBy(popularCurrencyList, 'isoCode');
|
var idx3 = lodash.indexBy(popularCurrencyList, 'isoCode');
|
||||||
var alternatives = rateService.listAlternatives(true);
|
var alternatives = rateService.listAlternatives(true);
|
||||||
|
|
||||||
|
|
@ -574,8 +525,10 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.altCurrencyList = completeAlternativeList.slice(0, 10);
|
vm.altCurrencyList = completeAlternativeList.slice(0, 10);
|
||||||
$scope.lastUsedPopularList = lodash.unique(lodash.union($scope.lastUsedAltCurrencyList, popularCurrencyList), 'isoCode');
|
vm.lastUsedPopularList = lodash.unique(lodash.union(lastUsedAltCurrencyList, popularCurrencyList), 'isoCode');
|
||||||
|
|
||||||
|
rateService.updateRates();
|
||||||
|
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
|
|
@ -583,19 +536,24 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.loadMore = function() {
|
function loadMore() {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.altCurrencyList = completeAlternativeList.slice(0, next);
|
vm.altCurrencyList = completeAlternativeList.slice(0, nextCurrencies);
|
||||||
next += 10;
|
nextCurrencies += 10;
|
||||||
$scope.listComplete = $scope.altCurrencyList.length >= completeAlternativeList.length;
|
vm.listComplete = vm.altCurrencyList.length >= completeAlternativeList.length;
|
||||||
$scope.$broadcast('scroll.infiniteScrollComplete');
|
$scope.$broadcast('scroll.infiniteScrollComplete');
|
||||||
}, 100);
|
}, 100);
|
||||||
};
|
}
|
||||||
|
|
||||||
$scope.findCurrency = function(search) {
|
function next() {
|
||||||
|
useSendMax = false;
|
||||||
|
vm.finish();
|
||||||
|
}
|
||||||
|
|
||||||
|
function findCurrency(search) {
|
||||||
if (!search) initCurrencies();
|
if (!search) initCurrencies();
|
||||||
var list = lodash.unique(lodash.union(completeAlternativeList, lodash.union($scope.lastUsedAltCurrencyList, popularCurrencyList)), 'isoCode');
|
var list = lodash.unique(lodash.union(completeAlternativeList, lodash.union(lastUsedAltCurrencyList, popularCurrencyList)), 'isoCode');
|
||||||
$scope.altCurrencyList = lodash.filter(list, function(item) {
|
vm.altCurrencyList = lodash.filter(list, function(item) {
|
||||||
var val = item.name
|
var val = item.name
|
||||||
var val2 = item.isoCode;
|
var val2 = item.isoCode;
|
||||||
return lodash.includes(val.toLowerCase(), search.toLowerCase()) || lodash.includes(val2.toLowerCase(), search.toLowerCase());
|
return lodash.includes(val.toLowerCase(), search.toLowerCase()) || lodash.includes(val2.toLowerCase(), search.toLowerCase());
|
||||||
|
|
@ -603,9 +561,9 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
$scope.save = function(newAltCurrency) {
|
function save(newAltCurrency) {
|
||||||
var opts = {
|
var opts = {
|
||||||
wallet: {
|
wallet: {
|
||||||
settings: {
|
settings: {
|
||||||
|
|
@ -625,8 +583,63 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
availableUnits[altUnitIndex].name = newAltCurrency.isoCode;
|
availableUnits[altUnitIndex].name = newAltCurrency.isoCode;
|
||||||
availableUnits[altUnitIndex].shortName = newAltCurrency.isoCode;
|
availableUnits[altUnitIndex].shortName = newAltCurrency.isoCode;
|
||||||
fiatCode = newAltCurrency.isoCode;
|
fiatCode = newAltCurrency.isoCode;
|
||||||
|
updateAvailableFundsStringIfNeeded();
|
||||||
updateUnitUI();
|
updateUnitUI();
|
||||||
$scope.close();
|
close();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
});
|
|
||||||
|
function updateAvailableFundsStringIfNeeded() {
|
||||||
|
if (passthroughParams.fromWalletId && availableSatoshis !== null) {
|
||||||
|
availableFundsInFiat = '';
|
||||||
|
vm.availableFunds = availableFundsInCrypto;
|
||||||
|
|
||||||
|
if (availableUnits[unitIndex].isFiat) {
|
||||||
|
var coin = availableUnits[altUnitIndex].id;
|
||||||
|
txFormatService.formatAlternativeStr(coin, availableSatoshis, function formatCallback(formatted){
|
||||||
|
if (formatted) {
|
||||||
|
availableFundsInFiat = formatted;
|
||||||
|
|
||||||
|
$scope.$apply(function() {
|
||||||
|
vm.availableFunds = availableFundsInFiat;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateAvailableFundsFromWallet(wallet) {
|
||||||
|
if (wallet.status && wallet.status.isValid) {
|
||||||
|
availableFundsInCrypto = wallet.status.spendableBalanceStr;
|
||||||
|
availableSatoshis = wallet.status.spendableAmount;
|
||||||
|
if (wallet.status.alternativeBalanceAvailable) {
|
||||||
|
availableFundsInFiat = wallet.status.spendableBalanceAlternative + ' ' + wallet.status.alternativeIsoCode;
|
||||||
|
} else {
|
||||||
|
availableFundsInFiat = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if (wallet.cachedStatus && wallet.status.isValid) {
|
||||||
|
|
||||||
|
if (wallet.cachedStatus.alternativeBalanceAvailable) {
|
||||||
|
availableFundsInFiat = wallet.cachedStatus.spendableBalanceAlternative + ' ' + wallet.cachedStatus.alternativeIsoCode;
|
||||||
|
} else {
|
||||||
|
availableFundsInFiat = '';
|
||||||
|
}
|
||||||
|
availableFundsInCrypto = wallet.cachedStatus.spendableBalanceStr;
|
||||||
|
availableSatoshis = wallet.cachedStatus.spendableAmount;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
availableFundsInFiat = '';
|
||||||
|
availableFundsInCrypto = '';
|
||||||
|
availableSatoshis = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (availableUnits[unitIndex].isFiat) {
|
||||||
|
vm.availableFunds = availableFundsInFiat || availableFundsInCrypto;
|
||||||
|
} else {
|
||||||
|
vm.availableFunds = availableFundsInCrypto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
101
src/js/controllers/amount.spec.js
Normal file
101
src/js/controllers/amount.spec.js
Normal file
|
|
@ -0,0 +1,101 @@
|
||||||
|
describe('amountController', function(){
|
||||||
|
var configCache,
|
||||||
|
configService,
|
||||||
|
$controller,
|
||||||
|
$ionicHistory,
|
||||||
|
$rootScope,
|
||||||
|
platformInfo,
|
||||||
|
profileService,
|
||||||
|
rateService,
|
||||||
|
$stateParams;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
beforeEach(function(){
|
||||||
|
module('ngLodash');
|
||||||
|
module('copayApp.controllers');
|
||||||
|
|
||||||
|
configCache = {
|
||||||
|
wallet: {
|
||||||
|
settings: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
configService = jasmine.createSpyObj(['getDefaults','getSync']);
|
||||||
|
configService.getDefaults.and.returnValue({
|
||||||
|
bitcoinCashAlias: 'bch',
|
||||||
|
bitcoinAlias: 'btc'
|
||||||
|
});
|
||||||
|
configService.getSync.and.returnValue(configCache);
|
||||||
|
|
||||||
|
$ionicHistory = jasmine.createSpyObj(['backView']);
|
||||||
|
|
||||||
|
platformInfo = {
|
||||||
|
isChromeApp: false,
|
||||||
|
isAndroid: false,
|
||||||
|
isIos: true
|
||||||
|
};
|
||||||
|
|
||||||
|
profileService = jasmine.createSpyObj(['getWallets']);
|
||||||
|
|
||||||
|
rateService = jasmine.createSpyObj(['fromFiat', 'whenAvailable']);
|
||||||
|
|
||||||
|
$stateParams = {};
|
||||||
|
|
||||||
|
inject(function(_$controller_, _$rootScope_){
|
||||||
|
// The injector unwraps the underscores (_) from around the parameter names when matching
|
||||||
|
$controller = _$controller_;
|
||||||
|
$rootScope = _$rootScope_;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
it('receives fromWalletId and toAddress.', function() {
|
||||||
|
|
||||||
|
var backView = {
|
||||||
|
stateName: 'ignoreme'
|
||||||
|
};
|
||||||
|
$ionicHistory.backView.and.returnValue(backView);
|
||||||
|
profileService.getWallets.and.returnValue([{}]);
|
||||||
|
rateService.fromFiat.and.returnValue(12); // satoshis or coins?
|
||||||
|
|
||||||
|
var $scope = $rootScope.$new();
|
||||||
|
|
||||||
|
|
||||||
|
var amountController = $controller('amountController', {
|
||||||
|
configService: configService,
|
||||||
|
gettextCatalog: {},
|
||||||
|
$ionicHistory: $ionicHistory,
|
||||||
|
$ionicModal: {},
|
||||||
|
$ionicScrollDelegate: {},
|
||||||
|
nodeWebkitService: {},
|
||||||
|
ongoingProcess: {},
|
||||||
|
platformInfo: platformInfo,
|
||||||
|
profileService: profileService,
|
||||||
|
popupService: {},
|
||||||
|
rateService: rateService,
|
||||||
|
$scope: $scope,
|
||||||
|
$state: {},
|
||||||
|
$stateParams: $stateParams,
|
||||||
|
txFormatService: {},
|
||||||
|
walletService: {}
|
||||||
|
});
|
||||||
|
|
||||||
|
var data = {
|
||||||
|
stateParams: {
|
||||||
|
fromWalletId: 'fd56c1e7-e3ac-4fd9-8afc-27b9c1b3718b',
|
||||||
|
toAddress: 'qrup46avn8t466xxwlzs4qelht7cnwvesv2e29wf7s'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$scope.$emit('$ionicView.beforeEnter', data);
|
||||||
|
|
||||||
|
expect($scope.fromWalletId).toBe('fd56c1e7-e3ac-4fd9-8afc-27b9c1b3718b');
|
||||||
|
expect($scope.toAddress).toBe('qrup46avn8t466xxwlzs4qelht7cnwvesv2e29wf7s');
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('backupController',
|
angular.module('copayApp.controllers').controller('backupController',
|
||||||
function($scope, $timeout, $log, $state, $stateParams, $ionicHistory, lodash, profileService, bwcService, walletService, ongoingProcess, popupService, gettextCatalog, $ionicModal, firebaseEventsService) {
|
function($scope, $timeout, $log, $state, $stateParams, $ionicHistory, lodash, profileService, bwcService, walletService, ongoingProcess, popupService, gettextCatalog, $ionicModal) {
|
||||||
|
|
||||||
if ($state.current.name == 'onboarding.backup') {
|
if ($state.current.name == 'onboarding.backup') {
|
||||||
$scope.onboarding = true;
|
$scope.onboarding = true;
|
||||||
|
|
@ -89,7 +89,8 @@ angular.module('copayApp.controllers').controller('backupController',
|
||||||
$scope.setFlow(2);
|
$scope.setFlow(2);
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
firebaseEventsService.logEvent('backed_up_wallet');
|
|
||||||
|
//firebaseEventsService.logEvent('backed_up_wallet');
|
||||||
openConfirmBackupModal();
|
openConfirmBackupModal();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('buyBitcoindotcomController',
|
angular.module('copayApp.controllers').controller('buyBitcoindotcomController',
|
||||||
function($scope, $timeout, $ionicModal, $log, $state, $ionicHistory, lodash, bitcoincomService, externalLinkService, popupService) {
|
function($scope, platformInfo, externalLinkService) {
|
||||||
|
|
||||||
|
$scope.os = platformInfo.isAndroid ? 'android' : platformInfo.isIOS ? 'ios' : 'desktop';
|
||||||
|
|
||||||
$scope.openExternalLink = function(url) {
|
$scope.openExternalLink = function(url) {
|
||||||
externalLinkService.open(url);
|
externalLinkService.open(url);
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,20 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('confirmController', function($rootScope, $scope, $interval, $filter, $timeout, $ionicScrollDelegate, gettextCatalog, walletService, platformInfo, lodash, configService, $stateParams, $window, $state, $log, profileService, bitcore, bitcoreCash, txFormatService, ongoingProcess, $ionicModal, popupService, $ionicHistory, $ionicConfig, payproService, feeService, bwcError, txConfirmNotification, externalLinkService, firebaseEventsService) {
|
angular.module('copayApp.controllers').controller('confirmController', function($rootScope, $scope, $interval, $timeout, $ionicScrollDelegate, $ionicLoading, ionicToast, addressbookService, gettextCatalog, walletService, platformInfo, lodash, configService, $state, $log, profileService, bitcore, bitcoreCash, txFormatService, ongoingProcess, $ionicModal, popupService, $ionicHistory, $ionicConfig, feeService, bitcoinCashJsService, bwcError, txConfirmNotification, soundService, clipboardService) {
|
||||||
|
|
||||||
var countDown = null;
|
var countDown = null;
|
||||||
var FEE_TOO_HIGH_LIMIT_PER = 15;
|
var FEE_TOO_HIGH_LIMIT_PER = 15;
|
||||||
|
|
||||||
var tx = {};
|
var tx = {};
|
||||||
|
var lastTxId = "";
|
||||||
|
|
||||||
// Config Related values
|
// Config Related values
|
||||||
var config = configService.getSync();
|
var config = configService.getSync();
|
||||||
var walletConfig = config.wallet;
|
var walletConfig = config.wallet;
|
||||||
var unitToSatoshi = walletConfig.settings.unitToSatoshi;
|
|
||||||
var unitDecimals = walletConfig.settings.unitDecimals;
|
|
||||||
var satToUnit = 1 / unitToSatoshi;
|
|
||||||
var configFeeLevel = walletConfig.settings.feeLevel ? walletConfig.settings.feeLevel : 'normal';
|
var configFeeLevel = walletConfig.settings.feeLevel ? walletConfig.settings.feeLevel : 'normal';
|
||||||
|
|
||||||
|
|
||||||
// Platform info
|
// Platform info
|
||||||
var isChromeApp = platformInfo.isChromeApp;
|
|
||||||
var isCordova = platformInfo.isCordova;
|
var isCordova = platformInfo.isCordova;
|
||||||
var isWindowsPhoneApp = platformInfo.isCordova && platformInfo.isWP;
|
|
||||||
|
|
||||||
//custom fee flag
|
//custom fee flag
|
||||||
var usingCustomFee = false;
|
var usingCustomFee = false;
|
||||||
|
|
@ -31,6 +26,16 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
}, 10);
|
}, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.shareTransaction = function() {
|
||||||
|
var explorerTxUrl = 'https://explorer.bitcoin.com/'+tx.coin+'/tx/'+lastTxId;
|
||||||
|
if (platformInfo.isCordova) {
|
||||||
|
var text = 'Take a look at this Bitcoin transaction here: '+explorerTxUrl;
|
||||||
|
window.plugins.socialsharing.share(text, null, null, null);
|
||||||
|
} else {
|
||||||
|
ionicToast.show(gettextCatalog.getString('Copied to clipboard'), 'bottom', false, 3000);
|
||||||
|
clipboardService.copyToClipboard(explorerTxUrl);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
$scope.showWalletSelector = function() {
|
$scope.showWalletSelector = function() {
|
||||||
$scope.walletSelector = true;
|
$scope.walletSelector = true;
|
||||||
|
|
@ -45,7 +50,6 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
$ionicConfig.views.swipeBackEnabled(false);
|
$ionicConfig.views.swipeBackEnabled(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
function exitWithError(err) {
|
function exitWithError(err) {
|
||||||
$log.info('Error setting wallet selector:' + err);
|
$log.info('Error setting wallet selector:' + err);
|
||||||
popupService.showAlert(gettextCatalog.getString(), bwcError.msg(err), function() {
|
popupService.showAlert(gettextCatalog.getString(), bwcError.msg(err), function() {
|
||||||
|
|
@ -68,112 +72,108 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
var setWalletSelector = function(coin, network, minAmount, cb) {
|
||||||
|
|
||||||
function setWalletSelector(coin, network, minAmount, cb) {
|
// no min amount? (sendMax) => look for no empty wallets
|
||||||
|
minAmount = minAmount || 1;
|
||||||
|
|
||||||
// no min amount? (sendMax) => look for no empty wallets
|
$scope.wallets = profileService.getWallets({
|
||||||
minAmount = minAmount || 1;
|
onlyComplete: true,
|
||||||
|
network: network,
|
||||||
|
coin: coin
|
||||||
|
});
|
||||||
|
|
||||||
$scope.wallets = profileService.getWallets({
|
if (tx.fromWalletId) {
|
||||||
onlyComplete: true,
|
$scope.wallets = lodash.filter($scope.wallets, function (w) {
|
||||||
network: network,
|
return w.id == tx.fromWalletId;
|
||||||
coin: coin
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (tx.fromWalletId) {
|
|
||||||
$scope.wallets = lodash.filter($scope.wallets, function(w) {
|
|
||||||
return w.id == tx.fromWalletId;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!$scope.wallets || !$scope.wallets.length) {
|
|
||||||
setNoWallet(gettextCatalog.getString('No wallets available'), true);
|
|
||||||
return cb();
|
|
||||||
}
|
|
||||||
|
|
||||||
var filteredWallets = [];
|
|
||||||
var index = 0;
|
|
||||||
var walletsUpdated = 0;
|
|
||||||
|
|
||||||
lodash.each($scope.wallets, function(w) {
|
|
||||||
walletService.getStatus(w, {}, function(err, status) {
|
|
||||||
if (err || !status) {
|
|
||||||
$log.error(err);
|
|
||||||
} else {
|
|
||||||
walletsUpdated++;
|
|
||||||
w.status = status;
|
|
||||||
|
|
||||||
if (!status.availableBalanceSat)
|
|
||||||
$log.debug('No balance available in: ' + w.name);
|
|
||||||
|
|
||||||
if (status.availableBalanceSat > minAmount) {
|
|
||||||
filteredWallets.push(w);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (++index == $scope.wallets.length) {
|
|
||||||
if (!walletsUpdated)
|
|
||||||
return cb('Could not update any wallet');
|
|
||||||
|
|
||||||
if (lodash.isEmpty(filteredWallets)) {
|
|
||||||
setNoWallet(gettextCatalog.getString('Insufficient confirmed funds'), true);
|
|
||||||
}
|
|
||||||
$scope.wallets = lodash.clone(filteredWallets);
|
|
||||||
return cb();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
// Setup $scope
|
|
||||||
|
|
||||||
var B = data.stateParams.coin == 'bch' ? bitcoreCash : bitcore;
|
|
||||||
var networkName;
|
|
||||||
try {
|
|
||||||
networkName = (new B.Address(data.stateParams.toAddress)).network.name;
|
|
||||||
} catch(e) {
|
|
||||||
var message = gettextCatalog.getString('Invalid address');
|
|
||||||
var backText = gettextCatalog.getString('Go back');
|
|
||||||
var learnText = gettextCatalog.getString('Learn more');
|
|
||||||
popupService.showConfirm(null, message, backText, learnText, function(back) {
|
|
||||||
$ionicHistory.nextViewOptions({
|
|
||||||
disableAnimate: true,
|
|
||||||
historyRoot: true
|
|
||||||
});
|
|
||||||
$state.go('tabs.send').then(function() {
|
|
||||||
$ionicHistory.clearHistory();
|
|
||||||
if (!back) {
|
|
||||||
var url = 'https://support.bitpay.com/hc/en-us/articles/115004671663';
|
|
||||||
externalLinkService.open(url);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (!$scope.wallets || !$scope.wallets.length) {
|
||||||
|
setNoWallet(gettextCatalog.getString('No wallets available'), true);
|
||||||
|
return cb();
|
||||||
|
}
|
||||||
|
|
||||||
|
var filteredWallets = [];
|
||||||
|
var index = 0;
|
||||||
|
var walletsUpdated = 0;
|
||||||
|
|
||||||
|
lodash.each($scope.wallets, function (w) {
|
||||||
|
walletService.getStatus(w, {}, function (err, status) {
|
||||||
|
if (err || !status) {
|
||||||
|
$log.error(err);
|
||||||
|
} else {
|
||||||
|
walletsUpdated++;
|
||||||
|
w.status = status;
|
||||||
|
|
||||||
|
if (!status.availableBalanceSat)
|
||||||
|
$log.debug('No balance available in: ' + w.name);
|
||||||
|
|
||||||
|
if (status.availableBalanceSat > minAmount) {
|
||||||
|
filteredWallets.push(w);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (++index == $scope.wallets.length) {
|
||||||
|
if (!walletsUpdated)
|
||||||
|
return cb('Could not update any wallet');
|
||||||
|
|
||||||
|
if (lodash.isEmpty(filteredWallets)) {
|
||||||
|
setNoWallet(gettextCatalog.getString('Insufficient confirmed funds'), true);
|
||||||
|
}
|
||||||
|
$scope.wallets = lodash.clone(filteredWallets);
|
||||||
|
return cb();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.getContacts = function(addr) {
|
||||||
|
addressbookService.list(function(err, ab) {
|
||||||
|
if (err) $log.error(err);
|
||||||
|
|
||||||
|
$scope.hasContacts = lodash.isEmpty(ab) ? false : true;
|
||||||
|
if (!$scope.hasContacts) return cb();
|
||||||
|
|
||||||
|
var completeContacts = [];
|
||||||
|
lodash.each(ab, function(v, k) {
|
||||||
|
completeContacts.push({
|
||||||
|
name: lodash.isObject(v) ? v.name : v,
|
||||||
|
address: k,
|
||||||
|
email: lodash.isObject(v) ? v.email : null,
|
||||||
|
recipientType: 'contact',
|
||||||
|
coin: v.coin,
|
||||||
|
displayCoin: (v.coin == 'bch'
|
||||||
|
? (config.bitcoinCashAlias || defaults.bitcoinCashAlias)
|
||||||
|
: (config.bitcoinAlias || defaults.bitcoinAlias)).toUpperCase()
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
return cb();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
|
$scope.fromWallet = profileService.getWallet(data.stateParams.fromWalletId); // Wallet to send from
|
||||||
|
|
||||||
|
|
||||||
// Grab stateParams
|
// Grab stateParams
|
||||||
tx = {
|
tx = {
|
||||||
toAmount: parseInt(data.stateParams.toAmount),
|
amount: parseInt(data.stateParams.amount),
|
||||||
sendMax: data.stateParams.useSendMax == 'true' ? true : false,
|
sendMax: data.stateParams.useSendMax == 'true' ? true : false,
|
||||||
fromWalletId: data.stateParams.fromWalletId,
|
fromWalletId: data.stateParams.fromWalletId,
|
||||||
toAddress: data.stateParams.toAddress,
|
toAddress: data.stateParams.toAddress,
|
||||||
displayAddress: data.stateParams.displayAddress,
|
|
||||||
description: data.stateParams.description,
|
|
||||||
paypro: data.stateParams.paypro,
|
|
||||||
|
|
||||||
feeLevel: configFeeLevel,
|
feeLevel: configFeeLevel,
|
||||||
spendUnconfirmed: walletConfig.spendUnconfirmed,
|
spendUnconfirmed: walletConfig.spendUnconfirmed,
|
||||||
|
|
||||||
// Vanity tx info (not in the real tx)
|
// Vanity tx info (not in the real tx)
|
||||||
recipientType: data.stateParams.recipientType || null,
|
recipientType: $scope.recipientType || null,
|
||||||
toName: data.stateParams.toName,
|
toName: null,
|
||||||
toEmail: data.stateParams.toEmail,
|
toEmail: null,
|
||||||
toColor: data.stateParams.toColor,
|
toColor: null,
|
||||||
network: networkName,
|
network: false,
|
||||||
coin: data.stateParams.coin,
|
coin: $scope.fromWallet.coin,
|
||||||
txp: {},
|
txp: {},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -182,18 +182,71 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
tx.feeRate = parseInt(data.stateParams.requiredFeeRate);
|
tx.feeRate = parseInt(data.stateParams.requiredFeeRate);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tx.coin && tx.coin == 'bch') {
|
if (tx.coin && tx.coin === 'bch') {
|
||||||
tx.feeLevel = 'normal';
|
tx.feeLevel = 'normal';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var B = data.stateParams.coin === 'bch' ? bitcoreCash : bitcore;
|
||||||
|
var networkName;
|
||||||
|
$scope.recipientType = null;
|
||||||
|
try {
|
||||||
|
if (data.stateParams.toWalletId) { // There is a toWalletId, so we presume this is a wallet-to-wallet transfer
|
||||||
|
$scope.recipientType = 'wallet'; // set transaction type to wallet-to-wallet
|
||||||
|
$ionicLoading.show();
|
||||||
|
|
||||||
|
var toWallet = profileService.getWallet(data.stateParams.toWalletId);
|
||||||
|
tx.toColor = toWallet.color;
|
||||||
|
tx.toName = toWallet.name;
|
||||||
|
|
||||||
|
// We need an address to send to, so we ask the walletService to create a new address for the toWallet.
|
||||||
|
walletService.getAddress(toWallet, true, function (err, addr) {
|
||||||
|
$ionicLoading.hide();
|
||||||
|
tx.toAddress = addr;
|
||||||
|
networkName = (new B.Address(tx.toAddress)).network.name;
|
||||||
|
tx.network = networkName;
|
||||||
|
setupTx(tx);
|
||||||
|
});
|
||||||
|
} else { // This is a Wallet-to-address transfer
|
||||||
|
networkName = (new B.Address(tx.toAddress)).network.name;
|
||||||
|
tx.network = networkName;
|
||||||
|
setupTx(tx);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
var message = gettextCatalog.getString('Invalid address');
|
||||||
|
popupService.showAlert(null, message, function () {
|
||||||
|
$ionicHistory.nextViewOptions({
|
||||||
|
disableAnimate: true,
|
||||||
|
historyRoot: true
|
||||||
|
});
|
||||||
|
$state.go('tabs.send').then(function () {
|
||||||
|
$ionicHistory.clearHistory();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var setupTx = function(tx) {
|
||||||
|
if (tx.coin === 'bch') {
|
||||||
|
tx.displayAddress = bitcoinCashJsService.readAddress(tx.toAddress).cashaddr;
|
||||||
|
} else {
|
||||||
|
tx.displayAddress = entry.address;
|
||||||
|
}
|
||||||
|
|
||||||
|
addressbookService.get(tx.coin+tx.toAddress, function(err, addr) { // Check if the recipient is a contact
|
||||||
|
if (!err && addr) {
|
||||||
|
tx.toName = addr.name;
|
||||||
|
tx.toEmail = addr.email;
|
||||||
|
tx.recipientType = 'contact';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Other Scope vars
|
// Other Scope vars
|
||||||
$scope.isCordova = isCordova;
|
$scope.isCordova = isCordova;
|
||||||
$scope.isWindowsPhoneApp = isWindowsPhoneApp;
|
|
||||||
$scope.showAddress = false;
|
$scope.showAddress = false;
|
||||||
|
|
||||||
$scope.walletSelectorTitle = gettextCatalog.getString('Send from');
|
$scope.walletSelectorTitle = gettextCatalog.getString('Send from');
|
||||||
|
|
||||||
setWalletSelector(tx.coin, tx.network, tx.toAmount, function(err) {
|
setWalletSelector(tx.coin, tx.network, tx.amount, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return exitWithError('Could not update wallets');
|
return exitWithError('Could not update wallets');
|
||||||
}
|
}
|
||||||
|
|
@ -207,7 +260,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
|
|
||||||
$scope.displayBalanceAsFiat = walletConfig.settings.priceDisplay === 'fiat';
|
$scope.displayBalanceAsFiat = walletConfig.settings.priceDisplay === 'fiat';
|
||||||
|
|
||||||
});
|
};
|
||||||
|
|
||||||
|
|
||||||
function getSendMaxInfo(tx, wallet, cb) {
|
function getSendMaxInfo(tx, wallet, cb) {
|
||||||
|
|
@ -231,7 +284,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
return setSendError(msg);
|
return setSendError(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tx.toAmount > Number.MAX_SAFE_INTEGER) {
|
if (tx.amount > Number.MAX_SAFE_INTEGER) {
|
||||||
var msg = gettextCatalog.getString('Amount too big');
|
var msg = gettextCatalog.getString('Amount too big');
|
||||||
$log.warn(msg);
|
$log.warn(msg);
|
||||||
return setSendError(msg);
|
return setSendError(msg);
|
||||||
|
|
@ -241,7 +294,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
|
|
||||||
txp.outputs = [{
|
txp.outputs = [{
|
||||||
'toAddress': tx.toAddress,
|
'toAddress': tx.toAddress,
|
||||||
'amount': tx.toAmount,
|
'amount': tx.amount,
|
||||||
'message': tx.description
|
'message': tx.description
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
|
@ -280,14 +333,17 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
$scope.tx = tx;
|
$scope.tx = tx;
|
||||||
|
|
||||||
function updateAmount() {
|
function updateAmount() {
|
||||||
if (!tx.toAmount) return;
|
if (!tx.amount) return;
|
||||||
|
|
||||||
// Amount
|
// Amount
|
||||||
tx.amountStr = txFormatService.formatAmountStr(wallet.coin, tx.toAmount);
|
tx.amountStr = txFormatService.formatAmountStr(wallet.coin, tx.amount);
|
||||||
tx.amountValueStr = tx.amountStr.split(' ')[0];
|
tx.amountValueStr = tx.amountStr.split(' ')[0];
|
||||||
tx.amountUnitStr = tx.amountStr.split(' ')[1];
|
tx.amountUnitStr = tx.amountStr.split(' ')[1];
|
||||||
txFormatService.formatAlternativeStr(wallet.coin, tx.toAmount, function(v) {
|
txFormatService.formatAlternativeStr(wallet.coin, tx.amount, function(v) {
|
||||||
|
var parts = v.split(' ');
|
||||||
tx.alternativeAmountStr = v;
|
tx.alternativeAmountStr = v;
|
||||||
|
tx.alternativeAmountValueStr = parts[0];
|
||||||
|
tx.alternativeAmountUnitStr = (parts.length > 0) ? parts[1] : '';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -339,7 +395,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
}
|
}
|
||||||
|
|
||||||
tx.sendMaxInfo = sendMaxInfo;
|
tx.sendMaxInfo = sendMaxInfo;
|
||||||
tx.toAmount = tx.sendMaxInfo.amount;
|
tx.amount = tx.sendMaxInfo.amount;
|
||||||
updateAmount();
|
updateAmount();
|
||||||
ongoingProcess.set('calculatingFee', false);
|
ongoingProcess.set('calculatingFee', false);
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
|
@ -390,7 +446,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
function useSelectedWallet() {
|
function useSelectedWallet() {
|
||||||
|
|
||||||
if (!$scope.useSendMax) {
|
if (!$scope.useSendMax) {
|
||||||
showAmount(tx.toAmount);
|
showAmount(tx.amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.onWalletSelect($scope.wallet);
|
$scope.onWalletSelect($scope.wallet);
|
||||||
|
|
@ -399,19 +455,19 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
function setButtonText(isMultisig, isPayPro) {
|
function setButtonText(isMultisig, isPayPro) {
|
||||||
|
|
||||||
if (isPayPro) {
|
if (isPayPro) {
|
||||||
if (isCordova && !isWindowsPhoneApp) {
|
if (isCordova) {
|
||||||
$scope.buttonText = gettextCatalog.getString('Slide to pay');
|
$scope.buttonText = gettextCatalog.getString('Slide to pay');
|
||||||
} else {
|
} else {
|
||||||
$scope.buttonText = gettextCatalog.getString('Click to pay');
|
$scope.buttonText = gettextCatalog.getString('Click to pay');
|
||||||
}
|
}
|
||||||
} else if (isMultisig) {
|
} else if (isMultisig) {
|
||||||
if (isCordova && !isWindowsPhoneApp) {
|
if (isCordova) {
|
||||||
$scope.buttonText = gettextCatalog.getString('Slide to accept');
|
$scope.buttonText = gettextCatalog.getString('Slide to accept');
|
||||||
} else {
|
} else {
|
||||||
$scope.buttonText = gettextCatalog.getString('Click to accept');
|
$scope.buttonText = gettextCatalog.getString('Click to accept');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (isCordova && !isWindowsPhoneApp) {
|
if (isCordova) {
|
||||||
$scope.buttonText = gettextCatalog.getString('Slide to send');
|
$scope.buttonText = gettextCatalog.getString('Slide to send');
|
||||||
} else {
|
} else {
|
||||||
$scope.buttonText = gettextCatalog.getString('Click to send');
|
$scope.buttonText = gettextCatalog.getString('Click to send');
|
||||||
|
|
@ -419,13 +475,14 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
$scope.toggleAddress = function() {
|
$scope.toggleAddress = function() {
|
||||||
$scope.showAddress = !$scope.showAddress;
|
$scope.showAddress = !$scope.showAddress;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
function showSendMaxWarning(wallet, sendMaxInfo) {
|
function showSendMaxWarning(wallet, sendMaxInfo) {
|
||||||
|
var feeAlternative = '',
|
||||||
|
msg = '';
|
||||||
|
|
||||||
function verifyExcludedUtxos() {
|
function verifyExcludedUtxos() {
|
||||||
var warningMsg = [];
|
var warningMsg = [];
|
||||||
|
|
@ -443,9 +500,18 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
return warningMsg.join('\n');
|
return warningMsg.join('\n');
|
||||||
};
|
};
|
||||||
|
|
||||||
var msg = gettextCatalog.getString("{{fee}} will be deducted for bitcoin networking fees.", {
|
feeAlternative = txFormatService.formatAlternativeStr(wallet.coin, sendMaxInfo.fee);
|
||||||
fee: txFormatService.formatAmountStr(wallet.coin, sendMaxInfo.fee)
|
if (feeAlternative) {
|
||||||
});
|
msg = gettextCatalog.getString("{{feeAlternative}} will be deducted for bitcoin networking fees ({{fee}}).", {
|
||||||
|
fee: txFormatService.formatAmountStr(wallet.coin, sendMaxInfo.fee),
|
||||||
|
feeAlternative: feeAlternative
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
msg = gettextCatalog.getString("{{fee}} will be deducted for bitcoin networking fees).", {
|
||||||
|
fee: txFormatService.formatAmountStr(wallet.coin, sendMaxInfo.fee)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
var warningMsg = verifyExcludedUtxos();
|
var warningMsg = verifyExcludedUtxos();
|
||||||
|
|
||||||
if (!lodash.isEmpty(warningMsg))
|
if (!lodash.isEmpty(warningMsg))
|
||||||
|
|
@ -598,6 +664,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
txConfirmNotification.subscribe(wallet, {
|
txConfirmNotification.subscribe(wallet, {
|
||||||
txid: txp.txid
|
txid: txp.txid
|
||||||
});
|
});
|
||||||
|
lastTxId = txp.txid;
|
||||||
}
|
}
|
||||||
}, onSendStatusChange);
|
}, onSendStatusChange);
|
||||||
};
|
};
|
||||||
|
|
@ -624,11 +691,23 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
(processName == 'sendingTx' && !$scope.wallet.canSign() && !$scope.wallet.isPrivKeyExternal())
|
(processName == 'sendingTx' && !$scope.wallet.canSign() && !$scope.wallet.isPrivKeyExternal())
|
||||||
) && !isOn) {
|
) && !isOn) {
|
||||||
$scope.sendStatus = 'success';
|
$scope.sendStatus = 'success';
|
||||||
if (config.soundsEnabled && $scope.wallet.coin == 'bch') {
|
|
||||||
var audio = new Audio('misc/bch_sent.mp3');
|
if ($state.current.name === "tabs.send.confirm") { // XX SP: Otherwise all open wallets on other devices play this sound if you have been in a send flow before on that device.
|
||||||
audio.play();
|
soundService.play('misc/payment_sent.mp3');
|
||||||
}
|
}
|
||||||
firebaseEventsService.logEvent('sent_bitcoin', { coin: $scope.wallet.coin });
|
|
||||||
|
var channel = "ga";
|
||||||
|
if (platformInfo.isCordova) {
|
||||||
|
channel = "firebase";
|
||||||
|
}
|
||||||
|
var log = new window.BitAnalytics.LogEvent("transfer_success", [{
|
||||||
|
"coin": $scope.wallet.coin,
|
||||||
|
"type": "outgoing",
|
||||||
|
"amount": $scope.amount,
|
||||||
|
"fees": $scope.fee
|
||||||
|
}], [channel, "adjust"]);
|
||||||
|
window.BitAnalytics.LogEventHandlers.postEvent(log);
|
||||||
|
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$digest();
|
$scope.$digest();
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('createController',
|
angular.module('copayApp.controllers').controller('createController',
|
||||||
function($scope, $rootScope, $timeout, $log, lodash, $state, $ionicScrollDelegate, $ionicHistory, profileService, configService, gettextCatalog, ledger, trezor, intelTEE, derivationPathHelper, ongoingProcess, walletService, storageService, popupService, appConfigService, pushNotificationsService, firebaseEventsService, $ionicNavBarDelegate) {
|
function($scope, $timeout, $log, lodash, $state, $ionicScrollDelegate, $ionicHistory, profileService, configService, gettextCatalog, ledger, trezor, intelTEE, derivationPathHelper, ongoingProcess, walletService, popupService, appConfigService, pushNotificationsService, $ionicNavBarDelegate) {
|
||||||
|
|
||||||
/* For compressed keys, m*73 + n*34 <= 496 */
|
/* For compressed keys, m*73 + n*34 <= 496 */
|
||||||
var COPAYER_PAIR_LIMITS = {
|
var COPAYER_PAIR_LIMITS = {
|
||||||
|
|
@ -268,7 +268,7 @@ angular.module('copayApp.controllers').controller('createController',
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
firebaseEventsService.logEvent('wallet_created', { coin: opts.coin });
|
//firebaseEventsService.logEvent('wallet_created', { coin: opts.coin });
|
||||||
$state.go('tabs.home');
|
$state.go('tabs.home');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ angular.module('copayApp.controllers').controller('customAmountController', func
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
var walletId = data.stateParams.id;
|
var walletId = data.stateParams.toWalletId;
|
||||||
|
|
||||||
if (!walletId) {
|
if (!walletId) {
|
||||||
showErrorAndBack('Error', 'No wallet selected');
|
showErrorAndBack('Error', 'No wallet selected');
|
||||||
|
|
@ -53,17 +53,26 @@ angular.module('copayApp.controllers').controller('customAmountController', func
|
||||||
$scope.address = bchAddresses[$scope.bchAddressType];
|
$scope.address = bchAddresses[$scope.bchAddressType];
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.coin = data.stateParams.coin;
|
$scope.coin = $scope.wallet.coin;
|
||||||
|
var satoshis = parseInt(data.stateParams.amount, 10);
|
||||||
var parsedAmount = txFormatService.parseAmount(
|
var parsedAmount = txFormatService.parseAmount(
|
||||||
$scope.wallet.coin,
|
$scope.wallet.coin,
|
||||||
data.stateParams.amount,
|
satoshis,
|
||||||
data.stateParams.currency);
|
'sat');
|
||||||
|
|
||||||
// Amount in USD or BTC
|
// Amount in USD or BTC
|
||||||
var amount = parsedAmount.amount;
|
var amount = parsedAmount.amount;
|
||||||
var currency = parsedAmount.currency;
|
var currency = parsedAmount.currency;
|
||||||
$scope.amountUnitStr = parsedAmount.amountUnitStr;
|
$scope.amountUnitStr = parsedAmount.amountUnitStr;
|
||||||
|
|
||||||
|
configService.whenAvailable(function (config) {
|
||||||
|
$scope.selectedPriceDisplay = config.wallet.settings.priceDisplay;
|
||||||
|
|
||||||
|
$timeout(function () {
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
if (currency != 'BTC' && currency != 'BCH') {
|
if (currency != 'BTC' && currency != 'BCH') {
|
||||||
// Convert to BTC or BCH
|
// Convert to BTC or BCH
|
||||||
var config = configService.getSync().wallet.settings;
|
var config = configService.getSync().wallet.settings;
|
||||||
|
|
|
||||||
|
|
@ -1,53 +0,0 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('rateAppController', function($scope, $state, $stateParams, $window, lodash, externalLinkService, configService, platformInfo, feedbackService, ongoingProcess, popupService, appConfigService) {
|
|
||||||
$scope.score = parseInt($stateParams.score);
|
|
||||||
$scope.appName = appConfigService.nameCase;
|
|
||||||
var isAndroid = platformInfo.isAndroid;
|
|
||||||
var isIOS = platformInfo.isIOS;
|
|
||||||
|
|
||||||
var config = configService.getSync();
|
|
||||||
|
|
||||||
$scope.skip = function() {
|
|
||||||
var dataSrc = {
|
|
||||||
"Email": lodash.values(config.emailFor)[0] || ' ',
|
|
||||||
"Feedback": ' ',
|
|
||||||
"Score": $stateParams.score,
|
|
||||||
"AppVersion": $window.version,
|
|
||||||
"Platform": ionic.Platform.platform(),
|
|
||||||
"DeviceVersion": ionic.Platform.version()
|
|
||||||
};
|
|
||||||
feedbackService.send(dataSrc, function(err) {
|
|
||||||
if (err) {
|
|
||||||
// try to send, but not essential, since the user didn't add a message
|
|
||||||
$log.warn('Could not send feedback.');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$state.go('tabs.rate.complete', {
|
|
||||||
score: $stateParams.score,
|
|
||||||
skipped: true
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.sendFeedback = function() {
|
|
||||||
$state.go('tabs.rate.send', {
|
|
||||||
score: $scope.score
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.goAppStore = function() {
|
|
||||||
var defaults = configService.getDefaults();
|
|
||||||
var url;
|
|
||||||
if (isAndroid)
|
|
||||||
url = defaults.rateApp.bitcoincom.android;
|
|
||||||
if (isIOS)
|
|
||||||
url = defaults.rateApp.bitcoincom.ios;
|
|
||||||
|
|
||||||
externalLinkService.open(url);
|
|
||||||
$state.go('tabs.rate.complete', {
|
|
||||||
score: $stateParams.score,
|
|
||||||
skipped: true,
|
|
||||||
rated: true
|
|
||||||
});
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
@ -1,60 +0,0 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('rateCardController', function($scope, $state, $timeout, $log, gettextCatalog, platformInfo, storageService, appConfigService) {
|
|
||||||
|
|
||||||
$scope.isCordova = platformInfo.isCordova;
|
|
||||||
$scope.score = 0;
|
|
||||||
$scope.appName = appConfigService.nameCase;
|
|
||||||
|
|
||||||
$scope.goFeedbackFlow = function() {
|
|
||||||
$scope.hideCard();
|
|
||||||
if ($scope.isCordova && $scope.score == 5) {
|
|
||||||
$state.go('tabs.rate.rateApp', {
|
|
||||||
score: $scope.score
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
$state.go('tabs.rate.send', {
|
|
||||||
score: $scope.score
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.setScore = function(score) {
|
|
||||||
$scope.score = score;
|
|
||||||
switch ($scope.score) {
|
|
||||||
case 1:
|
|
||||||
$scope.button_title = gettextCatalog.getString("I think this app is terrible.");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
$scope.button_title = gettextCatalog.getString("I don't like it");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
$scope.button_title = gettextCatalog.getString("Meh - it's alright");
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
$scope.button_title = gettextCatalog.getString("I like the app");
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
$scope.button_title = gettextCatalog.getString("This app is fantastic!");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
$timeout(function() {
|
|
||||||
$scope.$apply();
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.hideCard = function() {
|
|
||||||
$log.debug('Feedback card dismissed.')
|
|
||||||
storageService.getFeedbackInfo(function(error, info) {
|
|
||||||
var feedbackInfo = JSON.parse(info);
|
|
||||||
feedbackInfo.sent = true;
|
|
||||||
storageService.setFeedbackInfo(JSON.stringify(feedbackInfo), function() {
|
|
||||||
$scope.showRateCard.value = false;
|
|
||||||
$timeout(function() {
|
|
||||||
$scope.$apply();
|
|
||||||
}, 100);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
@ -1,102 +0,0 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('sendController', function($scope, $state, $log, $timeout, $stateParams, $ionicNavBarDelegate, $ionicHistory, $ionicConfig, $window, gettextCatalog, popupService, configService, lodash, feedbackService, ongoingProcess, platformInfo, appConfigService) {
|
|
||||||
|
|
||||||
$scope.sendFeedback = function(feedback, goHome) {
|
|
||||||
|
|
||||||
var config = configService.getSync();
|
|
||||||
|
|
||||||
var dataSrc = {
|
|
||||||
"Email": lodash.values(config.emailFor)[0] || ' ',
|
|
||||||
"Feedback": goHome ? ' ' : feedback,
|
|
||||||
"Score": $stateParams.score || ' ',
|
|
||||||
"AppVersion": $window.version,
|
|
||||||
"Platform": ionic.Platform.platform(),
|
|
||||||
"DeviceVersion": ionic.Platform.version()
|
|
||||||
};
|
|
||||||
|
|
||||||
if (!goHome) ongoingProcess.set('sendingFeedback', true);
|
|
||||||
feedbackService.send(dataSrc, function(err) {
|
|
||||||
if (goHome) return;
|
|
||||||
ongoingProcess.set('sendingFeedback', false);
|
|
||||||
if (err) {
|
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Feedback could not be submitted. Please try again later.'));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!$stateParams.score) {
|
|
||||||
popupService.showAlert(gettextCatalog.getString('Thank you!'), gettextCatalog.getString('A member of the team will review your feedback as soon as possible.'), function() {
|
|
||||||
$scope.feedback.value = '';
|
|
||||||
$ionicHistory.nextViewOptions({
|
|
||||||
disableAnimate: false,
|
|
||||||
historyRoot: true
|
|
||||||
});
|
|
||||||
$ionicHistory.goBack();
|
|
||||||
}, gettextCatalog.getString('Finish'));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$state.go('tabs.rate.complete', {
|
|
||||||
score: $stateParams.score
|
|
||||||
});
|
|
||||||
});
|
|
||||||
if (goHome) $state.go('tabs.home');
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeLeave", function(event, data) {
|
|
||||||
$ionicConfig.views.swipeBackEnabled(true);
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.$on("$ionicView.enter", function(event, data) {
|
|
||||||
if ($scope.score)
|
|
||||||
$ionicConfig.views.swipeBackEnabled(false);
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
|
||||||
$scope.isCordova = platformInfo.isCordova;
|
|
||||||
$scope.score = (data.stateParams && data.stateParams.score) ? parseInt(data.stateParams.score) : null;
|
|
||||||
$scope.feedback = {};
|
|
||||||
|
|
||||||
switch ($scope.score) {
|
|
||||||
case 1:
|
|
||||||
$scope.reaction = "Ouch!";
|
|
||||||
$scope.comment = gettextCatalog.getString("There's obviously something we're doing wrong.") + ' ' + gettextCatalog.getString("How could we improve your experience?");
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
$scope.reaction = gettextCatalog.getString("Oh no!");
|
|
||||||
$scope.comment = gettextCatalog.getString("There's obviously something we're doing wrong.") + ' ' + gettextCatalog.getString("How could we improve your experience?");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
$scope.reaction = "Hmm...";
|
|
||||||
$scope.comment = gettextCatalog.getString("We'd love to do better.") + ' ' + gettextCatalog.getString("How could we improve your experience?");
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
$scope.reaction = gettextCatalog.getString("Thanks!");
|
|
||||||
$scope.comment = gettextCatalog.getString("That's exciting to hear. We'd love to earn that fifth star from you – how could we improve your experience?");
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
$scope.reaction = gettextCatalog.getString("Thank you!");
|
|
||||||
$scope.comment = gettextCatalog.getString("We're always looking for ways to improve {{appName}}.", {
|
|
||||||
appName: appConfigService.nameCase
|
|
||||||
}) + ' ' + gettextCatalog.getString("Is there anything we could do better?");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
$scope.justFeedback = true;
|
|
||||||
$scope.comment = gettextCatalog.getString("We're always looking for ways to improve {{appName}}. How could we improve your experience?", {
|
|
||||||
appName: appConfigService.nameCase
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.$on("$ionicView.afterEnter", function() {
|
|
||||||
$scope.showForm = true;
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.goBack = function() {
|
|
||||||
$ionicHistory.nextViewOptions({
|
|
||||||
disableAnimate: false,
|
|
||||||
historyRoot: true
|
|
||||||
});
|
|
||||||
$ionicHistory.goBack();
|
|
||||||
};
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
@ -75,6 +75,15 @@ angular.module('copayApp.controllers').controller('preferencesNotificationsContr
|
||||||
};
|
};
|
||||||
|
|
||||||
emailService.updateEmail(opts);
|
emailService.updateEmail(opts);
|
||||||
|
|
||||||
|
var channel = "ga";
|
||||||
|
if (platformInfo.isCordova) {
|
||||||
|
channel = "firebase";
|
||||||
|
}
|
||||||
|
var log = new window.BitAnalytics.LogEvent("settings_email_notification_toggle", [{
|
||||||
|
"toggle": $scope.emailNotifications.value
|
||||||
|
}], [channel]);
|
||||||
|
window.BitAnalytics.LogEventHandlers.postEvent(log);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.soundNotificationsChange = function() {
|
$scope.soundNotificationsChange = function() {
|
||||||
|
|
|
||||||
932
src/js/controllers/review.controller.js
Normal file
932
src/js/controllers/review.controller.js
Normal file
|
|
@ -0,0 +1,932 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('copayApp.controllers')
|
||||||
|
.controller('reviewController', reviewController);
|
||||||
|
|
||||||
|
function reviewController(addressbookService, bitcoinCashJsService, bitcore, bitcoreCash, bwcError, clipboardService, configService, feeService, gettextCatalog, $interval, $ionicHistory, $ionicModal, ionicToast, lodash, $log, ongoingProcess, platformInfo, popupService, profileService, $scope, sendFlowService, shapeshiftService, soundService, $state, $timeout, txConfirmNotification, txFormatService, walletService) {
|
||||||
|
var vm = this;
|
||||||
|
|
||||||
|
vm.buttonText = '';
|
||||||
|
vm.destination = {
|
||||||
|
address: '',
|
||||||
|
balanceAmount: '',
|
||||||
|
balanceCurrency: '',
|
||||||
|
coin: '',
|
||||||
|
color: '',
|
||||||
|
currency: '',
|
||||||
|
currencyColor: '',
|
||||||
|
kind: '', // 'address', 'contact', 'wallet'
|
||||||
|
name: ''
|
||||||
|
};
|
||||||
|
vm.displayAddress = '';
|
||||||
|
vm.feeCrypto = '';
|
||||||
|
vm.feeFiat = '';
|
||||||
|
vm.fiatCurrency = '';
|
||||||
|
vm.feeIsHigh = false;
|
||||||
|
vm.feeLessThanACent = false;
|
||||||
|
vm.isCordova = platformInfo.isCordova;
|
||||||
|
vm.notReadyMessage = '';
|
||||||
|
vm.origin = {
|
||||||
|
balanceAmount: '',
|
||||||
|
balanceCurrency: '',
|
||||||
|
currency: '',
|
||||||
|
currencyColor: '',
|
||||||
|
};
|
||||||
|
vm.originWallet = null;
|
||||||
|
vm.paymentExpired = false;
|
||||||
|
vm.personalNotePlaceholder = gettextCatalog.getString('Enter text here');
|
||||||
|
vm.primaryAmount = '';
|
||||||
|
vm.primaryCurrency = '';
|
||||||
|
vm.usingMerchantFee = false;
|
||||||
|
vm.readyToSend = false;
|
||||||
|
vm.remainingTimeStr = '';
|
||||||
|
vm.secondaryAmount = '';
|
||||||
|
vm.secondaryCurrency = '';
|
||||||
|
vm.sendingTitle = gettextCatalog.getString('You are sending');
|
||||||
|
vm.sendStatus = '';
|
||||||
|
vm.showAddress = true;
|
||||||
|
vm.thirdParty = false;
|
||||||
|
vm.wallet = null;
|
||||||
|
vm.memoExpanded = false;
|
||||||
|
|
||||||
|
// Functions
|
||||||
|
vm.goBack = goBack;
|
||||||
|
vm.onSuccessConfirm = onSuccessConfirm;
|
||||||
|
vm.onShareTransaction = onShareTransaction;
|
||||||
|
|
||||||
|
var sendFlowData;
|
||||||
|
var config = null;
|
||||||
|
var coin = '';
|
||||||
|
var countDown = null;
|
||||||
|
var defaults = {};
|
||||||
|
var usingCustomFee = false;
|
||||||
|
var usingMerchantFee = false;
|
||||||
|
var destinationWalletId = '';
|
||||||
|
var lastTxId = '';
|
||||||
|
var originWalletId = '';
|
||||||
|
var priceDisplayIsFiat = true;
|
||||||
|
var satoshis = null;
|
||||||
|
var toAddress = '';
|
||||||
|
var tx = {};
|
||||||
|
var txPayproData = null;
|
||||||
|
var unitFromSat = 0;
|
||||||
|
|
||||||
|
var FEE_TOO_HIGH_LIMIT_PERCENTAGE = 15;
|
||||||
|
|
||||||
|
$scope.$on("$ionicView.beforeEnter", onBeforeEnter);
|
||||||
|
|
||||||
|
|
||||||
|
function onBeforeEnter(event, data) {
|
||||||
|
console.log('walletSelector onBeforeEnter sendflow ', sendFlowService.state);
|
||||||
|
defaults = configService.getDefaults();
|
||||||
|
sendFlowData = sendFlowService.getStateClone();
|
||||||
|
originWalletId = sendFlowData.fromWalletId;
|
||||||
|
satoshis = parseInt(sendFlowData.amount, 10);
|
||||||
|
toAddress = sendFlowData.toAddress;
|
||||||
|
destinationWalletId = sendFlowData.toWalletId;
|
||||||
|
|
||||||
|
vm.displayAddress = sendFlowData.displayAddress;
|
||||||
|
vm.originWallet = profileService.getWallet(originWalletId);
|
||||||
|
vm.origin.currency = vm.originWallet.coin.toUpperCase();
|
||||||
|
coin = vm.originWallet.coin;
|
||||||
|
|
||||||
|
if (sendFlowData.thirdParty) {
|
||||||
|
vm.thirdParty = sendFlowData.thirdParty;
|
||||||
|
handleThirdPartyInitIfBip70();
|
||||||
|
handleThirdPartyInitIfShapeshift();
|
||||||
|
}
|
||||||
|
|
||||||
|
configService.get(function onConfig(err, configCache) {
|
||||||
|
if (err) {
|
||||||
|
$log.err('Error getting config.', err);
|
||||||
|
} else {
|
||||||
|
config = configCache;
|
||||||
|
priceDisplayIsFiat = config.wallet.settings.priceDisplay === 'fiat';
|
||||||
|
vm.origin.currencyColor = (vm.originWallet.coin === 'btc' ? defaults.bitcoinWalletColor : defaults.bitcoinCashWalletColor);
|
||||||
|
console.log("coin", vm.originWallet.coin, vm.origin.currencyColor, config.bitcoinWalletColor, vm.originWallet.coin === 'btc');
|
||||||
|
unitFromSat = 1 / config.wallet.settings.unitToSatoshi;
|
||||||
|
}
|
||||||
|
updateSendAmounts();
|
||||||
|
getOriginWalletBalance(vm.originWallet);
|
||||||
|
handleDestinationAsAddress(toAddress, coin);
|
||||||
|
handleDestinationAsWallet(sendFlowData.toWalletId);
|
||||||
|
createVanityTransaction(data);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
vm.approve = function() {
|
||||||
|
|
||||||
|
if (!tx || !vm.originWallet) return;
|
||||||
|
|
||||||
|
if (vm.paymentExpired) {
|
||||||
|
popupService.showAlert(null, gettextCatalog.getString('This bitcoin payment request has expired.', function () {
|
||||||
|
$ionicHistory.goBack();
|
||||||
|
}));
|
||||||
|
vm.sendStatus = '';
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ongoingProcess.set('creatingTx', true, statusChangeHandler);
|
||||||
|
getTxp(lodash.clone(tx), vm.originWallet, false, function(err, txp) {
|
||||||
|
ongoingProcess.set('creatingTx', false, statusChangeHandler);
|
||||||
|
if (err) return;
|
||||||
|
|
||||||
|
// confirm txs for more that 20usd, if not spending/touchid is enabled
|
||||||
|
function confirmTx(cb) {
|
||||||
|
if (walletService.isEncrypted(vm.originWallet))
|
||||||
|
return cb();
|
||||||
|
|
||||||
|
var amountUsd = parseFloat(txFormatService.formatToUSD(vm.originWallet.coin, txp.amount));
|
||||||
|
return cb();
|
||||||
|
};
|
||||||
|
|
||||||
|
function publishAndSign() {
|
||||||
|
if (!vm.originWallet.canSign() && !vm.originWallet.isPrivKeyExternal()) {
|
||||||
|
$log.info('No signing proposal: No private key');
|
||||||
|
|
||||||
|
return walletService.onlyPublish(vm.originWallet, txp, function(err) {
|
||||||
|
if (err) setSendError(err);
|
||||||
|
}, statusChangeHandler);
|
||||||
|
}
|
||||||
|
|
||||||
|
walletService.publishAndSign(vm.originWallet, txp, function(err, txp) {
|
||||||
|
if (err) return setSendError(err);
|
||||||
|
if (config.confirmedTxsNotifications && config.confirmedTxsNotifications.enabled) {
|
||||||
|
txConfirmNotification.subscribe(vm.originWallet, {
|
||||||
|
txid: txp.txid
|
||||||
|
});
|
||||||
|
lastTxId = txp.txid;
|
||||||
|
}
|
||||||
|
}, statusChangeHandler);
|
||||||
|
};
|
||||||
|
|
||||||
|
confirmTx(function(nok) {
|
||||||
|
if (nok) {
|
||||||
|
vm.sendStatus = '';
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
publishAndSign();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
vm.chooseFeeLevel = function(tx, wallet) {
|
||||||
|
|
||||||
|
if (wallet.coin == 'bch') return;
|
||||||
|
if (usingMerchantFee) return;
|
||||||
|
|
||||||
|
var scope = $rootScope.$new(true);
|
||||||
|
scope.network = tx.network;
|
||||||
|
scope.feeLevel = tx.feeLevel;
|
||||||
|
scope.noSave = true;
|
||||||
|
scope.coin = vm.originWallet.coin;
|
||||||
|
|
||||||
|
if (usingCustomFee) {
|
||||||
|
scope.customFeePerKB = tx.feeRate;
|
||||||
|
scope.feePerSatByte = tx.feeRate / 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
$ionicModal.fromTemplateUrl('views/modals/chooseFeeLevel.html', {
|
||||||
|
scope: scope,
|
||||||
|
backdropClickToClose: false,
|
||||||
|
hardwareBackButtonClose: false
|
||||||
|
}).then(function(modal) {
|
||||||
|
scope.chooseFeeLevelModal = modal;
|
||||||
|
scope.openModal();
|
||||||
|
});
|
||||||
|
scope.openModal = function() {
|
||||||
|
scope.chooseFeeLevelModal.show();
|
||||||
|
};
|
||||||
|
|
||||||
|
scope.hideModal = function(newFeeLevel, customFeePerKB) {
|
||||||
|
scope.chooseFeeLevelModal.hide();
|
||||||
|
$log.debug('New fee level choosen:' + newFeeLevel + ' was:' + tx.feeLevel);
|
||||||
|
|
||||||
|
usingCustomFee = newFeeLevel == 'custom' ? true : false;
|
||||||
|
|
||||||
|
if (tx.feeLevel == newFeeLevel && !usingCustomFee) return;
|
||||||
|
|
||||||
|
tx.feeLevel = newFeeLevel;
|
||||||
|
if (usingCustomFee) tx.feeRate = parseInt(customFeePerKB);
|
||||||
|
|
||||||
|
updateTx(tx, vm.originWallet, {
|
||||||
|
clearCache: true,
|
||||||
|
dryRun: true
|
||||||
|
}, function() {});
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
function createVanityTransaction(data) {
|
||||||
|
console.log('createVanityTransaction()');
|
||||||
|
var configFeeLevel = config.wallet.settings.feeLevel ? config.wallet.settings.feeLevel : 'normal';
|
||||||
|
|
||||||
|
// Grab stateParams
|
||||||
|
tx = {
|
||||||
|
amount: parseInt(sendFlowData.amount),
|
||||||
|
sendMax: sendFlowData.sendMax,
|
||||||
|
fromWalletId: sendFlowData.fromWalletId,
|
||||||
|
toAddress: sendFlowData.toAddress,
|
||||||
|
paypro: txPayproData,
|
||||||
|
|
||||||
|
feeLevel: configFeeLevel,
|
||||||
|
spendUnconfirmed: config.wallet.spendUnconfirmed,
|
||||||
|
|
||||||
|
// Vanity tx info (not in the real tx)
|
||||||
|
recipientType: vm.destination.kind || null,
|
||||||
|
toName: vm.destination.name || null,
|
||||||
|
toEmail: vm.destination.email || null,
|
||||||
|
toColor: vm.destination.color || null,
|
||||||
|
network: false,
|
||||||
|
coin: vm.originWallet.coin,
|
||||||
|
txp: {},
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
if (data.stateParams.requiredFeeRate) {
|
||||||
|
vm.usingMerchantFee = true;
|
||||||
|
tx.feeRate = parseInt(data.stateParams.requiredFeeRate);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (tx.coin && tx.coin === 'bch') {
|
||||||
|
tx.feeLevel = 'normal';
|
||||||
|
}
|
||||||
|
|
||||||
|
var B = tx.coin === 'bch' ? bitcoreCash : bitcore;
|
||||||
|
var networkName;
|
||||||
|
try {
|
||||||
|
if (vm.destination.kind === 'wallet') { // This is a wallet-to-wallet transfer
|
||||||
|
ongoingProcess.set('generatingNewAddress', true);
|
||||||
|
var toWallet = profileService.getWallet(destinationWalletId);
|
||||||
|
|
||||||
|
// We need an address to send to, so we ask the walletService to create a new address for the toWallet.
|
||||||
|
console.log('Getting address for wallet...');
|
||||||
|
walletService.getAddress(toWallet, true, function onWalletAddress(err, addr) {
|
||||||
|
console.log('getAddress cb called', err);
|
||||||
|
ongoingProcess.set('generatingNewAddress', false);
|
||||||
|
tx.toAddress = addr;
|
||||||
|
networkName = (new B.Address(tx.toAddress)).network.name;
|
||||||
|
tx.network = networkName;
|
||||||
|
console.log('calling setupTx() for wallet.');
|
||||||
|
setupTx(tx);
|
||||||
|
});
|
||||||
|
} else { // This is a Wallet-to-address transfer
|
||||||
|
networkName = (new B.Address(tx.toAddress)).network.name;
|
||||||
|
tx.network = networkName;
|
||||||
|
console.log('calling setupTx() for address.');
|
||||||
|
setupTx(tx);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.error('Error setting up tx', e);
|
||||||
|
var message = gettextCatalog.getString('Invalid address');
|
||||||
|
popupService.showAlert(null, message, function () {
|
||||||
|
$ionicHistory.nextViewOptions({
|
||||||
|
disableAnimate: true,
|
||||||
|
historyRoot: true
|
||||||
|
});
|
||||||
|
$state.go('tabs.send').then(function () {
|
||||||
|
$ionicHistory.clearHistory();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getOriginWalletBalance(originWallet) {
|
||||||
|
var balanceText = getWalletBalanceDisplayText(vm.originWallet);
|
||||||
|
vm.origin.balanceAmount = balanceText.amount;
|
||||||
|
vm.origin.balanceCurrency = balanceText.currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getSendMaxInfo(tx, wallet, cb) {
|
||||||
|
if (!tx.sendMax) return cb();
|
||||||
|
|
||||||
|
//ongoingProcess.set('retrievingInputs', true);
|
||||||
|
walletService.getSendMaxInfo(wallet, {
|
||||||
|
feePerKb: tx.feeRate,
|
||||||
|
excludeUnconfirmedUtxos: !tx.spendUnconfirmed,
|
||||||
|
returnInputs: true,
|
||||||
|
}, cb);
|
||||||
|
};
|
||||||
|
|
||||||
|
function getTxp(tx, wallet, dryRun, cb) {
|
||||||
|
|
||||||
|
// ToDo: use a credential's (or fc's) function for this
|
||||||
|
if (tx.description && !wallet.credentials.sharedEncryptingKey) {
|
||||||
|
var msg = gettextCatalog.getString('Could not add message to imported wallet without shared encrypting key');
|
||||||
|
$log.warn(msg);
|
||||||
|
return setSendError(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (tx.amount > Number.MAX_SAFE_INTEGER) {
|
||||||
|
var msg = gettextCatalog.getString('Amount too big');
|
||||||
|
$log.warn(msg);
|
||||||
|
return setSendError(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
var txp = {};
|
||||||
|
|
||||||
|
txp.outputs = [{
|
||||||
|
'toAddress': tx.toAddress,
|
||||||
|
'amount': tx.amount,
|
||||||
|
'message': vm.memo
|
||||||
|
}];
|
||||||
|
|
||||||
|
if (tx.sendMaxInfo) {
|
||||||
|
txp.inputs = tx.sendMaxInfo.inputs;
|
||||||
|
txp.fee = tx.sendMaxInfo.fee;
|
||||||
|
} else {
|
||||||
|
if (usingCustomFee || usingMerchantFee) {
|
||||||
|
txp.feePerKb = tx.feeRate;
|
||||||
|
} else txp.feeLevel = tx.feeLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
txp.message = vm.memo;
|
||||||
|
|
||||||
|
if (tx.paypro) {
|
||||||
|
txp.payProUrl = tx.paypro.url;
|
||||||
|
}
|
||||||
|
txp.excludeUnconfirmedUtxos = !tx.spendUnconfirmed;
|
||||||
|
txp.dryRun = dryRun;
|
||||||
|
walletService.createTx(wallet, txp, function(err, ctxp) {
|
||||||
|
if (err) {
|
||||||
|
setSendError(err);
|
||||||
|
return cb(err);
|
||||||
|
}
|
||||||
|
return cb(null, ctxp);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
function getWalletBalanceDisplayText(wallet) {
|
||||||
|
var balanceCryptoAmount = '';
|
||||||
|
var balanceCryptoCurrencyCode = '';
|
||||||
|
var balanceFiatAmount = '';
|
||||||
|
var balanceFiatCurrency = ''
|
||||||
|
var displayAmount = '';
|
||||||
|
var displayCurrency = '';
|
||||||
|
|
||||||
|
var walletStatus = null;
|
||||||
|
if (wallet.status.isValid) {
|
||||||
|
walletStatus = wallet.status;
|
||||||
|
} else if (wallet.cachedStatus.isValid) {
|
||||||
|
walletStatus = wallet.cachedStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (walletStatus) {
|
||||||
|
var cryptoBalanceParts = walletStatus.spendableBalanceStr.split(' ');
|
||||||
|
balanceCryptoAmount = cryptoBalanceParts[0];
|
||||||
|
balanceCryptoCurrencyCode = cryptoBalanceParts.length > 1 ? cryptoBalanceParts[1] : '';
|
||||||
|
|
||||||
|
if (walletStatus.alternativeBalanceAvailable) {
|
||||||
|
balanceFiatAmount = walletStatus.spendableBalanceAlternative;
|
||||||
|
balanceFiatCurrency = walletStatus.alternativeIsoCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (priceDisplayIsFiat) {
|
||||||
|
displayAmount = balanceFiatAmount ? balanceFiatAmount : balanceCryptoAmount;
|
||||||
|
displayCurrency = balanceFiatAmount ? balanceFiatCurrency : balanceCryptoCurrencyCode;
|
||||||
|
} else {
|
||||||
|
displayAmount = balanceCryptoAmount;
|
||||||
|
displayCurrency = balanceCryptoCurrencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
amount: displayAmount,
|
||||||
|
currency: displayCurrency
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function goBack() {
|
||||||
|
$ionicHistory.goBack();
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleDestinationAsAddress(address, originCoin) {
|
||||||
|
if (!address) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if the recipient is a contact
|
||||||
|
addressbookService.get(originCoin + address, function(err, contact) {
|
||||||
|
if (!err && contact) {
|
||||||
|
handleDestinationAsAddressOfContact(contact);
|
||||||
|
} else {
|
||||||
|
if (originCoin === 'bch') {
|
||||||
|
vm.destination.address = bitcoinCashJsService.readAddress(address).cashaddr;
|
||||||
|
} else {
|
||||||
|
vm.destination.address = address;
|
||||||
|
}
|
||||||
|
vm.destination.kind = 'address';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleDestinationAsAddressOfContact(contact) {
|
||||||
|
vm.destination.kind = 'contact';
|
||||||
|
vm.destination.name = contact.name;
|
||||||
|
vm.destination.email = contact.email;
|
||||||
|
vm.destination.color = contact.coin === 'btc' ? defaults.bitcoinWalletColor : defaults.bitcoinCashWalletColor;
|
||||||
|
vm.destination.currency = contact.coin.toUpperCase();
|
||||||
|
vm.destination.currencyColor = vm.destination.color;
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleDestinationAsWallet(walletId) {
|
||||||
|
destinationWalletId = walletId;
|
||||||
|
if (!destinationWalletId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var destinationWallet = profileService.getWallet(destinationWalletId);
|
||||||
|
vm.destination.coin = destinationWallet.coin;
|
||||||
|
vm.destination.color = destinationWallet.color;
|
||||||
|
vm.destination.currency = destinationWallet.coin.toUpperCase();
|
||||||
|
vm.destination.kind = 'wallet';
|
||||||
|
vm.destination.name = destinationWallet.name;
|
||||||
|
|
||||||
|
if (defaults) {
|
||||||
|
vm.destination.currencyColor = vm.destination.coin === 'btc' ? defaults.bitcoinWalletColor : defaults.bitcoinCashWalletColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
var balanceText = getWalletBalanceDisplayText(destinationWallet);
|
||||||
|
vm.destination.balanceAmount = balanceText.amount;
|
||||||
|
vm.destination.balanceCurrency = balanceText.currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleThirdPartyInitIfBip70() {
|
||||||
|
if (vm.thirdParty.id === 'bip70') {
|
||||||
|
vm.sendingTitle = gettextCatalog.getString('You are paying');
|
||||||
|
vm.memo = vm.thirdParty.memo;
|
||||||
|
vm.memoExpanded = !!vm.memo;
|
||||||
|
vm.destination.name = vm.thirdParty.name;
|
||||||
|
|
||||||
|
txPayproData = {
|
||||||
|
caTrusted: vm.thirdParty.caTrusted,
|
||||||
|
domain: vm.thirdParty.domain,
|
||||||
|
expires: vm.thirdParty.expires,
|
||||||
|
toAddress: toAddress,
|
||||||
|
url: vm.thirdParty.url,
|
||||||
|
verified: vm.thirdParty.verified,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleThirdPartyInitIfShapeshift() {
|
||||||
|
if (vm.thirdParty.id === 'shapeshift') {
|
||||||
|
vm.sendingTitle = gettextCatalog.getString('You are shifting');
|
||||||
|
if (!vm.thirdParty.data) {
|
||||||
|
vm.thirdParty.data = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
var toWallet = profileService.getWallet(destinationWalletId);
|
||||||
|
vm.destination.name = toWallet.name;
|
||||||
|
vm.destination.color = toWallet.color;
|
||||||
|
vm.destination.currency = toWallet.coin.toUpperCase();
|
||||||
|
|
||||||
|
|
||||||
|
ongoingProcess.set('connectingShapeshift', true);
|
||||||
|
walletService.getAddress(vm.originWallet, false, function onReturnWalletAddress(err, returnAddr) {
|
||||||
|
if (err) {
|
||||||
|
ongoingProcess.set('connectingShapeshift', false);
|
||||||
|
popupService.showAlert(gettextCatalog.getString('Shapeshift Error'), err.toString(), function () {
|
||||||
|
$ionicHistory.goBack();
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
walletService.getAddress(toWallet, false, function onWithdrawalWalletAddress(err, withdrawalAddr) {
|
||||||
|
if (err) {
|
||||||
|
ongoingProcess.set('connectingShapeshift', false);
|
||||||
|
popupService.showAlert(gettextCatalog.getString('Shapeshift Error'), err.toString(), function () {
|
||||||
|
$ionicHistory.goBack();
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
shapeshiftService.shiftIt(vm.originWallet.coin, toWallet.coin, withdrawalAddr, returnAddr, function onShiftIt(err, shapeshiftData) {
|
||||||
|
if (err && err != null) {
|
||||||
|
ongoingProcess.set('connectingShapeshift', false);
|
||||||
|
popupService.showAlert(gettextCatalog.getString('Shapeshift Error'), err.toString(), function () {
|
||||||
|
$ionicHistory.goBack();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
vm.memo = 'ShapeShift Order:\nhttps://www.shapeshift.io/#/status/' + shapeshiftData.orderId;
|
||||||
|
vm.memoExpanded = !!vm.memo;
|
||||||
|
tx.toAddress = shapeshiftData.toAddress;
|
||||||
|
vm.destination.address = toAddress;
|
||||||
|
vm.destination.kind = 'shapeshift';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function onShareTransaction() {
|
||||||
|
var explorerTxUrl = 'https://explorer.bitcoin.com/' + tx.coin + '/tx/' + lastTxId;
|
||||||
|
if (platformInfo.isCordova) {
|
||||||
|
var text = gettextCatalog.getString('Take a look at this Bitcoin Cash transaction here: ') + explorerTxUrl;
|
||||||
|
if (coin === 'btc') {
|
||||||
|
text = gettextCatalog.getString('Take a look at this Bitcoin transaction here: ') + explorerTxUrl;
|
||||||
|
}
|
||||||
|
window.plugins.socialsharing.share(text, null, null, null);
|
||||||
|
} else {
|
||||||
|
ionicToast.show(gettextCatalog.getString('Copied to clipboard'), 'bottom', false, 3000);
|
||||||
|
clipboardService.copyToClipboard(explorerTxUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function startExpirationTimer(expirationTime) {
|
||||||
|
vm.paymentExpired = false;
|
||||||
|
setExpirationTime();
|
||||||
|
|
||||||
|
countDown = $interval(function() {
|
||||||
|
setExpirationTime();
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
|
function setExpirationTime() {
|
||||||
|
console.log('setExpirationTime()');
|
||||||
|
var now = Math.floor(Date.now() / 1000);
|
||||||
|
|
||||||
|
if (now > expirationTime) {
|
||||||
|
setExpiredValues();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var totalSecs = expirationTime - now;
|
||||||
|
var m = Math.floor(totalSecs / 60);
|
||||||
|
var s = totalSecs % 60;
|
||||||
|
vm.remainingTimeStr = m + ":" + ('0' + s).slice(-2);
|
||||||
|
};
|
||||||
|
|
||||||
|
function setExpiredValues() {
|
||||||
|
vm.paymentExpired = true;
|
||||||
|
vm.remainingTimeStr = gettextCatalog.getString('Expired');
|
||||||
|
vm.readyToSend = false;
|
||||||
|
if (countDown) $interval.cancel(countDown);
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
function updateSendAmounts() {
|
||||||
|
if (typeof satoshis !== 'number') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var cryptoAmount = '';
|
||||||
|
var cryptoCurrencyCode = '';
|
||||||
|
var amountStr = txFormatService.formatAmountStr(coin, satoshis);
|
||||||
|
if (amountStr) {
|
||||||
|
var amountParts = amountStr.split(' ');
|
||||||
|
cryptoAmount = amountParts[0];
|
||||||
|
cryptoCurrencyCode = amountParts.length > 1 ? amountParts[1] : '';
|
||||||
|
}
|
||||||
|
// Want to avoid flashing of amount strings so do all formatting after this has returned.
|
||||||
|
txFormatService.formatAlternativeStr(coin, satoshis, function(v) {
|
||||||
|
if (!v) {
|
||||||
|
vm.primaryAmount = cryptoAmount;
|
||||||
|
vm.primaryCurrency = cryptoCurrencyCode;
|
||||||
|
vm.secondaryAmount = '';
|
||||||
|
vm.secondaryCurrency = '';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
vm.secondaryAmount = vm.primaryAmount;
|
||||||
|
vm.secondaryCurrency = vm.primaryCurrency;
|
||||||
|
|
||||||
|
var fiatParts = v.split(' ');
|
||||||
|
var fiatAmount = fiatParts[0];
|
||||||
|
var fiatCurrency = fiatParts.length > 1 ? fiatParts[1] : '';
|
||||||
|
|
||||||
|
if (priceDisplayIsFiat) {
|
||||||
|
vm.primaryAmount = fiatAmount;
|
||||||
|
vm.primaryCurrency = fiatCurrency;
|
||||||
|
vm.secondaryAmount = cryptoAmount;
|
||||||
|
vm.secondaryCurrency = cryptoCurrencyCode;
|
||||||
|
} else {
|
||||||
|
vm.primaryAmount = cryptoAmount;
|
||||||
|
vm.primaryCurrency = cryptoCurrencyCode;
|
||||||
|
vm.secondaryAmount = fiatAmount;
|
||||||
|
vm.secondaryCurrency = fiatCurrency;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function onSuccessConfirm() {
|
||||||
|
vm.sendStatus = '';
|
||||||
|
$ionicHistory.nextViewOptions({
|
||||||
|
disableAnimate: true,
|
||||||
|
historyRoot: true
|
||||||
|
});
|
||||||
|
$state.go('tabs.send').then(function() {
|
||||||
|
$ionicHistory.clearHistory();
|
||||||
|
$state.transitionTo('tabs.home');
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
function setButtonText(isMultisig, isPayPro) {
|
||||||
|
if (isPayPro) {
|
||||||
|
if (vm.isCordova) {
|
||||||
|
vm.buttonText = gettextCatalog.getString('Slide to pay');
|
||||||
|
} else {
|
||||||
|
vm.buttonText = gettextCatalog.getString('Click to pay');
|
||||||
|
}
|
||||||
|
} else if (isMultisig) {
|
||||||
|
if (vm.isCordova) {
|
||||||
|
vm.buttonText = gettextCatalog.getString('Slide to accept');
|
||||||
|
} else {
|
||||||
|
vm.buttonText = gettextCatalog.getString('Click to accept');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (vm.isCordova) {
|
||||||
|
vm.buttonText = gettextCatalog.getString('Slide to send');
|
||||||
|
} else {
|
||||||
|
vm.buttonText = gettextCatalog.getString('Click to send');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function setNotReady(msg, criticalError) {
|
||||||
|
vn.readyToSend = false;
|
||||||
|
vm.notReadyMessage = msg;
|
||||||
|
$scope.criticalError = criticalError;
|
||||||
|
$log.warn('Not ready to make the payment:' + msg);
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
function setSendError(msg) {
|
||||||
|
$scope.sendStatus = '';
|
||||||
|
vm.readyToSend = false;
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
|
popupService.showAlert(gettextCatalog.getString('Error at confirm'), bwcError.msg(msg), function () {
|
||||||
|
$ionicHistory.goBack();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
function setupTx(tx) {
|
||||||
|
if (tx.coin === 'bch') {
|
||||||
|
tx.displayAddress = bitcoinCashJsService.readAddress(tx.toAddress).cashaddr;
|
||||||
|
} else {
|
||||||
|
tx.displayAddress = tx.toAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
addressbookService.get(tx.coin+tx.toAddress, function(err, addr) { // Check if the recipient is a contact
|
||||||
|
if (!err && addr) {
|
||||||
|
tx.toName = addr.name;
|
||||||
|
tx.toEmail = addr.email;
|
||||||
|
tx.recipientType = 'contact';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
vm.showAddress = false;
|
||||||
|
|
||||||
|
|
||||||
|
setButtonText(vm.originWallet.credentials.m > 1, !!tx.paypro);
|
||||||
|
|
||||||
|
if (tx.paypro)
|
||||||
|
startExpirationTimer(tx.paypro.expires);
|
||||||
|
|
||||||
|
updateTx(tx, vm.originWallet, {
|
||||||
|
dryRun: true
|
||||||
|
}, function(err) {
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
}, 10);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
// setWalletSelector(tx.coin, tx.network, tx.amount, function(err) {
|
||||||
|
// if (err) {
|
||||||
|
// return exitWithError('Could not update wallets');
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// if (vm.wallets.length > 1) {
|
||||||
|
// vm.showWalletSelector();
|
||||||
|
// } else if (vm.wallets.length) {
|
||||||
|
// setWallet(vm.wallets[0], tx);
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
|
||||||
|
function showSendMaxWarning(wallet, sendMaxInfo) {
|
||||||
|
var feeAlternative = '',
|
||||||
|
msg = '';
|
||||||
|
|
||||||
|
function verifyExcludedUtxos() {
|
||||||
|
var warningMsg = [];
|
||||||
|
if (sendMaxInfo.utxosBelowFee > 0) {
|
||||||
|
warningMsg.push(gettextCatalog.getString("A total of {{amountBelowFeeStr}} were excluded. These funds come from UTXOs smaller than the network fee provided.", {
|
||||||
|
amountBelowFeeStr: txFormatService.formatAmountStr(wallet.coin, sendMaxInfo.amountBelowFee)
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sendMaxInfo.utxosAboveMaxSize > 0) {
|
||||||
|
warningMsg.push(gettextCatalog.getString("A total of {{amountAboveMaxSizeStr}} were excluded. The maximum size allowed for a transaction was exceeded.", {
|
||||||
|
amountAboveMaxSizeStr: txFormatService.formatAmountStr(vm.originWallet.coin, sendMaxInfo.amountAboveMaxSize)
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
return warningMsg.join('\n');
|
||||||
|
};
|
||||||
|
|
||||||
|
feeAlternative = txFormatService.formatAlternativeStr(vm.originWallet.coin, sendMaxInfo.fee);
|
||||||
|
if (feeAlternative) {
|
||||||
|
msg = gettextCatalog.getString("{{feeAlternative}} will be deducted for bitcoin networking fees ({{fee}}).", {
|
||||||
|
fee: txFormatService.formatAmountStr(vm.originWallet.coin, sendMaxInfo.fee),
|
||||||
|
feeAlternative: feeAlternative
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
msg = gettextCatalog.getString("{{fee}} will be deducted for bitcoin networking fees).", {
|
||||||
|
fee: txFormatService.formatAmountStr(vm.originWallet.coin, sendMaxInfo.fee)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
var warningMsg = verifyExcludedUtxos();
|
||||||
|
|
||||||
|
if (!lodash.isEmpty(warningMsg))
|
||||||
|
msg += '\n' + warningMsg;
|
||||||
|
|
||||||
|
popupService.showAlert(null, msg, function() {});
|
||||||
|
};
|
||||||
|
|
||||||
|
function statusChangeHandler(processName, showName, isOn) {
|
||||||
|
$log.debug('statusChangeHandler: ', processName, showName, isOn);
|
||||||
|
if (
|
||||||
|
(
|
||||||
|
processName === 'broadcastingTx' ||
|
||||||
|
((processName === 'signingTx') && vm.originWallet.m > 1) ||
|
||||||
|
(processName == 'sendingTx' && !vm.originWallet.canSign() && !vm.originWallet.isPrivKeyExternal())
|
||||||
|
) && !isOn) {
|
||||||
|
vm.sendStatus = 'success';
|
||||||
|
|
||||||
|
if ($state.current.name === "tabs.send.review") { // XX SP: Otherwise all open wallets on other devices play this sound if you have been in a send flow before on that device.
|
||||||
|
soundService.play('misc/payment_sent.mp3');
|
||||||
|
}
|
||||||
|
|
||||||
|
var channel = "firebase";
|
||||||
|
if (platformInfo.isNW) {
|
||||||
|
channel = "ga";
|
||||||
|
}
|
||||||
|
// When displaying Fiat, if the formatting fails, the crypto will be the primary amount.
|
||||||
|
var amount = unitFromSat * satoshis;
|
||||||
|
var log = new window.BitAnalytics.LogEvent("transfer_success", [{
|
||||||
|
"coin": vm.originWallet.coin,
|
||||||
|
"type": "outgoing",
|
||||||
|
"amount": amount,
|
||||||
|
"fees": vm.feeCrypto
|
||||||
|
}], [channel, "adjust"]);
|
||||||
|
window.BitAnalytics.LogEventHandlers.postEvent(log);
|
||||||
|
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$digest();
|
||||||
|
}, 100);
|
||||||
|
} else if (showName) {
|
||||||
|
vm.sendStatus = showName;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
function updateTx(tx, wallet, opts, cb) {
|
||||||
|
ongoingProcess.set('calculatingFee', true);
|
||||||
|
|
||||||
|
if (opts.clearCache) {
|
||||||
|
tx.txp = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
// $scope.tx = tx;
|
||||||
|
|
||||||
|
// function updateAmount() {
|
||||||
|
// if (!tx.amount) return;
|
||||||
|
//
|
||||||
|
// // Amount
|
||||||
|
// tx.amountStr = txFormatService.formatAmountStr(originWallet.coin, tx.amount);
|
||||||
|
// tx.amountValueStr = tx.amountStr.split(' ')[0];
|
||||||
|
// tx.amountUnitStr = tx.amountStr.split(' ')[1];
|
||||||
|
// txFormatService.formatAlternativeStr(wallet.coin, tx.amount, function(v) {
|
||||||
|
// var parts = v.split(' ');
|
||||||
|
// tx.alternativeAmountStr = v;
|
||||||
|
// tx.alternativeAmountValueStr = parts[0];
|
||||||
|
// tx.alternativeAmountUnitStr = (parts.length > 0) ? parts[1] : '';
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// updateAmount();
|
||||||
|
// refresh();
|
||||||
|
|
||||||
|
var feeServiceLevel = usingMerchantFee && vm.originWallet.coin == 'btc' ? 'urgent' : tx.feeLevel;
|
||||||
|
feeService.getFeeRate(vm.originWallet.coin, tx.network, feeServiceLevel, function(err, feeRate) {
|
||||||
|
if (err) {
|
||||||
|
ongoingProcess.set('calculatingFee', false);
|
||||||
|
return cb(err);
|
||||||
|
}
|
||||||
|
|
||||||
|
var msg;
|
||||||
|
if (usingCustomFee) {
|
||||||
|
msg = gettextCatalog.getString('Custom');
|
||||||
|
tx.feeLevelName = msg;
|
||||||
|
} else if (usingMerchantFee) {
|
||||||
|
$log.info('Using Merchant Fee:' + tx.feeRate + ' vs. Urgent level:' + feeRate);
|
||||||
|
msg = gettextCatalog.getString('Suggested by Merchant');
|
||||||
|
tx.feeLevelName = msg;
|
||||||
|
} else {
|
||||||
|
tx.feeLevelName = feeService.feeOpts[tx.feeLevel];
|
||||||
|
tx.feeRate = feeRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
getSendMaxInfo(lodash.clone(tx), wallet, function(err, sendMaxInfo) {
|
||||||
|
if (err) {
|
||||||
|
ongoingProcess.set('calculatingFee', false);
|
||||||
|
var msg = gettextCatalog.getString('Error getting SendMax information');
|
||||||
|
return setSendError(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sendMaxInfo) {
|
||||||
|
|
||||||
|
$log.debug('Send max info', sendMaxInfo);
|
||||||
|
|
||||||
|
if (tx.sendMax && sendMaxInfo.amount == 0) {
|
||||||
|
ongoingProcess.set('calculatingFee', false);
|
||||||
|
setNotReady(gettextCatalog.getString('Insufficient confirmed funds'));
|
||||||
|
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Not enough funds for fee'), function () {
|
||||||
|
$ionicHistory.goBack();
|
||||||
|
});
|
||||||
|
return cb('no_funds');
|
||||||
|
}
|
||||||
|
|
||||||
|
tx.sendMaxInfo = sendMaxInfo;
|
||||||
|
tx.amount = tx.sendMaxInfo.amount;
|
||||||
|
satoshis = tx.amount;
|
||||||
|
updateSendAmounts();
|
||||||
|
ongoingProcess.set('calculatingFee', false);
|
||||||
|
$timeout(function() {
|
||||||
|
showSendMaxWarning(wallet, sendMaxInfo);
|
||||||
|
}, 200);
|
||||||
|
}
|
||||||
|
|
||||||
|
// txp already generated for this wallet?
|
||||||
|
if (tx.txp[wallet.id]) {
|
||||||
|
ongoingProcess.set('calculatingFee', false);
|
||||||
|
vm.readyToSend = true;
|
||||||
|
updateSendAmounts();
|
||||||
|
$scope.$apply();
|
||||||
|
return cb();
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('calling getTxp() from getSendMaxInfo cb.');
|
||||||
|
getTxp(lodash.clone(tx), wallet, opts.dryRun, function(err, txp) {
|
||||||
|
ongoingProcess.set('calculatingFee', false);
|
||||||
|
if (err) {
|
||||||
|
if (err.message == 'Insufficient funds') {
|
||||||
|
setNotReady(gettextCatalog.getString('Insufficient funds'));
|
||||||
|
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Not enough funds for fee'));
|
||||||
|
return cb('no_funds');
|
||||||
|
} else
|
||||||
|
return cb(err);
|
||||||
|
}
|
||||||
|
|
||||||
|
txp.feeStr = txFormatService.formatAmountStr(wallet.coin, txp.fee);
|
||||||
|
txFormatService.formatAlternativeStr(wallet.coin, txp.fee, function(v) {
|
||||||
|
// txp.alternativeFeeStr = v;
|
||||||
|
// if (txp.alternativeFeeStr.substring(0, 4) == '0.00')
|
||||||
|
// txp.alternativeFeeStr = '< ' + txp.alternativeFeeStr;
|
||||||
|
vm.feeFiat = v;
|
||||||
|
vm.fiatCurrency = config.wallet.settings.alternativeIsoCode;
|
||||||
|
if (v.substring(0, 1) === "<") {
|
||||||
|
vm.feeLessThanACent = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log("fiat", vm.feeFiat);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
var per = (txp.fee / (txp.amount + txp.fee) * 100);
|
||||||
|
var perString = per.toFixed(2);
|
||||||
|
txp.feeRatePerStr = (perString == '0.00' ? '< ' : '') + perString + '%';
|
||||||
|
txp.feeToHigh = per > FEE_TOO_HIGH_LIMIT_PERCENTAGE;
|
||||||
|
vm.feeCrypto = (unitFromSat * txp.fee).toFixed(8);
|
||||||
|
vm.feeIsHigh = txp.feeToHigh;
|
||||||
|
console.log("crypto", vm.feeCrypto);
|
||||||
|
|
||||||
|
|
||||||
|
tx.txp[wallet.id] = txp;
|
||||||
|
$log.debug('Confirm. TX Fully Updated for wallet:' + wallet.id, tx);
|
||||||
|
vm.readyToSend = true;
|
||||||
|
updateSendAmounts();
|
||||||
|
console.log('readyToSend:', vm.readyToSend);
|
||||||
|
$scope.$apply();
|
||||||
|
|
||||||
|
return cb();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('shapeshiftController', function($scope, $interval, profileService, walletService, popupService, lodash, $ionicNavBarDelegate) {
|
angular.module('copayApp.controllers').controller('shapeshiftController', function($scope, sendFlowService, $state, $timeout, $ionicHistory, profileService, walletService, popupService, lodash, $ionicNavBarDelegate) {
|
||||||
|
|
||||||
var walletsBtc = [];
|
var walletsBtc = [];
|
||||||
var walletsBch = [];
|
var walletsBch = [];
|
||||||
|
|
||||||
|
$scope.showMyAddress = showMyAddress;
|
||||||
|
|
||||||
function generateAddress(wallet, cb) {
|
function generateAddress(wallet, cb) {
|
||||||
if (!wallet) return;
|
if (!wallet) return;
|
||||||
walletService.getAddress(wallet, false, function(err, addr) {
|
walletService.getAddress(wallet, false, function(err, addr) {
|
||||||
|
|
@ -16,24 +17,9 @@ angular.module('copayApp.controllers').controller('shapeshiftController', functi
|
||||||
}
|
}
|
||||||
|
|
||||||
function showToWallets() {
|
function showToWallets() {
|
||||||
$scope.toWallets = $scope.fromWallet.coin == 'btc' ? walletsBch : walletsBtc;
|
$scope.toWallets = $scope.fromWallet.coin === 'btc' ? walletsBch : walletsBtc;
|
||||||
$scope.onToWalletSelect($scope.toWallets[0]);
|
$scope.onToWalletSelect($scope.toWallets[0]);
|
||||||
$scope.singleToWallet = $scope.toWallets.length == 1;
|
$scope.singleToWallet = $scope.toWallets.length === 1;
|
||||||
}
|
|
||||||
|
|
||||||
$scope.onFromWalletSelect = function(wallet) {
|
|
||||||
$scope.fromWallet = wallet;
|
|
||||||
showToWallets();
|
|
||||||
generateAddress(wallet, function(addr) {
|
|
||||||
$scope.fromWalletAddress = addr;
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.onToWalletSelect = function(wallet) {
|
|
||||||
$scope.toWallet = wallet;
|
|
||||||
generateAddress(wallet, function(addr) {
|
|
||||||
$scope.toWalletAddress = addr;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
|
|
@ -42,26 +28,58 @@ angular.module('copayApp.controllers').controller('shapeshiftController', functi
|
||||||
$scope.fromWallets = lodash.filter(walletsBtc.concat(walletsBch), function(w) {
|
$scope.fromWallets = lodash.filter(walletsBtc.concat(walletsBch), function(w) {
|
||||||
return w.status.balance.availableAmount > 0;
|
return w.status.balance.availableAmount > 0;
|
||||||
});
|
});
|
||||||
if ($scope.fromWallets.length == 0) return;
|
|
||||||
$scope.onFromWalletSelect($scope.fromWallets[0]);
|
$scope.singleFromWallet = $scope.fromWallets.length === 1;
|
||||||
$scope.onToWalletSelect($scope.toWallets[0]);
|
|
||||||
$scope.singleFromWallet = $scope.fromWallets.length == 1;
|
|
||||||
$scope.singleToWallet = $scope.toWallets.length == 1;
|
|
||||||
$scope.fromWalletSelectorTitle = 'From';
|
$scope.fromWalletSelectorTitle = 'From';
|
||||||
$scope.toWalletSelectorTitle = 'To';
|
$scope.toWalletSelectorTitle = 'To';
|
||||||
$scope.showFromWallets = false;
|
$scope.showFromWallets = false;
|
||||||
$scope.showToWallets = false;
|
$scope.showToWallets = false;
|
||||||
|
$scope.walletsWithFunds = profileService.getWallets({onlyComplete: true, hasFunds: true});
|
||||||
|
$scope.wallets = profileService.getWallets({onlyComplete: true});
|
||||||
|
$scope.hasWallets = !lodash.isEmpty($scope.wallets);
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.$on("$ionicView.enter", function(event, data) {
|
$scope.$on("$ionicView.enter", function(event, data) {
|
||||||
$ionicNavBarDelegate.showBar(true);
|
$ionicNavBarDelegate.showBar(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.showFromWalletSelector = function() {
|
// This could probably be enhanced refactoring the routes abstract states
|
||||||
$scope.showFromWallets = true;
|
$scope.createWallet = function() {
|
||||||
|
$state.go('tabs.home').then(function() {
|
||||||
|
$state.go('tabs.add.create-personal');
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.buyBitcoin = function() {
|
||||||
|
$state.go('tabs.home').then(function() {
|
||||||
|
$state.go('tabs.buyandsell');
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.shapeshift = function() {
|
||||||
|
var stateParams = {
|
||||||
|
thirdParty: {
|
||||||
|
id: 'shapeshift'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Starting new send flow, so ensure everything is reset
|
||||||
|
sendFlowService.clear();
|
||||||
|
$state.go('tabs.home').then(function() {
|
||||||
|
$ionicHistory.clearHistory();
|
||||||
|
$state.go('tabs.send').then(function() {
|
||||||
|
$timeout(function () {
|
||||||
|
sendFlowService.pushState(stateParams);
|
||||||
|
$state.transitionTo('tabs.send.origin');
|
||||||
|
}, 60);
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.showToWalletSelector = function() {
|
function showMyAddress() {
|
||||||
$scope.showToWallets = true;
|
$state.go('tabs.home').then(function() {
|
||||||
|
$state.go('tabs.receive');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('completeController', function($scope, $stateParams, $timeout, $log, $ionicHistory, $state, $ionicNavBarDelegate, $ionicConfig, platformInfo, configService, storageService, lodash, appConfigService, gettextCatalog) {
|
angular.module('copayApp.controllers').controller('shareAppController', function($scope, $stateParams, $timeout, $log, $ionicHistory, $state, $ionicNavBarDelegate, $ionicConfig, platformInfo, configService, storageService, lodash, appConfigService, gettextCatalog) {
|
||||||
$scope.isCordova = platformInfo.isCordova;
|
$scope.isCordova = platformInfo.isCordova;
|
||||||
$scope.title = gettextCatalog.getString("Share {{appName}}", {
|
$scope.title = gettextCatalog.getString("Share {{appName}}", {
|
||||||
appName: appConfigService.nameCase
|
appName: appConfigService.nameCase
|
||||||
|
|
@ -57,28 +57,8 @@ angular.module('copayApp.controllers').controller('completeController', function
|
||||||
$ionicConfig.views.swipeBackEnabled(true);
|
$ionicConfig.views.swipeBackEnabled(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.$on("$ionicView.enter", function() {
|
|
||||||
if (!$scope.fromSettings)
|
|
||||||
$ionicConfig.views.swipeBackEnabled(false);
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
$scope.score = (data.stateParams && data.stateParams.score) ? parseInt(data.stateParams.score) : null;
|
$ionicNavBarDelegate.showBackButton(true);
|
||||||
$scope.skipped = (data.stateParams && data.stateParams.skipped) ? true : false;
|
|
||||||
$scope.rated = (data.stateParams && data.stateParams.rated) ? true : false;
|
|
||||||
$scope.fromSettings = (data.stateParams && data.stateParams.fromSettings) ? true : false;
|
|
||||||
|
|
||||||
if (!$scope.fromSettings) {
|
|
||||||
$ionicNavBarDelegate.showBackButton(false);
|
|
||||||
} else {
|
|
||||||
$ionicNavBarDelegate.showBackButton(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
storageService.getFeedbackInfo(function(error, info) {
|
|
||||||
var feedbackInfo = lodash.isString(info) ? JSON.parse(info) : null;
|
|
||||||
feedbackInfo.sent = true;
|
|
||||||
storageService.setFeedbackInfo(JSON.stringify(feedbackInfo), function() {});
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!$scope.isCordova) return;
|
if (!$scope.isCordova) return;
|
||||||
$scope.animate = true;
|
$scope.animate = true;
|
||||||
|
|
@ -133,13 +113,4 @@ angular.module('copayApp.controllers').controller('completeController', function
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.close = function() {
|
|
||||||
$ionicHistory.nextViewOptions({
|
|
||||||
disableAnimate: false,
|
|
||||||
historyRoot: true
|
|
||||||
});
|
|
||||||
if ($scope.score == 5) $ionicHistory.goBack(-3);
|
|
||||||
else $ionicHistory.goBack(-2);
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('tabHomeController',
|
angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
function($rootScope, $timeout, $scope, $state, $stateParams, $ionicModal, $ionicScrollDelegate, $window, gettextCatalog, lodash, popupService, ongoingProcess, externalLinkService, latestReleaseService, profileService, walletService, configService, $log, platformInfo, storageService, txpModalService, appConfigService, startupService, addressbookService, feedbackService, bwcError, nextStepsService, buyAndSellService, homeIntegrationsService, bitpayCardService, pushNotificationsService, timeService, bitcoincomService, pricechartService, firebaseEventsService, servicesService, shapeshiftService, $ionicNavBarDelegate, signVerifyMessageService) {
|
function($rootScope, $timeout, $scope, $state, $stateParams, $ionicModal, $ionicScrollDelegate, $window, gettextCatalog, lodash, popupService, ongoingProcess, bannerService, communityService, externalLinkService, latestReleaseService, profileService, walletService, configService, $log, platformInfo, sendFlowService, storageService, txpModalService, appConfigService, startupService, addressbookService, bwcError, nextStepsService, buyAndSellService, homeIntegrationsService, bitpayCardService, pushNotificationsService, timeService, bitcoincomService, pricechartService, firebaseEventsService, servicesService, shapeshiftService, $ionicNavBarDelegate, signVerifyMessageService) {
|
||||||
var wallet;
|
var wallet;
|
||||||
var listeners = [];
|
var listeners = [];
|
||||||
var notifications = [];
|
var notifications = [];
|
||||||
|
|
@ -14,14 +14,29 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
$scope.isAndroid = platformInfo.isAndroid;
|
$scope.isAndroid = platformInfo.isAndroid;
|
||||||
$scope.isWindowsPhoneApp = platformInfo.isCordova && platformInfo.isWP;
|
$scope.isWindowsPhoneApp = platformInfo.isCordova && platformInfo.isWP;
|
||||||
$scope.isNW = platformInfo.isNW;
|
$scope.isNW = platformInfo.isNW;
|
||||||
$scope.showRateCard = {};
|
|
||||||
$scope.showServices = false;
|
$scope.showServices = false;
|
||||||
|
$scope.bannerIsLoading = true;
|
||||||
|
$scope.bannerImageUrl = '';
|
||||||
|
$scope.bannerUrl = '';
|
||||||
|
|
||||||
$scope.$on("$ionicView.afterEnter", function() {
|
|
||||||
|
$scope.$on("$ionicView.beforeEnter", onBeforeEnter);
|
||||||
|
$scope.$on("$ionicView.enter", onEnter);
|
||||||
|
$scope.$on("$ionicView.afterEnter", onAfterEnter);
|
||||||
|
$scope.$on("$ionicView.leave", onLeave);
|
||||||
|
|
||||||
|
function onAfterEnter () {
|
||||||
startupService.ready();
|
startupService.ready();
|
||||||
});
|
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
bannerService.getBanner(function (banner) {
|
||||||
|
$scope.bannerImageUrl = banner.imageURL;
|
||||||
|
$scope.bannerUrl = banner.url;
|
||||||
|
$scope.bannerIsLoading = false;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
function onBeforeEnter (event, data) {
|
||||||
|
|
||||||
if (!$scope.homeTip) {
|
if (!$scope.homeTip) {
|
||||||
storageService.getHomeTipAccepted(function(error, value) {
|
storageService.getHomeTipAccepted(function(error, value) {
|
||||||
$scope.homeTip = (value == 'accepted') ? false : true;
|
$scope.homeTip = (value == 'accepted') ? false : true;
|
||||||
|
|
@ -42,46 +57,9 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
storageService.getFeedbackInfo(function(error, info) {
|
function onEnter(event, data) {
|
||||||
|
|
||||||
if ($scope.isWindowsPhoneApp) {
|
|
||||||
$scope.showRateCard.value = false;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!info) {
|
|
||||||
initFeedBackInfo();
|
|
||||||
} else {
|
|
||||||
var feedbackInfo = JSON.parse(info);
|
|
||||||
//Check if current version is greater than saved version
|
|
||||||
var currentVersion = $scope.version;
|
|
||||||
var savedVersion = feedbackInfo.version;
|
|
||||||
var isVersionUpdated = feedbackService.isVersionUpdated(currentVersion, savedVersion);
|
|
||||||
if (!isVersionUpdated) {
|
|
||||||
initFeedBackInfo();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var now = moment().unix();
|
|
||||||
var timeExceeded = (now - feedbackInfo.time) >= 24 * 7 * 60 * 60;
|
|
||||||
$scope.showRateCard.value = timeExceeded && !feedbackInfo.sent;
|
|
||||||
$timeout(function() {
|
|
||||||
$scope.$apply();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
function initFeedBackInfo() {
|
|
||||||
var feedbackInfo = {};
|
|
||||||
feedbackInfo.time = moment().unix();
|
|
||||||
feedbackInfo.version = $scope.version;
|
|
||||||
feedbackInfo.sent = false;
|
|
||||||
storageService.setFeedbackInfo(JSON.stringify(feedbackInfo), function() {
|
|
||||||
$scope.showRateCard.value = false;
|
|
||||||
});
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.$on("$ionicView.enter", function(event, data) {
|
|
||||||
$ionicNavBarDelegate.showBar(true);
|
$ionicNavBarDelegate.showBar(true);
|
||||||
updateAllWallets();
|
updateAllWallets();
|
||||||
|
|
||||||
|
|
@ -125,26 +103,29 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.showServices = true;
|
$scope.showServices = true;
|
||||||
pushNotificationsService.init();
|
|
||||||
firebaseEventsService.init();
|
|
||||||
|
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$ionicScrollDelegate.resize();
|
$ionicScrollDelegate.resize();
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
}, 10);
|
}, 10);
|
||||||
});
|
});
|
||||||
});
|
};
|
||||||
|
|
||||||
$scope.$on("$ionicView.leave", function(event, data) {
|
function onLeave (event, data) {
|
||||||
lodash.each(listeners, function(x) {
|
lodash.each(listeners, function(x) {
|
||||||
x();
|
x();
|
||||||
});
|
});
|
||||||
});
|
};
|
||||||
|
|
||||||
$scope.createdWithinPastDay = function(time) {
|
$scope.createdWithinPastDay = function(time) {
|
||||||
return timeService.withinPastDay(time);
|
return timeService.withinPastDay(time);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.startFreshSend = function() {
|
||||||
|
sendFlowService.clear();
|
||||||
|
$state.go('tabs.send');
|
||||||
|
}
|
||||||
|
|
||||||
$scope.openExternalLink = function() {
|
$scope.openExternalLink = function() {
|
||||||
var url = 'https://github.com/Bitcoin-com/Wallet/releases/latest';
|
var url = 'https://github.com/Bitcoin-com/Wallet/releases/latest';
|
||||||
var optIn = true;
|
var optIn = true;
|
||||||
|
|
@ -155,8 +136,8 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.openStore = function() {
|
$scope.openBannerUrl = function() {
|
||||||
externalLinkService.open('https://store.bitcoin.com/', false);
|
externalLinkService.open($scope.bannerUrl, false);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.openNotificationModal = function(n) {
|
$scope.openNotificationModal = function(n) {
|
||||||
|
|
@ -233,6 +214,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
var j = 0;
|
var j = 0;
|
||||||
|
|
||||||
lodash.each(wallets, function(wallet) {
|
lodash.each(wallets, function(wallet) {
|
||||||
|
walletService.invalidateCache(wallet); // Temporary solution, to have the good balance, when we ask to reload the wallets.
|
||||||
walletService.getStatus(wallet, {}, function(err, status) {
|
walletService.getStatus(wallet, {}, function(err, status) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
||||||
|
|
@ -252,6 +234,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$scope.walletsWithFunds = profileService.getWallets({hasFunds: true});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('tabReceiveController', function($rootScope, $scope, $timeout, $log, $ionicModal, $state, $ionicHistory, $ionicPopover, storageService, platformInfo, walletService, profileService, configService, lodash, gettextCatalog, popupService, bwcError, bitcoinCashJsService, $ionicNavBarDelegate, txFormatService) {
|
angular.module('copayApp.controllers').controller('tabReceiveController', function($rootScope, $scope, $timeout, $log, $ionicModal, $state, $ionicHistory, $ionicPopover, storageService, platformInfo, walletService, profileService, configService, lodash, gettextCatalog, popupService, bwcError, bitcoinCashJsService, $ionicNavBarDelegate, sendFlowService, txFormatService, soundService, clipboardService) {
|
||||||
|
|
||||||
var listeners = [];
|
var listeners = [];
|
||||||
$scope.bchAddressType = { type: 'cashaddr' };
|
$scope.bchAddressType = { type: 'cashaddr' };
|
||||||
|
|
@ -15,32 +15,16 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
||||||
|
|
||||||
var config;
|
var config;
|
||||||
|
|
||||||
var soundLoaded = false;
|
|
||||||
var nativeAudioAvailable = (window.plugins && window.plugins.NativeAudio);
|
|
||||||
|
|
||||||
if (nativeAudioAvailable) {
|
|
||||||
window.plugins.NativeAudio.preloadSimple('received', 'misc/coin_received.mp3', function (msg) {
|
|
||||||
$log.debug('Receive sound loaded.');
|
|
||||||
soundLoaded = true;
|
|
||||||
}, function (error) {
|
|
||||||
$log.debug('Error loading receive sound.');
|
|
||||||
$log.debug(error);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
$log.debug('isNW: Using HTML5-Audio instead of native audio');
|
|
||||||
soundLoaded = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$scope.displayBalanceAsFiat = true;
|
$scope.displayBalanceAsFiat = true;
|
||||||
|
|
||||||
$scope.requestSpecificAmount = function() {
|
$scope.requestSpecificAmount = function() {
|
||||||
$state.go('tabs.paymentRequest.amount', {
|
sendFlowService.pushState({
|
||||||
id: $scope.wallet.credentials.walletId,
|
toWalletId: $scope.wallet.credentials.walletId
|
||||||
coin: $scope.wallet.coin
|
|
||||||
});
|
});
|
||||||
|
$state.go('tabs.paymentRequest.amount');
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.setAddress = function(newAddr) {
|
$scope.setAddress = function(newAddr, copyAddress) {
|
||||||
$scope.addr = null;
|
$scope.addr = null;
|
||||||
if (!$scope.wallet || $scope.generatingAddress || !$scope.wallet.isComplete()) return;
|
if (!$scope.wallet || $scope.generatingAddress || !$scope.wallet.isComplete()) return;
|
||||||
$scope.generatingAddress = true;
|
$scope.generatingAddress = true;
|
||||||
|
|
@ -74,6 +58,14 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
||||||
paymentSubscriptionObj.addr = $scope.addr
|
paymentSubscriptionObj.addr = $scope.addr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (copyAddress === true) {
|
||||||
|
try {
|
||||||
|
clipboardService.copyToClipboard($scope.wallet.coin == 'bch' && $scope.bchAddressType.type == 'cashaddr' ? 'bitcoincash:' + $scope.addr : $scope.addr);
|
||||||
|
} catch (error) {
|
||||||
|
$log.debug("Error copying to clipboard:");
|
||||||
|
$log.debug(error);
|
||||||
|
}
|
||||||
|
}
|
||||||
// create subscription
|
// create subscription
|
||||||
var msg = JSON.stringify(paymentSubscriptionObj);
|
var msg = JSON.stringify(paymentSubscriptionObj);
|
||||||
currentAddressSocket.onopen = function (event) {
|
currentAddressSocket.onopen = function (event) {
|
||||||
|
|
@ -143,21 +135,37 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
||||||
for (var i = 0; i < data.x.out.length; i++) {
|
for (var i = 0; i < data.x.out.length; i++) {
|
||||||
if (data.x.out[i].addr == watchAddress) {
|
if (data.x.out[i].addr == watchAddress) {
|
||||||
$scope.paymentReceivedAmount = txFormatService.formatAmount(data.x.out[i].value, 'full');
|
$scope.paymentReceivedAmount = txFormatService.formatAmount(data.x.out[i].value, 'full');
|
||||||
|
$scope.paymentReceivedAlternativeAmount = ''; // For when a subsequent payment is received.
|
||||||
|
txFormatService.formatAlternativeStr($scope.wallet.coin, data.x.out[i].value, function(alternativeStr){
|
||||||
|
if (alternativeStr) {
|
||||||
|
$scope.$apply(function () {
|
||||||
|
$scope.paymentReceivedAlternativeAmount = alternativeStr;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$scope.paymentReceivedCoin = $scope.wallet.coin;
|
$scope.paymentReceivedCoin = $scope.wallet.coin;
|
||||||
$scope.$apply(function () {
|
|
||||||
|
|
||||||
if (config.soundsEnabled && soundLoaded) {
|
var channel = "ga";
|
||||||
$log.debug('Play sound.');
|
if (platformInfo.isCordova) {
|
||||||
if (nativeAudioAvailable) {
|
channel = "firebase";
|
||||||
window.plugins.NativeAudio.play('received');
|
}
|
||||||
} else {
|
var log = new window.BitAnalytics.LogEvent("transfer_success", [{
|
||||||
new Audio('misc/coin_received.ogg').play(); // NW.js has no mp3 support
|
"coin": $scope.wallet.coin,
|
||||||
}
|
"type": "incoming"
|
||||||
} else {
|
}], [channel, "adjust"]);
|
||||||
$log.debug('Sound is disabled.');
|
window.BitAnalytics.LogEventHandlers.postEvent(log);
|
||||||
}
|
|
||||||
|
if ($state.current.name === "tabs.receive") {
|
||||||
|
soundService.play('misc/payment_received.mp3');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Notify new tx
|
||||||
|
$scope.$emit('bwsEvent', $scope.wallet.id);
|
||||||
|
|
||||||
|
|
||||||
|
$scope.$apply(function () {
|
||||||
$scope.showingPaymentReceived = true;
|
$scope.showingPaymentReceived = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -231,10 +239,14 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
||||||
|
|
||||||
if (!$scope.wallets[0]) return;
|
if (!$scope.wallets[0]) return;
|
||||||
|
|
||||||
// select first wallet if no wallet selected previously
|
var selectedWallet = null;
|
||||||
var selectedWallet = checkSelectedWallet($scope.wallet, $scope.wallets);
|
if (data.stateParams.walletId) { // from walletDetails
|
||||||
|
selectedWallet = checkSelectedWallet(profileService.getWallet(data.stateParams.walletId), $scope.wallets);
|
||||||
|
} else {
|
||||||
|
// select first wallet if no wallet selected previously
|
||||||
|
selectedWallet = checkSelectedWallet($scope.wallet, $scope.wallets);
|
||||||
|
}
|
||||||
$scope.onWalletSelect(selectedWallet);
|
$scope.onWalletSelect(selectedWallet);
|
||||||
|
|
||||||
$scope.showShareButton = platformInfo.isCordova ? (platformInfo.isIOS ? 'iOS' : 'Android') : null;
|
$scope.showShareButton = platformInfo.isCordova ? (platformInfo.isIOS ? 'iOS' : 'Android') : null;
|
||||||
|
|
||||||
listeners = [
|
listeners = [
|
||||||
|
|
|
||||||
|
|
@ -122,8 +122,11 @@ angular.module('copayApp.controllers').controller('tabScanController', function(
|
||||||
scannerService.openSettings();
|
scannerService.openSettings();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.reactivationCount = 0;
|
||||||
$scope.attemptToReactivate = function(){
|
$scope.attemptToReactivate = function(){
|
||||||
scannerService.reinitialize();
|
scannerService.reinitialize(function(){
|
||||||
|
$scope.reactivationCount++;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.toggleLight = function(){
|
$scope.toggleLight = function(){
|
||||||
|
|
|
||||||
|
|
@ -1,32 +1,106 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $rootScope, $log, $timeout, $ionicScrollDelegate, addressbookService, profileService, lodash, $state, walletService, incomingData, popupService, platformInfo, bwcError, gettextCatalog, scannerService, configService, bitcoinCashJsService, $ionicNavBarDelegate) {
|
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $rootScope, $log, $timeout, $ionicScrollDelegate, $ionicLoading, addressbookService, profileService, lodash, $state, walletService, incomingData, popupService, platformInfo, sendFlowService, bwcError, gettextCatalog, scannerService, configService, bitcoinCashJsService, $ionicPopup, $ionicNavBarDelegate, clipboardService) {
|
||||||
|
var clipboardHasAddress = false;
|
||||||
|
var clipboardHasContent = false;
|
||||||
var originalList;
|
var originalList;
|
||||||
var CONTACTS_SHOW_LIMIT;
|
$scope.displayBalanceAsFiat = true;
|
||||||
var currentContactsPage;
|
$scope.walletSelectorTitleForce = true;
|
||||||
$scope.isChromeApp = platformInfo.isChromeApp;
|
|
||||||
$scope.sectionDisplay = {
|
$scope.addContact = function() {
|
||||||
transferToWallet: false
|
$state.go('tabs.send.addressbook');
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.pasteClipboard = function() {
|
||||||
|
if ($scope.clipboardHasAddress || $scope.clipboardHasContent) {
|
||||||
|
clipboardService.readFromClipboard(function(text) {
|
||||||
|
$scope.$apply(function() {
|
||||||
|
$scope.formData.search = text;
|
||||||
|
$scope.findContact($scope.formData.search);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
$ionicPopup.alert({
|
||||||
|
title: gettextCatalog.getString('Clipboard'),
|
||||||
|
template: gettextCatalog.getString('Your Clipboard is empty')
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.$on("$ionicView.enter", function(event, data) {
|
||||||
|
|
||||||
|
var stateParams = sendFlowService.getStateClone();
|
||||||
|
$scope.fromWallet = profileService.getWallet(stateParams.fromWalletId);
|
||||||
|
|
||||||
|
clipboardService.readFromClipboard(function(text) {
|
||||||
|
if (text.length > 200) {
|
||||||
|
text = text.substring(0, 200);
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.clipboardHasAddress = false;
|
||||||
|
$scope.clipboardHasContent = false;
|
||||||
|
if ((text.indexOf('bitcoincash:') === 0 || text[0] === 'C' || text[0] === 'H' || text[0] === 'p' || text[0] === 'q') && text.replace('bitcoincash:', '').length === 42) { // CashAddr
|
||||||
|
$scope.clipboardHasAddress = true;
|
||||||
|
} else if ((text[0] === "1" || text[0] === "3" || text.substring(0, 3) === "bc1") && text.length >= 26 && text.length <= 35) { // Legacy Addresses
|
||||||
|
$scope.clipboardHasAddress = true;
|
||||||
|
} else if (text.length > 1) {
|
||||||
|
$scope.clipboardHasContent = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$ionicNavBarDelegate.showBar(true);
|
||||||
|
if (!$scope.hasWallets) {
|
||||||
|
$scope.checkingBalance = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
updateHasFunds();
|
||||||
|
updateContactsList(function() {
|
||||||
|
updateList();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$scope.findContact = function(search) {
|
||||||
|
|
||||||
|
if (incomingData.redir(search)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!search || search.length < 1) {
|
||||||
|
$scope.list = originalList;
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var result = lodash.filter(originalList, function(item) {
|
||||||
|
var val = item.name;
|
||||||
|
return lodash.startsWith(val.toLowerCase(), search.toLowerCase());
|
||||||
|
});
|
||||||
|
|
||||||
|
$scope.list = result;
|
||||||
};
|
};
|
||||||
|
|
||||||
var hasWallets = function() {
|
var hasWallets = function() {
|
||||||
|
$scope.walletsWithFunds = profileService.getWallets({
|
||||||
|
onlyComplete: true,
|
||||||
|
hasFunds: true
|
||||||
|
});
|
||||||
$scope.wallets = profileService.getWallets({
|
$scope.wallets = profileService.getWallets({
|
||||||
onlyComplete: true
|
onlyComplete: true,
|
||||||
|
});
|
||||||
|
$scope.walletsBch = profileService.getWallets({
|
||||||
|
onlyComplete: true,
|
||||||
|
coin: 'bch'
|
||||||
|
});
|
||||||
|
$scope.walletsBtc = profileService.getWallets({
|
||||||
|
onlyComplete: true,
|
||||||
|
coin: 'btc'
|
||||||
});
|
});
|
||||||
$scope.hasWallets = lodash.isEmpty($scope.wallets) ? false : true;
|
$scope.hasWallets = lodash.isEmpty($scope.wallets) ? false : true;
|
||||||
};
|
};
|
||||||
|
|
||||||
// THIS is ONLY to show the 'buy bitcoins' message
|
|
||||||
// does not has any other function.
|
|
||||||
|
|
||||||
var updateHasFunds = function() {
|
var updateHasFunds = function() {
|
||||||
|
|
||||||
if ($rootScope.everHasFunds) {
|
|
||||||
$scope.hasFunds = true;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$scope.hasFunds = false;
|
$scope.hasFunds = false;
|
||||||
var index = 0;
|
var index = 0;
|
||||||
lodash.each($scope.wallets, function(w) {
|
lodash.each($scope.wallets, function(w) {
|
||||||
|
|
@ -41,10 +115,9 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
$scope.hasFunds = true;
|
$scope.hasFunds = true;
|
||||||
} else if (status.availableBalanceSat > 0) {
|
} else if (status.availableBalanceSat > 0) {
|
||||||
$scope.hasFunds = true;
|
$scope.hasFunds = true;
|
||||||
$rootScope.everHasFunds = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index == $scope.wallets.length) {
|
if (index === $scope.wallets.length) {
|
||||||
$scope.checkingBalance = false;
|
$scope.checkingBalance = false;
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
|
|
@ -54,49 +127,6 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var updateWalletsList = function() {
|
|
||||||
var config = configService.getSync();
|
|
||||||
var networkResult = lodash.countBy($scope.wallets, 'network');
|
|
||||||
|
|
||||||
$scope.showTransferCard = $scope.hasWallets && (networkResult.livenet > 1 || networkResult.testnet > 1);
|
|
||||||
|
|
||||||
if ($scope.showTransferCard) {
|
|
||||||
var walletsToTransfer = $scope.wallets;
|
|
||||||
if (!(networkResult.livenet > 1)) {
|
|
||||||
walletsToTransfer = lodash.filter(walletsToTransfer, function(item) {
|
|
||||||
return item.network == 'testnet';
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (!(networkResult.testnet > 1)) {
|
|
||||||
walletsToTransfer = lodash.filter(walletsToTransfer, function(item) {
|
|
||||||
return item.network == 'livenet';
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
var walletList = [];
|
|
||||||
lodash.each(walletsToTransfer, function(v) {
|
|
||||||
var displayBalanceAsFiat =
|
|
||||||
v.status.alternativeBalanceAvailable &&
|
|
||||||
config.wallet.settings.priceDisplay === 'fiat';
|
|
||||||
|
|
||||||
walletList.push({
|
|
||||||
color: v.color,
|
|
||||||
name: v.name,
|
|
||||||
recipientType: 'wallet',
|
|
||||||
coin: v.coin,
|
|
||||||
network: v.network,
|
|
||||||
balanceString: displayBalanceAsFiat ?
|
|
||||||
v.status.totalBalanceAlternative + ' ' + v.status.alternativeIsoCode :
|
|
||||||
v.cachedBalance,
|
|
||||||
getAddress: function(cb) {
|
|
||||||
walletService.getAddress(v, false, cb);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
|
||||||
originalList = originalList.concat(walletList);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var updateContactsList = function(cb) {
|
var updateContactsList = function(cb) {
|
||||||
var config = configService.getSync();
|
var config = configService.getSync();
|
||||||
var defaults = configService.getDefaults();
|
var defaults = configService.getDefaults();
|
||||||
|
|
@ -115,16 +145,11 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
recipientType: 'contact',
|
recipientType: 'contact',
|
||||||
coin: v.coin,
|
coin: v.coin,
|
||||||
displayCoin: (v.coin == 'bch'
|
displayCoin: (v.coin == 'bch'
|
||||||
? (config.bitcoinCashAlias || defaults.bitcoinCashAlias)
|
? (config.bitcoinCashAlias || defaults.bitcoinCashAlias)
|
||||||
: (config.bitcoinAlias || defaults.bitcoinAlias)).toUpperCase(),
|
: (config.bitcoinAlias || defaults.bitcoinAlias)).toUpperCase()
|
||||||
getAddress: function(cb) {
|
|
||||||
return cb(null, k);
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
var contacts = completeContacts.slice(0, (currentContactsPage + 1) * CONTACTS_SHOW_LIMIT);
|
originalList = completeContacts;
|
||||||
$scope.contactsShowMore = completeContacts.length > contacts.length;
|
|
||||||
originalList = originalList.concat(contacts);
|
|
||||||
return cb();
|
return cb();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
@ -137,88 +162,51 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
}, 10);
|
}, 10);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.openScanner = function() {
|
|
||||||
var isWindowsPhoneApp = platformInfo.isCordova && platformInfo.isWP;
|
|
||||||
|
|
||||||
if (!isWindowsPhoneApp) {
|
|
||||||
$state.go('tabs.scan');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
scannerService.useOldScanner(function(err, contents) {
|
|
||||||
if (err) {
|
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
incomingData.redir(contents);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.showMore = function() {
|
|
||||||
currentContactsPage++;
|
|
||||||
updateWalletsList();
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.searchInFocus = function() {
|
$scope.searchInFocus = function() {
|
||||||
$scope.searchFocus = true;
|
$scope.searchFocus = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.searchBlurred = function() {
|
$scope.searchBlurred = function() {
|
||||||
if ($scope.formData.search == null || $scope.formData.search.length == 0) {
|
if ($scope.formData.search == null || $scope.formData.search.length === 0) {
|
||||||
$scope.searchFocus = false;
|
$scope.searchFocus = false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.findContact = function(search) {
|
$scope.sendToContact = function (item) {
|
||||||
|
$timeout(function () {
|
||||||
|
var toAddress = item.address;
|
||||||
|
|
||||||
if (incomingData.redir(search)) {
|
if (item.recipientType && item.recipientType === 'contact') {
|
||||||
return;
|
if (toAddress.indexOf('bch') === 0 || toAddress.indexOf('btc') === 0) {
|
||||||
}
|
toAddress = toAddress.substring(3);
|
||||||
|
|
||||||
if (!search || search.length < 2) {
|
|
||||||
$scope.list = originalList;
|
|
||||||
$timeout(function() {
|
|
||||||
$scope.$apply();
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var result = lodash.filter(originalList, function(item) {
|
|
||||||
var val = item.name;
|
|
||||||
return lodash.includes(val.toLowerCase(), search.toLowerCase());
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.list = result;
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.goToAmount = function(item) {
|
|
||||||
$timeout(function() {
|
|
||||||
item.getAddress(function(err, addr) {
|
|
||||||
if (err || !addr) {
|
|
||||||
//Error is already formated
|
|
||||||
return popupService.showAlert(err);
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (item.recipientType && item.recipientType == 'contact') {
|
$log.debug('Got toAddress:' + toAddress + ' | ' + item.name);
|
||||||
if (addr.indexOf('bch') == 0 || addr.indexOf('btc') == 0) {
|
|
||||||
addr = addr.substring(3);
|
var stateParams = sendFlowService.getStateClone();
|
||||||
}
|
stateParams.toAddress = toAddress,
|
||||||
}
|
stateParams.coin = item.coin;
|
||||||
|
sendFlowService.pushState(stateParams);
|
||||||
|
|
||||||
|
if (!stateParams.fromWalletId) { // If we have no toAddress or fromWallet
|
||||||
|
$state.transitionTo('tabs.send.origin');
|
||||||
|
} else {
|
||||||
|
$state.transitionTo('tabs.send.amount');
|
||||||
|
}
|
||||||
|
|
||||||
$log.debug('Got toAddress:' + addr + ' | ' + item.name);
|
|
||||||
return $state.transitionTo('tabs.send.amount', {
|
|
||||||
recipientType: item.recipientType,
|
|
||||||
displayAddress: item.coin == 'bch' ? bitcoinCashJsService.translateAddresses(addr).cashaddr : addr,
|
|
||||||
toAddress: addr,
|
|
||||||
toName: item.name,
|
|
||||||
toEmail: item.email,
|
|
||||||
toColor: item.color,
|
|
||||||
coin: item.coin
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.startWalletToWalletTransfer = function() {
|
||||||
|
console.log('startWalletToWalletTransfer()');
|
||||||
|
var params = sendFlowService.getStateClone();
|
||||||
|
sendFlowService.pushState(params);
|
||||||
|
$state.transitionTo('tabs.send.wallet-to-wallet', {
|
||||||
|
fromWalletId: sendFlowService.fromWalletId
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// This could probably be enhanced refactoring the routes abstract states
|
// This could probably be enhanced refactoring the routes abstract states
|
||||||
$scope.createWallet = function() {
|
$scope.createWallet = function() {
|
||||||
$state.go('tabs.home').then(function() {
|
$state.go('tabs.home').then(function() {
|
||||||
|
|
@ -233,34 +221,25 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
|
console.log(data);
|
||||||
|
console.log('tab-send onBeforeEnter sendflow ', sendFlowService.state);
|
||||||
|
$scope.isIOS = platformInfo.isIOS && platformInfo.isCordova;
|
||||||
|
$scope.showWalletsBch = $scope.showWalletsBtc = $scope.showWallets = false;
|
||||||
|
|
||||||
$scope.checkingBalance = true;
|
$scope.checkingBalance = true;
|
||||||
$scope.formData = {
|
$scope.formData = {
|
||||||
search: null
|
search: null
|
||||||
};
|
};
|
||||||
originalList = [];
|
originalList = [];
|
||||||
CONTACTS_SHOW_LIMIT = 10;
|
|
||||||
currentContactsPage = 0;
|
|
||||||
hasWallets();
|
hasWallets();
|
||||||
});
|
|
||||||
|
|
||||||
$scope.$on("$ionicView.enter", function(event, data) {
|
configService.whenAvailable(function(_config) {
|
||||||
$ionicNavBarDelegate.showBar(true);
|
$scope.displayBalanceAsFiat = _config.wallet.settings.priceDisplay === 'fiat';
|
||||||
if (!$scope.hasWallets) {
|
|
||||||
$scope.checkingBalance = false;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
updateHasFunds();
|
|
||||||
updateWalletsList();
|
|
||||||
updateContactsList(function() {
|
|
||||||
updateList();
|
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
$scope.toggle = function(section) {
|
if (data.direction == "back") {
|
||||||
$scope.sectionDisplay[section] = !$scope.sectionDisplay[section];
|
sendFlowService.clear();
|
||||||
$timeout(function() {
|
}
|
||||||
$ionicScrollDelegate.resize();
|
|
||||||
$scope.$apply();
|
});
|
||||||
}, 10);
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
@ -16,7 +16,7 @@ angular.module('copayApp.controllers').controller('tabSettingsController', funct
|
||||||
isoCode: config.wallet.settings.alternativeIsoCode
|
isoCode: config.wallet.settings.alternativeIsoCode
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.selectedPriceDisplay = config.wallet.settings.priceDisplay;
|
$scope.selectedPriceDisplay = config.wallet.settings.priceDisplay === 'crypto' ? gettextCatalog.getString('Cryptocurrency') : gettextCatalog.getString('Fiat');
|
||||||
|
|
||||||
// TODO move this to a generic service
|
// TODO move this to a generic service
|
||||||
bitpayAccountService.getAccounts(function(err, data) {
|
bitpayAccountService.getAccounts(function(err, data) {
|
||||||
|
|
@ -45,6 +45,18 @@ angular.module('copayApp.controllers').controller('tabSettingsController', funct
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.sendFeedback = function() {
|
||||||
|
var mailToLink = 'mailto:wallet@bitcoin.com?subject=Feedback%20for%20Bitcoin.com%20Wallet';
|
||||||
|
if (platformInfo.isNW) {
|
||||||
|
nw.Shell.openExternal(mailToLink);
|
||||||
|
} else if (platformInfo.isCordova) {
|
||||||
|
var mailWindow = window.open(mailToLink, '_system');
|
||||||
|
mailWindow.close(); // XX SP: bugfix for some browsers in cordova to change the view entirely
|
||||||
|
} else {
|
||||||
|
window.location.href = mailToLink;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
$scope.openExternalLink = function() {
|
$scope.openExternalLink = function() {
|
||||||
var appName = appConfigService.name;
|
var appName = appConfigService.name;
|
||||||
var url = appName == 'copay' ? 'https://github.com/bitcoin-com/wallet/issues' : 'https://www.bitcoin.com/wallet-support';
|
var url = appName == 'copay' ? 'https://github.com/bitcoin-com/wallet/issues' : 'https://www.bitcoin.com/wallet-support';
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('tabsController', function($rootScope, $log, $scope, $state, $stateParams, $timeout, platformInfo, incomingData, lodash, popupService, gettextCatalog, scannerService) {
|
angular.module('copayApp.controllers').controller('tabsController', function($rootScope, $log, $scope, $state, $stateParams, $timeout, platformInfo, incomingData, lodash, popupService, gettextCatalog, scannerService, sendFlowService) {
|
||||||
|
|
||||||
$scope.onScan = function(data) {
|
$scope.onScan = function(data) {
|
||||||
if (!incomingData.redir(data)) {
|
if (!incomingData.redir(data)) {
|
||||||
|
|
@ -15,6 +15,11 @@ angular.module('copayApp.controllers').controller('tabsController', function($ro
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.startFreshSend = function() {
|
||||||
|
sendFlowService.clear();
|
||||||
|
$state.go('tabs.send');
|
||||||
|
};
|
||||||
|
|
||||||
$scope.importInit = function() {
|
$scope.importInit = function() {
|
||||||
$scope.fromOnboarding = $stateParams.fromOnboarding;
|
$scope.fromOnboarding = $stateParams.fromOnboarding;
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
|
@ -23,7 +28,7 @@ angular.module('copayApp.controllers').controller('tabsController', function($ro
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.chooseScanner = function() {
|
$scope.chooseScanner = function() {
|
||||||
|
sendFlowService.clear();
|
||||||
var isWindowsPhoneApp = platformInfo.isCordova && platformInfo.isWP;
|
var isWindowsPhoneApp = platformInfo.isCordova && platformInfo.isWP;
|
||||||
|
|
||||||
if (!isWindowsPhoneApp) {
|
if (!isWindowsPhoneApp) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('walletDetailsController', function($scope, $rootScope, $interval, $timeout, $filter, $log, $ionicModal, $ionicPopover, $state, $stateParams, $ionicHistory, profileService, lodash, configService, platformInfo, walletService, txpModalService, externalLinkService, popupService, addressbookService, storageService, $ionicScrollDelegate, $window, bwcError, gettextCatalog, timeService, feeService, appConfigService, rateService) {
|
angular.module('copayApp.controllers').controller('walletDetailsController', function($scope, $rootScope, $interval, $timeout, $filter, $log, $ionicModal, $ionicPopover, $state, $stateParams, $ionicHistory, profileService, lodash, configService, platformInfo, walletService, txpModalService, externalLinkService, popupService, addressbookService, sendFlowService, storageService, $ionicScrollDelegate, $window, bwcError, gettextCatalog, timeService, feeService, appConfigService, rateService) {
|
||||||
|
|
||||||
var HISTORY_SHOW_LIMIT = 10;
|
var HISTORY_SHOW_LIMIT = 10;
|
||||||
var currentTxHistoryPage = 0;
|
var currentTxHistoryPage = 0;
|
||||||
|
|
@ -12,6 +12,13 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
$scope.isAndroid = platformInfo.isAndroid;
|
$scope.isAndroid = platformInfo.isAndroid;
|
||||||
$scope.isIOS = platformInfo.isIOS;
|
$scope.isIOS = platformInfo.isIOS;
|
||||||
|
|
||||||
|
var channel = "ga";
|
||||||
|
if (platformInfo.isCordova) {
|
||||||
|
channel = "firebase";
|
||||||
|
}
|
||||||
|
var log = new window.BitAnalytics.LogEvent("wallet_details_open", [], [channel]);
|
||||||
|
window.BitAnalytics.LogEventHandlers.postEvent(log);
|
||||||
|
|
||||||
$scope.amountIsCollapsible = !$scope.isAndroid;
|
$scope.amountIsCollapsible = !$scope.isAndroid;
|
||||||
|
|
||||||
$scope.openExternalLink = function(url, target) {
|
$scope.openExternalLink = function(url, target) {
|
||||||
|
|
@ -297,9 +304,13 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
};
|
};
|
||||||
|
|
||||||
function refreshAmountSection(scrollPos) {
|
function refreshAmountSection(scrollPos) {
|
||||||
|
var AMOUNT_HEIGHT_BASE = 210;
|
||||||
$scope.showBalanceButton = false;
|
$scope.showBalanceButton = false;
|
||||||
if ($scope.status) {
|
if ($scope.status) {
|
||||||
$scope.showBalanceButton = ($scope.status.totalBalanceSat != $scope.status.spendableAmount);
|
$scope.showBalanceButton = ($scope.status.totalBalanceSat != $scope.status.spendableAmount);
|
||||||
|
if ($scope.showBalanceButton) {
|
||||||
|
AMOUNT_HEIGHT_BASE = 270;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!$scope.amountIsCollapsible) {
|
if (!$scope.amountIsCollapsible) {
|
||||||
var t = ($scope.showBalanceButton ? 15 : 45);
|
var t = ($scope.showBalanceButton ? 15 : 45);
|
||||||
|
|
@ -308,16 +319,16 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollPos = scrollPos || 0;
|
scrollPos = scrollPos || 0;
|
||||||
var amountHeight = 210 - scrollPos;
|
var amountHeight = AMOUNT_HEIGHT_BASE - scrollPos;
|
||||||
if (amountHeight < 80) {
|
if (amountHeight < 80) {
|
||||||
amountHeight = 80;
|
amountHeight = 80;
|
||||||
}
|
}
|
||||||
var contentMargin = amountHeight;
|
var contentMargin = amountHeight;
|
||||||
if (contentMargin > 210) {
|
if (contentMargin > AMOUNT_HEIGHT_BASE) {
|
||||||
contentMargin = 210;
|
contentMargin = AMOUNT_HEIGHT_BASE;
|
||||||
}
|
}
|
||||||
|
|
||||||
var amountScale = (amountHeight / 210);
|
var amountScale = (amountHeight / AMOUNT_HEIGHT_BASE);
|
||||||
if (amountScale < 0.5) {
|
if (amountScale < 0.5) {
|
||||||
amountScale = 0.5;
|
amountScale = 0.5;
|
||||||
}
|
}
|
||||||
|
|
@ -335,9 +346,9 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
top = TOP_BALANCE_BUTTON;
|
top = TOP_BALANCE_BUTTON;
|
||||||
}
|
}
|
||||||
|
|
||||||
var amountTop = ((amountScale - 0.7) / 0.7) * top;
|
var amountTop = ((amountScale - 0.80) / 0.80) * top;
|
||||||
if (amountTop < -10) {
|
if (amountTop < -2) {
|
||||||
amountTop = -10;
|
amountTop = -2;
|
||||||
}
|
}
|
||||||
if (amountTop > top) {
|
if (amountTop > top) {
|
||||||
amountTop = top;
|
amountTop = top;
|
||||||
|
|
@ -346,6 +357,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
var t = amountTop;
|
var t = amountTop;
|
||||||
|
|
||||||
$scope.altAmountOpacity = (amountHeight - 100) / 80;
|
$scope.altAmountOpacity = (amountHeight - 100) / 80;
|
||||||
|
$scope.buttonsOpacity = (amountHeight - 140) / 70;
|
||||||
$window.requestAnimationFrame(function() {
|
$window.requestAnimationFrame(function() {
|
||||||
$scope.amountHeight = amountHeight + 'px';
|
$scope.amountHeight = amountHeight + 'px';
|
||||||
$scope.contentMargin = contentMargin + 'px';
|
$scope.contentMargin = contentMargin + 'px';
|
||||||
|
|
@ -366,6 +378,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
|
sendFlowService.clear();
|
||||||
|
|
||||||
configService.whenAvailable(function (config) {
|
configService.whenAvailable(function (config) {
|
||||||
$scope.selectedPriceDisplay = config.wallet.settings.priceDisplay;
|
$scope.selectedPriceDisplay = config.wallet.settings.priceDisplay;
|
||||||
|
|
@ -462,4 +475,36 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
function rgbToHex(r, g, b) {
|
function rgbToHex(r, g, b) {
|
||||||
return "#" + componentToHex(r) + componentToHex(g) + componentToHex(b);
|
return "#" + componentToHex(r) + componentToHex(g) + componentToHex(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.goToSend = function() {
|
||||||
|
sendFlowService.startSend({
|
||||||
|
fromWalletId: $scope.wallet.id
|
||||||
|
});
|
||||||
|
|
||||||
|
// Go home first so that the Home tab works properly
|
||||||
|
$state.go('tabs.home').then(function () {
|
||||||
|
$ionicHistory.clearHistory();
|
||||||
|
$state.go('tabs.send');
|
||||||
|
});
|
||||||
|
|
||||||
|
};
|
||||||
|
$scope.goToReceive = function() {
|
||||||
|
$state.go('tabs.home', {
|
||||||
|
walletId: $scope.wallet.id
|
||||||
|
}).then(function () {
|
||||||
|
$ionicHistory.clearHistory();
|
||||||
|
$state.go('tabs.receive', {
|
||||||
|
walletId: $scope.wallet.id
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.goToBuy = function() {
|
||||||
|
$state.go('tabs.home', {
|
||||||
|
walletId: $scope.wallet.id
|
||||||
|
}).then(function () {
|
||||||
|
$ionicHistory.clearHistory();
|
||||||
|
$state.go('tabs.buyandsell');
|
||||||
|
});
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
210
src/js/controllers/walletSelectorController.js
Normal file
210
src/js/controllers/walletSelectorController.js
Normal file
|
|
@ -0,0 +1,210 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular.module('copayApp.controllers').controller('walletSelectorController', function($scope, $rootScope, $state, $log, $ionicHistory, sendFlowService, configService, gettextCatalog, profileService, txFormatService) {
|
||||||
|
|
||||||
|
var fromWalletId = '';
|
||||||
|
var priceDisplayAsFiat = false;
|
||||||
|
var unitDecimals = 0;
|
||||||
|
var unitsFromSatoshis = 0;
|
||||||
|
|
||||||
|
$scope.$on("$ionicView.beforeEnter", onBeforeEnter);
|
||||||
|
$scope.$on("$ionicView.enter", onEnter);
|
||||||
|
|
||||||
|
function onBeforeEnter(event, data) {
|
||||||
|
if (data.direction == "back") {
|
||||||
|
sendFlowService.popState();
|
||||||
|
}
|
||||||
|
console.log('walletSelector onBeforeEnter after back sendflow', sendFlowService.state);
|
||||||
|
|
||||||
|
$scope.params = sendFlowService.getStateClone();
|
||||||
|
|
||||||
|
var config = configService.getSync().wallet.settings;
|
||||||
|
priceDisplayAsFiat = config.priceDisplay === 'fiat';
|
||||||
|
unitDecimals = config.unitDecimals;
|
||||||
|
unitsFromSatoshis = 1 / config.unitToSatoshi;
|
||||||
|
|
||||||
|
switch($state.current.name) {
|
||||||
|
case 'tabs.send.wallet-to-wallet':
|
||||||
|
$scope.sendFlowTitle = gettextCatalog.getString('Transfer between wallets');
|
||||||
|
break;
|
||||||
|
case 'tabs.send.destination':
|
||||||
|
if ($scope.params.fromWalletId && !$scope.params.thirdParty) {
|
||||||
|
$scope.sendFlowTitle = gettextCatalog.getString('Transfer between wallets');
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
if (!$scope.params.thirdParty) {
|
||||||
|
$scope.sendFlowTitle = gettextCatalog.getString('Send');
|
||||||
|
}
|
||||||
|
// nop
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.coin = false; // Wallets to show (for destination screen or contacts)
|
||||||
|
$scope.type = $scope.params['fromWalletId'] ? 'destination' : 'origin'; // origin || destination
|
||||||
|
fromWalletId = $scope.params['fromWalletId'];
|
||||||
|
|
||||||
|
if ($scope.type === 'destination' && $scope.params.toAddress) {
|
||||||
|
$state.transitionTo(getNextStep($scope.params));
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($scope.params.coin) {
|
||||||
|
$scope.coin = $scope.params.coin; // Contacts have a coin embedded
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($scope.params.amount) { // There is an amount, so presume that it is a payment request
|
||||||
|
$scope.sendFlowTitle = gettextCatalog.getString('Payment Request');
|
||||||
|
$scope.specificAmount = $scope.specificAlternativeAmount = '';
|
||||||
|
$scope.isPaymentRequest = true;
|
||||||
|
}
|
||||||
|
if ($scope.params.thirdParty) {
|
||||||
|
$scope.thirdParty = $scope.params.thirdParty;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
function onEnter (event, data) {
|
||||||
|
configService.whenAvailable(function(config) {
|
||||||
|
$scope.selectedPriceDisplay = config.wallet.settings.priceDisplay;
|
||||||
|
});
|
||||||
|
|
||||||
|
if ($scope.thirdParty) {
|
||||||
|
// Third party services specific logic
|
||||||
|
handleThirdPartyIfShapeshift();
|
||||||
|
}
|
||||||
|
|
||||||
|
prepareWalletLists();
|
||||||
|
formatRequestedAmount();
|
||||||
|
};
|
||||||
|
|
||||||
|
function formatRequestedAmount() {
|
||||||
|
if ($scope.params.amount) {
|
||||||
|
var cryptoAmount = (unitsFromSatoshis * $scope.params.amount).toFixed(unitDecimals);
|
||||||
|
var cryptoCoin = $scope.coin.toUpperCase();
|
||||||
|
|
||||||
|
txFormatService.formatAlternativeStr($scope.coin, $scope.params.amount, function onFormatAlternativeStr(formatted){
|
||||||
|
if (formatted) {
|
||||||
|
var fiatParts = formatted.split(' ');
|
||||||
|
var fiatAmount = fiatParts[0];
|
||||||
|
var fiatCurrrency = fiatParts.length > 1 ? fiatParts[1] : '';
|
||||||
|
|
||||||
|
if (priceDisplayAsFiat) {
|
||||||
|
$scope.requestAmount = fiatAmount;
|
||||||
|
$scope.requestCurrency = fiatCurrrency;
|
||||||
|
|
||||||
|
$scope.requestAmountSecondary = cryptoAmount;
|
||||||
|
$scope.requestCurrencySecondary = cryptoCoin;
|
||||||
|
} else {
|
||||||
|
$scope.requestAmount = cryptoAmount;
|
||||||
|
$scope.requestCurrency = cryptoCoin;
|
||||||
|
|
||||||
|
$scope.requestAmountSecondary = fiatAmount;
|
||||||
|
$scope.requestCurrencySecondary = fiatCurrrency;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function getNextStep(params) {
|
||||||
|
if (!params.toWalletId && !params.toAddress) { // If we have no toAddress or fromWallet
|
||||||
|
return 'tabs.send.destination';
|
||||||
|
} else if (!params.amount) { // If we have no amount
|
||||||
|
return 'tabs.send.amount';
|
||||||
|
} else { // If we do have them
|
||||||
|
return 'tabs.send.review';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleThirdPartyIfShapeshift() {
|
||||||
|
console.log($scope.thirdParty, $scope.coin);
|
||||||
|
if ($scope.thirdParty.id === 'shapeshift' && $scope.type === 'destination') { // Shapeshift wants to know the
|
||||||
|
$scope.coin = profileService.getWallet(fromWalletId).coin;
|
||||||
|
if ($scope.coin === 'bch') {
|
||||||
|
$scope.coin = 'btc';
|
||||||
|
} else {
|
||||||
|
$scope.coin = 'bch';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function prepareWalletLists() {
|
||||||
|
var walletsAll = [];
|
||||||
|
var walletsSufficientFunds = [];
|
||||||
|
$scope.walletsInsufficientFunds = []; // For origin screen
|
||||||
|
|
||||||
|
if ($scope.type === 'origin') {
|
||||||
|
$scope.headerTitle = gettextCatalog.getString('Choose a wallet to send from');
|
||||||
|
|
||||||
|
if ($scope.params.amount) {
|
||||||
|
|
||||||
|
walletsAll = profileService.getWallets({coin: $scope.coin});
|
||||||
|
|
||||||
|
walletsAll.forEach(function forWallet(wallet){
|
||||||
|
if (wallet.status.availableBalanceSat > $scope.params.amount) {
|
||||||
|
walletsSufficientFunds.push(wallet);
|
||||||
|
} else {
|
||||||
|
$scope.walletsInsufficientFunds.push(wallet);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if ($scope.coin === 'btc') {
|
||||||
|
$scope.walletsBtc = walletsSufficientFunds;
|
||||||
|
} else {
|
||||||
|
$scope.walletsBch = walletsSufficientFunds;
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if ($scope.coin) {
|
||||||
|
walletsAll = profileService.getWallets({coin: $scope.coin});
|
||||||
|
walletsAll.forEach(function forWallet(wallet){
|
||||||
|
if (wallet.status.availableBalanceSat > 0) {
|
||||||
|
walletsSufficientFunds.push(wallet);
|
||||||
|
} else {
|
||||||
|
$scope.walletsInsufficientFunds.push(wallet);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if ($scope.coin === 'btc') {
|
||||||
|
$scope.walletsBtc = walletsSufficientFunds;
|
||||||
|
} else {
|
||||||
|
$scope.walletsBch = walletsSufficientFunds;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$scope.walletsBch = profileService.getWallets({coin: 'bch', hasFunds: true});
|
||||||
|
$scope.walletsBtc = profileService.getWallets({coin: 'btc', hasFunds: true});
|
||||||
|
$scope.walletsInsufficientFunds = profileService.getWallets({coin: $scope.coin, hasNoFunds: true});
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if ($scope.type === 'destination') {
|
||||||
|
if (!$scope.coin) { // Allow for the coin to be set by a third party
|
||||||
|
$scope.fromWallet = profileService.getWallet(fromWalletId);
|
||||||
|
$scope.coin = $scope.fromWallet.coin; // Only show wallets with the select origin wallet coin
|
||||||
|
}
|
||||||
|
$scope.headerTitle = gettextCatalog.getString('Choose a wallet to send to');
|
||||||
|
|
||||||
|
if ($scope.coin === 'btc') { // if no specific coin is set or coin is set btc
|
||||||
|
$scope.walletsBtc = profileService.getWallets({coin: $scope.coin});
|
||||||
|
} else {
|
||||||
|
$scope.walletsBch = profileService.getWallets({coin: $scope.coin});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.useWallet = function(wallet) {
|
||||||
|
var params = sendFlowService.getStateClone();
|
||||||
|
if ($scope.type === 'origin') { // we're on the origin screen, set wallet to send from
|
||||||
|
params.fromWalletId = wallet.id;
|
||||||
|
} else { // we're on the destination screen, set wallet to send to
|
||||||
|
params.toWalletId = wallet.id;
|
||||||
|
}
|
||||||
|
sendFlowService.pushState(params);
|
||||||
|
var nextStep = getNextStep(params);
|
||||||
|
console.log('walletSelector nextStep', nextStep);
|
||||||
|
$state.transitionTo(nextStep, $scope.params);
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.goBack = function() {
|
||||||
|
$ionicHistory.goBack();
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
15
src/js/decorators/displayLogDebug.js
Normal file
15
src/js/decorators/displayLogDebug.js
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
angular.module('copayApp')
|
||||||
|
.config(['$provide', '$logProvider', function($provide, $logProvider) {
|
||||||
|
// expose a provider to reach debugEnabled in $log
|
||||||
|
$provide.value('$logProvider', $logProvider);
|
||||||
|
}])
|
||||||
|
.decorator('$log', ['$logProvider', '$delegate', function($logProvider, $delegate) {
|
||||||
|
// override $log.debug to display in Chrome
|
||||||
|
$delegate.debug = function () {
|
||||||
|
if ($logProvider.debugEnabled()) {
|
||||||
|
$delegate.info.apply($delegate, arguments);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return $delegate;
|
||||||
|
}]);
|
||||||
|
|
@ -1,38 +1,26 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.directives')
|
angular.module('copayApp.directives')
|
||||||
.directive('copyToClipboard', function(platformInfo, nodeWebkitService, gettextCatalog, ionicToast, clipboard) {
|
.directive('copyToClipboard', function(clipboardService, ionicToast, gettextCatalog) {
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
scope: {
|
scope: {
|
||||||
copyToClipboard: '=copyToClipboard'
|
copyToClipboard: '=copyToClipboard'
|
||||||
},
|
},
|
||||||
link: function(scope, elem, attrs, ctrl) {
|
link: function(scope, elem, attrs, ctrl) {
|
||||||
var isCordova = platformInfo.isCordova;
|
|
||||||
var isChromeApp = platformInfo.isChromeApp;
|
|
||||||
var isNW = platformInfo.isNW;
|
|
||||||
elem.bind('mouseover', function() {
|
elem.bind('mouseover', function() {
|
||||||
elem.css('cursor', 'pointer');
|
elem.css('cursor', 'pointer');
|
||||||
});
|
});
|
||||||
|
|
||||||
var msg = gettextCatalog.getString('Copied to clipboard');
|
|
||||||
elem.bind('click', function() {
|
elem.bind('click', function() {
|
||||||
var data = scope.copyToClipboard;
|
var data = scope.copyToClipboard;
|
||||||
if (!data) return;
|
clipboardService.copyToClipboard(data);
|
||||||
|
|
||||||
if (isCordova) {
|
var msg = gettextCatalog.getString('Copied to clipboard');
|
||||||
cordova.plugins.clipboard.copy(data);
|
scope.$apply(function () {
|
||||||
} else if (isNW) {
|
|
||||||
nodeWebkitService.writeToClipboard(data);
|
|
||||||
} else if (clipboard.supported) {
|
|
||||||
clipboard.copyText(data);
|
|
||||||
} else {
|
|
||||||
// No supported
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
scope.$apply(function() {
|
|
||||||
ionicToast.show(msg, 'bottom', false, 1000);
|
ionicToast.show(msg, 'bottom', false, 1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
198
src/js/directives/formattedAmount.js
Normal file
198
src/js/directives/formattedAmount.js
Normal file
|
|
@ -0,0 +1,198 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
(function(){
|
||||||
|
/**
|
||||||
|
* @desc amount directive that can be used to display formatted financial values
|
||||||
|
* size-equal attribute is optional, defaults to false.
|
||||||
|
* @example fee = {
|
||||||
|
* value: 12.49382901,
|
||||||
|
* currency: 'BCH'
|
||||||
|
* }
|
||||||
|
* @example <formatted-amount value="fee.value" currency="fee.currency"></formatted-amount>
|
||||||
|
* @example <formatted-amount value="fee.value" currency="fee.currency" size-equal="true"></formatted-amount>
|
||||||
|
*/
|
||||||
|
angular
|
||||||
|
.module('bitcoincom.directives')
|
||||||
|
.directive('formattedAmount', function() {
|
||||||
|
return {
|
||||||
|
restrict: 'E',
|
||||||
|
scope: {
|
||||||
|
value: '@',
|
||||||
|
currency: '@',
|
||||||
|
sizeEqual: '@'
|
||||||
|
},
|
||||||
|
templateUrl: 'views/includes/formatted-amount.html',
|
||||||
|
controller: formattedAmountController
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function formattedAmountController($scope, uxLanguage) {
|
||||||
|
$scope.vm = {};
|
||||||
|
var vm = $scope.vm;
|
||||||
|
|
||||||
|
vm.currency = '';
|
||||||
|
vm.value = '';
|
||||||
|
|
||||||
|
$scope.canShow = false
|
||||||
|
$scope.displaySizeEqual = !!$scope.sizeEqual;
|
||||||
|
|
||||||
|
var decimalPlaces = {
|
||||||
|
'0': ['BIF', 'CLP', 'DJF', 'GNF', 'ILS', 'JPY', 'KMF', 'KRW', 'MGA', 'PYG', 'RWF', 'UGX', 'VND', 'VUV', 'XAF', 'XOF', 'XPF'],
|
||||||
|
'3': ['BHD', 'IQD', 'JOD', 'KWD', 'OMR', 'TND'],
|
||||||
|
'8': ['BCH', 'BTC']
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.$watch('value', function onFormattedAmountWatch() {
|
||||||
|
formatNumbers();
|
||||||
|
});
|
||||||
|
|
||||||
|
function buildAmount(start, middle, end) {
|
||||||
|
$scope.start = start;
|
||||||
|
$scope.middle = middle;
|
||||||
|
$scope.end = end;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On Android 4.4, toLocaleString() only returns 3 fractional digits when 8 is specified.
|
||||||
|
*/
|
||||||
|
function ensureEnoughFractionDigits(localizedString, number, desiredFractionDigits) {
|
||||||
|
if (desiredFractionDigits === 0) {
|
||||||
|
// Assume it is OK
|
||||||
|
return localizedString;
|
||||||
|
}
|
||||||
|
var fractionalRe = /^-*(\d*\D)(\d+)$/;
|
||||||
|
var match = fractionalRe.exec(localizedString);
|
||||||
|
if (!match || match.length !== 3) {
|
||||||
|
// Don't know what's happening, just return what we have
|
||||||
|
return localizedString;
|
||||||
|
}
|
||||||
|
|
||||||
|
var decimals = match[2];
|
||||||
|
var decimalCount = decimals.length;
|
||||||
|
if (decimalCount >= desiredFractionDigits) {
|
||||||
|
// Everything is OK.
|
||||||
|
return localizedString;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof number !== 'number') {
|
||||||
|
number = parseFloat(number);
|
||||||
|
}
|
||||||
|
|
||||||
|
var fixed = number.toFixed(desiredFractionDigits);
|
||||||
|
var fixedMatch = fractionalRe.exec(fixed);
|
||||||
|
if (!fixedMatch || fixedMatch.length !== 3) {
|
||||||
|
// Don't know what's happening, just return what we have
|
||||||
|
return localizedString;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Keeps locale decimal separator.
|
||||||
|
var enough = match[1] + fixedMatch[2];
|
||||||
|
return enough;
|
||||||
|
}
|
||||||
|
|
||||||
|
function formatNumbers() {
|
||||||
|
// Might get "< 0.01 USD" being passed in.
|
||||||
|
// During watch, may be changed from having a separate currency value,
|
||||||
|
// to both being in value. Don't want to use previous currency value.
|
||||||
|
// Try to extract currency from value..
|
||||||
|
if (!$scope.currency || $scope.currency.length === 0) {
|
||||||
|
var currencySplit = $scope.value.split(" ");
|
||||||
|
if (currencySplit.length >= 2) {
|
||||||
|
vm.currency = currencySplit[currencySplit.length - 1];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
vm.currency = $scope.currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Redo this when we have proper formatting for low fees
|
||||||
|
if ($scope.value.indexOf("<") === 0) {
|
||||||
|
buildAmount($scope.value, '', '');
|
||||||
|
vm.currency = '';
|
||||||
|
$scope.canShow = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove thousands separators for parseFloat()
|
||||||
|
$scope.value = $scope.value.replace(',', '');
|
||||||
|
|
||||||
|
var parsed = parseFloat($scope.value);
|
||||||
|
var valueFormatted = '';
|
||||||
|
var valueProcessing = '';
|
||||||
|
switch (getDecimalPlaces(vm.currency)) {
|
||||||
|
case '0':
|
||||||
|
if (isNaN(parsed)) {
|
||||||
|
buildAmount('-', '', '');
|
||||||
|
} else {
|
||||||
|
valueFormatted = localizeNumbers(Math.round(parsed), 0);
|
||||||
|
buildAmount(valueFormatted, '', '');
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '3':
|
||||||
|
if (isNaN(parsed)) {
|
||||||
|
buildAmount('-' + getDecimalSeparator() + '---', '', '');
|
||||||
|
} else {
|
||||||
|
valueProcessing = parsed.toFixed(3);
|
||||||
|
valueFormatted = localizeNumbers(valueProcessing, 3);
|
||||||
|
buildAmount(valueFormatted, '', '');
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '8':
|
||||||
|
if (isNaN(parsed)) {
|
||||||
|
buildAmount('-' + getDecimalSeparator() + '---', '', '');
|
||||||
|
} else if (parsed === 0) {
|
||||||
|
buildAmount('0', '', '');
|
||||||
|
} else {
|
||||||
|
valueFormatted = parsed.toFixed(8);
|
||||||
|
valueFormatted = localizeNumbers(valueFormatted, 8);
|
||||||
|
var start = valueFormatted.slice(0, -5);
|
||||||
|
var middle = valueFormatted.slice(-5, -2);
|
||||||
|
var end = valueFormatted.substr(valueFormatted.length - 2);
|
||||||
|
buildAmount(start, middle, end);
|
||||||
|
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
default: // 2
|
||||||
|
if (isNaN(parsed)) {
|
||||||
|
buildAmount('-' + getDecimalSeparator() + '--', '', '');
|
||||||
|
} else {
|
||||||
|
valueProcessing = parseFloat(parsed.toFixed(2));
|
||||||
|
valueFormatted = localizeNumbers(valueProcessing, 2);
|
||||||
|
buildAmount(valueFormatted, '', '');
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
$scope.canShow = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
function getDecimalPlaces(currency) {
|
||||||
|
if (decimalPlaces['0'].indexOf(currency.toUpperCase()) > -1) return '0';
|
||||||
|
if (decimalPlaces['3'].indexOf(currency.toUpperCase()) > -1) return '3';
|
||||||
|
if (decimalPlaces['8'].indexOf(currency.toUpperCase()) > -1) return '8';
|
||||||
|
return '2';
|
||||||
|
};
|
||||||
|
|
||||||
|
function getDecimalSeparator() {
|
||||||
|
var testNum = 1.5;
|
||||||
|
var testString = testNum.toLocaleString(uxLanguage.getCurrentLanguage());
|
||||||
|
// Some environments let you set decimal separators that are more than one character
|
||||||
|
var separator = /^1(.+)5$/.exec(testString)[1]
|
||||||
|
return separator;
|
||||||
|
};
|
||||||
|
|
||||||
|
function localizeNumbers(x, minimumFractionDigits) {
|
||||||
|
var parsed = parseFloat(x);
|
||||||
|
var opts = {
|
||||||
|
minimumFractionDigits: minimumFractionDigits,
|
||||||
|
useGrouping: true
|
||||||
|
};
|
||||||
|
var lang = uxLanguage.getCurrentLanguage();
|
||||||
|
var localized = parsed.toLocaleString(lang, opts);
|
||||||
|
var corrected = ensureEnoughFractionDigits(localized, x, minimumFractionDigits);
|
||||||
|
return corrected;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
})();
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.directives')
|
angular.module('copayApp.directives')
|
||||||
.directive('gravatar', function(md5) {
|
.directive('gravatar', function(md5, $http) {
|
||||||
return {
|
return {
|
||||||
restrict: 'AE',
|
restrict: 'AE',
|
||||||
replace: true,
|
replace: true,
|
||||||
|
|
@ -9,13 +9,24 @@ angular.module('copayApp.directives')
|
||||||
name: '@',
|
name: '@',
|
||||||
height: '@',
|
height: '@',
|
||||||
width: '@',
|
width: '@',
|
||||||
email: '@'
|
email: '@',
|
||||||
|
url: '@'
|
||||||
},
|
},
|
||||||
link: function(scope, el, attr) {
|
link: function(scope, el, attr) {
|
||||||
if (typeof scope.email === "string") {
|
if (typeof scope.email === "string") {
|
||||||
scope.emailHash = md5.createHash(scope.email.toLowerCase() || '');
|
scope.emailHash = md5.createHash(scope.email.toLowerCase() || '');
|
||||||
|
var req = {
|
||||||
|
method: 'GET',
|
||||||
|
url: 'https://secure.gravatar.com/'+scope.emailHash+'.json',
|
||||||
|
};
|
||||||
|
scope.url = 'img/contact-placeholder.svg';
|
||||||
|
$http(req).then(function (response) {
|
||||||
|
scope.url = 'https://secure.gravatar.com/avatar/'+scope.emailHash+'.jpg?s='+scope.width+'&d=mm';
|
||||||
|
}, function (error) {
|
||||||
|
scope.url = 'img/contact-placeholder.svg';
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
template: '<img class="gravatar" alt="{{ name }}" height="{{ height }}" width="{{ width }}" src="https://secure.gravatar.com/avatar/{{ emailHash }}.jpg?s={{ width }}&d=mm">'
|
template: '<img class="gravatar" alt="{{ name }}" height="{{ height }}" width="{{ width }}" src="{{ url }}">'
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ angular.module('copayApp.directives').directive('shapeshiftCoinTrader', function
|
||||||
orderId: $scope.depositInfo.orderId
|
orderId: $scope.depositInfo.orderId
|
||||||
};
|
};
|
||||||
|
|
||||||
if (incomingData.redir(sendAddress, shapeshiftData)) {
|
if (incomingData.redir(sendAddress, 'shapeshift', shapeshiftData)) {
|
||||||
ongoingProcess.set('connectingShapeshift', false);
|
ongoingProcess.set('connectingShapeshift', false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,12 @@ angular.module('copayApp.directives')
|
||||||
scope: {
|
scope: {
|
||||||
isShown: '=slideSuccessShow',
|
isShown: '=slideSuccessShow',
|
||||||
onConfirm: '&slideSuccessOnConfirm',
|
onConfirm: '&slideSuccessOnConfirm',
|
||||||
hideOnConfirm: '=slideSuccessHideOnConfirm'
|
hideOnConfirm: '=slideSuccessHideOnConfirm',
|
||||||
|
onShare: '=slideSuccessOnShare',
|
||||||
},
|
},
|
||||||
link: function(scope, element, attrs) {
|
link: function(scope, element, attrs) {
|
||||||
|
scope.isCordova = platformInfo.isCordova;
|
||||||
scope.isWindowsPhoneApp = platformInfo.isCordova && platformInfo.isWP;
|
scope.hasShareFunction = typeof scope.onShare === 'function';
|
||||||
|
|
||||||
var elm = element[0];
|
var elm = element[0];
|
||||||
elm.style.display = 'none';
|
elm.style.display = 'none';
|
||||||
scope.$watch('isShown', function() {
|
scope.$watch('isShown', function() {
|
||||||
|
|
@ -32,6 +32,9 @@ angular.module('copayApp.directives')
|
||||||
elm.style.display = 'none';
|
elm.style.display = 'none';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
scope.onShareButtonClick = function() {
|
||||||
|
scope.onShare();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
120
src/js/directives/walletBalanceDirective.js
Normal file
120
src/js/directives/walletBalanceDirective.js
Normal file
|
|
@ -0,0 +1,120 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
(function(){
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('bitcoincom.directives')
|
||||||
|
.directive('walletBalance', function() {
|
||||||
|
return {
|
||||||
|
restrict: 'E',
|
||||||
|
scope: {
|
||||||
|
displayAsFiat: '@',
|
||||||
|
totalBalanceSat: '@',
|
||||||
|
// The Wallet object is sometimes not stringify()-able, so not interpolatable,
|
||||||
|
// so can't be passed to a directive.
|
||||||
|
walletStatus: '@',
|
||||||
|
walletCachedBalance: '@',
|
||||||
|
walletCachedBalanceUpdatedOn: '@',
|
||||||
|
walletCachedStatus: '@'
|
||||||
|
},
|
||||||
|
templateUrl: 'views/includes/wallet-balance.html',
|
||||||
|
controller: walletBalanceController
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function walletBalanceController($log, $scope, txFormatService) {
|
||||||
|
var cryptoBalanceHasBeenDisplayed = false;
|
||||||
|
|
||||||
|
formatBalance();
|
||||||
|
$scope.$watchGroup(['displayAsFiat', 'totalBalanceSat'], function onWalletBalanceWatch() {
|
||||||
|
formatBalance();
|
||||||
|
});
|
||||||
|
|
||||||
|
function displayCryptoBalance(walletStatus, walletCachedBalance, walletCachedBalanceUpdatedOn, walletCachedStatus) {
|
||||||
|
console.log('displayCryptoBalance()');
|
||||||
|
|
||||||
|
if (walletStatus && walletStatus.isValid && walletStatus.totalBalanceStr) {
|
||||||
|
setDisplay(walletStatus.totalBalanceStr, '');
|
||||||
|
cryptoBalanceHasBeenDisplayed = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (walletCachedBalance) {
|
||||||
|
setDisplay(walletCachedBalance, walletCachedBalanceUpdatedOn);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (walletCachedStatus && walletCachedStatus.isValid && walletCachedStatus.totalBalanceStr) {
|
||||||
|
setDisplay(walletCachedStatus.totalBalanceStr, '');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
setDisplay('', '');
|
||||||
|
}
|
||||||
|
|
||||||
|
function displayFiatBalance(walletStatus, walletCachedStatus) {
|
||||||
|
var displayAmount = '';
|
||||||
|
if (walletStatus && walletStatus.isValid && walletStatus.alternativeBalanceAvailable) {
|
||||||
|
displayAmount = walletStatus.totalBalanceAlternative + ' ' + walletStatus.alternativeIsoCode;
|
||||||
|
setDisplay(displayAmount, '');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (walletCachedStatus && walletCachedStatus.isValid && walletCachedStatus.alternativeBalanceAvailable) {
|
||||||
|
displayAmount = walletCachedStatus.totalBalanceAlternative + ' ' + walletCachedStatus.alternativeIsoCode;
|
||||||
|
setDisplay(displayAmount, '');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
getFiatBalance(wallet);
|
||||||
|
}
|
||||||
|
|
||||||
|
function formatBalance() {
|
||||||
|
var displayAsFiat = $scope.displayAsFiat === 'true';
|
||||||
|
|
||||||
|
var walletStatusObj = null;
|
||||||
|
var walletCachedBalance = null;
|
||||||
|
var walletCachedBalanceUpdatedOn = null;
|
||||||
|
var walletCachedStatusObj = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
walletStatusObj = JSON.parse($scope.walletStatus);
|
||||||
|
} catch (e) {
|
||||||
|
$log.warn('Failed to parse walletStatus.', e);
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
walletCachedStatusObj = JSON.parse($scope.walletCachedStatus);
|
||||||
|
} catch (e) {
|
||||||
|
$log.warn('Failed to parse walletCachedStatus.', e);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!displayAsFiat || displayAsFiat && !cryptoBalanceHasBeenDisplayed) {
|
||||||
|
displayCryptoBalance(walletStatusObj, walletCachedBalance, walletCachedBalanceUpdatedOn, walletCachedStatusObj);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (displayAsFiat) {
|
||||||
|
displayFiatBalance(walletStatusObj, walletCachedStatusObj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function getFiatBalance(wallet) {
|
||||||
|
if (!(wallet.status && wallet.status.isValid)) {
|
||||||
|
$log.warn('Abandoning call to get fiat balance, because no valid wallet status.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
txFormatService.formatAlternativeStr(wallet.coin, wallet.status.totalBalanceSat, function onFormatAlernativeStr(formatted) {
|
||||||
|
if (formatted) {
|
||||||
|
setDisplay(formatted, '');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function setDisplay(amount, cachedBalanceUpdatedOn) {
|
||||||
|
$scope.displayAmount = amount;
|
||||||
|
$scope.cachedBalanceUpdatedOn = cachedBalanceUpdatedOn;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
|
|
@ -8,15 +8,21 @@ angular.module('copayApp.directives')
|
||||||
transclude: true,
|
transclude: true,
|
||||||
scope: {
|
scope: {
|
||||||
title: '=walletSelectorTitle',
|
title: '=walletSelectorTitle',
|
||||||
|
forceTitle: '=walletSelectorForceTitle',
|
||||||
show: '=walletSelectorShow',
|
show: '=walletSelectorShow',
|
||||||
wallets: '=walletSelectorWallets',
|
wallets: '=walletSelectorWallets',
|
||||||
selectedWallet: '=walletSelectorSelectedWallet',
|
selectedWallet: '=walletSelectorSelectedWallet',
|
||||||
onSelect: '=walletSelectorOnSelect',
|
onSelect: '=walletSelectorOnSelect',
|
||||||
|
onHide: '=walletSelectorOnHide',
|
||||||
displayBalanceAsFiat : '=walletSelectorDisplayBalanceAsFiat'
|
displayBalanceAsFiat : '=walletSelectorDisplayBalanceAsFiat'
|
||||||
},
|
},
|
||||||
link: function(scope, element, attrs) {
|
link: function(scope, element, attrs) {
|
||||||
|
console.log(scope, element, attrs);
|
||||||
scope.hide = function() {
|
scope.hide = function() {
|
||||||
scope.show = false;
|
scope.show = false;
|
||||||
|
if (typeof scope.onHide === "function") {
|
||||||
|
scope.onHide()
|
||||||
|
}
|
||||||
};
|
};
|
||||||
scope.selectWallet = function(wallet) {
|
scope.selectWallet = function(wallet) {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
|
|
||||||
190
src/js/routes.js
190
src/js/routes.js
|
|
@ -236,7 +236,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.state('tabs.receive', {
|
.state('tabs.receive', {
|
||||||
url: '/receive',
|
url: '/receive/:walletId',
|
||||||
views: {
|
views: {
|
||||||
'tab-receive': {
|
'tab-receive': {
|
||||||
controller: 'tabReceiveController',
|
controller: 'tabReceiveController',
|
||||||
|
|
@ -287,16 +287,44 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.state('tabs.send.amount', {
|
.state('tabs.send.amount', {
|
||||||
url: '/amount/:recipientType/:toAddress/:toName/:toEmail/:toColor/:coin/:fixedUnit/:fromWalletId/:minShapeshiftAmount/:maxShapeshiftAmount/:shapeshiftOrderId/:displayAddress/:noPrefix',
|
url: '/amount',
|
||||||
views: {
|
views: {
|
||||||
'tab-send@tabs': {
|
'tab-send@tabs': {
|
||||||
controller: 'amountController',
|
controller: 'amountController',
|
||||||
|
controllerAs: 'vm',
|
||||||
templateUrl: 'views/amount.html'
|
templateUrl: 'views/amount.html'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.state('tabs.send.wallet-to-wallet', {
|
||||||
|
url: '/wallet-to-wallet',
|
||||||
|
views: {
|
||||||
|
'tab-send@tabs': {
|
||||||
|
controller: 'walletSelectorController',
|
||||||
|
templateUrl: 'views/walletSelector.html'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.state('tabs.send.origin', {
|
||||||
|
url: '/origin',
|
||||||
|
views: {
|
||||||
|
'tab-send@tabs': {
|
||||||
|
controller: 'walletSelectorController',
|
||||||
|
templateUrl: 'views/walletSelector.html',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.state('tabs.send.destination', {
|
||||||
|
url: '/destination',
|
||||||
|
views: {
|
||||||
|
'tab-send@tabs': {
|
||||||
|
controller: 'walletSelectorController',
|
||||||
|
templateUrl: 'views/walletSelector.html',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
.state('tabs.send.confirm', {
|
.state('tabs.send.confirm', {
|
||||||
url: '/confirm/:recipientType/:toAddress/:toName/:toAmount/:toEmail/:toColor/:description/:coin/:useSendMax/:fromWalletId/:displayAddress/:requiredFeeRate',
|
url: '/confirm',
|
||||||
views: {
|
views: {
|
||||||
'tab-send@tabs': {
|
'tab-send@tabs': {
|
||||||
controller: 'confirmController',
|
controller: 'confirmController',
|
||||||
|
|
@ -316,6 +344,19 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.state('tabs.send.review', {
|
||||||
|
url: '/review/:thirdParty/:amount/:fromWalletId/:sendMax/:toAddress/:toWalletId',
|
||||||
|
views: {
|
||||||
|
'tab-send@tabs': {
|
||||||
|
controller: 'reviewController',
|
||||||
|
controllerAs: 'vm',
|
||||||
|
templateUrl: 'views/review.html'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
params: {
|
||||||
|
paypro: null
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
|
|
@ -695,16 +736,17 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
})
|
})
|
||||||
|
|
||||||
.state('tabs.paymentRequest.amount', {
|
.state('tabs.paymentRequest.amount', {
|
||||||
url: '/amount/:coin',
|
url: '/amount/:toWalletId',
|
||||||
views: {
|
views: {
|
||||||
'tab-receive@tabs': {
|
'tab-receive@tabs': {
|
||||||
controller: 'amountController',
|
controller: 'amountController',
|
||||||
|
controllerAs: 'vm',
|
||||||
templateUrl: 'views/amount.html'
|
templateUrl: 'views/amount.html'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.state('tabs.paymentRequest.confirm', {
|
.state('tabs.paymentRequest.confirm', {
|
||||||
url: '/confirm/:amount/:currency/:coin',
|
url: '/confirm/:amount/:toWalletId',
|
||||||
views: {
|
views: {
|
||||||
'tab-receive@tabs': {
|
'tab-receive@tabs': {
|
||||||
controller: 'customAmountController',
|
controller: 'customAmountController',
|
||||||
|
|
@ -795,63 +837,15 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
fromOnboarding: null
|
fromOnboarding: null
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
/*
|
|
||||||
*
|
|
||||||
* Feedback
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
.state('tabs.feedback', {
|
|
||||||
url: '/feedback',
|
|
||||||
views: {
|
|
||||||
'tab-settings@tabs': {
|
|
||||||
templateUrl: 'views/feedback/send.html',
|
|
||||||
controller: 'sendController'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.state('tabs.shareApp', {
|
.state('tabs.shareApp', {
|
||||||
url: '/shareApp/:score/:skipped/:fromSettings',
|
url: '/shareApp',
|
||||||
views: {
|
views: {
|
||||||
'tab-settings@tabs': {
|
'tab-settings@tabs': {
|
||||||
controller: 'completeController',
|
controller: 'shareAppController',
|
||||||
templateUrl: 'views/feedback/complete.html'
|
templateUrl: 'views/shareApp.html'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.state('tabs.rate', {
|
|
||||||
url: '/rate',
|
|
||||||
abstract: true
|
|
||||||
})
|
|
||||||
.state('tabs.rate.send', {
|
|
||||||
url: '/send/:score',
|
|
||||||
views: {
|
|
||||||
'tab-home@tabs': {
|
|
||||||
templateUrl: 'views/feedback/send.html',
|
|
||||||
controller: 'sendController'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.state('tabs.rate.complete', {
|
|
||||||
url: '/complete/:score/:skipped',
|
|
||||||
views: {
|
|
||||||
'tab-home@tabs': {
|
|
||||||
controller: 'completeController',
|
|
||||||
templateUrl: 'views/feedback/complete.html'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.state('tabs.rate.rateApp', {
|
|
||||||
url: '/rateApp/:score',
|
|
||||||
views: {
|
|
||||||
'tab-home@tabs': {
|
|
||||||
controller: 'rateAppController',
|
|
||||||
templateUrl: 'views/feedback/rateApp.html'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* Buy or Sell Bitcoin
|
* Buy or Sell Bitcoin
|
||||||
|
|
@ -893,6 +887,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
views: {
|
views: {
|
||||||
'tab-home@tabs': {
|
'tab-home@tabs': {
|
||||||
controller: 'amountController',
|
controller: 'amountController',
|
||||||
|
controllerAs: 'vm',
|
||||||
templateUrl: 'views/amount.html'
|
templateUrl: 'views/amount.html'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -958,6 +953,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
views: {
|
views: {
|
||||||
'tab-home@tabs': {
|
'tab-home@tabs': {
|
||||||
controller: 'amountController',
|
controller: 'amountController',
|
||||||
|
controllerAs: 'vm',
|
||||||
templateUrl: 'views/amount.html'
|
templateUrl: 'views/amount.html'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1016,7 +1012,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
|
|
||||||
/* Shapeshift */
|
/* Shapeshift */
|
||||||
.state('tabs.shapeshift', {
|
.state('tabs.shapeshift', {
|
||||||
url: '/shapeshift',
|
url: '/shapeshift/:fromWalletId/:toWalletId',
|
||||||
views: {
|
views: {
|
||||||
'tab-home@tabs': {
|
'tab-home@tabs': {
|
||||||
controller: 'shapeshiftController',
|
controller: 'shapeshiftController',
|
||||||
|
|
@ -1077,6 +1073,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
views: {
|
views: {
|
||||||
'tab-home@tabs': {
|
'tab-home@tabs': {
|
||||||
controller: 'amountController',
|
controller: 'amountController',
|
||||||
|
controllerAs: 'vm',
|
||||||
templateUrl: 'views/amount.html'
|
templateUrl: 'views/amount.html'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -1129,6 +1126,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
views: {
|
views: {
|
||||||
'tab-home@tabs': {
|
'tab-home@tabs': {
|
||||||
controller: 'amountController',
|
controller: 'amountController',
|
||||||
|
controllerAs: 'vm',
|
||||||
templateUrl: 'views/amount.html'
|
templateUrl: 'views/amount.html'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -1185,6 +1183,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
views: {
|
views: {
|
||||||
'tab-home@tabs': {
|
'tab-home@tabs': {
|
||||||
controller: 'amountController',
|
controller: 'amountController',
|
||||||
|
controllerAs: 'vm',
|
||||||
templateUrl: 'views/amount.html'
|
templateUrl: 'views/amount.html'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1208,10 +1207,83 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.run(function($rootScope, $state, $location, $log, $timeout, startupService, ionicToast, fingerprintService, $ionicHistory, $ionicPlatform, $window, appConfigService, lodash, platformInfo, profileService, uxLanguage, gettextCatalog, openURLService, storageService, scannerService, configService, emailService, /* plugins START HERE => */ buydotbitcoindotcomService, glideraService, amazonService, bitpayCardService, applicationService, mercadoLibreService, rateService) {
|
.run(function($rootScope, $state, $location, $log, $timeout, startupService, ionicToast, fingerprintService, $ionicHistory, $ionicPlatform, $window, appConfigService, lodash, platformInfo, profileService, uxLanguage, gettextCatalog, openURLService, storageService, scannerService, configService, emailService, /* plugins START HERE => */ buydotbitcoindotcomService, pushNotificationsService, glideraService, amazonService, bitpayCardService, applicationService, mercadoLibreService, rateService) {
|
||||||
|
|
||||||
$ionicPlatform.ready(function() {
|
$ionicPlatform.ready(function() {
|
||||||
|
|
||||||
|
// Init BitAnalytics
|
||||||
|
var os = platformInfo.isAndroid ? 'android' : platformInfo.isIOS ? 'ios' : 'desktop';
|
||||||
|
window.BitAnalytics.initialize(os, $window.fullVersion, {"firebase": {},
|
||||||
|
"ga": {
|
||||||
|
"trackingId": "UA-59964190-23",
|
||||||
|
"eventLabels": ["id", "icon-off"]
|
||||||
|
},
|
||||||
|
"adjust": {
|
||||||
|
"token": "au1onbhgg5q8",
|
||||||
|
"environment" : "production",
|
||||||
|
"eventTypes": {
|
||||||
|
"banner_click": "sc5i8u",
|
||||||
|
"buy_bitcoin_click": "t1vcdz",
|
||||||
|
"transfer_success": "f68evo",
|
||||||
|
"wallet_created": "nd3dg5",
|
||||||
|
"wallet_opened": "4n39l7"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
configService.whenAvailable(function(config) {
|
||||||
|
pushNotificationsService.init();
|
||||||
|
});
|
||||||
|
//firebaseEventsService.init();
|
||||||
|
|
||||||
|
var channel = "ga";
|
||||||
|
if (platformInfo.isCordova) {
|
||||||
|
channel = "firebase";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Send a log to test
|
||||||
|
var log = new window.BitAnalytics.LogEvent("wallet_opened", [], [channel, "adjust"]);
|
||||||
|
window.BitAnalytics.LogEventHandlers.postEvent(log);
|
||||||
|
|
||||||
|
var actionBanner = new window.BitAnalytics.ActionFactory.createAction('click', {
|
||||||
|
name: 'banner_click',
|
||||||
|
class: 'track_banner_click',
|
||||||
|
params: ['href-banner', 'id'],
|
||||||
|
channels: [channel, 'adjust']
|
||||||
|
});
|
||||||
|
window.BitAnalytics.ActionHandlers.trackAction(actionBanner);
|
||||||
|
|
||||||
|
var actionBuyBitcoin = new window.BitAnalytics.ActionFactory.createAction('click', {
|
||||||
|
name: 'buy_bitcoin_click',
|
||||||
|
class: 'track_buy_bitcoin_click',
|
||||||
|
params: ['href', 'id'],
|
||||||
|
channels: [channel, 'adjust']
|
||||||
|
});
|
||||||
|
window.BitAnalytics.ActionHandlers.trackAction(actionBuyBitcoin);
|
||||||
|
|
||||||
|
var actionLinkClickOut = new window.BitAnalytics.ActionFactory.createAction('click', {
|
||||||
|
name: 'link_click_out',
|
||||||
|
class: 'track_link_click_out',
|
||||||
|
params: ['href', 'id'],
|
||||||
|
channels: [channel]
|
||||||
|
});
|
||||||
|
window.BitAnalytics.ActionHandlers.trackAction(actionLinkClickOut);
|
||||||
|
|
||||||
|
var actionTabOpen = new window.BitAnalytics.ActionFactory.createAction('click', {
|
||||||
|
name: 'tab_open',
|
||||||
|
class: 'track_tab_open',
|
||||||
|
params: ['href', 'title', 'icon-off'],
|
||||||
|
channels: [channel]
|
||||||
|
});
|
||||||
|
window.BitAnalytics.ActionHandlers.trackAction(actionTabOpen);
|
||||||
|
|
||||||
|
var actionShapeShiftStart = new window.BitAnalytics.ActionFactory.createAction('click', {
|
||||||
|
name: 'shapeshift_start_click',
|
||||||
|
class: 'track_shapeshift_start_click',
|
||||||
|
channels: [channel]
|
||||||
|
});
|
||||||
|
window.BitAnalytics.ActionHandlers.trackAction(actionShapeShiftStart);
|
||||||
|
|
||||||
// Init language
|
// Init language
|
||||||
uxLanguage.init(function (lang) {
|
uxLanguage.init(function (lang) {
|
||||||
|
|
||||||
|
|
@ -1251,7 +1323,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
if (screen.width < 768 && platformInfo.isCordova)
|
if (screen.width < 768 && platformInfo.isCordova)
|
||||||
screen.lockOrientation('portrait');
|
screen.lockOrientation('portrait');
|
||||||
|
|
||||||
if (ionic.Platform.isAndroid() && StatusBar) {
|
if (ionic.Platform.isAndroid() && platformInfo.isCordova && StatusBar) {
|
||||||
StatusBar.backgroundColorByHexString('#000000');
|
StatusBar.backgroundColorByHexString('#000000');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
78
src/js/services/bannerService.js
Normal file
78
src/js/services/bannerService.js
Normal file
|
|
@ -0,0 +1,78 @@
|
||||||
|
'use strict';
|
||||||
|
angular.module('copayApp.services').factory('bannerService', function ($http, $log) {
|
||||||
|
// Export
|
||||||
|
var root = {};
|
||||||
|
|
||||||
|
// Constant
|
||||||
|
var API_URL = 'https://bwscash.bitcoin.com/bws/api/v1/marketing';
|
||||||
|
|
||||||
|
// Variable
|
||||||
|
var hasFetched = false;
|
||||||
|
var banners = [];
|
||||||
|
var defaultBanner = {
|
||||||
|
id: 'default-banner',
|
||||||
|
imageURL: 'img/banner-store.png',
|
||||||
|
url: 'https://store.bitcoin.com/',
|
||||||
|
isLocal: true
|
||||||
|
};
|
||||||
|
|
||||||
|
// Private methods
|
||||||
|
var fetchSettings = function (cb) {
|
||||||
|
var req = {
|
||||||
|
method: 'GET',
|
||||||
|
url: API_URL+'/settings',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'Accept': 'application/json'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$http(req).then(function (response) {
|
||||||
|
$log.info('Get banner settings: SUCCESS');
|
||||||
|
banners = response.data;
|
||||||
|
return cb(true);
|
||||||
|
}, function (error) {
|
||||||
|
$log.error('Get banner settings: ERROR ' + error.statusText);
|
||||||
|
return cb(false);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
root.getBanner = function (cb) {
|
||||||
|
|
||||||
|
// If not fetch get the banner
|
||||||
|
if (!hasFetched) {
|
||||||
|
hasFetched = true;
|
||||||
|
|
||||||
|
// If never fetch, lets fetch
|
||||||
|
fetchSettings(function (isSuccess) {
|
||||||
|
root.getBanner(cb);
|
||||||
|
});
|
||||||
|
|
||||||
|
// If fetch, and got banners, lets have a look
|
||||||
|
} else if (banners.length > 0) {
|
||||||
|
var selectedBanners = [];
|
||||||
|
for(var i in banners) {
|
||||||
|
var banner = banners[i];
|
||||||
|
|
||||||
|
// Generate the URL for the banner
|
||||||
|
var fileName = banner.image.substring(0, banner.image.lastIndexOf('.'));
|
||||||
|
var extension = banner.image.substring(banner.image.lastIndexOf('.')+1);
|
||||||
|
banner.imageURL = API_URL +'/banners/'+fileName+"/"+extension;
|
||||||
|
|
||||||
|
// Add the banner
|
||||||
|
selectedBanners.push(banners[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// If no banner activated, return the default one
|
||||||
|
if (selectedBanners.length == 0) {
|
||||||
|
return cb(defaultBanner);
|
||||||
|
} else {
|
||||||
|
return cb(selectedBanners[Math.floor(Math.random()*banners.length)]);
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
return cb(defaultBanner);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return root;
|
||||||
|
});
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
angular.module('copayApp.services').factory('bitcoincomService', function($http, $log, lodash, moment, storageService, configService, platformInfo, nextStepsService, homeIntegrationsService) {
|
angular.module('copayApp.services').factory('bitcoincomService', function(gettextCatalog, nextStepsService, platformInfo) {
|
||||||
var root = {};
|
var root = {};
|
||||||
var credentials = {};
|
var credentials = {};
|
||||||
|
|
||||||
|
|
@ -7,6 +7,7 @@ angular.module('copayApp.services').factory('bitcoincomService', function($http,
|
||||||
* Development: 'testnet'
|
* Development: 'testnet'
|
||||||
* Production: 'livenet'
|
* Production: 'livenet'
|
||||||
*/
|
*/
|
||||||
|
var os = platformInfo.isAndroid ? 'android' : platformInfo.isIOS ? 'ios' : 'desktop';
|
||||||
credentials.NETWORK = 'livenet';
|
credentials.NETWORK = 'livenet';
|
||||||
//credentials.NETWORK = 'testnet';
|
//credentials.NETWORK = 'testnet';
|
||||||
|
|
||||||
|
|
@ -18,44 +19,44 @@ angular.module('copayApp.services').factory('bitcoincomService', function($http,
|
||||||
|
|
||||||
var cashGamesItem = {
|
var cashGamesItem = {
|
||||||
name: 'games',
|
name: 'games',
|
||||||
title: 'Bitcoin Cash Games',
|
title: gettextCatalog.getString('Bitcoin Cash Games'),
|
||||||
icon: 'icon-games',
|
icon: 'icon-games',
|
||||||
href: 'http://cashgames.bitcoin.com'
|
href: 'https://cashgames.bitcoin.com'
|
||||||
};
|
};
|
||||||
|
|
||||||
var newsItem = {
|
var newsItem = {
|
||||||
name: 'news',
|
name: 'news',
|
||||||
title: 'News',
|
title: gettextCatalog.getString('News'),
|
||||||
icon: 'icon-news',
|
icon: 'icon-news',
|
||||||
href: 'http://news.bitcoin.com'
|
href: 'https://news.bitcoin.com/?utm_source=WalletApp&utm_medium=' + os + '&utm_campaign=News'
|
||||||
};
|
};
|
||||||
|
|
||||||
var poolItem = {
|
var poolItem = {
|
||||||
name: 'pool',
|
name: 'pool',
|
||||||
title: 'Mining Pool',
|
title: gettextCatalog.getString('Mining Pool'),
|
||||||
icon: 'icon-mining',
|
icon: 'icon-mining',
|
||||||
href: 'http://pool.bitcoin.com'
|
href: 'https://pool.bitcoin.com/?utm_source=WalletApp&utm_medium=' + os + '&utm_campaign=Pool'
|
||||||
};
|
};
|
||||||
|
|
||||||
var toolsItem = {
|
var toolsItem = {
|
||||||
name: 'tools',
|
name: 'tools',
|
||||||
title: 'Tools',
|
title: gettextCatalog.getString('Tools'),
|
||||||
icon: 'icon-tools',
|
icon: 'icon-tools',
|
||||||
href: 'http://tools.bitcoin.com'
|
href: 'https://tools.bitcoin.com/?utm_source=WalletApp&utm_medium=' + os + '&utm_campaign=Tools'
|
||||||
};
|
};
|
||||||
|
|
||||||
var priceChartItem = {
|
var priceChartItem = {
|
||||||
name: 'pricechart',
|
name: 'pricechart',
|
||||||
title: 'Bitcoin Price Charts',
|
title: gettextCatalog.getString('Bitcoin Price Charts'),
|
||||||
icon: 'icon-chart',
|
icon: 'icon-chart',
|
||||||
sref: 'tabs.pricechart',
|
sref: 'tabs.pricechart',
|
||||||
};
|
};
|
||||||
|
|
||||||
var faucetItem = {
|
var faucetItem = {
|
||||||
name: 'faucet',
|
name: 'faucet',
|
||||||
title: 'Free Bitcoin Cash',
|
title: gettextCatalog.getString('Free Bitcoin Cash'),
|
||||||
icon: 'icon-faucet',
|
icon: 'icon-faucet',
|
||||||
href: 'https://free.bitcoin.com/'
|
href: 'https://free.bitcoin.com/?utm_source=WalletApp&utm_medium=' + os + '&utm_campaign=Faucet'
|
||||||
};
|
};
|
||||||
|
|
||||||
var _getBitPay = function(endpoint) {
|
var _getBitPay = function(endpoint) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.services').factory('buyAndSellService', function($log, servicesService, lodash, $ionicScrollDelegate, $timeout) {
|
angular.module('copayApp.services').factory('buyAndSellService', function(gettextCatalog, $log, servicesService, lodash, $ionicScrollDelegate, $timeout) {
|
||||||
var root = {};
|
var root = {};
|
||||||
var services = [];
|
var services = [];
|
||||||
var linkedServices = [];
|
var linkedServices = [];
|
||||||
|
|
@ -23,7 +23,7 @@ angular.module('copayApp.services').factory('buyAndSellService', function($log,
|
||||||
|
|
||||||
if (linkedServices.length == 0) {
|
if (linkedServices.length == 0) {
|
||||||
servicesService.register({
|
servicesService.register({
|
||||||
title: 'Buy Bitcoin',
|
title: gettextCatalog.getString('Buy Bitcoin'),
|
||||||
name: 'buyandsell',
|
name: 'buyandsell',
|
||||||
icon: 'icon-buy-bitcoin2',
|
icon: 'icon-buy-bitcoin2',
|
||||||
sref: 'tabs.buyandsell',
|
sref: 'tabs.buyandsell',
|
||||||
|
|
|
||||||
51
src/js/services/clipboardService.js
Normal file
51
src/js/services/clipboardService.js
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular.module('copayApp.services').factory('clipboardService', function ($http, $log, $timeout, platformInfo, nodeWebkitService, gettextCatalog, ionicToast, clipboard) {
|
||||||
|
var root = {};
|
||||||
|
|
||||||
|
root.copyToClipboard = function (data) {
|
||||||
|
if (!data) return;
|
||||||
|
|
||||||
|
$log.debug("Copy '"+data+"' to clipboard");
|
||||||
|
if (platformInfo.isCordova) {
|
||||||
|
cordova.plugins.clipboard.copy(data);
|
||||||
|
} else if (platformInfo.isNW) {
|
||||||
|
nodeWebkitService.writeToClipboard(data);
|
||||||
|
} else if (navigator && navigator.clipboard) {
|
||||||
|
$log.debug("Use navigator clipboard.")
|
||||||
|
navigator.clipboard.writeText(data).catch(function onClipboardError(err) {
|
||||||
|
$log.debug("Clipboard writing is not supported in your browser..");
|
||||||
|
});
|
||||||
|
} else if (clipboard.supported) {
|
||||||
|
clipboard.copyText(data);
|
||||||
|
} else {
|
||||||
|
// Not supported
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
root.readFromClipboard = function (cb) {
|
||||||
|
$log.debug("Read from clipboard");
|
||||||
|
if (platformInfo.isCordova) {
|
||||||
|
cordova.plugins.clipboard.paste(function(text) {
|
||||||
|
cb(text);
|
||||||
|
})
|
||||||
|
} else if (platformInfo.isNW) {
|
||||||
|
$timeout(function() {
|
||||||
|
cb(nodeWebkitService.readFromClipboard());
|
||||||
|
},0);
|
||||||
|
} else {
|
||||||
|
navigator.clipboard.readText()
|
||||||
|
.then(function (text) {
|
||||||
|
cb(text);
|
||||||
|
})
|
||||||
|
.catch(function (err) {
|
||||||
|
$log.debug("Clipboard reading is not supported in browser..");
|
||||||
|
});
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return root;
|
||||||
|
});
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
angular.module('copayApp.services').factory('communityService', function(configService, $log, lodash) {
|
angular.module('copayApp.services').factory('communityService', function(configService, gettextCatalog, $log, lodash) {
|
||||||
var root = {};
|
var root = {};
|
||||||
var services = [];
|
var services = [];
|
||||||
|
|
||||||
|
|
@ -37,14 +37,14 @@ angular.module('copayApp.services').factory('communityService', function(configS
|
||||||
|
|
||||||
var bchRedditItem = {
|
var bchRedditItem = {
|
||||||
name: 'bchreddit',
|
name: 'bchreddit',
|
||||||
title: 'Bitcoin Cash Reddit',
|
title: gettextCatalog.getString('Bitcoin Cash Reddit'),
|
||||||
icon: 'icon-reddit-white',
|
icon: 'icon-reddit-white',
|
||||||
href: 'http://reddit.com/r/btc'
|
href: 'http://reddit.com/r/btc'
|
||||||
};
|
};
|
||||||
|
|
||||||
var bitcoincomTwitterItem = {
|
var bitcoincomTwitterItem = {
|
||||||
name: 'bitcoincomTwitter',
|
name: 'bitcoincomTwitter',
|
||||||
title: 'Bitcoin.com Twitter',
|
title: gettextCatalog.getString('Bitcoin.com Twitter'),
|
||||||
icon: 'icon-twitter-white',
|
icon: 'icon-twitter-white',
|
||||||
href: 'https://twitter.com/BTCTN'
|
href: 'https://twitter.com/BTCTN'
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
||||||
'use strict';
|
|
||||||
angular.module('copayApp.services').factory('feedbackService', function($http, $log, $httpParamSerializer, configService) {
|
|
||||||
var root = {};
|
|
||||||
// var URL = "https://script.google.com/macros/s/1pWGRxVSUX9CxPqNAKZTppWHtDvyVtZv9HteY_TRQbWc/exec";
|
|
||||||
var URL = "https://wallet-data.bitcoin.com/feedback.php";
|
|
||||||
|
|
||||||
root.send = function(dataSrc, cb) {
|
|
||||||
$http(_post(dataSrc)).then(function() {
|
|
||||||
$log.info("SUCCESS: Feedback sent");
|
|
||||||
return cb();
|
|
||||||
}, function(err) {
|
|
||||||
$log.info("ERROR: Feedback sent anyway.");
|
|
||||||
return cb(err);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
var _post = function(dataSrc) {
|
|
||||||
return {
|
|
||||||
method: 'POST',
|
|
||||||
url: URL,
|
|
||||||
headers: {
|
|
||||||
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
|
||||||
},
|
|
||||||
data: $httpParamSerializer(dataSrc)
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
root.isVersionUpdated = function(currentVersion, savedVersion) {
|
|
||||||
|
|
||||||
if (!verifyTagFormat(currentVersion))
|
|
||||||
return 'Cannot verify the format of version tag: ' + currentVersion;
|
|
||||||
if (!verifyTagFormat(savedVersion))
|
|
||||||
return 'Cannot verify the format of the saved version tag: ' + savedVersion;
|
|
||||||
|
|
||||||
var current = formatTagNumber(currentVersion);
|
|
||||||
var saved = formatTagNumber(savedVersion);
|
|
||||||
if (saved.major > current.major || (saved.major == current.major && saved.minor > current.minor))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
|
|
||||||
function verifyTagFormat(tag) {
|
|
||||||
var regex = /^v?\d+\.\d+\.\d+$/i;
|
|
||||||
return regex.exec(tag);
|
|
||||||
};
|
|
||||||
|
|
||||||
function formatTagNumber(tag) {
|
|
||||||
var formattedNumber = tag.replace(/^v/i, '').split('.');
|
|
||||||
return {
|
|
||||||
major: +formattedNumber[0],
|
|
||||||
minor: +formattedNumber[1],
|
|
||||||
patch: +formattedNumber[2]
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
return root;
|
|
||||||
});
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
angular.module('copayApp.services').factory('firebaseEventsService', function firebaseEventsService($log, $state, $ionicHistory, sjcl, platformInfo, lodash, appConfigService, profileService, configService) {
|
angular.module('copayApp.services').factory('firebaseEventsService', function firebaseEventsService($log, platformInfo) {
|
||||||
var root = {};
|
var root = {};
|
||||||
var useEvents = platformInfo.isCordova && !platformInfo.isWP;
|
var useEvents = platformInfo.isCordova && !platformInfo.isWP;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.services').factory('incomingData', function($log, $state, $timeout, $ionicHistory, bitcore, bitcoreCash, $rootScope, payproService, scannerService, appConfigService, popupService, gettextCatalog, bitcoinCashJsService) {
|
angular.module('copayApp.services').factory('incomingData', function($log, $state, $timeout, $ionicHistory, bitcore, bitcoreCash, $rootScope, payproService, scannerService, sendFlowService, appConfigService, popupService, gettextCatalog, bitcoinCashJsService) {
|
||||||
|
|
||||||
var root = {};
|
var root = {};
|
||||||
|
|
||||||
|
|
@ -8,7 +8,7 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
|
||||||
$rootScope.$broadcast('incomingDataMenu.showMenu', data);
|
$rootScope.$broadcast('incomingDataMenu.showMenu', data);
|
||||||
};
|
};
|
||||||
|
|
||||||
root.redir = function(data, shapeshiftData) {
|
root.redir = function(data, serviceId, serviceData) {
|
||||||
var originalAddress = null;
|
var originalAddress = null;
|
||||||
var noPrefixInAddress = 0;
|
var noPrefixInAddress = 0;
|
||||||
|
|
||||||
|
|
@ -75,35 +75,41 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function goSend(addr, amount, message, coin, shapeshiftData) {
|
function goSend(addr, amount, message, coin, serviceId, serviceData) {
|
||||||
$state.go('tabs.send', {}, {
|
$state.go('tabs.send', {}, {
|
||||||
'reload': true,
|
'reload': true,
|
||||||
'notify': $state.current.name == 'tabs.send' ? false : true
|
'notify': $state.current.name == 'tabs.send' ? false : true
|
||||||
});
|
});
|
||||||
// Timeout is required to enable the "Back" button
|
// Timeout is required to enable the "Back" button
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
var params = sendFlowService.getStateClone();
|
||||||
|
|
||||||
if (amount) {
|
if (amount) {
|
||||||
$state.transitionTo('tabs.send.confirm', {
|
params.amount = amount;
|
||||||
toAmount: amount,
|
}
|
||||||
toAddress: addr,
|
|
||||||
displayAddress: originalAddress ? originalAddress : addr,
|
if (addr) {
|
||||||
description: message,
|
params.toAddress = addr;
|
||||||
coin: coin
|
params.displayAddress = originalAddress ? originalAddress : addr;
|
||||||
});
|
}
|
||||||
|
|
||||||
|
if (coin) {
|
||||||
|
params.coin = coin;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (noPrefixInAddress) {
|
||||||
|
params.noPrefixInAddress = noPrefixInAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (serviceId) {
|
||||||
|
params.thirdParty = [];
|
||||||
|
params.thirdParty.id = serviceId;
|
||||||
|
params.thirdParty.data = serviceData;
|
||||||
|
sendFlowService.pushState(params);
|
||||||
|
$state.transitionTo('tabs.send.amount');
|
||||||
} else {
|
} else {
|
||||||
var params = {
|
sendFlowService.pushState(params);
|
||||||
toAddress: addr,
|
$state.transitionTo('tabs.send.origin');
|
||||||
coin: coin,
|
|
||||||
displayAddress: originalAddress ? originalAddress : addr,
|
|
||||||
noPrefix: noPrefixInAddress
|
|
||||||
};
|
|
||||||
if (shapeshiftData) {
|
|
||||||
params['fromWalletId'] = shapeshiftData.fromWalletId;
|
|
||||||
params['minShapeshiftAmount'] = shapeshiftData.minAmount;
|
|
||||||
params['maxShapeshiftAmount'] = shapeshiftData.maxAmount;
|
|
||||||
params['shapeshiftOrderId'] = shapeshiftData.orderId;
|
|
||||||
}
|
|
||||||
$state.transitionTo('tabs.send.amount', params);
|
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
@ -112,15 +118,20 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
|
||||||
var coin = data.indexOf('bitcoincash') >= 0 ? 'bch' : 'btc';
|
var coin = data.indexOf('bitcoincash') >= 0 ? 'bch' : 'btc';
|
||||||
data = decodeURIComponent(data.replace(/bitcoin(cash)?:\?r=/, ''));
|
data = decodeURIComponent(data.replace(/bitcoin(cash)?:\?r=/, ''));
|
||||||
if (coin == 'bch') {
|
if (coin == 'bch') {
|
||||||
payproService.getPayProDetailsViaHttp(data, function(err, details) {
|
payproService.getPayProDetailsViaHttp(data, function onGetPayProDetailsViaHttp(err, details) {
|
||||||
if (err) {
|
if (err) {
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), err)
|
var message = err.toString();
|
||||||
|
if (typeof err.data === 'string') {
|
||||||
|
// i.e. 'This invoice is no longer accepting payments'
|
||||||
|
message = gettextCatalog.getString(err.data);
|
||||||
|
}
|
||||||
|
popupService.showAlert(gettextCatalog.getString('Error'), message)
|
||||||
} else {
|
} else {
|
||||||
handlePayPro(createBchPayProObject(details), coin);
|
handlePayPro(details, coin);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
payproService.getPayProDetails(data, coin, function(err, details) {
|
payproService.getPayProDetails(data, coin, function onGetPayProDetails(err, details) {
|
||||||
if (err) {
|
if (err) {
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -146,12 +157,12 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
|
||||||
if (parsed.r) {
|
if (parsed.r) {
|
||||||
payproService.getPayProDetails(parsed.r, coin, function(err, details) {
|
payproService.getPayProDetails(parsed.r, coin, function(err, details) {
|
||||||
if (err) {
|
if (err) {
|
||||||
if (addr && amount) goSend(addr, amount, message, coin, shapeshiftData);
|
if (addr && amount) goSend(addr, amount, message, coin, serviceId, serviceData);
|
||||||
else popupService.showAlert(gettextCatalog.getString('Error'), err);
|
else popupService.showAlert(gettextCatalog.getString('Error'), err);
|
||||||
} else handlePayPro(details, coin);
|
} else handlePayPro(details, coin);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
goSend(addr, amount, message, coin, shapeshiftData);
|
goSend(addr, amount, message, coin, serviceId, serviceData);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
// Cash URI
|
// Cash URI
|
||||||
|
|
@ -169,14 +180,14 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
|
||||||
payproService.getPayProDetails(parsed.r, coin, function(err, details) {
|
payproService.getPayProDetails(parsed.r, coin, function(err, details) {
|
||||||
if (err) {
|
if (err) {
|
||||||
if (addr && amount)
|
if (addr && amount)
|
||||||
goSend(addr, amount, message, coin, shapeshiftData);
|
goSend(addr, amount, message, coin, serviceId, serviceData);
|
||||||
else
|
else
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
||||||
}
|
}
|
||||||
handlePayPro(details, coin);
|
handlePayPro(details, coin);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
goSend(addr, amount, message, coin, shapeshiftData);
|
goSend(addr, amount, message, coin, serviceId, serviceData);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
@ -212,14 +223,14 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
|
||||||
payproService.getPayProDetails(parsed.r, coin, function(err, details) {
|
payproService.getPayProDetails(parsed.r, coin, function(err, details) {
|
||||||
if (err) {
|
if (err) {
|
||||||
if (addr && amount)
|
if (addr && amount)
|
||||||
goSend(addr, amount, message, coin, shapeshiftData);
|
goSend(addr, amount, message, coin, serviceId, serviceData);
|
||||||
else
|
else
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
||||||
}
|
}
|
||||||
handlePayPro(details, coin);
|
handlePayPro(details, coin);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
goSend(addr, amount, message, coin, shapeshiftData);
|
goSend(addr, amount, message, coin, serviceId, serviceData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
@ -228,10 +239,12 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
|
||||||
} else if (/^https?:\/\//.test(data)) {
|
} else if (/^https?:\/\//.test(data)) {
|
||||||
payproService.getPayProDetails(data, coin, function(err, details) {
|
payproService.getPayProDetails(data, coin, function(err, details) {
|
||||||
if (err) {
|
if (err) {
|
||||||
root.showMenu({
|
if ($state.includes('tabs.scan')) {
|
||||||
data: data,
|
root.showMenu({
|
||||||
type: 'url'
|
data: data,
|
||||||
});
|
type: 'url'
|
||||||
|
});
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
handlePayPro(details);
|
handlePayPro(details);
|
||||||
|
|
@ -375,55 +388,85 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
|
||||||
'notify': $state.current.name == 'tabs.send' ? false : true
|
'notify': $state.current.name == 'tabs.send' ? false : true
|
||||||
});
|
});
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$state.transitionTo('tabs.send.amount', {
|
var stateParams = {
|
||||||
toAddress: toAddress,
|
toAddress: toAddress,
|
||||||
|
displayAddress: toAddress,
|
||||||
coin: coin,
|
coin: coin,
|
||||||
noPrefix: 1
|
noPrefix: 1
|
||||||
});
|
};
|
||||||
|
sendFlowService.pushState(stateParams);
|
||||||
|
$state.transitionTo('tabs.send.origin');
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
function createBchPayProObject(payProData) {
|
function handlePayPro(payProData, coin) {
|
||||||
var displayAddr = payProData.outputs[0].address;
|
|
||||||
var toAddr = bitcoinCashJsService.readAddress('bitcoincash:' + displayAddr).legacy;
|
console.log(payProData);
|
||||||
return {
|
|
||||||
amount: payProData.outputs[0].amount,
|
var toAddr = payProData.toAddress;
|
||||||
|
var amount = payProData.amount;
|
||||||
|
var paymentUrl = payProData.url;
|
||||||
|
var expires = payProData.expires;
|
||||||
|
var time = payProData.time;
|
||||||
|
|
||||||
|
if (coin === 'bch') {
|
||||||
|
var displayAddr = payProData.outputs[0].address;
|
||||||
|
toAddr = bitcoinCashJsService.readAddress('bitcoincash:' + displayAddr).legacy;
|
||||||
|
amount = payProData.outputs[0].amount;
|
||||||
|
paymentUrl = payProData.paymentUrl;
|
||||||
|
expires = Math.floor(new Date(expires).getTime() / 1000)
|
||||||
|
time = Math.ceil(new Date(time).getTime() / 1000)
|
||||||
|
}
|
||||||
|
|
||||||
|
var name = payProData.domain;
|
||||||
|
|
||||||
|
if (payProData.memo.indexOf('eGifter') > -1) {
|
||||||
|
name = 'eGifter'
|
||||||
|
} else if (paymentUrl.indexOf('https://bitpay.com') > -1) {
|
||||||
|
name = 'BitPay';
|
||||||
|
}
|
||||||
|
|
||||||
|
var thirdPartyData = {
|
||||||
|
id: 'bip70',
|
||||||
|
amount: amount,
|
||||||
caTrusted: true,
|
caTrusted: true,
|
||||||
domain: 'bitpay.com',
|
name: name,
|
||||||
expires: Math.floor(new Date(payProData.expires).getTime() / 1000),
|
domain: payProData.domain,
|
||||||
|
expires: expires,
|
||||||
memo: payProData.memo,
|
memo: payProData.memo,
|
||||||
network: 'livenet',
|
network: 'livenet',
|
||||||
requiredFeeRate: payProData.requiredFeeRate,
|
requiredFeeRate: payProData.requiredFeeRate,
|
||||||
selfSigned: 0,
|
selfSigned: 0,
|
||||||
time: Math.ceil(new Date(payProData.time).getTime() / 1000),
|
time: time,
|
||||||
displayAddress: displayAddr,
|
displayAddress: displayAddr,
|
||||||
toAddress: toAddr,
|
toAddress: toAddr,
|
||||||
url: payProData.paymentUrl,
|
url: paymentUrl,
|
||||||
verified: true
|
verified: true
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
function handlePayPro(payProDetails, coin) {
|
|
||||||
var stateParams = {
|
var stateParams = {
|
||||||
toAmount: payProDetails.amount,
|
amount: thirdPartyData.amount,
|
||||||
toAddress: payProDetails.toAddress,
|
toAddress: thirdPartyData.toAddress,
|
||||||
description: payProDetails.memo,
|
|
||||||
paypro: payProDetails,
|
|
||||||
coin: coin,
|
coin: coin,
|
||||||
|
thirdParty: thirdPartyData
|
||||||
};
|
};
|
||||||
|
|
||||||
// fee
|
// fee
|
||||||
if (payProDetails.requiredFeeRate) {
|
if (thirdPartyData.requiredFeeRate) {
|
||||||
stateParams.requiredFeeRate = payProDetails.requiredFeeRate * 1024;
|
stateParams.requiredFeeRate = thirdPartyData.requiredFeeRate * 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This does not make sense, thirdPartyData gets added by stateParams below
|
||||||
|
//sendFlowService.pushState(thirdPartyData);
|
||||||
|
|
||||||
scannerService.pausePreview();
|
scannerService.pausePreview();
|
||||||
$state.go('tabs.send', {}, {
|
$state.go('tabs.send', {}, {
|
||||||
'reload': true,
|
'reload': true,
|
||||||
'notify': $state.current.name == 'tabs.send' ? false : true
|
'notify': $state.current.name == 'tabs.send' ? false : true
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$state.transitionTo('tabs.send.confirm', stateParams);
|
sendFlowService.pushState(stateParams); // Need to do more here
|
||||||
|
$state.transitionTo('tabs.send.origin');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
78
src/js/services/paypro.service.js
Normal file
78
src/js/services/paypro.service.js
Normal file
|
|
@ -0,0 +1,78 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
// For BIP70 Payment Protocol
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('copayApp.services')
|
||||||
|
.factory('payproService', payproService);
|
||||||
|
|
||||||
|
function payproService(gettextCatalog, $http, $log, ongoingProcess, platformInfo, profileService) {
|
||||||
|
|
||||||
|
var service = {
|
||||||
|
getPayProDetails: getPayProDetails,
|
||||||
|
getPayProDetailsViaHttp: getPayProDetailsViaHttp,
|
||||||
|
broadcastBchTx: broadcastBchTx
|
||||||
|
};
|
||||||
|
|
||||||
|
return service;
|
||||||
|
|
||||||
|
function getPayProDetails(uri, coin, cb, disableLoader) {
|
||||||
|
if (!cb) cb = function() {};
|
||||||
|
|
||||||
|
var wallet = profileService.getWallets({
|
||||||
|
onlyComplete: true,
|
||||||
|
coin: coin
|
||||||
|
})[0];
|
||||||
|
|
||||||
|
if (!wallet) return cb();
|
||||||
|
|
||||||
|
if (platformInfo.isChromeApp) {
|
||||||
|
return cb(gettextCatalog.getString('Payment Protocol not supported on Chrome App'));
|
||||||
|
}
|
||||||
|
|
||||||
|
$log.debug('Fetch PayPro Request...', uri);
|
||||||
|
|
||||||
|
if (!disableLoader) ongoingProcess.set('fetchingPayPro', true);
|
||||||
|
|
||||||
|
wallet.fetchPayPro({
|
||||||
|
payProUrl: uri,
|
||||||
|
}, function(err, paypro) {
|
||||||
|
if (!disableLoader) ongoingProcess.set('fetchingPayPro', false);
|
||||||
|
if (err) return cb(gettextCatalog.getString('Could Not Fetch Payment: Check if it is still valid'));
|
||||||
|
else if (!paypro.verified) {
|
||||||
|
$log.warn('Failed to verify payment protocol signatures');
|
||||||
|
return cb(gettextCatalog.getString('Payment Protocol Invalid'));
|
||||||
|
}
|
||||||
|
return cb(null, paypro);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function getPayProDetailsViaHttp(uri, cb) {
|
||||||
|
var config = {
|
||||||
|
headers: {'Accept': 'application/payment-request'}
|
||||||
|
};
|
||||||
|
$http.get(uri, config).then(function onGetPayProDetailsSuccess(response) {
|
||||||
|
return cb(null, response.data);
|
||||||
|
}, function onGetPayProDetailsError(error) {
|
||||||
|
return cb(error, null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function broadcastBchTx(signedTxp, cb) {
|
||||||
|
var config = {
|
||||||
|
headers: {'Content-Type': 'application/payment'}
|
||||||
|
};
|
||||||
|
|
||||||
|
var data = {
|
||||||
|
currency: 'BCH',
|
||||||
|
transactions: [signedTxp.raw]
|
||||||
|
};
|
||||||
|
|
||||||
|
$http.post(signedTxp.payProUrl, data, config).then(function(response) {
|
||||||
|
signedTxp.response = response.data;
|
||||||
|
return cb(null, signedTxp);
|
||||||
|
}, function(error) {
|
||||||
|
return cb(error.data, null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,69 +0,0 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
angular.module('copayApp.services').factory('payproService',
|
|
||||||
function(profileService, platformInfo, gettextCatalog, ongoingProcess, $log, $http) {
|
|
||||||
|
|
||||||
var ret = {};
|
|
||||||
|
|
||||||
ret.getPayProDetails = function(uri, coin, cb, disableLoader) {
|
|
||||||
if (!cb) cb = function() {};
|
|
||||||
|
|
||||||
var wallet = profileService.getWallets({
|
|
||||||
onlyComplete: true,
|
|
||||||
coin: coin
|
|
||||||
})[0];
|
|
||||||
|
|
||||||
if (!wallet) return cb();
|
|
||||||
|
|
||||||
if (platformInfo.isChromeApp) {
|
|
||||||
return cb(gettextCatalog.getString('Payment Protocol not supported on Chrome App'));
|
|
||||||
}
|
|
||||||
|
|
||||||
$log.debug('Fetch PayPro Request...', uri);
|
|
||||||
|
|
||||||
if (!disableLoader) ongoingProcess.set('fetchingPayPro', true);
|
|
||||||
|
|
||||||
wallet.fetchPayPro({
|
|
||||||
payProUrl: uri,
|
|
||||||
}, function(err, paypro) {
|
|
||||||
if (!disableLoader) ongoingProcess.set('fetchingPayPro', false);
|
|
||||||
if (err) return cb(gettextCatalog.getString('Could Not Fetch Payment: Check if it is still valid'));
|
|
||||||
else if (!paypro.verified) {
|
|
||||||
$log.warn('Failed to verify payment protocol signatures');
|
|
||||||
return cb(gettextCatalog.getString('Payment Protocol Invalid'));
|
|
||||||
}
|
|
||||||
return cb(null, paypro);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
ret.getPayProDetailsViaHttp = function(uri, cb) {
|
|
||||||
var config = {
|
|
||||||
headers: {'Accept': 'application/payment-request'}
|
|
||||||
};
|
|
||||||
$http.get(uri, config).then(function(response) {
|
|
||||||
return cb(null, response.data);
|
|
||||||
}, function(error) {
|
|
||||||
return cb(error, null);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
ret.broadcastBchTx = function(signedTxp, cb) {
|
|
||||||
var config = {
|
|
||||||
headers: {'Content-Type': 'application/payment'}
|
|
||||||
};
|
|
||||||
|
|
||||||
var data = {
|
|
||||||
currency: 'BCH',
|
|
||||||
transactions: [signedTxp.raw]
|
|
||||||
};
|
|
||||||
|
|
||||||
$http.post(signedTxp.payProUrl, data, config).then(function(response) {
|
|
||||||
signedTxp.response = response.data;
|
|
||||||
return cb(null, signedTxp);
|
|
||||||
}, function(error) {
|
|
||||||
return cb(error.data, null);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
});
|
|
||||||
|
|
@ -427,6 +427,15 @@ angular.module('copayApp.services')
|
||||||
}, function(err, secret) {
|
}, function(err, secret) {
|
||||||
if (err) return bwcError.cb(err, gettextCatalog.getString('Error creating wallet'), cb);
|
if (err) return bwcError.cb(err, gettextCatalog.getString('Error creating wallet'), cb);
|
||||||
|
|
||||||
|
var channel = "ga";
|
||||||
|
if (platformInfo.isCordova) {
|
||||||
|
channel = "firebase";
|
||||||
|
}
|
||||||
|
var log = new window.BitAnalytics.LogEvent("wallet_created", [{
|
||||||
|
"coin": opts.coin
|
||||||
|
}], [channel]);
|
||||||
|
window.BitAnalytics.LogEventHandlers.postEvent(log);
|
||||||
|
|
||||||
return cb(null, walletClient, secret);
|
return cb(null, walletClient, secret);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -838,6 +847,13 @@ angular.module('copayApp.services')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (opts.hasNoFunds) {
|
||||||
|
ret = lodash.filter(ret, function(w) {
|
||||||
|
if (!w.status) return;
|
||||||
|
return (w.status.availableBalanceSat === 0);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (opts.minAmount) {
|
if (opts.minAmount) {
|
||||||
ret = lodash.filter(ret, function(w) {
|
ret = lodash.filter(ret, function(w) {
|
||||||
if (!w.status) return;
|
if (!w.status) return;
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,7 @@ angular.module('copayApp.services').service('scannerService', function($log, $ti
|
||||||
_completeInitialization(status, callback);
|
_completeInitialization(status, callback);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
isAvailable = true; // XX SP: Availability can change after permissions are granted after being denied.
|
||||||
_completeInitialization(status, callback);
|
_completeInitialization(status, callback);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
describe('secureStorageService in browser', function(){
|
xdescribe('secureStorageService in browser', function(){
|
||||||
var localStorage,
|
var localStorage,
|
||||||
sss;
|
sss;
|
||||||
|
|
||||||
|
|
@ -100,7 +100,7 @@ describe('secureStorageService in browser', function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
describe('secureStorageService on desktop', function(){
|
xdescribe('secureStorageService on desktop', function(){
|
||||||
var desktopSss,
|
var desktopSss,
|
||||||
sss;
|
sss;
|
||||||
|
|
||||||
|
|
@ -202,7 +202,7 @@ describe('secureStorageService on desktop', function(){
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('secureStorageService on mobile', function(){
|
xdescribe('secureStorageService on mobile', function(){
|
||||||
var mobileSss,
|
var mobileSss,
|
||||||
sss;
|
sss;
|
||||||
|
|
||||||
|
|
|
||||||
103
src/js/services/sendFlowService.js
Normal file
103
src/js/services/sendFlowService.js
Normal file
|
|
@ -0,0 +1,103 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
(function(){
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('copayApp.services')
|
||||||
|
.factory('sendFlowService', sendFlowService);
|
||||||
|
|
||||||
|
function sendFlowService($log) {
|
||||||
|
|
||||||
|
var service = {
|
||||||
|
// A separate state variable so we can ensure it is cleared of everything,
|
||||||
|
// even other properties added that this service does not know about. (such as "coin")
|
||||||
|
state: {
|
||||||
|
amount: '',
|
||||||
|
displayAddress: null,
|
||||||
|
fromWalletId: '',
|
||||||
|
sendMax: false,
|
||||||
|
thirdParty: null,
|
||||||
|
toAddress: '',
|
||||||
|
toWalletId: ''
|
||||||
|
},
|
||||||
|
previousStates: [],
|
||||||
|
|
||||||
|
// Functions
|
||||||
|
clear: clear,
|
||||||
|
getStateClone: getStateClone,
|
||||||
|
map: map,
|
||||||
|
popState: popState,
|
||||||
|
pushState: pushState,
|
||||||
|
startSend: startSend
|
||||||
|
};
|
||||||
|
|
||||||
|
return service;
|
||||||
|
|
||||||
|
function clear() {
|
||||||
|
console.log("sendFlow clear()");
|
||||||
|
clearCurrent();
|
||||||
|
service.previousStates = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearCurrent() {
|
||||||
|
console.log("sendFlow clearCurrent()");
|
||||||
|
service.state = {
|
||||||
|
amount: '',
|
||||||
|
displayAddress: null,
|
||||||
|
fromWalletId: '',
|
||||||
|
sendMax: false,
|
||||||
|
thirdParty: null,
|
||||||
|
toAddress: '',
|
||||||
|
toWalletId: ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handy for debugging
|
||||||
|
*/
|
||||||
|
function getStateClone() {
|
||||||
|
var currentState = {};
|
||||||
|
Object.keys(service.state).forEach(function forCurrentParam(key) {
|
||||||
|
if (typeof service.state[key] !== 'function' && key !== 'previousStates') {
|
||||||
|
currentState[key] = service.state[key];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return currentState;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears all previous state
|
||||||
|
*/
|
||||||
|
function startSend(params) {
|
||||||
|
console.log('startSend()');
|
||||||
|
clear();
|
||||||
|
map(params);
|
||||||
|
}
|
||||||
|
|
||||||
|
function map(params) {
|
||||||
|
Object.keys(params).forEach(function forNewParam(key) {
|
||||||
|
service.state[key] = params[key];
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
function popState() {
|
||||||
|
console.log('sendFlow pop');
|
||||||
|
if (service.previousStates.length) {
|
||||||
|
var params = service.previousStates.pop();
|
||||||
|
clearCurrent();
|
||||||
|
map(params);
|
||||||
|
} else {
|
||||||
|
clear();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
function pushState(params) {
|
||||||
|
console.log('sendFlow push');
|
||||||
|
var currentParams = getStateClone();
|
||||||
|
service.previousStates.push(currentParams);
|
||||||
|
clearCurrent();
|
||||||
|
map(params);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
})();
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
angular.module('copayApp.services').factory('servicesService', function(configService, $log, lodash) {
|
angular.module('copayApp.services').factory('servicesService', function(configService, $log, lodash) {
|
||||||
var root = {};
|
var root = {};
|
||||||
var services = [];
|
var services = [{
|
||||||
|
name: 'shapeshift',
|
||||||
|
title: 'Shapeshift',
|
||||||
|
icon: 'icon-shapeshift',
|
||||||
|
sref: 'tabs.shapeshift',
|
||||||
|
}];
|
||||||
|
|
||||||
root.register = function(serviceInfo) {
|
root.register = function(serviceInfo) {
|
||||||
$log.info('Adding Services entry:' + serviceInfo.name);
|
$log.info('Adding Services entry:' + serviceInfo.name);
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,141 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
angular.module('copayApp.services').factory('shapeshiftService', function($http, $log, lodash, moment, storageService, configService, platformInfo, servicesService) {
|
|
||||||
|
angular.module('copayApp.services').factory('shapeshiftService', function ($http, $interval, $log, lodash, moment, ongoingProcess, shapeshiftApiService, storageService, configService, incomingData, platformInfo, servicesService) {
|
||||||
var root = {};
|
var root = {};
|
||||||
var credentials = {};
|
root.ShiftState = 'Shift';
|
||||||
|
root.coinIn = '';
|
||||||
|
root.coinOut = '';
|
||||||
|
root.withdrawalAddress = '';
|
||||||
|
root.returnAddress = '';
|
||||||
|
root.amount = '';
|
||||||
|
root.marketData = {};
|
||||||
|
|
||||||
var servicesItem = {
|
root.getMarketDataIn = function (coin) {
|
||||||
name: 'shapeshift',
|
if (coin === root.coinOut) return root.getMarketData(root.coinOut, root.coinIn);
|
||||||
title: 'Shapeshift',
|
return root.getMarketData(coin, root.coinOut);
|
||||||
icon: 'icon-shapeshift',
|
};
|
||||||
sref: 'tabs.shapeshift',
|
root.getMarketDataOut = function (coin) {
|
||||||
|
if (coin === root.coinIn) return root.getMarketData(root.coinOut, root.coinIn);
|
||||||
|
return root.getMarketData(root.coinIn, coin);
|
||||||
|
};
|
||||||
|
root.getMarketData = function (coinIn, coinOut, cb) {
|
||||||
|
root.coinIn = coinIn;
|
||||||
|
root.coinOut = coinOut;
|
||||||
|
if (root.coinIn === undefined || root.coinOut === undefined) return;
|
||||||
|
shapeshiftApiService
|
||||||
|
.marketInfo(root.coinIn, root.coinOut)
|
||||||
|
.then(function (marketData) {
|
||||||
|
root.marketData = marketData;
|
||||||
|
root.rateString = root.marketData.rate.toString() + ' ' + coinOut.toUpperCase() + '/' + coinIn.toUpperCase();
|
||||||
|
if (cb) {
|
||||||
|
cb(marketData);
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var register = function() {
|
/*shapeshiftApiService.coins().then(function(coins){
|
||||||
servicesService.register(servicesItem);
|
root.coins = coins;
|
||||||
|
root.coinIn = coins['BTC'].symbol;
|
||||||
|
root.coinOut = coins['BCH'].symbol;
|
||||||
|
root.getMarketData(root.coinIn, root.coinOut);
|
||||||
|
});*/
|
||||||
|
|
||||||
|
root.coins = {
|
||||||
|
'BTC': {name: 'Bitcoin', symbol: 'BTC'},
|
||||||
|
'BCH': {name: 'Bitcoin Cash', symbol: 'BCH'}
|
||||||
|
};
|
||||||
|
|
||||||
|
function checkForError(data) {
|
||||||
|
if (data.err) return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
root.shiftIt = function (coinIn, coinOut, withdrawalAddress, returnAddress, cb) {
|
||||||
|
ongoingProcess.set('connectingShapeshift', true);
|
||||||
|
root.withdrawalAddress = withdrawalAddress;
|
||||||
|
root.returnAddress = returnAddress;
|
||||||
|
root.coinIn = coinIn;
|
||||||
|
root.coinOut = coinOut;
|
||||||
|
shapeshiftApiService.ValidateAddress(withdrawalAddress, coinOut).then(function (valid) {
|
||||||
|
var tx = ShapeShift();
|
||||||
|
var coin;
|
||||||
|
console.log("Starting");
|
||||||
|
tx.then(function (txData) {
|
||||||
|
console.log("Got txData", txData);
|
||||||
|
if (txData['fixedTxData']) {
|
||||||
|
txData = txData.fixedTxData;
|
||||||
|
if (checkForError(txData)) return cb(txData.err);
|
||||||
|
//console.log(txData)
|
||||||
|
var coinPair = txData.pair.split('_');
|
||||||
|
txData.depositType = coinPair[0].toUpperCase();
|
||||||
|
txData.withdrawalType = coinPair[1].toUpperCase();
|
||||||
|
coin = root.coins[txData.depositType].name.toLowerCase();
|
||||||
|
|
||||||
|
txData.depositQR = coin + ":" + txData.deposit + "?amount=" + txData.depositAmount;
|
||||||
|
|
||||||
|
root.txFixedPending = true;
|
||||||
|
|
||||||
|
} else if (txData['normalTxData']) {
|
||||||
|
txData = txData.normalTxData;
|
||||||
|
if (checkForError(txData)) return cb(txData.err);
|
||||||
|
coin = root.coins[txData.depositType.toUpperCase()].name.toLowerCase();
|
||||||
|
txData.depositQR = coin + ":" + txData.deposit;
|
||||||
|
} else if (txData['cancelTxData']) {
|
||||||
|
txData = txData.cancelTxData;
|
||||||
|
if (checkForError(txData)) return cb(txData.err);
|
||||||
|
if (root.txFixedPending) {
|
||||||
|
root.txFixedPending = false;
|
||||||
|
}
|
||||||
|
root.ShiftState = 'Shift';
|
||||||
|
}
|
||||||
|
root.depositInfo = txData;
|
||||||
|
//console.log(root.marketData);
|
||||||
|
//console.log(root.depositInfo);
|
||||||
|
var sendAddress = txData.depositQR;
|
||||||
|
if (sendAddress && sendAddress.indexOf('bitcoin cash') >= 0)
|
||||||
|
sendAddress = sendAddress.replace('bitcoin cash', 'bitcoincash');
|
||||||
|
|
||||||
|
ongoingProcess.set('connectingShapeshift', false);
|
||||||
|
|
||||||
|
root.ShiftState = 'Cancel';
|
||||||
|
//root.GetStatus();
|
||||||
|
//root.txInterval=$interval(root.GetStatus, 8000);
|
||||||
|
|
||||||
|
var shapeshiftData = {
|
||||||
|
coinIn: coinIn,
|
||||||
|
coinOut: coinOut,
|
||||||
|
toWalletId: root.toWalletId,
|
||||||
|
minAmount: root.marketData.minimum,
|
||||||
|
maxAmount: root.marketData.maxLimit,
|
||||||
|
orderId: root.depositInfo.orderId,
|
||||||
|
toAddress: txData.deposit
|
||||||
|
};
|
||||||
|
//
|
||||||
|
// if (incomingData.redir(sendAddress, 'shapeshift', shapeshiftData)) {
|
||||||
|
ongoingProcess.set('connectingShapeshift', false);
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
cb(null, shapeshiftData);
|
||||||
|
});
|
||||||
|
})
|
||||||
|
};
|
||||||
|
|
||||||
|
function ShapeShift() {
|
||||||
|
if (parseFloat(root.amount) > 0) return shapeshiftApiService.FixedAmountTx(root);
|
||||||
|
return shapeshiftApiService.NormalTx(root);
|
||||||
|
}
|
||||||
|
|
||||||
|
root.GetStatus = function () {
|
||||||
|
var address = root.depositInfo.deposit
|
||||||
|
shapeshiftApiService.GetStatusOfDepositToAddress(address).then(function (data) {
|
||||||
|
root.DepositStatus = data;
|
||||||
|
if (root.DepositStatus.status === 'complete') {
|
||||||
|
$interval.cancel(root.txInterval);
|
||||||
|
root.depositInfo = null;
|
||||||
|
root.ShiftState = 'Shift'
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
register();
|
|
||||||
return root;
|
return root;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
44
src/js/services/soundService.js
Normal file
44
src/js/services/soundService.js
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular.module('copayApp.services').service('soundService', function($log, $timeout, platformInfo, configService) {
|
||||||
|
|
||||||
|
var root = {};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Play a sound (when enabled in the configuration) using the Cordova Media-plugin (on Mobile) or html5-audio (on Desktop) relative to the www-root
|
||||||
|
* Make sure there is a .ogg file as well for NW.js (desktop) implementation
|
||||||
|
* @param soundFile
|
||||||
|
*/
|
||||||
|
root.play = function(soundFile) {
|
||||||
|
configService.whenAvailable(function(config) {
|
||||||
|
if (config.soundsEnabled) {
|
||||||
|
if (platformInfo.isCordova) {
|
||||||
|
|
||||||
|
if (platformInfo.isAndroid) {
|
||||||
|
var p = window.location.pathname;
|
||||||
|
var device_path = p.substring(0, p.lastIndexOf('/'));
|
||||||
|
soundFile = device_path + '/' + soundFile;
|
||||||
|
}
|
||||||
|
|
||||||
|
var audio = new Media(soundFile,
|
||||||
|
function () {
|
||||||
|
$log.debug("playAudio(bch_sent):Audio Success");
|
||||||
|
},
|
||||||
|
function (err) {
|
||||||
|
$log.debug("playAudio():Audio Error: " + err);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
audio.play({playAudioWhenScreenIsLocked: false}); // XX SP: "Locked" is also the mute switch in iOS
|
||||||
|
} else {
|
||||||
|
if (platformInfo.isNW) {
|
||||||
|
soundFile = soundFile.substring(0, soundFile.lastIndexOf('.')) + ".ogg";
|
||||||
|
$log.debug("Playing .ogg file ("+soundFile+"), as NW.js has no mp3 support");
|
||||||
|
}
|
||||||
|
new Audio(soundFile).play();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
return root;
|
||||||
|
});
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
angular.module('copayApp.services')
|
angular.module('copayApp.services')
|
||||||
.factory('storageService', function(appConfigService, logHeader, fileStorageService, localStorageService, sjcl, $log, lodash, platformInfo, secureStorageService, $timeout) {
|
.factory('storageService', function(appConfigService, logHeader, fileStorageService, localStorageService, sjcl, $log, lodash, platformInfo, $timeout) {
|
||||||
|
|
||||||
var root = {};
|
var root = {};
|
||||||
var storage;
|
var storage;
|
||||||
|
|
@ -121,11 +121,7 @@ angular.module('copayApp.services')
|
||||||
|
|
||||||
root.storeProfile = function(profile, cb) {
|
root.storeProfile = function(profile, cb) {
|
||||||
var profileString = profile.toObj();
|
var profileString = profile.toObj();
|
||||||
if (platformInfo.isNW) {
|
storage.set('profile', profileString, cb);
|
||||||
storage.set('profile', profileString, cb);
|
|
||||||
} else {
|
|
||||||
secureStorageService.set('profile', profileString, cb);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -205,59 +201,22 @@ angular.module('copayApp.services')
|
||||||
* @param {getProfileCallback} cb
|
* @param {getProfileCallback} cb
|
||||||
*/
|
*/
|
||||||
root.getProfile = function(cb) {
|
root.getProfile = function(cb) {
|
||||||
if (platformInfo.isNW) {
|
storage.get('profile', function(getErr, getStr) {
|
||||||
storage.get('profile', function(getErr, getStr) {
|
if (getErr) {
|
||||||
_onOldProfileRetrieved(getErr, getStr, cb);
|
cb(getErr, null);
|
||||||
});
|
return;
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
secureStorageService.get('profile', function(secureErr, secureStr) {
|
|
||||||
var secureProfile;
|
|
||||||
var oldProfile;
|
|
||||||
|
|
||||||
if (secureErr) {
|
|
||||||
return cb(secureErr, null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (secureStr) {
|
if (!getStr) {
|
||||||
try {
|
cb(null, null);
|
||||||
secureProfile = Profile.fromString(secureStr);
|
return;
|
||||||
$log.debug('profile: ' + JSON.stringify(secureProfile));
|
|
||||||
} catch (e) {
|
|
||||||
$log.error(e);
|
|
||||||
return cb(e, null);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
storage.get('profile', function(getErr, getStr) {
|
var profile = Profile.fromString(getStr);
|
||||||
_onOldProfileRetrieved(getErr, getStr, function(oldErr, oldProfile){
|
cb(null, profile);
|
||||||
if (oldErr) {
|
|
||||||
return cb(oldErr, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!oldProfile) {
|
|
||||||
if (secureProfile) {
|
|
||||||
return cb(null, secureProfile);
|
|
||||||
} else {
|
|
||||||
// No profiles found. No errors either.
|
|
||||||
return cb(null, null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_migrateProfiles(oldProfile, secureProfile, cb);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
root.setFeedbackInfo = function(feedbackValues, cb) {
|
|
||||||
storage.set('feedback', feedbackValues, cb);
|
|
||||||
};
|
|
||||||
|
|
||||||
root.getFeedbackInfo = function(cb) {
|
|
||||||
storage.get('feedback', cb);
|
|
||||||
};
|
|
||||||
|
|
||||||
root.storeFocusedWalletId = function(id, cb) {
|
root.storeFocusedWalletId = function(id, cb) {
|
||||||
storage.set('focusedWalletId', id || '', cb);
|
storage.set('focusedWalletId', id || '', cb);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -414,7 +414,7 @@ xdescribe('storageService on desktop', function(){
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('storageService on desktop using local storage', function(){
|
xdescribe('storageService on desktop using local storage', function(){
|
||||||
var appConfig,
|
var appConfig,
|
||||||
localStorageServiceMock,
|
localStorageServiceMock,
|
||||||
log,
|
log,
|
||||||
|
|
@ -614,7 +614,7 @@ describe('storageService on desktop using local storage', function(){
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('storageService on mobile', function(){
|
xdescribe('storageService on mobile', function(){
|
||||||
var appConfig,
|
var appConfig,
|
||||||
expectedOldProfileSavedToSecure,
|
expectedOldProfileSavedToSecure,
|
||||||
expectedOldProfileMergedWithSecure,
|
expectedOldProfileMergedWithSecure,
|
||||||
|
|
|
||||||
|
|
@ -72,11 +72,19 @@ angular.module('copayApp.services').factory('txFormatService', function($filter,
|
||||||
var config = configService.getSync().wallet.settings;
|
var config = configService.getSync().wallet.settings;
|
||||||
|
|
||||||
var val = function() {
|
var val = function() {
|
||||||
var v1 = parseFloat((rateService.toFiat(satoshis, config.alternativeIsoCode, coin)).toFixed(2));
|
var fiatAmount = rateService.toFiat(satoshis, config.alternativeIsoCode, coin);
|
||||||
v1 = $filter('formatFiatAmount')(v1);
|
var roundedStr = fiatAmount.toFixed(2);
|
||||||
|
var roundedNum = parseFloat(roundedStr);
|
||||||
|
var subcent = roundedNum === 0 && fiatAmount > 0;
|
||||||
|
var lessThanPrefix = '';
|
||||||
|
if (subcent) {
|
||||||
|
roundedNum = 0.01;
|
||||||
|
lessThanPrefix = '< ';
|
||||||
|
}
|
||||||
|
var v1 = $filter('formatFiatAmount')(roundedNum);
|
||||||
if (!v1) return null;
|
if (!v1) return null;
|
||||||
|
|
||||||
return v1 + ' ' + config.alternativeIsoCode;
|
return lessThanPrefix + v1 + ' ' + config.alternativeIsoCode;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Async version
|
// Async version
|
||||||
|
|
@ -193,7 +201,7 @@ angular.module('copayApp.services').factory('txFormatService', function($filter,
|
||||||
var alternativeIsoCode = config.alternativeIsoCode;
|
var alternativeIsoCode = config.alternativeIsoCode;
|
||||||
|
|
||||||
// If fiat currency
|
// If fiat currency
|
||||||
if (currency != 'BCH' && currency != 'BTC' && currency != 'sat') {
|
if (currency && currency.toUpperCase() != 'BCH' && currency.toUpperCase() != 'BTC' && currency != 'sat') {
|
||||||
amountUnitStr = $filter('formatFiatAmount')(amount) + ' ' + currency;
|
amountUnitStr = $filter('formatFiatAmount')(amount) + ' ' + currency;
|
||||||
amountSat = rateService.fromFiat(amount, currency, coin).toFixed(0);
|
amountSat = rateService.fromFiat(amount, currency, coin).toFixed(0);
|
||||||
} else if (currency == 'sat') {
|
} else if (currency == 'sat') {
|
||||||
|
|
|
||||||
68
src/js/services/txFormatService.spec.js
Normal file
68
src/js/services/txFormatService.spec.js
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
describe('txFormatService', function(){
|
||||||
|
var configServiceMock,
|
||||||
|
rateServiceMock,
|
||||||
|
txFormatService;
|
||||||
|
|
||||||
|
beforeEach(function(){
|
||||||
|
module('ngLodash');
|
||||||
|
module('bwcModule');
|
||||||
|
module('copayApp.filters');
|
||||||
|
module('copayApp.services');
|
||||||
|
|
||||||
|
configServiceMock = {
|
||||||
|
getSync: jasmine.createSpy()
|
||||||
|
};
|
||||||
|
|
||||||
|
rateServiceMock = {
|
||||||
|
isAvailable: jasmine.createSpy(),
|
||||||
|
toFiat: jasmine.createSpy()
|
||||||
|
};
|
||||||
|
|
||||||
|
module(function($provide) {
|
||||||
|
$provide.value('configService', configServiceMock);
|
||||||
|
$provide.value('rateService', rateServiceMock);
|
||||||
|
});
|
||||||
|
|
||||||
|
inject(function($injector){
|
||||||
|
txFormatService = $injector.get('txFormatService');
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
it('formatAlternativeStr 0.49 cents.', function() {
|
||||||
|
|
||||||
|
configServiceMock.getSync.and.returnValue({
|
||||||
|
wallet: {
|
||||||
|
settings: {
|
||||||
|
alternativeIsoCode: 'USD'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
rateServiceMock.isAvailable.and.returnValue(true);
|
||||||
|
rateServiceMock.toFiat.and.returnValue(0.00499);
|
||||||
|
|
||||||
|
var formatted = txFormatService.formatAlternativeStr('bch', 123);
|
||||||
|
|
||||||
|
expect(formatted).toBe('< 0.01 USD');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('formatAlternativeStr 0.5 cents.', function() {
|
||||||
|
|
||||||
|
configServiceMock.getSync.and.returnValue({
|
||||||
|
wallet: {
|
||||||
|
settings: {
|
||||||
|
alternativeIsoCode: 'USD'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
rateServiceMock.isAvailable.and.returnValue(true);
|
||||||
|
rateServiceMock.toFiat.and.returnValue(0.005);
|
||||||
|
|
||||||
|
var formatted = txFormatService.formatAlternativeStr('bch', 123);
|
||||||
|
|
||||||
|
expect(formatted).toBe('0.01 USD');
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
@ -343,21 +343,19 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
||||||
if (err) return cb(err);
|
if (err) return cb(err);
|
||||||
|
|
||||||
if (!txsFromServer.length)
|
if (!txsFromServer.length)
|
||||||
return cb();
|
return cb(null, []);
|
||||||
|
|
||||||
var res = lodash.takeWhile(txsFromServer, function(tx) {
|
return cb(null, txsFromServer);
|
||||||
return tx.txid != endingTxid;
|
|
||||||
});
|
|
||||||
|
|
||||||
return cb(null, res, res.length >= limit);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var removeAndMarkSoftConfirmedTx = function(txs) {
|
var removeAndMarkSoftConfirmedTx = function(txs) {
|
||||||
return lodash.filter(txs, function(tx) {
|
return lodash.filter(txs, function(tx) {
|
||||||
if (tx.confirmations >= root.SOFT_CONFIRMATION_LIMIT)
|
var isConfirm = (tx.confirmations >= root.SOFT_CONFIRMATION_LIMIT);
|
||||||
return tx;
|
if (!isConfirm) {
|
||||||
tx.recent = true;
|
tx.recent = true;
|
||||||
|
}
|
||||||
|
return isConfirm;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -437,12 +435,14 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
||||||
var endingTxid = confirmedTxs[0] ? confirmedTxs[0].txid : null;
|
var endingTxid = confirmedTxs[0] ? confirmedTxs[0].txid : null;
|
||||||
var endingTs = confirmedTxs[0] ? confirmedTxs[0].time : null;
|
var endingTs = confirmedTxs[0] ? confirmedTxs[0].time : null;
|
||||||
|
|
||||||
|
$log.debug('Confirmed TXs. Got:' + confirmedTxs.length + '/' + txsFromLocal.length);
|
||||||
|
|
||||||
// First update
|
// First update
|
||||||
progressFn(txsFromLocal, 0);
|
progressFn(txsFromLocal, 0);
|
||||||
wallet.completeHistory = txsFromLocal;
|
wallet.completeHistory = txsFromLocal;
|
||||||
|
|
||||||
function getNewTxs(newTxs, skip, next) {
|
function getNewTxs(newTxs, skip, next) {
|
||||||
getTxsFromServer(wallet, skip, endingTxid, requestLimit, function(err, res, shouldContinue) {
|
getTxsFromServer(wallet, skip, endingTxid, requestLimit, function(err, res) {
|
||||||
if (err) {
|
if (err) {
|
||||||
$log.warn(bwcError.msg(err, 'Server Error')); //TODO
|
$log.warn(bwcError.msg(err, 'Server Error')); //TODO
|
||||||
if (err instanceof errors.CONNECTION_ERROR || (err.message && err.message.match(/5../))) {
|
if (err instanceof errors.CONNECTION_ERROR || (err.message && err.message.match(/5../))) {
|
||||||
|
|
@ -454,7 +454,22 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
newTxs = newTxs.concat(processNewTxs(wallet, lodash.compact(res)));
|
// Check if new txs are founds, if yes, lets investigate in the 50 next
|
||||||
|
// To be sure we are not missing txs by sorting (maybe a new tx is after the "endingTxid"
|
||||||
|
var newDiscoveredTxs = res.filter(function (x) {
|
||||||
|
return confirmedTxs.filter(function (confX) {
|
||||||
|
return confX.txid == x.txid;
|
||||||
|
}).length == 0;
|
||||||
|
});
|
||||||
|
|
||||||
|
$log.debug('Discovering TXs. Got:' + newDiscoveredTxs.length);
|
||||||
|
|
||||||
|
var shouldContinue = newDiscoveredTxs.length > 0;
|
||||||
|
|
||||||
|
// If no new tx, no need to check
|
||||||
|
if (shouldContinue) {
|
||||||
|
newTxs = newTxs.concat(processNewTxs(wallet, lodash.compact(newDiscoveredTxs)));
|
||||||
|
}
|
||||||
|
|
||||||
progressFn(newTxs.concat(txsFromLocal), newTxs.length);
|
progressFn(newTxs.concat(txsFromLocal), newTxs.length);
|
||||||
|
|
||||||
|
|
@ -884,7 +899,7 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
||||||
var createAddress = function(wallet, cb) {
|
var createAddress = function(wallet, cb) {
|
||||||
$log.debug('Creating address for wallet:', wallet.id);
|
$log.debug('Creating address for wallet:', wallet.id);
|
||||||
|
|
||||||
wallet.createAddress({}, function(err, addr) {
|
wallet.createAddress({}, function onWalletCreatedAddress(err, addr) {
|
||||||
if (err) {
|
if (err) {
|
||||||
var prefix = gettextCatalog.getString('Could not create address');
|
var prefix = gettextCatalog.getString('Could not create address');
|
||||||
if (err instanceof errors.CONNECTION_ERROR || (err.message && err.message.match(/5../))) {
|
if (err instanceof errors.CONNECTION_ERROR || (err.message && err.message.match(/5../))) {
|
||||||
|
|
@ -902,6 +917,7 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
||||||
if (err) return cb(err);
|
if (err) return cb(err);
|
||||||
return cb(null, addr[0].address);
|
return cb(null, addr[0].address);
|
||||||
});
|
});
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
return bwcError.cb(err, prefix, cb);
|
return bwcError.cb(err, prefix, cb);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,8 @@
|
||||||
&.button-primary,
|
&.button-primary,
|
||||||
&.button-secondary,
|
&.button-secondary,
|
||||||
&.button-light,
|
&.button-light,
|
||||||
|
&.button-white,
|
||||||
|
&.button-green,
|
||||||
&.button-assertive {
|
&.button-assertive {
|
||||||
&.button-standard {
|
&.button-standard {
|
||||||
@extend %button-standard;
|
@extend %button-standard;
|
||||||
|
|
@ -33,6 +35,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin button-shadow() {
|
||||||
|
box-shadow: 0 2px 11px 0 #C1C1C1;;
|
||||||
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
&.button-secondary {
|
&.button-secondary {
|
||||||
@include button-style($v-button-secondary-bg, $v-button-secondary-border, $v-button-secondary-active-bg, $v-button-secondary-active-border, $v-button-secondary-color);
|
@include button-style($v-button-secondary-bg, $v-button-secondary-border, $v-button-secondary-active-bg, $v-button-secondary-active-border, $v-button-secondary-color);
|
||||||
|
|
@ -47,7 +53,37 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
|
border-radius: 6px;
|
||||||
&.button-full {
|
&.button-full {
|
||||||
|
border-radius: 0;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
&-green {
|
||||||
|
@include button-style(#719561, #FFF, #606060, #FFF, #FFF);
|
||||||
|
@include button-clear(#FFF);
|
||||||
|
@include button-outline(#C1C1C1);
|
||||||
|
border: 0px;
|
||||||
|
@include button-shadow();
|
||||||
|
}
|
||||||
|
&-white {
|
||||||
|
@include button-style(#FFF, #C1C1C1, #C1C1C1, #FFF, #606060);
|
||||||
|
@include button-clear(#FFF);
|
||||||
|
@include button-outline(#C1C1C1);
|
||||||
|
@include button-shadow();
|
||||||
|
&.activated {
|
||||||
|
color: #FFF;
|
||||||
|
}
|
||||||
|
&-outline {
|
||||||
|
@include button-style(transparent, #FFFFFF, #FFFFFF, #FFFFFF, #FFFFFF);
|
||||||
|
@include button-outline(#FFFFFF);
|
||||||
|
background: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&-grey-outline {
|
||||||
|
@include button-style(transparent, #727272, #FAFAFA, #727272, #727272);
|
||||||
|
@include button-outline(#727272);
|
||||||
|
background: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
24
src/sass/components/action-minor.scss
Normal file
24
src/sass/components/action-minor.scss
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
.action-minor {
|
||||||
|
margin: 20px 14px;
|
||||||
|
font-size: 14px;
|
||||||
|
|
||||||
|
&.mt-negative {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.text-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .action-icon {
|
||||||
|
width: 15px;
|
||||||
|
height: 15px;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .action-text {
|
||||||
|
vertical-align: middle;
|
||||||
|
color: #444444;
|
||||||
|
}
|
||||||
|
}
|
||||||
27
src/sass/components/address-frame.scss
Normal file
27
src/sass/components/address-frame.scss
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
.address-frame {
|
||||||
|
background-color: #F8F8F8;
|
||||||
|
border: 0.5px solid #EDEBEB;
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 9px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
|
&.expanded {
|
||||||
|
white-space: normal;
|
||||||
|
text-overflow: clip;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prefix {
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mid {
|
||||||
|
color: #919191;
|
||||||
|
}
|
||||||
|
|
||||||
|
.suffix {
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
}
|
||||||
5
src/sass/components/card.scss
Normal file
5
src/sass/components/card.scss
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
.card {
|
||||||
|
&.card-gutter-compact {
|
||||||
|
margin: 10px 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
12
src/sass/components/components.scss
Normal file
12
src/sass/components/components.scss
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
@import "item";
|
||||||
|
@import "ion-content";
|
||||||
|
@import "card";
|
||||||
|
|
||||||
|
@import "header";
|
||||||
|
@import "content-frame";
|
||||||
|
@import "address-frame";
|
||||||
|
@import "action-minor";
|
||||||
|
@import "expand-content";
|
||||||
|
@import "fee-summary";
|
||||||
|
@import "formatted-amount";
|
||||||
|
@import "wallet-balance";
|
||||||
11
src/sass/components/content-frame.scss
Normal file
11
src/sass/components/content-frame.scss
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
.content-frame {
|
||||||
|
&.negative-top {
|
||||||
|
margin-top: -40px;
|
||||||
|
|
||||||
|
.card {
|
||||||
|
&:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
26
src/sass/components/expand-content.scss
Normal file
26
src/sass/components/expand-content.scss
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
.expand-content-frame {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.expand-content-trigger {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
transition: opacity 0.3s ease;
|
||||||
|
right: 0;
|
||||||
|
|
||||||
|
&.expand-content-revealed {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.expand-content {
|
||||||
|
opacity: 0;
|
||||||
|
transform-origin: 100% 0%;
|
||||||
|
transform: scale(0,0);
|
||||||
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
||||||
|
|
||||||
|
&.expand-content-revealed {
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale(1,1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
40
src/sass/components/fee-summary.scss
Normal file
40
src/sass/components/fee-summary.scss
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
.fee-summary {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
width: 100%;
|
||||||
|
padding: 5px 12px 15px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background-color: #F2F2F2;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: -15px;
|
||||||
|
width: 100%;
|
||||||
|
height: 15px;
|
||||||
|
background: linear-gradient(to bottom, rgba(242,242,242,0) 0%,rgba(242,242,242,1) 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.amount {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.fee-fiat {
|
||||||
|
&.positive {
|
||||||
|
color: #70955F;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.negative {
|
||||||
|
color: #C24633;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.fee-crypto {
|
||||||
|
color: #A7A7A7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
37
src/sass/components/formatted-amount.scss
Normal file
37
src/sass/components/formatted-amount.scss
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
.formatted-amount {
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
|
.start,
|
||||||
|
.middle,
|
||||||
|
.end,
|
||||||
|
.currency {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.start {
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.middle {
|
||||||
|
font-size: 0.7857em;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.end {
|
||||||
|
font-size: 0.7857em;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.size-equal {
|
||||||
|
.middle,
|
||||||
|
.end {
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.currency {
|
||||||
|
font-size: 1em;
|
||||||
|
margin-left: 5px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
}
|
||||||
39
src/sass/components/header.scss
Normal file
39
src/sass/components/header.scss
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
.header {
|
||||||
|
padding: 29px 12px 61px;
|
||||||
|
background-color: $v-bitcoin-orange;
|
||||||
|
&.btc {
|
||||||
|
background-color: $v-bitcoin-core;
|
||||||
|
}
|
||||||
|
color: #FFFFFF;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 1em;
|
||||||
|
color: #FFFFFF;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
+ .content {
|
||||||
|
margin-top: 23px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
line-height: 1em;
|
||||||
|
font-size: 18px;
|
||||||
|
|
||||||
|
&.large {
|
||||||
|
font-size: 29px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ p {
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
17
src/sass/components/ion-content.scss
Normal file
17
src/sass/components/ion-content.scss
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
/*
|
||||||
|
* Extends Ionic v1 ion-content
|
||||||
|
*/
|
||||||
|
|
||||||
|
ion-content {
|
||||||
|
&.bg-neutral {
|
||||||
|
background-color: #F2F2F2;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.padded-bottom-cta {
|
||||||
|
bottom: 92px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.padded-bottom-cta-with-summary {
|
||||||
|
bottom: 134px;
|
||||||
|
}
|
||||||
|
}
|
||||||
48
src/sass/components/item.scss
Normal file
48
src/sass/components/item.scss
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
/*
|
||||||
|
* Extends Ionic v1 item
|
||||||
|
*/
|
||||||
|
|
||||||
|
.item {
|
||||||
|
&.item-compact {
|
||||||
|
padding: 11px 13px;
|
||||||
|
}
|
||||||
|
&.item-gutterless {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-content {
|
||||||
|
&.item-content-avatar {
|
||||||
|
min-height: 69px;
|
||||||
|
padding: 13px 11px 13px 68px;
|
||||||
|
|
||||||
|
> img,
|
||||||
|
> i {
|
||||||
|
&:first-child {
|
||||||
|
position: absolute;
|
||||||
|
max-width: 40px;
|
||||||
|
max-height: 40px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 50%;
|
||||||
|
left: 13px;
|
||||||
|
top: 50%;
|
||||||
|
padding: 0;
|
||||||
|
transform: translate(0,-50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.item-content-compact {
|
||||||
|
min-height: 0;
|
||||||
|
padding: 13px 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight {
|
||||||
|
color: #FAB915
|
||||||
|
}
|
||||||
|
|
||||||
|
+ .item-content {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
3
src/sass/components/wallet-balance.scss
Normal file
3
src/sass/components/wallet-balance.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
.wallet-balance-directive {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
@import "gravatar";
|
@import "gravatar";
|
||||||
|
@import "elastic";
|
||||||
4
src/sass/directives/elastic.scss
Normal file
4
src/sass/directives/elastic.scss
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
.elastic {
|
||||||
|
width: 100%;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
@ -88,6 +88,13 @@
|
||||||
background-image: url('../img/icon-faucet.svg');
|
background-image: url('../img/icon-faucet.svg');
|
||||||
background-size: 70%;
|
background-size: 70%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.icon-wallet {
|
||||||
|
background-color: #FAB915;
|
||||||
|
background-image: url('../img/icon-wallet.svg');
|
||||||
|
border: none;
|
||||||
|
box-shadow: 0 0 0 1px rgba(0,0,0,0.3) inset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,5 @@
|
||||||
@import "mixins/mixins";
|
@import "mixins/mixins";
|
||||||
@import "views/views";
|
@import "views/views";
|
||||||
@import "directives/directives";
|
@import "directives/directives";
|
||||||
|
@import "components/components";
|
||||||
@import "shame";
|
@import "shame";
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue