Fabcoin Core  0.16.2
P2P Digital Currency
callcontract.h
Go to the documentation of this file.
1 #ifndef CALLCONTRACT_H
2 #define CALLCONTRACT_H
3 
4 #include <QWidget>
5 
6 class PlatformStyle;
7 class WalletModel;
8 class ClientModel;
10 class ExecRPCCommand;
11 class ABIFunctionField;
12 class ContractABI;
13 class TabBarInfo;
14 
15 namespace Ui {
16 class CallContract;
17 }
18 
19 class CallContract : public QWidget
20 {
21  Q_OBJECT
22 
23 public:
24  explicit CallContract(const PlatformStyle *platformStyle, QWidget *parent = 0);
25  ~CallContract();
26 
27  void setClientModel(ClientModel *clientModel);
28  void setModel(WalletModel *model);
29  bool isValidContractAddress();
30  bool isValidInterfaceABI();
31  bool isDataValid();
32  void setContractAddress(const QString &address);
33 
34 Q_SIGNALS:
35 
36 public Q_SLOTS:
37  void on_clearAllClicked();
38  void on_callContractClicked();
39  void on_numBlocksChanged();
40  void on_updateCallContractButton();
41  void on_newContractABI();
42  void on_saveInfoClicked();
43  void on_loadInfoClicked();
44  void on_pasteAddressClicked();
45  void on_contractAddressChanged();
46 
47 private:
48  QString toDataHex(int func, QString& errorMessage);
49 
50 private:
60  int m_results;
61 };
62 
63 #endif // CALLCONTRACT_H
const PlatformStyle * m_platformStyle
Definition: callcontract.h:59
WalletModel * m_model
Definition: callcontract.h:52
ExecRPCCommand * m_execRPCCommand
Definition: callcontract.h:55
ClientModel * m_clientModel
Definition: callcontract.h:53
Ui::CallContract * ui
Definition: callcontract.h:51
ContractTableModel * m_contractModel
Definition: callcontract.h:54
Model for Fabcoin network client.
Definition: clientmodel.h:38
The ABIFunctionField class ABI functions widget.
Qt model of the contract book in the core.
std::vector< ResultExecute > CallContract(const dev::Address &addrContract, std::vector< unsigned char > opcode, const dev::Address &sender, uint64_t gasLimit)
The ExecRPCCommand class Execution of RPC command line.
Interface to Fabcoin wallet from Qt view code.
Definition: walletmodel.h:103
The TabBarInfo class Class for informations about tabs.
Definition: tabbarinfo.h:13
TabBarInfo * m_tabInfo
Definition: callcontract.h:58
struct evm_uint160be address(struct evm_env *env)
Definition: capi.c:13
ABIFunctionField * m_ABIFunctionField
Definition: callcontract.h:56
ContractABI * m_contractABI
Definition: callcontract.h:57