-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Coins deprecation #16131
base: develop
Are you sure you want to change the base?
Coins deprecation #16131
Conversation
🚀 Expo preview is ready!
|
3e2ce44
to
2a3c207
Compare
@@ -78,9 +58,7 @@ export const filterBlacklistedNetworks = ( | |||
); | |||
|
|||
export const portfolioTrackerMainnets = sortNetworks( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I see correctly, if we remove the portfolio blacklist, we can remove portfolioTrackerMainnets
and getPortfolioTrackerTestnets
completely and use networkSymbolsWhitelistMap.mainnets
and networkSymbolsWhitelistMap.testnets
instead, wdyt?
@@ -18,12 +18,7 @@ type NetworkSymbol = | |||
| 'etc' | |||
| 'xrp' | |||
| 'bch' | |||
| 'btg' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep those in this migration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. maybe there should be migration removing target deprecated coins accounts from state as well. but its not that big deal. it can stay there forever and nothing will probably ever happen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will prepare migration for users with remembered wallet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
2a3c207
to
4bdc0ac
Compare
50973b7
to
0405953
Compare
22960bc
to
bd9da1f
Compare
bd9da1f
to
53e914c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from mentioned, it looks good (= same as e.g. tgor
deprecation).
| 'dogecoin' | ||
| 'namecoin' | ||
| 'vertcoin' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btg
| dgb
| nmc
| vtc
below should also be removed, right?
@@ -1176,4 +1178,56 @@ export const migrate: OnUpgradeFunc<SuiteDBSchema> = async ( | |||
return account; | |||
}); | |||
} | |||
|
|||
// Deprecate Vertcoin (VTC) and other networks | |||
if (oldVersion < 52) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot about this:
const VERSION = 51; // don't forget to add migration and CHANGELOG when changing versions!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot to remove icons from suite-common/icons
, suite-common/icons-deprecated
packages
const deprecatedNetworks = ['vtc', 'btg', 'nmc', 'dgb', 'dash']; | ||
|
||
// Remove transactions related to deprecated networks | ||
await updateAll(transaction, 'txs', tx => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you miss graph
, historicRates
and sendFormDrafts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is true, but historically we didn't handle these when removing coins, only when changing symbols (because we wanted to keep the data), so I believe this should be safe as well.
53e914c
to
2cb1f13
Compare
'vtc', | ||
'zec', | ||
], | ||
testnet: ['test', 'regtest', 'tsep', 'thol', 'dsol', 'tada', 'txrp'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add "dsol" here
'zec', | ||
], | ||
testnet: ['test', 'regtest', 'tsep', 'thol', 'dsol', 'tada', 'txrp'], | ||
mainnet: ['btc', 'eth', 'pol', 'bsc', 'ltc', 'etc', 'ada', 'xrp', 'bch', 'doge', 'zec'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add "sol" here
As of February 2025, Trezor Suite will discontinue support for Dash, Bitcoin Gold, DigiByte, Namecoin, and Vertcoin. Users are advised to migrate their funds to alternative wallets to ensure continued access and security. The coins will still be supported on the FW level, so users can still access them using third party wallets.
Proposed Timeline:
I will divide the commits by environment (desktop/native) to make code review easier.
Please read the following before conducting the code review:
Given the points above, I have prepared only basic deprecation that mainly affects NetworksConfig. Everything else (tests, icons, etc.) will remain unchanged until we decide to disable trading options and/or turn off the backends.
Todo:
messages.ts
and other mentions in general files?NetworksConfig
?This pull request includes significant changes related to the removal of support for several cryptocurrencies across multiple files. The most important changes include updating the
LegacyNetworkSymbol
type, modifying protocol definitions, and removing network configurations and symbols.Removal of support for specific cryptocurrencies:
packages/product-components/src/components/CoinLogo/coins.ts
: UpdatedLegacyNetworkSymbol
to include additional unsupported coins.suite-common/suite-constants/src/protocol.ts
: Removed protocols forbitcoingold
,dash
,digibyte
,namecoin
, andvertcoin
. [1] [2]suite-common/wallet-config/src/networksConfig.ts
: Removed network configurations fordash
,btg
,dgb
,nmc
, andvtc
.suite-common/wallet-config/src/types.ts
: UpdatedNetworkSymbol
to remove symbols forbtg
,dash
,dgb
,nmc
, andvtc
.suite-native/config/src/supportedNetworks.ts
: Updated the whitelist and removed the blacklist for unsupported coins. [1] [2]