Commit e71c7b25 authored by thiolliere's avatar thiolliere Committed by GitHub
Browse files

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: default avatarOliver Tale-Yazdi <[email protected]>

* Add error docs

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Remove phantom data

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Use rust 2021

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Update crate features

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Fmt

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Make compile

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* 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: default avatarOliver Tale-Yazdi <[email protected]>

* 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: default avatarOliver Tale-Yazdi <[email protected]>

Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
Co-authored-by: default avatarParity Bot <[email protected]>
parent 5ae3ed3b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment