File tree 3 files changed +28
-0
lines changed
3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -190,3 +190,11 @@ pub struct TransactionId {
190
190
#[ tl( flags_bit = "mode.2" ) ]
191
191
pub hash : Option < Int256 > ,
192
192
}
193
+
194
+ /// liteServer.libraryEntry hash:int256 data:bytes = liteServer.LibraryEntry;
195
+ #[ derive( TlRead , TlWrite , Derivative ) ]
196
+ #[ derivative( Debug , Clone , PartialEq ) ]
197
+ pub struct LibraryEntry {
198
+ pub hash : Int256 ,
199
+ pub data : Vec < u8 > ,
200
+ }
Original file line number Diff line number Diff line change @@ -256,6 +256,12 @@ pub struct GetValidatorStats {
256
256
pub modified_after : Option < u32 > ,
257
257
}
258
258
259
+ #[ derive( TlRead , TlWrite , Derivative ) ]
260
+ #[ derivative( Debug , Clone , PartialEq ) ]
261
+ pub struct GetLibraries {
262
+ pub library_list : Vec < Int256 > ,
263
+ }
264
+
259
265
#[ derive( TlRead , TlWrite , Derivative ) ]
260
266
#[ derivative( Debug , Clone , PartialEq ) ]
261
267
#[ tl( boxed) ]
@@ -339,4 +345,8 @@ pub enum Request {
339
345
/// liteServer.getValidatorStats#091a58bc mode:# id:tonNode.blockIdExt limit:int start_after:mode.0?int256 modified_after:mode.2?int = liteServer.ValidatorStats;
340
346
#[ tl( id = 0xe7253699 ) ]
341
347
GetValidatorStats ( GetValidatorStats ) ,
348
+
349
+ /// liteServer.getLibraries library_list:(vector int256) = liteServer.LibraryResult;
350
+ #[ tl( id = 0xd122b662 ) ]
351
+ GetLibraries ( GetLibraries ) ,
342
352
}
Original file line number Diff line number Diff line change @@ -225,6 +225,12 @@ pub struct ValidatorStats {
225
225
pub data_proof : Vec < u8 > ,
226
226
}
227
227
228
+ #[ derive( TlRead , TlWrite , Derivative ) ]
229
+ #[ derivative( Debug , Clone , PartialEq ) ]
230
+ pub struct LibraryResult {
231
+ pub result : Vec < LibraryEntry > ,
232
+ }
233
+
228
234
#[ derive( TlRead , TlWrite , Derivative ) ]
229
235
#[ derivative( Debug , Clone , PartialEq ) ]
230
236
pub struct Error {
@@ -313,6 +319,10 @@ pub enum Response {
313
319
#[ tl( id = 0xb9f796d8 ) ]
314
320
ValidatorStats ( ValidatorStats ) ,
315
321
322
+ /// liteServer.libraryResult result:(vector liteServer.libraryEntry) = liteServer.LibraryResult;
323
+ #[ tl( id = 0x117ab96b ) ]
324
+ LibraryResult ( LibraryResult ) ,
325
+
316
326
/// liteServer.error code:int message:string = liteServer.Error;
317
327
#[ tl( id = 0xbba9e148 ) ]
318
328
Error ( Error ) ,
You can’t perform that action at this time.
0 commit comments