Skip to content

Commit

Permalink
Update TokenLockTransactionBody and TokenUnlockTransactionBody (#880)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Heinrichs <[email protected]>
  • Loading branch information
netopyr authored Feb 7, 2024
1 parent a856390 commit 9175848
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions HIP/hip-796.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ category: Service
status: Accepted
created: 2023-08-30
discussions-to: https://github.com/hashgraph/hedera-improvement-proposal/discussions/797
updated: 2023-09-27
updated: 2024-02-06
---

## Abstract
Expand Down Expand Up @@ -477,7 +477,7 @@ message TokenCreatePartitionDefinitionTransactionBody {
/**
* The token (either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE) that this partition is a part of.
*/
TokenID parent_token_id = 1;
TokenID parent_token = 1;
/**
* The publicly visible name of the partition. The partition name is specified as a Unicode
Expand Down Expand Up @@ -543,12 +543,10 @@ NOTE: No query API is provided for partitions. Records will be provided to the r
* FUNGIBLE_COMMON token type, or a partition of such a token type.
*/
message TokenLockTransactionBody {
AccountID account_id = 1;
TokenID token_id = 2; // token-definition-id or partition-definition-id
oneOf amountOrSerialNumber {
int64 amount = 3; // if token-definition is FUNGIBLE_COMMON
int64 serialNumber = 4; // if the token-definition is NON_FUNGIBLE_UNIQUE
}
AccountID account = 1;
TokenID token = 2; // token-definition-id or partition-definition-id
int64 amount = 3; // if token-definition is FUNGIBLE_COMMON
repeated int64 serialNumbers = 4; // if the token-definition is NON_FUNGIBLE_UNIQUE
}
```

Expand All @@ -558,12 +556,10 @@ message TokenLockTransactionBody {
* FUNGIBLE_COMMON token type, or a partition of such a token type.
*/
message TokenUnlockTransactionBody {
AccountID accoun_id = 1;
TokenID token_id = 2; // token-definition-id or partition-definition-id
oneOf amountOrSerialNumber {
int64 amount = 3; // if token-definition is FUNGIBLE_COMMON
int64 serialNumber = 4; // if the token-definition is NON_FUNGIBLE_UNIQUE
}
AccountID account = 1;
TokenID token = 2; // token-definition-id or partition-definition-id
int64 amount = 3; // if token-definition is FUNGIBLE_COMMON
repeated int64 serialNumbers = 4; // if the token-definition is NON_FUNGIBLE_UNIQUE
}
```

Expand Down

0 comments on commit 9175848

Please sign in to comment.