Fixes
This commit is contained in:
parent
63222183cd
commit
3196eb75a7
3 changed files with 40 additions and 6 deletions
|
|
@ -22,7 +22,7 @@ namespace graphene { namespace chain {
|
||||||
{
|
{
|
||||||
struct fee_parameters_type {
|
struct fee_parameters_type {
|
||||||
uint64_t fee = 20 * GRAPHENE_BLOCKCHAIN_PRECISION;
|
uint64_t fee = 20 * GRAPHENE_BLOCKCHAIN_PRECISION;
|
||||||
uint32_t price_per_kbyte = 10; /// only required for large memos.
|
uint32_t price_per_kbyte = 10 * GRAPHENE_BLOCKCHAIN_PRECISION; /// only required for large memos.
|
||||||
};
|
};
|
||||||
|
|
||||||
asset fee;
|
asset fee;
|
||||||
|
|
|
||||||
3
programs/light_client/GrapheneObject.cpp
Normal file
3
programs/light_client/GrapheneObject.cpp
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#include "GrapheneObject.hpp"
|
||||||
|
|
||||||
|
// This space intentionally left blank
|
||||||
31
programs/light_client/GrapheneObject.hpp
Normal file
31
programs/light_client/GrapheneObject.hpp
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
#pragma once
|
||||||
|
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
|
using ObjectId = qint64;
|
||||||
|
Q_DECLARE_METATYPE(ObjectId)
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(std::function<void()>)
|
||||||
|
|
||||||
|
class GrapheneObject : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
Q_PROPERTY(ObjectId id MEMBER m_id READ id NOTIFY idChanged)
|
||||||
|
|
||||||
|
ObjectId m_id;
|
||||||
|
|
||||||
|
public:
|
||||||
|
GrapheneObject(ObjectId id = -1, QObject* parent = nullptr)
|
||||||
|
: QObject(parent), m_id(id)
|
||||||
|
{}
|
||||||
|
|
||||||
|
ObjectId id() const {
|
||||||
|
return m_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
Q_SIGNALS:
|
||||||
|
void idChanged();
|
||||||
|
};
|
||||||
Loading…
Reference in a new issue