-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
62 lines (56 loc) · 1.43 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
defmodule TTEth.MixProject do
use Mix.Project
@version "0.2.1"
def project(),
do: [
app: :tt_eth,
version: @version,
description: "Ethereum primitives for Elixir.",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
# Docs
name: "TTEth",
source_url: "https://github.com/tableturn/tt_eth",
docs: [
extras: ["README.md"],
groups_for_modules: groups_for_modules()
]
]
defp elixirc_paths(:test),
do: ["lib", "test/support"]
defp elixirc_paths(_),
do: ["lib"]
defp deps(),
do: [
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:faker, "~> 0.18", only: [:dev, :test]},
{:hammox, "~> 0.7.0", only: [:test]},
{:ecto, "~> 3.11"},
{:ex_secp256k1, "~> 0.7.2"},
{:eip_55, "~> 0.1"},
{:ethereumex, "~> 0.10.6"},
{:ex_keccak, "~> 0.7"},
{:ex_abi, "~> 0.7"},
{:ex_rlp, "~> 0.6.0"}
]
defp groups_for_modules(),
do: [
"Transactions Types": [
TTEth.Transactions.LegacyTransaction,
TTEth.Transactions.EIP1559Transaction
],
Behaviours: [
TTEth.Behaviours.ChainClient,
TTEth.Behaviours.Transaction,
TTEth.Behaviours.WalletAdapter
],
Types: [
TTEth.Type.Address,
TTEth.Type.Hash,
TTEth.Type.PrivateKey,
TTEth.Type.PublicKey,
TTEth.Type.Signature
]
]
end