ref: separate contract type msg

This commit is contained in:
AmirMahdi Qiasvand 2025-07-29 14:58:27 +03:30
parent cbc7524120
commit 8db65b4ff4
2 changed files with 6 additions and 2 deletions

View File

@ -158,6 +158,7 @@ message OrderListFilter {
optional uint32 page_size = 20;
}
/* Contract */
message ContractMarketRes {
string link = 1;
uint64 agreement_id = 2;
@ -165,3 +166,8 @@ message ContractMarketRes {
string contract_hash = 4;
string contract_content = 5;
}
enum ContractType {
CONTRACT_TYPE_MARKE_MAKER = 0;
CONTRACT_TYPE_MARKE_TAKER = 1;
}

View File

@ -692,8 +692,6 @@ 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