diff --git a/CHANGELOG.md b/CHANGELOG.md index 02689fc8f234..07b04558ef40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ ### Fixes +- [#6303](https://github.com/blockscout/blockscout/pull/6303) - Fix some UI bugs - [#6243](https://github.com/blockscout/blockscout/pull/6243) - Fix freezes on `/blocks` page - [#6162](https://github.com/blockscout/blockscout/pull/6162) - Extend token symbol type varchar(255) -> text - [#6158](https://github.com/blockscout/blockscout/pull/6158) - Add missing clause for merge_twin_vyper_contract_with_changeset function diff --git a/apps/block_scout_web/assets/package-lock.json b/apps/block_scout_web/assets/package-lock.json index 2d82e115ad1f..236970e79274 100644 --- a/apps/block_scout_web/assets/package-lock.json +++ b/apps/block_scout_web/assets/package-lock.json @@ -81,7 +81,7 @@ "eslint-plugin-import": "^2.26.0", "eslint-plugin-n": "^15.6.0", "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^6.1.0", + "eslint-plugin-promise": "^6.1.1", "file-loader": "^6.2.0", "jest": "^29.2.1", "jest-environment-jsdom": "^29.2.1", diff --git a/apps/block_scout_web/assets/package.json b/apps/block_scout_web/assets/package.json index 966334e06e16..e1a85fd06e4c 100644 --- a/apps/block_scout_web/assets/package.json +++ b/apps/block_scout_web/assets/package.json @@ -93,7 +93,7 @@ "eslint-plugin-import": "^2.26.0", "eslint-plugin-n": "^15.6.0", "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^6.1.0", + "eslint-plugin-promise": "^6.1.1", "file-loader": "^6.2.0", "jest": "^29.2.1", "jest-junit": "^10.0.0", diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address/overview.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address/overview.html.eex index cbf660102235..bfa27ae66ffa 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address/overview.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address/overview.html.eex @@ -115,7 +115,8 @@ "data-test": "transaction_hash_link" ) %> <% else %> - + <% end %> diff --git a/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex index 9f17b8f56db7..52dd715fdea8 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex @@ -205,7 +205,7 @@ <%= render BlockScoutWeb.AddressView, "_labels.html", tags: @from_tags %> <%= render BlockScoutWeb.CommonComponentsView, "_btn_copy.html", additional_classes: ["btn-copy-icon-small", "btn-copy-icon-custom", "btn-copy-icon-no-borders"], - clipboard_text: from_address_hash, + clipboard_text: Address.checksum(from_address_hash), aria_label: gettext("Copy From Address"), title: gettext("Copy From Address") %> @@ -232,7 +232,7 @@  <%= gettext("created") %>] <%= render BlockScoutWeb.CommonComponentsView, "_btn_copy.html", additional_classes: ["btn-copy-icon-small", "btn-copy-icon-custom", "btn-copy-icon-no-borders"], - clipboard_text: recipient_address_hash, + clipboard_text: Address.checksum(recipient_address_hash), aria_label: gettext("Copy To Address"), title: gettext("Copy To Address") %> <% recipient_address_hash -> %> @@ -240,7 +240,7 @@ <%= render BlockScoutWeb.AddressView, "_labels.html", tags: @to_tags %> <%= render BlockScoutWeb.CommonComponentsView, "_btn_copy.html", additional_classes: ["btn-copy-icon-small", "btn-copy-icon-custom", "btn-copy-icon-no-borders"], - clipboard_text: recipient_address_hash, + clipboard_text: Address.checksum(recipient_address_hash), aria_label: gettext("Copy To Address"), title: gettext("Copy To Address") %> <% true -> %> diff --git a/apps/block_scout_web/priv/gettext/default.pot b/apps/block_scout_web/priv/gettext/default.pot index 76e4e8cd0282..8fccd52bba0f 100644 --- a/apps/block_scout_web/priv/gettext/default.pot +++ b/apps/block_scout_web/priv/gettext/default.pot @@ -209,7 +209,7 @@ msgstr "" msgid "All metadata displayed below is from that contract. In order to verify current contract, click" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:238 +#: lib/block_scout_web/templates/address/overview.html.eex:239 #, elixir-autogen, elixir-format msgid "All tokens in the account and total value." msgstr "" @@ -246,7 +246,7 @@ msgid "Back Home" msgstr "" #: lib/block_scout_web/templates/account/watchlist/show.html.eex:24 -#: lib/block_scout_web/templates/address/overview.html.eex:149 +#: lib/block_scout_web/templates/address/overview.html.eex:150 #: lib/block_scout_web/templates/address_token/overview.html.eex:51 #: lib/block_scout_web/templates/verified_contracts/index.html.eex:60 #, elixir-autogen, elixir-format @@ -334,7 +334,7 @@ msgstr "" msgid "Block number containing the transaction." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:321 +#: lib/block_scout_web/templates/address/overview.html.eex:322 #, elixir-autogen, elixir-format msgid "Block number in which the address was updated." msgstr "" @@ -360,7 +360,7 @@ msgid "Blocks Indexed" msgstr "" #: lib/block_scout_web/templates/address/_tabs.html.eex:56 -#: lib/block_scout_web/templates/address/overview.html.eex:339 +#: lib/block_scout_web/templates/address/overview.html.eex:340 #: lib/block_scout_web/templates/address_validation/index.html.eex:11 #: lib/block_scout_web/views/address_view.ex:438 #, elixir-autogen, elixir-format @@ -372,11 +372,11 @@ msgstr "" msgid "Blockscout is a tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for the Celo Network." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:178 -#: lib/block_scout_web/templates/address/overview.html.eex:191 -#: lib/block_scout_web/templates/address/overview.html.eex:204 -#: lib/block_scout_web/templates/address/overview.html.eex:217 -#: lib/block_scout_web/templates/address/overview.html.eex:230 +#: lib/block_scout_web/templates/address/overview.html.eex:179 +#: lib/block_scout_web/templates/address/overview.html.eex:192 +#: lib/block_scout_web/templates/address/overview.html.eex:205 +#: lib/block_scout_web/templates/address/overview.html.eex:218 +#: lib/block_scout_web/templates/address/overview.html.eex:231 #: lib/block_scout_web/templates/epoch_transaction/_election_tile.html.eex:24 #: lib/block_scout_web/templates/epoch_transaction/_epoch_tile.html.eex:23 #: lib/block_scout_web/templates/verified_contracts/_tile.html.eex:29 @@ -1010,7 +1010,7 @@ msgstr "" msgid "Error: (Awaiting internal transactions for reason)" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:118 +#: lib/block_scout_web/templates/address/overview.html.eex:119 #, elixir-autogen, elixir-format msgid "Error: Could not determine contract creator." msgstr "" @@ -1112,7 +1112,7 @@ msgstr "" msgid "Gas Tracker" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:304 +#: lib/block_scout_web/templates/address/overview.html.eex:305 #: lib/block_scout_web/templates/block/_tile.html.eex:92 #: lib/block_scout_web/templates/block/overview.html.eex:250 #: lib/block_scout_web/templates/block/overview.html.eex:352 @@ -1125,7 +1125,7 @@ msgstr "" msgid "Gas Used by Transaction" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:303 +#: lib/block_scout_web/templates/address/overview.html.eex:304 #, elixir-autogen, elixir-format msgid "Gas used by the address." msgstr "" @@ -1196,7 +1196,7 @@ msgstr "" msgid "If you have just submitted this transaction please wait for at least 30 seconds before refreshing this page." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:131 +#: lib/block_scout_web/templates/address/overview.html.eex:132 #, elixir-autogen, elixir-format msgid "Implementation" msgstr "" @@ -1206,7 +1206,7 @@ msgstr "" msgid "Implementation Name:" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:130 +#: lib/block_scout_web/templates/address/overview.html.eex:131 #, elixir-autogen, elixir-format msgid "Implementation address of the proxy contract." msgstr "" @@ -1273,7 +1273,7 @@ msgstr "" msgid "It could still be in the TX Pool of a different node, waiting to be broadcasted." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:322 +#: lib/block_scout_web/templates/address/overview.html.eex:323 #, elixir-autogen, elixir-format msgid "Last Balance Update" msgstr "" @@ -1311,7 +1311,7 @@ msgstr "" msgid "License ID" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:214 +#: lib/block_scout_web/templates/address/overview.html.eex:215 #, elixir-autogen, elixir-format msgid "Lifetime Voting Rewards" msgstr "" @@ -1547,12 +1547,12 @@ msgstr "" msgid "Not unique Token" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:249 +#: lib/block_scout_web/templates/address/overview.html.eex:250 #, elixir-autogen, elixir-format msgid "Number of transactions related to this address." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:276 +#: lib/block_scout_web/templates/address/overview.html.eex:277 #, elixir-autogen, elixir-format msgid "Number of transfers to/from this address." msgstr "" @@ -2313,7 +2313,7 @@ msgid "Token name and symbol." msgstr "" #: lib/block_scout_web/templates/address/_tabs.html.eex:21 -#: lib/block_scout_web/templates/address/overview.html.eex:239 +#: lib/block_scout_web/templates/address/overview.html.eex:240 #: lib/block_scout_web/templates/address_token/overview.html.eex:58 #: lib/block_scout_web/templates/address_token_transfer/index.html.eex:13 #: lib/block_scout_web/templates/tokens/index.html.eex:9 @@ -2448,9 +2448,9 @@ msgid "Transaction type, introduced in EIP-2718." msgstr "" #: lib/block_scout_web/templates/address/_tabs.html.eex:7 -#: lib/block_scout_web/templates/address/overview.html.eex:250 -#: lib/block_scout_web/templates/address/overview.html.eex:256 -#: lib/block_scout_web/templates/address/overview.html.eex:264 +#: lib/block_scout_web/templates/address/overview.html.eex:251 +#: lib/block_scout_web/templates/address/overview.html.eex:257 +#: lib/block_scout_web/templates/address/overview.html.eex:265 #: lib/block_scout_web/templates/address_transaction/index.html.eex:13 #: lib/block_scout_web/templates/block/_tabs.html.eex:4 #: lib/block_scout_web/templates/block/overview.html.eex:120 @@ -2471,9 +2471,9 @@ msgstr "" msgid "Transactions sent" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:277 -#: lib/block_scout_web/templates/address/overview.html.eex:283 -#: lib/block_scout_web/templates/address/overview.html.eex:291 +#: lib/block_scout_web/templates/address/overview.html.eex:278 +#: lib/block_scout_web/templates/address/overview.html.eex:284 +#: lib/block_scout_web/templates/address/overview.html.eex:292 #: lib/block_scout_web/templates/tokens/instance/overview/_details.html.eex:50 #: lib/block_scout_web/templates/tokens/overview/_details.html.eex:118 #, elixir-autogen, elixir-format @@ -2726,7 +2726,7 @@ msgstr "" msgid "Voting Rewards" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:213 +#: lib/block_scout_web/templates/address/overview.html.eex:214 #, elixir-autogen, elixir-format msgid "Voting rewards accumulated over time." msgstr "" @@ -2808,7 +2808,7 @@ msgstr "" msgid "cStables" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:230 +#: lib/block_scout_web/templates/address/overview.html.eex:231 #, elixir-autogen, elixir-format msgid "cUSD" msgstr "" @@ -2902,19 +2902,19 @@ msgstr "CELO" msgid "CRC Worth" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:311 +#: lib/block_scout_web/templates/address/overview.html.eex:312 #, elixir-autogen, elixir-format msgid "Fetching gas used..." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:258 -#: lib/block_scout_web/templates/address/overview.html.eex:266 +#: lib/block_scout_web/templates/address/overview.html.eex:259 +#: lib/block_scout_web/templates/address/overview.html.eex:267 #, elixir-autogen, elixir-format msgid "Fetching transactions..." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:285 -#: lib/block_scout_web/templates/address/overview.html.eex:293 +#: lib/block_scout_web/templates/address/overview.html.eex:286 +#: lib/block_scout_web/templates/address/overview.html.eex:294 #: lib/block_scout_web/templates/tokens/overview/_details.html.eex:122 #, elixir-autogen, elixir-format msgid "Fetching transfers..." @@ -3035,7 +3035,7 @@ msgstr "" msgid "Attestations" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:175 +#: lib/block_scout_web/templates/address/overview.html.eex:176 #, elixir-autogen, elixir-format msgid "Locked CELO Balance" msgstr "" @@ -3050,12 +3050,12 @@ msgstr "" msgid "Moola" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:201 +#: lib/block_scout_web/templates/address/overview.html.eex:202 #, elixir-autogen, elixir-format msgid "Pending Unlocked Gold" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:226 +#: lib/block_scout_web/templates/address/overview.html.eex:227 #, elixir-autogen, elixir-format msgid "Total amount of epoch rewards this address has received, all time." msgstr "" @@ -3065,7 +3065,7 @@ msgstr "" msgid "Uniswap" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:227 +#: lib/block_scout_web/templates/address/overview.html.eex:228 #, elixir-autogen, elixir-format msgid "Validator Rewards | Voting Rewards" msgstr "" @@ -3085,17 +3085,17 @@ msgstr "" msgid "cLabs" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:200 +#: lib/block_scout_web/templates/address/overview.html.eex:201 #, elixir-autogen, elixir-format msgid "Amount of CELO that’s in the process of being unlocked (3 days)" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:174 +#: lib/block_scout_web/templates/address/overview.html.eex:175 #, elixir-autogen, elixir-format msgid "Amount of locked CELO in the protocol" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:187 +#: lib/block_scout_web/templates/address/overview.html.eex:188 #, elixir-autogen, elixir-format msgid "Amount of locked CELO that has been activated to vote for validator(s)" msgstr "" @@ -3122,7 +3122,7 @@ msgstr "" msgid "Add" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:338 +#: lib/block_scout_web/templates/address/overview.html.eex:339 #, elixir-autogen, elixir-format msgid "Number of blocks validated by this validator." msgstr "" @@ -3142,7 +3142,7 @@ msgstr "" msgid "View previous block" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:188 +#: lib/block_scout_web/templates/address/overview.html.eex:189 #, elixir-autogen, elixir-format msgid "Voting CELO Balance" msgstr "" @@ -3173,12 +3173,12 @@ msgstr "" msgid "Slow" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:148 +#: lib/block_scout_web/templates/address/overview.html.eex:149 #, elixir-autogen, elixir-format msgid "Address balance in" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:148 +#: lib/block_scout_web/templates/address/overview.html.eex:149 #, elixir-autogen, elixir-format msgid "doesn't include ERC20, ERC721, ERC1155 tokens)." msgstr "" @@ -3724,3 +3724,8 @@ msgstr "" #, elixir-autogen, elixir-format msgid "View previous epoch" msgstr "" + +#: lib/block_scout_web/templates/address/overview.html.eex:119 +#, elixir-autogen, elixir-format +msgid "Contract was precompiled and created at genesis or contract creation transaction is missing" +msgstr "" diff --git a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po index f6e802296a35..c29071b95e02 100644 --- a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po +++ b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po @@ -210,7 +210,7 @@ msgstr "" msgid "All metadata displayed below is from that contract. In order to verify current contract, click" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:238 +#: lib/block_scout_web/templates/address/overview.html.eex:239 #, elixir-autogen, elixir-format msgid "All tokens in the account and total value." msgstr "" @@ -247,7 +247,7 @@ msgid "Back Home" msgstr "" #: lib/block_scout_web/templates/account/watchlist/show.html.eex:24 -#: lib/block_scout_web/templates/address/overview.html.eex:149 +#: lib/block_scout_web/templates/address/overview.html.eex:150 #: lib/block_scout_web/templates/address_token/overview.html.eex:51 #: lib/block_scout_web/templates/verified_contracts/index.html.eex:60 #, elixir-autogen, elixir-format @@ -335,7 +335,7 @@ msgstr "" msgid "Block number containing the transaction." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:321 +#: lib/block_scout_web/templates/address/overview.html.eex:322 #, elixir-autogen, elixir-format msgid "Block number in which the address was updated." msgstr "" @@ -361,7 +361,7 @@ msgid "Blocks Indexed" msgstr "" #: lib/block_scout_web/templates/address/_tabs.html.eex:56 -#: lib/block_scout_web/templates/address/overview.html.eex:339 +#: lib/block_scout_web/templates/address/overview.html.eex:340 #: lib/block_scout_web/templates/address_validation/index.html.eex:11 #: lib/block_scout_web/views/address_view.ex:438 #, elixir-autogen, elixir-format @@ -373,11 +373,11 @@ msgstr "" msgid "Blockscout is a tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for the Celo Network." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:178 -#: lib/block_scout_web/templates/address/overview.html.eex:191 -#: lib/block_scout_web/templates/address/overview.html.eex:204 -#: lib/block_scout_web/templates/address/overview.html.eex:217 -#: lib/block_scout_web/templates/address/overview.html.eex:230 +#: lib/block_scout_web/templates/address/overview.html.eex:179 +#: lib/block_scout_web/templates/address/overview.html.eex:192 +#: lib/block_scout_web/templates/address/overview.html.eex:205 +#: lib/block_scout_web/templates/address/overview.html.eex:218 +#: lib/block_scout_web/templates/address/overview.html.eex:231 #: lib/block_scout_web/templates/epoch_transaction/_election_tile.html.eex:24 #: lib/block_scout_web/templates/epoch_transaction/_epoch_tile.html.eex:23 #: lib/block_scout_web/templates/verified_contracts/_tile.html.eex:29 @@ -1011,7 +1011,7 @@ msgstr "" msgid "Error: (Awaiting internal transactions for reason)" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:118 +#: lib/block_scout_web/templates/address/overview.html.eex:119 #, elixir-autogen, elixir-format msgid "Error: Could not determine contract creator." msgstr "" @@ -1113,7 +1113,7 @@ msgstr "" msgid "Gas Tracker" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:304 +#: lib/block_scout_web/templates/address/overview.html.eex:305 #: lib/block_scout_web/templates/block/_tile.html.eex:92 #: lib/block_scout_web/templates/block/overview.html.eex:250 #: lib/block_scout_web/templates/block/overview.html.eex:352 @@ -1126,7 +1126,7 @@ msgstr "" msgid "Gas Used by Transaction" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:303 +#: lib/block_scout_web/templates/address/overview.html.eex:304 #, elixir-autogen, elixir-format msgid "Gas used by the address." msgstr "" @@ -1197,7 +1197,7 @@ msgstr "" msgid "If you have just submitted this transaction please wait for at least 30 seconds before refreshing this page." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:131 +#: lib/block_scout_web/templates/address/overview.html.eex:132 #, elixir-autogen, elixir-format msgid "Implementation" msgstr "" @@ -1207,7 +1207,7 @@ msgstr "" msgid "Implementation Name:" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:130 +#: lib/block_scout_web/templates/address/overview.html.eex:131 #, elixir-autogen, elixir-format msgid "Implementation address of the proxy contract." msgstr "" @@ -1274,7 +1274,7 @@ msgstr "" msgid "It could still be in the TX Pool of a different node, waiting to be broadcasted." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:322 +#: lib/block_scout_web/templates/address/overview.html.eex:323 #, elixir-autogen, elixir-format msgid "Last Balance Update" msgstr "" @@ -1312,7 +1312,7 @@ msgstr "" msgid "License ID" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:214 +#: lib/block_scout_web/templates/address/overview.html.eex:215 #, elixir-autogen, elixir-format msgid "Lifetime Voting Rewards" msgstr "" @@ -1548,12 +1548,12 @@ msgstr "" msgid "Not unique Token" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:249 +#: lib/block_scout_web/templates/address/overview.html.eex:250 #, elixir-autogen, elixir-format msgid "Number of transactions related to this address." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:276 +#: lib/block_scout_web/templates/address/overview.html.eex:277 #, elixir-autogen, elixir-format msgid "Number of transfers to/from this address." msgstr "" @@ -2314,7 +2314,7 @@ msgid "Token name and symbol." msgstr "" #: lib/block_scout_web/templates/address/_tabs.html.eex:21 -#: lib/block_scout_web/templates/address/overview.html.eex:239 +#: lib/block_scout_web/templates/address/overview.html.eex:240 #: lib/block_scout_web/templates/address_token/overview.html.eex:58 #: lib/block_scout_web/templates/address_token_transfer/index.html.eex:13 #: lib/block_scout_web/templates/tokens/index.html.eex:9 @@ -2449,9 +2449,9 @@ msgid "Transaction type, introduced in EIP-2718." msgstr "" #: lib/block_scout_web/templates/address/_tabs.html.eex:7 -#: lib/block_scout_web/templates/address/overview.html.eex:250 -#: lib/block_scout_web/templates/address/overview.html.eex:256 -#: lib/block_scout_web/templates/address/overview.html.eex:264 +#: lib/block_scout_web/templates/address/overview.html.eex:251 +#: lib/block_scout_web/templates/address/overview.html.eex:257 +#: lib/block_scout_web/templates/address/overview.html.eex:265 #: lib/block_scout_web/templates/address_transaction/index.html.eex:13 #: lib/block_scout_web/templates/block/_tabs.html.eex:4 #: lib/block_scout_web/templates/block/overview.html.eex:120 @@ -2472,9 +2472,9 @@ msgstr "" msgid "Transactions sent" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:277 -#: lib/block_scout_web/templates/address/overview.html.eex:283 -#: lib/block_scout_web/templates/address/overview.html.eex:291 +#: lib/block_scout_web/templates/address/overview.html.eex:278 +#: lib/block_scout_web/templates/address/overview.html.eex:284 +#: lib/block_scout_web/templates/address/overview.html.eex:292 #: lib/block_scout_web/templates/tokens/instance/overview/_details.html.eex:50 #: lib/block_scout_web/templates/tokens/overview/_details.html.eex:118 #, elixir-autogen, elixir-format @@ -2727,7 +2727,7 @@ msgstr "" msgid "Voting Rewards" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:213 +#: lib/block_scout_web/templates/address/overview.html.eex:214 #, elixir-autogen, elixir-format msgid "Voting rewards accumulated over time." msgstr "" @@ -2809,7 +2809,7 @@ msgstr "" msgid "cStables" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:230 +#: lib/block_scout_web/templates/address/overview.html.eex:231 #, elixir-autogen, elixir-format msgid "cUSD" msgstr "" @@ -2903,19 +2903,19 @@ msgstr "CELO" msgid "CRC Worth" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:311 +#: lib/block_scout_web/templates/address/overview.html.eex:312 #, elixir-autogen, elixir-format msgid "Fetching gas used..." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:258 -#: lib/block_scout_web/templates/address/overview.html.eex:266 +#: lib/block_scout_web/templates/address/overview.html.eex:259 +#: lib/block_scout_web/templates/address/overview.html.eex:267 #, elixir-autogen, elixir-format msgid "Fetching transactions..." msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:285 -#: lib/block_scout_web/templates/address/overview.html.eex:293 +#: lib/block_scout_web/templates/address/overview.html.eex:286 +#: lib/block_scout_web/templates/address/overview.html.eex:294 #: lib/block_scout_web/templates/tokens/overview/_details.html.eex:122 #, elixir-autogen, elixir-format msgid "Fetching transfers..." @@ -3036,7 +3036,7 @@ msgstr "" msgid "Attestations" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:175 +#: lib/block_scout_web/templates/address/overview.html.eex:176 #, elixir-autogen, elixir-format msgid "Locked CELO Balance" msgstr "" @@ -3051,12 +3051,12 @@ msgstr "" msgid "Moola" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:201 +#: lib/block_scout_web/templates/address/overview.html.eex:202 #, elixir-autogen, elixir-format msgid "Pending Unlocked Gold" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:226 +#: lib/block_scout_web/templates/address/overview.html.eex:227 #, elixir-autogen, elixir-format msgid "Total amount of epoch rewards this address has received, all time." msgstr "" @@ -3066,7 +3066,7 @@ msgstr "" msgid "Uniswap" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:227 +#: lib/block_scout_web/templates/address/overview.html.eex:228 #, elixir-autogen, elixir-format msgid "Validator Rewards | Voting Rewards" msgstr "" @@ -3086,17 +3086,17 @@ msgstr "" msgid "cLabs" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:200 +#: lib/block_scout_web/templates/address/overview.html.eex:201 #, elixir-autogen, elixir-format msgid "Amount of CELO that’s in the process of being unlocked (3 days)" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:174 +#: lib/block_scout_web/templates/address/overview.html.eex:175 #, elixir-autogen, elixir-format msgid "Amount of locked CELO in the protocol" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:187 +#: lib/block_scout_web/templates/address/overview.html.eex:188 #, elixir-autogen, elixir-format msgid "Amount of locked CELO that has been activated to vote for validator(s)" msgstr "" @@ -3123,7 +3123,7 @@ msgstr "" msgid "Add" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:338 +#: lib/block_scout_web/templates/address/overview.html.eex:339 #, elixir-autogen, elixir-format msgid "Number of blocks validated by this validator." msgstr "" @@ -3143,7 +3143,7 @@ msgstr "" msgid "View previous block" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:188 +#: lib/block_scout_web/templates/address/overview.html.eex:189 #, elixir-autogen, elixir-format msgid "Voting CELO Balance" msgstr "" @@ -3174,12 +3174,12 @@ msgstr "" msgid "Slow" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:148 +#: lib/block_scout_web/templates/address/overview.html.eex:149 #, elixir-autogen, elixir-format msgid "Address balance in" msgstr "" -#: lib/block_scout_web/templates/address/overview.html.eex:148 +#: lib/block_scout_web/templates/address/overview.html.eex:149 #, elixir-autogen, elixir-format msgid "doesn't include ERC20, ERC721, ERC1155 tokens)." msgstr "" @@ -3725,3 +3725,8 @@ msgstr "" #, elixir-autogen, elixir-format, fuzzy msgid "View previous epoch" msgstr "" + +#: lib/block_scout_web/templates/address/overview.html.eex:119 +#, elixir-autogen, elixir-format +msgid "Contract was precompiled and created at genesis or contract creation transaction is missing" +msgstr "" diff --git a/apps/explorer/lib/explorer/chain.ex b/apps/explorer/lib/explorer/chain.ex index abe0b2e6992b..18b51cd3ae9e 100644 --- a/apps/explorer/lib/explorer/chain.ex +++ b/apps/explorer/lib/explorer/chain.ex @@ -1520,7 +1520,7 @@ defmodule Explorer.Chain do _ -> case Integer.parse(term) do - {block_number, _} -> + {block_number, ""} -> from(block in Block, where: block.number == ^block_number, select: %{ @@ -1542,7 +1542,9 @@ defmodule Explorer.Chain do end end - def joint_search(paging_options, offset, string) do + def joint_search(paging_options, offset, raw_string) do + string = String.trim(raw_string) + case prepare_search_term(string) do {:some, term} -> tokens_query = search_token_query(term) diff --git a/apps/explorer/lib/mix/tasks/list_events.ex b/apps/explorer/lib/mix/tasks/list_events.ex index bedca7db9007..f90f33a3d4d5 100644 --- a/apps/explorer/lib/mix/tasks/list_events.ex +++ b/apps/explorer/lib/mix/tasks/list_events.ex @@ -82,13 +82,11 @@ defmodule Mix.Tasks.ListEvents do topic = SmartContractHelper.event_abi_to_topic_str(event) tracked = MapSet.member?(tracked_topics, topic) - IO.puts( - " #{name} - #{topic} - #{if tracked do - "tracked" - else - "untracked" - end} " - ) + IO.puts(" #{name} - #{topic} - #{if tracked do + "tracked" + else + "untracked" + end} ") end) end end diff --git a/mix.exs b/mix.exs index 2da3deb74633..3ec5d7cf2496 100644 --- a/mix.exs +++ b/mix.exs @@ -99,7 +99,7 @@ defmodule BlockScout.Mixfile do {:absinthe_plug, git: "https://github.com/blockscout/absinthe_plug.git", tag: "1.5.3", override: true}, {:tesla, "~> 1.4.4"}, # Documentation - {:ex_doc, "~> 0.28.2", only: :dev, runtime: false}, + {:ex_doc, "~> 0.29.0", only: :dev, runtime: false}, {:number, "~> 1.0.3"} ] end diff --git a/mix.lock b/mix.lock index 95541f798b2e..96e046cf6450 100644 --- a/mix.lock +++ b/mix.lock @@ -35,7 +35,7 @@ "deep_merge": {:hex, :deep_merge, "1.0.0", "b4aa1a0d1acac393bdf38b2291af38cb1d4a52806cf7a4906f718e1feb5ee961", [:mix], [], "hexpm", "ce708e5f094b9cd4e8f2be4f00d2f4250c4095be93f8cd6d018c753894885430"}, "dialyxir": {:hex, :dialyxir, "1.2.0", "58344b3e87c2e7095304c81a9ae65cb68b613e28340690dfe1a5597fd08dec37", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "61072136427a851674cab81762be4dbeae7679f85b1272b6d25c3a839aff8463"}, "digital_token": {:hex, :digital_token, "0.4.0", "2ad6894d4a40be8b2890aad286ecd5745fa473fa5699d80361a8c94428edcd1f", [:mix], [{:cldr_utils, "~> 2.17", [hex: :cldr_utils, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "a178edf61d1fee5bb3c34e14b0f4ee21809ee87cade8738f87337e59e5e66e26"}, - "earmark_parser": {:hex, :earmark_parser, "1.4.28", "0bf6546eb7cd6185ae086cbc5d20cd6dbb4b428aad14c02c49f7b554484b4586", [:mix], [], "hexpm", "501cef12286a3231dc80c81352a9453decf9586977f917a96e619293132743fb"}, + "earmark_parser": {:hex, :earmark_parser, "1.4.29", "149d50dcb3a93d9f3d6f3ecf18c918fb5a2d3c001b5d3305c926cddfbd33355b", [:mix], [], "hexpm", "4902af1b3eb139016aed210888748db8070b8125c2342ce3dcae4f38dcc63503"}, "ecto": {:hex, :ecto, "3.9.1", "67173b1687afeb68ce805ee7420b4261649d5e2deed8fe5550df23bab0bc4396", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "c80bb3d736648df790f7f92f81b36c922d9dd3203ca65be4ff01d067f54eb304"}, "ecto_sql": {:hex, :ecto_sql, "3.9.0", "2bb21210a2a13317e098a420a8c1cc58b0c3421ab8e3acfa96417dab7817918c", [:mix], [{:db_connection, "~> 2.5 or ~> 2.4.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.9.0", [hex: :ecto, repo: "hexpm", optional: false]}, {:myxql, "~> 0.6.0", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.16.0 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:tds, "~> 2.1.1 or ~> 2.2", [hex: :tds, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "a8f3f720073b8b1ac4c978be25fa7960ed7fd44997420c304a4a2e200b596453"}, "elixir_make": {:hex, :elixir_make, "0.6.3", "bc07d53221216838d79e03a8019d0839786703129599e9619f4ab74c8c096eac", [:mix], [], "hexpm", "f5cbd651c5678bcaabdbb7857658ee106b12509cd976c2c2fca99688e1daf716"}, @@ -47,7 +47,7 @@ "ex_cldr_lists": {:hex, :ex_cldr_lists, "2.10.0", "4d4c9877da2d0417fd832907d69974e8328969f75fafc79b05ccf85f549f6281", [:mix], [{:ex_cldr_numbers, "~> 2.25", [hex: :ex_cldr_numbers, repo: "hexpm", optional: false]}, {:ex_doc, "~> 0.18", [hex: :ex_doc, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "adc040cde7b97f7fd7c0b35dd69ddb6fcf607303ae6355bb1851deae1f8b0652"}, "ex_cldr_numbers": {:hex, :ex_cldr_numbers, "2.27.3", "d6c1f1fb27ada01a77a7e0cf4ef0c59ad122a23829b6fd601820ac783d1bc9a5", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:digital_token, "~> 0.3 or ~> 1.0", [hex: :digital_token, repo: "hexpm", optional: false]}, {:ex_cldr, "~> 2.28", [hex: :ex_cldr, repo: "hexpm", optional: false]}, {:ex_cldr_currencies, "~> 2.14", [hex: :ex_cldr_currencies, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "2550dccc5232b90507e78a9fdee49d453249681e85d874f7d6703059be426724"}, "ex_cldr_units": {:hex, :ex_cldr_units, "3.14.0", "1a86dc28689987ae06dc69f47803f5f6d59a01c8fbb4117c06fd6f7ca58b3d95", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:ex_cldr_lists, "~> 2.10", [hex: :ex_cldr_lists, repo: "hexpm", optional: false]}, {:ex_cldr_numbers, "~> 2.26", [hex: :ex_cldr_numbers, repo: "hexpm", optional: false]}, {:ex_doc, "~> 0.18", [hex: :ex_doc, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:ratio, "~> 2.4", [hex: :ratio, repo: "hexpm", optional: false]}], "hexpm", "07d72e97f40d9af2d6802cebc50fe045afdb57f42dda4da2ec20da754358f9e3"}, - "ex_doc": {:hex, :ex_doc, "0.28.6", "2bbd7a143d3014fc26de9056793e97600ae8978af2ced82c2575f130b7c0d7d7", [:mix], [{:earmark_parser, "~> 1.4.19", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "bca1441614654710ba37a0e173079273d619f9160cbcc8cd04e6bd59f1ad0e29"}, + "ex_doc": {:hex, :ex_doc, "0.29.0", "4a1cb903ce746aceef9c1f9ae8a6c12b742a5461e6959b9d3b24d813ffbea146", [:mix], [{:earmark_parser, "~> 1.4.19", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "f096adb8bbca677d35d278223361c7792d496b3fc0d0224c9d4bc2f651af5db1"}, "ex_json_schema": {:hex, :ex_json_schema, "0.9.2", "c9a42e04e70cd70eb11a8903a22e8ec344df16edef4cb8e6ec84ed0caffc9f0f", [:mix], [{:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}], "hexpm", "4854329cb352b6c01c4c4b8dbfb3be14dc5bea19ea13e0eafade4ff22ba55224"}, "ex_keccak": {:hex, :ex_keccak, "0.6.0", "0e1f8974dd6630dd4fb0b64f9eabbceeffb9675da3ab95dea653798365802cf4", [:mix], [{:rustler, "~> 0.26", [hex: :rustler, repo: "hexpm", optional: false]}], "hexpm", "84b20cfe6a063edab311b2c8ff8b221698c84cbd5fbdba059e51636540142538"}, "ex_machina": {:hex, :ex_machina, "2.7.0", "b792cc3127fd0680fecdb6299235b4727a4944a09ff0fa904cc639272cd92dc7", [:mix], [{:ecto, "~> 2.2 or ~> 3.0", [hex: :ecto, repo: "hexpm", optional: true]}, {:ecto_sql, "~> 3.0", [hex: :ecto_sql, repo: "hexpm", optional: true]}], "hexpm", "419aa7a39bde11894c87a615c4ecaa52d8f107bbdd81d810465186f783245bf8"}, @@ -129,7 +129,7 @@ "remote_ip": {:hex, :remote_ip, "1.0.0", "3d7fb45204a5704443f480cee9515e464997f52c35e0a60b6ece1f81484067ae", [:mix], [{:combine, "~> 0.10", [hex: :combine, repo: "hexpm", optional: false]}, {:plug, "~> 1.10", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "9e9fcad4e50c43b5234bb6a9629ed6ab223f3ed07147bd35470e4ee5c8caf907"}, "rustler": {:hex, :rustler, "0.26.0", "06a2773d453ee3e9109efda643cf2ae633dedea709e2455ac42b83637c9249bf", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:toml, "~> 0.6", [hex: :toml, repo: "hexpm", optional: false]}], "hexpm", "42961e9d2083d004d5a53e111ad1f0c347efd9a05cb2eb2ffa1d037cdc74db91"}, "sobelow": {:hex, :sobelow, "0.11.1", "23438964486f8112b41e743bbfd402da3e5b296fdc9eacab29914b79c48916dd", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "9897363a7eff96f4809304a90aad819e2ad5e5d24db547af502885146746a53c"}, - "spandex": {:hex, :spandex, "3.1.0", "e43df29af70f6f0c13ddd07a5e68650e13dd2a76c6215977c651e64412e8ebee", [:mix], [{:decorator, "~> 1.2", [hex: :decorator, repo: "hexpm", optional: true]}, {:optimal, "~> 0.3.3", [hex: :optimal, repo: "hexpm", optional: false]}, {:plug, ">= 1.0.0", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "6b053ab307856e34237f06a5ea931eeadf78bdd6f00a49bbfb4103e004a3d3c7"}, + "spandex": {:hex, :spandex, "3.2.0", "f8cd40146ea988c87f3c14054150c9a47ba17e53cd4515c00e1f93c29c45404d", [:mix], [{:decorator, "~> 1.2", [hex: :decorator, repo: "hexpm", optional: true]}, {:optimal, "~> 0.3.3", [hex: :optimal, repo: "hexpm", optional: false]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "d0a7d5aef4c5af9cf5467f2003e8a5d8d2bdae3823a6cc95d776b9a2251d4d03"}, "spandex_datadog": {:hex, :spandex_datadog, "1.3.0", "cabe82980f55612a8befa6c12904b1a429bf17faf7271a94b9aae278af6362cf", [:mix], [{:msgpax, "~> 2.2.1 or ~> 2.3", [hex: :msgpax, repo: "hexpm", optional: false]}, {:spandex, "~> 3.0", [hex: :spandex, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "c826e4e29d1612e866b2c7bae2df3beeee84fc57351968c2772672afe59b789c"}, "spandex_ecto": {:hex, :spandex_ecto, "0.7.0", "259ad2feb7c834e774ec623f99c0fbacca8d60a73be212f92b75e37f853c81be", [:mix], [{:spandex, "~> 2.2 or ~> 3.0", [hex: :spandex, repo: "hexpm", optional: false]}], "hexpm", "c64784be79d95538013b7c60828830411c5c7aff1f4e8d66dfe564b3c83b500e"}, "spandex_phoenix": {:hex, :spandex_phoenix, "1.1.0", "9cff829d05258dd49a227c56711b19b69a8fd5d4873d8e9a92a4f4097e7322ab", [:mix], [{:phoenix, "~> 1.0", [hex: :phoenix, repo: "hexpm", optional: true]}, {:plug, "~> 1.3", [hex: :plug, repo: "hexpm", optional: false]}, {:spandex, "~> 2.2 or ~> 3.0", [hex: :spandex, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: true]}], "hexpm", "265fe05c1736485fbb75d66ef7576682ebf6428c391dd54d22217f612fd4ddad"},