mirror of
https://github.com/luxfi/explorer-v1.git
synced 2026-10-30 19:34:59 +00:00
36 lines
1.2 KiB
Elixir
36 lines
1.2 KiB
Elixir
import Config
|
|
|
|
~w(config config_helper.exs)
|
|
|> Path.join()
|
|
|> Code.eval_file()
|
|
|
|
config :explorer,
|
|
json_rpc_named_arguments: [
|
|
transport: EthereumJSONRPC.HTTP,
|
|
transport_options: [
|
|
http: EthereumJSONRPC.HTTP.Tesla,
|
|
urls: ConfigHelper.parse_urls_list(:http),
|
|
trace_urls: ConfigHelper.parse_urls_list(:trace),
|
|
eth_call_urls: ConfigHelper.parse_urls_list(:eth_call),
|
|
fallback_urls: ConfigHelper.parse_urls_list(:fallback_http),
|
|
fallback_trace_urls: ConfigHelper.parse_urls_list(:fallback_trace),
|
|
fallback_eth_call_urls: ConfigHelper.parse_urls_list(:fallback_eth_call),
|
|
method_to_url: [
|
|
eth_call: :eth_call,
|
|
eth_getBalance: :trace,
|
|
trace_replayTransaction: :trace
|
|
],
|
|
http_options: ConfigHelper.http_options(1)
|
|
],
|
|
variant: EthereumJSONRPC.Erigon
|
|
],
|
|
subscribe_named_arguments: [
|
|
transport: EthereumJSONRPC.WebSocket,
|
|
transport_options: [
|
|
web_socket: EthereumJSONRPC.WebSocket.WebSocketClient,
|
|
url: ConfigHelper.parse_url_env_var("ETHEREUM_JSONRPC_WS_URL"),
|
|
fallback_url: ConfigHelper.parse_url_env_var("ETHEREUM_JSONRPC_FALLBACK_WS_URL")
|
|
],
|
|
variant: EthereumJSONRPC.Erigon
|
|
]
|