sc-transcation-pool refactor (#9228)

* Use TransactionPool trait

* sc-transaction-pool-primitives

* sc-transaction-pool-api

* TP

* bye sc_transaction_graph

* fix line widths

* fix import errors

* fix import errors

* fix import errors 🤦🏾‍♂️

* fix import errors 🤦🏾‍♂️🤦🏾‍♂️🤦🏾‍♂️

* remove sp-keyring
This commit is contained in:
Seun Lanlege
2021-07-08 14:33:34 +01:00
committed by GitHub
parent 721a3b9e9c
commit 2ae9d36758
65 changed files with 384 additions and 388 deletions
+37 -49
View File
@@ -4112,6 +4112,7 @@ dependencies = [
"sc-cli",
"sc-client-api",
"sc-transaction-pool",
"sc-transaction-pool-api",
"serde",
"serde_json",
"sp-consensus",
@@ -4121,7 +4122,6 @@ dependencies = [
"sp-state-machine",
"sp-timestamp",
"sp-tracing",
"sp-transaction-pool",
"sp-trie",
"structopt",
"tempfile",
@@ -4200,6 +4200,7 @@ dependencies = [
"sc-telemetry",
"sc-tracing",
"sc-transaction-pool",
"sc-transaction-pool-api",
"serde",
"serde_json",
"soketto 0.4.2",
@@ -4215,7 +4216,6 @@ dependencies = [
"sp-keystore",
"sp-runtime",
"sp-timestamp",
"sp-transaction-pool",
"sp-trie",
"structopt",
"substrate-browser-utils",
@@ -4313,6 +4313,7 @@ dependencies = [
"sc-rpc",
"sc-rpc-api",
"sc-sync-state-rpc",
"sc-transaction-pool-api",
"sp-api",
"sp-block-builder",
"sp-blockchain",
@@ -4320,7 +4321,6 @@ dependencies = [
"sp-consensus-babe",
"sp-keystore",
"sp-runtime",
"sp-transaction-pool",
"substrate-frame-rpc-system",
]
@@ -4438,6 +4438,7 @@ dependencies = [
"sc-service",
"sc-telemetry",
"sc-transaction-pool",
"sc-transaction-pool-api",
"sp-api",
"sp-block-builder",
"sp-blockchain",
@@ -4448,7 +4449,6 @@ dependencies = [
"sp-inherents",
"sp-runtime",
"sp-timestamp",
"sp-transaction-pool",
"structopt",
"substrate-build-script-utils",
"substrate-frame-rpc-system",
@@ -7037,13 +7037,13 @@ dependencies = [
"sc-proposer-metrics",
"sc-telemetry",
"sc-transaction-pool",
"sc-transaction-pool-api",
"sp-api",
"sp-blockchain",
"sp-consensus",
"sp-core",
"sp-inherents",
"sp-runtime",
"sp-transaction-pool",
"substrate-prometheus-endpoint",
"substrate-test-runtime-client",
]
@@ -7147,6 +7147,7 @@ dependencies = [
"parity-scale-codec",
"parking_lot 0.11.1",
"sc-executor",
"sc-transaction-pool-api",
"sp-api",
"sp-blockchain",
"sp-consensus",
@@ -7160,7 +7161,6 @@ dependencies = [
"sp-std",
"sp-storage",
"sp-test-primitives",
"sp-transaction-pool",
"sp-trie",
"sp-utils",
"sp-version",
@@ -7373,6 +7373,7 @@ dependencies = [
"sc-consensus-babe",
"sc-consensus-epochs",
"sc-transaction-pool",
"sc-transaction-pool-api",
"serde",
"sp-api",
"sp-blockchain",
@@ -7385,7 +7386,6 @@ dependencies = [
"sp-keystore",
"sp-runtime",
"sp-timestamp",
"sp-transaction-pool",
"substrate-prometheus-endpoint",
"substrate-test-runtime-client",
"substrate-test-runtime-transaction-pool",
@@ -7665,9 +7665,9 @@ dependencies = [
"parity-util-mem",
"sc-client-api",
"sc-network",
"sc-transaction-pool-api",
"sp-blockchain",
"sp-runtime",
"sp-transaction-pool",
"wasm-timer",
]
@@ -7840,13 +7840,13 @@ dependencies = [
"sc-keystore",
"sc-network",
"sc-transaction-pool",
"sc-transaction-pool-api",
"sp-api",
"sp-consensus",
"sp-core",
"sp-offchain",
"sp-runtime",
"sp-tracing",
"sp-transaction-pool",
"sp-utils",
"substrate-test-runtime-client",
"threadpool",
@@ -7898,6 +7898,7 @@ dependencies = [
"sc-rpc-api",
"sc-tracing",
"sc-transaction-pool",
"sc-transaction-pool-api",
"serde_json",
"sp-api",
"sp-blockchain",
@@ -7910,7 +7911,6 @@ dependencies = [
"sp-session",
"sp-state-machine",
"sp-tracing",
"sp-transaction-pool",
"sp-utils",
"sp-version",
"substrate-test-runtime-client",
@@ -7931,13 +7931,13 @@ dependencies = [
"parity-scale-codec",
"parking_lot 0.11.1",
"sc-chain-spec",
"sc-transaction-pool-api",
"serde",
"serde_json",
"sp-core",
"sp-rpc",
"sp-runtime",
"sp-tracing",
"sp-transaction-pool",
"sp-version",
]
@@ -8008,6 +8008,7 @@ dependencies = [
"sc-telemetry",
"sc-tracing",
"sc-transaction-pool",
"sc-transaction-pool-api",
"serde",
"serde_json",
"sp-api",
@@ -8061,6 +8062,7 @@ dependencies = [
"sc-light",
"sc-network",
"sc-service",
"sc-transaction-pool-api",
"sp-api",
"sp-blockchain",
"sp-consensus",
@@ -8071,7 +8073,6 @@ dependencies = [
"sp-state-machine",
"sp-storage",
"sp-tracing",
"sp-transaction-pool",
"sp-trie",
"substrate-test-runtime",
"substrate-test-runtime-client",
@@ -8178,61 +8179,55 @@ dependencies = [
]
[[package]]
name = "sc-transaction-graph"
name = "sc-transaction-pool"
version = "3.0.0"
dependencies = [
"assert_matches",
"criterion",
"derive_more",
"futures 0.3.15",
"hex",
"intervalier",
"linked-hash-map",
"log",
"parity-scale-codec",
"parity-util-mem",
"parking_lot 0.11.1",
"retain_mut",
"serde",
"sp-blockchain",
"sp-core",
"sp-runtime",
"sp-transaction-pool",
"sp-utils",
"substrate-test-runtime",
"thiserror",
"wasm-timer",
]
[[package]]
name = "sc-transaction-pool"
version = "3.0.0"
dependencies = [
"assert_matches",
"futures 0.3.15",
"hex",
"intervalier",
"log",
"parity-scale-codec",
"parity-util-mem",
"parking_lot 0.11.1",
"sc-block-builder",
"sc-client-api",
"sc-transaction-graph",
"sc-transaction-pool-api",
"serde",
"sp-api",
"sp-blockchain",
"sp-consensus",
"sp-core",
"sp-keyring",
"sp-runtime",
"sp-tracing",
"sp-transaction-pool",
"sp-utils",
"substrate-prometheus-endpoint",
"substrate-test-runtime",
"substrate-test-runtime-client",
"substrate-test-runtime-transaction-pool",
"thiserror",
"wasm-timer",
]
[[package]]
name = "sc-transaction-pool-api"
version = "3.0.0"
dependencies = [
"derive_more",
"futures 0.3.15",
"log",
"parity-scale-codec",
"serde",
"sp-blockchain",
"sp-runtime",
"thiserror",
]
[[package]]
name = "schannel"
version = "0.1.19"
@@ -9368,15 +9363,8 @@ dependencies = [
name = "sp-transaction-pool"
version = "3.0.0"
dependencies = [
"derive_more",
"futures 0.3.15",
"log",
"parity-scale-codec",
"serde",
"sp-api",
"sp-blockchain",
"sp-runtime",
"thiserror",
]
[[package]]
@@ -9654,6 +9642,7 @@ dependencies = [
"sc-client-api",
"sc-rpc-api",
"sc-transaction-pool",
"sc-transaction-pool-api",
"serde",
"sp-api",
"sp-block-builder",
@@ -9661,7 +9650,6 @@ dependencies = [
"sp-core",
"sp-runtime",
"sp-tracing",
"sp-transaction-pool",
"substrate-test-runtime-client",
]
@@ -9778,10 +9766,10 @@ dependencies = [
"futures 0.3.15",
"parity-scale-codec",
"parking_lot 0.11.1",
"sc-transaction-graph",
"sc-transaction-pool",
"sc-transaction-pool-api",
"sp-blockchain",
"sp-runtime",
"sp-transaction-pool",
"substrate-test-runtime-client",
]
@@ -9924,8 +9912,8 @@ dependencies = [
"sc-rpc",
"sc-rpc-server",
"sc-service",
"sc-transaction-graph",
"sc-transaction-pool",
"sc-transaction-pool-api",
"sp-api",
"sp-block-builder",
"sp-blockchain",