Merge pull request #169 from cake-tech/CAKE-64-add-extra-payment-info-for-some-currencies

Cake 64 add extra payment info for some currencies
This commit is contained in:
M 2021-01-15 20:12:43 +02:00
commit 87e0e4b3bb
14 changed files with 144 additions and 14 deletions

View file

@ -76,6 +76,7 @@ class S implements WidgetsLocalizations {
String get creating_new_wallet => "Creating new wallet";
String get dark_theme => "Dark";
String get delete => "Delete";
String get destination_tag => "Destination tag:";
String get digit_pin => "-digit PIN";
String get edit => "Edit";
String get enter_your_note => "Enter your note…";
@ -103,6 +104,7 @@ class S implements WidgetsLocalizations {
String get exchange_result_write_down_trade_id => "Please copy or write down the trade ID to continue.";
String get exchange_sync_alert_content => "Please wait until your wallet is synchronized";
String get expired => "Expired";
String get extra_id => "Extra ID:";
String get faq => "FAQ";
String get fetching => "Fetching";
String get filters => "Filter";
@ -115,6 +117,7 @@ class S implements WidgetsLocalizations {
String get light_theme => "Light";
String get loading_your_wallet => "Loading your wallet";
String get login => "Login";
String get memo => "Memo:";
String get new_node_testing => "New node testing";
String get new_subaddress_create => "Create";
String get new_subaddress_label_name => "Label name";
@ -655,6 +658,8 @@ class $de extends S {
@override
String get expired => "Abgelaufen";
@override
String get extra_id => "Zusätzliche ID:";
@override
String get transaction_priority_regular => "Regulär";
@override
String get trade_details_created_at => "Hergestellt in";
@ -1025,6 +1030,10 @@ class $de extends S {
@override
String get account => "Konto";
@override
String get destination_tag => "Ziel-Tag:";
@override
String get memo => "Memo:";
@override
String change_language_to(String language) => "Ändern Sie die Sprache in ${language}?";
@override
String change_current_node(String node) => "Möchten Sie den aktuellen Knoten wirklich auf ändern? ${node}?";
@ -1377,6 +1386,8 @@ class $hi extends S {
@override
String get expired => "समय सीमा समाप्त";
@override
String get extra_id => "अतिरिक्त आईडी:";
@override
String get transaction_priority_regular => "नियमित";
@override
String get trade_details_created_at => "पर बनाया गया";
@ -1747,6 +1758,10 @@ class $hi extends S {
@override
String get account => "लेखा";
@override
String get destination_tag => "गंतव्य टैग:";
@override
String get memo => "ज्ञापन:";
@override
String change_language_to(String language) => "को भाषा बदलें ${language}?";
@override
String change_current_node(String node) => "क्या आप वर्तमान नोड को बदलना सुनिश्चित करते हैं ${node}?";
@ -2099,6 +2114,8 @@ class $ru extends S {
@override
String get expired => "Истекает";
@override
String get extra_id => "Дополнительный ID:";
@override
String get transaction_priority_regular => "Обычный";
@override
String get trade_details_created_at => "Создано";
@ -2469,6 +2486,10 @@ class $ru extends S {
@override
String get account => "Аккаунт";
@override
String get destination_tag => "Целевой тег:";
@override
String get memo => "Памятка:";
@override
String change_language_to(String language) => "Изменить язык на ${language}?";
@override
String change_current_node(String node) => "Вы уверены, что хотите изменить текущую ноду на ${node}?";
@ -2821,6 +2842,8 @@ class $ko extends S {
@override
String get expired => "만료";
@override
String get extra_id => "추가 ID:";
@override
String get transaction_priority_regular => "정규병";
@override
String get trade_details_created_at => "에 작성";
@ -3191,6 +3214,10 @@ class $ko extends S {
@override
String get account => "계정";
@override
String get destination_tag => "목적지 태그:";
@override
String get memo => "메모:";
@override
String change_language_to(String language) => "언어를로 변경 ${language}?";
@override
String change_current_node(String node) => "현재 노드를 다음으로 변경 하시겠습니까 ${node}?";
@ -3543,6 +3570,8 @@ class $pt extends S {
@override
String get expired => "Expirada";
@override
String get extra_id => "ID extra:";
@override
String get transaction_priority_regular => "Regular";
@override
String get trade_details_created_at => "Criada em";
@ -3913,6 +3942,10 @@ class $pt extends S {
@override
String get account => "Conta";
@override
String get destination_tag => "Tag de destino:";
@override
String get memo => "Memorando:";
@override
String change_language_to(String language) => "Alterar idioma para ${language}?";
@override
String change_current_node(String node) => "Você realmente deseja alterar o nó atual para ${node}?";
@ -4265,6 +4298,8 @@ class $uk extends S {
@override
String get expired => "Закінчується";
@override
String get extra_id => "Додатковий ID:";
@override
String get transaction_priority_regular => "Звичайний";
@override
String get trade_details_created_at => "Створено";
@ -4635,6 +4670,10 @@ class $uk extends S {
@override
String get account => "Акаунт";
@override
String get destination_tag => "Тег призначення:";
@override
String get memo => "Пам’ятка:";
@override
String change_language_to(String language) => "Змінити мову на ${language}?";
@override
String change_current_node(String node) => "Ви впевнені, що хочете змінити поточний вузол на ${node}?";
@ -4987,6 +5026,8 @@ class $ja extends S {
@override
String get expired => "期限切れ";
@override
String get extra_id => "追加ID:";
@override
String get transaction_priority_regular => "レギュラー";
@override
String get trade_details_created_at => "で作成";
@ -5357,6 +5398,10 @@ class $ja extends S {
@override
String get account => "アカウント";
@override
String get destination_tag => "宛先タグ:";
@override
String get memo => "メモ:";
@override
String change_language_to(String language) => "言語を変更 ${language}?";
@override
String change_current_node(String node) => "現在のノードを変更してよろしいですか ${node}?";
@ -5713,6 +5758,8 @@ class $pl extends S {
@override
String get expired => "Przedawniony";
@override
String get extra_id => "Dodatkowy ID:";
@override
String get transaction_priority_regular => "Regularny";
@override
String get trade_details_created_at => "Utworzono w";
@ -6083,6 +6130,10 @@ class $pl extends S {
@override
String get account => "Konto";
@override
String get destination_tag => "Tag docelowy:";
@override
String get memo => "Notatka:";
@override
String change_language_to(String language) => "Zmień język na ${language}?";
@override
String change_current_node(String node) => "Czy na pewno chcesz przywrócić ustawienia domyślne? ${node}?";
@ -6435,6 +6486,8 @@ class $es extends S {
@override
String get expired => "Muerto";
@override
String get extra_id => "ID adicional:";
@override
String get transaction_priority_regular => "Regular";
@override
String get trade_details_created_at => "Creado en";
@ -6805,6 +6858,10 @@ class $es extends S {
@override
String get account => "Cuenta";
@override
String get destination_tag => "Etiqueta de destino:";
@override
String get memo => "Memorándum:";
@override
String change_language_to(String language) => "Cambiar el idioma a ${language}?";
@override
String change_current_node(String node) => "¿Está seguro de cambiar el nodo actual a ${node}?";
@ -7157,6 +7214,8 @@ class $nl extends S {
@override
String get expired => "Verlopen";
@override
String get extra_id => "Extra ID:";
@override
String get transaction_priority_regular => "Regelmatig";
@override
String get trade_details_created_at => "Gemaakt bij";
@ -7527,6 +7586,10 @@ class $nl extends S {
@override
String get account => "Account";
@override
String get destination_tag => "Bestemmingstag:";
@override
String get memo => "Memo:";
@override
String change_language_to(String language) => "Verander de taal in ${language}?";
@override
String change_current_node(String node) => "Weet u zeker dat u het huidige knooppunt wilt wijzigen in ${node}?";
@ -7879,6 +7942,8 @@ class $zh extends S {
@override
String get expired => "已过期";
@override
String get extra_id => "額外編號:";
@override
String get transaction_priority_regular => "定期";
@override
String get trade_details_created_at => "创建于";
@ -8249,6 +8314,10 @@ class $zh extends S {
@override
String get account => "帐户";
@override
String get destination_tag => "目標標籤:";
@override
String get memo => "備忘錄:";
@override
String change_language_to(String language) => "將語言更改為 ${language}?";
@override
String change_current_node(String node) => "您确定将当前节点更改为 ${node}?";

View file

@ -1,5 +1,6 @@
import 'dart:async';
import 'package:cake_wallet/core/wallet_base.dart';
import 'package:cake_wallet/entities/crypto_currency.dart';
import 'package:cake_wallet/exchange/changenow/changenow_exchange_provider.dart';
import 'package:cake_wallet/exchange/exchange_provider.dart';
import 'package:cake_wallet/exchange/exchange_provider_description.dart';
@ -96,9 +97,21 @@ abstract class ExchangeTradeViewModelBase with Store {
void _updateItems() {
items?.clear();
items.add(ExchangeTradeItem(
title: S.current.id, data: '${trade.id}', isCopied: true));
if (trade.extraId != null) {
final title = trade.from == CryptoCurrency.xrp
? S.current.destination_tag
: trade.from == CryptoCurrency.xlm
? S.current.memo
: S.current.extra_id;
items.add(ExchangeTradeItem(
title: title, data: '${trade.extraId}', isCopied: false));
}
items.addAll([
ExchangeTradeItem(
title: S.current.id, data: '${trade.id}', isCopied: true),
ExchangeTradeItem(
title: S.current.amount, data: '${trade.amount}', isCopied: false),
ExchangeTradeItem(

View file

@ -435,5 +435,9 @@
"note_tap_to_change" : "Hinweis (zum Ändern tippen)",
"transaction_key" : "Transaktionsschlüssel",
"confirmations" : "Bestätigungen",
"recipient_address" : "Empfängeradresse"
"recipient_address" : "Empfängeradresse",
"extra_id" : "Zusätzliche ID:",
"destination_tag" : "Ziel-Tag:",
"memo" : "Memo:"
}

View file

@ -435,5 +435,9 @@
"note_tap_to_change" : "Note (tap to change)",
"transaction_key" : "Transaction Key",
"confirmations" : "Confirmations",
"recipient_address" : "Recipient address"
"recipient_address" : "Recipient address",
"extra_id" : "Extra ID:",
"destination_tag" : "Destination tag:",
"memo" : "Memo:"
}

View file

@ -435,5 +435,9 @@
"note_tap_to_change" : "Nota (toque para cambiar)",
"transaction_key" : "Clave de transacción",
"confirmations" : "Confirmaciones",
"recipient_address" : "Dirección del receptor"
"recipient_address" : "Dirección del receptor",
"extra_id" : "ID adicional:",
"destination_tag" : "Etiqueta de destino:",
"memo" : "Memorándum:"
}

View file

@ -435,5 +435,9 @@
"note_tap_to_change" : "नोट (टैप टू चेंज)",
"transaction_key" : "लेन-देन की",
"confirmations" : "पुष्टिकरण",
"recipient_address" : "प्राप्तकर्ता का पता"
"recipient_address" : "प्राप्तकर्ता का पता",
"extra_id" : "अतिरिक्त आईडी:",
"destination_tag" : "गंतव्य टैग:",
"memo" : "ज्ञापन:"
}

View file

@ -435,5 +435,9 @@
"note_tap_to_change" : "注(タップして変更)",
"transaction_key" : "トランザクションキー",
"confirmations" : "確認",
"recipient_address" : "受信者のアドレス"
"recipient_address" : "受信者のアドレス",
"extra_id" : "追加ID:",
"destination_tag" : "宛先タグ:",
"memo" : "メモ:"
}

View file

@ -435,5 +435,9 @@
"note_tap_to_change" : "메모 (변경하려면 탭하세요)",
"transaction_key" : "거래 키",
"confirmations" : "확인",
"recipient_address" : "받는 사람 주소"
"recipient_address" : "받는 사람 주소",
"extra_id" : "추가 ID:",
"destination_tag" : "목적지 태그:",
"memo" : "메모:"
}

View file

@ -435,5 +435,9 @@
"note_tap_to_change" : "Opmerking (tik om te wijzigen)",
"transaction_key" : "Transactiesleutel",
"confirmations" : "Bevestigingen",
"recipient_address" : "Adres ontvanger"
"recipient_address" : "Adres ontvanger",
"extra_id" : "Extra ID:",
"destination_tag" : "Bestemmingstag:",
"memo" : "Memo:"
}

View file

@ -435,5 +435,9 @@
"note_tap_to_change" : "Notatka (dotknij, aby zmienić)",
"transaction_key" : "Klucz transakcji",
"confirmations" : "Potwierdzenia",
"recipient_address" : "Adres odbiorcy"
"recipient_address" : "Adres odbiorcy",
"extra_id" : "Dodatkowy ID:",
"destination_tag" : "Tag docelowy:",
"memo" : "Notatka:"
}

View file

@ -435,5 +435,9 @@
"note_tap_to_change" : "Nota (toque para alterar)",
"transaction_key" : "Chave de transação",
"confirmations" : "Confirmações",
"recipient_address" : "Endereço do destinatário"
"recipient_address" : "Endereço do destinatário",
"extra_id" : "ID extra:",
"destination_tag" : "Tag de destino:",
"memo" : "Memorando:"
}

View file

@ -435,5 +435,9 @@
"note_tap_to_change" : "Примечание (нажмите для изменения)",
"transaction_key" : "Ключ транзакции",
"confirmations" : "Подтверждения",
"recipient_address" : "Адрес получателя"
"recipient_address" : "Адрес получателя",
"extra_id" : "Дополнительный ID:",
"destination_tag" : "Целевой тег:",
"memo" : "Памятка:"
}

View file

@ -435,5 +435,9 @@
"note_tap_to_change" : "Примітка (натисніть для зміни)",
"transaction_key" : "Ключ транзакції",
"confirmations" : "Підтвердження",
"recipient_address" : "Адреса одержувача"
"recipient_address" : "Адреса одержувача",
"extra_id" : "Додатковий ID:",
"destination_tag" : "Тег призначення:",
"memo" : "Пам’ятка:"
}

View file

@ -435,5 +435,9 @@
"note_tap_to_change" : "注意(輕按即可更改)",
"transaction_key" : "交易密碼",
"confirmations" : "確認書",
"recipient_address" : "收件人地址"
"recipient_address" : "收件人地址",
"extra_id" : "額外編號:",
"destination_tag" : "目標標籤:",
"memo" : "備忘錄:"
}