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