UNPKG

@ton3/liteclient

Version:
29 lines 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.blockIdExt = void 0; const utils_1 = require("../../utils"); exports.blockIdExt = { tag: (0, utils_1.crc32)('tonNode.blockIdExt workchain:int shard:long seqno:int root_hash:int256 file_hash:int256 = tonNode.BlockIdExt'), read: (dataReader) => { const workchain = dataReader.readInt32LE(); const shard = dataReader.readUint64LE(); const seqno = dataReader.readInt32LE(); const root_hash = dataReader.readBuffer(32); const file_hash = dataReader.readBuffer(32); return { workchain, shard, seqno, root_hash, file_hash, }; }, write: (bufferWriter, blockId) => { bufferWriter.writeInt32LE(blockId.workchain); bufferWriter.writeUint64LE(blockId.shard); bufferWriter.writeUint32LE(blockId.seqno); bufferWriter.writeBuffer(blockId.root_hash); bufferWriter.writeBuffer(blockId.file_hash); }, }; //# sourceMappingURL=blockIdExt.js.map