mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 04:09:23 +00:00
Event retrieval was prior: - Retrieve all events in the block, which may be hundreds of KB - Filter to just a few Since it's frequent to want multiple sets of events, each filtered in their own way, this caused the retrieval to happen multiple times. Now, it only will happen once. Also has the scoped clients take a reference, not an owned TemporalSerai.
65 lines
2.0 KiB
TOML
65 lines
2.0 KiB
TOML
[package]
|
|
name = "serai-client"
|
|
version = "0.1.0"
|
|
description = "Client library for the Serai network"
|
|
license = "MIT"
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/substrate/client"
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
keywords = ["serai"]
|
|
edition = "2021"
|
|
rust-version = "1.74"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[dependencies]
|
|
zeroize = "^1.5"
|
|
thiserror = { version = "1", optional = true }
|
|
|
|
hex = "0.4"
|
|
scale = { package = "parity-scale-codec", version = "3" }
|
|
serde = { version = "1", features = ["derive"], optional = true }
|
|
serde_json = { version = "1", optional = true }
|
|
|
|
serai-abi = { path = "../abi", version = "0.1" }
|
|
|
|
sp-core = { git = "https://github.com/serai-dex/substrate", optional = true }
|
|
sp-runtime = { git = "https://github.com/serai-dex/substrate", optional = true }
|
|
frame-system = { git = "https://github.com/serai-dex/substrate", optional = true }
|
|
|
|
async-lock = "3"
|
|
|
|
simple-request = { path = "../../common/request", version = "0.1", optional = true }
|
|
|
|
bitcoin = { version = "0.31", optional = true }
|
|
|
|
ciphersuite = { path = "../../crypto/ciphersuite", version = "0.4", optional = true }
|
|
monero-serai = { path = "../../coins/monero", version = "0.1.4-alpha", optional = true }
|
|
|
|
[dev-dependencies]
|
|
rand_core = "0.6"
|
|
hex = "0.4"
|
|
|
|
blake2 = "0.10"
|
|
|
|
ciphersuite = { path = "../../crypto/ciphersuite", features = ["ristretto"] }
|
|
frost = { package = "modular-frost", path = "../../crypto/frost", features = ["tests"] }
|
|
schnorrkel = { path = "../../crypto/schnorrkel", package = "frost-schnorrkel" }
|
|
|
|
tokio = "1"
|
|
|
|
dockertest = "0.4"
|
|
serai-docker-tests = { path = "../../tests/docker" }
|
|
|
|
[features]
|
|
serai = ["thiserror", "serde", "serde_json", "sp-core", "sp-runtime", "frame-system", "simple-request"]
|
|
|
|
networks = []
|
|
bitcoin = ["networks", "dep:bitcoin"]
|
|
monero = ["networks", "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"]
|