new pallet: whitelist pallet (#10159)
* pallet whitelist * refactor a bit * fmt * address audit * improve tests * return Ok + refund * add test for dispatching failing * add dispatch_whitelisted_call_with_preimage * fmt * better name * Consume all data on decode Signed-off-by:Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add error docs Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Remove phantom data Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use rust 2021 Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update crate features Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fmt Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Make compile Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_whitelist --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/whitelist/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Bump Preimage max size Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_whitelist --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/whitelist/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Fmt Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by:
Parity Bot <admin@parity.io>
Showing
- substrate/Cargo.lock 19 additions, 0 deletionssubstrate/Cargo.lock
- substrate/Cargo.toml 1 addition, 0 deletionssubstrate/Cargo.toml
- substrate/bin/node/runtime/Cargo.toml 3 additions, 0 deletionssubstrate/bin/node/runtime/Cargo.toml
- substrate/bin/node/runtime/src/lib.rs 11 additions, 0 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/conviction-voting/Cargo.toml 1 addition, 1 deletionsubstrate/frame/conviction-voting/Cargo.toml
- substrate/frame/referenda/Cargo.toml 1 addition, 1 deletionsubstrate/frame/referenda/Cargo.toml
- substrate/frame/whitelist/Cargo.toml 47 additions, 0 deletionssubstrate/frame/whitelist/Cargo.toml
- substrate/frame/whitelist/src/benchmarking.rs 120 additions, 0 deletionssubstrate/frame/whitelist/src/benchmarking.rs
- substrate/frame/whitelist/src/lib.rs 244 additions, 0 deletionssubstrate/frame/whitelist/src/lib.rs
- substrate/frame/whitelist/src/mock.rs 124 additions, 0 deletionssubstrate/frame/whitelist/src/mock.rs
- substrate/frame/whitelist/src/tests.rs 175 additions, 0 deletionssubstrate/frame/whitelist/src/tests.rs
- substrate/frame/whitelist/src/weights.rs 126 additions, 0 deletionssubstrate/frame/whitelist/src/weights.rs
- substrate/primitives/runtime/src/lib.rs 1 addition, 1 deletionsubstrate/primitives/runtime/src/lib.rs
Please register or sign in to comment