Skip to content

Commit

Permalink
chore(suite-native): basic deprecation on suite lite level
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavProchazka committed Jan 2, 2025
1 parent 976eb59 commit 2a3c207
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 36 deletions.
26 changes: 2 additions & 24 deletions suite-native/config/src/supportedNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,10 @@ const discoveryBlacklist: NetworkSymbol[] = ['sol', 'dsol', 'op', 'base', 'arb']

// All supported coins for device discovery
export const networkSymbolsWhitelistMap: Record<'mainnet' | 'testnet', readonly NetworkSymbol[]> = {
mainnet: [
'btc',
'eth',
'pol',
'bsc',
'ltc',
'etc',
'ada',
'xrp',
'bch',
'btg',
'dash',
'dgb',
'doge',
'nmc',
'vtc',
'zec',
],
mainnet: ['btc', 'eth', 'pol', 'bsc', 'ltc', 'etc', 'ada', 'xrp', 'bch', 'doge', 'zec'],
testnet: ['test', 'regtest', 'tsep', 'thol', 'tada', 'txrp'],
};

// Blacklisting coins that are allowed inside `networkSymbolsWhitelistMap` so that we don't have to configs and just filter these out
const portfolioTrackerBlacklist: readonly NetworkSymbol[] = ['btg', 'dash', 'dgb', 'nmc', 'vtc'];

export const discoverySupportedNetworks = [
...networkSymbolsWhitelistMap.mainnet,
...networkSymbolsWhitelistMap.testnet,
Expand Down Expand Up @@ -78,9 +58,7 @@ export const filterBlacklistedNetworks = (
);

export const portfolioTrackerMainnets = sortNetworks(
getMainnets()
.filter(network => networkSymbolsWhitelistMap.mainnet.includes(network.symbol))
.filter(network => !portfolioTrackerBlacklist.includes(network.symbol)),
getMainnets().filter(network => networkSymbolsWhitelistMap.mainnet.includes(network.symbol)),
).map(network => network.symbol);

const getPortfolioTrackerTestnets = () => {
Expand Down
5 changes: 0 additions & 5 deletions suite-native/discovery/src/discoveryThunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ const DISCOVERY_DEFAULT_BATCH_SIZE = 2;

const DISCOVERY_BATCH_SIZE_PER_SYMBOL: Partial<Record<NetworkSymbol, number>> = {
bch: 1,
dash: 1,
btg: 1,
dgb: 1,
nmc: 1,
vtc: 1,
zec: 1,
etc: 1,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ const devXpubs: Partial<Record<NetworkSymbol, string | DevXpub[]>> = {
doge: 'dgub8sbe5Mi8LA4dXB9zPfLZW8armvaRkaqT37y6xfT1QA12ErATDf8iGEG8y7kamAnjLuEk9AMpTMMp6EK9Vjp2HHx91xdDEmWYpmD49fpoUYF',
ltc: 'zpub6qhzAgn63nQAJZiY829GUUb1eXFDqpLbeShTdAbTEKyZa8n2VbkLwbRhq9xqPyj5Yet5TBdbCZDgiw53NQ2qwib4mygybFq66i7ZcXUcwgU',
bch: 'xpub6DFYZ2FZwJHL4WULnRKTyMAaE9sM5Vi3QoWW9kYWGzR4HxDJ42Gbbdj7bpBAtATpaNeSVqSD3gdFFmZZYK9BVo96rhxPY7SWZWsfmdHpZ7e',
btg: 'ypub6WVGAPrpnuTJN8AULEnWNNpvFR5Xcckn66fp8sL4FgEy5Z4oig1CbwySvj8v4iFVSANcHJVWzK211Bb8u71bCTVW9vY1PbAn59KmCzq99YW',
dgb: 'ypub6X7pNV6ouYFiDGHjxCtbnV9EaCdq5uyVysMbR5Q79LHa3SWV93J7ubun37EJhfFQqsSGQBfz3UrAzNtYNhb5JsoPJbNKvbF9wKxBjgxfXkH',
zec: 'xpub6DNsg962rV1MeqmathySUG2oKso9MfT2hMXCsMp6qemGWwD9xssVM61DfcAUUEaX2G8tjaaoKKppoKtFcSK8KVaMFHmZjAgyqod4DwXopPE',
eth: [
{ title: 'balance, few tokens', address: '0x62270860B9a5337e46bE8563c512c9137AFa0384' },
Expand Down
5 changes: 0 additions & 5 deletions suite-native/storage/src/migrations/account/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ type NetworkSymbol =
| 'etc'
| 'xrp'
| 'bch'
| 'btg'
| 'dash'
| 'dgb'
| 'doge'
| 'nmc'
| 'vtc'
| 'zec'
| 'test'
| 'regtest'
Expand Down

0 comments on commit 2a3c207

Please sign in to comment.