Storage chain: Runtime module (#8624)

* Transaction storage runtime module

* WIP: Tests

* Tests, benchmarks  and docs

* Made check_proof mandatory

* Typo

* Renamed a crate

* Apply suggestions from code review

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Added weight for on_finalize

* Fixed counter mutations

* Reorganized tests

* Fixed build

* Update for the new inherent API

* Reworked for the new inherents API

* Apply suggestions from code review

Co-authored-by: cheme <emericchevalier.pro@gmail.com>
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>

* Store transactions in a Vec

* Added FeeDestination

* Get rid of constants

* Fixed node runtime build

* Fixed benches

* Update frame/transaction-storage/src/lib.rs

Co-authored-by: cheme <emericchevalier.pro@gmail.com>

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Co-authored-by: cheme <emericchevalier.pro@gmail.com>
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
Arkadiy Paronyan
2021-06-04 08:50:59 +02:00
committed by GitHub
parent 258c1a86f6
commit 84811dae00
30 changed files with 1534 additions and 29 deletions
+36
View File
@@ -4377,6 +4377,7 @@ dependencies = [
"pallet-tips",
"pallet-transaction-payment",
"pallet-transaction-payment-rpc-runtime-api",
"pallet-transaction-storage",
"pallet-treasury",
"pallet-uniques",
"pallet-utility",
@@ -5602,6 +5603,26 @@ dependencies = [
"sp-runtime",
]
[[package]]
name = "pallet-transaction-storage"
version = "3.0.0"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-support-test",
"frame-system",
"hex-literal",
"pallet-balances",
"parity-scale-codec",
"serde",
"sp-core",
"sp-inherents",
"sp-io",
"sp-runtime",
"sp-std",
"sp-transaction-storage-proof",
]
[[package]]
name = "pallet-treasury"
version = "3.0.0"
@@ -7953,6 +7974,7 @@ dependencies = [
"sp-state-machine",
"sp-tracing",
"sp-transaction-pool",
"sp-transaction-storage-proof",
"sp-trie",
"sp-utils",
"sp-version",
@@ -9314,6 +9336,20 @@ dependencies = [
"thiserror",
]
[[package]]
name = "sp-transaction-storage-proof"
version = "3.0.0"
dependencies = [
"async-trait",
"log",
"parity-scale-codec",
"sp-core",
"sp-inherents",
"sp-runtime",
"sp-std",
"sp-trie",
]
[[package]]
name = "sp-trie"
version = "3.0.0"