-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
134 lines (120 loc) · 4.29 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
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
[package]
name = "centrum-sdk"
version = "0.1.0"
edition = "2021"
targets = ["wasm32-unknown-unknown"]
# [lints.clippy]
# unused_imports = { level = "allow", priority = 1 }
# [lints.rust]
# unused_imports = { level = "allow", priority = 1 }
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
# alloy = { version = "0.9.2", default-features = false, features = [
# "wasm-bindgen",
# "contract",
# "signer-local",
# "provider-http",
# "reqwest",
# ] }
# I'll replace with alloy
ethers = "2.0.14"
array-bytes = { version = "6.2.3", default-features = false }
bitcoin = { version = "0.32.5" }
# bitcoincore-rpc = { version = "0.19.0" }
# bitcoincore-rpc-json = { version = "0.19.0" }
chrono = { version = "0.4.39", default-features = false, features = ["wasmbind", "now"] }
codec = { package = "parity-scale-codec", version = "3.6.12", features = [
"derive",
], default-features = false }
console_log = { version = "1", features = ["color"], optional = true }
elliptic-curve = { version = "0.13.8", features = ["sec1"] }
frame-metadata = { version = "17.0.0", features = [
"current",
], default-features = false }
getrandom = { version = "*", features = ["js"] }
hex = { version = "0.4.3", features = ["alloc"], default-features = false }
hex-literal = { version = "0.4.1", default-features = false }
hpke = { version = "0.12.0", features = ["x25519"] }
hyperliquid_rust_sdk = { git = "https://github.com/anny0nn/hyperliquid-rust-sdk", branch = "wasm-support", optional = true }
impl-serde = { version = "0.5.0", default-features = false }
jsonrpsee = { version = "0.24.5" }
k256 = { version = "0.13.4", features = ["sha256", "ecdsa", "serde"] }
log = { version = "0.4.22", default-features = false }
merkleized-metadata = { version = "0.1.0", default-features = false }
sec1 = { version = "*" }
scale-decode = { version = "0.14.0", features = [
"derive",
], default-features = false }
scale-encode = { version = "0.8.0", features = [
"derive",
], default-features = false }
scale-info = { version = "2.11.5", default-features = false }
scale-value = { version = "0.14.0", default-features = false }
secp256k1 = { version = "0.29.1" }
serde = { version = "1.0.145", default-features = false }
serde_cbor = { version = "0.11.2", default-features = false }
serde_json = { version = "1.0.114", default-features = false }
serde-wasm-bindgen = { version = "0.6.5" }
sp-core = { version = "34.0.0", features = [
"full_crypto",
], default-features = false }
sp-crypto-hashing = { version = "0.1.0", default-features = false }
sp-runtime = { version = "39.0.0", default-features = false }
sp-std = { version = "14.0.0", default-features = false }
subxt-core = { version = "0.38.0", default-features = false }
subxt-signer = { version = "0.38.0", default-features = false, features = [
"sr25519",
"ecdsa",
"subxt",
"unstable-eth",
"web"
] }
rlp = { version = "*", default-features = false }
rustc-hex = { version = "*" }
thiserror = { version = "2.0.11", default-features = false }
tokio = { version = "1.41.1", features = ["rt"], default-features = false }
wasm-bindgen = { version = "0.2.86", default-features = false }
wasm-bindgen-futures = { version = "0.4.36", default-features = false }
centrum-runtime = { path = "../centrum/runtime", default-features = false }
centrum-primitives = { path = "../centrum/primitives", default-features = false }
# for native builds
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
subxt = { version = "0.38.0" }
# form wasm builds
[target.'cfg(target_arch = "wasm32")'.dependencies]
subxt = { version = "0.38.0", default-features = false, features = [
"jsonrpsee",
"web",
] }
[dev-dependencies]
wasm-bindgen-test = "0.3.50"
[features]
default = ["std", "hyperliquid"]
console_log_dep = ["console_log"]
std = [
"frame-metadata/std",
"hex/std",
"impl-serde/std",
"codec/std",
"scale-decode/std",
"scale-encode/std",
"scale-info/std",
"serde/std",
"serde_json/std",
"serde_cbor/std",
"sp-crypto-hashing/std",
"sp-runtime/std",
"sp-std/std",
"sp-core/std",
"centrum-runtime/std",
"centrum-primitives/std",
"jsonrpsee/wasm-client",
"wasm-bindgen/std",
"wasm-bindgen-futures/std",
"subxt-core/std",
"getrandom/js",
"log/std",
"elliptic-curve/std",
]
hyperliquid = ["hyperliquid_rust_sdk"]