From 92fa8769885765c77dd9e52418545b58d6dccb6c Mon Sep 17 00:00:00 2001 From: Fyodor Muratov Date: Mon, 17 Jul 2017 12:58:57 +0300 Subject: [PATCH] Update proto commands with amount type --- schema/commands.proto | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/schema/commands.proto b/schema/commands.proto index 40e8269366..be562b2897 100644 --- a/schema/commands.proto +++ b/schema/commands.proto @@ -1,10 +1,15 @@ syntax = "proto3"; package iroha.protocol; +message Amount { + uint64 integer_part = 1; + uint64 fractial_part = 2; +} + message AddAssetQuantity { string account_id = 1; string asset_id = 2; - string amount = 3; + Amount amount = 3; } message AddPeer { @@ -71,7 +76,7 @@ message TransferAsset { string src_account_id = 1; string dest_account_id = 2; string asset_id = 3; - string ammount = 4; + Amount amount = 4; } message Command {