@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
17 lines • 609 B
JavaScript
;
// TODO: to remove once live-app-sdk is depreciated and removed from LL
Object.defineProperty(exports, "__esModule", { value: true });
const CAN_EDIT_FEES = true;
const areFeesProvided = (tx) => !!tx.fee;
const convertToLiveTransaction = (tx) => {
return { ...tx, family: "xrp" };
};
const getPlatformTransactionSignFlowInfos = (tx) => {
return {
canEditFees: CAN_EDIT_FEES,
liveTx: convertToLiveTransaction(tx),
hasFeesProvided: areFeesProvided(tx),
};
};
exports.default = { getPlatformTransactionSignFlowInfos };
//# sourceMappingURL=platformAdapter.js.map