-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathAccountService.h
More file actions
69 lines (59 loc) · 1.93 KB
/
AccountService.h
File metadata and controls
69 lines (59 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// SPDX-License-Identifier: Apache-2.0
#ifndef HIERO_TCK_CPP_ACCOUNT_SERVICE_H_
#define HIERO_TCK_CPP_ACCOUNT_SERVICE_H_
#include <nlohmann/json_fwd.hpp>
namespace Hiero::TCK::AccountService
{
/**
* Forward declarations.
*/
struct ApproveAllowanceParams;
struct CreateAccountParams;
struct DeleteAccountParams;
struct DeleteAllowanceParams;
struct TransferCryptoParams;
struct UpdateAccountParams;
/**
* Approve an allowance to an account.
*
* @param params The parameters to use to approve the allowance.
* @return A JSON response containing the status of the allowance approval.
*/
nlohmann::json approveAllowance(const ApproveAllowanceParams& params);
/**
* Delete an allowance from an account.
*
* @param params The parameters to use to delete the allowance.
* @return A JSON response containing the status of the allowance deletion.
*/
nlohmann::json deleteAllowance(const DeleteAllowanceParams& params);
/**
* Create an account.
*
* @param params The parameters to use to create an account.
* @return A JSON response containing the created account ID and the status of the account creation.
*/
nlohmann::json createAccount(const CreateAccountParams& params);
/**
* Delete an account.
*
* @param params The parameters to use to delete an account.
* @return A JSON response containing the status of the account deletion.
*/
nlohmann::json deleteAccount(const DeleteAccountParams& params);
/**
* Transfer crypto between accounts.
*
* @param params The parameters to use to transfer crypto.
* @return A JSON response containing the status of the transfer.
*/
nlohmann::json transferCrypto(const TransferCryptoParams& params);
/**
* Update an account.
*
* @param params The parameters to use to update an account.
* @return A JSON response containing the status of the account update.
*/
nlohmann::json updateAccount(const UpdateAccountParams& params);
} // namespace Hiero::TCK::AccountService
#endif // HIERO_TCK_CPP_ACCOUNT_SERVICE_H_