Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blockscout/apps/explorer/mix.exs

152 lines
4.7 KiB

defmodule Explorer.Mixfile do
use Mix.Project
def project do
[
aliases: aliases(Mix.env()),
app: :explorer,
build_path: "../../_build",
config_path: "../../config/config.exs",
deps: deps(),
deps_path: "../../deps",
description: "Read-access to indexed block chain data.",
dialyzer: [
plt_add_deps: :transitive,
plt_add_apps: ~w(ex_unit mix)a,
ignore_warnings: "../../.dialyzer-ignore"
],
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
lockfile: "../../mix.lock",
package: package(),
preferred_cli_env: [
credo: :test,
dialyzer: :test
],
start_permanent: Mix.env() == :prod,
1 year ago
version: "5.3.0",
Account/Watchlist/Notifications (#13) * Auth for debug Fix for Auth callback calls endless cycle * Logout from auth0 and add profile picture Fix styles in signin/signout * Add profile * Update dockerfiles * Make auth paths dependent of API_PATH * Change api_path to network_path * Save identity from auth into DB * Hardcode urls to make it work again Style fixes * Change sign_in icon * Create Watchlist together with identity * Add watchlist show * Add watchlist addresses Fix creating account on first login Make address as it should look like * Associate watchlist with addresses * Create watchlist address UI Add balance in coin (need to use right coin) * Add tokens on watchlist Fix warnings Fix topnav styles * Add watch_ and notify_ fields in WatchlistAddress * Notifications draft Style fixes Removed divider Watchlist Address Form: ERC-721 & ERC-1155 -> NFT Form style -> modal Move Auth into Account module Add any valid address to watchlist Fix profile namespace in router Fixes in build Notification Fixed insert notifications * Send Emails via SendGrid * Add AUTH0 & SENDGRID API keys to Makefile * Finish email variables Fix warnings Add links to email * Update & Delete Watchlist Addresses Fix styles Fix warnings * Authorize create/update watchlist_address Fix credo warnings * Refactoring and fix UI * Introduce sender & template ENVs * Fix credo warns * Fix formatter & dialyzer * Make Notifier main entrypoint * Fix tests * Fix comments * Hardcode auth0 callbacks for prod env Export it in dev env and it should work: ``` export AUTH0_CALLBACK_URL='http://localhost:4000/auth/auth0/callback' export AUTH0_LOGOUT_RETURN_URL='http://localhost:4000/auth/logout' ``` * Style fixes * Private tags on address/transaction/token pages * Add account logger * fix email subject * Fix token_transfers notifications * Prepare for release * Fix transaction dropdown * Remoe unwanted changes * Reset CI cache * Fix Dialyzer, gettext * Add logout_return_to_url to :ueberauth config for test env * Invalidate GA cache * Redefine sign_in_link for test env * Fix adding address with disabled checkboxes Remove testnet hardcode from prod config CI fix attempt * Add AUTH0_LOGOUT_URL env * Fix logger warning * current_user/1, check that mapping contains :current_user object before executing get_session function * Fix current_user * Final fix of current_user/1 * Introduce COIN_NAME env * Lowercase hashes in email * Style fix * Add block_url to email * Fix creating notifications for NFT * Add notifier to token_transfers import runner * Add processing transfer into Notifier * Fix token transfer summary * WIP: Account refactoring (#19) * Move Ueberauth settings to config.exs * Make AuthController more clear * Fix error when build_watchlist_notification returns nil * Set WatchlistAddressForm defaults * Style fix * Fix double send email for tokens * Style fix WatchlistController * Style fix AddWatchlistAddress * Style fix UserFromAuth * Use Logger instead AccountLogger * Credo fix * Fix AddWatchlistAddress * Fix Notifier Co-authored-by: Oleg Sovetnik <sovetnik@oblaka.biz> Co-authored-by: nikitosing <nikitosing4@mail.ru>
3 years ago
xref: [exclude: [BlockScoutWeb.WebRouter.Helpers]]
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Explorer.Application, []},
extra_applications: extra_applications()
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["test/support" | elixirc_paths()]
defp elixirc_paths(_), do: elixirc_paths()
defp elixirc_paths, do: ["lib"]
defp extra_applications,
do: [
:logger,
:mix,
:runtime_tools,
:tesla
]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:bamboo, "~> 2.3.0"},
{:mime, "~> 2.0"},
{:bcrypt_elixir, "~> 3.0"},
7 years ago
# benchmark optimizations
{:benchee, "~> 1.1.0", only: :test},
7 years ago
# CSV output for benchee
{:benchee_csv, "~> 1.0.0", only: :test},
{:bypass, "~> 2.1", only: :test},
{:briefly, "~> 0.4", github: "CargoSense/briefly"},
{:comeonin, "~> 5.3"},
{:credo, "~> 1.5", only: :test, runtime: false},
# For Absinthe to load data in batches
{:dataloader, "~> 1.0.0"},
2 years ago
{:decimal, "~> 2.0"},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
# `override: true` for `ex_machina` compatibility
{:ecto, "~> 3.3", override: true},
# Storing blockchain data and derived data in PostgreSQL.
{:ecto_sql, "~> 3.3"},
6 years ago
# JSONRPC access to query smart contracts
{:ethereum_jsonrpc, in_umbrella: true},
# Data factory for testing
{:ex_machina, "~> 2.3", only: [:test]},
{:exvcr, "~> 0.10", only: :test},
{:httpoison, "~> 2.0"},
{:jason, "~> 1.3"},
{:junit_formatter, ">= 0.0.0", only: [:test], runtime: false},
# Log errors and application output to separate files
{:logger_file_backend, "~> 0.0.10"},
{:math, "~> 0.7.0"},
{:mock, "~> 0.3.0", only: [:test], runtime: false},
{:mox, "~> 1.0", only: [:test]},
{:phoenix_html, "== 3.0.4"},
{:poison, "~> 4.0.1"},
{:nimble_csv, "~> 1.1"},
{:postgrex, ">= 0.0.0"},
# For compatibility with `prometheus_process_collector`, which hasn't been updated yet
{:prometheus, "~> 4.0", override: true},
# Prometheus metrics for query duration
{:prometheus_ecto, "~> 1.4.3"},
{:prometheus_ex, git: "https://github.com/lanodan/prometheus.ex", branch: "fix/elixir-1.14", override: true},
# bypass optional dependency
{:plug_cowboy, "~> 2.2", only: [:dev, :test]},
{:que, "~> 0.10.1"},
{:sobelow, ">= 0.7.0", only: [:dev, :test], runtime: false},
# Tracing
4 years ago
{:spandex, "~> 3.0"},
# `:spandex` integration with Datadog
4 years ago
{:spandex_datadog, "~> 1.0"},
# `:spandex` tracing of `:ecto`
{:spandex_ecto, "~> 0.7.0"},
# Attach `:prometheus_ecto` to `:ecto`
{:telemetry, "~> 0.4.3"},
# `Timex.Duration` for `Explorer.Counters.AverageBlockTime.average_block_time/0`
3 years ago
{:timex, "~> 3.7.1"},
{:con_cache, "~> 1.0"},
{:tesla, "~> 1.7.0"},
{:cbor, "~> 1.0"},
{:cloak_ecto, "~> 1.2.0"},
{:redix, "~> 1.1"},
{:hammer_backend_redis, "~> 6.1"}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases(env) do
[
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test --no-start"]
] ++ env_aliases(env)
end
7 years ago
defp env_aliases(:dev), do: []
7 years ago
defp env_aliases(_env) do
[compile: "compile --warnings-as-errors"]
end
defp package do
[
maintainers: ["Blockscout"],
licenses: ["GPL 3.0"],
links: %{"GitHub" => "https://github.com/blockscout/blockscout"}
]
end
end