Safe and sane multi-item storage removal (#11490)

* Fix overlay prefix removal result

* Second part of the overlay prefix removal fix.

* Report only items deleted from storage in clear_prefix

* Fix kill_prefix

* Formatting

* Remove unused code

* Fixes

* Fixes

* Introduce clear_prefix host function v3

* Formatting

* Use v2 for now

* Fixes

* Formatting

* Docs

* Child prefix removal should also hide v3 for now

* Fixes

* Fixes

* Formatting

* Fixes

* apply_to_keys_whle takes start_at

* apply_to_keys_whle takes start_at

* apply_to_keys_whle takes start_at

* Cursor API; force limits

* Use unsafe deprecated functions

* Formatting

* Fixes

* Grumbles

* Fixes

* Docs

* Some nitpicks 🙈

* Update primitives/externalities/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Formatting

* Fixes

* cargo fmt

* Fixes

* Update primitives/io/src/lib.rs

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>

* Formatting

* Fixes

Co-authored-by: Bastian Köcher <info@kchr.de>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
This commit is contained in:
Gavin Wood
2022-05-29 12:56:26 +01:00
committed by GitHub
parent 189a310e4c
commit ecbd65fb95
45 changed files with 968 additions and 206 deletions
@@ -18,7 +18,7 @@ sp-wasm-interface = { version = "6.0.0", path = "../wasm-interface", default-fea
sp-std = { version = "4.0.0", default-features = false, path = "../std" }
sp-tracing = { version = "5.0.0", default-features = false, path = "../tracing" }
sp-runtime-interface-proc-macro = { version = "5.0.0", path = "proc-macro" }
sp-externalities = { version = "0.12.0", optional = true, path = "../externalities" }
sp-externalities = { version = "0.12.0", default-features = false, path = "../externalities" }
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false }
static_assertions = "1.0.0"
primitive-types = { version = "0.11.1", default-features = false }
@@ -40,7 +40,7 @@ std = [
"sp-std/std",
"sp-tracing/std",
"codec/std",
"sp-externalities",
"sp-externalities/std",
"primitive-types/std",
]