Skip to content

Commit f5ef8f0

Browse files
int -> uint for all fields which not require negative values
1 parent 452ac44 commit f5ef8f0

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

liteapi/src/tl/request.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ pub struct WrappedRequest {
3434
scheme_inline = r##"liteServer.waitMasterchainSeqno seqno:int timeout_ms:int = Object;"##
3535
)]
3636
pub struct WaitMasterchainSeqno {
37-
pub seqno: i32,
38-
pub timeout_ms: i32,
37+
pub seqno: u32,
38+
pub timeout_ms: u32,
3939
}
4040

4141
#[derive(TlRead, TlWrite, Derivative)]
@@ -93,7 +93,7 @@ pub struct RunSmcMethod {
9393
pub mode: u32,
9494
pub id: BlockIdExt,
9595
pub account: AccountId,
96-
pub method_id: i64,
96+
pub method_id: u64,
9797
pub params: Vec<u8>,
9898
}
9999

@@ -117,15 +117,15 @@ pub struct GetAllShardsInfo {
117117
pub struct GetOneTransaction {
118118
pub id: BlockIdExt,
119119
pub account: AccountId,
120-
pub lt: i64,
120+
pub lt: u64,
121121
}
122122

123123
#[derive(TlRead, TlWrite, Derivative)]
124124
#[derivative(Debug, Clone, PartialEq)]
125125
pub struct GetTransactions {
126-
pub count: i32,
126+
pub count: u32,
127127
pub account: AccountId,
128-
pub lt: i64,
128+
pub lt: u64,
129129
pub hash: Int256,
130130
}
131131

@@ -136,9 +136,9 @@ pub struct LookupBlock {
136136
pub mode: (),
137137
pub id: BlockId,
138138
#[tl(flags_bit = "mode.1")]
139-
pub lt: Option<i64>,
139+
pub lt: Option<u64>,
140140
#[tl(flags_bit = "mode.2")]
141-
pub utime: Option<i32>,
141+
pub utime: Option<u32>,
142142
}
143143

144144
#[derive(TlRead, TlWrite, Derivative)]
@@ -147,7 +147,7 @@ pub struct ListBlockTransactions {
147147
pub id: BlockIdExt,
148148
#[tl(flags)]
149149
pub mode: (),
150-
pub count: i32,
150+
pub count: u32,
151151
#[tl(flags_bit = "mode.7")]
152152
pub after: Option<TransactionId3>,
153153
#[tl(flags_bit = "mode.6")]
@@ -187,11 +187,11 @@ pub struct GetValidatorStats {
187187
#[tl(flags)]
188188
pub mode: (),
189189
id: BlockIdExt,
190-
pub limit: i32,
190+
pub limit: u32,
191191
#[tl(flags_bit = "mode.0")]
192192
pub start_after: Option<Int256>,
193193
#[tl(flags_bit = "mode.2")]
194-
pub modified_after: Option<i32>,
194+
pub modified_after: Option<u32>,
195195
}
196196

197197
#[derive(TlRead, TlWrite, Derivative)]
@@ -277,4 +277,4 @@ pub enum Request {
277277
/// liteServer.getValidatorStats#091a58bc mode:# id:tonNode.blockIdExt limit:int start_after:mode.0?int256 modified_after:mode.2?int = liteServer.ValidatorStats;
278278
#[tl(id = 0xe7253699)]
279279
GetValidatorStats(GetValidatorStats),
280-
}
280+
}

0 commit comments

Comments
 (0)