-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathqvault.h
57 lines (52 loc) · 2.74 KB
/
qvault.h
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
#pragma once
#include "structs.h"
// SC structs
struct QVaultGetData_input
{
uint32_t t;
};
struct QVaultGetData_output
{
uint64_t numberOfBannedAddress;
uint32_t computor_permille;
uint32_t QCAPHolder_permille;
uint32_t reinvesting_permille;
uint32_t dev_permille;
uint8_t AUTH_ADDRESS1[32];
uint8_t AUTH_ADDRESS2[32];
uint8_t AUTH_ADDRESS3[32];
uint8_t Reinvesting_address[32];
uint8_t admin_address[32];
uint8_t newAuthAddress1[32];
uint8_t newAuthAddress2[32];
uint8_t newAuthAddress3[32];
uint8_t newReinvesting_address1[32];
uint8_t newReinvesting_address2[32];
uint8_t newReinvesting_address3[32];
uint8_t newAdmin_address1[32];
uint8_t newAdmin_address2[32];
uint8_t newAdmin_address3[32];
uint8_t bannedAddress1[32];
uint8_t bannedAddress2[32];
uint8_t bannedAddress3[32];
uint8_t unbannedAddress1[32];
uint8_t unbannedAddress2[32];
uint8_t unbannedAddress3[32];
static constexpr unsigned char type()
{
return RespondContractFunction::type();
}
};
void submitAuthAddress(const char* nodeIp, int nodePort, const char* seed, uint32_t scheduledTickOffset, const char* identity);
void changeAuthAddress(const char* nodeIp, int nodePort, const char* seed, uint32_t scheduledTickOffset, uint32_t numberOfChangedAddress);
void submitFees(const char* nodeIp, int nodePort, const char* seed, uint32_t scheduledTickOffset, uint32_t newQCAPHolder_fee, uint32_t newreinvesting_fee, uint32_t newdev_fee);
void changeFees(const char* nodeIp, int nodePort, const char* seed, uint32_t scheduledTickOffset, uint32_t newQCAPHolder_fee, uint32_t newreinvesting_fee, uint32_t newdev_fee);
void submitReinvestingAddress(const char* nodeIp, int nodePort, const char* seed, uint32_t scheduledTickOffset, const char* identity);
void changeReinvestingAddress(const char* nodeIp, int nodePort, const char* seed, uint32_t scheduledTickOffset, const char* identity);
void submitAdminAddress(const char* nodeIp, int nodePort, const char* seed, uint32_t scheduledTickOffset, const char* identity);
void changeAdminAddress(const char* nodeIp, int nodePort, const char* seed, uint32_t scheduledTickOffset, const char* identity);
void getData(const char* nodeIp, int nodePort);
void submitBannedAddress(const char* nodeIp, int nodePort, const char* seed, uint32_t scheduledTickOffset, const char* identity);
void saveBannedAddress(const char* nodeIp, int nodePort, const char* seed, uint32_t scheduledTickOffset, const char* identity);
void submitUnbannedannedAddress(const char* nodeIp, int nodePort, const char* seed, uint32_t scheduledTickOffset, const char* identity);
void saveUnbannedAddress(const char* nodeIp, int nodePort, const char* seed, uint32_t scheduledTickOffset, const char* identity);