2018-05-11 11:29:53 -07:00
|
|
|
use Mix.Config
|
|
|
|
|
2018-05-28 08:10:45 -07:00
|
|
|
config :poa_agent,
|
|
|
|
transfer_config_overlay: "config/transfer_overlay.json"
|
|
|
|
|
2018-05-15 07:42:35 -07:00
|
|
|
config :ethereumex,
|
2018-05-16 07:57:12 -07:00
|
|
|
url: "http://localhost:8545"
|
|
|
|
|
|
|
|
# configuration for collectors. The format for each collector is {collector_process_id, module, label, args}
|
|
|
|
config :poa_agent,
|
|
|
|
:collectors,
|
|
|
|
[
|
2018-05-18 14:01:05 -07:00
|
|
|
# {:eth_latest_block, POAAgent.Plugins.Collectors.Eth.LatestBlock, 500, :latest_block, [url: "http://localhost:8545"]},
|
|
|
|
# {:eth_stats, POAAgent.Plugins.Collectors.Eth.Stats, 5000, :eth_stats, [url: "http://localhost:8545"]},
|
|
|
|
# {:eth_pending, POAAgent.Plugins.Collectors.Eth.Pending, 500, :eth_pending, [url: "http://localhost:8545"]}
|
2018-05-16 07:57:12 -07:00
|
|
|
]
|
2018-05-18 08:26:55 -07:00
|
|
|
|
2018-05-16 07:57:12 -07:00
|
|
|
# configuration for transfers. The format for each collector is {collector_process_id, module, args}
|
|
|
|
config :poa_agent,
|
|
|
|
:transfers,
|
|
|
|
[
|
2018-05-18 14:01:05 -07:00
|
|
|
# {:node_integration, POAAgent.Plugins.Transfers.WebSocket.Primus, [
|
|
|
|
# address: "ws://localhost:3000/api",
|
|
|
|
# identifier: "elixirNodeJSIntegration",
|
|
|
|
# name: "Elixir-NodeJS-Integration",
|
|
|
|
# secret: "Fr00b5",
|
|
|
|
# contact: "mymail@mail.com"
|
|
|
|
# ]
|
|
|
|
# }
|
2018-05-16 07:57:12 -07:00
|
|
|
]
|
2018-05-18 08:26:55 -07:00
|
|
|
|
2018-05-16 07:57:12 -07:00
|
|
|
# configuration for mappings. This relates one collector with a list of transfers which the data will be sent
|
|
|
|
config :poa_agent,
|
|
|
|
:mappings,
|
|
|
|
[
|
2018-05-18 14:01:05 -07:00
|
|
|
# {:eth_latest_block, [:node_integration]},
|
|
|
|
# {:eth_stats, [:node_integration]},
|
|
|
|
# {:eth_pending, [:node_integration]}
|
2018-05-16 07:57:12 -07:00
|
|
|
]
|