Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed types from uints to ints following the changes to the hedera … #235

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions services/basic_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ message TokenRelationship {
* For token of type FUNGIBLE_COMMON - the balance that the Account holds in the smallest
* denomination. For token of type NON_FUNGIBLE_UNIQUE - the number of NFTs held by the account
*/
uint64 balance = 3;
int64 balance = 3;

/**
* The KYC status of the account (KycNotApplicable, Granted or Revoked). If the token does not
Expand All @@ -1497,7 +1497,7 @@ message TokenRelationship {
/**
* Tokens divide into <tt>10<sup>decimals</sup></tt> pieces
*/
uint32 decimals = 6;
int32 decimals = 6;

/**
* Specifies if the relationship is created implicitly. False : explicitly associated, True :
Expand Down Expand Up @@ -1528,12 +1528,12 @@ message TokenBalance {
* balance in the smallest denomination. For token of type NON_FUNGIBLE_UNIQUE - the number of
* NFTs held by the account
*/
uint64 balance = 2;
int64 balance = 2;

/**
* Tokens divide into <tt>10<sup>decimals</sup></tt> pieces
*/
uint32 decimals = 3;
int32 decimals = 3;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion services/crypto_create.proto
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ message CryptoCreateTransactionBody {
/**
* The initial number of tinybars to put into the account
*/
uint64 initialBalance = 2;
int64 initialBalance = 2;

/**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
Expand Down
2 changes: 1 addition & 1 deletion services/crypto_get_account_balance.proto
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ message CryptoGetAccountBalanceResponse {
/**
* The current balance, in tinybars.
*/
uint64 balance = 3;
int64 balance = 3;

/**
* [DEPRECATED] The balances of the tokens associated to the account. This field was
Expand Down
2 changes: 1 addition & 1 deletion services/schedulable_transaction_body.proto
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ message SchedulableTransactionBody {
/**
* The maximum transaction fee the client is willing to pay
*/
uint64 transactionFee = 1;
int64 transactionFee = 1;

/**
* A memo to include the execution record; the UTF-8 encoding may be up to 100 bytes and must not
Expand Down
2 changes: 1 addition & 1 deletion services/token_burn.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ message TokenBurnTransactionBody {
* Amount must be a positive non-zero number, not bigger than the token balance of the treasury
* account (0; balance], represented in the lowest denomination.
*/
uint64 amount = 2;
int64 amount = 2;

/**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. The list of serial numbers to be burned.
Expand Down
4 changes: 2 additions & 2 deletions services/token_create.proto
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ message TokenCreateTransactionBody {
* token is divisible by. For tokens of type NON_FUNGIBLE_UNIQUE - value
* must be 0
*/
uint32 decimals = 3;
int32 decimals = 3;

/**
* Specifies the initial supply of tokens to be put in circulation. The
* initial supply is sent to the Treasury Account. The supply is in the
* lowest denomination possible. In the case for NON_FUNGIBLE_UNIQUE Type
* the value must be 0
*/
uint64 initialSupply = 4;
int64 initialSupply = 4;

/**
* The account which will act as a treasury for the token. This account
Expand Down
2 changes: 1 addition & 1 deletion services/token_mint.proto
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ message TokenMintTransactionBody {
* Amount must be a positive non-zero number represented in the lowest denomination of the
* token. The new supply must be lower than 2^63.
*/
uint64 amount = 2;
int64 amount = 2;

/**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. A list of metadata that are being created.
Expand Down
2 changes: 1 addition & 1 deletion services/token_wipe_account.proto
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ message TokenWipeAccountTransactionBody {
* account. Amount must be a positive non-zero number in the lowest denomination possible, not
* bigger than the token balance of the account (0; balance]
*/
uint64 amount = 3;
int64 amount = 3;

/**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. The list of serial numbers to be wiped.
Expand Down
2 changes: 1 addition & 1 deletion services/transaction_body.proto
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ message TransactionBody {
/**
* The maximum transaction fee the client is willing to pay
*/
uint64 transactionFee = 3;
int64 transactionFee = 3;

/**
* The transaction is invalid if consensusTimestamp > transactionID.transactionValidStart +
Expand Down
2 changes: 1 addition & 1 deletion services/transaction_receipt.proto
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ message TransactionReceipt {
* supply of this token. For non fungible tokens - the total number of NFTs issued for a given
* tokenID
*/
uint64 newTotalSupply = 11;
int64 newTotalSupply = 11;

/**
* In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity
Expand Down
2 changes: 1 addition & 1 deletion services/transaction_record.proto
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ message TransactionRecord {
* The actual transaction fee charged, not the original transactionFee value from
* TransactionBody
*/
uint64 transactionFee = 6;
int64 transactionFee = 6;

oneof body {
/**
Expand Down
2 changes: 1 addition & 1 deletion services/transaction_response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ message TransactionResponse {
* If the response code was INSUFFICIENT_TX_FEE, the actual transaction fee that would be
* required to execute the transaction.
*/
uint64 cost = 2;
int64 cost = 2;
}