transactional: Wrap `pallet::calls` directly in storage layers (#11927)
* transactional: Wrap `pallet::calls` directly in storage layers Before this pr we only wrapped `pallet::calls` into storage layers when executing the calls with `dispatch`. This pr is solving that by wrapping each call function inside a storage layer. * Teach `BasicExternalities` transactions support * Fix crates * FMT * Fix benchmarking tests * Use correct span * Support old decl macros * Fix test * Apply suggestions from code review Co-authored-by:Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update frame/state-trie-migration/src/lib.rs * Update frame/state-trie-migration/src/lib.rs * Update frame/state-trie-migration/src/lib.rs * Feedback * Apply suggestions from code review Co-authored-by:
cheme <emericchevalier.pro@gmail.com> Co-authored-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by:
cheme <emericchevalier.pro@gmail.com>
Showing
- substrate/frame/state-trie-migration/src/lib.rs 63 additions, 65 deletionssubstrate/frame/state-trie-migration/src/lib.rs
- substrate/frame/support/procedural/src/pallet/expand/call.rs 20 additions, 6 deletionssubstrate/frame/support/procedural/src/pallet/expand/call.rs
- substrate/frame/support/procedural/src/pallet/parse/call.rs 10 additions, 10 deletionssubstrate/frame/support/procedural/src/pallet/parse/call.rs
- substrate/frame/support/src/dispatch.rs 9 additions, 5 deletionssubstrate/frame/support/src/dispatch.rs
- substrate/frame/support/test/tests/construct_runtime.rs 90 additions, 88 deletionssubstrate/frame/support/test/tests/construct_runtime.rs
- substrate/frame/support/test/tests/storage_layers.rs 2 additions, 0 deletionssubstrate/frame/support/test/tests/storage_layers.rs
- substrate/frame/transaction-storage/src/lib.rs 3 additions, 1 deletionsubstrate/frame/transaction-storage/src/lib.rs
- substrate/primitives/state-machine/src/basic.rs 76 additions, 116 deletionssubstrate/primitives/state-machine/src/basic.rs
- substrate/primitives/state-machine/src/overlayed_changes/changeset.rs 28 additions, 3 deletions...imitives/state-machine/src/overlayed_changes/changeset.rs
- substrate/primitives/state-machine/src/overlayed_changes/mod.rs 15 additions, 0 deletions...ate/primitives/state-machine/src/overlayed_changes/mod.rs
Please register or sign in to comment