diff --git a/auth/v1/msg.proto b/auth/v1/msg.proto index cecaa7c..d09aeac 100644 --- a/auth/v1/msg.proto +++ b/auth/v1/msg.proto @@ -208,3 +208,9 @@ message CheckTFAReq { optional string algorithm = 3; optional string reason = 4; // Can be later used as a lookup } + +message TFA { + string key = 1; + int64 code = 2; + string transaction_id = 3; +} \ No newline at end of file diff --git a/wallet/v1/msg.proto b/wallet/v1/msg.proto index 17156a4..99140f8 100644 --- a/wallet/v1/msg.proto +++ b/wallet/v1/msg.proto @@ -289,17 +289,27 @@ message UserBuyAssetReq { Transfer */ -message UserTransferAssetReq { - auth.v1.InternalIAM iam = 1; - int64 asset_id = 2; - double amount = 3; - string to_wallet_address = 4; - string to_wallet_memo = 5; +message Recipient { + string id = 1; + optional string first_name = 2; + optional string last_name = 3; } -message UserTransferRes { - int64 transaction_id = 1; - string tracking_code = 2; +message InternalTransferAssetReq { + auth.v1.InternalIAM iam = 1; + Recipient recipient = 2; + string amount = 3; + optional int64 network_id = 4; + int64 asset_id = 5; + optional bool approval = 6; + optional auth.v1.TFA tfa = 7; +} + +message InternalTransferAssetRes { + Recipient recipient = 1; + string amount = 2; + string transaction_id = 3; + string transaction_hash = 4; } // represent the information regarding the sale of the token diff --git a/wallet/v1/srv.proto b/wallet/v1/srv.proto index a352673..db06ba9 100644 --- a/wallet/v1/srv.proto +++ b/wallet/v1/srv.proto @@ -19,7 +19,6 @@ service WalletService { rpc UserInitWallet(UserInitWalletReq) returns (base.v1.StatusRes); rpc UserGetWalletList(auth.v1.InternalIAM) returns (WalletList); - rpc UserTransferAsset(UserTransferAssetReq) returns (UserTransferRes); rpc UserGetTransactionList(UserGetTransactionListReq) returns (TransactionList); @@ -41,4 +40,7 @@ service WalletService { rpc RedeemTokenList(auth.v1.ReqWithIAMAndParams) returns (RedeemTokenResList); rpc GetPublicKeyByNationalID(GetPublicKeyByNationalIDReq) returns (GetPublicKeyByNationalIDRes); + + // Assets routing + rpc InternalTransferAsset(InternalTransferAssetReq) returns (InternalTransferAssetRes); }