-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
mix.exs
149 lines (139 loc) · 3.93 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
defmodule Stellar.MixProject do
use Mix.Project
@github_url "https://github.com/kommitters/stellar_sdk"
@version "0.22.0"
def project do
[
app: :stellar_sdk,
version: @version,
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "Elixir Stellar SDK",
description: description(),
source_url: @github_url,
package: package(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:hackney, :jason, :logger],
mod: {Stellar.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:stellar_base, "~> 0.16"},
{:ed25519, "~> 1.3"},
{:hackney, "~> 1.17"},
{:jason, "~> 1.0"},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:excoveralls, "~> 0.18", only: :test},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.31", only: :dev, runtime: false}
]
end
defp description do
"""
Elixir SDK for the Stellar network.
"""
end
defp package do
[
description: description(),
files: ["lib", "mix.exs", "README*", "LICENSE"],
licenses: ["MIT"],
links: %{
"Changelog" => "#{@github_url}/blob/master/CHANGELOG.md",
"GitHub" => @github_url,
"Sponsor" => "https://github.com/sponsors/kommitters"
}
]
end
defp docs do
[
main: "readme",
name: "Elixir Stellar SDK",
source_ref: "v#{@version}",
source_url: @github_url,
canonical: "http://hexdocs.pm/stellar_sdk",
extras: extras(),
groups_for_modules: groups_for_modules(),
groups_for_extras: groups_for_extras()
]
end
defp groups_for_modules do
[
"Building a Transaction": [
Stellar.TxBuild,
Stellar.TxBuild.Spec,
Stellar.TxBuild.Default,
Stellar.TxBuild.AccountMerge,
Stellar.TxBuild.BumpSequence,
Stellar.TxBuild.BeginSponsoringFutureReserves,
Stellar.TxBuild.ChangeTrust,
Stellar.TxBuild.Clawback,
Stellar.TxBuild.ClawbackClaimableBalance,
Stellar.TxBuild.CreateAccount,
Stellar.TxBuild.CreatePassiveSellOffer,
Stellar.TxBuild.EndSponsoringFutureReserves,
Stellar.TxBuild.ManageData,
Stellar.TxBuild.ManageSellOffer,
Stellar.TxBuild.ManageBuyOffer,
Stellar.TxBuild.Payment,
Stellar.TxBuild.PathPaymentStrictSend,
Stellar.TxBuild.PathPaymentStrictReceive,
Stellar.TxBuild.SetOptions
],
"Querying Horizon": [
Stellar.Horizon.Ledgers,
Stellar.Horizon.Transactions,
Stellar.Horizon.Operations,
Stellar.Horizon.Effects,
Stellar.Horizon.Accounts,
Stellar.Horizon.Offers,
Stellar.Horizon.Trades,
Stellar.Horizon.Assets,
Stellar.Horizon.ClaimableBalances,
Stellar.Horizon.LiquidityPools,
Stellar.Horizon.Accounts
],
KeyPairs: [
Stellar.KeyPair,
Stellar.KeyPair.Spec,
Stellar.KeyPair.Default
],
"Horizon Resources": ~r/^Stellar\.Horizon\./,
"TxBuild Resources": ~r/^Stellar\.TxBuild\./,
Utils: Stellar.Network
]
end
defp extras() do
[
"README.md",
"CHANGELOG.md",
"CONTRIBUTING.md",
"docs/examples/operations/create_account.md",
"docs/examples/operations/payments.md",
"docs/examples/signatures/hash_x.md",
"docs/examples/signatures/pre_auth_tx.md",
"docs/examples/signatures/ed25519_signed_payload.md",
"docs/README.md": [filename: "examples"]
]
end
defp groups_for_extras do
[
Examples: ~r/docs\/examples\/.?/
]
end
end