From 81d11617378414289684609281084cd3aad77177 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Sun, 9 Sep 2018 14:31:35 +0300 Subject: [PATCH 1/3] fix libsecp256k1 compiletion on linux --- apps/exth_crypto/mix.exs | 2 +- bin/setup | 10 ++++++++++ mix.lock | 13 ++++++------- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/apps/exth_crypto/mix.exs b/apps/exth_crypto/mix.exs index 58ac96c24..fb46ca9b6 100644 --- a/apps/exth_crypto/mix.exs +++ b/apps/exth_crypto/mix.exs @@ -38,7 +38,7 @@ defmodule ExthCrypto.Mixfile do # Type "mix help deps" for more examples and options defp deps do [ - {:libsecp256k1, "~> 0.1.9"}, + {:libsecp256k1, "== 0.1.4"}, {:keccakf1600, "~> 2.0.0", hex: :keccakf1600_orig}, {:credo, "~> 0.8", only: [:dev, :test], runtime: false}, {:binary, "~> 0.0.4"} diff --git a/bin/setup b/bin/setup index 33f8abb37..edd20a3c2 100755 --- a/bin/setup +++ b/bin/setup @@ -102,7 +102,17 @@ fi fancy_echo "Installing elixir dependencies and compiling." mix local.hex --force mix local.rebar --force + +if ! command -v rebar > /dev/null; then + fancy_echo "\`rebar\`: Command not found" + fancy_echo "Please either add ~/.mix to your \$PATH environemnt varible or install it with brew: \`brew install rebar\`" + exit 1 +fi + mix deps.get + +cd deps/libsecp256k1 && rebar compile && cd ../.. + mix compile fancy_echo "You're all set!" diff --git a/mix.lock b/mix.lock index 72ae0dfa7..bd0e85513 100644 --- a/mix.lock +++ b/mix.lock @@ -1,25 +1,24 @@ %{ - "binary": {:hex, :binary, "0.0.4", "dd077db70c0ded3e85c132b802338e14b80694684a7e2277666bfa4004b7fa66", [:mix], [], "hexpm"}, + "binary": {:hex, :binary, "0.0.5", "20d816f7274ea34f1b673b4cff2fdb9ebec9391a7a68c349070d515c66b1b2cf", [:mix], [], "hexpm"}, "bn": {:hex, :bn, "0.1.0", "59fb2172447daafe29050cc85443e433a9ee5e1f81559c0e7d56c7d6708b8e09", [:mix], [], "hexpm"}, "bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm"}, "certifi": {:hex, :certifi, "2.3.1", "d0f424232390bf47d82da8478022301c561cf6445b5b5fb6a84d49a9e76d2639", [:rebar3], [{:parse_trans, "3.2.0", [hex: :parse_trans, repo: "hexpm", optional: false]}], "hexpm"}, - "credo": {:hex, :credo, "0.9.2", "841d316612f568beb22ba310d816353dddf31c2d94aa488ae5a27bb53760d0bf", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:poison, ">= 0.0.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"}, + "credo": {:hex, :credo, "0.9.3", "76fa3e9e497ab282e0cf64b98a624aa11da702854c52c82db1bf24e54ab7c97a", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:poison, ">= 0.0.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"}, "decimal": {:hex, :decimal, "1.5.0", "b0433a36d0e2430e3d50291b1c65f53c37d56f83665b43d79963684865beab68", [:mix], [], "hexpm"}, "dialyxir": {:hex, :dialyxir, "0.5.1", "b331b091720fd93e878137add264bac4f644e1ddae07a70bf7062c7862c4b952", [:mix], [], "hexpm"}, - "earmark": {:hex, :earmark, "1.2.5", "4d21980d5d2862a2e13ec3c49ad9ad783ffc7ca5769cf6ff891a4553fbaae761", [:mix], [], "hexpm"}, - "ethereumex": {:hex, :ethereumex, "0.3.2", "ee01a49c781c9751317b2918f799e84185203c81c8314ebebb1f1e22b754db3e", [:mix], [{:httpoison, "~> 1.0.0", [hex: :httpoison, repo: "hexpm", optional: false]}, {:poison, "~> 3.1.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"}, + "earmark": {:hex, :earmark, "1.2.6", "b6da42b3831458d3ecc57314dff3051b080b9b2be88c2e5aa41cd642a5b044ed", [:mix], [], "hexpm"}, + "ethereumex": {:hex, :ethereumex, "0.3.3", "6d5d7e6b089d907135ad22c72e63225c4e8855e54476dcb27c79e9983c01605c", [:mix], [{:httpoison, "~> 1.1.0", [hex: :httpoison, repo: "hexpm", optional: false]}, {:poison, "~> 3.1.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"}, "ex_doc": {:hex, :ex_doc, "0.19.1", "519bb9c19526ca51d326c060cb1778d4a9056b190086a8c6c115828eaccea6cf", [:mix], [{:earmark, "~> 1.1", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.7", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm"}, "ex_rlp": {:hex, :ex_rlp, "0.3.0", "76eb293a743b17d6071693014c1a57eb0f3f71fbf560716046d62c8a14340628", [:mix], [], "hexpm"}, "hackney": {:hex, :hackney, "1.13.0", "24edc8cd2b28e1c652593833862435c80661834f6c9344e84b6a2255e7aeef03", [:rebar3], [{:certifi, "2.3.1", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "5.1.2", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "1.0.1", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "1.0.2", [hex: :mimerl, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "1.1.1", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm"}, - "httpoison": {:hex, :httpoison, "1.0.0", "1f02f827148d945d40b24f0b0a89afe40bfe037171a6cf70f2486976d86921cd", [:mix], [{:hackney, "~> 1.8", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm"}, + "httpoison": {:hex, :httpoison, "1.1.1", "96ed7ab79f78a31081bb523eefec205fd2900a02cda6dbc2300e7a1226219566", [:mix], [{:hackney, "~> 1.8", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm"}, "idna": {:hex, :idna, "5.1.2", "e21cb58a09f0228a9e0b95eaa1217f1bcfc31a1aaa6e1fdf2f53a33f7dbd9494", [:rebar3], [{:unicode_util_compat, "0.3.1", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm"}, "keccakf1600": {:hex, :keccakf1600_orig, "2.0.0", "0a7217ddb3ee8220d449bbf7575ec39d4e967099f220a91e3dfca4dbaef91963", [:rebar3], [], "hexpm"}, - "libsecp256k1": {:hex, :libsecp256k1, "0.1.9", "e725f31364cda7b554d56ce2bb976241303dde5ffd1ad59598513297bf1f2af6", [:make, :mix], [{:mix_erlang_tasks, "0.1.0", [hex: :mix_erlang_tasks, repo: "hexpm", optional: false]}], "hexpm"}, + "libsecp256k1": {:hex, :libsecp256k1, "0.1.4", "42b7f76d8e32f85f578ccda0abfdb1afa0c5c231d1fd8aeab9cda352731a2d83", [:rebar3], [], "hexpm"}, "makeup": {:hex, :makeup, "0.5.1", "966c5c2296da272d42f1de178c1d135e432662eca795d6dc12e5e8787514edf7", [:mix], [{:nimble_parsec, "~> 0.2.2", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm"}, "makeup_elixir": {:hex, :makeup_elixir, "0.8.0", "1204a2f5b4f181775a0e456154830524cf2207cf4f9112215c05e0b76e4eca8b", [:mix], [{:makeup, "~> 0.5.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 0.2.2", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm"}, "metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm"}, "mimerl": {:hex, :mimerl, "1.0.2", "993f9b0e084083405ed8252b99460c4f0563e41729ab42d9074fd5e52439be88", [:rebar3], [], "hexpm"}, - "mix_erlang_tasks": {:hex, :mix_erlang_tasks, "0.1.0", "36819fec60b80689eb1380938675af215565a89320a9e29c72c70d97512e4649", [:mix], [], "hexpm"}, "nimble_parsec": {:hex, :nimble_parsec, "0.2.2", "d526b23bdceb04c7ad15b33c57c4526bf5f50aaa70c7c141b4b4624555c68259", [:mix], [], "hexpm"}, "parse_trans": {:hex, :parse_trans, "3.2.0", "2adfa4daf80c14dc36f522cf190eb5c4ee3e28008fc6394397c16f62a26258c2", [:rebar3], [], "hexpm"}, "poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], [], "hexpm"}, From 2232560399294b0841b02a2f3a818eb2f2fdb0fe Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Sun, 9 Sep 2018 15:19:22 +0300 Subject: [PATCH 2/3] fix new credo issues --- apps/blockchain/lib/blockchain/account/storage.ex | 3 +-- apps/blockchain/lib/blockchain/chain.ex | 5 +---- apps/blockchain/lib/blockchain/transaction/signature.ex | 2 +- apps/blockchain/mix.exs | 1 - apps/blockchain/scripts/generate_state_tests.ex | 4 +--- apps/blockchain/test/blockchain/transaction_test.exs | 6 ++---- apps/evm/lib/evm/refunds.ex | 6 +++--- apps/evm/lib/helpers.ex | 5 +---- apps/evm/mix.exs | 1 - apps/evm/test/evm/operation/block_information_test.exs | 4 +--- apps/ex_wire/mix.exs | 1 - apps/ex_wire/test/ex_wire/framing/secrets_test.exs | 3 +-- apps/exth_crypto/mix.exs | 1 - .../lib/merkle_patricia_tree/trie/verifier.ex | 6 +++--- apps/merkle_patricia_tree/mix.exs | 2 +- mix.exs | 2 +- mix.lock | 3 ++- 17 files changed, 19 insertions(+), 36 deletions(-) diff --git a/apps/blockchain/lib/blockchain/account/storage.ex b/apps/blockchain/lib/blockchain/account/storage.ex index 90870685e..9c21a008d 100644 --- a/apps/blockchain/lib/blockchain/account/storage.ex +++ b/apps/blockchain/lib/blockchain/account/storage.ex @@ -54,9 +54,8 @@ defmodule Blockchain.Account.Storage do db |> Trie.new(root) |> Trie.Inspector.all_values() - |> Enum.map(fn {k, v} -> + |> Enum.into(%{}, fn {k, v} -> {BitHelper.decode_unsigned(k), BitHelper.decode_unsigned(v)} end) - |> Enum.into(%{}) end end diff --git a/apps/blockchain/lib/blockchain/chain.ex b/apps/blockchain/lib/blockchain/chain.ex index 2382ecd36..16f13a130 100644 --- a/apps/blockchain/lib/blockchain/chain.ex +++ b/apps/blockchain/lib/blockchain/chain.ex @@ -107,10 +107,7 @@ defmodule Blockchain.Chain do def load_chain(chain, evm_config \\ nil) do chain_data = read_chain!(chain) - engine = - chain_data["engine"] - |> Enum.map(&get_engine/1) - |> Enum.into(%{}) + engine = Enum.into(chain_data["engine"], %{}, &get_engine/1) accounts = chain_data["accounts"] diff --git a/apps/blockchain/lib/blockchain/transaction/signature.ex b/apps/blockchain/lib/blockchain/transaction/signature.ex index d8ecf52b6..7f0c598d8 100644 --- a/apps/blockchain/lib/blockchain/transaction/signature.ex +++ b/apps/blockchain/lib/blockchain/transaction/signature.ex @@ -302,7 +302,7 @@ defmodule Blockchain.Transaction.Signature do @spec sender(Transaction.t(), integer() | nil) :: {:ok, EVM.address()} | {:error, String.t()} def sender(tx, chain_id \\ nil) do # Ignore chain_id if transaction has a `v` value before EIP-155 minimum - chain_id = if not uses_chain_id?(tx.v), do: nil, else: chain_id + chain_id = if uses_chain_id?(tx.v), do: chain_id tx_hash = transaction_hash(tx, chain_id) with {:ok, public_key} <- recover_public(tx_hash, tx.v, tx.r, tx.s, chain_id) do diff --git a/apps/blockchain/mix.exs b/apps/blockchain/mix.exs index 82543922f..06e7cd8de 100644 --- a/apps/blockchain/mix.exs +++ b/apps/blockchain/mix.exs @@ -49,7 +49,6 @@ defmodule Blockchain.Mixfile do # Type "mix help deps" for more examples and options defp deps do [ - {:credo, "~> 0.9.1", only: [:dev, :test], runtime: false}, {:ethereumex, "~> 0.3.2"}, {:evm, in_umbrella: true}, {:ex_rlp, "~> 0.3.0"}, diff --git a/apps/blockchain/scripts/generate_state_tests.ex b/apps/blockchain/scripts/generate_state_tests.ex index 0d2108dfa..e1bd5bde3 100644 --- a/apps/blockchain/scripts/generate_state_tests.ex +++ b/apps/blockchain/scripts/generate_state_tests.ex @@ -66,11 +66,9 @@ defmodule GenerateStateTests do end defp dedup_tests(tests) do - tests - |> Enum.map(fn {fork, list_of_tests} -> + Enum.into(tests, %{}, fn {fork, list_of_tests} -> {fork, Enum.dedup(list_of_tests)} end) - |> Enum.into(%{}) end defp run_group_tests(directory_path) do diff --git a/apps/blockchain/test/blockchain/transaction_test.exs b/apps/blockchain/test/blockchain/transaction_test.exs index 5081f136d..789ab91e3 100644 --- a/apps/blockchain/test/blockchain/transaction_test.exs +++ b/apps/blockchain/test/blockchain/transaction_test.exs @@ -81,17 +81,15 @@ defmodule Blockchain.TransactionTest do defp organize_tests_by_fork(tests) do tests |> Map.take(@forks) - |> Enum.map(fn {fork, fork_tests} -> + |> Enum.into(%{}, fn {fork, fork_tests} -> { fork, fork_tests - |> Enum.map(fn {key_to_test, value} -> + |> Enum.into(%{}, fn {key_to_test, value} -> {String.to_atom(key_to_test), maybe_hex(value)} end) - |> Enum.into(%{}) } end) - |> Enum.into(%{}) end describe "when handling transactions" do diff --git a/apps/evm/lib/evm/refunds.ex b/apps/evm/lib/evm/refunds.ex index 935cdc0af..db3beacc3 100644 --- a/apps/evm/lib/evm/refunds.ex +++ b/apps/evm/lib/evm/refunds.ex @@ -76,10 +76,10 @@ defmodule EVM.Refunds do # `SELFDESTRUCT` operations produce a refund if the address has not already been suicided. def refund(:selfdestruct, _args, _machine_state, sub_state, exec_env) do - if exec_env.address not in sub_state.selfdestruct_list do - @selfdestruct_refund - else + if exec_env.address in sub_state.selfdestruct_list do 0 + else + @selfdestruct_refund end end diff --git a/apps/evm/lib/helpers.ex b/apps/evm/lib/helpers.ex index 2b2292b7c..29e9ad8c3 100644 --- a/apps/evm/lib/helpers.ex +++ b/apps/evm/lib/helpers.ex @@ -33,10 +33,7 @@ defmodule EVM.Helpers do """ @spec invert(map()) :: map() def invert(m) do - m - |> Enum.into([]) - |> Enum.map(fn {a, b} -> {b, a} end) - |> Enum.into(%{}) + Enum.into(m, %{}, fn {a, b} -> {b, a} end) end def bit_at(n, at), do: band(bsr(n, at), 1) diff --git a/apps/evm/mix.exs b/apps/evm/mix.exs index b33b672b6..1b1d4b445 100644 --- a/apps/evm/mix.exs +++ b/apps/evm/mix.exs @@ -46,7 +46,6 @@ defmodule EVM.Mixfile do # Type "mix help deps" for more examples and options defp deps do [ - {:credo, "~> 0.9.1", only: [:dev, :test], runtime: false}, {:poison, "~> 3.1.0", only: [:dev, :test], runtime: false}, {:decimal, "~>1.5.0"}, {:merkle_patricia_tree, in_umbrella: true}, diff --git a/apps/evm/test/evm/operation/block_information_test.exs b/apps/evm/test/evm/operation/block_information_test.exs index df6b4b507..bba0b7245 100644 --- a/apps/evm/test/evm/operation/block_information_test.exs +++ b/apps/evm/test/evm/operation/block_information_test.exs @@ -40,11 +40,9 @@ defmodule EVM.Operation.BlockInformationTest do def build_block_interface(headers = [most_recent_header | _]) do block_map = - headers - |> Enum.map(fn header -> + Enum.into(headers, %{}, fn header -> {Block.Header.hash(header), header} end) - |> Enum.into(%{}) EVM.Interface.Mock.MockBlockInterface.new(most_recent_header, block_map) end diff --git a/apps/ex_wire/mix.exs b/apps/ex_wire/mix.exs index 5ddce1b0a..35316621c 100644 --- a/apps/ex_wire/mix.exs +++ b/apps/ex_wire/mix.exs @@ -31,7 +31,6 @@ defmodule ExWire.Mixfile do defp deps do [ - {:credo, "~> 0.9.1", only: [:dev, :test], runtime: false}, {:ex_doc, "~> 0.16", only: :dev, runtime: false}, {:ex_rlp, "~> 0.3.0"}, {:blockchain, in_umbrella: true}, diff --git a/apps/ex_wire/test/ex_wire/framing/secrets_test.exs b/apps/ex_wire/test/ex_wire/framing/secrets_test.exs index fa1b8e534..40d2441a0 100644 --- a/apps/ex_wire/test/ex_wire/framing/secrets_test.exs +++ b/apps/ex_wire/test/ex_wire/framing/secrets_test.exs @@ -135,8 +135,7 @@ defmodule ExWire.Framing.SecretsTest do auth_2: auth_2(), ack_2: ack_2() } - |> Enum.map(fn {k, v} -> {k, bin_format(v)} end) - |> Enum.into(%{}) + |> Enum.into(%{}, fn {k, v} -> {k, bin_format(v)} end) public_keys = %{ ephemeral_public_key_a: public_key(eip8_creds.ephemeral_key_a), diff --git a/apps/exth_crypto/mix.exs b/apps/exth_crypto/mix.exs index fb46ca9b6..a959e9331 100644 --- a/apps/exth_crypto/mix.exs +++ b/apps/exth_crypto/mix.exs @@ -40,7 +40,6 @@ defmodule ExthCrypto.Mixfile do [ {:libsecp256k1, "== 0.1.4"}, {:keccakf1600, "~> 2.0.0", hex: :keccakf1600_orig}, - {:credo, "~> 0.8", only: [:dev, :test], runtime: false}, {:binary, "~> 0.0.4"} ] end diff --git a/apps/merkle_patricia_tree/lib/merkle_patricia_tree/trie/verifier.ex b/apps/merkle_patricia_tree/lib/merkle_patricia_tree/trie/verifier.ex index f13f28c1f..98749a19a 100644 --- a/apps/merkle_patricia_tree/lib/merkle_patricia_tree/trie/verifier.ex +++ b/apps/merkle_patricia_tree/lib/merkle_patricia_tree/trie/verifier.ex @@ -38,10 +38,10 @@ defmodule MerklePatriciaTree.Trie.Verifier do if v == "" do {:error, "empty leaf value at #{inspect(k)}"} else - if not Enum.member?(values, v) do - {:error, "leaf value v does not appear in values (#{inspect(v)})"} - else + if Enum.member?(values, v) do :ok + else + {:error, "leaf value v does not appear in values (#{inspect(v)})"} end end end diff --git a/apps/merkle_patricia_tree/mix.exs b/apps/merkle_patricia_tree/mix.exs index 45668db6c..30bb77a51 100644 --- a/apps/merkle_patricia_tree/mix.exs +++ b/apps/merkle_patricia_tree/mix.exs @@ -42,9 +42,9 @@ defmodule MerklePatriciaTree.Mixfile do # {:myapp, in_umbrella: true} # # Type `mix help deps` for more examples and options + # defp deps do [ - {:credo, "~> 0.9.1", only: [:dev, :test], runtime: false}, {:poison, "~> 3.1.0", only: [:dev, :test], runtime: false}, {:ex_rlp, "~> 0.3.0"}, {:exth_crypto, in_umbrella: true}, diff --git a/mix.exs b/mix.exs index 8b82ec106..02d98de7a 100644 --- a/mix.exs +++ b/mix.exs @@ -38,7 +38,7 @@ defmodule Exthereum.MixProject do {:ex_doc, "~> 0.19", only: :dev, runtime: false}, {:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false}, {:ethereumex, "~> 0.3.2"}, - {:credo, "~> 0.9.1", only: [:dev, :test], runtime: false} + {:credo, "~> 0.10.0", only: [:dev, :test], runtime: false} ] end end diff --git a/mix.lock b/mix.lock index bd0e85513..a771cbb7e 100644 --- a/mix.lock +++ b/mix.lock @@ -3,7 +3,7 @@ "bn": {:hex, :bn, "0.1.0", "59fb2172447daafe29050cc85443e433a9ee5e1f81559c0e7d56c7d6708b8e09", [:mix], [], "hexpm"}, "bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm"}, "certifi": {:hex, :certifi, "2.3.1", "d0f424232390bf47d82da8478022301c561cf6445b5b5fb6a84d49a9e76d2639", [:rebar3], [{:parse_trans, "3.2.0", [hex: :parse_trans, repo: "hexpm", optional: false]}], "hexpm"}, - "credo": {:hex, :credo, "0.9.3", "76fa3e9e497ab282e0cf64b98a624aa11da702854c52c82db1bf24e54ab7c97a", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:poison, ">= 0.0.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"}, + "credo": {:hex, :credo, "0.10.0", "66234a95effaf9067edb19fc5d0cd5c6b461ad841baac42467afed96c78e5e9e", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"}, "decimal": {:hex, :decimal, "1.5.0", "b0433a36d0e2430e3d50291b1c65f53c37d56f83665b43d79963684865beab68", [:mix], [], "hexpm"}, "dialyxir": {:hex, :dialyxir, "0.5.1", "b331b091720fd93e878137add264bac4f644e1ddae07a70bf7062c7862c4b952", [:mix], [], "hexpm"}, "earmark": {:hex, :earmark, "1.2.6", "b6da42b3831458d3ecc57314dff3051b080b9b2be88c2e5aa41cd642a5b044ed", [:mix], [], "hexpm"}, @@ -13,6 +13,7 @@ "hackney": {:hex, :hackney, "1.13.0", "24edc8cd2b28e1c652593833862435c80661834f6c9344e84b6a2255e7aeef03", [:rebar3], [{:certifi, "2.3.1", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "5.1.2", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "1.0.1", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "1.0.2", [hex: :mimerl, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "1.1.1", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm"}, "httpoison": {:hex, :httpoison, "1.1.1", "96ed7ab79f78a31081bb523eefec205fd2900a02cda6dbc2300e7a1226219566", [:mix], [{:hackney, "~> 1.8", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm"}, "idna": {:hex, :idna, "5.1.2", "e21cb58a09f0228a9e0b95eaa1217f1bcfc31a1aaa6e1fdf2f53a33f7dbd9494", [:rebar3], [{:unicode_util_compat, "0.3.1", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm"}, + "jason": {:hex, :jason, "1.1.1", "d3ccb840dfb06f2f90a6d335b536dd074db748b3e7f5b11ab61d239506585eb2", [:mix], [{:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm"}, "keccakf1600": {:hex, :keccakf1600_orig, "2.0.0", "0a7217ddb3ee8220d449bbf7575ec39d4e967099f220a91e3dfca4dbaef91963", [:rebar3], [], "hexpm"}, "libsecp256k1": {:hex, :libsecp256k1, "0.1.4", "42b7f76d8e32f85f578ccda0abfdb1afa0c5c231d1fd8aeab9cda352731a2d83", [:rebar3], [], "hexpm"}, "makeup": {:hex, :makeup, "0.5.1", "966c5c2296da272d42f1de178c1d135e432662eca795d6dc12e5e8787514edf7", [:mix], [{:nimble_parsec, "~> 0.2.2", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm"}, From 08811a50277c6473effba23843b0276ff853a467 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Sun, 9 Sep 2018 18:46:41 +0300 Subject: [PATCH 3/3] disable alias order for now --- .credo.exs | 1 + 1 file changed, 1 insertion(+) diff --git a/.credo.exs b/.credo.exs index 353bcafa7..a4d00672b 100644 --- a/.credo.exs +++ b/.credo.exs @@ -87,6 +87,7 @@ {Credo.Check.Readability.MaxLineLength, priority: :low, max_length: 120}, {Credo.Check.Readability.ModuleAttributeNames}, {Credo.Check.Readability.ModuleDoc, false}, + {Credo.Check.Readability.AliasOrder, false}, {Credo.Check.Readability.ModuleNames}, {Credo.Check.Readability.ParenthesesOnZeroArityDefs, false}, {Credo.Check.Readability.ParenthesesInCondition},