aboutsummaryrefslogtreecommitdiffstats
path: root/test/IPCSocket.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-06-09 20:57:16 +0800
committerchriseth <c@ethdev.com>2016-06-29 05:18:54 +0800
commitad36fc3c58466f1a03f96dda0a7e74f418f8bed9 (patch)
tree41156f636ae714f8ad7d2dbf4b06f8616db98e01 /test/IPCSocket.h
parenta92398a3006af49606b41f16117e3f9fa0c06999 (diff)
downloaddexon-solidity-ad36fc3c58466f1a03f96dda0a7e74f418f8bed9.tar
dexon-solidity-ad36fc3c58466f1a03f96dda0a7e74f418f8bed9.tar.gz
dexon-solidity-ad36fc3c58466f1a03f96dda0a7e74f418f8bed9.tar.bz2
dexon-solidity-ad36fc3c58466f1a03f96dda0a7e74f418f8bed9.tar.lz
dexon-solidity-ad36fc3c58466f1a03f96dda0a7e74f418f8bed9.tar.xz
dexon-solidity-ad36fc3c58466f1a03f96dda0a7e74f418f8bed9.tar.zst
dexon-solidity-ad36fc3c58466f1a03f96dda0a7e74f418f8bed9.zip
Style
Diffstat (limited to 'test/IPCSocket.h')
-rw-r--r--test/IPCSocket.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/IPCSocket.h b/test/IPCSocket.h
index fbb07c1f..97434a36 100644
--- a/test/IPCSocket.h
+++ b/test/IPCSocket.h
@@ -36,6 +36,8 @@ public:
string sendRequest(string const& _req);
~IPCSocket() { close(m_socket); fclose(m_fp); }
+ static IPCSocket& instance();
+
private:
FILE *m_fp;
string m_address;
@@ -56,7 +58,7 @@ public:
string data;
};
- struct transactionReceipt
+ struct TransactionReceipt
{
string gasUsed;
string contractAddress;
@@ -65,7 +67,7 @@ public:
RPCRequest(string const& _localSocketAddress): m_ipcSocket(_localSocketAddress) {}
string eth_getCode(string const& _address, string const& _blockNumber);
string eth_call(transactionData const& _td, string const& _blockNumber);
- transactionReceipt eth_getTransactionReceipt(string const& _transactionHash);
+ TransactionReceipt eth_getTransactionReceipt(string const& _transactionHash);
string eth_sendTransaction(transactionData const& _transactionData);
string eth_sendTransaction(string const& _transaction);
string eth_getBalance(string const& _address, string const& _blockNumber);