From dff194962e61dc4cc470b6feb86ae9976204af4b Mon Sep 17 00:00:00 2001 From: Neeha <52669918+Neeharika-Sompalli@users.noreply.github.com> Date: Thu, 20 Jan 2022 09:58:02 -0600 Subject: [PATCH] Additional response codes for extending alias support (#135) * 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 --- services/crypto_update.proto | 8 ++++++++ services/response_code.proto | 24 ++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/services/crypto_update.proto b/services/crypto_update.proto index b0ea1276..b220c4fc 100644 --- a/services/crypto_update.proto +++ b/services/crypto_update.proto @@ -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; } diff --git a/services/response_code.proto b/services/response_code.proto index a4a5d8d1..8f49acfc 100644 --- a/services/response_code.proto +++ b/services/response_code.proto @@ -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 @@ -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; }