Skip to content

Commit

Permalink
Pin version to 0.9.7
Browse files Browse the repository at this point in the history
- [backend] apply_to_keys_while -> apply_to_child_keys_while
  • Loading branch information
Andrew Plaza committed Jun 25, 2021
1 parent 3f09225 commit dcfa196
Show file tree
Hide file tree
Showing 7 changed files with 239 additions and 246 deletions.
402 changes: 200 additions & 202 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions bin/node-template-archive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ serde = "1.0"
structopt = { version = "0.3", features = ["suggestions", "color"] }
toml = "0.5"

node-template-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
node-template = { git = "https://github.com/paritytech/substrate", branch = "master" }
node-template-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.7" }
node-template = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }

substrate-archive = { path = "../../substrate-archive" }
4 changes: 2 additions & 2 deletions bin/polkadot-archive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ serde = "1.0"
structopt = { version = "0.3", features = ["suggestions", "color"] }
toml = "0.5"

sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" }
polkadot-service = { git = "https://github.com/paritytech/polkadot", branch = "master", features = ["kusama-native", "westend-native"] }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
polkadot-service = { git = "https://github.com/paritytech/polkadot", features = ["kusama-native", "westend-native"] , tag = "v0.9.7" }

substrate-archive = { path = "../../substrate-archive" }
30 changes: 15 additions & 15 deletions substrate-archive-backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ kvdb-rocksdb = "0.11"
parity-util-mem = "0.9"

# Substrate
sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-executor = { git = "https://github.com/paritytech/substrate", features = ["wasmtime"] , branch = "master" }
sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-database = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-state-machine = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-storage = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-version = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-wasm-interface = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sc-executor = { git = "https://github.com/paritytech/substrate", features = ["wasmtime"] , branch = "polkadot-v0.9.7" }
sc-service = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-database = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-state-machine = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-storage = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-version = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-wasm-interface = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,8 @@ impl<B: BlockT, D: ReadOnlyDb> StateBackend<HashFor<B>> for TrieState<B, D> {
self.state.next_child_storage_key(child_info, key)
}

fn apply_to_keys_while<F: FnMut(&[u8]) -> bool>(
&self,
child_info: Option<&ChildInfo>,
prefix: Option<&[u8]>,
f: F,
) {
self.state.apply_to_keys_while(child_info, prefix, f)
fn apply_to_child_keys_while<F: FnMut(&[u8]) -> bool>(&self, child_info: &ChildInfo, f: F) {
self.state.apply_to_child_keys_while(child_info, f)
}

fn for_keys_with_prefix<F: FnMut(&[u8])>(&self, prefix: &[u8], f: F) {
Expand Down
28 changes: 14 additions & 14 deletions substrate-archive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,26 @@ async-stream = "0.3"

# Parity
codec = { package = "parity-scale-codec", version = "2.0", default-features = false, features = ["derive", "full"] }
sc-chain-spec = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-tracing = { git ="https://github.com/paritytech/substrate", branch = "master" }
sp-storage = { git ="https://github.com/paritytech/substrate", branch = "master" }
sc-chain-spec = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sc-executor = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-tracing = { git ="https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-storage = { git ="https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }

# Workspace
substrate-archive-backend = { path = '../substrate-archive-backend' }

[dev-dependencies]
test-common = { path = "../test-common/" }
sc-executor-common = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-wasm-interface = { git = "https://github.com/paritytech/substrate", branch = "master" }
polkadot-service = { git = "https://github.com/paritytech/polkadot", branch = "master", package = "polkadot-service" }
sc-executor-common = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-wasm-interface = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
polkadot-service = { git = "https://github.com/paritytech/polkadot", package = "polkadot-service" , tag = "v0.9.7" }
anyhow = "1"
pretty_env_logger = "0.4.0"
tempfile = "3.2"
Expand Down
8 changes: 4 additions & 4 deletions test-common/test-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ build = "build.rs"
publish = false

[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "master" }
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }

[dependencies]
sp-core = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" }
sp-io = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" }
sp-runtime = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" }
sp-core = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-io = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
sp-runtime = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.7" }
tracing = { version = "0.1.26", default-features = false }

[features]
Expand Down

0 comments on commit dcfa196

Please sign in to comment.