mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-23 12:09:37 +00:00
28b6bc99ac
Writes a custom unsigned extrinic creator due to subxt having an internal error with the scale metadata. While the code in our scope increased, it's much more ergonomic to our usage. We may end up rewriting most of subxt, eventually.
47 lines
1.3 KiB
TOML
47 lines
1.3 KiB
TOML
[package]
|
|
name = "serai-client"
|
|
version = "0.1.0"
|
|
description = "Client library for the Serai network"
|
|
license = "AGPL-3.0-only"
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/substrate/client"
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
keywords = ["serai"]
|
|
edition = "2021"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[dependencies]
|
|
thiserror = { version = "1", optional = true }
|
|
|
|
scale = { package = "parity-scale-codec", version = "3" }
|
|
scale-info = { version = "2", optional = true }
|
|
|
|
serai-runtime = { path = "../runtime", version = "0.1" }
|
|
|
|
sp-core = { git = "https://github.com/serai-dex/substrate" }
|
|
subxt = { version = "0.28", default-features = false, features = ["jsonrpsee-ws"], optional = true }
|
|
|
|
bitcoin = { version = "0.30", optional = true }
|
|
|
|
ciphersuite = { path = "../../crypto/ciphersuite", version = "0.3", optional = true }
|
|
monero-serai = { path = "../../coins/monero", version = "0.1.4-alpha", optional = true }
|
|
|
|
[features]
|
|
serai = ["thiserror", "scale-info", "subxt"]
|
|
|
|
coins = []
|
|
bitcoin = ["coins", "dep:bitcoin"]
|
|
monero = ["coins", "ciphersuite/ed25519", "monero-serai"]
|
|
|
|
# Assumes the default usage is to use Serai as a DEX, which doesn't actually
|
|
# require connecting to a Serai node
|
|
default = ["bitcoin", "monero"]
|
|
|
|
[dev-dependencies]
|
|
lazy_static = "1"
|
|
|
|
rand_core = "0.6"
|
|
|
|
tokio = "1"
|