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

Additional response codes for extending alias support #135

Merged
merged 4 commits into from
Jan 20, 2022
Merged
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: 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;
steven-sheehy marked this conversation as resolved.
Show resolved Hide resolved

/**
* 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;
Neeharika-Sompalli marked this conversation as resolved.
Show resolved Hide resolved

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