Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Commit b1df990

Browse files
committed
1 parent 51ce7ff commit b1df990

20 files changed

+424
-424
lines changed

runtime/common/src/helixbridge/weight.rs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
7373
// Storage: System Events (r:1 w:1)
7474
// Storage: Balances TotalIssuance (r:1 w:1)
7575
fn issue_from_remote() -> Weight {
76-
(172_000_000 as Weight)
77-
.saturating_add(T::DbWeight::get().reads(9 as Weight))
78-
.saturating_add(T::DbWeight::get().writes(4 as Weight))
76+
Weight::from_ref_time(172_000_000 as u64)
77+
.saturating_add(T::DbWeight::get().reads(9 as u64))
78+
.saturating_add(T::DbWeight::get().writes(4 as u64))
7979
}
8080
// Storage: System Account (r:3 w:3)
8181
// Storage: System Number (r:1 w:0)
@@ -89,30 +89,30 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
8989
// Storage: ParaChainIssuing TransactionInfos (r:1 w:1)
9090
// Storage: BridgePangoroMessages OutboundMessages (r:0 w:1)
9191
fn burn_and_remote_unlock() -> Weight {
92-
(424_000_000 as Weight)
93-
.saturating_add(T::DbWeight::get().reads(13 as Weight))
94-
.saturating_add(T::DbWeight::get().writes(8 as Weight))
92+
Weight::from_ref_time(424_000_000 as u64)
93+
.saturating_add(T::DbWeight::get().reads(13 as u64))
94+
.saturating_add(T::DbWeight::get().writes(8 as u64))
9595
}
9696
// Storage: System Number (r:1 w:0)
9797
// Storage: System ExecutionPhase (r:1 w:0)
9898
// Storage: System EventCount (r:1 w:1)
9999
// Storage: System Events (r:1 w:1)
100100
// Storage: ParaChainIssuing RemoteBackingAccount (r:0 w:1)
101101
fn set_remote_backing_account() -> Weight {
102-
(43_000_000 as Weight)
103-
.saturating_add(T::DbWeight::get().reads(4 as Weight))
104-
.saturating_add(T::DbWeight::get().writes(3 as Weight))
102+
Weight::from_ref_time(43_000_000 as u64)
103+
.saturating_add(T::DbWeight::get().reads(4 as u64))
104+
.saturating_add(T::DbWeight::get().writes(3 as u64))
105105
}
106106
// Storage: ParaChainIssuing SecureLimitedPeriod (r:0 w:1)
107107
fn set_secure_limited_period() -> Weight {
108-
(5_000_000 as Weight)
109-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
108+
Weight::from_ref_time(5_000_000 as u64)
109+
.saturating_add(T::DbWeight::get().writes(1 as u64))
110110
}
111111
// Storage: ParaChainIssuing SecureLimitedRingAmount (r:1 w:1)
112112
fn set_security_limitation_ring_amount() -> Weight {
113-
(15_000_000 as Weight)
114-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
115-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
113+
Weight::from_ref_time(15_000_000 as u64)
114+
.saturating_add(T::DbWeight::get().reads(1 as u64))
115+
.saturating_add(T::DbWeight::get().writes(1 as u64))
116116
}
117117
}
118118

@@ -128,9 +128,9 @@ impl WeightInfo for () {
128128
// Storage: System Events (r:1 w:1)
129129
// Storage: Balances TotalIssuance (r:1 w:1)
130130
fn issue_from_remote() -> Weight {
131-
(172_000_000 as Weight)
132-
.saturating_add(RocksDbWeight::get().reads(9 as Weight))
133-
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
131+
Weight::from_ref_time(172_000_000 as u64)
132+
.saturating_add(RocksDbWeight::get().reads(9 as u64))
133+
.saturating_add(RocksDbWeight::get().writes(4 as u64))
134134
}
135135
// Storage: System Account (r:3 w:3)
136136
// Storage: System Number (r:1 w:0)
@@ -144,29 +144,29 @@ impl WeightInfo for () {
144144
// Storage: ParaChainIssuing TransactionInfos (r:1 w:1)
145145
// Storage: BridgePangoroMessages OutboundMessages (r:0 w:1)
146146
fn burn_and_remote_unlock() -> Weight {
147-
(424_000_000 as Weight)
148-
.saturating_add(RocksDbWeight::get().reads(13 as Weight))
149-
.saturating_add(RocksDbWeight::get().writes(8 as Weight))
147+
Weight::from_ref_time(424_000_000 as u64)
148+
.saturating_add(RocksDbWeight::get().reads(13 as u64))
149+
.saturating_add(RocksDbWeight::get().writes(8 as u64))
150150
}
151151
// Storage: System Number (r:1 w:0)
152152
// Storage: System ExecutionPhase (r:1 w:0)
153153
// Storage: System EventCount (r:1 w:1)
154154
// Storage: System Events (r:1 w:1)
155155
// Storage: ParaChainIssuing RemoteBackingAccount (r:0 w:1)
156156
fn set_remote_backing_account() -> Weight {
157-
(43_000_000 as Weight)
158-
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
159-
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
157+
Weight::from_ref_time(43_000_000 as u64)
158+
.saturating_add(RocksDbWeight::get().reads(4 as u64))
159+
.saturating_add(RocksDbWeight::get().writes(3 as u64))
160160
}
161161
// Storage: ParaChainIssuing SecureLimitedPeriod (r:0 w:1)
162162
fn set_secure_limited_period() -> Weight {
163-
(5_000_000 as Weight)
164-
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
163+
Weight::from_ref_time(5_000_000 as u64)
164+
.saturating_add(RocksDbWeight::get().writes(1 as u64))
165165
}
166166
// Storage: ParaChainIssuing SecureLimitedRingAmount (r:1 w:1)
167167
fn set_security_limitation_ring_amount() -> Weight {
168-
(15_000_000 as Weight)
169-
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
170-
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
168+
Weight::from_ref_time(15_000_000 as u64)
169+
.saturating_add(RocksDbWeight::get().reads(1 as u64))
170+
.saturating_add(RocksDbWeight::get().writes(1 as u64))
171171
}
172172
}

runtime/crab-parachain/src/weights/cumulus_pallet_xcmp_queue.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ pub struct WeightInfo<T>(PhantomData<T>);
5656
impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
5757
// Storage: XcmpQueue QueueConfig (r:1 w:1)
5858
fn set_config_with_u32() -> Weight {
59-
(2_531_000 as Weight)
60-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
61-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
59+
Weight::from_ref_time(2_531_000 as u64)
60+
.saturating_add(T::DbWeight::get().reads(1 as u64))
61+
.saturating_add(T::DbWeight::get().writes(1 as u64))
6262
}
6363
// Storage: XcmpQueue QueueConfig (r:1 w:1)
6464
fn set_config_with_weight() -> Weight {
65-
(2_509_000 as Weight)
66-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
67-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
65+
Weight::from_ref_time(2_509_000 as u64)
66+
.saturating_add(T::DbWeight::get().reads(1 as u64))
67+
.saturating_add(T::DbWeight::get().writes(1 as u64))
6868
}
6969
}

runtime/crab-parachain/src/weights/frame_system.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,39 +55,39 @@ use sp_std::marker::PhantomData;
5555
pub struct WeightInfo<T>(PhantomData<T>);
5656
impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
5757
fn remark(_b: u32, ) -> Weight {
58-
(1_668_000 as Weight)
58+
Weight::from_ref_time(1_668_000 as u64)
5959
}
6060
fn remark_with_event(b: u32, ) -> Weight {
61-
(5_271_000 as Weight)
61+
Weight::from_ref_time(5_271_000 as u64)
6262
// Standard Error: 0
63-
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
63+
.saturating_add(Weight::from_ref_time(1_000 as u64).saturating_mul(b as u64))
6464
}
6565
// Storage: System Digest (r:1 w:1)
6666
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
6767
fn set_heap_pages() -> Weight {
68-
(2_500_000 as Weight)
69-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
70-
.saturating_add(T::DbWeight::get().writes(2 as Weight))
68+
Weight::from_ref_time(2_500_000 as u64)
69+
.saturating_add(T::DbWeight::get().reads(1 as u64))
70+
.saturating_add(T::DbWeight::get().writes(2 as u64))
7171
}
7272
// Storage: Skipped Metadata (r:0 w:0)
7373
fn set_storage(i: u32, ) -> Weight {
74-
(0 as Weight)
74+
Weight::from_ref_time(0 as u64)
7575
// Standard Error: 0
76-
.saturating_add((445_000 as Weight).saturating_mul(i as Weight))
77-
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
76+
.saturating_add(Weight::from_ref_time(445_000 as u64).saturating_mul(i as u64))
77+
.saturating_add(T::DbWeight::get().writes(Weight::from_ref_time(1 as u64).saturating_mul(i as u64)))
7878
}
7979
// Storage: Skipped Metadata (r:0 w:0)
8080
fn kill_storage(i: u32, ) -> Weight {
81-
(0 as Weight)
81+
Weight::from_ref_time(0 as u64)
8282
// Standard Error: 0
83-
.saturating_add((314_000 as Weight).saturating_mul(i as Weight))
84-
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
83+
.saturating_add(Weight::from_ref_time(314_000 as u64).saturating_mul(i as u64))
84+
.saturating_add(T::DbWeight::get().writes(Weight::from_ref_time(1 as u64).saturating_mul(i as u64)))
8585
}
8686
// Storage: Skipped Metadata (r:0 w:0)
8787
fn kill_prefix(p: u32, ) -> Weight {
88-
(1_189_000 as Weight)
88+
Weight::from_ref_time(1_189_000 as u64)
8989
// Standard Error: 0
90-
.saturating_add((680_000 as Weight).saturating_mul(p as Weight))
91-
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
90+
.saturating_add(Weight::from_ref_time(680_000 as u64).saturating_mul(p as u64))
91+
.saturating_add(T::DbWeight::get().writes(Weight::from_ref_time(1 as u64).saturating_mul(p as u64)))
9292
}
9393
}

runtime/crab-parachain/src/weights/pallet_balances.rs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -56,44 +56,44 @@ pub struct WeightInfo<T>(PhantomData<T>);
5656
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
5757
// Storage: System Account (r:1 w:1)
5858
fn transfer() -> Weight {
59-
(32_320_000 as Weight)
60-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
61-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
59+
Weight::from_ref_time(32_320_000 as u64)
60+
.saturating_add(T::DbWeight::get().reads(1 as u64))
61+
.saturating_add(T::DbWeight::get().writes(1 as u64))
6262
}
6363
// Storage: System Account (r:1 w:1)
6464
fn transfer_keep_alive() -> Weight {
65-
(28_310_000 as Weight)
66-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
67-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
65+
Weight::from_ref_time(28_310_000 as u64)
66+
.saturating_add(T::DbWeight::get().reads(1 as u64))
67+
.saturating_add(T::DbWeight::get().writes(1 as u64))
6868
}
6969
// Storage: System Account (r:1 w:1)
7070
fn set_balance_creating() -> Weight {
71-
(16_820_000 as Weight)
72-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
73-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
71+
Weight::from_ref_time(16_820_000 as u64)
72+
.saturating_add(T::DbWeight::get().reads(1 as u64))
73+
.saturating_add(T::DbWeight::get().writes(1 as u64))
7474
}
7575
// Storage: System Account (r:1 w:1)
7676
fn set_balance_killing() -> Weight {
77-
(20_210_000 as Weight)
78-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
79-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
77+
Weight::from_ref_time(20_210_000 as u64)
78+
.saturating_add(T::DbWeight::get().reads(1 as u64))
79+
.saturating_add(T::DbWeight::get().writes(1 as u64))
8080
}
8181
// Storage: System Account (r:2 w:2)
8282
fn force_transfer() -> Weight {
83-
(32_430_000 as Weight)
84-
.saturating_add(T::DbWeight::get().reads(2 as Weight))
85-
.saturating_add(T::DbWeight::get().writes(2 as Weight))
83+
Weight::from_ref_time(32_430_000 as u64)
84+
.saturating_add(T::DbWeight::get().reads(2 as u64))
85+
.saturating_add(T::DbWeight::get().writes(2 as u64))
8686
}
8787
// Storage: System Account (r:1 w:1)
8888
fn transfer_all() -> Weight {
89-
(35_030_000 as Weight)
90-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
91-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
89+
Weight::from_ref_time(35_030_000 as u64)
90+
.saturating_add(T::DbWeight::get().reads(1 as u64))
91+
.saturating_add(T::DbWeight::get().writes(1 as u64))
9292
}
9393
// Storage: System Account (r:1 w:1)
9494
fn force_unreserve() -> Weight {
95-
(15_010_000 as Weight)
96-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
97-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
95+
Weight::from_ref_time(15_010_000 as u64)
96+
.saturating_add(T::DbWeight::get().reads(1 as u64))
97+
.saturating_add(T::DbWeight::get().writes(1 as u64))
9898
}
9999
}

runtime/crab-parachain/src/weights/pallet_collator_selection.rs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@ pub struct WeightInfo<T>(PhantomData<T>);
5656
impl<T: frame_system::Config> pallet_collator_selection::WeightInfo for WeightInfo<T> {
5757
// Storage: CollatorSelection Invulnerables (r:0 w:1)
5858
fn set_invulnerables(b: u32, ) -> Weight {
59-
(9_692_000 as Weight)
59+
Weight::from_ref_time(9_692_000 as u64)
6060
// Standard Error: 0
61-
.saturating_add((29_000 as Weight).saturating_mul(b as Weight))
62-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
61+
.saturating_add(Weight::from_ref_time(29_000 as u64).saturating_mul(b as u64))
62+
.saturating_add(T::DbWeight::get().writes(1 as u64))
6363
}
6464
// Storage: CollatorSelection DesiredCandidates (r:0 w:1)
6565
fn set_desired_candidates() -> Weight {
66-
(8_640_000 as Weight)
67-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
66+
Weight::from_ref_time(8_640_000 as u64)
67+
.saturating_add(T::DbWeight::get().writes(1 as u64))
6868
}
6969
// Storage: CollatorSelection CandidacyBond (r:0 w:1)
7070
fn set_candidacy_bond() -> Weight {
71-
(8_910_000 as Weight)
72-
.saturating_add(T::DbWeight::get().writes(1 as Weight))
71+
Weight::from_ref_time(8_910_000 as u64)
72+
.saturating_add(T::DbWeight::get().writes(1 as u64))
7373
}
7474
// Storage: CollatorSelection Candidates (r:1 w:1)
7575
// Storage: CollatorSelection DesiredCandidates (r:1 w:0)
@@ -78,42 +78,42 @@ impl<T: frame_system::Config> pallet_collator_selection::WeightInfo for WeightIn
7878
// Storage: CollatorSelection CandidacyBond (r:1 w:0)
7979
// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
8080
fn register_as_candidate(c: u32, ) -> Weight {
81-
(47_331_000 as Weight)
81+
Weight::from_ref_time(47_331_000 as u64)
8282
// Standard Error: 1_000
83-
.saturating_add((119_000 as Weight).saturating_mul(c as Weight))
84-
.saturating_add(T::DbWeight::get().reads(5 as Weight))
85-
.saturating_add(T::DbWeight::get().writes(2 as Weight))
83+
.saturating_add(Weight::from_ref_time(119_000 as u64).saturating_mul(c as u64))
84+
.saturating_add(T::DbWeight::get().reads(5 as u64))
85+
.saturating_add(T::DbWeight::get().writes(2 as u64))
8686
}
8787
// Storage: CollatorSelection Candidates (r:1 w:1)
8888
// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
8989
fn leave_intent(c: u32, ) -> Weight {
90-
(48_752_000 as Weight)
90+
Weight::from_ref_time(48_752_000 as u64)
9191
// Standard Error: 1_000
92-
.saturating_add((172_000 as Weight).saturating_mul(c as Weight))
93-
.saturating_add(T::DbWeight::get().reads(1 as Weight))
94-
.saturating_add(T::DbWeight::get().writes(2 as Weight))
92+
.saturating_add(Weight::from_ref_time(172_000 as u64).saturating_mul(c as u64))
93+
.saturating_add(T::DbWeight::get().reads(1 as u64))
94+
.saturating_add(T::DbWeight::get().writes(2 as u64))
9595
}
9696
// Storage: System Account (r:2 w:2)
9797
// Storage: System BlockWeight (r:1 w:1)
9898
// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
9999
fn note_author() -> Weight {
100-
(34_540_000 as Weight)
101-
.saturating_add(T::DbWeight::get().reads(3 as Weight))
102-
.saturating_add(T::DbWeight::get().writes(4 as Weight))
100+
Weight::from_ref_time(34_540_000 as u64)
101+
.saturating_add(T::DbWeight::get().reads(3 as u64))
102+
.saturating_add(T::DbWeight::get().writes(4 as u64))
103103
}
104104
// Storage: CollatorSelection Candidates (r:1 w:1)
105105
// Storage: CollatorSelection LastAuthoredBlock (r:1000 w:1)
106106
// Storage: System Account (r:1 w:1)
107107
// Storage: CollatorSelection Invulnerables (r:1 w:0)
108108
// Storage: System BlockWeight (r:1 w:1)
109109
fn new_session(r: u32, c: u32, ) -> Weight {
110-
(0 as Weight)
110+
Weight::from_ref_time(0 as u64)
111111
// Standard Error: 3_675_000
112-
.saturating_add((19_258_000 as Weight).saturating_mul(r as Weight))
112+
.saturating_add(Weight::from_ref_time(19_258_000 as u64).saturating_mul(r as u64))
113113
// Standard Error: 3_675_000
114-
.saturating_add((95_695_000 as Weight).saturating_mul(c as Weight))
115-
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
116-
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(r as Weight)))
117-
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(c as Weight)))
114+
.saturating_add(Weight::from_ref_time(95_695_000 as u64).saturating_mul(c as u64))
115+
.saturating_add(T::DbWeight::get().reads(Weight::from_ref_time(2 as u64).saturating_mul(c as u64)))
116+
.saturating_add(T::DbWeight::get().writes(Weight::from_ref_time(1 as u64).saturating_mul(r as u64)))
117+
.saturating_add(T::DbWeight::get().writes(Weight::from_ref_time(1 as u64).saturating_mul(c as u64)))
118118
}
119119
}

0 commit comments

Comments
 (0)