Skip to content

Commit

Permalink
Additional response codes for extending alias support (#135)
Browse files Browse the repository at this point in the history
* add additional response codes

* fix typo

* remove auto renew response code as there is ` INVALID_AUTORENEW_ACCOUNT`

* add support to update alias for existing accounts without `alias` set
  • Loading branch information
Neeharika-Sompalli authored Jan 20, 2022
1 parent 7f86ccd commit dff1949
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
8 changes: 8 additions & 0 deletions services/crypto_update.proto
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,12 @@ message CryptoUpdateTransactionBody {
* including implicit and explicit associations.
*/
google.protobuf.Int32Value max_automatic_token_associations = 15;

/**
* If set, the new public key bytes to be used as the account's alias. Alias can be updated
* only on accounts that does not have it set previously. It will be immutable once it is
* set on an account. For successful update of alias, the corresponding alias private key
* should sign the transaction.
*/
bytes alias = 16;
}
24 changes: 22 additions & 2 deletions services/response_code.proto
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,12 @@ enum ResponseCodeEnum {
/**
* [Deprecated]. attempt to set negative receive record threshold
*/
INVALID_RECEIVE_RECORD_THRESHOLD = 86 [deprecated=true];
INVALID_RECEIVE_RECORD_THRESHOLD = 86 [deprecated = true];

/**
* [Deprecated]. attempt to set negative send record threshold
*/
INVALID_SEND_RECORD_THRESHOLD = 87 [deprecated=true];
INVALID_SEND_RECORD_THRESHOLD = 87 [deprecated = true];

/**
* Special Account Operations should be performed by only Genesis account, return this code if it
Expand Down Expand Up @@ -1116,4 +1116,24 @@ enum ResponseCodeEnum {
* type actually has.
*/
UNEXPECTED_TOKEN_DECIMALS = 283;

/**
* The proxy account id is invalid or does not exist.
*/
INVALID_PROXY_ACCOUNT_ID = 284;

/**
* The transfer account id in CryptoDelete transaction is invalid or does not exist.
*/
INVALID_TRANSFER_ACCOUNT_ID = 285;

/**
* The fee collector account id in TokenFeeScheduleUpdate is invalid or does not exist.
*/
INVALID_FEE_COLLECTOR_ACCOUNT_ID = 286;

/**
* The alias already set on an account cannot be updated using CryptoUpdate transaction.
*/
ALIAS_IS_IMMUTABLE = 287;
}

0 comments on commit dff1949

Please sign in to comment.