forked from qubic/qubic-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.h
More file actions
225 lines (191 loc) · 6.95 KB
/
global.h
File metadata and controls
225 lines (191 loc) · 6.95 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
#pragma once
#include "defines.h"
COMMAND g_cmd;
char* g_seed = (char*)DEFAULT_SEED;
char* g_nodeIp = (char*)DEFAULT_NODE_IP;
char* g_targetIdentity = nullptr;
char* g_configFile = nullptr;
char* g_requestedFileName = nullptr;
char* g_requestedFileName2 = nullptr;
char* g_requestedTxId = nullptr;
char* g_requestedIdentity = nullptr;
char* g_qx_share_transfer_possessed_identity = nullptr;
char* g_qx_share_transfer_new_owner_identity = nullptr;
int64_t g_qx_share_transfer_amount = 0;
const char* g_proposalString = "";
const char* g_voteValueString = "";
const char* g_paramString1 = "";
const char* g_paramString2 = "";
bool g_force = false;
int64_t g_TxAmount = 0;
uint16_t g_TxType = 0;
uint32_t g_TxTick = 0;
int g_nodePort = DEFAULT_NODE_PORT;
int g_txExtraDataSize = 0;
int g_rawPacketSize = 0;
int g_requestedSpecialCommand = -1;
char* g_toggle_main_aux_0 = nullptr;
char* g_toggle_main_aux_1 = nullptr;
int g_set_solution_threshold_epoch = -1;
int g_set_solution_threshold_value = -1;
char* g_file_path = nullptr;
char* g_compress_tool = nullptr;
uint32_t g_contract_index = 0;
char g_loggingMode = 0;
char* g_compChatString = nullptr;
uint32_t g_requestedTickNumber = 0;
uint32_t g_offsetScheduledTick = DEFAULT_SCHEDULED_TICK_OFFSET;
int g_waitUntilFinish = 0;
uint8_t g_txExtraData[1024] = {0};
uint8_t g_rawPacket[1024] = {0};
char* g_qx_issue_asset_name = nullptr;
char* g_qx_issue_unit_of_measurement = nullptr;
int64_t g_qx_issue_asset_number_of_unit = -1;
char g_qx_issue_asset_num_decimal = 0;
char* g_qx_command_1 = nullptr;
char* g_qx_command_2 = nullptr;
char* g_qx_issuer = nullptr;
char* g_qx_asset_name = nullptr;
long long g_qx_offset = -1;
long long g_qx_price = -1;
long long g_qx_number_of_share = -1;
char* g_qx_asset_transfer_possessed_identity = nullptr;
char* g_qx_asset_transfer_new_owner_identity = nullptr;
int64_t g_qx_asset_transfer_amount = -1;
char* g_qx_asset_transfer_asset_name = nullptr;
char* g_qx_asset_transfer_issuer_in_hex = nullptr;
// qswap
char* g_qswap_issue_asset_name = nullptr;
char* g_qswap_issue_unit_of_measurement = nullptr;
int64_t g_qswap_issue_asset_number_of_unit = -1;
char g_qswap_issue_asset_num_decimal = 0;
char* g_qswap_command_1 = nullptr;
char* g_qswap_asset_name = nullptr;
char* g_qswap_issuer = nullptr;
char* g_qswap_asset_transfer_possessed_identity = nullptr;
char* g_qswap_asset_transfer_new_owner_identity = nullptr;
int64_t g_qswap_asset_transfer_amount = -1;
char* g_qswap_asset_transfer_asset_name = nullptr;
char* g_qswap_asset_transfer_issuer = nullptr;
int64_t g_qswap_add_liquidity_qu_amount = -1;
int64_t g_qswap_add_liquidity_asset_amount_desired = -1;
int64_t g_qswap_remove_liquidity_burn_liquidity = -1;
int64_t g_qswap_liquidity_qu_amount_min = -1;
int64_t g_qswap_liquidity_asset_amount_min = -1;
char* g_qswap_get_liquidity_of_staker_issuer = nullptr;
int64_t g_qswap_swap_amount_out = -1;
int64_t g_qswap_swap_amount_out_min = -1;
int64_t g_qswap_swap_amount_in = -1;
int64_t g_qswap_swap_amount_in_max = -1;
int64_t g_qswap_quote_amount = -1;
char* g_dump_binary_file_input = nullptr;
char* g_dump_binary_file_output = nullptr;
uint32_t g_dump_binary_contract_id = 0;
// IPO bid
uint32_t g_ipo_contract_index = 0;
uint16_t g_make_ipo_bid_number_of_share = 0;
uint64_t g_make_ipo_bid_price_per_share = 0;
// quottery
uint32_t g_quottery_bet_id = 0;
uint32_t g_quottery_option_id = 0;
char* g_quottery_creator_id = nullptr;
uint64_t g_quottery_number_bet_slot = 0;
uint64_t g_quottery_amount_per_bet_slot = 0;
uint32_t g_quottery_picked_option = 0;
// qutil
char* g_qutil_sendtomanyv1_payout_list_file = nullptr;
int64_t g_qutil_sendtomanybenchmark_destination_count = 0;
int64_t g_qutil_sendtomanybenchmark_num_transfers_each = 0;
// qearn
uint64_t g_qearn_lock_amount = 0;
uint64_t g_qearn_unlock_amount = 0;
uint32_t g_qearn_locked_epoch = 0;
uint32_t g_qearn_getinfo_epoch = 0;
uint32_t g_qearn_getstats_epoch = 0;
// qvault
char* g_qvaultIdentity = nullptr;
uint32_t g_qvault_numberOfChangedAddress = 0;
uint32_t g_qvault_newQCAPHolder_fee = 0;
uint32_t g_qvault_newreinvesting_fee = 0;
uint32_t g_qvault_newdev_fee = 0;
// msvault
uint64_t g_msVaultID = 0;
uint64_t g_msVaultRequiredApprovals = 0;
uint8_t g_msVaultVaultName[32] = { 0 };
char* g_msVaultDestination = nullptr;
char* g_msVaultPublicId = nullptr;
char* g_msVaultOwnersCommaSeparated = nullptr;
// nostromo
char* g_nost_tokenName = nullptr;
uint64_t g_nost_supply = 0;
uint32_t g_nost_tierLevel = 0;
uint32_t g_nost_startYear = 0;
uint32_t g_nost_startMonth = 0;
uint32_t g_nost_startDay = 0;
uint32_t g_nost_startHour = 0;
uint32_t g_nost_endYear = 0;
uint32_t g_nost_endMonth = 0;
uint32_t g_nost_endDay = 0;
uint32_t g_nost_endHour = 0;
uint32_t g_nost_indexOfProject = 0;
bool g_nost_decision = 0;
uint64_t g_nost_tokenPrice = 0;
uint64_t g_nost_soldAmount = 0;
uint64_t g_nost_requiredFunds = 0;
uint32_t g_nost_firstPhaseStartYear = 0;
uint32_t g_nost_firstPhaseStartMonth = 0;
uint32_t g_nost_firstPhaseStartDay = 0;
uint32_t g_nost_firstPhaseStartHour = 0;
uint32_t g_nost_firstPhaseEndYear = 0;
uint32_t g_nost_firstPhaseEndMonth = 0;
uint32_t g_nost_firstPhaseEndDay = 0;
uint32_t g_nost_firstPhaseEndHour = 0;
uint32_t g_nost_secondPhaseStartYear = 0;
uint32_t g_nost_secondPhaseStartMonth = 0;
uint32_t g_nost_secondPhaseStartDay = 0;
uint32_t g_nost_secondPhaseStartHour = 0;
uint32_t g_nost_secondPhaseEndYear = 0;
uint32_t g_nost_secondPhaseEndMonth = 0;
uint32_t g_nost_secondPhaseEndDay = 0;
uint32_t g_nost_secondPhaseEndHour = 0;
uint32_t g_nost_thirdPhaseStartYear = 0;
uint32_t g_nost_thirdPhaseStartMonth = 0;
uint32_t g_nost_thirdPhaseStartDay = 0;
uint32_t g_nost_thirdPhaseStartHour = 0;
uint32_t g_nost_thirdPhaseEndYear = 0;
uint32_t g_nost_thirdPhaseEndMonth = 0;
uint32_t g_nost_thirdPhaseEndDay = 0;
uint32_t g_nost_thirdPhaseEndHour = 0;
uint32_t g_nost_listingStartYear = 0;
uint32_t g_nost_listingStartMonth = 0;
uint32_t g_nost_listingStartDay = 0;
uint32_t g_nost_listingStartHour = 0;
uint32_t g_nost_cliffEndYear = 0;
uint32_t g_nost_cliffEndMonth = 0;
uint32_t g_nost_cliffEndDay = 0;
uint32_t g_nost_cliffEndHour = 0;
uint32_t g_nost_vestingEndYear = 0;
uint32_t g_nost_vestingEndMonth = 0;
uint32_t g_nost_vestingEndDay = 0;
uint32_t g_nost_vestingEndHour = 0;
uint8_t g_nost_threshold = 0;
uint8_t g_nost_TGE = 0;
uint8_t g_nost_stepOfVesting = 0;
uint64_t g_nost_amount = 0;
uint32_t g_nost_indexOfFundraising = 0;
uint32_t g_nost_newManagementContractIndex = 0;
int64_t g_nost_numberOfShare = 0;
char* g_nost_identity = nullptr;
// Qutil poll-related variables
char* g_qutil_poll_name_str = nullptr;
uint64_t g_qutil_poll_type = 0; // 1 for Qubic, 2 for Asset
uint64_t g_qutil_min_amount = 0;
char* g_qutil_github_link_str = nullptr;
char* g_qutil_semicolon_separated_assets = nullptr;
uint64_t g_qutil_vote_poll_id = 0;
uint64_t g_qutil_vote_amount = 0;
uint64_t g_qutil_vote_chosen_option = 64;
uint64_t g_qutil_get_result_poll_id = 0;
char* g_qutil_get_polls_creator_address = nullptr;
uint64_t g_qutil_get_poll_info_poll_id = 0;
uint64_t g_qutil_cancel_poll_id = 0;