@ton3/liteclient
Version:
TON Blockchain LiteClient
22 lines • 944 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.runSmcMethod = void 0;
const utils_1 = require("../../utils");
const liteServer_1 = require("../../dataTypes/liteServer");
const tonNode_1 = require("../../dataTypes/tonNode");
const tag = (0, utils_1.crc32)('liteServer.runSmcMethod mode:# id:tonNode.blockIdExt account:liteServer.accountId method_id:long params:bytes = liteServer.RunMethodResult');
const runSmcMethod = (bufferWriter, id, account, methodId, params) => {
bufferWriter.writeUint32LE(tag);
const mode = 1 |
(1 << 1) |
(1 << 2) |
(1 << 3) |
(1 << 4);
bufferWriter.writeUint32LE(mode);
tonNode_1.blockIdExt.write(bufferWriter, id);
liteServer_1.accountId.write(bufferWriter, account);
bufferWriter.writeInt64LE(methodId);
bufferWriter.writeBytes(params);
};
exports.runSmcMethod = runSmcMethod;
//# sourceMappingURL=runSmcMethod.js.map