From 26cbdc6419ec42a4f030bc7277b78631c006d433 Mon Sep 17 00:00:00 2001 From: Thomas Moran <152873392+thomas-swirlds-labs@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:56:12 +0000 Subject: [PATCH 1/2] add token lock, partition, move key protos Signed-off-by: Thomas Moran <152873392+thomas-swirlds-labs@users.noreply.github.com> --- .../services/token_get_info.proto | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/hapi/hedera-protobufs/services/token_get_info.proto b/hapi/hedera-protobufs/services/token_get_info.proto index 454c93434732..6dada2906a7b 100644 --- a/hapi/hedera-protobufs/services/token_get_info.proto +++ b/hapi/hedera-protobufs/services/token_get_info.proto @@ -209,6 +209,31 @@ message TokenInfo { * (token definition and individual NFTs). */ Key metadata_key = 28; + + /** + * The key which can lock tokens in an account or account partition. + *

+ * The key SHALL be used to authorize the locking and unlocking of tokens, + * or the transfer of locked tokens on balances held by the user + * on their account, or on the partition in their account. + */ + Key lock_key = 29; + + /** + * The key which can partition fungible tokens and NFTs held by an account. + *

+ * This key SHALL be used to authorize the creation, deletion, or updating + * of partition definitions owned by the token definition. + */ + Key partition_key = 30; + + /** + * The key which can move tokens between partitions. + *

+ * This key SHALL be used to authorize the movement of tokens between + * partitions. + */ + Key partition_move_key = 31; } /** From c0eae4f1c8cd33706e293573a584d1996150328c Mon Sep 17 00:00:00 2001 From: Thomas Moran <152873392+thomas-swirlds-labs@users.noreply.github.com> Date: Fri, 1 Nov 2024 18:44:58 +0000 Subject: [PATCH 2/2] PR Review comments Signed-off-by: Thomas Moran <152873392+thomas-swirlds-labs@users.noreply.github.com> --- .../services/token_get_info.proto | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/hapi/hedera-protobufs/services/token_get_info.proto b/hapi/hedera-protobufs/services/token_get_info.proto index 6dada2906a7b..2845911414be 100644 --- a/hapi/hedera-protobufs/services/token_get_info.proto +++ b/hapi/hedera-protobufs/services/token_get_info.proto @@ -211,16 +211,20 @@ message TokenInfo { Key metadata_key = 28; /** - * The key which can lock tokens in an account or account partition. - *

- * The key SHALL be used to authorize the locking and unlocking of tokens, - * or the transfer of locked tokens on balances held by the user - * on their account, or on the partition in their account. - */ + * A function-specific account key.
+ * This key authorizes transactions to lock tokens in an account or account + * partition. + *

+ * The key SHALL be used to authorize the locking and unlocking of tokens, + * or the transfer of locked tokens on balances held by the user + * on their account, or on the partition in their account. + */ Key lock_key = 29; /** - * The key which can partition fungible tokens and NFTs held by an account. + * A function-specific account key.
+ * This key authorizes transactions to partition fungible tokens and NFTs + * held by an account. *

* This key SHALL be used to authorize the creation, deletion, or updating * of partition definitions owned by the token definition. @@ -228,7 +232,8 @@ message TokenInfo { Key partition_key = 30; /** - * The key which can move tokens between partitions. + * A function-specific account key.
+ * This key authorizes transactions to move tokens between partitions. *

* This key SHALL be used to authorize the movement of tokens between * partitions.