@digitalasset/daml-ledger
Version:
DAML Ledger API Node.js bindings
20 lines • 1.03 kB
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.GetLedgerConfigurationResponseCodec = void 0;
const LedgerConfigurationCodec_1 = require("./LedgerConfigurationCodec");
const ledger_configuration_service_pb_1 = require("../generated/com/daml/ledger/api/v1/ledger_configuration_service_pb");
exports.GetLedgerConfigurationResponseCodec = {
deserialize(message) {
return {
config: LedgerConfigurationCodec_1.LedgerConfigurationCodec.deserialize(message.getLedgerConfiguration())
};
},
serialize(object) {
const message = new ledger_configuration_service_pb_1.GetLedgerConfigurationResponse();
message.setLedgerConfiguration(LedgerConfigurationCodec_1.LedgerConfigurationCodec.serialize(object.config));
return message;
}
};
//# sourceMappingURL=GetLedgerConfigurationResponseCodec.js.map