From 9adac481bc05a43aef1f6e44a96ceca902cc44aa Mon Sep 17 00:00:00 2001 From: Vladimir Lebedev Date: Wed, 24 Apr 2024 18:46:27 +0700 Subject: [PATCH] int -> uint --- liteapi/src/tl/common.rs | 8 ++++---- liteapi/src/tl/response.rs | 26 +++++++++++++------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/liteapi/src/tl/common.rs b/liteapi/src/tl/common.rs index a8a6a9a..39c455d 100644 --- a/liteapi/src/tl/common.rs +++ b/liteapi/src/tl/common.rs @@ -110,7 +110,7 @@ pub struct AccountId { // #[tl(boxed, id = "liteServer.transactionId3", scheme_inline = r##"liteServer.transactionId3 account:int256 lt:long = liteServer.TransactionId3;"##)] pub struct TransactionId3 { pub account: Int256, - pub lt: i64, + pub lt: u64, } /// liteServer.signature node_id_short:int256 signature:bytes = liteServer.Signature; @@ -131,8 +131,8 @@ pub struct Signature { scheme_inline = r##"liteServer.signatureSet validator_set_hash:int catchain_seqno:int signatures:(vector liteServer.signature) = liteServer.SignatureSet;"## )] pub struct SignatureSet { - pub validator_set_hash: i32, - pub catchain_seqno: i32, + pub validator_set_hash: u32, + pub catchain_seqno: u32, pub signatures: Vec, } @@ -186,7 +186,7 @@ pub struct TransactionId { #[tl(flags_bit = "mode.0")] pub account: Option, #[tl(flags_bit = "mode.1")] - pub lt: Option, + pub lt: Option, #[tl(flags_bit = "mode.2")] pub hash: Option, } \ No newline at end of file diff --git a/liteapi/src/tl/response.rs b/liteapi/src/tl/response.rs index 2e2e71c..d84ddcb 100644 --- a/liteapi/src/tl/response.rs +++ b/liteapi/src/tl/response.rs @@ -17,11 +17,11 @@ pub struct MasterchainInfo { pub struct MasterchainInfoExt { #[tl(flags)] pub mode: (), - pub version: i32, - pub capabilities: i64, + pub version: u32, + pub capabilities: u64, pub last: BlockIdExt, - pub last_utime: i32, - pub now: i32, + pub last_utime: u32, + pub now: u32, pub state_root_hash: Int256, pub init: ZeroStateIdExt, } @@ -29,16 +29,16 @@ pub struct MasterchainInfoExt { #[derive(TlRead, TlWrite, Derivative)] #[derivative(Debug, Clone, PartialEq)] pub struct CurrentTime { - pub now: i32, + pub now: u32, } #[derive(TlRead, TlWrite, Derivative)] #[derivative(Debug, Clone, PartialEq)] pub struct Version { - pub mode: i32, - pub version: i32, - pub capabilities: i64, - pub now: i32, + pub mode: u32, + pub version: u32, + pub capabilities: u64, + pub now: u32, } #[derive(TlRead, TlWrite, Derivative)] @@ -79,7 +79,7 @@ pub struct BlockHeader { #[derive(TlRead, TlWrite, Derivative)] #[derivative(Debug, Clone, PartialEq)] pub struct SendMsgStatus { - pub status: i32, + pub status: u32, } #[derive(TlRead, TlWrite, Derivative)] @@ -157,7 +157,7 @@ pub struct TransactionId { #[tl(flags_bit = "mode.0")] pub account: Option, #[tl(flags_bit = "mode.1")] - pub lt: Option, + pub lt: Option, #[tl(flags_bit = "mode.2")] pub hash: Option, } @@ -166,7 +166,7 @@ pub struct TransactionId { #[derivative(Debug, Clone, PartialEq)] pub struct BlockTransactions { pub id: BlockIdExt, - pub req_count: i32, + pub req_count: u32, pub incomplete: bool, pub ids: Vec, pub proof: Vec, @@ -197,7 +197,7 @@ pub struct ValidatorStats { #[tl(flags)] pub mode: (), pub id: BlockIdExt, - pub count: i32, + pub count: u32, pub complete: bool, pub state_proof: Vec, pub data_proof: Vec,