Compare commits
14 Commits
wallet/#19
...
issue/#11
| Author | SHA1 | Date | |
|---|---|---|---|
|
faf4ac4465
|
|||
|
0ab540e9c0
|
|||
| 03aaf185f7 | |||
| 219a8e107d | |||
| ce274776a6 | |||
| aac5d5e784 | |||
| 552bd3c428 | |||
| 21c190e5a5 | |||
| fe1f8ca568 | |||
| ecb8eed62c | |||
| 3d1e544c00 | |||
|
dd0c898404
|
|||
|
f496cb4d32
|
|||
|
ff86d65eb3
|
+5
-2
@@ -75,8 +75,8 @@ message CheckIAMReq {
|
|||||||
message InternalIAM {
|
message InternalIAM {
|
||||||
User user = 1;
|
User user = 1;
|
||||||
IdentityBasic identity = 2;
|
IdentityBasic identity = 2;
|
||||||
repeated Company company = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message IdReqWithIAM {
|
message IdReqWithIAM {
|
||||||
int64 id = 1;
|
int64 id = 1;
|
||||||
InternalIAM iam = 2;
|
InternalIAM iam = 2;
|
||||||
@@ -110,6 +110,7 @@ message Company {
|
|||||||
bool can_provide_bnpl = 5;
|
bool can_provide_bnpl = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Identity is bound to current user's real identity
|
||||||
message Identity {
|
message Identity {
|
||||||
string national_id = 1;
|
string national_id = 1;
|
||||||
string national_serial_id = 2;
|
string national_serial_id = 2;
|
||||||
@@ -134,11 +135,14 @@ message Identity {
|
|||||||
string mobile = 21;
|
string mobile = 21;
|
||||||
optional Company company = 22;
|
optional Company company = 22;
|
||||||
optional string employee_info = 23;
|
optional string employee_info = 23;
|
||||||
|
string pub_key = 24;
|
||||||
|
optional float balance = 25;
|
||||||
}
|
}
|
||||||
|
|
||||||
message IdentityBasic {
|
message IdentityBasic {
|
||||||
string first_name = 1;
|
string first_name = 1;
|
||||||
string last_name = 2;
|
string last_name = 2;
|
||||||
|
optional Company company = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UserIdentityBasic {
|
message UserIdentityBasic {
|
||||||
@@ -234,7 +238,6 @@ message Recipient {
|
|||||||
optional string last_name = 3;
|
optional string last_name = 3;
|
||||||
optional int64 user_id = 4;
|
optional int64 user_id = 4;
|
||||||
optional string public_key = 5;
|
optional string public_key = 5;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message LookUpNameReq {
|
message LookUpNameReq {
|
||||||
|
|||||||
+39
-5
@@ -75,6 +75,7 @@ message Asset {
|
|||||||
repeated string images = 30;
|
repeated string images = 30;
|
||||||
int32 status = 31;
|
int32 status = 31;
|
||||||
AssetMeta meta = 32;
|
AssetMeta meta = 32;
|
||||||
|
string type = 33;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetAssetReq {
|
message GetAssetReq {
|
||||||
@@ -145,6 +146,7 @@ message UserBNPLResp {
|
|||||||
optional string updated_at = 12;
|
optional string updated_at = 12;
|
||||||
optional string created_at = 13;
|
optional string created_at = 13;
|
||||||
Asset selected_asset = 14;
|
Asset selected_asset = 14;
|
||||||
|
optional string rejection_reason = 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UserBNPLReq {
|
message UserBNPLReq {
|
||||||
@@ -223,8 +225,11 @@ enum TransactionType {
|
|||||||
UNKNOWN = 0;
|
UNKNOWN = 0;
|
||||||
BUY = 1;
|
BUY = 1;
|
||||||
SELL = 2;
|
SELL = 2;
|
||||||
TRANSFER = 3;
|
INTERNAL_TRANSFER = 3;
|
||||||
REDEEM = 4;
|
EXTERNAL_TRANSFER = 4;
|
||||||
|
REDEEM = 5;
|
||||||
|
TRUST_LINE = 6;
|
||||||
|
WAGE = 7;
|
||||||
}
|
}
|
||||||
enum TransactionStatus {
|
enum TransactionStatus {
|
||||||
UNDETERMINED = 0;
|
UNDETERMINED = 0;
|
||||||
@@ -289,7 +294,7 @@ message UserBuyAssetReq {
|
|||||||
Transfer
|
Transfer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
message InternalTransferAssetReq {
|
message TransferAssetReq {
|
||||||
auth.v1.InternalIAM iam = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
auth.v1.Recipient recipient = 2;
|
auth.v1.Recipient recipient = 2;
|
||||||
double amount = 3;
|
double amount = 3;
|
||||||
@@ -299,7 +304,7 @@ message InternalTransferAssetReq {
|
|||||||
optional auth.v1.TFA tfa = 7;
|
optional auth.v1.TFA tfa = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
message InternalTransferAssetRes {
|
message TransferAssetRes {
|
||||||
auth.v1.Recipient recipient = 1;
|
auth.v1.Recipient recipient = 1;
|
||||||
double amount = 2;
|
double amount = 2;
|
||||||
// TODO: Change to Asset
|
// TODO: Change to Asset
|
||||||
@@ -384,9 +389,38 @@ message RedeemTokenResList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message GetPublicKeyByNationalIDReq {
|
message GetPublicKeyByNationalIDReq {
|
||||||
string national_id = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
|
string national_id = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetPublicKeyByNationalIDRes {
|
message GetPublicKeyByNationalIDRes {
|
||||||
string pub_key = 1;
|
string pub_key = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Network Details
|
||||||
|
*/
|
||||||
|
enum NetworkType {
|
||||||
|
UNKNOWN_NETWORK_TYPE = 0;
|
||||||
|
ETH = 1;
|
||||||
|
XLM = 2;
|
||||||
|
BTC = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message Network {
|
||||||
|
int64 id = 1;
|
||||||
|
string name = 2;
|
||||||
|
string code = 3;
|
||||||
|
string explorer = 4;
|
||||||
|
int64 gas_asset_id = 5;
|
||||||
|
string description = 6;
|
||||||
|
NetworkType type = 7;
|
||||||
|
bool is_active = 8;
|
||||||
|
string image = 9;
|
||||||
|
string updated_at = 10;
|
||||||
|
string created_at = 11;
|
||||||
|
}
|
||||||
|
|
||||||
|
message NetworkList {
|
||||||
|
repeated Network list = 1;
|
||||||
|
}
|
||||||
|
|||||||
+4
-1
@@ -13,6 +13,8 @@ service WalletService {
|
|||||||
rpc AdminGetFederation(GetFederationReq) returns (Federation);
|
rpc AdminGetFederation(GetFederationReq) returns (Federation);
|
||||||
rpc UserGetFederation(auth.v1.InternalIAM) returns (Federation);
|
rpc UserGetFederation(auth.v1.InternalIAM) returns (Federation);
|
||||||
|
|
||||||
|
rpc GetNetworkList(base.v1.Empty) returns (NetworkList);
|
||||||
|
|
||||||
rpc UserGetAssetList(base.v1.Empty) returns (AssetList);
|
rpc UserGetAssetList(base.v1.Empty) returns (AssetList);
|
||||||
rpc AdminGetAssetList(base.v1.Empty) returns (AssetList);
|
rpc AdminGetAssetList(base.v1.Empty) returns (AssetList);
|
||||||
rpc GetAsset(GetAssetReq) returns (Asset);
|
rpc GetAsset(GetAssetReq) returns (Asset);
|
||||||
@@ -42,5 +44,6 @@ service WalletService {
|
|||||||
rpc GetPublicKeyByNationalID(GetPublicKeyByNationalIDReq) returns (GetPublicKeyByNationalIDRes);
|
rpc GetPublicKeyByNationalID(GetPublicKeyByNationalIDReq) returns (GetPublicKeyByNationalIDRes);
|
||||||
|
|
||||||
// Assets routing
|
// Assets routing
|
||||||
rpc InternalTransferAsset(InternalTransferAssetReq) returns (InternalTransferAssetRes);
|
rpc InternalTransferAsset(TransferAssetReq) returns (TransferAssetRes);
|
||||||
|
rpc ExternalTransferAsset(TransferAssetReq) returns (TransferAssetRes);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user