mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-05 13:17:26 +00:00
c63ff6ec6d
* WIP EncodeAsType and DecodeAsType * remove silly cli experiment code * Get things finally compiling with EncodeAsType and DecodeAsType * update codegen test and WrapperKeepOpaque proper impl (in case it shows up in codegen) * fix tests * accomodate scale-value changes * starting to migrate to EncodeAsType/DecodeAsType * static event decoding and tx encoding to use DecodeAsFields/EncodeAsFields * some tidy up and add decode(skip) attrs where needed * fix root event decoding * #[codec(skip)] will do, and combine map_key stuff into storage_address since it's all specific to that * fmt and clippy * update Cargo.lock * remove patched scale-encode * bump scale-encode to 0.1 and remove unused dep in testing crate * update deps and use released scale-decode * update scale-value to latest to remove git branch * Apply suggestions from code review Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> * remove sorting in derives/attr generation; spit them out in order given * re-add derive sorting; it's a hashmap * StaticTxPayload and DynamicTxPayload rolled into single Payload struct * StaticStorageAddress and DynamicStorageAddress into single Address struct * Fix storage address byte retrieval * StaticConstantAddress and DynamicConstantAddress => Address * Simplify storage codegen to fix test * Add comments * Alias to RuntimeEvent rather than making another, and prep for substituting call type * remove unnecessary clone * Fix docs and failing UI test * root_bytes -> to_root_bytes * document error case in StorageClient::address_bytes() --------- Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com>
84 lines
3.0 KiB
TOML
84 lines
3.0 KiB
TOML
[package]
|
|
name = "subxt"
|
|
version = "0.27.1"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
publish = true
|
|
|
|
license.workspace = true
|
|
readme = "../README.md"
|
|
repository.workspace = true
|
|
documentation.workspace = true
|
|
homepage.workspace = true
|
|
description = "Submit extrinsics (transactions) to a substrate node via RPC"
|
|
keywords = ["parity", "substrate", "blockchain"]
|
|
|
|
[features]
|
|
default = ["jsonrpsee-ws", "substrate-compat"]
|
|
|
|
# Activate this feature to pull in extra Substrate dependencies which make it
|
|
# possible to provide a proper extrinsic Signer implementation (PairSigner).
|
|
substrate-compat = [
|
|
"sp-core",
|
|
"sp-runtime"
|
|
]
|
|
|
|
# Activate this to expose functionality only used for integration testing.
|
|
# The exposed functionality is subject to breaking changes at any point,
|
|
# and should not be relied upon.
|
|
integration-tests = []
|
|
|
|
# Jsonrpsee if the default RPC provider used in Subxt. However, it can be
|
|
# swapped out for an alternative implementation, and so is optional.
|
|
jsonrpsee-ws = ["jsonrpsee/async-client", "jsonrpsee/client-ws-transport"]
|
|
jsonrpsee-web = ["jsonrpsee/async-wasm-client", "jsonrpsee/client-web-transport"]
|
|
|
|
[dependencies]
|
|
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full"] }
|
|
scale-info = "2.0.0"
|
|
scale-value = "0.7.0"
|
|
scale-bits = "0.3"
|
|
scale-decode = "0.5.0"
|
|
scale-encode = "0.1.0"
|
|
futures = { version = "0.3.27", default-features = false, features = ["std"] }
|
|
hex = "0.4.3"
|
|
jsonrpsee = { version = "0.16", optional = true, features = ["jsonrpsee-types"] }
|
|
serde = { version = "1.0.155", features = ["derive"] }
|
|
serde_json = { version = "1.0.94", features = ["raw_value"] }
|
|
thiserror = "1.0.40"
|
|
tracing = "0.1.34"
|
|
parking_lot = "0.12.0"
|
|
frame-metadata = "15.0.0"
|
|
derivative = "2.2.0"
|
|
either = "1.8.1"
|
|
|
|
subxt-macro = { version = "0.27.1", path = "../macro" }
|
|
subxt-metadata = { version = "0.27.1", path = "../metadata" }
|
|
|
|
# Provides some deserialization, types like U256/H256 and hashing impls like twox/blake256:
|
|
impl-serde = { version = "0.4.0" }
|
|
primitive-types = { version = "0.12.1", default-features = false, features = ["codec", "scale-info", "serde"] }
|
|
sp-core-hashing = "7.0.0"
|
|
|
|
# For ss58 encoding AccountId32 to serialize them properly:
|
|
base58 = { version = "0.2.0" }
|
|
blake2 = { version = "0.10.4", default-features = false }
|
|
|
|
# These are only included is "substrate-compat" is enabled.
|
|
sp-core = { version = "18.0.0", default-features = false, optional = true }
|
|
sp-runtime = { version = "20.0.0", optional = true }
|
|
|
|
[target.wasm32-unknown-unknown.dependencies]
|
|
getrandom = { version = "0.2", features = ["js"] }
|
|
|
|
[dev-dependencies]
|
|
bitvec = "1"
|
|
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full", "bit-vec"] }
|
|
scale-info = { version = "2.0.0", features = ["bit-vec"] }
|
|
tokio = { version = "1.26", features = ["macros", "time", "rt-multi-thread"] }
|
|
sp-core = { version = "18.0.0", default-features = false }
|
|
sp-runtime = "20.0.0"
|
|
sp-keyring = "20.0.0"
|
|
sp-version = "18.0.0"
|