@@ -169,16 +169,46 @@ pub struct GetBlockProof {
169
169
#[ derive( TlRead , TlWrite , Derivative ) ]
170
170
#[ derivative( Debug , Clone , PartialEq ) ]
171
171
pub struct GetConfigAll {
172
- pub mode : i32 ,
172
+ #[ tl( flags) ]
173
+ pub mode : ( ) ,
173
174
pub id : BlockIdExt ,
175
+ #[ tl( flags_bit = "mode.0" ) ]
176
+ pub with_state_root : Option < ( ) > ,
177
+ #[ tl( flags_bit = "mode.1" ) ]
178
+ pub with_libraries : Option < ( ) > ,
179
+ #[ tl( flags_bit = "mode.2" ) ]
180
+ pub with_state_extra_root : Option < ( ) > ,
181
+ #[ tl( flags_bit = "mode.3" ) ]
182
+ pub with_shard_hashes : Option < ( ) > ,
183
+ #[ tl( flags_bit = "mode.6" ) ]
184
+ pub with_accounts_root : Option < ( ) > ,
185
+ #[ tl( flags_bit = "mode.7" ) ]
186
+ pub with_prev_blocks : Option < ( ) > ,
187
+ #[ tl( flags_bit = "mode.15" ) ]
188
+ pub extract_from_key_block : Option < ( ) > ,
174
189
}
175
190
176
191
#[ derive( TlRead , TlWrite , Derivative ) ]
177
192
#[ derivative( Debug , Clone , PartialEq ) ]
178
193
pub struct GetConfigParams {
179
- pub mode : i32 ,
194
+ #[ tl( flags) ]
195
+ pub mode : ( ) ,
180
196
pub id : BlockIdExt ,
181
197
pub param_list : Vec < i32 > ,
198
+ #[ tl( flags_bit = "mode.0" ) ]
199
+ pub with_state_root : Option < ( ) > ,
200
+ #[ tl( flags_bit = "mode.1" ) ]
201
+ pub with_libraries : Option < ( ) > ,
202
+ #[ tl( flags_bit = "mode.2" ) ]
203
+ pub with_state_extra_root : Option < ( ) > ,
204
+ #[ tl( flags_bit = "mode.3" ) ]
205
+ pub with_shard_hashes : Option < ( ) > ,
206
+ #[ tl( flags_bit = "mode.6" ) ]
207
+ pub with_accounts_root : Option < ( ) > ,
208
+ #[ tl( flags_bit = "mode.7" ) ]
209
+ pub with_prev_blocks : Option < ( ) > ,
210
+ #[ tl( flags_bit = "mode.15" ) ]
211
+ pub extract_from_key_block : Option < ( ) > ,
182
212
}
183
213
184
214
#[ derive( TlRead , TlWrite , Derivative ) ]
0 commit comments