Skip to content

Commit

Permalink
chore(suite-native): bitcoin gold deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavProchazka committed Dec 27, 2024
1 parent ef75adc commit d4dd00d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
8 changes: 1 addition & 7 deletions suite-native/config/src/supportedNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,12 @@ export const networkSymbolsWhitelistMap = {
'ada',
'xrp',
'bch',
'btg',
'doge',
'zec',
] as NetworkSymbol[],
testnet: ['test', 'regtest', 'tsep', 'thol', 'tada', 'txrp'] as NetworkSymbol[],
} as const satisfies Record<string, NetworkSymbol[]>;

// Blacklisting coins that are allowed inside `networkSymbolsWhitelistMap` so that we don't have to configs and just filter these out
const portfolioTrackerBlacklist = ['btg'];

export const discoverySupportedNetworks = [
...networkSymbolsWhitelistMap.mainnet,
...networkSymbolsWhitelistMap.testnet,
Expand Down Expand Up @@ -76,9 +72,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
1 change: 0 additions & 1 deletion suite-native/discovery/src/discoveryThunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ const DISCOVERY_DEFAULT_BATCH_SIZE = 2;

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

0 comments on commit d4dd00d

Please sign in to comment.