6#include "protobuf/pb_api.h"
43 virtual ResultCode
getBalance(
const char*
const address, IotexString& balance) = 0;
77 const uint8_t signature[IOTEX_SIGNATURE_SIZE],
79 uint8_t hash[IOTEX_HASH_SIZE]) = 0;
91 virtual ResultCode
sendExecution(
const uint8_t senderPubKey[IOTEX_PUBLIC_KEY_SIZE],
92 const uint8_t signature[IOTEX_SIGNATURE_SIZE],
94 uint8_t hash[IOTEX_HASH_SIZE]) = 0;
113 virtual ResultCode
getAccount(
const char*
const address,
116 virtual ResultCode
getBalance(
const char*
const address, IotexString& balance)
override;
124 virtual ResultCode
sendTokenTransfer(
const uint8_t senderPubKey[IOTEX_PUBLIC_KEY_SIZE],
125 const uint8_t signature[IOTEX_SIGNATURE_SIZE],
127 uint8_t hash[IOTEX_HASH_SIZE])
override;
129 virtual ResultCode
sendExecution(
const uint8_t senderPubKey[IOTEX_PUBLIC_KEY_SIZE],
130 const uint8_t signature[IOTEX_SIGNATURE_SIZE],
132 uint8_t hash[IOTEX_HASH_SIZE])
override;
Interface for the Wallets API.
Definition: wallets.h:20
virtual ResultCode getTransactionByHash(const char *const hash, ResponseTypes::ActionInfo_Transfer &actionInfo)=0
Gets the action info for a transaction action hash from the blockchain.
virtual ResultCode sendTokenTransfer(const uint8_t senderPubKey[IOTEX_PUBLIC_KEY_SIZE], const uint8_t signature[IOTEX_SIGNATURE_SIZE], const ResponseTypes::ActionCore_Transfer &transfer, uint8_t hash[IOTEX_HASH_SIZE])=0
Sends a token transfer action to the blockchain.
virtual ResultCode getBalance(const char *const address, IotexString &balance)=0
Gets the account balance from the blockchain.
virtual ResultCode getExecutionByHash(const char *const hash, ResponseTypes::ActionInfo_Execution &actionInfo)=0
Gets the action info for a execution action hash from the blockchain.
virtual ResultCode sendExecution(const uint8_t senderPubKey[IOTEX_PUBLIC_KEY_SIZE], const uint8_t signature[IOTEX_SIGNATURE_SIZE], const ResponseTypes::ActionCore_Execution &transfer, uint8_t hash[IOTEX_HASH_SIZE])=0
Sends an execution action to the blockchain.
virtual ResultCode getAccount(const char *const address, ResponseTypes::AccountMeta &metadata)=0
Gets the account metadata from the blockchain.
A class that represents the Wallets API.
Definition: wallets.h:107
virtual ResultCode getAccount(const char *const address, ResponseTypes::AccountMeta &data) override
Gets the account metadata from the blockchain.
Definition: wallets.cpp:12
virtual ResultCode getExecutionByHash(const char *const address, ResponseTypes::ActionInfo_Execution &action) override
Gets the action info for a execution action hash from the blockchain.
Definition: wallets.cpp:72
virtual ResultCode getBalance(const char *const address, IotexString &balance) override
Gets the account balance from the blockchain.
Definition: wallets.cpp:34
virtual ResultCode sendExecution(const uint8_t senderPubKey[IOTEX_PUBLIC_KEY_SIZE], const uint8_t signature[IOTEX_SIGNATURE_SIZE], const ResponseTypes::ActionCore_Execution &transfer, uint8_t hash[IOTEX_HASH_SIZE]) override
Sends an execution action to the blockchain.
Definition: wallets.cpp:112
virtual ResultCode getTransactionByHash(const char *const address, ResponseTypes::ActionInfo_Transfer &action) override
Gets the action info for a transaction action hash from the blockchain.
Definition: wallets.cpp:53
virtual ResultCode sendTokenTransfer(const uint8_t senderPubKey[IOTEX_PUBLIC_KEY_SIZE], const uint8_t signature[IOTEX_SIGNATURE_SIZE], const ResponseTypes::ActionCore_Transfer &transfer, uint8_t hash[IOTEX_HASH_SIZE]) override
Sends a token transfer action to the blockchain.
Definition: wallets.cpp:91