diff --git a/.dialyzer-ignore b/.dialyzer-ignore index b4de7e82a0..11bb3be729 100644 --- a/.dialyzer-ignore +++ b/.dialyzer-ignore @@ -3,4 +3,5 @@ :0: Unknown type 'Elixir.Map':t/0 apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex:400: Function timestamp_to_datetime/1 has no local return apps/explorer/lib/explorer/repo/prometheus_logger.ex:8: Function microseconds_time/1 has no local return -apps/explorer/lib/explorer/repo/prometheus_logger.ex:8: The call 'Elixir.System':convert_time_unit(__@1::any(),'native','microseconds') breaks the contract (integer(),time_unit() | 'native',time_unit() | 'native') -> integer() \ No newline at end of file +apps/explorer/lib/explorer/repo/prometheus_logger.ex:8: The call 'Elixir.System':convert_time_unit(__@1::any(),'native','microseconds') breaks the contract (integer(),time_unit() | 'native',time_unit() | 'native') -> integer() +apps/block_scout_web/lib/block_scout_web/views/layout_view.ex:162: The call 'Elixir.Poison.Parser':'parse!'(any(),#{'keys':='atoms!'}) will never return since the success typing is (binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | byte(),binary() | []),[{atom(),_}]) -> 'false' | 'nil' | 'true' | binary() | ['false' | 'nil' | 'true' | binary() | [any()] | number() | map()] | number() | map() and the contract is (iodata(),'Elixir.Keyword':t()) -> t() \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index deeba161c6..a29f0440e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ - [#1814](https://github.com/poanetwork/blockscout/pull/1814) - Clear build artefacts script - [#1837](https://github.com/poanetwork/blockscout/pull/1837) - Add -f flag to clear_build.sh script delete static folder +- [#1900](https://github.com/poanetwork/blockscout/pull/1900) - SUPPORTED_CHAINS ENV var - [#1892](https://github.com/poanetwork/blockscout/pull/1892) - Remove temporary worker modules ## 1.3.10-beta diff --git a/apps/block_scout_web/config/config.exs b/apps/block_scout_web/config/config.exs index 78b887b122..f38ed779b5 100644 --- a/apps/block_scout_web/config/config.exs +++ b/apps/block_scout_web/config/config.exs @@ -28,65 +28,7 @@ config :block_scout_web, "EtherChain" => "https://www.etherchain.org/", "Bloxy" => "https://bloxy.info/" }, - other_networks: [ - %{ - title: "POA Core", - url: "https://blockscout.com/poa/core" - }, - %{ - title: "POA Sokol", - url: "https://blockscout.com/poa/sokol", - test_net?: true - }, - %{ - title: "xDai Chain", - url: "https://blockscout.com/poa/dai" - }, - %{ - title: "Ethereum Mainnet", - url: "https://blockscout.com/eth/mainnet" - }, - %{ - title: "Kovan Testnet", - url: "https://blockscout.com/eth/kovan", - test_net?: true - }, - %{ - title: "Ropsten Testnet", - url: "https://blockscout.com/eth/ropsten", - test_net?: true - }, - %{ - title: "Goerli Testnet", - url: "https://blockscout.com/eth/goerli", - test_net?: true - }, - %{ - title: "Rinkeby Testnet", - url: "https://blockscout.com/eth/rinkeby", - test_net?: true - }, - %{ - title: "Ethereum Classic", - url: "https://blockscout.com/etc/mainnet", - other?: true - }, - %{ - title: "Aerum Mainnet", - url: "https://blockscout.com/aerum/mainnet", - other?: true - }, - %{ - title: "Callisto Mainnet", - url: "https://blockscout.com/callisto/mainnet", - other?: true - }, - %{ - title: "RSK Mainnet", - url: "https://blockscout.com/rsk/mainnet", - other?: true - } - ] + other_networks: System.get_env("SUPPORTED_CHAINS") config :block_scout_web, BlockScoutWeb.Counters.BlocksIndexedCounter, enabled: true diff --git a/apps/block_scout_web/lib/block_scout_web/templates/layout/_footer.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/layout/_footer.html.eex index 09b5aabf05..b03b9f964f 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/layout/_footer.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/layout/_footer.html.eex @@ -37,7 +37,7 @@
  • <%= gettext("Support") %>
  • - <% main_nets = main_nets() %> + <% main_nets = main_nets(other_networks()) %> <%= unless Enum.empty?(main_nets) do %> <% end %> - <% test_nets = test_nets() %> + <% test_nets = test_nets(other_networks()) %> <%= unless Enum.empty?(test_nets) do %>