Skip to content

Commit f8faf72

Browse files
committed
Add Monero backend wallet setting
1 parent 4d7b4e2 commit f8faf72

3 files changed

Lines changed: 31 additions & 1 deletion

File tree

src/constants/WalletAndCurrencyConstants.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,28 @@ export const SPECIAL_CURRENCY_INFO: Record<string, SpecialCurrencyInfo> = {
386386
'46qxvuS78CNBoiiKmDjvjd5pMAZrTBbDNNHDoP52jKj9j5mk6m4R5nU6BDrWQURiWV9a2n5Sy8Qo4aJskKa92FX1GpZFiYA',
387387
isImportKeySupported: false,
388388
unstoppableDomainsTicker: 'XMR',
389-
maxSpendTargets: 16
389+
maxSpendTargets: 16,
390+
walletSettings: [
391+
{
392+
optionName: 'backend',
393+
displayName: lstrings.wallet_setting_backend_display_name,
394+
displayDescription: {
395+
message: lstrings.wallet_setting_backend_description,
396+
navigationPath: 'currencySettings'
397+
},
398+
inputType: 'switch',
399+
options: [
400+
{
401+
value: 'lws',
402+
label: lstrings.wallet_setting_backend_option_lws
403+
},
404+
{
405+
value: 'monerod',
406+
label: lstrings.wallet_setting_backend_option_full_node
407+
}
408+
]
409+
}
410+
]
390411
},
391412
nym: {
392413
initWalletName: lstrings.string_first_nym_wallet_name,

src/locales/en_US.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,6 +2384,11 @@ const strings = {
23842384

23852385
// Accessibility Labels
23862386
wallet_settings_label: 'Wallet settings',
2387+
wallet_setting_backend_description:
2388+
'Choose between a Light Wallet Server (LWS) or Full node connection. To use custom servers, go to Asset Settings.',
2389+
wallet_setting_backend_display_name: 'Backend',
2390+
wallet_setting_backend_option_full_node: 'Full node',
2391+
wallet_setting_backend_option_lws: 'LWS',
23872392
wallet_settings_title: 'Wallet Settings',
23882393
wallet_settings_wallet_name: 'Wallet Name',
23892394

src/locales/strings/enUS.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,6 +1866,10 @@
18661866
"spinner_hint": "Loading",
18671867
"toggle_button_hint": "Toggle",
18681868
"wallet_settings_label": "Wallet settings",
1869+
"wallet_setting_backend_description": "Choose between a Light Wallet Server (LWS) or Full node connection. To use custom servers, go to Asset Settings.",
1870+
"wallet_setting_backend_display_name": "Backend",
1871+
"wallet_setting_backend_option_full_node": "Full node",
1872+
"wallet_setting_backend_option_lws": "LWS",
18691873
"wallet_settings_title": "Wallet Settings",
18701874
"wallet_settings_wallet_name": "Wallet Name",
18711875
"rewards_card_error_retrieving_cards": "Error retrieving Visa cards. Please try again later.",

0 commit comments

Comments
 (0)