@ -14,8 +14,6 @@ config :block_scout_web,
decompiled_smart_contract_token : System . get_env ( " DECOMPILED_SMART_CONTRACT_TOKEN " ) ,
show_percentage : ConfigHelper . parse_bool_env_var ( " SHOW_ADDRESS_MARKETCAP_PERCENTAGE " , " true " ) ,
checksum_address_hashes : ConfigHelper . parse_bool_env_var ( " CHECKSUM_ADDRESS_HASHES " , " true " ) ,
link_to_other_explorers : ConfigHelper . parse_bool_env_var ( " LINK_TO_OTHER_EXPLORERS " ) ,
other_explorers : System . get_env ( " OTHER_EXPLORERS " ) ,
other_networks : System . get_env ( " SUPPORTED_CHAINS " ) ,
webapp_url : System . get_env ( " WEBAPP_URL " ) ,
api_url : System . get_env ( " API_URL " ) ,
@ -62,7 +60,6 @@ config :block_scout_web, BlockScoutWeb.Chain,
subnetwork : System . get_env ( " SUBNETWORK " ) ,
network_icon : System . get_env ( " NETWORK_ICON " ) ,
logo : System . get_env ( " LOGO " ) ,
logo_footer : System . get_env ( " LOGO_FOOTER " ) ,
logo_text : System . get_env ( " LOGO_TEXT " ) ,
has_emission_funds : false ,
show_maintenance_alert : ConfigHelper . parse_bool_env_var ( " SHOW_MAINTENANCE_ALERT " ) ,
@ -70,10 +67,13 @@ config :block_scout_web, BlockScoutWeb.Chain,
testnet_label_text : System . get_env ( " TESTNET_LABEL_TEXT " , " Testnet " )
config :block_scout_web , :footer ,
logo : System . get_env ( " FOOTER_LOGO " ) ,
chat_link : System . get_env ( " FOOTER_CHAT_LINK " , " https://discord.gg/blockscout " ) ,
forum_link : System . get_env ( " FOOTER_FORUM_LINK " , " https://forum.poa.network/c/blockscout " ) ,
github_link : System . get_env ( " FOOTER_GITHUB_LINK " , " https://github.com/blockscout/blockscout " ) ,
enable_forum_link : ConfigHelper . parse_bool_env_var ( " FOOTER_ENABLE_FORUM_LINK " )
forum_link_enabled : ConfigHelper . parse_bool_env_var ( " FOOTER_FORUM_LINK_ENABLED " ) ,
link_to_other_explorers : ConfigHelper . parse_bool_env_var ( " FOOTER_LINK_TO_OTHER_EXPLORERS " ) ,
other_explorers : System . get_env ( " FOOTER_OTHER_EXPLORERS " , " " )
config :block_scout_web , :contract ,
verification_max_libraries : ConfigHelper . parse_integer_env_var ( " CONTRACT_VERIFICATION_MAX_LIBRARIES " , 10 ) ,
@ -157,12 +157,15 @@ config :ethereum_jsonrpc, EthereumJSONRPC.PendingTransaction,
disable_indexer? = ConfigHelper . parse_bool_env_var ( " DISABLE_INDEXER " )
disable_webapp? = ConfigHelper . parse_bool_env_var ( " DISABLE_WEBAPP " )
checksum_function = System . get_env ( " CHECKSUM_FUNCTION " )
exchange_rates_coin = System . get_env ( " EXCHANGE_RATES_COIN " )
config :explorer ,
coin : System . get_env ( " COIN " ) || System . get_env ( " EXCHANGE_RATES_COIN " ) || " ETH " ,
coin_name : System . get_env ( " COIN_NAME " ) || System . get_env ( " EXCHANGE_RATES_COIN " ) || " ETH " ,
coin : System . get_env ( " COIN " ) || exchange_rates_coin || " ETH " ,
coin_name : System . get_env ( " COIN_NAME " ) || exchange_rates_coin || " ETH " ,
allowed_evm_versions :
System . get_env ( " CONTRACT_VERIFICATION_ALLOWED_EVM_VERSIONS " ) ||
" homestead,tangerineWhistle,spuriousDragon,byzantium,constantinople,petersburg,istanbul,berlin,london,default " ,
" homestead,tangerineWhistle,spuriousDragon,byzantium,constantinople,petersburg,istanbul,berlin,london,paris, default " ,
include_uncles_in_average_block_time : ConfigHelper . parse_bool_env_var ( " UNCLES_IN_AVERAGE_BLOCK_TIME " ) ,
healthy_blocks_period : ConfigHelper . parse_time_env_var ( " HEALTHY_BLOCKS_PERIOD " , " 5m " ) ,
realtime_events_sender :
@ -176,7 +179,7 @@ config :explorer,
implementation_data_fetching_timeout : :timer . seconds ( 2 ) ,
restricted_list : System . get_env ( " RESTRICTED_LIST " ) ,
restricted_list_key : System . get_env ( " RESTRICTED_LIST_KEY " ) ,
checksum_function : System . get_env ( " CHECKSUM_FUNCTION " ) && String . to_atom ( System . get_env ( " CHECKSUM_FUNCTION " ) ) ,
checksum_function : checksum_function && String . to_atom ( checksum_function ) ,
elasticity_multiplier : ConfigHelper . parse_integer_env_var ( " EIP_1559_ELASTICITY_MULTIPLIER " , 2 )
config :explorer , Explorer.Chain.Events.Listener ,
@ -263,7 +266,7 @@ config :explorer, Explorer.ExchangeRates.TokenExchangeRates,
config :explorer , Explorer.Market.History.Cataloger , enabled : ! disable_indexer?
config :explorer , Explorer.Chain.Transaction.History.Historian ,
enabled : ConfigHelper . parse_bool_env_var ( " ENABLE_ TXS_STATS" , " true " ) ,
enabled : ConfigHelper . parse_bool_env_var ( " TXS_STATS_ENABLED " , " true " ) ,
init_lag_milliseconds : ConfigHelper . parse_time_env_var ( " TXS_HISTORIAN_INIT_LAG " , " 0 " ) ,
days_to_compile_at_init : ConfigHelper . parse_integer_env_var ( " TXS_STATS_DAYS_TO_COMPILE_AT_INIT " , 40 )
@ -315,23 +318,23 @@ config :explorer, Explorer.Chain.Cache.Uncles,
config :explorer , Explorer.ThirdPartyIntegrations.Sourcify ,
server_url : System . get_env ( " SOURCIFY_SERVER_URL " ) || " https://sourcify.dev/server " ,
enabled : ConfigHelper . parse_bool_env_var ( " ENABLE_ SOURCIFY_INTEGRATION" ) ,
enabled : ConfigHelper . parse_bool_env_var ( " SOURCIFY_INTEGRATION_ENABLED " ) ,
chain_id : System . get_env ( " CHAIN_ID " ) ,
repo_url : System . get_env ( " SOURCIFY_REPO_URL " ) || " https://repo.sourcify.dev/contracts "
config :explorer , Explorer.SmartContract.RustVerifierInterfaceBehaviour ,
service_url : System . get_env ( " RUST_VERIFICATION_SERVICE _URL" ) ,
enabled : ConfigHelper . parse_bool_env_var ( " ENABLE_RUST_VERIFICATION_SERVICE " ) ,
service_url : System . get_env ( " MICROSERVICE_SC_VERIFIER _URL" ) ,
enabled : ConfigHelper . parse_bool_env_var ( " MICROSERVICE_SC_VERIFIER_ENABLED " ) ,
# or "eth_bytecode_db"
type : System . get_env ( " MICROSERVICE_SC_VERIFIER_TYPE " , " sc_verifier " )
config :explorer , Explorer.Visualize.Sol2uml ,
service_url : System . get_env ( " VISUALIZE_SOL2UML_SERVICE _URL " ) ,
enabled : ConfigHelper . parse_bool_env_var ( " VISUALIZE_SOL2UML_ENABLED " )
service_url : System . get_env ( " MICROSERVICE_ VISUALIZE_SOL2UML_URL" ) ,
enabled : ConfigHelper . parse_bool_env_var ( " MICROSERVICE_ VISUALIZE_SOL2UML_ENABLED" )
config :explorer , Explorer.SmartContract.SigProviderInterface ,
service_url : System . get_env ( " SIG_PROVIDER_SERVICE _URL " ) ,
enabled : ConfigHelper . parse_bool_env_var ( " SIG_PROVIDER_ENABLED " )
service_url : System . get_env ( " MICROSERVICE_ SIG_PROVIDER_URL" ) ,
enabled : ConfigHelper . parse_bool_env_var ( " MICROSERVICE_ SIG_PROVIDER_ENABLED" )
config :explorer , Explorer.ThirdPartyIntegrations.AirTable ,
table_url : System . get_env ( " ACCOUNT_PUBLIC_TAGS_AIRTABLE_URL " ) ,