@digitalasset/daml-ledger
Version:
DAML Ledger API Node.js bindings
20 lines • 938 B
JavaScript
;
// 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.GetTransactionResponseCodec = void 0;
const TransactionTreeCodec_1 = require("./TransactionTreeCodec");
const transaction_service_pb_1 = require("../generated/com/daml/ledger/api/v1/transaction_service_pb");
exports.GetTransactionResponseCodec = {
deserialize(message) {
return {
transaction: TransactionTreeCodec_1.TransactionTreeCodec.deserialize(message.getTransaction())
};
},
serialize(object) {
const message = new transaction_service_pb_1.GetTransactionResponse();
message.setTransaction(TransactionTreeCodec_1.TransactionTreeCodec.serialize(object.transaction));
return message;
}
};
//# sourceMappingURL=GetTransactionResponseCodec.js.map