UNPKG

@digitalasset/daml-ledger

Version:
20 lines 991 B
"use strict"; // Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 Object.defineProperty(exports, "__esModule", { value: true }); exports.SubmitAndWaitForTransactionTreeResponseCodec = void 0; const TransactionTreeCodec_1 = require("./TransactionTreeCodec"); const command_service_pb_1 = require("../generated/com/daml/ledger/api/v1/command_service_pb"); exports.SubmitAndWaitForTransactionTreeResponseCodec = { deserialize(message) { return { transaction: TransactionTreeCodec_1.TransactionTreeCodec.deserialize(message.getTransaction()) }; }, serialize(object) { const result = new command_service_pb_1.SubmitAndWaitForTransactionTreeResponse(); result.setTransaction(TransactionTreeCodec_1.TransactionTreeCodec.serialize(object.transaction)); return result; } }; //# sourceMappingURL=SubmitAndWaitForTransactionTreeResponseCodec.js.map