"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deserializePlatformSignedTransaction = exports.serializePlatformSignedTransaction = exports.deserializePlatformTransaction = exports.serializePlatformTransaction = exports.deserializePlatformAccount = exports.serializePlatformAccount = void 0;
const transaction_1 = require("../transaction");
var live_app_sdk_1 = require("@ledgerhq/live-app-sdk");
Object.defineProperty(exports, "serializePlatformAccount", { enumerable: true, get: function () { return live_app_sdk_1.serializeAccount; } });
Object.defineProperty(exports, "deserializePlatformAccount", { enumerable: true, get: function () { return live_app_sdk_1.deserializeAccount; } });
Object.defineProperty(exports, "serializePlatformTransaction", { enumerable: true, get: function () { return live_app_sdk_1.serializeTransaction; } });
Object.defineProperty(exports, "deserializePlatformTransaction", { enumerable: true, get: function () { return live_app_sdk_1.deserializeTransaction; } });
// FIXME: can't use SDK implementations here because SDK don't know how to properly serialize / deserialize Operation object
function serializePlatformSignedTransaction(signedTransaction) {
    return (0, transaction_1.toSignedOperationRaw)(signedTransaction, true);
}
exports.serializePlatformSignedTransaction = serializePlatformSignedTransaction;
function deserializePlatformSignedTransaction(rawSignedTransaction, accountId) {
    return (0, transaction_1.fromSignedOperationRaw)(rawSignedTransaction, accountId);
}
exports.deserializePlatformSignedTransaction = deserializePlatformSignedTransaction;
//# sourceMappingURL=serializers.js.map