diff --git a/liteapi/src/tl/request.rs b/liteapi/src/tl/request.rs index 79f1f9e..2af5185 100644 --- a/liteapi/src/tl/request.rs +++ b/liteapi/src/tl/request.rs @@ -262,6 +262,15 @@ pub struct GetLibraries { pub library_list: Vec, } +#[derive(TlRead, TlWrite, Derivative)] +#[derivative(Debug, Clone, PartialEq)] +pub struct GetLibrariesWithProof { + pub id: BlockIdExt, + #[tl(flags)] + pub mode: (), + pub library_list: Vec, +} + #[derive(TlRead, TlWrite, Derivative)] #[derivative(Debug, Clone, PartialEq)] #[tl(boxed)] @@ -349,4 +358,8 @@ pub enum Request { /// liteServer.getLibraries library_list:(vector int256) = liteServer.LibraryResult; #[tl(id = 0xd122b662)] GetLibraries(GetLibraries), + + /// liteServer.getLibrariesWithProof id:tonNode.blockIdExt mode:# library_list:(vector int256) = liteServer.LibraryResultWithProof; + #[tl(id = 0xd97693bd)] + GetLibrariesWithProof(GetLibrariesWithProof), } diff --git a/liteapi/src/tl/response.rs b/liteapi/src/tl/response.rs index 6ea60b0..99f982d 100644 --- a/liteapi/src/tl/response.rs +++ b/liteapi/src/tl/response.rs @@ -231,6 +231,17 @@ pub struct LibraryResult { pub result: Vec, } +#[derive(TlRead, TlWrite, Derivative)] +#[derivative(Debug, Clone, PartialEq)] +pub struct LibraryResultWithProof { + pub id: BlockIdExt, + #[tl(flags)] + pub mode: (), + pub result: Vec, + pub state_proof: Vec, + pub data_proof: Vec, +} + #[derive(TlRead, TlWrite, Derivative)] #[derivative(Debug, Clone, PartialEq)] pub struct Error { @@ -323,6 +334,10 @@ pub enum Response { #[tl(id = 0x117ab96b)] LibraryResult(LibraryResult), + /// liteServer.libraryResult result:(vector liteServer.libraryEntry) = liteServer.LibraryResult; + #[tl(id = 0x10a927bf)] + LibraryResultWithProof(LibraryResultWithProof), + /// liteServer.error code:int message:string = liteServer.Error; #[tl(id = 0xbba9e148)] Error(Error),