From 6b680f0722a47ead0a4b258dc147eab2b27a2284 Mon Sep 17 00:00:00 2001 From: Cuteivist Date: Thu, 16 May 2024 16:01:30 +0200 Subject: [PATCH] feat_: Correct opt short names (#5163) --- api/default_networks.go | 8 +- appdatabase/migrations/bindata.go | 27 ++++++- ...15756976_network_short_names_update.up.sql | 4 + services/wallet/saved_addresses_test.go | 4 +- walletdatabase/migrations/bindata.go | 79 ++++++++++++------- .../1715839555_rename_chain_prefixes.up.sql | 2 + 6 files changed, 88 insertions(+), 36 deletions(-) create mode 100644 appdatabase/migrations/sql/1715756976_network_short_names_update.up.sql create mode 100644 walletdatabase/migrations/sql/1715839555_rename_chain_prefixes.up.sql diff --git a/api/default_networks.go b/api/default_networks.go index 68a91f6c4..1214a4bab 100644 --- a/api/default_networks.go +++ b/api/default_networks.go @@ -86,7 +86,7 @@ var optimism = params.Network{ BlockExplorerURL: "https://optimistic.etherscan.io", IconURL: "network/Network=Optimism", ChainColor: "#E90101", - ShortName: "opt", + ShortName: "oeth", NativeCurrencyName: "Ether", NativeCurrencySymbol: "ETH", NativeCurrencyDecimals: 18, @@ -122,7 +122,7 @@ var optimismSepolia = params.Network{ BlockExplorerURL: "https://sepolia-optimism.etherscan.io/", IconURL: "network/Network=Optimism", ChainColor: "#E90101", - ShortName: "opt", + ShortName: "oeth", NativeCurrencyName: "Ether", NativeCurrencySymbol: "ETH", NativeCurrencyDecimals: 18, @@ -140,7 +140,7 @@ var arbitrum = params.Network{ BlockExplorerURL: "https://arbiscan.io/", IconURL: "network/Network=Arbitrum", ChainColor: "#51D0F0", - ShortName: "arb", + ShortName: "arb1", NativeCurrencyName: "Ether", NativeCurrencySymbol: "ETH", NativeCurrencyDecimals: 18, @@ -176,7 +176,7 @@ var arbitrumSepolia = params.Network{ BlockExplorerURL: "https://sepolia-explorer.arbitrum.io/", IconURL: "network/Network=Arbitrum", ChainColor: "#51D0F0", - ShortName: "arb", + ShortName: "arb1", NativeCurrencyName: "Ether", NativeCurrencySymbol: "ETH", NativeCurrencyDecimals: 18, diff --git a/appdatabase/migrations/bindata.go b/appdatabase/migrations/bindata.go index 24fc8c522..6839e68b8 100644 --- a/appdatabase/migrations/bindata.go +++ b/appdatabase/migrations/bindata.go @@ -110,6 +110,7 @@ // 1708416025_make_sepolia_default.up.sql (81B) // 1709203128_fix_chain_colors.up.sql (244B) // 1709795716_migration_order_fix.up.sql (7.909kB) +// 1715756976_network_short_names_update.up.sql (256B) // doc.go (94B) package migrations @@ -2378,6 +2379,26 @@ func _1709795716_migration_order_fixUpSql() (*asset, error) { return a, nil } +var __1715756976_network_short_names_updateUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x0a\x0d\x70\x71\x0c\x71\x55\xc8\x4b\x2d\x29\xcf\x2f\xca\x2e\x56\x08\x76\x0d\x51\x28\xce\xc8\x2f\x2a\x89\xcf\x4b\xcc\x4d\x55\xb0\x55\x50\xcf\x4f\x2d\xc9\x50\x57\x08\xf7\x70\x0d\x72\x55\x48\xce\x48\xcc\xcc\x8b\xcf\x4c\x51\xb0\x55\x30\x34\x34\x34\x35\x35\x31\x32\xb0\xe6\x22\xdf\x08\xa2\x34\x27\x16\x25\x19\x62\xd1\x6c\x62\x64\x68\x66\x48\xa9\x7e\x13\x6b\x40\x00\x00\x00\xff\xff\x84\x96\x2d\x64\x00\x01\x00\x00") + +func _1715756976_network_short_names_updateUpSqlBytes() ([]byte, error) { + return bindataRead( + __1715756976_network_short_names_updateUpSql, + "1715756976_network_short_names_update.up.sql", + ) +} + +func _1715756976_network_short_names_updateUpSql() (*asset, error) { + bytes, err := _1715756976_network_short_names_updateUpSqlBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "1715756976_network_short_names_update.up.sql", size: 256, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x47, 0xab, 0x2, 0xa5, 0x73, 0x82, 0xf, 0xb9, 0x96, 0xa5, 0x60, 0xe9, 0xbb, 0x52, 0xc1, 0xe3, 0xe0, 0x39, 0xe3, 0xe, 0x52, 0xa, 0xc9, 0xbe, 0xaa, 0x1, 0xee, 0x5, 0xbe, 0x5, 0x40, 0x22}} + return a, nil +} + var _docGo = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x2c\xcb\x41\x0e\x02\x31\x08\x05\xd0\x7d\x4f\xf1\x2f\x00\xe8\xca\xc4\xc4\xc3\xa0\x43\x08\x19\x5b\xc6\x96\xfb\xc7\x4d\xdf\xfe\x5d\xfa\x39\xd5\x0d\xeb\xf7\x6d\x4d\xc4\xf3\xe9\x36\x6c\x6a\x19\x3c\xe9\x1d\xe3\xd0\x52\x50\xcf\xa3\xa2\xdb\xeb\xfe\xb8\x6d\xa0\xeb\x74\xf4\xf0\xa9\x15\x39\x16\x28\xc1\x2c\x7b\xb0\x27\x58\xda\x3f\x00\x00\xff\xff\x57\xd4\xd5\x90\x5e\x00\x00\x00") func docGoBytes() ([]byte, error) { @@ -2599,7 +2620,8 @@ var _bindata = map[string]func() (*asset, error){ "1708416025_make_sepolia_default.up.sql": _1708416025_make_sepolia_defaultUpSql, "1709203128_fix_chain_colors.up.sql": _1709203128_fix_chain_colorsUpSql, "1709795716_migration_order_fix.up.sql": _1709795716_migration_order_fixUpSql, - "doc.go": docGo, + "1715756976_network_short_names_update.up.sql": _1715756976_network_short_names_updateUpSql, + "doc.go": docGo, } // AssetDebug is true if the assets were built with the debug flag enabled. @@ -2758,7 +2780,8 @@ var _bintree = &bintree{nil, map[string]*bintree{ "1708416025_make_sepolia_default.up.sql": {_1708416025_make_sepolia_defaultUpSql, map[string]*bintree{}}, "1709203128_fix_chain_colors.up.sql": {_1709203128_fix_chain_colorsUpSql, map[string]*bintree{}}, "1709795716_migration_order_fix.up.sql": {_1709795716_migration_order_fixUpSql, map[string]*bintree{}}, - "doc.go": {docGo, map[string]*bintree{}}, + "1715756976_network_short_names_update.up.sql": {_1715756976_network_short_names_updateUpSql, map[string]*bintree{}}, + "doc.go": {docGo, map[string]*bintree{}}, }} // RestoreAsset restores an asset under the given directory. diff --git a/appdatabase/migrations/sql/1715756976_network_short_names_update.up.sql b/appdatabase/migrations/sql/1715756976_network_short_names_update.up.sql new file mode 100644 index 000000000..8e7f186a3 --- /dev/null +++ b/appdatabase/migrations/sql/1715756976_network_short_names_update.up.sql @@ -0,0 +1,4 @@ +UPDATE networks SET short_name = 'oeth' WHERE chain_id = 11155420; +UPDATE networks SET short_name = 'oeth' WHERE chain_id = 10; +UPDATE networks SET short_name = 'arb1' WHERE chain_id = 42161; +UPDATE networks SET short_name = 'arb1' WHERE chain_id = 421614; \ No newline at end of file diff --git a/services/wallet/saved_addresses_test.go b/services/wallet/saved_addresses_test.go index ba7bcf2b9..c0d53f6db 100644 --- a/services/wallet/saved_addresses_test.go +++ b/services/wallet/saved_addresses_test.go @@ -39,7 +39,7 @@ func TestSavedAddressesAdd(t *testing.T) { sa := SavedAddress{ Address: common.Address{1}, Name: "Zilliqa", - ChainShortNames: "eth:arb:", + ChainShortNames: "eth:arb1:", ENSName: "test.stateofus.eth", ColorID: multiAccCommon.CustomizationColorGreen, IsTest: false, @@ -97,7 +97,7 @@ func TestSavedAddressesMetadata(t *testing.T) { savedAddressMeta: savedAddressMeta{ UpdateClock: 234, }, - ChainShortNames: "eth:arb:", + ChainShortNames: "eth:arb1:", ENSName: "test.stateofus.eth", ColorID: multiAccCommon.CustomizationColorGreen, IsTest: false, diff --git a/walletdatabase/migrations/bindata.go b/walletdatabase/migrations/bindata.go index 3d1971696..e4e370432 100644 --- a/walletdatabase/migrations/bindata.go +++ b/walletdatabase/migrations/bindata.go @@ -27,6 +27,7 @@ // 1712567001_add_soulbound_collectible_cache.up.sql (75B) // 1714670633_add_id_to_multi_transaction_table.up.sql (1.15kB) // 1715637927_add_collection_socials.up.sql (356B) +// 1715839555_rename_chain_prefixes.up.sql (259B) // doc.go (94B) package migrations @@ -110,7 +111,7 @@ func _1691753758_initialUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1691753758_initial.up.sql", size: 5738, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1691753758_initial.up.sql", size: 5738, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6b, 0x25, 0x31, 0xc8, 0x27, 0x3, 0x6b, 0x9f, 0x15, 0x42, 0x2f, 0x85, 0xfb, 0xe3, 0x6, 0xea, 0xf7, 0x97, 0x12, 0x56, 0x3c, 0x9a, 0x5b, 0x1a, 0xca, 0xb1, 0x23, 0xfa, 0xcd, 0x57, 0x25, 0x5c}} return a, nil } @@ -130,7 +131,7 @@ func _1692701329_add_collectibles_and_collections_data_cacheUpSql() (*asset, err return nil, err } - info := bindataFileInfo{name: "1692701329_add_collectibles_and_collections_data_cache.up.sql", size: 1808, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1692701329_add_collectibles_and_collections_data_cache.up.sql", size: 1808, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1, 0x51, 0xf4, 0x2b, 0x92, 0xde, 0x59, 0x65, 0xd8, 0x9b, 0x57, 0xe0, 0xfd, 0x7b, 0x12, 0xb, 0x29, 0x6e, 0x9d, 0xb5, 0x90, 0xe, 0xfa, 0x12, 0x97, 0xd, 0x61, 0x60, 0x7f, 0x32, 0x1d, 0xc3}} return a, nil } @@ -150,7 +151,7 @@ func _1692701339_add_scope_to_pendingUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1692701339_add_scope_to_pending.up.sql", size: 576, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1692701339_add_scope_to_pending.up.sql", size: 576, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x36, 0x8a, 0x5e, 0xe2, 0x63, 0x15, 0x37, 0xba, 0x55, 0x18, 0xf3, 0xcc, 0xe0, 0x5, 0x84, 0xe1, 0x5b, 0xe8, 0x1, 0x32, 0x6b, 0x9f, 0x7d, 0x9f, 0xd9, 0x23, 0x6c, 0xa9, 0xb5, 0xdc, 0xf4, 0x93}} return a, nil } @@ -170,7 +171,7 @@ func _1694540071_add_collectibles_ownership_update_timestampUpSql() (*asset, err return nil, err } - info := bindataFileInfo{name: "1694540071_add_collectibles_ownership_update_timestamp.up.sql", size: 349, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1694540071_add_collectibles_ownership_update_timestamp.up.sql", size: 349, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x7f, 0x45, 0xc7, 0xce, 0x79, 0x63, 0xbc, 0x6f, 0x83, 0x5f, 0xe2, 0x3, 0x56, 0xcc, 0x5, 0x2f, 0x85, 0xda, 0x7e, 0xea, 0xf5, 0xd2, 0xac, 0x19, 0xd4, 0xd8, 0x5e, 0xdd, 0xed, 0xe2, 0xa9, 0x97}} return a, nil } @@ -190,7 +191,7 @@ func _1694692748_add_raw_balance_to_token_balancesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1694692748_add_raw_balance_to_token_balances.up.sql", size: 165, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1694692748_add_raw_balance_to_token_balances.up.sql", size: 165, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd4, 0xe0, 0x5b, 0x42, 0xf0, 0x96, 0xa5, 0xf5, 0xed, 0xc0, 0x97, 0x88, 0xb0, 0x6d, 0xfe, 0x7d, 0x97, 0x2e, 0x17, 0xd2, 0x16, 0xbc, 0x2a, 0xf2, 0xcc, 0x67, 0x9e, 0xc5, 0x47, 0xf6, 0x69, 0x1}} return a, nil } @@ -210,7 +211,7 @@ func _1695133989_add_community_id_to_collectibles_and_collections_data_cacheUpSq return nil, err } - info := bindataFileInfo{name: "1695133989_add_community_id_to_collectibles_and_collections_data_cache.up.sql", size: 275, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1695133989_add_community_id_to_collectibles_and_collections_data_cache.up.sql", size: 275, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xfa, 0x2, 0xa, 0x7f, 0x4b, 0xd1, 0x3, 0xd0, 0x3, 0x29, 0x84, 0x31, 0xed, 0x49, 0x4f, 0xb1, 0x2d, 0xd7, 0x80, 0x41, 0x5b, 0xfa, 0x6, 0xae, 0xb4, 0xf6, 0x6b, 0x49, 0xee, 0x57, 0x33, 0x76}} return a, nil } @@ -230,7 +231,7 @@ func _1695932536_balance_history_v2UpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1695932536_balance_history_v2.up.sql", size: 653, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1695932536_balance_history_v2.up.sql", size: 653, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x37, 0xf4, 0x14, 0x91, 0xf6, 0x5f, 0xc4, 0x9b, 0xb7, 0x83, 0x32, 0x72, 0xbe, 0x82, 0x42, 0x39, 0xa4, 0x3b, 0xc9, 0x78, 0x3d, 0xca, 0xd4, 0xbf, 0xfc, 0x7a, 0x33, 0x1e, 0xcd, 0x9e, 0xe4, 0x85}} return a, nil } @@ -250,7 +251,7 @@ func _1696853635_input_dataUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1696853635_input_data.up.sql", size: 23140, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1696853635_input_data.up.sql", size: 23140, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x89, 0x30, 0x33, 0x33, 0x55, 0xc5, 0x57, 0x2b, 0xaf, 0xef, 0x3d, 0x8d, 0x2a, 0xaa, 0x5c, 0x32, 0xd1, 0xf4, 0xd, 0x4a, 0xd0, 0x33, 0x4a, 0xe8, 0xf6, 0x8, 0x6b, 0x65, 0xcc, 0xba, 0xed, 0x42}} return a, nil } @@ -270,7 +271,7 @@ func _1698117918_add_community_id_to_tokensUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1698117918_add_community_id_to_tokens.up.sql", size: 61, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1698117918_add_community_id_to_tokens.up.sql", size: 61, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb3, 0x82, 0xdb, 0xde, 0x3, 0x3, 0xc, 0x67, 0xf3, 0x54, 0xc4, 0xad, 0xd6, 0xce, 0x56, 0xfb, 0xc1, 0x87, 0xd7, 0xda, 0xab, 0xec, 0x1, 0xe1, 0x7d, 0xb3, 0x63, 0xd6, 0xe5, 0x5d, 0x1c, 0x15}} return a, nil } @@ -290,7 +291,7 @@ func _1698257443_add_community_metadata_to_wallet_dbUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1698257443_add_community_metadata_to_wallet_db.up.sql", size: 323, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1698257443_add_community_metadata_to_wallet_db.up.sql", size: 323, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x22, 0xd3, 0x4, 0x25, 0xfa, 0x23, 0x1, 0x48, 0x83, 0x26, 0x20, 0xf2, 0x3d, 0xbc, 0xc1, 0xa7, 0x7c, 0x27, 0x7c, 0x1d, 0x63, 0x3, 0xa, 0xd0, 0xce, 0x47, 0x86, 0xdc, 0xa1, 0x3c, 0x2, 0x1c}} return a, nil } @@ -310,7 +311,7 @@ func _1699987075_add_timestamp_and_state_to_community_data_cacheUpSql() (*asset, return nil, err } - info := bindataFileInfo{name: "1699987075_add_timestamp_and_state_to_community_data_cache.up.sql", size: 865, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1699987075_add_timestamp_and_state_to_community_data_cache.up.sql", size: 865, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc3, 0xee, 0x37, 0xf9, 0x7f, 0x9e, 0xfe, 0x93, 0x66, 0x2b, 0xd, 0x57, 0xf4, 0x89, 0x6c, 0x51, 0xfd, 0x14, 0xe9, 0xcd, 0xab, 0x65, 0xe7, 0xa7, 0x83, 0x7e, 0xe0, 0x5c, 0x14, 0x49, 0xf3, 0xe5}} return a, nil } @@ -330,7 +331,7 @@ func _1700414564_add_wallet_connect_pairings_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1700414564_add_wallet_connect_pairings_table.up.sql", size: 439, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1700414564_add_wallet_connect_pairings_table.up.sql", size: 439, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa9, 0x77, 0x5e, 0x19, 0x62, 0x3c, 0x3a, 0x81, 0x16, 0xa0, 0x95, 0x35, 0x62, 0xab, 0x5e, 0x2b, 0xea, 0x11, 0x71, 0x11, 0xd0, 0x9, 0xab, 0x9c, 0xab, 0xf2, 0xdd, 0x5f, 0x88, 0x83, 0x9a, 0x93}} return a, nil } @@ -350,7 +351,7 @@ func _1701101493_add_token_blocks_rangeUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1701101493_add_token_blocks_range.up.sql", size: 469, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1701101493_add_token_blocks_range.up.sql", size: 469, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe0, 0x37, 0xfb, 0x1a, 0x6c, 0x8c, 0xa8, 0x1e, 0xa2, 0xa5, 0x1f, 0x90, 0x73, 0x3e, 0x31, 0x5f, 0x48, 0x1e, 0x9a, 0x37, 0x27, 0x1c, 0xc, 0x67, 0x1, 0xcd, 0xec, 0x85, 0x4c, 0x1c, 0x26, 0x52}} return a, nil } @@ -370,7 +371,7 @@ func _1702467441_wallet_connect_sessions_instead_of_pairingsUpSql() (*asset, err return nil, err } - info := bindataFileInfo{name: "1702467441_wallet_connect_sessions_instead_of_pairings.up.sql", size: 356, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1702467441_wallet_connect_sessions_instead_of_pairings.up.sql", size: 356, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x73, 0x5f, 0x0, 0x60, 0x6, 0x28, 0x76, 0x61, 0x39, 0xdc, 0xa1, 0x84, 0x80, 0x46, 0x8a, 0xe4, 0x42, 0xb5, 0x1f, 0x18, 0x14, 0x23, 0x46, 0xb9, 0x51, 0xf, 0x62, 0xac, 0xc, 0x7, 0x98, 0xe}} return a, nil } @@ -390,7 +391,7 @@ func _1702577524_add_community_collections_and_collectibles_images_cacheUpSql() return nil, err } - info := bindataFileInfo{name: "1702577524_add_community_collections_and_collectibles_images_cache.up.sql", size: 210, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1702577524_add_community_collections_and_collectibles_images_cache.up.sql", size: 210, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x8e, 0x1b, 0x32, 0x2c, 0xfa, 0x11, 0x5e, 0x5e, 0x5d, 0xef, 0x92, 0xa0, 0x29, 0x52, 0xbf, 0x6e, 0xe3, 0x30, 0xe4, 0xdf, 0xdc, 0x5, 0xbe, 0xd1, 0xf8, 0x3e, 0xd9, 0x9b, 0xd6, 0x9b, 0x95, 0x96}} return a, nil } @@ -410,7 +411,7 @@ func _1702867707_add_balance_to_collectibles_ownership_cacheUpSql() (*asset, err return nil, err } - info := bindataFileInfo{name: "1702867707_add_balance_to_collectibles_ownership_cache.up.sql", size: 289, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1702867707_add_balance_to_collectibles_ownership_cache.up.sql", size: 289, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6f, 0x63, 0x30, 0x11, 0x22, 0xb9, 0xee, 0xae, 0xb8, 0xc4, 0xe6, 0xd3, 0x7, 0xc, 0xe6, 0xa3, 0x72, 0x8c, 0x6, 0x9d, 0x6c, 0x97, 0x8f, 0xb2, 0xd0, 0x37, 0x69, 0x69, 0x6, 0x7f, 0x67, 0x94}} return a, nil } @@ -430,7 +431,7 @@ func _1703686612_add_color_to_saved_addressesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1703686612_add_color_to_saved_addresses.up.sql", size: 114, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1703686612_add_color_to_saved_addresses.up.sql", size: 114, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb7, 0x6e, 0x8d, 0xc0, 0x49, 0xc, 0xb, 0x66, 0xa0, 0x77, 0x32, 0x76, 0xa8, 0xd0, 0x40, 0xce, 0x67, 0xa, 0x9e, 0x23, 0x36, 0xe, 0xc3, 0xd3, 0x9d, 0xe2, 0xde, 0x60, 0x19, 0xba, 0x44, 0xf1}} return a, nil } @@ -450,7 +451,7 @@ func _1704701942_remove_favourite_and_change_primary_key_for_saved_addressesUpSq return nil, err } - info := bindataFileInfo{name: "1704701942_remove_favourite_and_change_primary_key_for_saved_addresses.up.sql", size: 894, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1704701942_remove_favourite_and_change_primary_key_for_saved_addresses.up.sql", size: 894, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x70, 0xd3, 0xcf, 0x90, 0xb2, 0xa, 0x23, 0x41, 0x8a, 0xa5, 0x90, 0x7b, 0x34, 0xec, 0x3b, 0x3f, 0xa9, 0xb1, 0x95, 0xf3, 0x2a, 0xdf, 0xbb, 0x53, 0x57, 0x27, 0x2b, 0x12, 0x84, 0xf4, 0x83, 0xda}} return a, nil } @@ -470,7 +471,7 @@ func _1704913491_add_type_and_tx_timestamp_to_collectibles_ownership_cacheUpSql( return nil, err } - info := bindataFileInfo{name: "1704913491_add_type_and_tx_timestamp_to_collectibles_ownership_cache.up.sql", size: 73, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1704913491_add_type_and_tx_timestamp_to_collectibles_ownership_cache.up.sql", size: 73, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa2, 0xf0, 0x71, 0xb5, 0xaf, 0x22, 0xac, 0x77, 0xdb, 0x6f, 0x62, 0x27, 0x12, 0x46, 0x60, 0x3, 0x59, 0x43, 0x6f, 0x1, 0xdc, 0xe8, 0x6e, 0x89, 0xa5, 0x77, 0x37, 0x36, 0xd9, 0x4e, 0x6d, 0x9b}} return a, nil } @@ -490,7 +491,7 @@ func _1705664490_add_balance_check_fields_blocks_ranges_sequentialUpSql() (*asse return nil, err } - info := bindataFileInfo{name: "1705664490_add_balance_check_fields_blocks_ranges_sequential.up.sql", size: 84, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1705664490_add_balance_check_fields_blocks_ranges_sequential.up.sql", size: 84, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x3c, 0x49, 0x9, 0xd9, 0x83, 0x3d, 0xd8, 0xb7, 0x4f, 0x8f, 0xc2, 0xa2, 0xd1, 0xb, 0x57, 0x1f, 0x5, 0x39, 0x55, 0xfb, 0x6e, 0x32, 0x9e, 0x19, 0x3d, 0x3c, 0x77, 0xa2, 0xc4, 0xf4, 0x53, 0x35}} return a, nil } @@ -510,7 +511,7 @@ func _1706531789_remove_gasfeeOnlyEthTransfersUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1706531789_remove_gasfee-only-eth-transfers.up.sql", size: 627, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1706531789_remove_gasfee-only-eth-transfers.up.sql", size: 627, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xae, 0x8c, 0x37, 0xd3, 0x2a, 0xf, 0x1a, 0x8, 0xe9, 0xa7, 0x1f, 0x5a, 0x10, 0xa7, 0x4c, 0x36, 0x4f, 0xc6, 0xdc, 0xeb, 0x79, 0x90, 0xe7, 0xcd, 0x4a, 0xef, 0xb7, 0x3, 0x6e, 0x88, 0x6f, 0x79}} return a, nil } @@ -530,7 +531,7 @@ func _1707160323_add_contract_type_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1707160323_add_contract_type_table.up.sql", size: 282, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1707160323_add_contract_type_table.up.sql", size: 282, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x45, 0x99, 0xd9, 0x86, 0x72, 0x37, 0x97, 0xfc, 0xa7, 0xbb, 0xe3, 0x86, 0xf1, 0xfd, 0x77, 0x31, 0x91, 0xcb, 0xa4, 0x2c, 0x5b, 0xaa, 0x4b, 0xa2, 0x7f, 0x8a, 0x2c, 0x7a, 0xda, 0x20, 0x7a, 0x97}} return a, nil } @@ -550,7 +551,7 @@ func _1708089811_add_nullable_fiesl_blocks_rangesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1708089811_add_nullable_fiesl_blocks_ranges.up.sql", size: 450, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1708089811_add_nullable_fiesl_blocks_ranges.up.sql", size: 450, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x92, 0xec, 0x7c, 0xd7, 0x99, 0x36, 0xa3, 0xb5, 0xc, 0xaa, 0x59, 0x40, 0x4c, 0x69, 0xc6, 0x62, 0x6e, 0x10, 0x6a, 0x2b, 0xc7, 0x37, 0x24, 0xad, 0x39, 0x9b, 0xe6, 0xeb, 0xbf, 0xb6, 0x32, 0x24}} return a, nil } @@ -570,7 +571,7 @@ func _1710189541_add_nonce_to_pending_transactionsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1710189541_add_nonce_to_pending_transactions.up.sql", size: 54, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1710189541_add_nonce_to_pending_transactions.up.sql", size: 54, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6, 0x2e, 0x35, 0x7c, 0xf, 0x9, 0x63, 0x64, 0x4d, 0xdf, 0x8f, 0x99, 0x96, 0x66, 0xda, 0x81, 0x56, 0x84, 0x3b, 0xbf, 0x88, 0xf9, 0xb0, 0x7d, 0x9f, 0x87, 0x74, 0xa9, 0xb, 0x9a, 0x70, 0xcb}} return a, nil } @@ -590,7 +591,7 @@ func _1712567001_add_soulbound_collectible_cacheUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1712567001_add_soulbound_collectible_cache.up.sql", size: 75, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1712567001_add_soulbound_collectible_cache.up.sql", size: 75, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2e, 0x6c, 0x8b, 0x92, 0x49, 0x6c, 0x6, 0x66, 0x4c, 0xbb, 0x63, 0x4a, 0xc6, 0x7, 0xf2, 0x75, 0xef, 0xa9, 0xe5, 0xd9, 0x6c, 0x90, 0x9, 0xe4, 0x5f, 0xd1, 0xf3, 0x0, 0xd2, 0xf3, 0x0, 0xb8}} return a, nil } @@ -610,7 +611,7 @@ func _1714670633_add_id_to_multi_transaction_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1714670633_add_id_to_multi_transaction_table.up.sql", size: 1150, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1714670633_add_id_to_multi_transaction_table.up.sql", size: 1150, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa2, 0x17, 0x7e, 0x5a, 0x17, 0x7c, 0xf8, 0x9c, 0x60, 0xe4, 0xca, 0xd9, 0x32, 0xe5, 0x37, 0xd1, 0xa5, 0xcb, 0x56, 0xf4, 0x1e, 0x9e, 0x8d, 0x1b, 0x8d, 0x66, 0xaa, 0xd9, 0xce, 0x68, 0x3e, 0xcd}} return a, nil } @@ -630,11 +631,31 @@ func _1715637927_add_collection_socialsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1715637927_add_collection_socials.up.sql", size: 356, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "1715637927_add_collection_socials.up.sql", size: 356, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x63, 0x61, 0xb1, 0x1a, 0x75, 0x85, 0x89, 0x81, 0x1f, 0x84, 0x64, 0x62, 0x57, 0x6c, 0x85, 0xef, 0x17, 0x1a, 0xf2, 0x14, 0xcb, 0xd5, 0x7, 0x25, 0x98, 0x3a, 0x93, 0x7e, 0xd5, 0x9, 0xf6, 0xa0}} return a, nil } +var __1715839555_rename_chain_prefixesUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x0a\x0d\x70\x71\x0c\x71\x55\x28\x4e\x2c\x4b\x4d\x89\x4f\x4c\x49\x29\x4a\x2d\x2e\x4e\x2d\x56\x08\x76\x0d\x51\x48\xce\x48\xcc\xcc\x8b\x2f\xce\xc8\x2f\x2a\x89\xcf\x4b\xcc\x4d\x2d\x56\xb0\x55\x08\x72\x0d\xf0\x71\x74\x76\xd5\xc0\x90\xd3\x51\x50\x4f\x2c\x4a\xb2\x52\x87\xd0\x86\x56\xea\x9a\x0a\xe1\x1e\xae\x41\xae\x58\x4c\xf1\xf1\xf4\x76\x55\x50\x57\x05\x29\x57\x55\xb7\xe6\xa2\xa2\x0b\xf2\x0b\x4a\xc0\x2e\xc8\x4f\x2d\xc9\x20\xc2\x05\x20\xe5\xaa\xea\xd6\x80\x00\x00\x00\xff\xff\x88\x5e\xa1\x0f\x03\x01\x00\x00") + +func _1715839555_rename_chain_prefixesUpSqlBytes() ([]byte, error) { + return bindataRead( + __1715839555_rename_chain_prefixesUpSql, + "1715839555_rename_chain_prefixes.up.sql", + ) +} + +func _1715839555_rename_chain_prefixesUpSql() (*asset, error) { + bytes, err := _1715839555_rename_chain_prefixesUpSqlBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "1715839555_rename_chain_prefixes.up.sql", size: 259, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x35, 0x2c, 0x47, 0xd1, 0x87, 0x83, 0x91, 0x2c, 0xd0, 0xac, 0x73, 0x5a, 0x36, 0x5f, 0xeb, 0xdc, 0xb2, 0x1e, 0x8, 0x11, 0x98, 0x53, 0x82, 0x34, 0x32, 0x11, 0xe9, 0x13, 0x60, 0x87, 0x80, 0xc6}} + return a, nil +} + var _docGo = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x2c\xcb\x41\x0e\x02\x31\x08\x05\xd0\x7d\x4f\xf1\x2f\x00\xe8\xca\xc4\xc4\xc3\xa0\x43\x08\x19\x5b\xc6\x96\xfb\xc7\x4d\xdf\xfe\x5d\xfa\x39\xd5\x0d\xeb\xf7\x6d\x4d\xc4\xf3\xe9\x36\x6c\x6a\x19\x3c\xe9\x1d\xe3\xd0\x52\x50\xcf\xa3\xa2\xdb\xeb\xfe\xb8\x6d\xa0\xeb\x74\xf4\xf0\xa9\x15\x39\x16\x28\xc1\x2c\x7b\xb0\x27\x58\xda\x3f\x00\x00\xff\xff\x57\xd4\xd5\x90\x5e\x00\x00\x00") func docGoBytes() ([]byte, error) { @@ -650,7 +671,7 @@ func docGo() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "doc.go", size: 94, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)} + info := bindataFileInfo{name: "doc.go", size: 94, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2f, 0x81, 0x21, 0x7a, 0x87, 0xd2, 0xef, 0xcc, 0x25, 0x5e, 0x95, 0x3f, 0x25, 0x79, 0xf7, 0x18, 0xaf, 0x57, 0xe7, 0x1e, 0x58, 0x50, 0xbb, 0xea, 0x27, 0x98, 0x89, 0xe1, 0x9f, 0x5c, 0xf6, 0x0}} return a, nil } @@ -773,6 +794,7 @@ var _bindata = map[string]func() (*asset, error){ "1712567001_add_soulbound_collectible_cache.up.sql": _1712567001_add_soulbound_collectible_cacheUpSql, "1714670633_add_id_to_multi_transaction_table.up.sql": _1714670633_add_id_to_multi_transaction_tableUpSql, "1715637927_add_collection_socials.up.sql": _1715637927_add_collection_socialsUpSql, + "1715839555_rename_chain_prefixes.up.sql": _1715839555_rename_chain_prefixesUpSql, "doc.go": docGo, } @@ -849,6 +871,7 @@ var _bintree = &bintree{nil, map[string]*bintree{ "1712567001_add_soulbound_collectible_cache.up.sql": {_1712567001_add_soulbound_collectible_cacheUpSql, map[string]*bintree{}}, "1714670633_add_id_to_multi_transaction_table.up.sql": {_1714670633_add_id_to_multi_transaction_tableUpSql, map[string]*bintree{}}, "1715637927_add_collection_socials.up.sql": {_1715637927_add_collection_socialsUpSql, map[string]*bintree{}}, + "1715839555_rename_chain_prefixes.up.sql": {_1715839555_rename_chain_prefixesUpSql, map[string]*bintree{}}, "doc.go": {docGo, map[string]*bintree{}}, }} diff --git a/walletdatabase/migrations/sql/1715839555_rename_chain_prefixes.up.sql b/walletdatabase/migrations/sql/1715839555_rename_chain_prefixes.up.sql new file mode 100644 index 000000000..2e6e05a50 --- /dev/null +++ b/walletdatabase/migrations/sql/1715839555_rename_chain_prefixes.up.sql @@ -0,0 +1,2 @@ +UPDATE saved_addresses SET chain_short_names = REPLACE(chain_short_names, 'arb:', 'arb1:') WHERE chain_short_names LIKE '%arb:%'; +UPDATE saved_addresses SET chain_short_names = REPLACE(chain_short_names, 'opt:', 'oeth:') WHERE chain_short_names LIKE '%opt:%'; \ No newline at end of file