Skip to content

Commit

Permalink
sca-8 sca-130 sca-133, balance, iban
Browse files Browse the repository at this point in the history
  • Loading branch information
arvifox committed Oct 6, 2023
1 parent a7a92b9 commit 9c9339b
Show file tree
Hide file tree
Showing 38 changed files with 303 additions and 147 deletions.
2 changes: 1 addition & 1 deletion android-foundation
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ buildscript {
composeCompiler : '1.5.3',
composeConstraintLayout: '1.1.0-alpha05',
uiCore : '0.2.7',
soraCard : '0.1.49',
soraCard : '0.1.51',
lazySodium : '5.0.2',
jna : '5.8.0',
accompanist : '0.30.1',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ object OptionsProvider {
const val defaultScale = 18
const val nameByteLimit = 32
const val fiatSymbol = "$"
const val nbspace = ' '
const val euroSign = ''

const val website = "https://sora.org"
const val sourceLink = "https://github.com/sora-xor/Sora-Android"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ import java.text.NumberFormat
import java.util.Currency
import java.util.Locale
import jp.co.soramitsu.common.domain.OptionsProvider
import jp.co.soramitsu.common.domain.OptionsProvider.nbspace
import kotlin.math.absoluteValue
import kotlin.math.pow

private const val DECIMAL_PATTERN_BASE = "###,###."
private const val TWO_DIGITS_PATTERN = "00"
const val nbspace = ' '
const val euro = ''

private const val DEFAULT_PRECISION = 2

Expand Down
8 changes: 7 additions & 1 deletion common/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
<string name="asset_details_token_price">سعر الرمز المميز</string>
<string name="asset_details_your_pools">تجمعات %s الخاصة بك</string>
<string name="asset_to_send">الأصول المراد إرسالها</string>
<string name="backup_account_already_exist">Backup already exists. Proceed to rewrite it.</string>
<string name="backup_not_enough_space_error">Backup failed. Not enough space on your Google Drive. Free some space and try again.</string>
<string name="backup_password_mandatory_reqs_fulfilled">Mandatory requirement for the password fulfilled</string>
<string name="backup_password_requirments">Minimum six characters. Optionally, for better security, include uppercase letters, numbers and non-alphabetic characters.</string>
<string name="backup_password_title">Setting a password will encrypt your Google backup. You’ll need to enter this when restoring your wallet.\nMinimum password length is 6 characters.</string>
Expand All @@ -48,6 +50,7 @@
<string name="buy_crypto_buy_xor_banner_title">شراء توكن XOR</string>
<string name="buy_crypto_buy_xor_with_fiat_subtitle">شراء أو بيع توكن XOR باليورو</string>
<string name="buy_crypto_buy_xor_with_fiat_title">شراء XOR مع فيات</string>
<string name="cant_load_balance">Can\'t load balance</string>
<string name="change_language">تغيير اللغة</string>
<string name="change_pin">تغيير PIN</string>
<string name="choose_token">اختر عملة</string>
Expand Down Expand Up @@ -172,6 +175,7 @@
<string name="common_refresh">تحديث</string>
<string name="common_remove">إزالة</string>
<string name="common_request">Request</string>
<string name="common_rewrite">Rewrite</string>
<string name="common_russian">الروسية</string>
<string name="common_scan">مسح ضوئي</string>
<string name="common_scan_qr">مسح QR</string>
Expand Down Expand Up @@ -235,6 +239,7 @@
<string name="enter_password_incorect_title">Incorrect password</string>
<string name="enter_password_title">Enter password</string>
<string name="error_transaction_fee_title">ارصدة غير كافية لرسوم المعاملة</string>
<string name="explore_create_pool">Create pool</string>
<string name="explore_provide_and_earn">Provide liquidity and earn rewards</string>
<string name="explore_swap_tokens_on_sora">Swap tokens on SORA network</string>
<string name="export_account_details_backup_description">إذا فقدت الوصول إلى هذا الجهاز ، فستفقد أموالك ، ما لم تقم بعمل نسخة احتياطية!</string>
Expand Down Expand Up @@ -515,7 +520,7 @@
<string name="sora_card_iban_headline">IBAN account details</string>
<string name="sora_card_log_in_or_sign_up">Log in or Sign up</string>
<string name="sora_card_no_more_free_tries">لا مزيد من المحاولات المجانية</string>
<string name="sora_card_option_logout">Log out SORA Card</string>
<string name="sora_card_option_logout">Log out of SORA Card</string>
<string name="sora_card_option_logout_description">You are about to log out of SORA Card. You will still have access to the SORA Card standalone app, but the balance will no longer be available to you in the SORA Wallet.</string>
<string name="sora_card_refer_and_earn_action">Refer &amp; Earn</string>
<string name="sora_card_referral_headline">Refer SORA Card.\nGet €20 bonus. </string>
Expand All @@ -536,6 +541,7 @@
<string name="status_successful">ناجح</string>
<string name="status_title">الحالة</string>
<string name="succesfully_imported_account_title">You have succesfully imported an account</string>
<string name="support_chat">Support chat</string>
<string name="swap_confirmation_screen_warning_balance_afterwards_transaction_is_too_small">Ensure that you have %s left after this transaction. Otherwise, you won’t be able to do another transaction.</string>
<string name="switch_node">Switch node</string>
<string name="system_appearance">مظهر النظام</string>
Expand Down
6 changes: 6 additions & 0 deletions common/src/main/res/values-az/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
<string name="asset_details_token_price">Token price</string>
<string name="asset_details_your_pools">Your %s pools</string>
<string name="asset_to_send">Asset to send</string>
<string name="backup_account_already_exist">Yedək artıq mövcuddur. Yenidən yazmağa davam edin.</string>
<string name="backup_not_enough_space_error">Yedəkləmə alınmadı. Google Diskinizdə kifayət qədər yer yoxdur. Bir az yer boşaltın və yenidən cəhd edin.</string>
<string name="backup_password_mandatory_reqs_fulfilled">Parol üçün məcburi tələb yerinə yetirildi</string>
<string name="backup_password_requirments">Minimum altı simvol. İsteğe bağlı olaraq, daha yaxşı təhlükəsizlik üçün böyük hərflər, rəqəmlər və qeyri-əlifba simvolları daxil edin.</string>
<string name="backup_password_title">Parolun təyin edilməsi Google ehtiyat nüsxənizi şifrələyəcək. Pul kisəsini bərpa edərkən bunu daxil etməlisiniz.\n Minimum parol uzunluğu 6 simvoldur.</string>
Expand All @@ -48,6 +50,7 @@
<string name="buy_crypto_buy_xor_banner_title">Buy XOR token</string>
<string name="buy_crypto_buy_xor_with_fiat_subtitle">Buy or sell XOR token with euro</string>
<string name="buy_crypto_buy_xor_with_fiat_title">Buy XOR with fiat</string>
<string name="cant_load_balance">Balansı yükləmək mümkün deyil</string>
<string name="change_language">Change language</string>
<string name="change_pin">Change PIN</string>
<string name="choose_token">Token seçin</string>
Expand Down Expand Up @@ -168,6 +171,7 @@
<string name="common_refresh">Refresh</string>
<string name="common_remove">Sil</string>
<string name="common_request">Request</string>
<string name="common_rewrite">Yenidən yazmaq</string>
<string name="common_russian">Rus dili</string>
<string name="common_scan">Tara</string>
<string name="common_scan_qr">Scan QR</string>
Expand Down Expand Up @@ -231,6 +235,7 @@
<string name="enter_password_incorect_title">Incorrect password</string>
<string name="enter_password_title">Enter password</string>
<string name="error_transaction_fee_title">Əməliyyat haqqı üçün kifayət qədər vəsait yoxdur</string>
<string name="explore_create_pool">Hovuz yaradın</string>
<string name="explore_provide_and_earn">Likvidliyi təmin edin və mükafatlar qazanın</string>
<string name="explore_swap_tokens_on_sora">SORA şəbəkəsində tokenləri dəyişdirin</string>
<string name="export_account_details_backup_description">If you loose access to this device, your funds will be lost, unless you back up!</string>
Expand Down Expand Up @@ -512,6 +517,7 @@
<string name="status_successful">Successful</string>
<string name="status_title">Status</string>
<string name="succesfully_imported_account_title">You have succesfully imported an account</string>
<string name="support_chat">Dəstək söhbəti</string>
<string name="swap_confirmation_screen_warning_balance_afterwards_transaction_is_too_small">Bu əməliyyatdan sonra %s qaldığınıza əmin olun. Əks halda, başqa sövdələşmə edə bilməyəcəksiniz.</string>
<string name="switch_node">Switch node</string>
<string name="system_appearance">System appearance</string>
Expand Down
8 changes: 7 additions & 1 deletion common/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
<string name="asset_details_token_price">Token price</string>
<string name="asset_details_your_pools">Your %s pools</string>
<string name="asset_to_send">Asset to send</string>
<string name="backup_account_already_exist">Backup already exists. Proceed to rewrite it.</string>
<string name="backup_not_enough_space_error">Backup failed. Not enough space on your Google Drive. Free some space and try again.</string>
<string name="backup_password_mandatory_reqs_fulfilled">Mandatory requirement for the password fulfilled</string>
<string name="backup_password_requirments">Minimum six characters. Optionally, for better security, include uppercase letters, numbers and non-alphabetic characters.</string>
<string name="backup_password_title">Setting a password will encrypt your Google backup. You’ll need to enter this when restoring your wallet.\nMinimum password length is 6 characters.</string>
Expand All @@ -48,6 +50,7 @@
<string name="buy_crypto_buy_xor_banner_title">Buy XOR token</string>
<string name="buy_crypto_buy_xor_with_fiat_subtitle">Buy or sell XOR token with euro</string>
<string name="buy_crypto_buy_xor_with_fiat_title">Buy XOR with fiat</string>
<string name="cant_load_balance">Can\'t load balance</string>
<string name="change_language">Change language</string>
<string name="change_pin">Change PIN</string>
<string name="choose_token">Token\nauswählen</string>
Expand Down Expand Up @@ -168,6 +171,7 @@
<string name="common_refresh">Refresh</string>
<string name="common_remove">Entfernen</string>
<string name="common_request">Request</string>
<string name="common_rewrite">Rewrite</string>
<string name="common_russian">Russisch</string>
<string name="common_scan">Scan</string>
<string name="common_scan_qr">Scan QR</string>
Expand Down Expand Up @@ -231,6 +235,7 @@
<string name="enter_password_incorect_title">Incorrect password</string>
<string name="enter_password_title">Enter password</string>
<string name="error_transaction_fee_title">Nicht genügend Guthaben für die Transaktionsgebühr</string>
<string name="explore_create_pool">Create pool</string>
<string name="explore_provide_and_earn">Provide liquidity and earn rewards</string>
<string name="explore_swap_tokens_on_sora">Swap tokens on SORA network</string>
<string name="export_account_details_backup_description">Wenn du den Zugang zu diesem Gerät verlierst, gehen deine Assets verloren, es sei denn, du machst ein Backup!</string>
Expand Down Expand Up @@ -491,7 +496,7 @@
<string name="sora_card_iban_headline">IBAN account details</string>
<string name="sora_card_log_in_or_sign_up">Log in or Sign up</string>
<string name="sora_card_no_more_free_tries">No more free attempts</string>
<string name="sora_card_option_logout">Log out SORA Card</string>
<string name="sora_card_option_logout">Log out of SORA Card</string>
<string name="sora_card_option_logout_description">You are about to log out of SORA Card. You will still have access to the SORA Card standalone app, but the balance will no longer be available to you in the SORA Wallet.</string>
<string name="sora_card_refer_and_earn_action">Refer &amp; Earn</string>
<string name="sora_card_referral_headline">Refer SORA Card.\nGet €20 bonus. </string>
Expand All @@ -512,6 +517,7 @@
<string name="status_successful">Successful</string>
<string name="status_title">Status</string>
<string name="succesfully_imported_account_title">You have succesfully imported an account</string>
<string name="support_chat">Support chat</string>
<string name="swap_confirmation_screen_warning_balance_afterwards_transaction_is_too_small">Ensure that you have %s left after this transaction. Otherwise, you won’t be able to do another transaction.</string>
<string name="switch_node">Switch node</string>
<string name="system_appearance">System appearance</string>
Expand Down
8 changes: 7 additions & 1 deletion common/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
<string name="asset_details_token_price">Precio del token</string>
<string name="asset_details_your_pools">Tus %spares de liquidez</string>
<string name="asset_to_send">Activo a enviar</string>
<string name="backup_account_already_exist">Backup already exists. Proceed to rewrite it.</string>
<string name="backup_not_enough_space_error">Backup failed. Not enough space on your Google Drive. Free some space and try again.</string>
<string name="backup_password_mandatory_reqs_fulfilled">Mandatory requirement for the password fulfilled</string>
<string name="backup_password_requirments">Minimum six characters. Optionally, for better security, include uppercase letters, numbers and non-alphabetic characters.</string>
<string name="backup_password_title">Setting a password will encrypt your Google backup. You’ll need to enter this when restoring your wallet.\nMinimum password length is 6 characters.</string>
Expand All @@ -48,6 +50,7 @@
<string name="buy_crypto_buy_xor_banner_title">Comprar XOR token</string>
<string name="buy_crypto_buy_xor_with_fiat_subtitle">Comprar o Vender XOR con euro</string>
<string name="buy_crypto_buy_xor_with_fiat_title">Comprar XOR con fiat</string>
<string name="cant_load_balance">Can\'t load balance</string>
<string name="change_language">Change language</string>
<string name="change_pin">Change PIN</string>
<string name="choose_token">Select token</string>
Expand Down Expand Up @@ -168,6 +171,7 @@
<string name="common_refresh">Refrescar</string>
<string name="common_remove">Remove</string>
<string name="common_request">Request</string>
<string name="common_rewrite">Rewrite</string>
<string name="common_russian">Ruso</string>
<string name="common_scan">Escanear</string>
<string name="common_scan_qr">Escanear QR</string>
Expand Down Expand Up @@ -231,6 +235,7 @@
<string name="enter_password_incorect_title">Incorrect password</string>
<string name="enter_password_title">Enter password</string>
<string name="error_transaction_fee_title">No hay fondos suficientes para la comisión de la transacción</string>
<string name="explore_create_pool">Create pool</string>
<string name="explore_provide_and_earn">Provide liquidity and earn rewards</string>
<string name="explore_swap_tokens_on_sora">Swap tokens on SORA network</string>
<string name="export_account_details_backup_description">If you loose access to this device, your funds will be lost, unless you back up!</string>
Expand Down Expand Up @@ -491,7 +496,7 @@
<string name="sora_card_iban_headline">IBAN account details</string>
<string name="sora_card_log_in_or_sign_up">Log in or Sign up</string>
<string name="sora_card_no_more_free_tries">No quedan más intentos gratuitos</string>
<string name="sora_card_option_logout">Log out SORA Card</string>
<string name="sora_card_option_logout">Log out of SORA Card</string>
<string name="sora_card_option_logout_description">You are about to log out of SORA Card. You will still have access to the SORA Card standalone app, but the balance will no longer be available to you in the SORA Wallet.</string>
<string name="sora_card_refer_and_earn_action">Refer &amp; Earn</string>
<string name="sora_card_referral_headline">Refer SORA Card.\nGet €20 bonus. </string>
Expand All @@ -512,6 +517,7 @@
<string name="status_successful">Successful</string>
<string name="status_title">Estado</string>
<string name="succesfully_imported_account_title">You have succesfully imported an account</string>
<string name="support_chat">Support chat</string>
<string name="swap_confirmation_screen_warning_balance_afterwards_transaction_is_too_small">Ensure that you have %s left after this transaction. Otherwise, you won’t be able to do another transaction.</string>
<string name="switch_node">Switch node</string>
<string name="system_appearance">System appearance</string>
Expand Down
8 changes: 7 additions & 1 deletion common/src/main/res/values-fa/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
<string name="asset_details_token_price">Token price</string>
<string name="asset_details_your_pools">Your %s pools</string>
<string name="asset_to_send">Asset to send</string>
<string name="backup_account_already_exist">Backup already exists. Proceed to rewrite it.</string>
<string name="backup_not_enough_space_error">Backup failed. Not enough space on your Google Drive. Free some space and try again.</string>
<string name="backup_password_mandatory_reqs_fulfilled">Mandatory requirement for the password fulfilled</string>
<string name="backup_password_requirments">Minimum six characters. Optionally, for better security, include uppercase letters, numbers and non-alphabetic characters.</string>
<string name="backup_password_title">Setting a password will encrypt your Google backup. You’ll need to enter this when restoring your wallet.\nMinimum password length is 6 characters.</string>
Expand All @@ -48,6 +50,7 @@
<string name="buy_crypto_buy_xor_banner_title">Buy XOR token</string>
<string name="buy_crypto_buy_xor_with_fiat_subtitle">Buy or sell XOR token with euro</string>
<string name="buy_crypto_buy_xor_with_fiat_title">Buy XOR with fiat</string>
<string name="cant_load_balance">Can\'t load balance</string>
<string name="change_language">Change language</string>
<string name="change_pin">Change PIN</string>
<string name="choose_token">توکن را انتخاب کنید</string>
Expand Down Expand Up @@ -168,6 +171,7 @@
<string name="common_refresh">Refresh</string>
<string name="common_remove">برداشت</string>
<string name="common_request">Request</string>
<string name="common_rewrite">Rewrite</string>
<string name="common_russian">روسی</string>
<string name="common_scan">اسکن</string>
<string name="common_scan_qr">Scan QR</string>
Expand Down Expand Up @@ -231,6 +235,7 @@
<string name="enter_password_incorect_title">Incorrect password</string>
<string name="enter_password_title">Enter password</string>
<string name="error_transaction_fee_title">بودجه کافی برای هزینه تراکنش وجود ندارد</string>
<string name="explore_create_pool">Create pool</string>
<string name="explore_provide_and_earn">Provide liquidity and earn rewards</string>
<string name="explore_swap_tokens_on_sora">Swap tokens on SORA network</string>
<string name="export_account_details_backup_description">If you loose access to this device, your funds will be lost, unless you back up!</string>
Expand Down Expand Up @@ -491,7 +496,7 @@
<string name="sora_card_iban_headline">IBAN account details</string>
<string name="sora_card_log_in_or_sign_up">Log in or Sign up</string>
<string name="sora_card_no_more_free_tries">No more free attempts</string>
<string name="sora_card_option_logout">Log out SORA Card</string>
<string name="sora_card_option_logout">Log out of SORA Card</string>
<string name="sora_card_option_logout_description">You are about to log out of SORA Card. You will still have access to the SORA Card standalone app, but the balance will no longer be available to you in the SORA Wallet.</string>
<string name="sora_card_refer_and_earn_action">Refer &amp; Earn</string>
<string name="sora_card_referral_headline">Refer SORA Card.\nGet €20 bonus. </string>
Expand All @@ -512,6 +517,7 @@
<string name="status_successful">Successful</string>
<string name="status_title">وضعیت</string>
<string name="succesfully_imported_account_title">You have succesfully imported an account</string>
<string name="support_chat">Support chat</string>
<string name="swap_confirmation_screen_warning_balance_afterwards_transaction_is_too_small">Ensure that you have %s left after this transaction. Otherwise, you won’t be able to do another transaction.</string>
<string name="switch_node">Switch node</string>
<string name="system_appearance">System appearance</string>
Expand Down
Loading

0 comments on commit 9c9339b

Please sign in to comment.