Skip to content

ecash integration #5513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/modals/WalletListMenuModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const WALLET_LIST_MENU: Array<{
'digibyte',
'dogecoin',
'eboost',
'ecash',
'eos',
'zcoin',
'feathercoin',
Expand Down
10 changes: 10 additions & 0 deletions src/constants/WalletAndCurrencyConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const CURRENCY_SETTINGS_KEYS = [
'ethereumclassic',
'dash',
'litecoin',
'ecash',
'bitcoinsv',
'monero',
'zcoin',
Expand Down Expand Up @@ -75,6 +76,7 @@ export const WALLET_TYPE_ORDER = [
'wallet:ethereumclassic',
'wallet:binance',
'wallet:solana',
'wallet:ecash',
'wallet:bitcoinsv',
'wallet:litecoin',
'wallet:eos',
Expand Down Expand Up @@ -260,6 +262,14 @@ export const SPECIAL_CURRENCY_INFO: {
isStakingSupported: true,
unstoppableDomainsTicker: 'LTC'
},
ecash: {
maxSpendTargets: UTXO_MAX_SPEND_TARGETS,
initWalletName: lstrings.string_first_ecash_wallet_name,
chainCode: 'XEC',
isImportKeySupported: true,
isSplittingDisabled: true,
unstoppableDomainsTicker: 'XEC'
},
rsk: {
initWalletName: lstrings.string_first_rsk_wallet_name,
chainCode: 'RBTC',
Expand Down
1 change: 1 addition & 0 deletions src/locales/en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ const strings = {
string_first_filecoin_wallet_name: 'My Filecoin',
string_first_filecoin_fevm_wallet_name: 'My Filecoin FEVM',
string_first_filecoin_fevm_calibratio_wallet_name: 'My Filecoin FEVM (Calibration)',
string_first_ecash_wallet_name: 'My eCash Wallet',
string_first_bitcoin_wallet_name: 'My Bitcoin',
string_first_bitcoin_testnet_wallet_name: 'My Bitcoin Testnet',
string_first_bitcoincash_wallet_name: 'My Bitcoin Cash',
Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@
"string_first_bitcoin_gold_wallet_name": "Meine Bitcoin-Gold",
"string_first_dash_wallet_name": "Mein Dash",
"string_first_digibyte_wallet_name": "Mein DigiByte",
"string_first_ecash_wallet_name": "Mein eCash",
"string_first_eos_wallet_name": "Meine EOS",
"string_first_holesky_wallet_name": "My Holesky",
"string_first_telos_wallet_name": "Meine Telos",
Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/enUS.json
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@
"string_first_filecoin_wallet_name": "My Filecoin",
"string_first_filecoin_fevm_wallet_name": "My Filecoin FEVM",
"string_first_filecoin_fevm_calibratio_wallet_name": "My Filecoin FEVM (Calibration)",
"string_first_ecash_wallet_name": "My eCash Wallet",
"string_first_bitcoin_wallet_name": "My Bitcoin",
"string_first_bitcoin_testnet_wallet_name": "My Bitcoin Testnet",
"string_first_bitcoincash_wallet_name": "My Bitcoin Cash",
Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@
"string_first_bitcoin_gold_wallet_name": "Mi Bitcoin Gold",
"string_first_dash_wallet_name": "Mi Dash",
"string_first_digibyte_wallet_name": "Mi Digibyte",
"string_first_ecash_wallet_name": "Mi eCash",
"string_first_eos_wallet_name": "Mi EOS",
"string_first_holesky_wallet_name": "My Holesky",
"string_first_telos_wallet_name": "Mis Telos",
Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/esMX.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@
"string_first_bitcoin_gold_wallet_name": "Mi Bitcoin Gold",
"string_first_dash_wallet_name": "Mi Dash",
"string_first_digibyte_wallet_name": "Mi DigiByte",
"string_first_ecash_wallet_name": "Mi eCash",
"string_first_eos_wallet_name": "Mi EOS",
"string_first_holesky_wallet_name": "Mi Holesky",
"string_first_telos_wallet_name": "Mis Telos",
Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@
"string_first_bitcoin_gold_wallet_name": "Mes Bitcoins Or",
"string_first_dash_wallet_name": "Mes Dash",
"string_first_digibyte_wallet_name": "Mes DigiBytes",
"string_first_ecash_wallet_name": "My eCash",
"string_first_eos_wallet_name": "Mes EOS",
"string_first_holesky_wallet_name": "My Holesky",
"string_first_telos_wallet_name": "My Telos",
Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@
"string_first_bitcoin_gold_wallet_name": "I miei Bitcoin Gold",
"string_first_dash_wallet_name": "I miei Dash",
"string_first_digibyte_wallet_name": "I miei DigiByte",
"string_first_ecash_wallet_name": "I miei eCash",
"string_first_eos_wallet_name": "I miei EOS",
"string_first_holesky_wallet_name": "I miei Holesky",
"string_first_telos_wallet_name": "I miei Telos",
Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@
"string_first_bitcoin_gold_wallet_name": "My Bitcoin Gold",
"string_first_dash_wallet_name": "My Dash",
"string_first_digibyte_wallet_name": "My DigiByte",
"string_first_ecash_wallet_name": "My eCash",
"string_first_eos_wallet_name": "My EOS",
"string_first_holesky_wallet_name": "My Holesky",
"string_first_telos_wallet_name": "My Telos",
Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/kaa.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@
"string_first_bitcoin_gold_wallet_name": "My Bitcoin Gold",
"string_first_dash_wallet_name": "My Dash",
"string_first_digibyte_wallet_name": "My DigiByte",
"string_first_ecash_wallet_name": "My eCash",
"string_first_eos_wallet_name": "My EOS",
"string_first_holesky_wallet_name": "My Holesky",
"string_first_telos_wallet_name": "My Telos",
Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@
"string_first_bitcoin_gold_wallet_name": "My Bitcoin Gold",
"string_first_dash_wallet_name": "My Dash",
"string_first_digibyte_wallet_name": "My DigiByte (디지바이트)",
"string_first_ecash_wallet_name": "My eCash",
"string_first_eos_wallet_name": "My EOS (이오스)",
"string_first_holesky_wallet_name": "My Holesky",
"string_first_telos_wallet_name": "My Telos",
Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@
"string_first_bitcoin_gold_wallet_name": "Meu Bitcoin Gold",
"string_first_dash_wallet_name": "Minha Dash",
"string_first_digibyte_wallet_name": "Meu DigiByte",
"string_first_ecash_wallet_name": "Meu eCash",
"string_first_eos_wallet_name": "Meu EOS",
"string_first_holesky_wallet_name": "My Holesky",
"string_first_telos_wallet_name": "Meu Telos",
Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@
"string_first_bitcoin_gold_wallet_name": "Мой Bitcoin Gold",
"string_first_dash_wallet_name": "Мой Dash",
"string_first_digibyte_wallet_name": "Мой DigiByte",
"string_first_ecash_wallet_name": "Мой eCash",
"string_first_eos_wallet_name": "Мой EOS",
"string_first_holesky_wallet_name": "My Holesky",
"string_first_telos_wallet_name": "Мой Telos",
Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@
"string_first_bitcoin_gold_wallet_name": "Bitcoin Gold của tôi",
"string_first_dash_wallet_name": "Dash của tôi",
"string_first_digibyte_wallet_name": "DigiByte Của tôi",
"string_first_ecash_wallet_name": "eCash của tôi",
"string_first_eos_wallet_name": "EOS của tôi",
"string_first_holesky_wallet_name": "My Holesky",
"string_first_telos_wallet_name": "My Telos",
Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@
"string_first_bitcoin_gold_wallet_name": "我的比特黄金",
"string_first_dash_wallet_name": "我的达世币",
"string_first_digibyte_wallet_name": "我的极特币",
"string_first_ecash_wallet_name": "My eCash",
"string_first_eos_wallet_name": "我的EOS",
"string_first_holesky_wallet_name": "My Holesky",
"string_first_telos_wallet_name": "My Telos",
Expand Down
1 change: 1 addition & 0 deletions src/util/corePlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export const currencyPlugins: EdgeCorePluginsInit = {
dash: ENV.DASH_INIT,
digibyte: ENV.DIGIBYTE_INIT,
dogecoin: ENV.DOGE_INIT,
ecash: true,
eboost: true,
feathercoin: true,
groestlcoin: ENV.GROESTLCOIN_INIT,
Expand Down