improve InternalTransferAsset rpc
This commit is contained in:
parent
3779679504
commit
8e64e1ca1f
@ -208,3 +208,9 @@ message CheckTFAReq {
|
|||||||
optional string algorithm = 3;
|
optional string algorithm = 3;
|
||||||
optional string reason = 4; // Can be later used as a lookup
|
optional string reason = 4; // Can be later used as a lookup
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message Otp {
|
||||||
|
string status = 1;
|
||||||
|
int64 code = 2;
|
||||||
|
string transaction_id = 3;
|
||||||
|
}
|
||||||
@ -289,17 +289,23 @@ message UserBuyAssetReq {
|
|||||||
Transfer
|
Transfer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
message UserTransferAssetReq {
|
message InternalTransferAssetReq {
|
||||||
auth.v1.InternalIAM iam = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
int64 asset_id = 2;
|
string recipient = 2;
|
||||||
double amount = 3;
|
string amount = 3;
|
||||||
string to_wallet_address = 4;
|
int64 network_id = 4;
|
||||||
string to_wallet_memo = 5;
|
int64 asset_id = 5;
|
||||||
|
bool approval = 6;
|
||||||
|
auth.v1.Otp otp = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UserTransferRes {
|
message InternalTransferAssetRes {
|
||||||
int64 transaction_id = 1;
|
string recipient = 1;
|
||||||
string tracking_code = 2;
|
string recipient_first_name = 2;
|
||||||
|
string recipient_last_name = 3;
|
||||||
|
string amount = 4;
|
||||||
|
string transaction_id = 5;
|
||||||
|
string transaction_hash = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
// represent the information regarding the sale of the token
|
// represent the information regarding the sale of the token
|
||||||
|
|||||||
@ -19,7 +19,6 @@ service WalletService {
|
|||||||
|
|
||||||
rpc UserInitWallet(UserInitWalletReq) returns (base.v1.StatusRes);
|
rpc UserInitWallet(UserInitWalletReq) returns (base.v1.StatusRes);
|
||||||
rpc UserGetWalletList(auth.v1.InternalIAM) returns (WalletList);
|
rpc UserGetWalletList(auth.v1.InternalIAM) returns (WalletList);
|
||||||
rpc UserTransferAsset(UserTransferAssetReq) returns (UserTransferRes);
|
|
||||||
|
|
||||||
rpc UserGetTransactionList(UserGetTransactionListReq) returns (TransactionList);
|
rpc UserGetTransactionList(UserGetTransactionListReq) returns (TransactionList);
|
||||||
|
|
||||||
@ -41,4 +40,7 @@ service WalletService {
|
|||||||
rpc RedeemTokenList(auth.v1.ReqWithIAMAndParams) returns (RedeemTokenResList);
|
rpc RedeemTokenList(auth.v1.ReqWithIAMAndParams) returns (RedeemTokenResList);
|
||||||
|
|
||||||
rpc GetPublicKeyByNationalID(GetPublicKeyByNationalIDReq) returns (GetPublicKeyByNationalIDRes);
|
rpc GetPublicKeyByNationalID(GetPublicKeyByNationalIDReq) returns (GetPublicKeyByNationalIDRes);
|
||||||
|
|
||||||
|
// Assets routing
|
||||||
|
rpc InternalTransferAsset(InternalTransferAssetReq) returns (InternalTransferAssetRes);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user