diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address_decompiled_contract/_metatags.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address_decompiled_contract/_metatags.html.eex new file mode 100644 index 0000000000..3ef2a67ca2 --- /dev/null +++ b/apps/block_scout_web/lib/block_scout_web/templates/address_decompiled_contract/_metatags.html.eex @@ -0,0 +1 @@ +<%= render BlockScoutWeb.AddressView, "_metatags.html", conn: @conn, address: @address %> diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address_decompiled_contract/index.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address_decompiled_contract/index.html.eex new file mode 100644 index 0000000000..b86db16f7d --- /dev/null +++ b/apps/block_scout_web/lib/block_scout_web/templates/address_decompiled_contract/index.html.eex @@ -0,0 +1,24 @@ +
+ <%= render BlockScoutWeb.AddressView, "overview.html", assigns %> + +
+
+ <%= render BlockScoutWeb.AddressView, "_tabs.html", assigns %> +
+ +
+
+
+

<%= gettext "Decompiled contract code" %>

+ +
+
+
<%= List.first(@address.decompiled_smart_contracts).decompiled_source_code %>
+
+
+ +
+
+
diff --git a/apps/block_scout_web/priv/gettext/default.pot b/apps/block_scout_web/priv/gettext/default.pot index 7e163ab9b3..adf3a003fc 100644 --- a/apps/block_scout_web/priv/gettext/default.pot +++ b/apps/block_scout_web/priv/gettext/default.pot @@ -188,7 +188,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:40 -#: lib/block_scout_web/templates/address/_tabs.html.eex:103 +#: lib/block_scout_web/templates/address/_tabs.html.eex:113 #: lib/block_scout_web/templates/address/overview.html.eex:59 #: lib/block_scout_web/templates/address_validation/index.html.eex:30 #: lib/block_scout_web/templates/address_validation/index.html.eex:57 @@ -218,7 +218,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:53 -#: lib/block_scout_web/templates/address/_tabs.html.eex:113 +#: lib/block_scout_web/templates/address/_tabs.html.eex:123 #: lib/block_scout_web/templates/address_validation/index.html.eex:39 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:119 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:141 @@ -488,7 +488,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:21 -#: lib/block_scout_web/templates/address/_tabs.html.eex:90 +#: lib/block_scout_web/templates/address/_tabs.html.eex:100 #: lib/block_scout_web/templates/address_internal_transaction/index.html.eex:58 #: lib/block_scout_web/templates/address_validation/index.html.eex:24 #: lib/block_scout_web/templates/transaction/_tabs.html.eex:14 @@ -698,8 +698,8 @@ msgid "Query" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/address/_tabs.html.eex:65 -#: lib/block_scout_web/templates/address/_tabs.html.eex:122 +#: lib/block_scout_web/templates/address/_tabs.html.eex:75 +#: lib/block_scout_web/templates/address/_tabs.html.eex:132 #: lib/block_scout_web/templates/tokens/overview/_tabs.html.eex:33 #: lib/block_scout_web/templates/tokens/overview/_tabs.html.eex:75 #: lib/block_scout_web/views/address_view.ex:291 @@ -891,7 +891,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:13 -#: lib/block_scout_web/templates/address/_tabs.html.eex:85 +#: lib/block_scout_web/templates/address/_tabs.html.eex:95 #: lib/block_scout_web/templates/address_token/index.html.eex:11 #: lib/block_scout_web/templates/address_token_transfer/index.html.eex:12 #: lib/block_scout_web/templates/address_validation/index.html.eex:11 @@ -948,7 +948,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:5 -#: lib/block_scout_web/templates/address/_tabs.html.eex:80 +#: lib/block_scout_web/templates/address/_tabs.html.eex:90 #: lib/block_scout_web/templates/address_transaction/index.html.eex:53 #: lib/block_scout_web/templates/address_validation/index.html.eex:14 #: lib/block_scout_web/templates/block_transaction/index.html.eex:13 @@ -1399,7 +1399,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:30 -#: lib/block_scout_web/templates/address/_tabs.html.eex:96 +#: lib/block_scout_web/templates/address/_tabs.html.eex:106 #: lib/block_scout_web/views/address_view.ex:292 msgid "Coin Balance History" msgstr "" @@ -1701,3 +1701,8 @@ msgstr "" #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:58 msgid "Enter constructor arguments if the contract had any" msgstr "" + +#, elixir-format +#: lib/block_scout_web/templates/address/_tabs.html.eex:66 +msgid "Decompiled code" +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 96707da7de..8d59503719 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 @@ -188,7 +188,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:40 -#: lib/block_scout_web/templates/address/_tabs.html.eex:103 +#: lib/block_scout_web/templates/address/_tabs.html.eex:113 #: lib/block_scout_web/templates/address/overview.html.eex:59 #: lib/block_scout_web/templates/address_validation/index.html.eex:30 #: lib/block_scout_web/templates/address_validation/index.html.eex:57 @@ -218,7 +218,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:53 -#: lib/block_scout_web/templates/address/_tabs.html.eex:113 +#: lib/block_scout_web/templates/address/_tabs.html.eex:123 #: lib/block_scout_web/templates/address_validation/index.html.eex:39 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:119 #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:141 @@ -488,7 +488,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:21 -#: lib/block_scout_web/templates/address/_tabs.html.eex:90 +#: lib/block_scout_web/templates/address/_tabs.html.eex:100 #: lib/block_scout_web/templates/address_internal_transaction/index.html.eex:58 #: lib/block_scout_web/templates/address_validation/index.html.eex:24 #: lib/block_scout_web/templates/transaction/_tabs.html.eex:14 @@ -698,8 +698,8 @@ msgid "Query" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/address/_tabs.html.eex:65 -#: lib/block_scout_web/templates/address/_tabs.html.eex:122 +#: lib/block_scout_web/templates/address/_tabs.html.eex:75 +#: lib/block_scout_web/templates/address/_tabs.html.eex:132 #: lib/block_scout_web/templates/tokens/overview/_tabs.html.eex:33 #: lib/block_scout_web/templates/tokens/overview/_tabs.html.eex:75 #: lib/block_scout_web/views/address_view.ex:291 @@ -891,7 +891,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:13 -#: lib/block_scout_web/templates/address/_tabs.html.eex:85 +#: lib/block_scout_web/templates/address/_tabs.html.eex:95 #: lib/block_scout_web/templates/address_token/index.html.eex:11 #: lib/block_scout_web/templates/address_token_transfer/index.html.eex:12 #: lib/block_scout_web/templates/address_validation/index.html.eex:11 @@ -948,7 +948,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:5 -#: lib/block_scout_web/templates/address/_tabs.html.eex:80 +#: lib/block_scout_web/templates/address/_tabs.html.eex:90 #: lib/block_scout_web/templates/address_transaction/index.html.eex:53 #: lib/block_scout_web/templates/address_validation/index.html.eex:14 #: lib/block_scout_web/templates/block_transaction/index.html.eex:13 @@ -1399,7 +1399,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/address/_tabs.html.eex:30 -#: lib/block_scout_web/templates/address/_tabs.html.eex:96 +#: lib/block_scout_web/templates/address/_tabs.html.eex:106 #: lib/block_scout_web/views/address_view.ex:292 msgid "Coin Balance History" msgstr "" @@ -1636,11 +1636,6 @@ msgstr "" msgid "Contract Libraries" msgstr "" -#, elixir-format -#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:58 -msgid "Enter contructor arguments if the contract had any" -msgstr "" - #, elixir-format #: lib/block_scout_web/templates/address/overview.html.eex:52 msgid "Last Balance Update: Block #" @@ -1697,7 +1692,17 @@ msgstr "" msgid "Search by address, token symbol name, transaction hash, or block number" msgstr "" -#, elixir-format, fuzzy +#, elixir-format #: lib/block_scout_web/templates/address_contract_verification/new.html.eex:31 msgid "EVM Version" msgstr "" + +#, elixir-format, fuzzy +#: lib/block_scout_web/templates/address_contract_verification/new.html.eex:58 +msgid "Enter constructor arguments if the contract had any" +msgstr "" + +#, elixir-format +#: lib/block_scout_web/templates/address/_tabs.html.eex:66 +msgid "Decompiled code" +msgstr ""