@ -187,7 +187,7 @@ config :ethereum_jsonrpc, EthereumJSONRPC.Geth,
block_traceable? : ConfigHelper . parse_bool_env_var ( " ETHEREUM_JSONRPC_GETH_TRACE_BY_BLOCK " ) ,
debug_trace_timeout : System . get_env ( " ETHEREUM_JSONRPC_DEBUG_TRACE_TRANSACTION_TIMEOUT " , " 5s " ) ,
tracer :
if ( ConfigHelper . chain_type ( ) == " polygon_edge" ,
if ( ConfigHelper . chain_type ( ) == : polygon_edge,
do : " polygon_edge " ,
else : System . get_env ( " INDEXER_INTERNAL_TRANSACTIONS_TRACER_TYPE " , " call_tracer " )
)
@ -284,7 +284,7 @@ config :explorer, Explorer.Chain.Cache.RootstockLockedBTC,
global_ttl : ConfigHelper . parse_time_env_var ( " ROOTSTOCK_LOCKED_BTC_CACHE_PERIOD " , " 10m " ) ,
locking_cap : ConfigHelper . parse_integer_env_var ( " ROOTSTOCK_LOCKING_CAP " , 21_000_000 )
config :explorer , Explorer.Chain.Cache.OptimismFinalizationPeriod , enabled : ConfigHelper . chain_type ( ) == " optimism"
config :explorer , Explorer.Chain.Cache.OptimismFinalizationPeriod , enabled : ConfigHelper . chain_type ( ) == : optimism
config :explorer , Explorer.Counters.AddressTransactionsGasUsageCounter ,
cache_period : ConfigHelper . parse_time_env_var ( " CACHE_ADDRESS_TRANSACTIONS_GAS_USAGE_COUNTER_PERIOD " , " 30m " )
@ -313,8 +313,8 @@ config :explorer, Explorer.Counters.AddressTokenTransfersCounter,
cache_period : ConfigHelper . parse_time_env_var ( " CACHE_ADDRESS_TOKEN_TRANSFERS_COUNTER_PERIOD " , " 1h " )
config :explorer , Explorer.Counters.LastOutputRootSizeCounter ,
enabled : ConfigHelper . chain_type ( ) == " optimism" ,
enable_consolidation : ConfigHelper . chain_type ( ) == " optimism" ,
enabled : ConfigHelper . chain_type ( ) == : optimism,
enable_consolidation : ConfigHelper . chain_type ( ) == : optimism,
cache_period : ConfigHelper . parse_time_env_var ( " CACHE_OPTIMISM_LAST_OUTPUT_ROOT_SIZE_COUNTER_PERIOD " , " 5m " )
config :explorer , Explorer.Counters.Transactions24hStats ,
@ -754,12 +754,12 @@ config :indexer, Indexer.Fetcher.CoinBalance.Realtime,
batch_size : coin_balances_batch_size ,
concurrency : coin_balances_concurrency
config :indexer , Indexer.Fetcher.Optimism.TxnBatch.Supervisor , enabled : ConfigHelper . chain_type ( ) == " optimism"
config :indexer , Indexer.Fetcher.Optimism.OutputRoot.Supervisor , enabled : ConfigHelper . chain_type ( ) == " optimism"
config :indexer , Indexer.Fetcher.Optimism.DisputeGame.Supervisor , enabled : ConfigHelper . chain_type ( ) == " optimism"
config :indexer , Indexer.Fetcher.Optimism.Deposit.Supervisor , enabled : ConfigHelper . chain_type ( ) == " optimism"
config :indexer , Indexer.Fetcher.Optimism.Withdrawal.Supervisor , enabled : ConfigHelper . chain_type ( ) == " optimism"
config :indexer , Indexer.Fetcher.Optimism.WithdrawalEvent.Supervisor , enabled : ConfigHelper . chain_type ( ) == " optimism"
config :indexer , Indexer.Fetcher.Optimism.TxnBatch.Supervisor , enabled : ConfigHelper . chain_type ( ) == : optimism
config :indexer , Indexer.Fetcher.Optimism.OutputRoot.Supervisor , enabled : ConfigHelper . chain_type ( ) == : optimism
config :indexer , Indexer.Fetcher.Optimism.DisputeGame.Supervisor , enabled : ConfigHelper . chain_type ( ) == : optimism
config :indexer , Indexer.Fetcher.Optimism.Deposit.Supervisor , enabled : ConfigHelper . chain_type ( ) == : optimism
config :indexer , Indexer.Fetcher.Optimism.Withdrawal.Supervisor , enabled : ConfigHelper . chain_type ( ) == : optimism
config :indexer , Indexer.Fetcher.Optimism.WithdrawalEvent.Supervisor , enabled : ConfigHelper . chain_type ( ) == : optimism
config :indexer , Indexer.Fetcher.Optimism ,
optimism_l1_rpc : System . get_env ( " INDEXER_OPTIMISM_L1_RPC " ) ,
@ -793,15 +793,15 @@ config :indexer, Indexer.Fetcher.Withdrawal.Supervisor,
config :indexer , Indexer.Fetcher.Withdrawal , first_block : System . get_env ( " WITHDRAWALS_FIRST_BLOCK " )
config :indexer , Indexer.Fetcher.PolygonEdge.Deposit.Supervisor , enabled : ConfigHelper . chain_type ( ) == " polygon_edge"
config :indexer , Indexer.Fetcher.PolygonEdge.Deposit.Supervisor , enabled : ConfigHelper . chain_type ( ) == : polygon_edge
config :indexer , Indexer.Fetcher.PolygonEdge.DepositExecute.Supervisor ,
enabled : ConfigHelper . chain_type ( ) == " polygon_edge"
enabled : ConfigHelper . chain_type ( ) == : polygon_edge
config :indexer , Indexer.Fetcher.PolygonEdge.Withdrawal.Supervisor , enabled : ConfigHelper . chain_type ( ) == " polygon_edge"
config :indexer , Indexer.Fetcher.PolygonEdge.Withdrawal.Supervisor , enabled : ConfigHelper . chain_type ( ) == : polygon_edge
config :indexer , Indexer.Fetcher.PolygonEdge.WithdrawalExit.Supervisor ,
enabled : ConfigHelper . chain_type ( ) == " polygon_edge"
enabled : ConfigHelper . chain_type ( ) == : polygon_edge
config :indexer , Indexer.Fetcher.PolygonEdge ,
polygon_edge_l1_rpc : System . get_env ( " INDEXER_POLYGON_EDGE_L1_RPC " ) ,
@ -841,7 +841,7 @@ config :indexer, Indexer.Fetcher.ZkSync.BatchesStatusTracker.Supervisor,
config :indexer , Indexer.Fetcher.RootstockData.Supervisor ,
disabled? :
ConfigHelper . chain_type ( ) != " rsk" || ConfigHelper . parse_bool_env_var ( " INDEXER_DISABLE_ROOTSTOCK_DATA_FETCHER " )
ConfigHelper . chain_type ( ) != : rsk || ConfigHelper . parse_bool_env_var ( " INDEXER_DISABLE_ROOTSTOCK_DATA_FETCHER " )
config :indexer , Indexer.Fetcher.RootstockData ,
interval : ConfigHelper . parse_time_env_var ( " INDEXER_ROOTSTOCK_DATA_FETCHER_INTERVAL " , " 3s " ) ,
@ -853,7 +853,7 @@ config :indexer, Indexer.Fetcher.Beacon, beacon_rpc: System.get_env("INDEXER_BEA
config :indexer , Indexer.Fetcher.Beacon.Blob.Supervisor ,
disabled? :
ConfigHelper . chain_type ( ) != " ethereum" ||
ConfigHelper . chain_type ( ) != : ethereum ||
ConfigHelper . parse_bool_env_var ( " INDEXER_DISABLE_BEACON_BLOB_FETCHER " )
config :indexer , Indexer.Fetcher.Beacon.Blob ,
@ -880,9 +880,9 @@ config :indexer, Indexer.Fetcher.Shibarium.L2,
weth : System . get_env ( " INDEXER_SHIBARIUM_L2_WETH_CONTRACT " ) ,
bone_withdraw : System . get_env ( " INDEXER_SHIBARIUM_L2_BONE_WITHDRAW_CONTRACT " )
config :indexer , Indexer.Fetcher.Shibarium.L1.Supervisor , enabled : ConfigHelper . chain_type ( ) == " shibarium"
config :indexer , Indexer.Fetcher.Shibarium.L1.Supervisor , enabled : ConfigHelper . chain_type ( ) == : shibarium
config :indexer , Indexer.Fetcher.Shibarium.L2.Supervisor , enabled : ConfigHelper . chain_type ( ) == " shibarium"
config :indexer , Indexer.Fetcher.Shibarium.L2.Supervisor , enabled : ConfigHelper . chain_type ( ) == : shibarium
config :indexer , Indexer.Fetcher.PolygonZkevm.BridgeL1 ,
rpc : System . get_env ( " INDEXER_POLYGON_ZKEVM_L1_RPC " ) ,
@ -893,10 +893,10 @@ config :indexer, Indexer.Fetcher.PolygonZkevm.BridgeL1,
rollup_network_id_l1 : ConfigHelper . parse_integer_or_nil_env_var ( " INDEXER_POLYGON_ZKEVM_L1_BRIDGE_NETWORK_ID " ) ,
rollup_index_l1 : ConfigHelper . parse_integer_or_nil_env_var ( " INDEXER_POLYGON_ZKEVM_L1_BRIDGE_ROLLUP_INDEX " )
config :indexer , Indexer.Fetcher.PolygonZkevm.BridgeL1.Supervisor , enabled : ConfigHelper . chain_type ( ) == " polygon_zkevm"
config :indexer , Indexer.Fetcher.PolygonZkevm.BridgeL1.Supervisor , enabled : ConfigHelper . chain_type ( ) == : polygon_zkevm
config :indexer , Indexer.Fetcher.PolygonZkevm.BridgeL1Tokens.Supervisor ,
enabled : ConfigHelper . chain_type ( ) == " polygon_zkevm"
enabled : ConfigHelper . chain_type ( ) == : polygon_zkevm
config :indexer , Indexer.Fetcher.PolygonZkevm.BridgeL2 ,
start_block : System . get_env ( " INDEXER_POLYGON_ZKEVM_L2_BRIDGE_START_BLOCK " ) ,
@ -904,7 +904,7 @@ config :indexer, Indexer.Fetcher.PolygonZkevm.BridgeL2,
rollup_network_id_l2 : ConfigHelper . parse_integer_or_nil_env_var ( " INDEXER_POLYGON_ZKEVM_L2_BRIDGE_NETWORK_ID " ) ,
rollup_index_l2 : ConfigHelper . parse_integer_or_nil_env_var ( " INDEXER_POLYGON_ZKEVM_L2_BRIDGE_ROLLUP_INDEX " )
config :indexer , Indexer.Fetcher.PolygonZkevm.BridgeL2.Supervisor , enabled : ConfigHelper . chain_type ( ) == " polygon_zkevm"
config :indexer , Indexer.Fetcher.PolygonZkevm.BridgeL2.Supervisor , enabled : ConfigHelper . chain_type ( ) == : polygon_zkevm
config :indexer , Indexer.Fetcher.PolygonZkevm.TransactionBatch ,
chunk_size : ConfigHelper . parse_integer_env_var ( " INDEXER_POLYGON_ZKEVM_BATCHES_CHUNK_SIZE " , 20 ) ,
@ -912,7 +912,7 @@ config :indexer, Indexer.Fetcher.PolygonZkevm.TransactionBatch,
config :indexer , Indexer.Fetcher.PolygonZkevm.TransactionBatch.Supervisor ,
enabled :
ConfigHelper . chain_type ( ) == " polygon_zkevm" &&
ConfigHelper . chain_type ( ) == : polygon_zkevm &&
ConfigHelper . parse_bool_env_var ( " INDEXER_POLYGON_ZKEVM_BATCHES_ENABLED " )
Code . require_file ( " #{ config_env ( ) } .exs " , " config/runtime " )