Skip to content

Commit

Permalink
Switch jsonrpsee to workspace dep
Browse files Browse the repository at this point in the history
# Conflicts:
#	Cargo.toml
#	cumulus/client/relay-chain-rpc-interface/Cargo.toml
#	cumulus/test/service/Cargo.toml
#	substrate/client/merkle-mountain-range/rpc/Cargo.toml
#	substrate/client/sync-state-rpc/Cargo.toml
#	substrate/frame/transaction-payment/rpc/Cargo.toml
#	substrate/utils/frame/remote-externalities/Cargo.toml
#	substrate/utils/frame/rpc/support/Cargo.toml
#	substrate/utils/frame/rpc/system/Cargo.toml
  • Loading branch information
jasl committed May 6, 2024
1 parent 86704a7 commit 11faf04
Show file tree
Hide file tree
Showing 26 changed files with 29 additions and 27 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,8 @@ bitflags = "1.3.2"
bs58 = { version = "0.5.0", default-features = false }
criterion = { version = "0.5.1", default-features = false }
itertools = "0.11.0"
jsonrpsee = "0.22.5"
jsonrpsee-core = "0.22.5"
nix = "0.27.1"
polkavm = "0.9.3"
polkavm-linker = "0.9.2"
Expand Down
2 changes: 1 addition & 1 deletion bridges/relays/client-substrate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async-std = { version = "1.9.0", features = ["attributes"] }
async-trait = "0.1.79"
codec = { package = "parity-scale-codec", version = "3.6.1" }
futures = "0.3.30"
jsonrpsee = { version = "0.22", features = ["macros", "ws-client"] }
jsonrpsee = { workspace = true, features = ["macros", "ws-client"] }
log = { workspace = true }
num-traits = "0.2"
rand = { workspace = true, default-features = true }
Expand Down
2 changes: 1 addition & 1 deletion cumulus/client/relay-chain-interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ sc-client-api = { path = "../../../substrate/client/api" }
futures = "0.3.28"
async-trait = "0.1.79"
thiserror = { workspace = true }
jsonrpsee-core = "0.22"
jsonrpsee-core = { workspace = true }
parity-scale-codec = "3.6.4"
2 changes: 1 addition & 1 deletion cumulus/client/relay-chain-rpc-interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ tokio-util = { workspace = true, features = ["compat"] }
futures = "0.3.28"
futures-timer = "3.0.2"
parity-scale-codec = "3.6.4"
jsonrpsee = { version = "0.22", features = ["ws-client"] }
jsonrpsee = { workspace = true, features = ["ws-client"] }
tracing = { workspace = true, default-features = true }
async-trait = "0.1.79"
url = "2.4.0"
Expand Down
2 changes: 1 addition & 1 deletion cumulus/polkadot-parachain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ coretime-rococo-runtime = { path = "../parachains/runtimes/coretime/coretime-roc
coretime-westend-runtime = { path = "../parachains/runtimes/coretime/coretime-westend" }
bridge-hub-westend-runtime = { path = "../parachains/runtimes/bridge-hubs/bridge-hub-westend" }
penpal-runtime = { path = "../parachains/runtimes/testing/penpal" }
jsonrpsee = { version = "0.22", features = ["server"] }
jsonrpsee = { workspace = true, features = ["server"] }
people-rococo-runtime = { path = "../parachains/runtimes/people/people-rococo" }
people-westend-runtime = { path = "../parachains/runtimes/people/people-westend" }
parachains-common = { path = "../parachains/common" }
Expand Down
2 changes: 1 addition & 1 deletion cumulus/test/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async-trait = "0.1.79"
clap = { version = "4.5.3", features = ["derive"] }
codec = { package = "parity-scale-codec", version = "3.0.0" }
criterion = { workspace = true, default-features = true, features = ["async_tokio"] }
jsonrpsee = { version = "0.22", features = ["server"] }
jsonrpsee = { workspace = true, features = ["server"] }
rand = { workspace = true, default-features = true }
serde = { features = ["derive"], workspace = true, default-features = true }
serde_json = { workspace = true, default-features = true }
Expand Down
2 changes: 1 addition & 1 deletion polkadot/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description = "Polkadot specific RPC functionality."
workspace = true

[dependencies]
jsonrpsee = { version = "0.22", features = ["server"] }
jsonrpsee = { workspace = true, features = ["server"] }
polkadot-primitives = { path = "../primitives" }
sc-client-api = { path = "../../substrate/client/api" }
sp-blockchain = { path = "../../substrate/primitives/blockchain" }
Expand Down
2 changes: 1 addition & 1 deletion substrate/bin/node/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ array-bytes = { workspace = true, default-features = true }
clap = { version = "4.5.3", features = ["derive"], optional = true }
codec = { package = "parity-scale-codec", version = "3.6.1" }
serde = { features = ["derive"], workspace = true, default-features = true }
jsonrpsee = { version = "0.22", features = ["server"] }
jsonrpsee = { workspace = true, features = ["server"] }
futures = "0.3.30"
log = { workspace = true, default-features = true }
rand = { workspace = true, default-features = true }
Expand Down
2 changes: 1 addition & 1 deletion substrate/bin/node/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ workspace = true
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
jsonrpsee = { version = "0.22", features = ["server"] }
jsonrpsee = { workspace = true, features = ["server"] }
node-primitives = { path = "../primitives" }
pallet-transaction-payment-rpc = { path = "../../../frame/transaction-payment/rpc" }
mmr-rpc = { path = "../../../client/merkle-mountain-range/rpc" }
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/consensus/babe/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ workspace = true
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
jsonrpsee = { version = "0.22.5", features = ["client-core", "macros", "server-core"] }
jsonrpsee = { workspace = true, features = ["client-core", "macros", "server-core"] }
futures = "0.3.30"
serde = { features = ["derive"], workspace = true, default-features = true }
thiserror = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/consensus/beefy/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ workspace = true
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
futures = "0.3.30"
jsonrpsee = { version = "0.22.5", features = ["client-core", "macros", "server-core"] }
jsonrpsee = { workspace = true, features = ["client-core", "macros", "server-core"] }
log = { workspace = true, default-features = true }
parking_lot = "0.12.1"
serde = { features = ["derive"], workspace = true, default-features = true }
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/consensus/grandpa/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ workspace = true
[dependencies]
finality-grandpa = { version = "0.16.2", features = ["derive-codec"] }
futures = "0.3.30"
jsonrpsee = { version = "0.22.5", features = ["client-core", "macros", "server-core"] }
jsonrpsee = { workspace = true, features = ["client-core", "macros", "server-core"] }
log = { workspace = true, default-features = true }
parity-scale-codec = { version = "3.6.1", features = ["derive"] }
serde = { features = ["derive"], workspace = true, default-features = true }
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/consensus/manual-seal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ workspace = true
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
jsonrpsee = { version = "0.22.5", features = ["client-core", "macros", "server-core"] }
jsonrpsee = { workspace = true, features = ["client-core", "macros", "server-core"] }
assert_matches = "1.3.0"
async-trait = "0.1.79"
codec = { package = "parity-scale-codec", version = "3.6.1" }
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/merkle-mountain-range/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1" }
jsonrpsee = { version = "0.22.5", features = ["client-core", "macros", "server-core"] }
jsonrpsee = { workspace = true, features = ["client-core", "macros", "server-core"] }
serde = { features = ["derive"], workspace = true, default-features = true }
sp-api = { path = "../../../primitives/api" }
sp-blockchain = { path = "../../../primitives/blockchain" }
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/rpc-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ sp-core = { path = "../../primitives/core" }
sp-rpc = { path = "../../primitives/rpc" }
sp-runtime = { path = "../../primitives/runtime" }
sp-version = { path = "../../primitives/version" }
jsonrpsee = { version = "0.22.5", features = ["client-core", "macros", "server-core"] }
jsonrpsee = { workspace = true, features = ["client-core", "macros", "server-core"] }
2 changes: 1 addition & 1 deletion substrate/client/rpc-servers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ workspace = true
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
jsonrpsee = { version = "0.22", features = ["server"] }
jsonrpsee = { workspace = true, features = ["server"] }
log = { workspace = true, default-features = true }
serde_json = { workspace = true, default-features = true }
tokio = { workspace = true, default-features = true, features = ["parking_lot"] }
Expand Down
4 changes: 2 additions & 2 deletions substrate/client/rpc-spec-v2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ workspace = true
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
jsonrpsee = { version = "0.22.5", features = ["client-core", "macros", "server-core"] }
jsonrpsee = { workspace = true, features = ["client-core", "macros", "server-core"] }
# Internal chain structures for "chain_spec".
sc-chain-spec = { path = "../chain-spec" }
# Pool for submitting extrinsics required by "transaction"
Expand Down Expand Up @@ -45,7 +45,7 @@ rand = { workspace = true, default-features = true }
schnellru = "0.2.1"

[dev-dependencies]
jsonrpsee = { version = "0.22", features = ["server", "ws-client"] }
jsonrpsee = { workspace = true, features = ["server", "ws-client"] }
serde_json = { workspace = true, default-features = true }
tokio = { workspace = true, default-features = true, features = ["macros"] }
substrate-test-runtime-client = { path = "../../test-utils/runtime/client" }
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1" }
futures = "0.3.30"
jsonrpsee = { version = "0.22", features = ["server"] }
jsonrpsee = { workspace = true, features = ["server"] }
log = { workspace = true, default-features = true }
parking_lot = "0.12.1"
serde_json = { workspace = true, default-features = true }
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ runtime-benchmarks = [
]

[dependencies]
jsonrpsee = { version = "0.22", features = ["server"] }
jsonrpsee = { workspace = true, features = ["server"] }
thiserror = { workspace = true }
futures = "0.3.30"
rand = { workspace = true, default-features = true }
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/sync-state-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1" }
jsonrpsee = { version = "0.22.5", features = ["client-core", "macros", "server-core"] }
jsonrpsee = { workspace = true, features = ["client-core", "macros", "server-core"] }
serde = { features = ["derive"], workspace = true, default-features = true }
serde_json = { workspace = true, default-features = true }
thiserror = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/transaction-payment/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1" }
jsonrpsee = { version = "0.22.5", features = ["client-core", "macros", "server-core"] }
jsonrpsee = { workspace = true, features = ["client-core", "macros", "server-core"] }
pallet-transaction-payment-rpc-runtime-api = { path = "runtime-api" }
sp-api = { path = "../../../primitives/api" }
sp-blockchain = { path = "../../../primitives/blockchain" }
Expand Down
2 changes: 1 addition & 1 deletion substrate/utils/frame/remote-externalities/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ workspace = true
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
jsonrpsee = { version = "0.22", features = ["http-client"] }
jsonrpsee = { workspace = true, features = ["http-client"] }
codec = { package = "parity-scale-codec", version = "3.6.1" }
log = { workspace = true, default-features = true }
serde = { workspace = true, default-features = true }
Expand Down
2 changes: 1 addition & 1 deletion substrate/utils/frame/rpc/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ workspace = true
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
jsonrpsee = { version = "0.22", features = ["ws-client"] }
jsonrpsee = { workspace = true, features = ["ws-client"] }
sc-rpc-api = { path = "../../../../client/rpc-api" }
async-trait = "0.1.79"
serde = { workspace = true, default-features = true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sp-state-machine = { path = "../../../../primitives/state-machine" }
sp-trie = { path = "../../../../primitives/trie" }
trie-db = "0.29.0"

jsonrpsee = { version = "0.22.5", features = ["client-core", "macros", "server-core"] }
jsonrpsee = { workspace = true, features = ["client-core", "macros", "server-core"] }

# Substrate Dependencies
sc-client-api = { path = "../../../../client/api" }
Expand Down
4 changes: 2 additions & 2 deletions substrate/utils/frame/rpc/support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1" }
jsonrpsee = { version = "0.22", features = ["jsonrpsee-types"] }
jsonrpsee = { workspace = true, features = ["jsonrpsee-types"] }
serde = { workspace = true, default-features = true }
frame-support = { path = "../../../../frame/support" }
sc-rpc-api = { path = "../../../../client/rpc-api" }
sp-storage = { path = "../../../../primitives/storage" }

[dev-dependencies]
scale-info = "2.11.1"
jsonrpsee = { version = "0.22", features = ["jsonrpsee-types", "ws-client"] }
jsonrpsee = { workspace = true, features = ["jsonrpsee-types", "ws-client"] }
tokio = { workspace = true, default-features = true }
sp-core = { path = "../../../../primitives/core" }
sp-runtime = { path = "../../../../primitives/runtime" }
Expand Down
2 changes: 1 addition & 1 deletion substrate/utils/frame/rpc/system/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1" }
jsonrpsee = { version = "0.22.5", features = ["client-core", "macros", "server-core"] }
jsonrpsee = { workspace = true, features = ["client-core", "macros", "server-core"] }
futures = "0.3.30"
log = { workspace = true, default-features = true }
frame-system-rpc-runtime-api = { path = "../../../../frame/system/rpc/runtime-api" }
Expand Down

0 comments on commit 11faf04

Please sign in to comment.