@digitalasset/daml-ledger
Version:
DAML Ledger API Node.js bindings
20 lines • 994 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.GetTransactionTreesResponseCodec = void 0;
const TransactionTreeCodec_1 = require("./TransactionTreeCodec");
const transaction_service_pb_1 = require("../generated/com/daml/ledger/api/v1/transaction_service_pb");
exports.GetTransactionTreesResponseCodec = {
deserialize(message) {
return {
transactions: message.getTransactionsList().map(t => TransactionTreeCodec_1.TransactionTreeCodec.deserialize(t))
};
},
serialize(object) {
const message = new transaction_service_pb_1.GetTransactionTreesResponse();
message.setTransactionsList(object.transactions.map(t => TransactionTreeCodec_1.TransactionTreeCodec.serialize(t)));
return message;
}
};
//# sourceMappingURL=GetTransactionTreesResponseCodec.js.map