-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
783 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
#include <cstdint> | ||
|
||
void printQxFee(const char* nodeIp, const int nodePort); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,3 @@ | ||
#pragma once | ||
void printOwnedAsset(const char * nodeIp, const int nodePort, const char* requestedIdentity); | ||
void printPossessionAsset(const char * nodeIp, const int nodePort, const char* requestedIdentity); | ||
void transferQxShare(const char* nodeIp, int nodePort, | ||
const char* seed, | ||
const char* possessorIdentity, | ||
const char* newOwnerIdentity, | ||
long long numberOfUnits, | ||
uint32_t scheduledTickOffset); | ||
|
||
void qxIssueAsset(const char* nodeIp, int nodePort, | ||
const char* seed, | ||
const char* assetName, | ||
const char* unitOfMeasurement, | ||
int64_t numberOfUnits, | ||
char numberOfDecimalPlaces, | ||
uint32_t scheduledTickOffset); | ||
|
||
void qxTransferAsset(const char* nodeIp, int nodePort, | ||
const char* seed, | ||
const char* pAssetName, | ||
const char* pIssuer, | ||
const char* newOwnerIdentity, | ||
long long numberOfUnits, | ||
uint32_t scheduledTickOffset); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#pragma once | ||
#include "stdint.h" | ||
static bool isArrayZero(uint8_t* ptr, int len){ | ||
for (int i = 0; i < len; i++){ | ||
if (ptr[i] != 0) return false; | ||
} | ||
return true; | ||
} | ||
static bool isZeroPubkey(uint8_t* pubkey){ | ||
return isArrayZero(pubkey, 32); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.