mirror of
https://github.com/logos-blockchain/logos-blockchain-module.git
synced 2026-04-10 20:53:08 +00:00
* Add generate_user_config to module. * Parse generate_user_confg arguments. * Prettify. * Remove unneeded includes. * Expose str method --------- Co-authored-by: danielSanchezQ <3danimanimal@gmail.com>
34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
#ifndef I_LOGOS_BLOCKCHAIN_MODULE_API_H
|
|
#define I_LOGOS_BLOCKCHAIN_MODULE_API_H
|
|
|
|
#include <QString>
|
|
#include <core/interface.h>
|
|
|
|
class ILogosBlockchainModule {
|
|
public:
|
|
virtual ~ILogosBlockchainModule() = default;
|
|
|
|
// Logos Core
|
|
virtual void initLogos(LogosAPI* logosAPIInstance) = 0;
|
|
|
|
// Node
|
|
virtual int generate_user_config(const QVariantMap& args) = 0;
|
|
virtual int generate_user_config_from_str(const QString& args) = 0;
|
|
virtual int start(const QString& config_path, const QString& deployment) = 0;
|
|
virtual int stop() = 0;
|
|
virtual QString wallet_get_balance(const QString& addressHex) = 0;
|
|
virtual QString wallet_transfer_funds(
|
|
const QString& changePublicKey,
|
|
const QStringList& senderAddresses,
|
|
const QString& recipientAddress,
|
|
const QString& amount,
|
|
const QString& optionalTipHex
|
|
) = 0;
|
|
virtual QStringList wallet_get_known_addresses() = 0;
|
|
};
|
|
|
|
#define ILogosBlockchainModule_iid "org.logos.ilogosblockchainmodule"
|
|
Q_DECLARE_INTERFACE(ILogosBlockchainModule, ILogosBlockchainModule_iid)
|
|
|
|
#endif
|