-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Assets: Remove zombies, introduce approvals #8220
Changes from 2 commits
5cfffff
386efbf
9a5b28b
177baef
1a5e42c
853218d
fcaa301
ee28626
296e4b6
3902598
9f63908
442f7cc
ba0740d
b0a31da
ffda2b0
3f55cf9
796e2d7
b10e9ce
fc2c8de
a590d75
c57af01
e3db10c
319e691
12c99ea
45e0a74
391988e
110013a
431824b
84f4526
7e45efe
9f1efca
5449a19
65cc507
a31055f
8dd46fc
2f1e7ab
efaba28
6347d53
ec94be6
05e9fe7
859018f
8d1c6d1
ccdc266
44d8319
8988dd1
84f2b1f
cdc1aa8
74f5ba5
e72bb39
3529fd9
1c83d86
2c79242
d0fbb1d
85e7f46
1f1a031
affe515
93af7b2
08f82d4
3b583b3
eb414ae
11fd0a6
db64fc5
402c43a
c54d34f
b112a9b
5a48ee4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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: | ||
|
|
@@ -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; | ||
|
|
@@ -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))) | ||
|
|
@@ -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) | ||
| .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) | ||
|
||
| .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) | ||
|
||
| .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)) | ||
| } | ||
|
|
@@ -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))) | ||
|
|
@@ -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)) | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suspicious