Skip to content

Commit ca67263

Browse files
chore: remove dead localization keys and clean up cubit
1 parent b6b1fb3 commit ca67263

24 files changed

Lines changed: 2 additions & 136 deletions

lib/features/replace_by_fee/presentation/cubit.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ class ReplaceByFeeCubit extends Cubit<ReplaceByFeeState> {
4747
}
4848
}
4949

50-
void clearFailure() => emit(state.copyWith(failure: null));
51-
52-
void reset() => emit(const ReplaceByFeeState());
53-
5450
Future<void> broadcast() async {
5551
emit(state.copyWith(failure: null));
5652

@@ -80,9 +76,9 @@ class ReplaceByFeeCubit extends Cubit<ReplaceByFeeState> {
8076
}
8177

8278
/// A valid (above-floor) selection — from a custom keystroke or the Fastest
83-
/// tile. Clears any prior below-floor flag.
79+
/// tile. Clears any prior below-floor flag and any broadcast failure.
8480
void onChangeFee(FeeEntity fee) =>
85-
emit(state.copyWith(newFeeRate: fee, customFeeBelowFloor: false));
81+
emit(state.copyWith(newFeeRate: fee, customFeeBelowFloor: false, failure: null));
8682

8783
/// The custom field went below the relay floor or was emptied. Keep
8884
/// [newFeeRate] (the last valid value / init sentinel) but flag the field so

localization/app_ar.arb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,10 +1150,6 @@
11501150
"@swapErrorBalanceTooLow": {
11511151
"description": "Error when balance is below minimum swap limit"
11521152
},
1153-
"replaceByFeeErrorGeneric": "وقع خطأ أثناء محاولة استبدال الصفقة",
1154-
"@replaceByFeeErrorGeneric": {
1155-
"description": "Generic error message for replace-by-fee operation failures"
1156-
},
11571153
"fundExchangeWarningTactic5": "يطلبون إرسال (بيتكوين) على منصة أخرى",
11581154
"@fundExchangeWarningTactic5": {
11591155
"description": "Fifth scammer tactic warning"
@@ -6493,10 +6489,6 @@
64936489
"@arkSendConfirm": {
64946490
"description": "Confirm button on send screen"
64956491
},
6496-
"replaceByFeeErrorTransactionConfirmed": "تم تأكيد الصفقة الأصلية",
6497-
"@replaceByFeeErrorTransactionConfirmed": {
6498-
"description": "Error message when original transaction is already confirmed"
6499-
},
65006492
"rbfErrorFeeTooLow": "تحتاج إلى زيادة معدل الرسوم على الأقل 1 سات/فبيت بالمقارنة مع الصفقة الأصلية",
65016493
"@rbfErrorFeeTooLow": {
65026494
"description": "Error when new fee rate is not high enough"

localization/app_as.arb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3029,14 +3029,6 @@
30293029
"@replaceByFeeErrorNoFeeRateSelected": {
30303030
"description": "Error message when no fee rate is selected"
30313031
},
3032-
"replaceByFeeErrorTransactionConfirmed": "মূল লেনদেন নিশ্চিত হৈছে",
3033-
"@replaceByFeeErrorTransactionConfirmed": {
3034-
"description": "Error message when original transaction is already confirmed"
3035-
},
3036-
"replaceByFeeErrorGeneric": "লেনদেন প্ৰতিস্থাপন কৰিবলৈ চেষ্টা কৰোঁতে এটা ত্ৰুটি ঘটিছে",
3037-
"@replaceByFeeErrorGeneric": {
3038-
"description": "Generic error message for replace-by-fee operation failures"
3039-
},
30403032
"replaceByFeeFastestDescription": "আনুমানিক সময় ~ ১০ মিনিট",
30413033
"@replaceByFeeFastestDescription": {
30423034
"description": "Description for fastest fee option"

localization/app_bg.arb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,10 +1165,6 @@
11651165
"@swapErrorBalanceTooLow": {
11661166
"description": "Error when balance is below minimum swap limit"
11671167
},
1168-
"replaceByFeeErrorGeneric": "Възникна грешка при опита за замяна на транзакцията.",
1169-
"@replaceByFeeErrorGeneric": {
1170-
"description": "Generic error message for replace-by-fee operation failures"
1171-
},
11721168
"fundExchangeWarningTactic5": "Те искат да изпратите Bitcoin на друга платформа",
11731169
"@fundExchangeWarningTactic5": {
11741170
"description": "Fifth scammer tactic warning"
@@ -5373,10 +5369,6 @@
53735369
"@sendAbsoluteFees": {
53745370
"description": "Label for absolute fee display mode (total sats)"
53755371
},
5376-
"replaceByFeeErrorTransactionConfirmed": "Оригиналната транзакция е потвърдена.",
5377-
"@replaceByFeeErrorTransactionConfirmed": {
5378-
"description": "Error message when original transaction is already confirmed"
5379-
},
53805372
"rbfErrorFeeTooLow": "Трябва да увеличите таксата с поне 1 сат/байт спрямо оригиналната транзакция.",
53815373
"@rbfErrorFeeTooLow": {
53825374
"description": "Error when new fee rate is not high enough"

localization/app_bn.arb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,10 +1199,6 @@
11991199
"@swapErrorBalanceTooLow": {
12001200
"description": "Error when balance is below minimum swap limit"
12011201
},
1202-
"replaceByFeeErrorGeneric": "ট্রান্স্যাকশনটি ফি দ্বারা প্রতিস্থাপন করার চেষ্টা করার সময় একটি ত্রুটি ঘটেছে",
1203-
"@replaceByFeeErrorGeneric": {
1204-
"description": "Generic error message for replace-by-fee operation failures"
1205-
},
12061202
"fundExchangeWarningTactic5": "তারা অন্য প্ল্যাটফর্মে বিটকয়েন পাঠাতে বলছে",
12071203
"@fundExchangeWarningTactic5": {
12081204
"description": "Fifth scammer tactic warning"
@@ -6741,10 +6737,6 @@
67416737
"@arkSendConfirm": {
67426738
"description": "Confirm button on send screen"
67436739
},
6744-
"replaceByFeeErrorTransactionConfirmed": "মূল ট্রান্স্যাকশনটি নিশ্চিত হয়েছে",
6745-
"@replaceByFeeErrorTransactionConfirmed": {
6746-
"description": "Error message when original transaction is already confirmed"
6747-
},
67486740
"rbfErrorFeeTooLow": "মূল ট্রান্স্যাকশনটির তুলনায় ফি রেট অন্তত 1 sat/vbyte বেশি করতে হবে",
67496741
"@rbfErrorFeeTooLow": {
67506742
"description": "Error when new fee rate is not high enough"

localization/app_cs.arb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,10 +1467,6 @@
14671467
"@swapErrorBalanceTooLow": {
14681468
"description": "Error when balance is below minimum swap limit"
14691469
},
1470-
"replaceByFeeErrorGeneric": "Chyba došlo při pokusu o nahrazení transakce",
1471-
"@replaceByFeeErrorGeneric": {
1472-
"description": "Generic error message for replace-by-fee operation failures"
1473-
},
14741470
"fundExchangeWarningTactic5": "Zeptají se, aby poslal Bitcoin na jinou platformu",
14751471
"@fundExchangeWarningTactic5": {
14761472
"description": "Fifth scammer tactic warning"
@@ -6868,10 +6864,6 @@
68686864
"@sendAbsoluteFees": {
68696865
"description": "Label for absolute fee display mode (total sats)"
68706866
},
6871-
"replaceByFeeErrorTransactionConfirmed": "Původní transakce byla potvrzena",
6872-
"@replaceByFeeErrorTransactionConfirmed": {
6873-
"description": "Error message when original transaction is already confirmed"
6874-
},
68756867
"rbfErrorFeeTooLow": "Musíte zvýšit poplatek minimálně 1 sat/vbyte ve srovnání s původní transakcí",
68766868
"@rbfErrorFeeTooLow": {
68776869
"description": "Error when new fee rate is not high enough"

localization/app_de.arb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@
418418
"sendSendAmount": "Betrag",
419419
"sendSelectedUtxosInsufficient": "Die ausgewählten UTXOs decken den erforderlichen Betrag nicht ab.",
420420
"swapErrorBalanceTooLow": "Guthaben zu niedrig für den Mindest-Swap-Betrag.",
421-
"replaceByFeeErrorGeneric": "Beim Versuch, die Transaktion zu ersetzen, trat ein Fehler auf.",
422421
"fundExchangeWarningTactic5": "Sie bitten darum, Bitcoin an eine andere Plattform zu senden.",
423422
"rbfCustomFee": "Benutzerdefinierte Gebühren",
424423
"importQrDeviceFingerprint": "Fingerabdruck",
@@ -2224,7 +2223,6 @@
22242223
"payDecodeFailed": "Rechnung konnte nicht entschlüsselt werden",
22252224
"sendAbsoluteFees": "Gesamtgebühren",
22262225
"arkSendConfirm": "Bestätigen",
2227-
"replaceByFeeErrorTransactionConfirmed": "Die ursprüngliche Transaktion wurde bestätigt.",
22282226
"rbfErrorFeeTooLow": "Sie müssen den Gebührensatz um mindestens 1 sat/vbyte gegenüber der ursprünglichen Transaktion erhöhen.",
22292227
"ledgerErrorMissingDerivationPathSign": "Der Ableitungspfad ist zur Anmeldung erforderlich.",
22302228
"backupWalletTitle": "Sichern Sie Ihre Wallet",

localization/app_el.arb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,10 +1055,6 @@
10551055
"@swapErrorBalanceTooLow": {
10561056
"description": "Error when balance is below minimum swap limit"
10571057
},
1058-
"replaceByFeeErrorGeneric": "Ένα λάθος συνέβη ενώ επιχειρεί να αντικαταστήσει τη συναλλαγή",
1059-
"@replaceByFeeErrorGeneric": {
1060-
"description": "Generic error message for replace-by-fee operation failures"
1061-
},
10621058
"fundExchangeWarningTactic5": "Ζητούν να στείλουν Bitcoin σε άλλη πλατφόρμα",
10631059
"@fundExchangeWarningTactic5": {
10641060
"description": "Fifth scammer tactic warning"
@@ -5760,10 +5756,6 @@
57605756
"@arkSendConfirm": {
57615757
"description": "Confirm button on send screen"
57625758
},
5763-
"replaceByFeeErrorTransactionConfirmed": "Η αρχική συναλλαγή έχει επιβεβαιωθεί",
5764-
"@replaceByFeeErrorTransactionConfirmed": {
5765-
"description": "Error message when original transaction is already confirmed"
5766-
},
57675759
"rbfErrorFeeTooLow": "Πρέπει να αυξήσετε το ποσοστό χρέωσης κατά τουλάχιστον 1 sat/vbyte σε σύγκριση με την αρχική συναλλαγή",
57685760
"@rbfErrorFeeTooLow": {
57695761
"description": "Error when new fee rate is not high enough"

localization/app_en.arb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6191,14 +6191,6 @@
61916191
"@replaceByFeeErrorNoFeeRateSelected": {
61926192
"description": "Error message when no fee rate is selected"
61936193
},
6194-
"replaceByFeeErrorTransactionConfirmed": "The original transaction has been confirmed",
6195-
"@replaceByFeeErrorTransactionConfirmed": {
6196-
"description": "Error message when original transaction is already confirmed"
6197-
},
6198-
"replaceByFeeErrorGeneric": "An error occurred while attempting to replace the transaction",
6199-
"@replaceByFeeErrorGeneric": {
6200-
"description": "Generic error message for replace-by-fee operation failures"
6201-
},
62026194
"replaceByFeeFastestDescription": "Estimated delivery ~ 10 minutes",
62036195
"@replaceByFeeFastestDescription": {
62046196
"description": "Description for fastest fee option"

localization/app_es.arb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,8 +1775,6 @@
17751775
"replaceByFeeCustomFeeTitle": "Tarifa personalizada",
17761776
"replaceByFeeErrorFeeRateTooLow": "Necesita aumentar la tasa de tarifa en al menos 1 sat/vbyte en comparación con la transacción original",
17771777
"replaceByFeeErrorNoFeeRateSelected": "Por favor seleccione una tasa de tarifa",
1778-
"replaceByFeeErrorTransactionConfirmed": "La transacción original ha sido confirmada",
1779-
"replaceByFeeErrorGeneric": "Ocurrió un error al intentar reemplazar la transacción",
17801778
"replaceByFeeFastestDescription": "Entrega estimada ~ 10 minutos",
17811779
"replaceByFeeFastestTitle": "Más rápido",
17821780
"replaceByFeeFeeRateDisplay": "Tasa de tarifa: {feeRate} sat/vbyte",

0 commit comments

Comments
 (0)