This repository has been archived by the owner on May 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCargo.toml
40 lines (35 loc) · 1.56 KB
/
Cargo.toml
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
[package]
authors = ['GalacticCouncil']
edition = '2021'
homepage = 'https://github.com/galacticcouncil/hydradx-math'
license = 'Apache-2.0'
name = "hydra-dx-math"
description = "A collection of utilities to make performing liquidity pool calculations more convenient."
repository = 'https://github.com/galacticcouncil/hydradx-math'
version = "7.1.0"
[dependencies]
primitive-types = {default-features = false, version = '0.12.0'}
num-traits = {default-features = false, version = "0.2.14"}
fixed = { version = "=1.15.0", features = ["num-traits"] }
# Added because of use of the FixedU128, used to implement `Ratio`
codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false, features = ["derive", "max-encoded-len"] }
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
sp-arithmetic = { git = "https://github.com/paritytech/substrate", branch="polkadot-v0.9.38", default-features = false }
sp-std = { git = "https://github.com/paritytech/substrate", branch="polkadot-v0.9.38", default-features = false }
# Added optional serde support for (de-)serializing `Ratio`
serde = { version = "1.0.136", optional = true }
[dev-dependencies]
approx = "0.5.1"
criterion = "0.4.0"
proptest = "1.0.0"
rand = { version = "0.8.5", default-features = false, features= ["std_rng"] }
rand_xoshiro = "0.6.0"
rug = { version = "1.17.0", features = ["num-traits"] }
test-case = "2.2.1"
[features]
default = ["std"]
std = ["codec/std", "serde", "sp-arithmetic/std", "sp-std/std"]
runtime-benchmarks = []
[[bench]]
name = "benchmarks"
harness = false