fix: some chain colors in default networks config are wrong which

were saved to DB, so fix the colors in DB as well.

Closes https://github.com/status-im/status-desktop/issues/13762
This commit is contained in:
Ivan Belyakov 2024-02-28 13:27:39 +01:00 committed by IvanBelyakoff
parent eecde4c27f
commit 20c1e7f88b
3 changed files with 472 additions and 342 deletions

View File

@ -49,7 +49,7 @@ var goerli = params.Network{
FallbackURL: "https://goerli.infura.io/v3/",
BlockExplorerURL: "https://goerli.etherscan.io/",
IconURL: "network/Network=Testnet",
ChainColor: "#939BA1",
ChainColor: "#627EEA",
ShortName: "goEth",
NativeCurrencyName: "Ether",
NativeCurrencySymbol: "ETH",
@ -67,7 +67,7 @@ var sepolia = params.Network{
FallbackURL: "https://sepolia.infura.io/v3/",
BlockExplorerURL: "https://sepolia.etherscan.io/",
IconURL: "network/Network=Testnet",
ChainColor: "#51D0F0",
ChainColor: "#627EEA",
ShortName: "eth",
NativeCurrencyName: "Ether",
NativeCurrencySymbol: "ETH",
@ -103,7 +103,7 @@ var optimismGoerli = params.Network{
FallbackURL: "",
BlockExplorerURL: "https://goerli-optimism.etherscan.io/",
IconURL: "network/Network=Testnet",
ChainColor: "#939BA1",
ChainColor: "#E90101",
ShortName: "goOpt",
NativeCurrencyName: "Ether",
NativeCurrencySymbol: "ETH",
@ -121,7 +121,7 @@ var optimismSepolia = params.Network{
FallbackURL: "",
BlockExplorerURL: "https://sepolia-optimism.etherscan.io/",
IconURL: "network/Network=Testnet",
ChainColor: "#939BA1",
ChainColor: "#E90101",
ShortName: "opt",
NativeCurrencyName: "Ether",
NativeCurrencySymbol: "ETH",
@ -157,7 +157,7 @@ var arbitrumGoerli = params.Network{
FallbackURL: "",
BlockExplorerURL: "https://goerli.arbiscan.io/",
IconURL: "network/Network=Testnet",
ChainColor: "#939BA1",
ChainColor: "#51D0F0",
ShortName: "goArb",
NativeCurrencyName: "Ether",
NativeCurrencySymbol: "ETH",

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
UPDATE networks SET chain_color="#627EEA" WHERE chain_id IN (1, 5, 11155111);
UPDATE networks SET chain_color="#E90101" WHERE chain_id IN (10, 420, 11155420);
UPDATE networks SET chain_color="#51D0F0" WHERE chain_id IN (42161, 421613, 421614);