From b9a2a9c3defd8a4b84d674116cbae2cf46b6080b Mon Sep 17 00:00:00 2001 From: Saleem Rashid Date: Sat, 7 Oct 2017 21:32:36 +0100 Subject: [PATCH] protob: Add NEMImportanceTransfer --- protob/messages.proto | 1 + protob/types.proto | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/protob/messages.proto b/protob/messages.proto index e73d7524b..02f6f306a 100644 --- a/protob/messages.proto +++ b/protob/messages.proto @@ -858,6 +858,7 @@ message NEMSignTx { optional NEMMosaicCreation mosaic_creation = 6; // Mosaic definition creation part optional NEMMosaicSupplyChange supply_change = 7; // Mosaic supply change part optional NEMAggregateModification aggregate_modification = 8; // Aggregate modification part + optional NEMImportanceTransfer importance_transfer = 9; // Importance transfer part } /** diff --git a/protob/types.proto b/protob/types.proto index 7da5831ac..531125681 100644 --- a/protob/types.proto +++ b/protob/types.proto @@ -404,3 +404,21 @@ enum NEMModificationType { CosignatoryModification_Add = 1; CosignatoryModification_Delete = 2; } + +/** + * Structure representing the importance transfer part for NEM transactions + * @used_in NEMSignTx + */ +message NEMImportanceTransfer { + optional NEMImportanceTransferMode mode = 1; // Mode of importance transfer + optional bytes public_key = 2; // Public key of the remote account +} + +/** + * Mode of importance transfer + * @used_in NEMModificationType + */ +enum NEMImportanceTransferMode { + ImportanceTransfer_Activate = 1; + ImportanceTransfer_Deactivate = 2; +}