Skip to content

Commit 9adac48

Browse files
int -> uint
1 parent f5ef8f0 commit 9adac48

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

liteapi/src/tl/common.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pub struct AccountId {
110110
// #[tl(boxed, id = "liteServer.transactionId3", scheme_inline = r##"liteServer.transactionId3 account:int256 lt:long = liteServer.TransactionId3;"##)]
111111
pub struct TransactionId3 {
112112
pub account: Int256,
113-
pub lt: i64,
113+
pub lt: u64,
114114
}
115115

116116
/// liteServer.signature node_id_short:int256 signature:bytes = liteServer.Signature;
@@ -131,8 +131,8 @@ pub struct Signature {
131131
scheme_inline = r##"liteServer.signatureSet validator_set_hash:int catchain_seqno:int signatures:(vector liteServer.signature) = liteServer.SignatureSet;"##
132132
)]
133133
pub struct SignatureSet {
134-
pub validator_set_hash: i32,
135-
pub catchain_seqno: i32,
134+
pub validator_set_hash: u32,
135+
pub catchain_seqno: u32,
136136
pub signatures: Vec<Signature>,
137137
}
138138

@@ -186,7 +186,7 @@ pub struct TransactionId {
186186
#[tl(flags_bit = "mode.0")]
187187
pub account: Option<Int256>,
188188
#[tl(flags_bit = "mode.1")]
189-
pub lt: Option<i64>,
189+
pub lt: Option<u64>,
190190
#[tl(flags_bit = "mode.2")]
191191
pub hash: Option<Int256>,
192192
}

liteapi/src/tl/response.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@ pub struct MasterchainInfo {
1717
pub struct MasterchainInfoExt {
1818
#[tl(flags)]
1919
pub mode: (),
20-
pub version: i32,
21-
pub capabilities: i64,
20+
pub version: u32,
21+
pub capabilities: u64,
2222
pub last: BlockIdExt,
23-
pub last_utime: i32,
24-
pub now: i32,
23+
pub last_utime: u32,
24+
pub now: u32,
2525
pub state_root_hash: Int256,
2626
pub init: ZeroStateIdExt,
2727
}
2828

2929
#[derive(TlRead, TlWrite, Derivative)]
3030
#[derivative(Debug, Clone, PartialEq)]
3131
pub struct CurrentTime {
32-
pub now: i32,
32+
pub now: u32,
3333
}
3434

3535
#[derive(TlRead, TlWrite, Derivative)]
3636
#[derivative(Debug, Clone, PartialEq)]
3737
pub struct Version {
38-
pub mode: i32,
39-
pub version: i32,
40-
pub capabilities: i64,
41-
pub now: i32,
38+
pub mode: u32,
39+
pub version: u32,
40+
pub capabilities: u64,
41+
pub now: u32,
4242
}
4343

4444
#[derive(TlRead, TlWrite, Derivative)]
@@ -79,7 +79,7 @@ pub struct BlockHeader {
7979
#[derive(TlRead, TlWrite, Derivative)]
8080
#[derivative(Debug, Clone, PartialEq)]
8181
pub struct SendMsgStatus {
82-
pub status: i32,
82+
pub status: u32,
8383
}
8484

8585
#[derive(TlRead, TlWrite, Derivative)]
@@ -157,7 +157,7 @@ pub struct TransactionId {
157157
#[tl(flags_bit = "mode.0")]
158158
pub account: Option<Int256>,
159159
#[tl(flags_bit = "mode.1")]
160-
pub lt: Option<i64>,
160+
pub lt: Option<u64>,
161161
#[tl(flags_bit = "mode.2")]
162162
pub hash: Option<Int256>,
163163
}
@@ -166,7 +166,7 @@ pub struct TransactionId {
166166
#[derivative(Debug, Clone, PartialEq)]
167167
pub struct BlockTransactions {
168168
pub id: BlockIdExt,
169-
pub req_count: i32,
169+
pub req_count: u32,
170170
pub incomplete: bool,
171171
pub ids: Vec<TransactionId>,
172172
pub proof: Vec<u8>,
@@ -197,7 +197,7 @@ pub struct ValidatorStats {
197197
#[tl(flags)]
198198
pub mode: (),
199199
pub id: BlockIdExt,
200-
pub count: i32,
200+
pub count: u32,
201201
pub complete: bool,
202202
pub state_proof: Vec<u8>,
203203
pub data_proof: Vec<u8>,

0 commit comments

Comments
 (0)