@@ -67,161 +67,161 @@ pub trait WeightInfo {
67
67
pub struct BridgeWeight < T > ( PhantomData < T > ) ;
68
68
impl < T : frame_system:: Config > WeightInfo for BridgeWeight < T > {
69
69
fn send_minimal_message_worst_case ( ) -> Weight {
70
- ( 117_480_000 as Weight )
71
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 7 as Weight ) )
72
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 12 as Weight ) )
70
+ Weight :: from_ref_time ( 117_480_000 as u64 )
71
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 7 as u64 ) )
72
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 12 as u64 ) )
73
73
}
74
74
75
75
fn send_1_kb_message_worst_case ( ) -> Weight {
76
- ( 128_391_000 as Weight )
77
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 7 as Weight ) )
78
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 12 as Weight ) )
76
+ Weight :: from_ref_time ( 128_391_000 as u64 )
77
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 7 as u64 ) )
78
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 12 as u64 ) )
79
79
}
80
80
81
81
fn send_16_kb_message_worst_case ( ) -> Weight {
82
- ( 149_149_000 as Weight )
83
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 7 as Weight ) )
84
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 12 as Weight ) )
82
+ Weight :: from_ref_time ( 149_149_000 as u64 )
83
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 7 as u64 ) )
84
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 12 as u64 ) )
85
85
}
86
86
87
87
fn maximal_increase_message_fee ( ) -> Weight {
88
- ( 6_015_058_000 as Weight )
89
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 as Weight ) )
90
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as Weight ) )
88
+ Weight :: from_ref_time ( 6_015_058_000 as u64 )
89
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 5 as u64 ) )
90
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as u64 ) )
91
91
}
92
92
93
93
fn receive_single_message_proof ( ) -> Weight {
94
- ( 179_892_000 as Weight )
95
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as Weight ) )
96
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as Weight ) )
94
+ Weight :: from_ref_time ( 179_892_000 as u64 )
95
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as u64 ) )
96
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as u64 ) )
97
97
}
98
98
99
99
fn receive_two_messages_proof ( ) -> Weight {
100
- ( 291_793_000 as Weight )
101
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as Weight ) )
102
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as Weight ) )
100
+ Weight :: from_ref_time ( 291_793_000 as u64 )
101
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as u64 ) )
102
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as u64 ) )
103
103
}
104
104
105
105
fn receive_single_message_proof_with_outbound_lane_state ( ) -> Weight {
106
- ( 192_191_000 as Weight )
107
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as Weight ) )
108
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as Weight ) )
106
+ Weight :: from_ref_time ( 192_191_000 as u64 )
107
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as u64 ) )
108
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as u64 ) )
109
109
}
110
110
111
111
fn receive_single_message_proof_1_kb ( ) -> Weight {
112
- ( 202_104_000 as Weight )
113
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as Weight ) )
114
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as Weight ) )
112
+ Weight :: from_ref_time ( 202_104_000 as u64 )
113
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as u64 ) )
114
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as u64 ) )
115
115
}
116
116
117
117
fn receive_single_message_proof_16_kb ( ) -> Weight {
118
- ( 357_144_000 as Weight )
119
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as Weight ) )
120
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as Weight ) )
118
+ Weight :: from_ref_time ( 357_144_000 as u64 )
119
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as u64 ) )
120
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as u64 ) )
121
121
}
122
122
123
123
fn receive_single_prepaid_message_proof ( ) -> Weight {
124
- ( 122_648_000 as Weight )
125
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 3 as Weight ) )
126
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as Weight ) )
124
+ Weight :: from_ref_time ( 122_648_000 as u64 )
125
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 3 as u64 ) )
126
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
127
127
}
128
128
129
129
fn receive_delivery_proof_for_single_message ( ) -> Weight {
130
- ( 107_631_000 as Weight )
131
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as Weight ) )
132
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as Weight ) )
130
+ Weight :: from_ref_time ( 107_631_000 as u64 )
131
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 6 as u64 ) )
132
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as u64 ) )
133
133
}
134
134
135
135
fn receive_delivery_proof_for_two_messages_by_single_relayer ( ) -> Weight {
136
- ( 113_885_000 as Weight )
137
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 7 as Weight ) )
138
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as Weight ) )
136
+ Weight :: from_ref_time ( 113_885_000 as u64 )
137
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 7 as u64 ) )
138
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 3 as u64 ) )
139
139
}
140
140
141
141
fn receive_delivery_proof_for_two_messages_by_two_relayers ( ) -> Weight {
142
- ( 155_151_000 as Weight )
143
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 8 as Weight ) )
144
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 4 as Weight ) )
142
+ Weight :: from_ref_time ( 155_151_000 as u64 )
143
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 8 as u64 ) )
144
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 4 as u64 ) )
145
145
}
146
146
}
147
147
148
148
// For backwards compatibility and tests
149
149
impl WeightInfo for ( ) {
150
150
fn send_minimal_message_worst_case ( ) -> Weight {
151
- ( 117_480_000 as Weight )
152
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 7 as Weight ) )
153
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 12 as Weight ) )
151
+ Weight :: from_ref_time ( 117_480_000 as u64 )
152
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 7 as u64 ) )
153
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 12 as u64 ) )
154
154
}
155
155
156
156
fn send_1_kb_message_worst_case ( ) -> Weight {
157
- ( 128_391_000 as Weight )
158
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 7 as Weight ) )
159
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 12 as Weight ) )
157
+ Weight :: from_ref_time ( 128_391_000 as u64 )
158
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 7 as u64 ) )
159
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 12 as u64 ) )
160
160
}
161
161
162
162
fn send_16_kb_message_worst_case ( ) -> Weight {
163
- ( 149_149_000 as Weight )
164
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 7 as Weight ) )
165
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 12 as Weight ) )
163
+ Weight :: from_ref_time ( 149_149_000 as u64 )
164
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 7 as u64 ) )
165
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 12 as u64 ) )
166
166
}
167
167
168
168
fn maximal_increase_message_fee ( ) -> Weight {
169
- ( 6_015_058_000 as Weight )
170
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 as Weight ) )
171
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as Weight ) )
169
+ Weight :: from_ref_time ( 6_015_058_000 as u64 )
170
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 as u64 ) )
171
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as u64 ) )
172
172
}
173
173
174
174
fn receive_single_message_proof ( ) -> Weight {
175
- ( 179_892_000 as Weight )
176
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as Weight ) )
177
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as Weight ) )
175
+ Weight :: from_ref_time ( 179_892_000 as u64 )
176
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as u64 ) )
177
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as u64 ) )
178
178
}
179
179
180
180
fn receive_two_messages_proof ( ) -> Weight {
181
- ( 291_793_000 as Weight )
182
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as Weight ) )
183
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as Weight ) )
181
+ Weight :: from_ref_time ( 291_793_000 as u64 )
182
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as u64 ) )
183
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as u64 ) )
184
184
}
185
185
186
186
fn receive_single_message_proof_with_outbound_lane_state ( ) -> Weight {
187
- ( 192_191_000 as Weight )
188
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as Weight ) )
189
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as Weight ) )
187
+ Weight :: from_ref_time ( 192_191_000 as u64 )
188
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as u64 ) )
189
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as u64 ) )
190
190
}
191
191
192
192
fn receive_single_message_proof_1_kb ( ) -> Weight {
193
- ( 202_104_000 as Weight )
194
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as Weight ) )
195
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as Weight ) )
193
+ Weight :: from_ref_time ( 202_104_000 as u64 )
194
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as u64 ) )
195
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as u64 ) )
196
196
}
197
197
198
198
fn receive_single_message_proof_16_kb ( ) -> Weight {
199
- ( 357_144_000 as Weight )
200
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as Weight ) )
201
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as Weight ) )
199
+ Weight :: from_ref_time ( 357_144_000 as u64 )
200
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as u64 ) )
201
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as u64 ) )
202
202
}
203
203
204
204
fn receive_single_prepaid_message_proof ( ) -> Weight {
205
- ( 122_648_000 as Weight )
206
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 3 as Weight ) )
207
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 1 as Weight ) )
205
+ Weight :: from_ref_time ( 122_648_000 as u64 )
206
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 3 as u64 ) )
207
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 1 as u64 ) )
208
208
}
209
209
210
210
fn receive_delivery_proof_for_single_message ( ) -> Weight {
211
- ( 107_631_000 as Weight )
212
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as Weight ) )
213
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as Weight ) )
211
+ Weight :: from_ref_time ( 107_631_000 as u64 )
212
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 6 as u64 ) )
213
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as u64 ) )
214
214
}
215
215
216
216
fn receive_delivery_proof_for_two_messages_by_single_relayer ( ) -> Weight {
217
- ( 113_885_000 as Weight )
218
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 7 as Weight ) )
219
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as Weight ) )
217
+ Weight :: from_ref_time ( 113_885_000 as u64 )
218
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 7 as u64 ) )
219
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as u64 ) )
220
220
}
221
221
222
222
fn receive_delivery_proof_for_two_messages_by_two_relayers ( ) -> Weight {
223
- ( 155_151_000 as Weight )
224
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 8 as Weight ) )
225
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 4 as Weight ) )
223
+ Weight :: from_ref_time ( 155_151_000 as u64 )
224
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 8 as u64 ) )
225
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 4 as u64 ) )
226
226
}
227
227
}
0 commit comments