From b2ce773f80a79999382e6838776d3d7125612249 Mon Sep 17 00:00:00 2001 From: Saleem Rashid Date: Sat, 7 Oct 2017 21:29:02 +0100 Subject: [PATCH 1/2] protob: Update @used_in to NEMSignTx --- protob/types.proto | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/protob/types.proto b/protob/types.proto index 48091f0cf..7da5831ac 100644 --- a/protob/types.proto +++ b/protob/types.proto @@ -273,7 +273,7 @@ message IdentityType { /** * Structure representing the common part for NEM transactions - * @used_in NEMTransaction + * @used_in NEMSignTx */ message NEMTransactionCommon { repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node @@ -286,7 +286,7 @@ message NEMTransactionCommon { /** * Structure representing the transfer transaction part for NEM transactions - * @used_in NEMTransaction + * @used_in NEMSignTx */ message NEMTransfer { optional string recipient = 1; // Address of the recipient @@ -308,7 +308,7 @@ message NEMMosaic { /** * Structure representing the provision namespace part for NEM transactions - * @used_in NEMTransaction + * @used_in NEMSignTx */ message NEMProvisionNamespace { optional string namespace = 1; // New part concatenated to the parent @@ -328,7 +328,7 @@ enum NEMMosaicLevy { /** * Structure representing the mosaic definition creation part for NEM transactions - * @used_in NEMTransaction + * @used_in NEMSignTx */ message NEMMosaicCreation { optional NEMMosaicDefinition definition = 1; // Mosaic definition @@ -360,7 +360,7 @@ message NEMMosaicDefinition { /** * Structure representing the mosaic supply change part for NEM transactions - * @used_in NEMTransaction + * @used_in NEMSignTx */ message NEMMosaicSupplyChange { optional string namespace = 1; // Fully qualified name of the namespace @@ -380,7 +380,7 @@ enum NEMSupplyChangeType { /** * Structure representing the aggregate modification part for NEM transactions - * @used_in NEMTransaction + * @used_in NEMSignTx */ message NEMAggregateModification { repeated NEMCosignatoryModification modifications = 1; // Cosignatory modifications From b9a2a9c3defd8a4b84d674116cbae2cf46b6080b Mon Sep 17 00:00:00 2001 From: Saleem Rashid Date: Sat, 7 Oct 2017 21:32:36 +0100 Subject: [PATCH 2/2] 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; +}