feat: add market contract rpc
This commit is contained in:
parent
f5a99c7adf
commit
cbc7524120
@ -9,7 +9,9 @@ import "base/v1/msg.proto";
|
||||
INTERNAL DATA
|
||||
*/
|
||||
|
||||
message InternalTransactionData { int64 transaction_id = 1; }
|
||||
message InternalTransactionData {
|
||||
int64 transaction_id = 1;
|
||||
}
|
||||
|
||||
/*
|
||||
Federation
|
||||
@ -181,8 +183,7 @@ message AssetDiscountRes {
|
||||
double static_amount = 4;
|
||||
double percentage = 5;
|
||||
double max_amount = 6;
|
||||
double effective_amount =
|
||||
7; // based of asset price and discount amount in req
|
||||
double effective_amount = 7; // based of asset price and discount amount in req
|
||||
optional int64 supported_asset = 8;
|
||||
}
|
||||
|
||||
@ -197,7 +198,9 @@ message GetAssetReq {
|
||||
optional string code = 3;
|
||||
}
|
||||
|
||||
message AssetMeta { PropertyMeta property = 1; }
|
||||
message AssetMeta {
|
||||
PropertyMeta property = 1;
|
||||
}
|
||||
|
||||
message PropertyMeta {
|
||||
string description = 1;
|
||||
@ -291,8 +294,7 @@ message UserBNPLReq {
|
||||
optional float amount = 7;
|
||||
optional PaymentPeriodInfo payment_period = 8;
|
||||
optional bool has_agreed_contract = 9;
|
||||
optional int32 current_step =
|
||||
10; // Can be useful for admin to change the current step
|
||||
optional int32 current_step = 10; // Can be useful for admin to change the current step
|
||||
optional int64 asset_id = 11;
|
||||
}
|
||||
|
||||
@ -480,7 +482,9 @@ message NationalIDReq {
|
||||
string national_id = 2;
|
||||
}
|
||||
|
||||
message PubKeyRes { string pub_key = 1; }
|
||||
message PubKeyRes {
|
||||
string pub_key = 1;
|
||||
}
|
||||
|
||||
/*
|
||||
Network Details
|
||||
@ -608,7 +612,9 @@ message IPGConfirmReq {
|
||||
string final_amount = 7;
|
||||
}
|
||||
|
||||
message IPGConfirmRes { string receipt_link = 1; }
|
||||
message IPGConfirmRes {
|
||||
string receipt_link = 1;
|
||||
}
|
||||
|
||||
message SaleManualReq {
|
||||
auth.v1.InternalIAM iam = 1;
|
||||
@ -686,6 +692,8 @@ enum ContractType {
|
||||
CONTRACT_TYPE_MARKET = 1;
|
||||
CONTRACT_TYPE_BNPL = 2;
|
||||
CONTRACT_TYPE_REDEEM = 3;
|
||||
CONTRACT_TYPE_MARKE_MAKER = 4;
|
||||
CONTRACT_TYPE_MARKE_TAKER = 5;
|
||||
}
|
||||
|
||||
// agreement_id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user