Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 2 commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
5cfffff
Initial work
gavofyork Jan 19, 2021
386efbf
Merge remote-tracking branch 'origin/master' into gav-assets-approve-api
gavofyork Feb 27, 2021
9a5b28b
Tests for frame system
gavofyork Feb 27, 2021
177baef
Merge remote-tracking branch 'origin/master' into gav-assets-approve-api
gavofyork Feb 27, 2021
1a5e42c
Self-sufficient account ref-counting
gavofyork Feb 27, 2021
853218d
Merge branch 'gav-self-sufficient-ref-count' into gav-assets-approve-api
gavofyork Feb 27, 2021
fcaa301
Fixes
gavofyork Feb 27, 2021
ee28626
Merge branch 'gav-self-sufficient-ref-count' into gav-assets-approve-api
gavofyork Feb 27, 2021
296e4b6
Benchmarks building.
gavofyork Feb 27, 2021
3902598
Update frame/system/src/lib.rs
gavofyork Feb 27, 2021
9f63908
Fixes
gavofyork Feb 27, 2021
442f7cc
Fixes
gavofyork Feb 28, 2021
ba0740d
Fixes
gavofyork Feb 28, 2021
b0a31da
Merge branch 'gav-self-sufficient-ref-count' of github.com:paritytech…
gavofyork Feb 28, 2021
ffda2b0
Merge branch 'gav-self-sufficient-ref-count' into gav-assets-approve-api
gavofyork Feb 28, 2021
3f55cf9
Fixes
gavofyork Feb 28, 2021
796e2d7
Merge branch 'gav-self-sufficient-ref-count' into gav-assets-approve-api
gavofyork Feb 28, 2021
b10e9ce
Fixes
gavofyork Feb 28, 2021
fc2c8de
Fixes
gavofyork Feb 28, 2021
a590d75
Merge branch 'gav-self-sufficient-ref-count' into gav-assets-approve-api
gavofyork Feb 28, 2021
c57af01
Test approvals
gavofyork Feb 28, 2021
e3db10c
Fixes
gavofyork Feb 28, 2021
319e691
Merge branch 'gav-self-sufficient-ref-count' into gav-assets-approve-api
gavofyork Feb 28, 2021
12c99ea
Report assets pallet tests
gavofyork Feb 28, 2021
45e0a74
Tests for approvals & force_cancel_approval
gavofyork Feb 28, 2021
391988e
Use structs rather than tuples for approval data
gavofyork Feb 28, 2021
110013a
Add force_asset_status, force_set_metadata
gavofyork Feb 28, 2021
431824b
Add clear_metadata.
gavofyork Feb 28, 2021
84f4526
approval benchmarks
gavofyork Feb 28, 2021
7e45efe
force_asset_status benchmarks
gavofyork Feb 28, 2021
9f1efca
final benchmarks
gavofyork Feb 28, 2021
5449a19
Merge remote-tracking branch 'origin/master' into gav-assets-approve-api
Feb 28, 2021
65cc507
cargo run --release --features=runtime-benchmarks --manifest-path=bin…
Feb 28, 2021
a31055f
Update frame/system/src/lib.rs
gavofyork Mar 2, 2021
8dd46fc
Update frame/system/src/lib.rs
gavofyork Mar 2, 2021
2f1e7ab
Update frame/system/src/lib.rs
gavofyork Mar 2, 2021
efaba28
Merge branch 'master' into gav-self-sufficient-ref-count
gavofyork Mar 2, 2021
6347d53
Merge branch 'gav-self-sufficient-ref-count' into gav-assets-approve-api
gavofyork Mar 2, 2021
ec94be6
Merge remote-tracking branch 'origin/master' into gav-assets-approve-api
gavofyork Mar 5, 2021
05e9fe7
Docs for new approval dispatches.
gavofyork Mar 6, 2021
859018f
Merge remote-tracking branch 'origin/master' into gav-assets-approve-api
gavofyork Mar 6, 2021
8d1c6d1
Docs for pallet.
gavofyork Mar 6, 2021
ccdc266
Remove accidental code.
gavofyork Mar 6, 2021
44d8319
Merge remote-tracking branch 'origin/master' into gav-assets-approve-api
Mar 7, 2021
8988dd1
cargo run --release --features=runtime-benchmarks --manifest-path=bin…
Mar 7, 2021
84f2b1f
cargo run --release --features=runtime-benchmarks --manifest-path=bin…
Mar 7, 2021
cdc1aa8
Fixes
gavofyork Mar 7, 2021
74f5ba5
Merge branch 'gav-assets-approve-api' of github.com:paritytech/substr…
gavofyork Mar 7, 2021
e72bb39
Update frame/assets/src/lib.rs
gavofyork Mar 8, 2021
3529fd9
Grumbles.
gavofyork Mar 8, 2021
1c83d86
Merge branch 'gav-assets-approve-api' of github.com:paritytech/substr…
gavofyork Mar 8, 2021
2c79242
Merge branch 'master' into gav-assets-approve-api
shawntabrizi Mar 8, 2021
d0fbb1d
Transfer zero works, use DispatchResult
gavofyork Mar 8, 2021
85e7f46
Merge branch 'gav-assets-approve-api' of github.com:paritytech/substr…
gavofyork Mar 8, 2021
1f1a031
fix test
shawntabrizi Mar 8, 2021
affe515
Merge branch 'gav-assets-approve-api' of https://github.com/paritytec…
shawntabrizi Mar 8, 2021
93af7b2
Remove force_destroy
gavofyork Mar 8, 2021
08f82d4
Merge branch 'gav-assets-approve-api' of github.com:paritytech/substr…
gavofyork Mar 8, 2021
3b583b3
Remove TODO
gavofyork Mar 8, 2021
eb414ae
cargo run --release --features=runtime-benchmarks --manifest-path=bin…
Mar 8, 2021
11fd0a6
transfer_keep_alive
gavofyork Mar 8, 2021
db64fc5
Merge branch 'gav-assets-approve-api' of github.com:paritytech/substr…
gavofyork Mar 8, 2021
402c43a
Fixes
gavofyork Mar 8, 2021
c54d34f
Fixes
gavofyork Mar 8, 2021
b112a9b
Fixes
gavofyork Mar 8, 2021
5a48ee4
cargo run --release --features=runtime-benchmarks --manifest-path=bin…
Mar 8, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
167 changes: 65 additions & 102 deletions frame/assets/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Autogenerated weights for pallet_assets
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
//! DATE: 2021-03-07, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2021-03-08, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128

// Executed Command:
Expand Down Expand Up @@ -47,7 +47,6 @@ pub trait WeightInfo {
fn create() -> Weight;
fn force_create() -> Weight;
fn destroy(c: u32, s: u32, a: u32, ) -> Weight;
fn force_destroy(c: u32, s: u32, a: u32, ) -> Weight;
fn mint() -> Weight;
fn burn() -> Weight;
fn transfer() -> Weight;
Expand All @@ -73,39 +72,23 @@ pub trait WeightInfo {
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn create() -> Weight {
(50_022_000 as Weight)
(48_518_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn force_create() -> Weight {
(25_332_000 as Weight)
(24_464_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn destroy(c: u32, s: u32, a: u32, ) -> Weight {
(14_555_000 as Weight)
// Standard Error: 40_000
.saturating_add((20_033_000 as Weight).saturating_mul(c as Weight))
// Standard Error: 40_000
.saturating_add((26_534_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 4_000
.saturating_add((1_077_000 as Weight).saturating_mul(a as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(c as Weight)))
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
}
fn force_destroy(c: u32, s: u32, a: u32, ) -> Weight {
(935_000 as Weight)
// Standard Error: 44_000
.saturating_add((20_062_000 as Weight).saturating_mul(c as Weight))
// Standard Error: 44_000
.saturating_add((26_665_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 4_000
.saturating_add((1_098_000 as Weight).saturating_mul(a as Weight))
(0 as Weight)
// Standard Error: 41_000
.saturating_add((24_652_000 as Weight).saturating_mul(c as Weight))
// Standard Error: 41_000
.saturating_add((30_831_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 416_000
.saturating_add((3_333_000 as Weight).saturating_mul(a as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
Expand All @@ -115,105 +98,103 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
}
fn mint() -> Weight {
(47_942_000 as Weight)
(46_912_000 as Weight)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suspicious

.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
fn burn() -> Weight {
(48_180_000 as Weight)
(47_042_000 as Weight)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suspicious.

.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
fn transfer() -> Weight {
(73_582_000 as Weight)
(71_531_000 as Weight)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still doesn't look good. Increase of 75% in time to execute...

Copy link
Member Author

@gavofyork gavofyork Mar 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell, it's down to the fact that the new code always bumps reference in the system account, whereas the old code didn't need to if it was a zombie (which is the case with the old benchmarking). odd that reading a storage item and bumping a reference would cost so much.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Introduced transfer_keep_alive which should have a lower weight since it will never result in the source account getting killed.

.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
fn force_transfer() -> Weight {
(73_632_000 as Weight)
(71_711_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
fn freeze() -> Weight {
(35_904_000 as Weight)
(34_816_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn thaw() -> Weight {
(35_835_000 as Weight)
(34_895_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn freeze_asset() -> Weight {
(25_437_000 as Weight)
(24_653_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn thaw_asset() -> Weight {
(25_669_000 as Weight)
(24_869_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn transfer_ownership() -> Weight {
(29_635_000 as Weight)
(28_429_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn set_team() -> Weight {
(26_157_000 as Weight)
(25_378_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn set_metadata(n: u32, s: u32, ) -> Weight {
(55_199_000 as Weight)
// Standard Error: 0
.saturating_add((3_000 as Weight).saturating_mul(n as Weight))
fn set_metadata(_n: u32, s: u32, ) -> Weight {
(53_787_000 as Weight)
// Standard Error: 0
.saturating_add((11_000 as Weight).saturating_mul(s as Weight))
.saturating_add((8_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn clear_metadata() -> Weight {
(54_102_000 as Weight)
(52_203_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn force_set_metadata(n: u32, s: u32, ) -> Weight {
(28_278_000 as Weight)
(27_129_000 as Weight)
// Standard Error: 0
.saturating_add((1_000 as Weight).saturating_mul(n as Weight))
.saturating_add((2_000 as Weight).saturating_mul(n as Weight))
// Standard Error: 0
.saturating_add((10_000 as Weight).saturating_mul(s as Weight))
.saturating_add((8_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn force_clear_metadata() -> Weight {
(53_747_000 as Weight)
(52_374_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn force_asset_status() -> Weight {
(24_532_000 as Weight)
(23_834_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn approve_transfer() -> Weight {
(49_763_000 as Weight)
(48_433_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn transfer_approved() -> Weight {
(94_241_000 as Weight)
(91_819_000 as Weight)
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
}
fn cancel_approval() -> Weight {
(50_669_000 as Weight)
(49_218_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn force_cancel_approval() -> Weight {
(57_471_000 as Weight)
(56_053_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand All @@ -222,39 +203,23 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// For backwards compatibility and tests
impl WeightInfo for () {
fn create() -> Weight {
(50_022_000 as Weight)
(48_518_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn force_create() -> Weight {
(25_332_000 as Weight)
(24_464_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn destroy(c: u32, s: u32, a: u32, ) -> Weight {
(14_555_000 as Weight)
// Standard Error: 40_000
.saturating_add((20_033_000 as Weight).saturating_mul(c as Weight))
// Standard Error: 40_000
.saturating_add((26_534_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 4_000
.saturating_add((1_077_000 as Weight).saturating_mul(a as Weight))
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
.saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(c as Weight)))
.saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
}
fn force_destroy(c: u32, s: u32, a: u32, ) -> Weight {
(935_000 as Weight)
// Standard Error: 44_000
.saturating_add((20_062_000 as Weight).saturating_mul(c as Weight))
// Standard Error: 44_000
.saturating_add((26_665_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 4_000
.saturating_add((1_098_000 as Weight).saturating_mul(a as Weight))
(0 as Weight)
// Standard Error: 41_000
.saturating_add((24_652_000 as Weight).saturating_mul(c as Weight))
// Standard Error: 41_000
.saturating_add((30_831_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 416_000
.saturating_add((3_333_000 as Weight).saturating_mul(a as Weight))
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
Expand All @@ -264,105 +229,103 @@ impl WeightInfo for () {
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
}
fn mint() -> Weight {
(47_942_000 as Weight)
(46_912_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
fn burn() -> Weight {
(48_180_000 as Weight)
(47_042_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
fn transfer() -> Weight {
(73_582_000 as Weight)
(71_531_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
}
fn force_transfer() -> Weight {
(73_632_000 as Weight)
(71_711_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
}
fn freeze() -> Weight {
(35_904_000 as Weight)
(34_816_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn thaw() -> Weight {
(35_835_000 as Weight)
(34_895_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn freeze_asset() -> Weight {
(25_437_000 as Weight)
(24_653_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn thaw_asset() -> Weight {
(25_669_000 as Weight)
(24_869_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn transfer_ownership() -> Weight {
(29_635_000 as Weight)
(28_429_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn set_team() -> Weight {
(26_157_000 as Weight)
(25_378_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn set_metadata(n: u32, s: u32, ) -> Weight {
(55_199_000 as Weight)
// Standard Error: 0
.saturating_add((3_000 as Weight).saturating_mul(n as Weight))
fn set_metadata(_n: u32, s: u32, ) -> Weight {
(53_787_000 as Weight)
// Standard Error: 0
.saturating_add((11_000 as Weight).saturating_mul(s as Weight))
.saturating_add((8_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn clear_metadata() -> Weight {
(54_102_000 as Weight)
(52_203_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn force_set_metadata(n: u32, s: u32, ) -> Weight {
(28_278_000 as Weight)
(27_129_000 as Weight)
// Standard Error: 0
.saturating_add((1_000 as Weight).saturating_mul(n as Weight))
.saturating_add((2_000 as Weight).saturating_mul(n as Weight))
// Standard Error: 0
.saturating_add((10_000 as Weight).saturating_mul(s as Weight))
.saturating_add((8_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn force_clear_metadata() -> Weight {
(53_747_000 as Weight)
(52_374_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn force_asset_status() -> Weight {
(24_532_000 as Weight)
(23_834_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn approve_transfer() -> Weight {
(49_763_000 as Weight)
(48_433_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn transfer_approved() -> Weight {
(94_241_000 as Weight)
(91_819_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
}
fn cancel_approval() -> Weight {
(50_669_000 as Weight)
(49_218_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn force_cancel_approval() -> Weight {
(57_471_000 as Weight)
(56_053_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
Expand Down