forked from fortelabsinc/solana-elixir-archived
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
101 lines (93 loc) · 2.21 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
defmodule Solana.MixProject do
use Mix.Project
@source_url "https://github.com/dcrck/solana-elixir"
@version "0.2.0"
def project do
[
app: :solana,
description: description(),
version: @version,
elixir: "~> 1.12",
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
name: "Solana",
source_url: @source_url,
homepage_url: @source_url,
deps: deps(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
def elixirc_paths(:test), do: ["lib", "test/support"]
def elixirc_paths(_), do: ["lib"]
defp description do
"A library for interacting with the Solana blockchain."
end
defp package do
[
name: "solana",
maintainers: ["Derek Meer"],
licenses: ["MIT"],
links: %{
"SourceHut" => "https://git.sr.ht/~dcrck/solana",
"GitHub" => @source_url
}
]
end
defp deps do
[
# base client
{:tesla, "~> 1.9.0"},
{:credo, "~> 1.6", runtime: false},
{:sobelow, "~> 0.8", only: [:dev]},
# json library
{:jason, ">= 1.0.0"},
# keys and signatures
{:ed25519, "~> 1.4.1"},
# base58 encoding
{:basefiftyeight, "~> 0.1.0"},
# validating parameters
{:nimble_options, "~> 1.1.0"},
# docs and testing
{:ex_doc, "~> 0.32.1", only: :dev, runtime: false},
{:dialyxir, "~> 1.4.3", only: [:dev, :test], runtime: false}
]
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
extras: ["README.md", "LICENSE"],
groups_for_modules: [
Client: [
Solana.RPC,
Solana.RPC.Request,
Solana.RPC.Tracker
],
Transactions: [
Solana.Transaction,
Solana.Instruction,
Solana.Account,
Solana.Key
],
"System Program": [
Solana.SystemProgram,
Solana.SystemProgram.Nonce
],
Testing: [
Solana.TestValidator
]
],
nest_modules_by_prefix: [
Solana.RPC,
Solana.SystemProgram
]
]
end
end