UNPKG

@ton3/liteclient

Version:
12 lines (10 loc) 429 B
import { StreamWriter } from '../../tl/stream'; import { crc32 } from '../../utils'; export const waitMasterchainSeqno = { tag: crc32('liteServer.waitMasterchainSeqno seqno:int timeout_ms:int = Object'), write: (bufferWriter: StreamWriter, seqno: number, timeoutMs: number) => { bufferWriter.writeInt32LE(waitMasterchainSeqno.tag); bufferWriter.writeInt32LE(seqno); bufferWriter.writeInt32LE(timeoutMs); }, };