diff options
author | monero-project <sempre.amaro@gmail.com> | 2014-06-04 10:16:28 -0400 |
---|---|---|
committer | monero-project <sempre.amaro@gmail.com> | 2014-06-04 10:16:28 -0400 |
commit | 4492317603b73ed0d1a447b7916d228bd62358fd (patch) | |
tree | 2c7ed1b006d05e690a5644b8024c14eaeaf3a59c /src/wallet/wallet_rpc_server_commans_defs.h | |
parent | Merge pull request #22 from Neozaru/master (diff) | |
parent | fixed conflict (diff) | |
download | monero-4492317603b73ed0d1a447b7916d228bd62358fd.tar.xz |
Merge pull request #23 from paybee/master
Added incoming_transfers RPC API method
Diffstat (limited to 'src/wallet/wallet_rpc_server_commans_defs.h')
-rw-r--r-- | src/wallet/wallet_rpc_server_commans_defs.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commans_defs.h b/src/wallet/wallet_rpc_server_commans_defs.h index df05b4e0a..7ffbcfc18 100644 --- a/src/wallet/wallet_rpc_server_commans_defs.h +++ b/src/wallet/wallet_rpc_server_commans_defs.h @@ -141,6 +141,42 @@ namespace wallet_rpc END_KV_SERIALIZE_MAP() }; }; + + struct transfer_details + { + uint64_t amount; + bool spent; + uint64_t global_index; + std::string tx_hash; + + BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(amount) + KV_SERIALIZE(spent) + KV_SERIALIZE(global_index) + KV_SERIALIZE(tx_hash) + END_KV_SERIALIZE_MAP() + }; + + struct COMMAND_RPC_INCOMING_TRANSFERS + { + struct request + { + std::string transfer_type; + + BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(transfer_type) + END_KV_SERIALIZE_MAP() + }; + + struct response + { + std::list<transfer_details> transfers; + + BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(transfers) + END_KV_SERIALIZE_MAP() + }; + }; } } |