2020-10-16 03:05:05 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2022-02-10 10:26:41 +00:00
|
|
|
// SPDX-FileCopyrightText: 2014-2022 The Monero Project
|
2020-10-16 03:05:05 +00:00
|
|
|
|
|
|
|
#ifndef FEATHER_CONSTRUCTIONINFO_H
|
|
|
|
#define FEATHER_CONSTRUCTIONINFO_H
|
|
|
|
|
|
|
|
#include <wallet/api/wallet2_api.h>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QSet>
|
|
|
|
|
|
|
|
class Input;
|
|
|
|
class Transfer;
|
|
|
|
|
|
|
|
class ConstructionInfo : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
quint64 unlockTime() const;
|
|
|
|
QSet<quint32> subaddressIndices() const;
|
|
|
|
QVector<QString> subaddresses() const;
|
|
|
|
quint64 minMixinCount() const;
|
|
|
|
QList<Input*> inputs() const;
|
|
|
|
QList<Transfer*> outputs() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
explicit ConstructionInfo(const Monero::TransactionConstructionInfo *pimpl, QObject *parent = nullptr);
|
|
|
|
|
|
|
|
friend class PendingTransactionInfo;
|
|
|
|
friend class UnsignedTransaction;
|
|
|
|
quint64 m_unlockTime;
|
|
|
|
QSet<quint32> m_subaddressIndices;
|
|
|
|
QVector<QString> m_subaddresses;
|
|
|
|
quint64 m_minMixinCount;
|
|
|
|
mutable QList<Input*> m_inputs;
|
|
|
|
mutable QList<Transfer*> m_outputs;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //FEATHER_CONSTRUCTIONINFO_H
|