-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Venkatachalam Vairavan
authored and
Venkatachalam Vairavan
committed
Nov 7, 2023
1 parent
f36e05b
commit f5b3441
Showing
13 changed files
with
312 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
syntax = "proto3"; | ||
|
||
package proto; | ||
|
||
|
||
/** | ||
* Create a new partition type on a token. After the entity is created, the TokenID for it is in | ||
* the receipt. | ||
*/ | ||
message TokenCreatePartitionDefinitionTransactionBody { | ||
/** | ||
* The token (either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE) that this partition is a part of. | ||
*/ | ||
TokenID parent_token_id = 1; | ||
|
||
/** | ||
* The publicly visible name of the partition. The partition name is specified as a Unicode | ||
* string. Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL). | ||
* This name is not unique within the ledger. | ||
*/ | ||
string name = 2; | ||
|
||
/** | ||
* The memo associated with the partition (UTF-8 encoding max 100 bytes) | ||
*/ | ||
string memo = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
syntax = "proto3"; | ||
|
||
package proto; | ||
|
||
|
||
|
||
// Do we need to add partition_definition_id | ||
|
||
/** | ||
* Marks a token partition as deleted, though it will remain in the ledger. | ||
* The operation must be signed by the specified partition key of the parent Token. If | ||
* the partition key is not set, the Transaction will result in TOKEN_IS_IMMUTABlE. | ||
* Once deleted update, freeze, unfreeze, grant kyc, revoke kyc and token transfer | ||
* transactions will resolve to TOKEN_WAS_DELETED. | ||
*/ | ||
message TokenDeletePartitionDefinitionTransactionBody { | ||
/** | ||
* The token partition to be deleted. If an invalid token is specified, the transaction will | ||
* result in INVALID_TOKEN_ID | ||
*/ | ||
TokenID token = 1; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
syntax = "proto3"; | ||
|
||
package proto; | ||
|
||
|
||
|
||
/** | ||
* At consensus, updates an already created token partition to the given values. | ||
*/ | ||
message TokenUpdatePartitionTransactionBody { | ||
/** | ||
* The Token partition to be updated | ||
*/ | ||
TokenID token = 1; | ||
|
||
/** | ||
* The new publicly visible name of the token. The token name is specified as a Unicode string. | ||
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL). | ||
*/ | ||
string name = 2; | ||
|
||
/** | ||
* If set, the new memo to be associated with the token (UTF-8 encoding max 100 bytes) | ||
*/ | ||
google.protobuf.StringValue memo = 5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
syntax = "proto3"; | ||
|
||
package proto; | ||
|
||
|
||
|
||
/** | ||
* Lock a certain amount of tokens in an account. The TokenID must refer either to a | ||
* 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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
syntax = "proto3"; | ||
|
||
package proto; | ||
|
||
|
||
|
||
|
||
/** | ||
* Unlock a certain amount of tokens in an account. The TokenID must either refer to a | ||
* 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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters