mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-22 17:18:01 +00:00
ef89752904
* rpc/types: Decode `SubstrateTxStatus` for substrate and smoldot Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * lightclient: Add light client Error Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * lightclient: Add background task to manage RPC responses Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * lightclient: Implement the light client RPC in subxt Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * subxt: Expose light client under experimental feature-flag Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * artifacts: Add development chain spec for local nodes Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Update cargo lock Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * examples: Add light client example Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Update sp-* crates and smoldot to use git with branch / rev Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Apply cargo fmt Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Fix clippy Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Import hashmap entry Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * lightclient: Fetch spec only if jsonrpsee feature is enabled Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Update subxt/src/rpc/lightclient/background.rs Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com> * Fix typo Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * artifacts: Update dev chain spec Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * types: Handle storage replies from chainHead_storage Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * artifacts: Add polkadot spec Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * lightclient: Handle RPC error responses Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * examples: Tx basic with light client for local nodes Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * example: Light client coprehensive example for live chains Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * examples: Remove prior light client example Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * feature: Rename experimental to unstable Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * book: Add light client section Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * testing: Fix clippy Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * lightclient: Ignore validated events Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust tests for light-clients and normal clients Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * testing: Keep lightclient variant Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Remove support for chainHead_storage for light client Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Update light client to point to crates.io Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Update sp-crates from crates.io Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Replace Atomic with u64 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Add LightClientBuilder Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust chainspec with provided bootnodes Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Add potential_relay_chains to light client builder Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Move the light-client to the background task Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust tracing logs Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Update book and example Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Apply cargo fmt Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Remove dev_spec.json artifact Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Examples fix duplicate Cargo.toml Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Use tracing_subscriber crate Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Fix clippy for different features Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Add comment about bootNodes Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Add comment about tracing-sub dependency Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Run integration-tests with light-client Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Feature guard some incompatible tests Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ci: Enable light-client tests under feature flag Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ci: Fix git step name Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust flags for testing Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust warnings Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Rename feature flag jsonrpsee-ws to jsonrpsee Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Fix cargo check Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ci: Run tests on just 2 threads Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Move light-client to subxt/src/client Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust LightClientBuilder Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Use ws_url to construct light client for testing Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Refactor background Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Address feedback Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Remove polkadot.spec and trim sub_id Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Wait for substrate to produce block before connecting light client Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust builder and tests Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Apply fmt Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ci: Use release for light client testing Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Add single test for light-client Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Wait for more blocks Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Use polkadot endpoint for testing Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust cargo check Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * examples: Remove light client chain connection example Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust cargo.toml section for the old example Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust background task to use usize for subscription Id Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Build bootnodes with serde_json::Value directly Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Make channel between subxt user and subxt background unbounded Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Update subxt/src/client/lightclient/builder.rs Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com> * Switch to smoldot 0.6.0 from 0.5.0 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Move testing to `full_client` and `light_client` higher modules Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Remove subscriptionID type Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Remove subxt/integration-testing feature flag Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust wait_for_blocks documentation Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust utils import for testing Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Remove into_iter from builder construction Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
107 lines
3.2 KiB
TOML
107 lines
3.2 KiB
TOML
[workspace]
|
|
members = [
|
|
"cli",
|
|
"codegen",
|
|
"testing/substrate-runner",
|
|
"testing/test-runtime",
|
|
"testing/integration-tests",
|
|
"testing/ui-tests",
|
|
"macro",
|
|
"metadata",
|
|
"signer",
|
|
"subxt"
|
|
]
|
|
|
|
# We exclude any crates that would depend on non mutually
|
|
# exclusive feature flags and thus can't compile with the
|
|
# workspace:
|
|
exclude = [
|
|
"testing/wasm-tests",
|
|
"signer/wasm-tests",
|
|
"examples/wasm-example"
|
|
]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2021"
|
|
version = "0.29.0"
|
|
rust-version = "1.64.0"
|
|
license = "Apache-2.0 OR GPL-3.0"
|
|
repository = "https://github.com/paritytech/subxt"
|
|
documentation = "https://docs.rs/subxt"
|
|
homepage = "https://www.parity.io/"
|
|
|
|
[workspace.dependencies]
|
|
assert_matches = "1.5.0"
|
|
base58 = { version = "0.2.0" }
|
|
bitvec = { version = "1", default-features = false }
|
|
blake2 = { version = "0.10.4", default-features = false }
|
|
clap = { version = "4.3.4", features = ["derive", "cargo"] }
|
|
criterion = "0.4"
|
|
codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false }
|
|
color-eyre = "0.6.1"
|
|
console_error_panic_hook = "0.1.7"
|
|
darling = "0.20.0"
|
|
derivative = "2.2.0"
|
|
either = "1.8.1"
|
|
frame-metadata = { version = "15.1.0", features = ["v14", "v15-unstable", "std"] }
|
|
futures = { version = "0.3.27", default-features = false, features = ["std"] }
|
|
getrandom = { version = "0.2", default-features = false }
|
|
hex = "0.4.3"
|
|
heck = "0.4.1"
|
|
impl-serde = { version = "0.4.0" }
|
|
jsonrpsee = { version = "0.16" }
|
|
pretty_assertions = "1.0.0"
|
|
primitive-types = { version = "0.12.1", default-features = false, features = ["codec", "scale-info", "serde"] }
|
|
proc-macro-error = "1.0.4"
|
|
proc-macro2 = "1.0.60"
|
|
quote = "1.0.28"
|
|
regex = "1.8.4"
|
|
scale-info = "2.7.0"
|
|
scale-value = "0.10.0"
|
|
scale-bits = "0.3"
|
|
scale-decode = "0.7.0"
|
|
scale-encode = "0.3.0"
|
|
serde = { version = "1.0.164" }
|
|
serde_json = { version = "1.0.97" }
|
|
syn = { version = "2.0.15", features = ["full", "extra-traits"] }
|
|
thiserror = "1.0.40"
|
|
tokio = { version = "1.28", features = ["macros", "time", "rt-multi-thread"] }
|
|
tracing = "0.1.34"
|
|
tracing-wasm = "0.2.1"
|
|
tracing-subscriber = "0.3.17"
|
|
trybuild = "1.0.79"
|
|
wabt = "0.10.0"
|
|
wasm-bindgen-test = "0.3.24"
|
|
which = "4.4.0"
|
|
|
|
# Light client support:
|
|
smoldot-light = { version = "0.6.0", default-features = false }
|
|
tokio-stream = "0.1.14"
|
|
futures-util = "0.3.28"
|
|
|
|
# Substrate crates:
|
|
sp-core = { version = "21.0.0", default-features = false }
|
|
sp-core-hashing = "9.0.0"
|
|
sp-runtime = "24.0.0"
|
|
sp-keyring = "24.0.0"
|
|
sp-version = "22.0.0"
|
|
|
|
# Subxt workspace crates:
|
|
subxt = { version = "0.29.0", path = "subxt", default-features = false }
|
|
subxt-macro = { version = "0.29.0", path = "macro" }
|
|
subxt-metadata = { version = "0.29.0", path = "metadata" }
|
|
subxt-codegen = { version = "0.29.0", path = "codegen" }
|
|
subxt-signer = { version = "0.29.0", path = "signer" }
|
|
test-runtime = { path = "testing/test-runtime" }
|
|
substrate-runner = { path = "testing/substrate-runner" }
|
|
|
|
# subxt-signer deps that I expect aren't useful anywhere else:
|
|
bip39 = "2.0.0"
|
|
hmac = "0.12.1"
|
|
pbkdf2 = { version = "0.12.1", default-features = false }
|
|
schnorrkel = "0.10.2"
|
|
secrecy = "0.8.0"
|
|
sha2 = "0.10.6"
|
|
zeroize = { version = "1", default-features = false } |