Skip to content

Commit

Permalink
feat: add TokenRejectTransactionBody to transaction_body proto (#354)
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
  • Loading branch information
MrValioBg authored and MiroslavGatsanoga committed Jun 6, 2024
1 parent 87e8db5 commit 4d96685
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions services/schedulable_transaction_body.proto
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ import "token_fee_schedule_update.proto";
import "token_pause.proto";
import "token_unpause.proto";
import "token_update_nfts.proto";
import "token_reject.proto";

import "schedule_delete.proto";
import "util_prng.proto";
Expand Down Expand Up @@ -308,5 +309,24 @@ message SchedulableTransactionBody {
* Transaction body for a scheduled transaction to remove a node.
*/
NodeDeleteTransactionBody nodeDelete = 44;

/**
* A transaction body to "reject" undesired tokens.<br/>
* This transaction will transfer one or more tokens or token
* balances held by the requesting account to the treasury
* for each token type.
* <p>
* Each transfer MUST be one of the following:
* <ul>
* <li>A single non-fungible/unique token.</li>
* <li>The full balance held for a fungible/common
* token type.</li>
* </ul>
* When complete, the requesting account SHALL NOT hold the
* rejected tokens.<br/>
* Custom fees and royalties defined for the tokens rejected
* SHALL NOT be charged for this transaction.
*/
TokenRejectTransactionBody tokenReject = 45;
}
}
20 changes: 20 additions & 0 deletions services/transaction_body.proto
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ import "token_fee_schedule_update.proto";
import "token_pause.proto";
import "token_unpause.proto";
import "token_update_nfts.proto";
import "token_reject.proto";

import "schedule_create.proto";
import "schedule_delete.proto";
Expand Down Expand Up @@ -375,5 +376,24 @@ message TransactionBody {
* A transaction body for a `deleteNode` request.
*/
NodeDeleteTransactionBody nodeDelete = 56;

/**
* A transaction body to "reject" undesired tokens.<br/>
* This transaction will transfer one or more tokens or token
* balances held by the requesting account to the treasury
* for each token type.
* <p>
* Each transfer MUST be one of the following:
* <ul>
* <li>A single non-fungible/unique token.</li>
* <li>The full balance held for a fungible/common
* token type.</li>
* </ul>
* When complete, the requesting account SHALL NOT hold the
* rejected tokens.<br/>
* Custom fees and royalties defined for the tokens rejected
* SHALL NOT be charged for this transaction.
*/
TokenRejectTransactionBody tokenReject = 57;
}
}

0 comments on commit 4d96685

Please sign in to comment.