forked from qubic/qubic-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwallet_utils.h
More file actions
63 lines (58 loc) · 2.7 KB
/
wallet_utils.h
File metadata and controls
63 lines (58 loc) · 2.7 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
#pragma once
#include "structs.h"
#include "connection.h"
void printWalletInfo(const char* seed);
void printBalance(const char* publicIdentity, const char* nodeIp, int nodePort);
void makeStandardTransaction(const char* nodeIp, int nodePort, const char* seed,
const char* targetIdentity, const uint64_t amount, uint32_t scheduledTickOffset,
int waitUntilFinish);
void makeStandardTransactionInTick(const char* nodeIp, int nodePort, const char* seed,
const char* targetIdentity, const uint64_t amount, uint32_t txTick,
int waitUntilFinish);
void makeCustomTransaction(const char* nodeIp, int nodePort,
const char* seed,
const char* targetIdentity,
uint16_t txType,
uint64_t amount,
int extraDataSize,
const uint8_t* extraData,
uint32_t scheduledTickOffset);
void makeContractTransaction(const char* nodeIp, int nodePort,
const char* seed,
uint64_t contractIndex,
uint16_t txType,
uint64_t amount,
int extraDataSize,
const void* extraData,
uint32_t scheduledTickOffset,
QCPtr* qcPtr = nullptr);
bool runContractFunction(const char* nodeIp, int nodePort,
unsigned int contractIndex,
unsigned short funcNumber,
void* inputPtr,
size_t inputSize,
void* outputPtr,
size_t outputSize,
QCPtr* qcPtr = nullptr);
bool runContractFunction(const char* nodeIp, int nodePort,
unsigned int contractIndex,
unsigned short funcNumber,
const char* formatInput,
const char* formatOutput);
void invokeContractProcedure(const char* nodeIp, int nodePort,
const char* seed,
uint64_t contractIndex,
uint16_t txType,
uint64_t amount,
const char* formatInput,
uint32_t scheduledTickOffset);
void printReceipt(Transaction& tx, const char* txHash = nullptr, const uint8_t* extraData = nullptr, int moneyFlew = -1);
bool verifyTx(Transaction& tx, const uint8_t* extraData, const uint8_t* signature);
void makeIPOBid(const char* nodeIp, int nodePort,
const char* seed,
uint32_t contractIndex,
uint64_t pricePerShare,
uint16_t numberOfShare,
uint32_t scheduledTickOffset);
void printIPOStatus(const char* nodeIp, int nodePort, uint32_t contractIndex);
void printActiveIPOs(const char* nodeIp, int nodePort);