Storage Layer for All FRAME Extrinsics (#11431)
* add new trait * implement DispatchableWithStorageLayer * at least one transactional * all dispatch is at least transactional * storage_layer api * add test * storage layer tests * deprecate transactional tag * i guess no reason to deprecate * remove transactional from batch_all * update tests * extend trait * cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs * fix copy paste name * cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Create run_all_benchmarks.sh * uncomment build * update number of steps and repeats * add skip build * Update run_all_benchmarks.sh * Update run_all_benchmarks.sh * new benchmarks * Update frame/support/src/traits/dispatch.rs Co-authored-by:Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/support/src/traits/dispatch.rs Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/support/test/tests/storage_layers.rs Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/support/test/tests/storage_layers.rs * weights * Update dispatch.rs * doc link * decl_macro support Co-authored-by:
Parity Bot <admin@parity.io> Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Showing
- substrate/frame/assets/src/weights.rs 73 additions, 61 deletionssubstrate/frame/assets/src/weights.rs
- substrate/frame/bags-list/src/weights.rs 7 additions, 7 deletionssubstrate/frame/bags-list/src/weights.rs
- substrate/frame/balances/src/weights.rs 15 additions, 15 deletionssubstrate/frame/balances/src/weights.rs
- substrate/frame/benchmarking/src/weights.rs 23 additions, 27 deletionssubstrate/frame/benchmarking/src/weights.rs
- substrate/frame/bounties/src/weights.rs 27 additions, 31 deletionssubstrate/frame/bounties/src/weights.rs
- substrate/frame/child-bounties/src/weights.rs 17 additions, 17 deletionssubstrate/frame/child-bounties/src/weights.rs
- substrate/frame/collective/src/weights.rs 63 additions, 63 deletionssubstrate/frame/collective/src/weights.rs
- substrate/frame/conviction-voting/src/weights.rs 23 additions, 23 deletionssubstrate/frame/conviction-voting/src/weights.rs
- substrate/frame/democracy/src/weights.rs 91 additions, 91 deletionssubstrate/frame/democracy/src/weights.rs
- substrate/frame/election-provider-multi-phase/src/weights.rs 57 additions, 57 deletionssubstrate/frame/election-provider-multi-phase/src/weights.rs
- substrate/frame/elections-phragmen/src/weights.rs 53 additions, 49 deletionssubstrate/frame/elections-phragmen/src/weights.rs
- substrate/frame/gilt/src/weights.rs 29 additions, 29 deletionssubstrate/frame/gilt/src/weights.rs
- substrate/frame/identity/src/weights.rs 95 additions, 95 deletionssubstrate/frame/identity/src/weights.rs
- substrate/frame/im-online/src/weights.rs 5 additions, 5 deletionssubstrate/frame/im-online/src/weights.rs
- substrate/frame/indices/src/weights.rs 11 additions, 11 deletionssubstrate/frame/indices/src/weights.rs
- substrate/frame/lottery/src/weights.rs 17 additions, 17 deletionssubstrate/frame/lottery/src/weights.rs
- substrate/frame/membership/src/weights.rs 27 additions, 27 deletionssubstrate/frame/membership/src/weights.rs
- substrate/frame/multisig/src/weights.rs 39 additions, 39 deletionssubstrate/frame/multisig/src/weights.rs
- substrate/frame/nomination-pools/src/weights.rs 41 additions, 45 deletionssubstrate/frame/nomination-pools/src/weights.rs
- substrate/frame/preimage/src/weights.rs 19 additions, 19 deletionssubstrate/frame/preimage/src/weights.rs
Please register or sign in to comment