Skip to content

Commit

Permalink
int -> uint
Browse files Browse the repository at this point in the history
  • Loading branch information
hacker-volodya authored Apr 24, 2024
1 parent f5ef8f0 commit 9adac48
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions liteapi/src/tl/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<Signature>,
}

Expand Down Expand Up @@ -186,7 +186,7 @@ pub struct TransactionId {
#[tl(flags_bit = "mode.0")]
pub account: Option<Int256>,
#[tl(flags_bit = "mode.1")]
pub lt: Option<i64>,
pub lt: Option<u64>,
#[tl(flags_bit = "mode.2")]
pub hash: Option<Int256>,
}
26 changes: 13 additions & 13 deletions liteapi/src/tl/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@ 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,
}

#[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)]
Expand Down Expand Up @@ -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)]
Expand Down Expand Up @@ -157,7 +157,7 @@ pub struct TransactionId {
#[tl(flags_bit = "mode.0")]
pub account: Option<Int256>,
#[tl(flags_bit = "mode.1")]
pub lt: Option<i64>,
pub lt: Option<u64>,
#[tl(flags_bit = "mode.2")]
pub hash: Option<Int256>,
}
Expand All @@ -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<TransactionId>,
pub proof: Vec<u8>,
Expand Down Expand Up @@ -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<u8>,
pub data_proof: Vec<u8>,
Expand Down

0 comments on commit 9adac48

Please sign in to comment.