File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,15 @@ pub struct GetLibraries {
262
262
pub library_list : Vec < Int256 > ,
263
263
}
264
264
265
+ #[ derive( TlRead , TlWrite , Derivative ) ]
266
+ #[ derivative( Debug , Clone , PartialEq ) ]
267
+ pub struct GetLibrariesWithProof {
268
+ pub id : BlockIdExt ,
269
+ #[ tl( flags) ]
270
+ pub mode : ( ) ,
271
+ pub library_list : Vec < Int256 > ,
272
+ }
273
+
265
274
#[ derive( TlRead , TlWrite , Derivative ) ]
266
275
#[ derivative( Debug , Clone , PartialEq ) ]
267
276
#[ tl( boxed) ]
@@ -349,4 +358,8 @@ pub enum Request {
349
358
/// liteServer.getLibraries library_list:(vector int256) = liteServer.LibraryResult;
350
359
#[ tl( id = 0xd122b662 ) ]
351
360
GetLibraries ( GetLibraries ) ,
361
+
362
+ /// liteServer.getLibrariesWithProof id:tonNode.blockIdExt mode:# library_list:(vector int256) = liteServer.LibraryResultWithProof;
363
+ #[ tl( id = 0xd97693bd ) ]
364
+ GetLibrariesWithProof ( GetLibrariesWithProof ) ,
352
365
}
Original file line number Diff line number Diff line change @@ -264,6 +264,17 @@ pub struct LibraryResult {
264
264
pub result : Vec < LibraryEntry > ,
265
265
}
266
266
267
+ #[ derive( TlRead , TlWrite , Derivative ) ]
268
+ #[ derivative( Debug , Clone , PartialEq ) ]
269
+ pub struct LibraryResultWithProof {
270
+ pub id : BlockIdExt ,
271
+ #[ tl( flags) ]
272
+ pub mode : ( ) ,
273
+ pub result : Vec < LibraryEntry > ,
274
+ pub state_proof : Vec < u8 > ,
275
+ pub data_proof : Vec < u8 > ,
276
+ }
277
+
267
278
#[ derive( TlRead , TlWrite , Derivative ) ]
268
279
#[ derivative( Debug , Clone , PartialEq ) ]
269
280
pub struct Error {
@@ -356,6 +367,10 @@ pub enum Response {
356
367
#[ tl( id = 0x117ab96b ) ]
357
368
LibraryResult ( LibraryResult ) ,
358
369
370
+ /// liteServer.libraryResult result:(vector liteServer.libraryEntry) = liteServer.LibraryResult;
371
+ #[ tl( id = 0x10a927bf ) ]
372
+ LibraryResultWithProof ( LibraryResultWithProof ) ,
373
+
359
374
/// liteServer.error code:int message:string = liteServer.Error;
360
375
#[ tl( id = 0xbba9e148 ) ]
361
376
Error ( Error ) ,
You can’t perform that action at this time.
0 commit comments